|
|
|
@ -303,11 +303,9 @@ class _SelectClinicPageState extends State<SelectClinicPage> {
|
|
|
|
id = regionalViewModel.selectedHospital?.patientDoctorAppointmentList?.first.projectID?.toString() ?? "";
|
|
|
|
id = regionalViewModel.selectedHospital?.patientDoctorAppointmentList?.first.projectID?.toString() ?? "";
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if (bookAppointmentsViewModel.selectedClinic.clinicID == 17) {
|
|
|
|
if (bookAppointmentsViewModel.selectedClinic.clinicID == 17) {
|
|
|
|
|
|
|
|
|
|
|
|
if (appState.isAuthenticated) {
|
|
|
|
if (appState.isAuthenticated) {
|
|
|
|
initDentalAppointmentBookingFlow(int.parse(bookAppointmentsViewModel
|
|
|
|
initDentalAppointment();
|
|
|
|
.currentlySelectedHospitalFromRegionFlow ??
|
|
|
|
return SizedBox.shrink();
|
|
|
|
"0"));
|
|
|
|
|
|
|
|
}else {
|
|
|
|
}else {
|
|
|
|
bookAppointmentsViewModel.setIsChiefComplaintsListLoading(true);
|
|
|
|
bookAppointmentsViewModel.setIsChiefComplaintsListLoading(true);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
@ -464,6 +462,7 @@ class _SelectClinicPageState extends State<SelectClinicPage> {
|
|
|
|
isCloseButtonVisible: true,
|
|
|
|
isCloseButtonVisible: true,
|
|
|
|
);
|
|
|
|
);
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
|
|
|
|
bookAppointmentsViewModel.setIsChiefComplaintsListLoading(true);
|
|
|
|
Navigator.of(context).push(
|
|
|
|
Navigator.of(context).push(
|
|
|
|
CustomPageRoute(
|
|
|
|
CustomPageRoute(
|
|
|
|
page: DentalChiefComplaintsPage(),
|
|
|
|
page: DentalChiefComplaintsPage(),
|
|
|
|
@ -472,4 +471,12 @@ class _SelectClinicPageState extends State<SelectClinicPage> {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
});
|
|
|
|
});
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
void initDentalAppointment() async {
|
|
|
|
|
|
|
|
await Future.delayed(Duration(milliseconds: 300));
|
|
|
|
|
|
|
|
initDentalAppointmentBookingFlow(int.parse(bookAppointmentsViewModel
|
|
|
|
|
|
|
|
.currentlySelectedHospitalFromRegionFlow ??
|
|
|
|
|
|
|
|
"0"));
|
|
|
|
|
|
|
|
return;
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|