show update button in case of in patient

episode_fixes
Elham Rababh 5 years ago
parent 1c45fcea22
commit 7830c41d02

@ -198,7 +198,7 @@ class _PatientProfileScreenState extends State<PatientProfileScreen> with Single
), ),
], ],
), ),
if (isFromLiveCare if (isInpatient?true:isFromLiveCare
? patient.episodeNo != null ? patient.episodeNo != null
: patient.patientStatusType != null && patient.patientStatusType == 43) : patient.patientStatusType != null && patient.patientStatusType == 43)
BaseView<SOAPViewModel>( BaseView<SOAPViewModel>(
@ -253,7 +253,7 @@ class _PatientProfileScreenState extends State<PatientProfileScreen> with Single
AppButton( AppButton(
title: title:
"${TranslationBase.of(context).update}\n${TranslationBase.of(context).episode}", "${TranslationBase.of(context).update}\n${TranslationBase.of(context).episode}",
color: isFromLiveCare color: isFromLiveCare || isInpatient
? Colors.red.shade700 ? Colors.red.shade700
: patient.patientStatusType == 43 : patient.patientStatusType == 43
? Colors.red.shade700 ? Colors.red.shade700
@ -277,7 +277,7 @@ class _PatientProfileScreenState extends State<PatientProfileScreen> with Single
if ((isFromLiveCare && if ((isFromLiveCare &&
patient.appointmentNo != null && patient.appointmentNo != null &&
patient.appointmentNo != 0) || patient.appointmentNo != 0) ||
patient.patientStatusType == 43) { patient.patientStatusType == 43 ||isInpatient ) {
Navigator.of(context) Navigator.of(context)
.pushNamed(UPDATE_EPISODE, arguments: {'patient': patient}); .pushNamed(UPDATE_EPISODE, arguments: {'patient': patient});
} }

Loading…
Cancel
Save