|
|
|
@ -303,7 +303,10 @@ 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) {
|
|
|
|
|
|
|
|
initDentalAppointment();
|
|
|
|
|
|
|
|
return SizedBox.shrink();
|
|
|
|
|
|
|
|
}else {
|
|
|
|
bookAppointmentsViewModel.setIsChiefComplaintsListLoading(true);
|
|
|
|
bookAppointmentsViewModel.setIsChiefComplaintsListLoading(true);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
@ -459,8 +462,21 @@ class _SelectClinicPageState extends State<SelectClinicPage> {
|
|
|
|
isCloseButtonVisible: true,
|
|
|
|
isCloseButtonVisible: true,
|
|
|
|
);
|
|
|
|
);
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
// Navigate to Chief Complaint Screen
|
|
|
|
bookAppointmentsViewModel.setIsChiefComplaintsListLoading(true);
|
|
|
|
|
|
|
|
Navigator.of(context).push(
|
|
|
|
|
|
|
|
CustomPageRoute(
|
|
|
|
|
|
|
|
page: DentalChiefComplaintsPage(),
|
|
|
|
|
|
|
|
),
|
|
|
|
|
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
});
|
|
|
|
});
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
void initDentalAppointment() async {
|
|
|
|
|
|
|
|
await Future.delayed(Duration(milliseconds: 300));
|
|
|
|
|
|
|
|
initDentalAppointmentBookingFlow(int.parse(bookAppointmentsViewModel
|
|
|
|
|
|
|
|
.currentlySelectedHospitalFromRegionFlow ??
|
|
|
|
|
|
|
|
"0"));
|
|
|
|
|
|
|
|
return;
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|