Skip to content

Commit

Permalink
Medicine Administer List Should Only Show Active Medicines (ohcnetwor…
Browse files Browse the repository at this point in the history
…k#10858)

Co-authored-by: Amjith Titus <amjithtitus09@gmail.com>
  • Loading branch information
2 people authored and ashwinpraveengo committed Mar 2, 2025
1 parent beae1a7 commit 89472f0
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -796,6 +796,7 @@ export const AdministrationTab: React.FC<AdministrationTabProps> = ({
variant="outline"
className="text-emerald-600 border-emerald-600 hover:bg-emerald-50 w-full sm:w-auto"
onClick={() => setIsSheetOpen(true)}
disabled={!activeMedications?.results.length}
>
<CareIcon icon="l-plus" className="mr-2 h-4 w-4" />
{t("administer_medicine")}
Expand Down Expand Up @@ -839,7 +840,7 @@ export const AdministrationTab: React.FC<AdministrationTabProps> = ({
});
}
}}
medications={medications}
medications={activeMedications?.results || []}
lastAdministeredDates={lastAdministeredDetails?.dates}
patientId={patientId}
encounterId={encounterId}
Expand Down

0 comments on commit 89472f0

Please sign in to comment.