Skip to content

Commit

Permalink
Medicine Administer List Should Only Show Active Medicines (#10858)
Browse files Browse the repository at this point in the history
Co-authored-by: Amjith Titus <amjithtitus09@gmail.com>
  • Loading branch information
AdityaJ2305 and amjithtitus09 authored Feb 28, 2025
1 parent 75d757f commit e502bfb
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 e502bfb

Please sign in to comment.