pharmacy remarks

merge-requests/317/head
hussam al-habibeh 5 years ago
parent 963fe42cd8
commit 57aea2ba4f

@ -43,11 +43,11 @@ class MedicineViewModel extends BaseViewModel {
Future getItem({int itemID}) async {
//hasError = false;
//_insuranceCardService.clearInsuranceCard();
setState(ViewState.Busy);
setState(ViewState.BusyLocal);
await _prescriptionService.getItem(itemID: itemID);
if (_prescriptionService.hasError) {
error = _prescriptionService.error;
setState(ViewState.Error);
setState(ViewState.ErrorLocal);
} else
setState(ViewState.Idle);
}

@ -201,7 +201,7 @@ class _PrescriptionFormWidgetState extends State<PrescriptionFormWidget> {
await model.getMedicationDoseTime();
//await model.getMedicationIndications();
await model.getPatientAssessment(getAssessmentReqModel);
//await model.getItem();
await model.getItem();
},
builder: (
BuildContext context,

@ -383,12 +383,9 @@ class _NewPrescriptionScreenState extends State<NewPrescriptionScreen> {
),
Expanded(
child: AppText(
"", // commening below code because there is an error coming in the model please fix it before pushing it
// model.prescriptionList[0].entityList[index].pharmacistRemarks == null
// ? ""
// : model.prescriptionList[0].entityList[index].pharmacistRemarks,
fontSize:
15.0),
// commening below code because there is an error coming in the model please fix it before pushing it
model.prescriptionList[0].entityList[index].pharmacistRemarks == null ? "" : model.prescriptionList[0].entityList[index].pharmacistRemarks,
fontSize: 15.0),
)
],
),

Loading…
Cancel
Save