Skip to content

Commit

Permalink
Show discharge reason for OP consultations (#6724)
Browse files Browse the repository at this point in the history
  • Loading branch information
rithviknishad authored Nov 30, 2023
1 parent fe28c4e commit f5a6ac3
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/Components/Patient/PatientInfoCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -348,7 +348,11 @@ export default function PatientInfoCard(props: {
</div>
<div className="mt-1 text-xl font-semibold leading-5 text-gray-900">
{!consultation?.discharge_reason ? (
<span className="text-gray-800">UNKNOWN</span>
<span className="text-gray-800">
{consultation.suggestion === "OP"
? "OP file closed"
: "UNKNOWN"}
</span>
) : consultation?.discharge_reason === "EXP" ? (
<span className="text-red-600">EXPIRED</span>
) : (
Expand Down

0 comments on commit f5a6ac3

Please sign in to comment.