@ -14,7 +14,11 @@ class BaseService {
List<PatiantInformtion> patientArrivalList = [];
//TODO add the user login model when we need it
BaseService(){
doctorProfile = null;
}
Future<DoctorProfileModel> getDoctorProfile({bool isGetProfile = false}) async {
if(isGetProfile)
{
@ -10,7 +10,7 @@ class PatientInPatientService extends BaseService {
Future getInPatientList(
PatientSearchRequestModel requestModel, bool isMyInpatient) async {
hasError = false;
await getDoctorProfile();
await getDoctorProfile(isGetProfile: true);
if (isMyInpatient) {
requestModel.doctorID = doctorProfile.doctorID;
@ -71,7 +71,7 @@ class _PatientInPatientScreenState extends State<PatientInPatientScreen>
model.specialClinicalCareMappingList[0].nursingStationID;
requestModel.clinicID = 0;
model.getInPatientList(requestModel);
await model.getInPatientList(requestModel);
},
builder: (_, model, w) =>
AppScaffold(