diff --git a/src/Components/Patient/PatientHome.tsx b/src/Components/Patient/PatientHome.tsx index 7492f29c5c7..b82fa899e8e 100644 --- a/src/Components/Patient/PatientHome.tsx +++ b/src/Components/Patient/PatientHome.tsx @@ -591,18 +591,39 @@ export const PatientHome = (props: any) => {
- COVID Status + Status
- {patientData.disease_status} + {patientData.is_active ? "LIVE" : "DISCHARGED"}
- Status + Last Discharged Reason
- {patientData.is_active ? "LIVE" : "DISCHARGED"} + {patientData.is_active ? ( + "-" + ) : !patientData.last_consultation + ?.new_discharge_reason ? ( + + {patientData?.last_consultation?.suggestion === "OP" + ? "OP file closed" + : "UNKNOWN"} + + ) : patientData.last_consultation + ?.new_discharge_reason === + DISCHARGE_REASONS.find((i) => i.text == "Expired") + ?.id ? ( + EXPIRED + ) : ( + DISCHARGE_REASONS.find( + (reason) => + reason.id === + patientData.last_consultation + ?.new_discharge_reason, + )?.text + )}