|
|
|
|
@ -937,14 +937,6 @@ class _PrescriptionFormWidgetState extends State<PrescriptionFormWidget> {
|
|
|
|
|
// formKey.currentState.save();
|
|
|
|
|
// Navigator.pop(context);
|
|
|
|
|
// openDrugToDrug();
|
|
|
|
|
if (_selectedMedication
|
|
|
|
|
.isNarcotic ==
|
|
|
|
|
true) {
|
|
|
|
|
DrAppToastMsg.showErrorToast(
|
|
|
|
|
"Narcotic medicine can only be prescribed from VIDA");
|
|
|
|
|
Navigator.pop(context);
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
if (route == null ||
|
|
|
|
|
frequency == null ||
|
|
|
|
|
doseTime == null ||
|
|
|
|
|
@ -955,6 +947,15 @@ class _PrescriptionFormWidgetState extends State<PrescriptionFormWidget> {
|
|
|
|
|
"Please Fill All Fields");
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
if (_selectedMedication
|
|
|
|
|
.isNarcotic ==
|
|
|
|
|
true) {
|
|
|
|
|
DrAppToastMsg.showErrorToast(
|
|
|
|
|
"Narcotic medicine can only be prescribed from VIDA");
|
|
|
|
|
Navigator.pop(context);
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (double.parse(
|
|
|
|
|
strengthController.text) >
|
|
|
|
|
1000.0) {
|
|
|
|
|
|