|
|
|
@ -1228,7 +1228,7 @@ class _PrescriptionFormWidgetState extends State<PrescriptionFormWidget> {
|
|
|
|
.addMedication,
|
|
|
|
.addMedication,
|
|
|
|
fontWeight: FontWeight.w600,
|
|
|
|
fontWeight: FontWeight.w600,
|
|
|
|
onPressed: () {
|
|
|
|
onPressed: () {
|
|
|
|
// formKey.currentState.save();
|
|
|
|
formKey.currentState.save();
|
|
|
|
// Navigator.pop(context);
|
|
|
|
// Navigator.pop(context);
|
|
|
|
// openDrugToDrug();
|
|
|
|
// openDrugToDrug();
|
|
|
|
if (route == null ||
|
|
|
|
if (route == null ||
|
|
|
|
@ -1520,6 +1520,7 @@ class _PrescriptionFormWidgetState extends State<PrescriptionFormWidget> {
|
|
|
|
|
|
|
|
|
|
|
|
getPriscriptionforDrug(List<PrescriptionModel> prescriptionList) {
|
|
|
|
getPriscriptionforDrug(List<PrescriptionModel> prescriptionList) {
|
|
|
|
var prescriptionDetails = [];
|
|
|
|
var prescriptionDetails = [];
|
|
|
|
|
|
|
|
if (prescriptionList.length > 0) {
|
|
|
|
prescriptionList[0].entityList.forEach((element) {
|
|
|
|
prescriptionList[0].entityList.forEach((element) {
|
|
|
|
if (element.mediSpanGPICode != null) {
|
|
|
|
if (element.mediSpanGPICode != null) {
|
|
|
|
prescriptionDetails.add({
|
|
|
|
prescriptionDetails.add({
|
|
|
|
@ -1535,6 +1536,7 @@ class _PrescriptionFormWidgetState extends State<PrescriptionFormWidget> {
|
|
|
|
});
|
|
|
|
});
|
|
|
|
}
|
|
|
|
}
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
}
|
|
|
|
if (_selectedMedication.mediSpanGPICode != null) {
|
|
|
|
if (_selectedMedication.mediSpanGPICode != null) {
|
|
|
|
prescriptionDetails.add({
|
|
|
|
prescriptionDetails.add({
|
|
|
|
'DrugId': _selectedMedication.mediSpanGPICode,
|
|
|
|
'DrugId': _selectedMedication.mediSpanGPICode,
|
|
|
|
|