I am trying to call the searchPatients() function which is in searchPatientController.js from patientCommonController.js.
searchPatients() in turn calls search() from defaultPatientServiceStratergy.js .So I copied and pasted the search() in patientCommonController and passed the appropriate parameters.But I am getting the following error when the search() is called from patientCommonController :
Cannot read property ‘identifier’ of undefined .
What am I doing wrong?