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

Loading…
Cancel
Save