From 1591bacabd52db2db3f1b500c8e9cfa430dd0a9b Mon Sep 17 00:00:00 2001 From: Gregg Stubberfield Date: Fri, 15 Aug 2025 12:06:10 -0400 Subject: [PATCH] feat: #340 - Display explanatory text when there are no options for each tier --- .../pages/PatientManager/PatientSummary.tsx | 35 ++++++++++++------- 1 file changed, 22 insertions(+), 13 deletions(-) diff --git a/frontend/src/pages/PatientManager/PatientSummary.tsx b/frontend/src/pages/PatientManager/PatientSummary.tsx index 2e9e1f61..f20e9f4e 100644 --- a/frontend/src/pages/PatientManager/PatientSummary.tsx +++ b/frontend/src/pages/PatientManager/PatientSummary.tsx @@ -198,6 +198,7 @@ const MedicationItem = ({ const MedicationTier = ({ title, + tier, medications, clickedMedication, riskData, @@ -205,6 +206,7 @@ const MedicationTier = ({ onMedicationClick, }: { title: string; + tier: string; medications: MedicationWithSource[]; clickedMedication: string | null; riskData: RiskData | null; @@ -215,19 +217,23 @@ const MedicationTier = ({
{title}:
- + { medications.length ? + : + {`Patient's other health concerns may contraindicate typical ${tier} line options.`} + } ); @@ -364,6 +370,7 @@ const PatientSummary = ({ <>