From ea4a69b0adbedea0c6d8f17dda6ce18639d51e03 Mon Sep 17 00:00:00 2001 From: Tanuj Nainwal Date: Tue, 4 Feb 2025 00:21:05 +0530 Subject: [PATCH 1/2] improved tablet view responsiveness --- src/pages/Encounters/EncounterList.tsx | 280 +++++++++++++------------ 1 file changed, 142 insertions(+), 138 deletions(-) diff --git a/src/pages/Encounters/EncounterList.tsx b/src/pages/Encounters/EncounterList.tsx index effc46721a5..8db184105de 100644 --- a/src/pages/Encounters/EncounterList.tsx +++ b/src/pages/Encounters/EncounterList.tsx @@ -214,8 +214,8 @@ export function EncounterList({ return ( -
-
+
+
@@ -467,191 +467,195 @@ export function EncounterList({
+
+ + updateQuery({ + ...{ encounter_class: encounterClass, priority }, + status: undefined, + }) + } + > + All + + + updateQuery({ + ...{ encounter_class: encounterClass, priority }, + status: "planned", + }) + } + > + + Planned + + + updateQuery({ + ...{ encounter_class: encounterClass, priority }, + status: "in_progress", + }) + } + > + + In Progress + + + updateQuery({ + ...{ encounter_class: encounterClass, priority }, + status: "discharged", + }) + } + > + + Discharged + + + updateQuery({ + ...{ encounter_class: encounterClass, priority }, + status: "completed", + }) + } + > + + Completed + + + updateQuery({ + ...{ encounter_class: encounterClass, priority }, + status: "cancelled", + }) + } + > + + Cancelled + +
+
+
+
+
+ + + + {/* Class Filter - Desktop */} +
+ + +
updateQuery({ - ...{ encounter_class: encounterClass, priority }, - status: undefined, + status, + priority, + encounter_class: undefined, }) } > - All + All Types updateQuery({ - ...{ encounter_class: encounterClass, priority }, - status: "planned", + status, + priority, + encounter_class: "imp", }) } > - - Planned + + Inpatient updateQuery({ - ...{ encounter_class: encounterClass, priority }, - status: "in_progress", + status, + priority, + encounter_class: "amb", }) } > - - In Progress + + Ambulatory updateQuery({ - ...{ encounter_class: encounterClass, priority }, - status: "discharged", + status, + priority, + encounter_class: "obsenc", }) } > - - Discharged + + Observation updateQuery({ - ...{ encounter_class: encounterClass, priority }, - status: "completed", + status, + priority, + encounter_class: "emer", }) } > - - Completed + + Emergency updateQuery({ - ...{ encounter_class: encounterClass, priority }, - status: "cancelled", + status, + priority, + encounter_class: "vr", }) } > - - Cancelled + + Virtual - - -
-
- - - - {/* Class Filter - Desktop */} -
- - - - updateQuery({ - status, - priority, - encounter_class: undefined, - }) - } - > - All Types - - - updateQuery({ - status, - priority, - encounter_class: "imp", - }) - } - > - - Inpatient - - - updateQuery({ - status, - priority, - encounter_class: "amb", - }) - } - > - - Ambulatory - - - updateQuery({ - status, - priority, - encounter_class: "obsenc", - }) - } - > - - Observation - - - updateQuery({ - status, - priority, - encounter_class: "emer", - }) - } - > - - Emergency - - - updateQuery({ - status, - priority, - encounter_class: "vr", - }) - } - > - - Virtual - - - updateQuery({ - status, - priority, - encounter_class: "hh", - }) - } - > - - Home Health - + + updateQuery({ + status, + priority, + encounter_class: "hh", + }) + } + > + + Home Health + +
From 85bfad8282fbdeb7be1686c2a1af2d04c5dbe22a Mon Sep 17 00:00:00 2001 From: Tanuj Nainwal Date: Tue, 4 Feb 2025 17:21:19 +0530 Subject: [PATCH 2/2] solved i18n issue --- src/pages/Encounters/EncounterList.tsx | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/src/pages/Encounters/EncounterList.tsx b/src/pages/Encounters/EncounterList.tsx index 8db184105de..f6eaf605c80 100644 --- a/src/pages/Encounters/EncounterList.tsx +++ b/src/pages/Encounters/EncounterList.tsx @@ -478,7 +478,7 @@ export function EncounterList({ }) } > - All + {t("all")} - Planned + {t("encounter_status__planned")} - In Progress + {t("encounter_class__in_progress")} - Discharged + {t("discharge")} - Completed + {t("completed")} - Cancelled + {t("cancelled")}
@@ -569,7 +569,7 @@ export function EncounterList({ }) } > - All Types + {t("all")} - Inpatient + {t("encounter_class__imp")} - Ambulatory + {t("encounter_class__amb")} - Observation + {t("encounter_class__obsenc")} - Emergency + {t("emergency")} - Virtual + {t("encounter_class__vr")} - Home Health + {t("encounter_class__hh")}