|
|
|
|
@ -260,7 +260,21 @@ class _SelectClinicPageState extends State<SelectClinicPage> {
|
|
|
|
|
return HospitalBottomSheetBody();
|
|
|
|
|
}
|
|
|
|
|
if(data.bottomSheetState == AppointmentViaRegionState.DOCTOR_SELECTION){
|
|
|
|
|
bookAppointmentsViewModel.setProjectID(regionalViewModel.selectedHospital?.patientDoctorAppointmentList?.first.projectID.toString());
|
|
|
|
|
//if the region screen is opened for the dental clinic thenthe project id will be in the hospital list as the list is formed form the get project api
|
|
|
|
|
var id = "";
|
|
|
|
|
if (data.regionBottomSheetType ==
|
|
|
|
|
RegionBottomSheetType.REGION_FOR_DENTAL_AND_LASER) {
|
|
|
|
|
id = regionalViewModel.selectedHospital?.hospitalList?.first?.iD
|
|
|
|
|
?.toString() ??
|
|
|
|
|
"";
|
|
|
|
|
} else {
|
|
|
|
|
id = regionalViewModel.selectedHospital?.patientDoctorAppointmentList
|
|
|
|
|
?.first?.projectID
|
|
|
|
|
?.toString() ??
|
|
|
|
|
"";
|
|
|
|
|
}
|
|
|
|
|
bookAppointmentsViewModel.setProjectID(id);
|
|
|
|
|
return SizedBox.shrink();
|
|
|
|
|
}
|
|
|
|
|
else {
|
|
|
|
|
return SizedBox.shrink();
|
|
|
|
|
|