Skip to content

Commit

Permalink
Show discharge reason for OP consultations
Browse files Browse the repository at this point in the history
  • Loading branch information
rithviknishad committed Nov 27, 2023
1 parent 9b05821 commit 023640f
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 @@ -323,7 +323,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 023640f

Please sign in to comment.