|
|
|
@ -320,10 +320,12 @@ class MyAppointmentsViewModel extends ChangeNotifier {
|
|
|
|
// if (patientArrivedAppointmentsHistoryList.isNotEmpty) {
|
|
|
|
// if (patientArrivedAppointmentsHistoryList.isNotEmpty) {
|
|
|
|
isPatientHasQueueAppointment = false;
|
|
|
|
isPatientHasQueueAppointment = false;
|
|
|
|
notifyListeners();
|
|
|
|
notifyListeners();
|
|
|
|
|
|
|
|
if(patientArrivedAppointmentsHistoryList.isNotEmpty) {
|
|
|
|
if (Utils.isDateToday(DateUtil.convertStringToDate(patientArrivedAppointmentsHistoryList.first.appointmentDate))) {
|
|
|
|
if (Utils.isDateToday(DateUtil.convertStringToDate(patientArrivedAppointmentsHistoryList.first.appointmentDate))) {
|
|
|
|
// getPatientAppointmentQueueDetails(appointmentNo: patientArrivedAppointmentsHistoryList.first.appointmentNo, patientID: patientArrivedAppointmentsHistoryList.first.patientID);
|
|
|
|
// getPatientAppointmentQueueDetails(appointmentNo: patientArrivedAppointmentsHistoryList.first.appointmentNo, patientID: patientArrivedAppointmentsHistoryList.first.patientID);
|
|
|
|
getPatientAppointmentQueueDetails();
|
|
|
|
getPatientAppointmentQueueDetails();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
// }
|
|
|
|
// }
|
|
|
|
|
|
|
|
|
|
|
|
debugPrint('Upcoming Appointments: ${patientUpcomingAppointmentsHistoryList.length}');
|
|
|
|
debugPrint('Upcoming Appointments: ${patientUpcomingAppointmentsHistoryList.length}');
|
|
|
|
|