a few changes in PatientController export