|
|
|
|
@ -989,23 +989,23 @@ class _ToDoState extends State<ToDo> with SingleTickerProviderStateMixin {
|
|
|
|
|
patientShareResponse.projectID = appo.projectID;
|
|
|
|
|
patientShareResponse.isFollowup = appo.isFollowup;
|
|
|
|
|
|
|
|
|
|
FlutterNfcKit.nfcAvailability.then((value) {
|
|
|
|
|
if (value == NFCAvailability.available) {
|
|
|
|
|
PatientShareResponse patientShareResponse = new PatientShareResponse();
|
|
|
|
|
patientShareResponse.doctorNameObj = appo.doctorNameObj;
|
|
|
|
|
patientShareResponse.doctorSpeciality = appo.doctorSpeciality;
|
|
|
|
|
patientShareResponse.projectName = appo.projectName;
|
|
|
|
|
patientShareResponse.appointmentDate = appo.appointmentDate;
|
|
|
|
|
patientShareResponse.appointmentNo = appo.appointmentNo;
|
|
|
|
|
patientShareResponse.clinicID = appo.clinicID;
|
|
|
|
|
patientShareResponse.projectID = appo.projectID;
|
|
|
|
|
patientShareResponse.isFollowup = appo.isFollowup;
|
|
|
|
|
navigateToQR(context, "", patientShareResponse, appo);
|
|
|
|
|
projectViewModel.analytics.todoList.to_do_list_check_in(appo);
|
|
|
|
|
} else {
|
|
|
|
|
Utils.showErrorToast(TranslationBase.of(context).NFCNotSupported);
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
// FlutterNfcKit.nfcAvailability.then((value) {
|
|
|
|
|
// if (value == NFCAvailability.available) {
|
|
|
|
|
// PatientShareResponse patientShareResponse = new PatientShareResponse();
|
|
|
|
|
patientShareResponse.doctorNameObj = appo.doctorNameObj;
|
|
|
|
|
patientShareResponse.doctorSpeciality = appo.doctorSpeciality;
|
|
|
|
|
patientShareResponse.projectName = appo.projectName;
|
|
|
|
|
patientShareResponse.appointmentDate = appo.appointmentDate;
|
|
|
|
|
patientShareResponse.appointmentNo = appo.appointmentNo;
|
|
|
|
|
patientShareResponse.clinicID = appo.clinicID;
|
|
|
|
|
patientShareResponse.projectID = appo.projectID;
|
|
|
|
|
patientShareResponse.isFollowup = appo.isFollowup;
|
|
|
|
|
navigateToQR(context, "", patientShareResponse, appo);
|
|
|
|
|
projectViewModel.analytics.todoList.to_do_list_check_in(appo);
|
|
|
|
|
// } else {
|
|
|
|
|
// Utils.showErrorToast(TranslationBase.of(context).NFCNotSupported);
|
|
|
|
|
// }
|
|
|
|
|
// });
|
|
|
|
|
projectViewModel.analytics.todoList.to_do_list_check_in(appo);
|
|
|
|
|
|
|
|
|
|
DoctorsListService service = new DoctorsListService();
|
|
|
|
|
|