Skip to content

Commit

Permalink
fixes:
Browse files Browse the repository at this point in the history
remove COVID Status from Patient details page #7813
  • Loading branch information
Sulochan-khadka committed May 14, 2024
1 parent cd56431 commit 9e62ee4
Showing 1 changed file with 25 additions and 4 deletions.
29 changes: 25 additions & 4 deletions src/Components/Patient/PatientHome.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -591,18 +591,39 @@ export const PatientHome = (props: any) => {
<div className="flex justify-between">
<div className="w-1/2 border-r-2">
<div className="text-sm font-normal leading-5 text-gray-500">
COVID Status
Status
</div>
<div className="mt-1 text-xl font-semibold leading-5 text-gray-900">
{patientData.disease_status}
{patientData.is_active ? "LIVE" : "DISCHARGED"}
</div>
</div>
<div className="w-1/2">
<div className="text-sm font-normal leading-5 text-gray-500">
Status
Last Discharged Reason
</div>
<div className="mt-1 text-xl font-semibold leading-5 text-gray-900">
{patientData.is_active ? "LIVE" : "DISCHARGED"}
{patientData.is_active ? (
"-"
) : !patientData.last_consultation
?.new_discharge_reason ? (
<span className="text-gray-800">
{patientData?.last_consultation?.suggestion === "OP"
? "OP file closed"
: "UNKNOWN"}
</span>
) : patientData.last_consultation
?.new_discharge_reason ===
DISCHARGE_REASONS.find((i) => i.text == "Expired")
?.id ? (
<span className="text-red-600">EXPIRED</span>
) : (
DISCHARGE_REASONS.find(
(reason) =>
reason.id ===
patientData.last_consultation
?.new_discharge_reason,
)?.text
)}
</div>
</div>
</div>
Expand Down

0 comments on commit 9e62ee4

Please sign in to comment.