|
|
|
@ -65,6 +65,7 @@ class PatientSearchViewModel extends BaseViewModel {
|
|
|
|
await getDoctorProfile(isGetProfile: true);
|
|
|
|
await getDoctorProfile(isGetProfile: true);
|
|
|
|
patientSearchRequestModel.loginDoctorID = doctorProfile!.doctorID;
|
|
|
|
patientSearchRequestModel.loginDoctorID = doctorProfile!.doctorID;
|
|
|
|
patientSearchRequestModel.doctorID = doctorProfile!.doctorID;
|
|
|
|
patientSearchRequestModel.doctorID = doctorProfile!.doctorID;
|
|
|
|
|
|
|
|
patientSearchRequestModel.clinicID = doctorProfile!.clinicID; // Added clinic filter to avoid fetching all based on DoctorIDh
|
|
|
|
await _outPatientService.getOutPatient(patientSearchRequestModel);
|
|
|
|
await _outPatientService.getOutPatient(patientSearchRequestModel);
|
|
|
|
if (_outPatientService.hasError) {
|
|
|
|
if (_outPatientService.hasError) {
|
|
|
|
error = _outPatientService.error;
|
|
|
|
error = _outPatientService.error;
|
|
|
|
|