Skip to content

Commit d11e59d

Browse files
Jacobjeevanabhimanyurajeesh
authored andcommitted
add deceased badge to info hover card (#16105)
1 parent e8297fd commit d11e59d

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/components/Patient/PatientInfoHoverCard.tsx

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import { Avatar } from "@/components/Common/Avatar";
22
import { PatientAddressLink } from "@/components/Patient/PatientAddressLink";
33
import { PatientTagsDisplay } from "@/components/Patient/PatientTagsDisplay";
44
import { formatPatientAddress } from "@/components/Patient/utils";
5+
import { Badge } from "@/components/ui/badge";
56
import { Button } from "@/components/ui/button";
67
import {
78
PatientListRead,
@@ -49,6 +50,11 @@ export const PatientInfoHoverCard = ({
4950
</span>
5051
</div>
5152
</div>
53+
{"deceased_datetime" in patient && patient.deceased_datetime && (
54+
<Badge variant="destructive" className="text-xs h-5 mt-1">
55+
{t("deceased")}
56+
</Badge>
57+
)}
5258
</div>
5359
<div className="flex items-center gap-2">
5460
{!isPatientHomePage && facilityId && (

0 commit comments

Comments
 (0)