|
|
|
|
@ -20,7 +20,8 @@ DrAppSharedPreferances sharedPref = new DrAppSharedPreferances();
|
|
|
|
|
|
|
|
|
|
class InterventionMedicationScreen extends StatefulWidget {
|
|
|
|
|
final PatiantInformtion patient;
|
|
|
|
|
const InterventionMedicationScreen(this.patient, {Key key}) : super(key: key);
|
|
|
|
|
final InterventionMedicationViewModel previousModel;
|
|
|
|
|
const InterventionMedicationScreen(this.patient, {Key key, this.previousModel}) : super(key: key);
|
|
|
|
|
|
|
|
|
|
@override
|
|
|
|
|
_InterventionMedicationScreenState createState() =>
|
|
|
|
|
@ -42,8 +43,8 @@ class _InterventionMedicationScreenState
|
|
|
|
|
onModelReady: (model) => model.getInterventionMedication(
|
|
|
|
|
patientId: widget.patient.patientId,
|
|
|
|
|
admissionNo: int.parse(widget.patient.admissionNo),
|
|
|
|
|
fromDate: model.selectedFromDate,
|
|
|
|
|
toDate: model.selectedToDate,
|
|
|
|
|
fromDate: widget.previousModel.selectedFromDate,
|
|
|
|
|
toDate: widget.previousModel.selectedToDate,
|
|
|
|
|
),
|
|
|
|
|
|
|
|
|
|
builder: (_, model, w) => AppScaffold(
|
|
|
|
|
|