diff --git a/lib/core/viewModel/prescription/prescription_view_model.dart b/lib/core/viewModel/prescription/prescription_view_model.dart index 3c2b38a6..e52f16ce 100644 --- a/lib/core/viewModel/prescription/prescription_view_model.dart +++ b/lib/core/viewModel/prescription/prescription_view_model.dart @@ -8,7 +8,6 @@ import 'package:doctor_app_flutter/core/model/Prescriptions/prescription_entity_ import 'package:doctor_app_flutter/core/model/Prescriptions/prescription_model.dart'; import 'package:doctor_app_flutter/core/model/Prescriptions/prescription_report.dart'; import 'package:doctor_app_flutter/core/model/Prescriptions/prescription_report_enh.dart'; -import 'package:doctor_app_flutter/core/model/Prescriptions/prescriptions_order.dart'; import 'package:doctor_app_flutter/core/model/SOAP/GetAllergiesResModel.dart'; import 'package:doctor_app_flutter/core/model/SOAP/GetAssessmentResModel.dart'; import 'package:doctor_app_flutter/core/model/patient/patiant_info_model.dart'; @@ -96,9 +95,14 @@ class PrescriptionViewModel extends BaseViewModel { List lstAssessments, List allergy, PatiantInformtion patient, - List prescription) async { + List prescription, + {bool isLocalBusy = false}) async { hasError = false; - setState(ViewState.BusyLocal); + // setState(ViewState.BusyLocal); + if(isLocalBusy) + setState(ViewState.BusyLocal); + else + setState(ViewState.Busy); await _prescriptionService.getDrugToDrug( vital, lstAssessments, allergy, patient, prescription); if (_prescriptionService.hasError) { diff --git a/lib/screens/patients/profile/notes/note/update_note.dart b/lib/screens/patients/profile/notes/note/update_note.dart index c39670ca..c1737795 100644 --- a/lib/screens/patients/profile/notes/note/update_note.dart +++ b/lib/screens/patients/profile/notes/note/update_note.dart @@ -93,7 +93,7 @@ class _UpdateNoteOrderState extends State { progressNoteController.text = widget.note.notes; if(selectValue==null) selectValue={}; - selectValue['ParameterCode'] = widget.note.condition; + selectValue[keyId] = widget.note.condition; selectValue['Description'] = widget.note.conditionDescription; }