calling of right method in patientController