|
|
|
|
@ -192,14 +192,11 @@ class _PrescriptionFormWidgetState extends State<PrescriptionFormWidget> {
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
Container(
|
|
|
|
|
width: double.infinity,
|
|
|
|
|
child: Row(
|
|
|
|
|
Row(
|
|
|
|
|
children: [
|
|
|
|
|
Container(
|
|
|
|
|
width: MediaQuery.of(context).size.width * 0.35,
|
|
|
|
|
child: AppTextFieldCustom(
|
|
|
|
|
height: 38,
|
|
|
|
|
validationError: strengthError,
|
|
|
|
|
hintText: 'Strength',
|
|
|
|
|
isTextFieldHasSuffix: false,
|
|
|
|
|
@ -220,6 +217,10 @@ class _PrescriptionFormWidgetState extends State<PrescriptionFormWidget> {
|
|
|
|
|
decimal: true,
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
),
|
|
|
|
|
SizedBox(
|
|
|
|
|
width: 5.0,
|
|
|
|
|
@ -278,7 +279,6 @@ class _PrescriptionFormWidgetState extends State<PrescriptionFormWidget> {
|
|
|
|
|
),
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
SizedBox(height: spaceBetweenTextFields),
|
|
|
|
|
PrescriptionTextFiled(
|
|
|
|
|
elementList: widget.medicineViewModel.itemMedicineListRoute,
|
|
|
|
|
@ -378,8 +378,7 @@ class _PrescriptionFormWidgetState extends State<PrescriptionFormWidget> {
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
SizedBox(height: spaceBetweenTextFields),
|
|
|
|
|
Container(
|
|
|
|
|
SizedBox(height: spaceBetweenTextFields), Container(
|
|
|
|
|
color: Colors.transparent,
|
|
|
|
|
child: InkWell(
|
|
|
|
|
onTap: () => selectDate(context, widget.prescriptionViewModel),
|
|
|
|
|
@ -397,7 +396,6 @@ class _PrescriptionFormWidgetState extends State<PrescriptionFormWidget> {
|
|
|
|
|
? "${AppDateUtils.convertStringToDateFormat(selectedDate.toString(), "yyyy-MM-dd")}"
|
|
|
|
|
: null,
|
|
|
|
|
enabled: false,
|
|
|
|
|
controller: strengthController,
|
|
|
|
|
),
|
|
|
|
|
|
|
|
|
|
// TextField(
|
|
|
|
|
@ -538,32 +536,6 @@ class _PrescriptionFormWidgetState extends State<PrescriptionFormWidget> {
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
openDrugToDrug(
|
|
|
|
|
MedicineViewModel medicineViewModel, PrescriptionViewModel modelPrescription) {
|
|
|
|
|
showModalBottomSheet(
|
|
|
|
|
context: context,
|
|
|
|
|
builder: (context) {
|
|
|
|
|
return AddDrugWidget(
|
|
|
|
|
patient: widget.patient,
|
|
|
|
|
medicineModel: widget.medicineViewModel,
|
|
|
|
|
modelPrescription: widget.prescriptionViewModel,
|
|
|
|
|
prescriptionList: widget.prescriptionList,
|
|
|
|
|
route: route,
|
|
|
|
|
doseTime: doseTime,
|
|
|
|
|
duration: duration,
|
|
|
|
|
frequency: frequency,
|
|
|
|
|
units: units,
|
|
|
|
|
uom: uom,
|
|
|
|
|
x: x,
|
|
|
|
|
selectedMedication: widget.selectedMedication,
|
|
|
|
|
strength: strengthController.text,
|
|
|
|
|
indication: indicationController.text,
|
|
|
|
|
instruction: instructionController.text,
|
|
|
|
|
selectedDate: selectedDate,
|
|
|
|
|
);
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
addMedicationButton(MedicineViewModel model) async {
|
|
|
|
|
await locator<AnalyticsService>().logEvent(
|
|
|
|
|
eventCategory: "Add Prescription Form",
|
|
|
|
|
|