|
|
|
|
@ -27,9 +27,8 @@ class NewPrescriptionsPage extends StatelessWidget {
|
|
|
|
|
bool isFromLiveCare = routeArgs['isFromLiveCare'];
|
|
|
|
|
return BaseView<PrescriptionViewModel>(
|
|
|
|
|
onModelReady: (model) async {
|
|
|
|
|
await model.getPrescriptionListNew(
|
|
|
|
|
mrn: patient.patientMRN, appNo: patient.appointmentNo == null ? 0 : patient.appointmentNo);
|
|
|
|
|
await model.isPrincipalCovered(patient: patient);
|
|
|
|
|
await model.getPrescriptionListNew(mrn: patient.patientMRN, appNo: patient.appointmentNo == null ? 0 : int.parse(patient.appointmentNo.toString()));
|
|
|
|
|
await model.isPrincipalCovered(patient: patient);
|
|
|
|
|
},
|
|
|
|
|
builder: (_, model, w) => AppScaffold(
|
|
|
|
|
baseViewModel: model,
|
|
|
|
|
@ -48,8 +47,6 @@ class NewPrescriptionsPage extends StatelessWidget {
|
|
|
|
|
SizedBox(
|
|
|
|
|
height: 12,
|
|
|
|
|
),
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Padding(
|
|
|
|
|
padding: const EdgeInsets.all(8.0),
|
|
|
|
|
child: Column(
|
|
|
|
|
@ -62,11 +59,18 @@ class NewPrescriptionsPage extends StatelessWidget {
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
!model.isPrincipalCovered_ ? Center(child: AppText(TranslationBase.of(context).principalCoveredOrNot,color: Colors.red, textAlign: TextAlign.center, )) :SizedBox(),
|
|
|
|
|
SizedBox(height: 20,),
|
|
|
|
|
if ((patient.patientStatusType != null &&
|
|
|
|
|
patient.patientStatusType == 43) ||
|
|
|
|
|
(isFromLiveCare && patient.appointmentNo != null))
|
|
|
|
|
!model.isPrincipalCovered_
|
|
|
|
|
? Center(
|
|
|
|
|
child: AppText(
|
|
|
|
|
TranslationBase.of(context).principalCoveredOrNot,
|
|
|
|
|
color: Colors.red,
|
|
|
|
|
textAlign: TextAlign.center,
|
|
|
|
|
))
|
|
|
|
|
: SizedBox(),
|
|
|
|
|
SizedBox(
|
|
|
|
|
height: 20,
|
|
|
|
|
),
|
|
|
|
|
if ((patient.patientStatusType != null && patient.patientStatusType == 43) || (isFromLiveCare && patient.appointmentNo != null))
|
|
|
|
|
AddNewOrder(
|
|
|
|
|
onTap: () {
|
|
|
|
|
Navigator.push(
|
|
|
|
|
|