diff --git a/lib/screens/patients/profile/profile_screen/patient_profile_screen.dart b/lib/screens/patients/profile/profile_screen/patient_profile_screen.dart index a8b4e65b..bcf2a371 100644 --- a/lib/screens/patients/profile/profile_screen/patient_profile_screen.dart +++ b/lib/screens/patients/profile/profile_screen/patient_profile_screen.dart @@ -198,7 +198,7 @@ class _PatientProfileScreenState extends State with Single ), ], ), - if (isFromLiveCare + if (isInpatient?true:isFromLiveCare ? patient.episodeNo != null : patient.patientStatusType != null && patient.patientStatusType == 43) BaseView( @@ -253,7 +253,7 @@ class _PatientProfileScreenState extends State 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 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}); }