@bahmni/clinical-app 0.0.1-dev.453 → 0.0.1-dev.455

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,10 +1,10 @@
1
1
  import { jsxs, jsx, Fragment } from "react/jsx-runtime";
2
- import { u as useTranslation, G as q, L as ENCOUNTER_CONCEPTS_URL, O as Jr, P as Yo, V as LNt, _ as Ns, a0 as BAHMNI_USER_LOCATION_COOKIE_NAME, a1 as bc, a2 as Rd, d as dn, a3 as zb2, a4 as bb2, a5 as xb2, a6 as qL2, a7 as hl1, a8 as Eb2, a9 as j_, aa as Wi, ab as sf, ac as S_, ad as nf, ae as Ps, af as dist, ag as nt, ah as ge, ai as us, aj as cb, ak as bb, al as vb, am as Nb2, an as Ob2, ao as pb2, ap as Iz2, z as zr, w as w6, aq as Tb, ar as dg, as as Rb, at as Xy2, au as fb2, av as tN2, aw as kb2, ax as Bb2, m as qkt, ay as Ob, az as Sb, aA as Ab, aB as rv, aC as Lb2, aD as Sv, aE as qs, aF as ov, aG as Qv, aH as Eb, aI as Db, aJ as kb, aK as CLINICAL_V2_CONFIG_BASE_URL, aL as Vb, aM as K_, aN as fn, aO as Fb, aP as db, aQ as Xv, aR as ix2, aS as av, aT as jb, aU as Hb, aV as tT, aW as Cb2, aX as mT, aY as ib, aZ as Bb, a_ as Rt, a$ as Yr, b0 as cT, b1 as pT, b2 as Tkt, b3 as Sw, b4 as TNe, b5 as dT, b6 as Okt, Z as Z1, b7 as Cv, b8 as cv, b9 as fv, k as ezt, ba as Yb2, bb as Jb2, bc as xv, bd as Lv, be as Rb2, bf as se, bg as STOP_REASON_VALUESET_EXPAND_URL, bh as Be, bi as O_, bj as STOP_REASON_VALUESET_TITLE, bk as Wf, bl as os, bm as Gb2, bn as Dv, bo as Mv, bp as l0, bq as ob, br as u0, bs as dn$1, bt as N4, bu as c3, bv as jb2, bw as x_, bx as zs, by as kv, bz as Fv, bA as qv, bB as jv, bC as Ki, bD as cs, bE as Ev, bF as Nb, bG as hT, bH as Zv, bI as eT, bJ as Jv, bK as CDSS_SERVER_CONFIG_URL, bL as Ib, bM as ec, bN as q0, bO as Ge, bP as Ykt, bQ as Tb2, bR as tw, bS as wv, bT as _v, bU as Vb2, bV as Qt, bW as Tv, bX as vv, bY as bv, bZ as Lkt, b_ as _kt, b$ as f0, c0 as Rv, c1 as Mi, c2 as w_, c3 as BAHMNI_CLINICAL_PATH, c4 as F_, c5 as dw, c6 as Sb2, c7 as $b2, c8 as Tz2, c9 as O$t, ca as U_, cb as Fkt } from "./index-DLVbdIhb.js";
2
+ import { u as useTranslation, G as q, L as ENCOUNTER_CONCEPTS_URL, O as Jr, P as Yo, V as LAt, _ as Ns, a0 as BAHMNI_USER_LOCATION_COOKIE_NAME, a1 as bc, a2 as Rd, d as dn, a3 as yb2, a4 as Nb2, a5 as Lb2, a6 as qL2, a7 as hl1, a8 as Vb2, a9 as j_, aa as Wi, ab as sf, ac as S_, ad as nf, ae as Ps, af as dist, ag as nt, ah as ge, ai as us, aj as cb, ak as bb, al as vb, am as Ab2, an as Zb2, ao as hb2, ap as Pz2, z as zr, w as w6, aq as Tb, ar as dg, as as Rb, at as Qy2, au as pb2, av as nN2, aw as Ib2, ax as kb2, m as qkt, ay as Ob, az as Sb, aA as Ab, aB as rv, aC as _b2, aD as Sv, aE as qs, aF as ov, aG as Qv, aH as Eb, aI as Db, aJ as kb, aK as CLINICAL_V2_CONFIG_BASE_URL, aL as Vb, aM as K_, aN as fn, aO as Fb, aP as db, aQ as Xv, aR as ix2, aS as av, aT as jb, aU as Hb, aV as tT, aW as xb2, aX as mT, aY as ib, aZ as Bb, a_ as Rt, a$ as Yr, b0 as cT, b1 as pT, b2 as Tkt, b3 as Sw, b4 as TAe, b5 as dT, b6 as Okt, Z as Z1, b7 as Cv, b8 as cv, b9 as fv, k as ezt, ba as Jb2, bb as Xb2, bc as xv, bd as Lv, be as Ob2, bf as se, bg as STOP_REASON_VALUESET_EXPAND_URL, bh as Be, bi as O_, bj as STOP_REASON_VALUESET_TITLE, bk as Wf, bl as os, bm as Kb2, bn as Dv, bo as Mv, bp as l0, bq as ob, br as u0, bs as dn$1, bt as N4, bu as c3, bv as Ub2, bw as x_, bx as zs, by as kv, bz as Fv, bA as qv, bB as jv, bC as Ki, bD as cs, bE as Ev, bF as Nb, bG as hT, bH as Zv, bI as eT, bJ as Jv, bK as CDSS_SERVER_CONFIG_URL, bL as Ib, bM as ec, bN as q0, bO as Ge, bP as Ykt, bQ as Sb2, bR as tw, bS as wv, bT as _v, bU as Hb2, bV as Qt, bW as Tv, bX as vv, bY as bv, bZ as Lkt, b_ as _kt, b$ as f0, c0 as Rv, c1 as Mi, c2 as w_, c3 as BAHMNI_CLINICAL_PATH, c4 as F_, c5 as dw, c6 as Rb2, c7 as Db2, c8 as Sz2, c9 as O$t, ca as U_, cb as Fkt } from "./index-CZTbfcb1.js";
3
3
  import * as React from "react";
4
4
  import React__default, { createContext, useContext, useState, useCallback, useEffect, useMemo, Children, useRef, useLayoutEffect, forwardRef, isValidElement, cloneElement, useReducer, Component, useImperativeHandle, PureComponent, createRef, useSyncExternalStore, Suspense } from "react";
5
5
  import { useQuery, useQueries, useQueryClient } from "@tanstack/react-query";
6
6
  import { useNavigate, useSearchParams } from "react-router-dom";
7
- import { u as useClinicalConfig } from "./hook-BxtXi8AK.js";
7
+ import { u as useClinicalConfig } from "./hook-DBBWOgzd.js";
8
8
  import * as ReactDOM from "react-dom";
9
9
  import ReactDOM__default, { createPortal } from "react-dom";
10
10
  var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
@@ -1986,7 +1986,7 @@ const createImpl = (p) => {
1986
1986
  validate: () => {
1987
1987
  const a = c();
1988
1988
  if (!a.medicationToStop) return !0;
1989
- const s = a.inputControlKey === LNt, f = {}, d = a.fieldConfig;
1989
+ const s = a.inputControlKey === LAt, f = {}, d = a.fieldConfig;
1990
1990
  let h = !0;
1991
1991
  return d.stopDate?.isVisible !== !1 && d.stopDate?.isMandatory && !a.stopDate && (f.stopDate = "STOP_MEDICATION_DATE_REQUIRED", h = !1), d.stopReason?.isVisible !== !1 && d.stopReason?.isMandatory && !a.stopReason && (f.stopReason = s ? "CANCEL_VACCINATION_REASON_REQUIRED" : "STOP_MEDICATION_REASON_REQUIRED", h = !1), d.note?.isVisible !== !1 && d.note?.isMandatory && !a.note && (f.note = "STOP_MEDICATION_NOTE_REQUIRED", h = !1), p({ errors: f }), h;
1992
1992
  },
@@ -2239,14 +2239,14 @@ const useLocations = () => {
2239
2239
  O,
2240
2240
  g,
2241
2241
  _e
2242
- ]), /* @__PURE__ */ jsxs(zb2, { condensed: !1, narrow: !1, "data-testid": "encounter-details-grid", children: [
2243
- /* @__PURE__ */ jsx(bb2, { sm: 4, md: 8, lg: 5, xl: 12, className: styles$l.column, children: /* @__PURE__ */ jsx(
2242
+ ]), /* @__PURE__ */ jsxs(yb2, { condensed: !1, narrow: !1, "data-testid": "encounter-details-grid", children: [
2243
+ /* @__PURE__ */ jsx(Nb2, { sm: 4, md: 8, lg: 5, xl: 12, className: styles$l.column, children: /* @__PURE__ */ jsx(
2244
2244
  FormField,
2245
2245
  {
2246
2246
  isLoading: !F && !H,
2247
2247
  placeholder: /* @__PURE__ */ jsx(DropdownPlaceholder, {}),
2248
2248
  children: /* @__PURE__ */ jsx(
2249
- xb2,
2249
+ Lb2,
2250
2250
  {
2251
2251
  id: "location-dropdown",
2252
2252
  "data-testid": "location-dropdown",
@@ -2261,13 +2261,13 @@ const useLocations = () => {
2261
2261
  )
2262
2262
  }
2263
2263
  ) }),
2264
- /* @__PURE__ */ jsx(bb2, { sm: 4, md: 8, lg: 5, xl: 12, className: styles$l.column, children: /* @__PURE__ */ jsx(
2264
+ /* @__PURE__ */ jsx(Nb2, { sm: 4, md: 8, lg: 5, xl: 12, className: styles$l.column, children: /* @__PURE__ */ jsx(
2265
2265
  FormField,
2266
2266
  {
2267
2267
  isLoading: !k && !B,
2268
2268
  placeholder: /* @__PURE__ */ jsx(DropdownPlaceholder, {}),
2269
2269
  children: /* @__PURE__ */ jsx(
2270
- xb2,
2270
+ Lb2,
2271
2271
  {
2272
2272
  id: "encounter-type-dropdown",
2273
2273
  "data-testid": "encounter-type-dropdown",
@@ -2282,13 +2282,13 @@ const useLocations = () => {
2282
2282
  )
2283
2283
  }
2284
2284
  ) }),
2285
- /* @__PURE__ */ jsx(bb2, { sm: 4, md: 8, lg: 5, xl: 12, className: styles$l.column, children: /* @__PURE__ */ jsx(
2285
+ /* @__PURE__ */ jsx(Nb2, { sm: 4, md: 8, lg: 5, xl: 12, className: styles$l.column, children: /* @__PURE__ */ jsx(
2286
2286
  FormField,
2287
2287
  {
2288
2288
  isLoading: !U && !B,
2289
2289
  placeholder: /* @__PURE__ */ jsx(DropdownPlaceholder, {}),
2290
2290
  children: /* @__PURE__ */ jsx(
2291
- xb2,
2291
+ Lb2,
2292
2292
  {
2293
2293
  id: "visit-type-dropdown",
2294
2294
  "data-testid": "visit-type-dropdown",
@@ -2307,13 +2307,13 @@ const useLocations = () => {
2307
2307
  )
2308
2308
  }
2309
2309
  ) }),
2310
- /* @__PURE__ */ jsx(bb2, { sm: 4, md: 8, lg: 5, className: styles$l.column, children: /* @__PURE__ */ jsx(
2310
+ /* @__PURE__ */ jsx(Nb2, { sm: 4, md: 8, lg: 5, className: styles$l.column, children: /* @__PURE__ */ jsx(
2311
2311
  FormField,
2312
2312
  {
2313
2313
  isLoading: !I && !O,
2314
2314
  placeholder: /* @__PURE__ */ jsx(DropdownPlaceholder, {}),
2315
2315
  children: /* @__PURE__ */ jsx(
2316
- xb2,
2316
+ Lb2,
2317
2317
  {
2318
2318
  id: "practitioner-dropdown",
2319
2319
  "data-testid": "practitioner-dropdown",
@@ -2328,7 +2328,7 @@ const useLocations = () => {
2328
2328
  )
2329
2329
  }
2330
2330
  ) }),
2331
- /* @__PURE__ */ jsx(bb2, { sm: 4, md: 8, lg: 5, className: styles$l.column, children: /* @__PURE__ */ jsx(
2331
+ /* @__PURE__ */ jsx(Nb2, { sm: 4, md: 8, lg: 5, className: styles$l.column, children: /* @__PURE__ */ jsx(
2332
2332
  FormField,
2333
2333
  {
2334
2334
  isLoading: !K,
@@ -2359,8 +2359,8 @@ const useLocations = () => {
2359
2359
  placeholder: c,
2360
2360
  children: a
2361
2361
  }) => p ? c : a, DropdownPlaceholder = React__default.memo(() => /* @__PURE__ */ jsxs(Fragment, { children: [
2362
- /* @__PURE__ */ jsx(Eb2, { className: styles$l.skeletonTitle }),
2363
- /* @__PURE__ */ jsx(Eb2, { className: styles$l.skeletonBody })
2362
+ /* @__PURE__ */ jsx(Vb2, { className: styles$l.skeletonTitle }),
2363
+ /* @__PURE__ */ jsx(Vb2, { className: styles$l.skeletonBody })
2364
2364
  ] }));
2365
2365
  DropdownPlaceholder.displayName = "DropdownPlaceholder";
2366
2366
  registerInputControl({
@@ -139769,9 +139769,9 @@ const useAllergenSearch = (p = "") => {
139769
139769
  hasBeenValidated: D
139770
139770
  } = p, z = !!(D && I.severity), O = !!(D && I.reactions), F = !!(D && I.nonCodedAllergen), [k, U] = useState(!!$);
139771
139771
  return /* @__PURE__ */ jsxs(Fragment, { children: [
139772
- /* @__PURE__ */ jsxs(zb2, { "data-testid": `selected-allergy-item-grid-${g}`, children: [
139772
+ /* @__PURE__ */ jsxs(yb2, { "data-testid": `selected-allergy-item-grid-${g}`, children: [
139773
139773
  /* @__PURE__ */ jsxs(
139774
- bb2,
139774
+ Nb2,
139775
139775
  {
139776
139776
  sm: 4,
139777
139777
  md: 5,
@@ -139786,7 +139786,7 @@ const useAllergenSearch = (p = "") => {
139786
139786
  "]"
139787
139787
  ] }),
139788
139788
  !k && /* @__PURE__ */ jsx(
139789
- Nb2,
139789
+ Ab2,
139790
139790
  {
139791
139791
  href: "#",
139792
139792
  "data-testid": `allergy-add-note-link-${g}`,
@@ -139801,7 +139801,7 @@ const useAllergenSearch = (p = "") => {
139801
139801
  }
139802
139802
  ),
139803
139803
  /* @__PURE__ */ jsx(
139804
- bb2,
139804
+ Nb2,
139805
139805
  {
139806
139806
  sm: 4,
139807
139807
  md: 3,
@@ -139809,7 +139809,7 @@ const useAllergenSearch = (p = "") => {
139809
139809
  xlg: 3,
139810
139810
  className: styles$k.selectedAllergySeverity,
139811
139811
  children: /* @__PURE__ */ jsx(
139812
- xb2,
139812
+ Lb2,
139813
139813
  {
139814
139814
  id: `allergy-severity-dropdown-${g}`,
139815
139815
  "data-testid": `allergy-severity-dropdown-${g}`,
@@ -139831,7 +139831,7 @@ const useAllergenSearch = (p = "") => {
139831
139831
  }
139832
139832
  ),
139833
139833
  /* @__PURE__ */ jsx(
139834
- bb2,
139834
+ Nb2,
139835
139835
  {
139836
139836
  sm: 4,
139837
139837
  md: 4,
@@ -139839,7 +139839,7 @@ const useAllergenSearch = (p = "") => {
139839
139839
  xlg: 4,
139840
139840
  className: styles$k.selectedAllergyReactions,
139841
139841
  children: /* @__PURE__ */ jsx(
139842
- Ob2,
139842
+ Zb2,
139843
139843
  {
139844
139844
  id: `allergy-reactions-multiselect-${g}`,
139845
139845
  "data-testid": `allergy-reactions-multiselect-${g}`,
@@ -139862,7 +139862,7 @@ const useAllergenSearch = (p = "") => {
139862
139862
  )
139863
139863
  ] }),
139864
139864
  c && /* @__PURE__ */ jsx(
139865
- pb2,
139865
+ hb2,
139866
139866
  {
139867
139867
  id: `allergy-non-coded-name-${g}`,
139868
139868
  "data-testid": `allergy-non-coded-name-${g}`,
@@ -139876,7 +139876,7 @@ const useAllergenSearch = (p = "") => {
139876
139876
  }
139877
139877
  ),
139878
139878
  k && /* @__PURE__ */ jsx(
139879
- Iz2,
139879
+ Pz2,
139880
139880
  {
139881
139881
  id: `allergy-note-${g}`,
139882
139882
  "data-testid": `allergy-note-${g}`,
@@ -140038,7 +140038,7 @@ const allergiesFormTile = "AllergiesForm-module_allergiesFormTile__1UsbU", aller
140038
140038
  a
140039
140039
  ]);
140040
140040
  return !d && !(c && h) ? null : /* @__PURE__ */ jsxs(
140041
- Xy2,
140041
+ Qy2,
140042
140042
  {
140043
140043
  className: styles$j.allergiesFormTile,
140044
140044
  "data-testid": "allergies-form-tile",
@@ -140052,7 +140052,7 @@ const allergiesFormTile = "AllergiesForm-module_allergiesFormTile__1UsbU", aller
140052
140052
  }
140053
140053
  ),
140054
140054
  !c && /* @__PURE__ */ jsx(
140055
- fb2,
140055
+ pb2,
140056
140056
  {
140057
140057
  id: "allergies-search",
140058
140058
  "data-testid": "allergies-search-combobox",
@@ -140073,7 +140073,7 @@ const allergiesFormTile = "AllergiesForm-module_allergiesFormTile__1UsbU", aller
140073
140073
  }
140074
140074
  ),
140075
140075
  H && /* @__PURE__ */ jsx(
140076
- tN2,
140076
+ nN2,
140077
140077
  {
140078
140078
  kind: "error",
140079
140079
  lowContrast: !0,
@@ -140084,12 +140084,12 @@ const allergiesFormTile = "AllergiesForm-module_allergiesFormTile__1UsbU", aller
140084
140084
  }
140085
140085
  ),
140086
140086
  I && I.length > 0 && /* @__PURE__ */ jsx(
140087
- kb2,
140087
+ Ib2,
140088
140088
  {
140089
140089
  title: a("ALLERGIES_ADDED_ALLERGIES"),
140090
140090
  className: styles$j.allergiesBox,
140091
140091
  children: I.map((he) => /* @__PURE__ */ jsx(
140092
- Bb2,
140092
+ kb2,
140093
140093
  {
140094
140094
  className: styles$j.selectedAllergyItem,
140095
140095
  onClose: () => z(he.entryId),
@@ -140223,9 +140223,9 @@ const useInvestigationsSearch = (p = "") => {
140223
140223
  c(V ? "stat" : "routine");
140224
140224
  };
140225
140225
  return /* @__PURE__ */ jsxs(Fragment, { children: [
140226
- /* @__PURE__ */ jsxs(zb2, { "data-testid": `selected-investigation-item-grid-${s}`, children: [
140226
+ /* @__PURE__ */ jsxs(yb2, { "data-testid": `selected-investigation-item-grid-${s}`, children: [
140227
140227
  /* @__PURE__ */ jsxs(
140228
- bb2,
140228
+ Nb2,
140229
140229
  {
140230
140230
  sm: 4,
140231
140231
  md: 7,
@@ -140235,7 +140235,7 @@ const useInvestigationsSearch = (p = "") => {
140235
140235
  children: [
140236
140236
  /* @__PURE__ */ jsx("span", { "data-testid": `investigation-display-name-${s}`, children: f }),
140237
140237
  !E && /* @__PURE__ */ jsx(
140238
- Nb2,
140238
+ Ab2,
140239
140239
  {
140240
140240
  href: "#",
140241
140241
  "data-testid": `investigation-add-note-link-${s}`,
@@ -140250,7 +140250,7 @@ const useInvestigationsSearch = (p = "") => {
140250
140250
  }
140251
140251
  ),
140252
140252
  /* @__PURE__ */ jsx(
140253
- bb2,
140253
+ Nb2,
140254
140254
  {
140255
140255
  sm: 4,
140256
140256
  md: 2,
@@ -140258,7 +140258,7 @@ const useInvestigationsSearch = (p = "") => {
140258
140258
  xlg: 4,
140259
140259
  className: styles$i.selectedInvestigationUrgentPriority,
140260
140260
  children: /* @__PURE__ */ jsx(
140261
- Lb2,
140261
+ _b2,
140262
140262
  {
140263
140263
  id: `investigation-priority-checkbox-${s}`,
140264
140264
  "data-testid": `investigation-priority-checkbox-${s}`,
@@ -140270,7 +140270,7 @@ const useInvestigationsSearch = (p = "") => {
140270
140270
  )
140271
140271
  ] }),
140272
140272
  E && /* @__PURE__ */ jsx(
140273
- Iz2,
140273
+ Pz2,
140274
140274
  {
140275
140275
  id: `investigation-note-${s}`,
140276
140276
  "data-testid": `investigation-note-${s}`,
@@ -140419,7 +140419,7 @@ const investigationsFormTile = "InvestigationsForm-module_investigationsFormTile
140419
140419
  }
140420
140420
  };
140421
140421
  return s ? /* @__PURE__ */ jsxs(
140422
- Xy2,
140422
+ Qy2,
140423
140423
  {
140424
140424
  className: styles$h.investigationsFormTile,
140425
140425
  "data-testid": "investigations-form-tile",
@@ -140433,7 +140433,7 @@ const investigationsFormTile = "InvestigationsForm-module_investigationsFormTile
140433
140433
  }
140434
140434
  ),
140435
140435
  /* @__PURE__ */ jsx(
140436
- fb2,
140436
+ pb2,
140437
140437
  {
140438
140438
  id: "investigations-procedures-search",
140439
140439
  "data-testid": "investigations-search-combobox",
@@ -140451,7 +140451,7 @@ const investigationsFormTile = "InvestigationsForm-module_investigationsFormTile
140451
140451
  }
140452
140452
  ),
140453
140453
  g && /* @__PURE__ */ jsx(
140454
- tN2,
140454
+ nN2,
140455
140455
  {
140456
140456
  kind: "error",
140457
140457
  lowContrast: !0,
@@ -140462,14 +140462,14 @@ const investigationsFormTile = "InvestigationsForm-module_investigationsFormTile
140462
140462
  }
140463
140463
  ),
140464
140464
  U && U.size > 0 && Array.from(U.keys()).map((ne) => /* @__PURE__ */ jsx(
140465
- kb2,
140465
+ Ib2,
140466
140466
  {
140467
140467
  title: p("INVESTIGATIONS_ADDED", {
140468
140468
  investigationType: T(ne)
140469
140469
  }),
140470
140470
  className: styles$h.addedInvestigationsBox,
140471
140471
  children: U.get(ne)?.map((oe) => /* @__PURE__ */ jsx(
140472
- Bb2,
140472
+ kb2,
140473
140473
  {
140474
140474
  onClose: () => X(ne, oe.uid),
140475
140475
  className: styles$h.selectedInvestigationItem,
@@ -140546,9 +140546,9 @@ const useConceptSearch = (p, c = 20, a = 500) => {
140546
140546
  errors: E,
140547
140547
  hasBeenValidated: g
140548
140548
  } = p, R = !!(g && E.durationValue), V = !!(g && E.durationUnit);
140549
- return /* @__PURE__ */ jsxs(zb2, { children: [
140549
+ return /* @__PURE__ */ jsxs(yb2, { children: [
140550
140550
  /* @__PURE__ */ jsx(
140551
- bb2,
140551
+ Nb2,
140552
140552
  {
140553
140553
  sm: 4,
140554
140554
  md: 7,
@@ -140559,7 +140559,7 @@ const useConceptSearch = (p, c = 20, a = 500) => {
140559
140559
  }
140560
140560
  ),
140561
140561
  /* @__PURE__ */ jsxs(
140562
- bb2,
140562
+ Nb2,
140563
140563
  {
140564
140564
  sm: 4,
140565
140565
  md: 2,
@@ -140568,7 +140568,7 @@ const useConceptSearch = (p, c = 20, a = 500) => {
140568
140568
  className: styles$g.selectedConditionDuration,
140569
140569
  children: [
140570
140570
  /* @__PURE__ */ jsx(
140571
- pb2,
140571
+ hb2,
140572
140572
  {
140573
140573
  id: `condition-duration-value-${s}`,
140574
140574
  labelText: a("CONDITIONS_DURATION_VALUE_LABEL"),
@@ -140592,7 +140592,7 @@ const useConceptSearch = (p, c = 20, a = 500) => {
140592
140592
  }
140593
140593
  ),
140594
140594
  /* @__PURE__ */ jsx(
140595
- xb2,
140595
+ Lb2,
140596
140596
  {
140597
140597
  id: `condition-duration-unit-${s}`,
140598
140598
  titleText: a("CONDITIONS_DURATION_UNIT_LABEL"),
@@ -140641,9 +140641,9 @@ const CERTAINITY_CONCEPTS = [
140641
140641
  doesConditionExist: s = !1
140642
140642
  }) => {
140643
140643
  const { t: f } = useTranslation(), { id: d, display: h, selectedCertainty: E, errors: g, hasBeenValidated: R } = p, V = !!(R && g.certainty);
140644
- return /* @__PURE__ */ jsxs(zb2, { "data-testid": "selected-diagnosis-item-grid", children: [
140644
+ return /* @__PURE__ */ jsxs(yb2, { "data-testid": "selected-diagnosis-item-grid", children: [
140645
140645
  /* @__PURE__ */ jsxs(
140646
- bb2,
140646
+ Nb2,
140647
140647
  {
140648
140648
  sm: 4,
140649
140649
  md: 7,
@@ -140653,7 +140653,7 @@ const CERTAINITY_CONCEPTS = [
140653
140653
  children: [
140654
140654
  /* @__PURE__ */ jsx("span", { "data-testid": `diagnosis-display-name-${d}`, children: h }),
140655
140655
  /* @__PURE__ */ jsx(
140656
- Nb2,
140656
+ Ab2,
140657
140657
  {
140658
140658
  "data-testid": "add-as-condition-link",
140659
140659
  href: "#",
@@ -140670,7 +140670,7 @@ const CERTAINITY_CONCEPTS = [
140670
140670
  }
140671
140671
  ),
140672
140672
  /* @__PURE__ */ jsx(
140673
- bb2,
140673
+ Nb2,
140674
140674
  {
140675
140675
  sm: 4,
140676
140676
  md: 2,
@@ -140678,7 +140678,7 @@ const CERTAINITY_CONCEPTS = [
140678
140678
  xlg: 4,
140679
140679
  className: styles$f.selectedDiagnosisCertainty,
140680
140680
  children: /* @__PURE__ */ jsx(
140681
- xb2,
140681
+ Lb2,
140682
140682
  {
140683
140683
  id: `diagnoses-certainty-dropdown-${d}`,
140684
140684
  testId: `diagnoses-certainty-dropdown-${d}`,
@@ -140830,7 +140830,7 @@ const conditionsAndDiagnosesTile = "ConditionsAndDiagnoses-module_conditionsAndD
140830
140830
  p
140831
140831
  ]);
140832
140832
  return s ? /* @__PURE__ */ jsxs(
140833
- Xy2,
140833
+ Qy2,
140834
140834
  {
140835
140835
  className: styles$e.conditionsAndDiagnosesTile,
140836
140836
  "data-testid": "conditions-and-diagnoses-tile",
@@ -140844,7 +140844,7 @@ const conditionsAndDiagnosesTile = "ConditionsAndDiagnoses-module_conditionsAndD
140844
140844
  }
140845
140845
  ),
140846
140846
  /* @__PURE__ */ jsx(
140847
- fb2,
140847
+ pb2,
140848
140848
  {
140849
140849
  id: "diagnoses-search",
140850
140850
  "data-testid": "diagnoses-search-combobox",
@@ -140862,7 +140862,7 @@ const conditionsAndDiagnosesTile = "ConditionsAndDiagnoses-module_conditionsAndD
140862
140862
  }
140863
140863
  ),
140864
140864
  g && /* @__PURE__ */ jsx(
140865
- tN2,
140865
+ nN2,
140866
140866
  {
140867
140867
  kind: "error",
140868
140868
  lowContrast: !0,
@@ -140873,12 +140873,12 @@ const conditionsAndDiagnosesTile = "ConditionsAndDiagnoses-module_conditionsAndD
140873
140873
  }
140874
140874
  ),
140875
140875
  V && V.length > 0 && /* @__PURE__ */ jsx(
140876
- kb2,
140876
+ Ib2,
140877
140877
  {
140878
140878
  title: p("DIAGNOSES_ADDED_DIAGNOSES"),
140879
140879
  className: styles$e.conditionsAndDiagnosesBox,
140880
140880
  children: V.map((ae) => /* @__PURE__ */ jsx(
140881
- Bb2,
140881
+ kb2,
140882
140882
  {
140883
140883
  className: styles$e.selectedDiagnosisItem,
140884
140884
  onClose: () => $(ae.id),
@@ -140897,12 +140897,12 @@ const conditionsAndDiagnosesTile = "ConditionsAndDiagnoses-module_conditionsAndD
140897
140897
  }
140898
140898
  ),
140899
140899
  H && H.length > 0 && /* @__PURE__ */ jsx(
140900
- kb2,
140900
+ Ib2,
140901
140901
  {
140902
140902
  title: p("CONDITIONS_SECTION_TITLE"),
140903
140903
  className: styles$e.conditionsAndDiagnosesBox,
140904
140904
  children: H.map((ae) => /* @__PURE__ */ jsx(
140905
- Bb2,
140905
+ kb2,
140906
140906
  {
140907
140907
  className: styles$e.selectedConditionItem,
140908
140908
  onClose: () => D(ae.id),
@@ -141080,7 +141080,7 @@ function parseStartDate(p, c) {
141080
141080
  return a ? new Date(a) : c ? /* @__PURE__ */ new Date() : /* @__PURE__ */ new Date();
141081
141081
  }
141082
141082
  const CDSCardAlert = ({ card: p, className: c }) => /* @__PURE__ */ jsx(
141083
- tN2,
141083
+ nN2,
141084
141084
  {
141085
141085
  kind: ((s) => {
141086
141086
  switch (s) {
@@ -141814,7 +141814,7 @@ const column$2 = "SelectedMedicationRequestItem-module_column__RoFL-", itemTitle
141814
141814
  const Ee = ee.split("(")[0], Ie = ee.includes("(") ? "(" + ee.split("(").slice(1).join("(") : "";
141815
141815
  return /* @__PURE__ */ jsxs(Fragment, { children: [
141816
141816
  /* @__PURE__ */ jsxs(
141817
- zb2,
141817
+ yb2,
141818
141818
  {
141819
141819
  condensed: !1,
141820
141820
  narrow: !1,
@@ -141822,7 +141822,7 @@ const column$2 = "SelectedMedicationRequestItem-module_column__RoFL-", itemTitle
141822
141822
  "data-testid": `${a}-selected-item-${k}-test-id`,
141823
141823
  "aria-label": `${a}-selected-item-${k}-aria-label`,
141824
141824
  children: [
141825
- /* @__PURE__ */ jsxs(bb2, { sm: 2, md: 4, lg: 8, className: styles$d.itemTitle, children: [
141825
+ /* @__PURE__ */ jsxs(Nb2, { sm: 2, md: 4, lg: 8, className: styles$d.itemTitle, children: [
141826
141826
  /* @__PURE__ */ jsx(
141827
141827
  "span",
141828
141828
  {
@@ -141853,9 +141853,9 @@ const column$2 = "SelectedMedicationRequestItem-module_column__RoFL-", itemTitle
141853
141853
  }
141854
141854
  )
141855
141855
  ] }),
141856
- /* @__PURE__ */ jsxs(bb2, { sm: 2, md: 4, lg: 8, className: styles$d.itemActions, children: [
141856
+ /* @__PURE__ */ jsxs(Nb2, { sm: 2, md: 4, lg: 8, className: styles$d.itemActions, children: [
141857
141857
  findAttr$1("stat", s) && /* @__PURE__ */ jsx(
141858
- Lb2,
141858
+ _b2,
141859
141859
  {
141860
141860
  id: `${a}-stat-checkbox-${k}`,
141861
141861
  "data-testid": `${a}-stat-checkbox-${k}-test-id`,
@@ -141870,7 +141870,7 @@ const column$2 = "SelectedMedicationRequestItem-module_column__RoFL-", itemTitle
141870
141870
  }
141871
141871
  ),
141872
141872
  F && findAttr$1("prn", s) && /* @__PURE__ */ jsx(
141873
- Lb2,
141873
+ _b2,
141874
141874
  {
141875
141875
  id: `${a}-prn-checkbox-${k}`,
141876
141876
  "data-testid": `${a}-prn-checkbox-${k}-test-id`,
@@ -141884,7 +141884,7 @@ const column$2 = "SelectedMedicationRequestItem-module_column__RoFL-", itemTitle
141884
141884
  }
141885
141885
  )
141886
141886
  ] }),
141887
- (findAttr$1("dosage", s) ?? findAttr$1("dosageUnit", s)) && /* @__PURE__ */ jsxs(bb2, { sm: 2, md: 4, lg: 8, className: styles$d.dosageControls, children: [
141887
+ (findAttr$1("dosage", s) ?? findAttr$1("dosageUnit", s)) && /* @__PURE__ */ jsxs(Nb2, { sm: 2, md: 4, lg: 8, className: styles$d.dosageControls, children: [
141888
141888
  findAttr$1("dosage", s) && /* @__PURE__ */ jsx(
141889
141889
  ix2,
141890
141890
  {
@@ -141911,7 +141911,7 @@ const column$2 = "SelectedMedicationRequestItem-module_column__RoFL-", itemTitle
141911
141911
  }
141912
141912
  ),
141913
141913
  findAttr$1("dosageUnit", s) && /* @__PURE__ */ jsx(
141914
- xb2,
141914
+ Lb2,
141915
141915
  {
141916
141916
  id: `${a}-dosage-unit-dropdown-${k}`,
141917
141917
  "data-testid": `${a}-dosage-unit-dropdown-${k}-test-id`,
@@ -141936,8 +141936,8 @@ const column$2 = "SelectedMedicationRequestItem-module_column__RoFL-", itemTitle
141936
141936
  }
141937
141937
  )
141938
141938
  ] }),
141939
- findAttr$1("frequency", s) && /* @__PURE__ */ jsx(bb2, { sm: 1, md: 4, lg: 8, className: styles$d.column, children: /* @__PURE__ */ jsx(
141940
- xb2,
141939
+ findAttr$1("frequency", s) && /* @__PURE__ */ jsx(Nb2, { sm: 1, md: 4, lg: 8, className: styles$d.column, children: /* @__PURE__ */ jsx(
141940
+ Lb2,
141941
141941
  {
141942
141942
  id: `${a}-frequency-dropdown-${k}`,
141943
141943
  "data-testid": `${a}-frequency-dropdown-${k}-test-id`,
@@ -141960,7 +141960,7 @@ const column$2 = "SelectedMedicationRequestItem-module_column__RoFL-", itemTitle
141960
141960
  disabled: (F ? ue && !Q : ue) || !!findAttr$1("frequency", s)?.readOnly
141961
141961
  }
141962
141962
  ) }),
141963
- (findAttr$1("duration", s) ?? findAttr$1("durationUnit", s)) && /* @__PURE__ */ jsxs(bb2, { sm: 2, md: 4, lg: 8, className: styles$d.durationControls, children: [
141963
+ (findAttr$1("duration", s) ?? findAttr$1("durationUnit", s)) && /* @__PURE__ */ jsxs(Nb2, { sm: 2, md: 4, lg: 8, className: styles$d.durationControls, children: [
141964
141964
  findAttr$1("duration", s) && /* @__PURE__ */ jsx(
141965
141965
  ix2,
141966
141966
  {
@@ -141986,7 +141986,7 @@ const column$2 = "SelectedMedicationRequestItem-module_column__RoFL-", itemTitle
141986
141986
  }
141987
141987
  ),
141988
141988
  findAttr$1("durationUnit", s) && /* @__PURE__ */ jsx(
141989
- xb2,
141989
+ Lb2,
141990
141990
  {
141991
141991
  id: `${a}-duration-unit-dropdown-${k}`,
141992
141992
  "data-testid": `${a}-duration-unit-dropdown-${k}-test-id`,
@@ -142011,8 +142011,8 @@ const column$2 = "SelectedMedicationRequestItem-module_column__RoFL-", itemTitle
142011
142011
  }
142012
142012
  )
142013
142013
  ] }),
142014
- findAttr$1("instruction", s) && /* @__PURE__ */ jsx(bb2, { sm: 1, md: 4, lg: 8, className: styles$d.column, children: /* @__PURE__ */ jsx(
142015
- xb2,
142014
+ findAttr$1("instruction", s) && /* @__PURE__ */ jsx(Nb2, { sm: 1, md: 4, lg: 8, className: styles$d.column, children: /* @__PURE__ */ jsx(
142015
+ Lb2,
142016
142016
  {
142017
142017
  id: `${a}-instructions-dropdown-${k}`,
142018
142018
  "data-testid": `${a}-instructions-dropdown-${k}-test-id`,
@@ -142034,8 +142034,8 @@ const column$2 = "SelectedMedicationRequestItem-module_column__RoFL-", itemTitle
142034
142034
  disabled: findAttr$1("instruction", s)?.readOnly
142035
142035
  }
142036
142036
  ) }),
142037
- findAttr$1("route", s) && /* @__PURE__ */ jsx(bb2, { sm: 1, md: 4, lg: 8, className: styles$d.column, children: /* @__PURE__ */ jsx(
142038
- xb2,
142037
+ findAttr$1("route", s) && /* @__PURE__ */ jsx(Nb2, { sm: 1, md: 4, lg: 8, className: styles$d.column, children: /* @__PURE__ */ jsx(
142038
+ Lb2,
142039
142039
  {
142040
142040
  id: `${a}-route-dropdown-${k}`,
142041
142041
  "data-testid": `${a}-route-dropdown-${k}-test-id`,
@@ -142058,7 +142058,7 @@ const column$2 = "SelectedMedicationRequestItem-module_column__RoFL-", itemTitle
142058
142058
  disabled: findAttr$1("route", s)?.readOnly
142059
142059
  }
142060
142060
  ) }),
142061
- findAttr$1("startDate", s) && /* @__PURE__ */ jsx(bb2, { sm: 2, md: 4, lg: 8, className: styles$d.column, children: /* @__PURE__ */ jsx(
142061
+ findAttr$1("startDate", s) && /* @__PURE__ */ jsx(Nb2, { sm: 2, md: 4, lg: 8, className: styles$d.column, children: /* @__PURE__ */ jsx(
142062
142062
  qL2,
142063
142063
  {
142064
142064
  datePickerType: "single",
@@ -142085,9 +142085,9 @@ const column$2 = "SelectedMedicationRequestItem-module_column__RoFL-", itemTitle
142085
142085
  )
142086
142086
  }
142087
142087
  ) }),
142088
- /* @__PURE__ */ jsxs(bb2, { sm: 4, md: 8, lg: 16, className: styles$d.footerRow, children: [
142088
+ /* @__PURE__ */ jsxs(Nb2, { sm: 4, md: 8, lg: 16, className: styles$d.footerRow, children: [
142089
142089
  findAttr$1("note", s) && !he && !ie && /* @__PURE__ */ jsx(
142090
- Nb2,
142090
+ Ab2,
142091
142091
  {
142092
142092
  href: "#",
142093
142093
  id: `${a}-add-note-link-${k}`,
@@ -142121,7 +142121,7 @@ const column$2 = "SelectedMedicationRequestItem-module_column__RoFL-", itemTitle
142121
142121
  }
142122
142122
  ),
142123
142123
  findAttr$1("note", s) && (he || ie) && /* @__PURE__ */ jsx(
142124
- Iz2,
142124
+ Pz2,
142125
142125
  {
142126
142126
  id: `${a}-note-${k}`,
142127
142127
  "data-testid": `${a}-note-${k}-test-id`,
@@ -142258,7 +142258,7 @@ const $schema$2 = "http://json-schema.org/draft-07/schema#", title$5 = "Medicati
142258
142258
  O
142259
142259
  ]);
142260
142260
  return /* @__PURE__ */ jsxs(
142261
- Xy2,
142261
+ Qy2,
142262
142262
  {
142263
142263
  id: `${a}-form-tile`,
142264
142264
  className: styles$c.form,
@@ -142276,7 +142276,7 @@ const $schema$2 = "http://json-schema.org/draft-07/schema#", title$5 = "Medicati
142276
142276
  }
142277
142277
  ),
142278
142278
  V && /* @__PURE__ */ jsx(
142279
- Cb2,
142279
+ xb2,
142280
142280
  {
142281
142281
  id: `${a}-loading-skeleton`,
142282
142282
  testId: `${a}-loading-skeleton-test-id`,
@@ -142296,7 +142296,7 @@ const $schema$2 = "http://json-schema.org/draft-07/schema#", title$5 = "Medicati
142296
142296
  }
142297
142297
  ),
142298
142298
  !V && !H && !X && /* @__PURE__ */ jsx(
142299
- fb2,
142299
+ pb2,
142300
142300
  {
142301
142301
  id: `${a}-search`,
142302
142302
  "data-testid": `${a}-search-combobox-test-id`,
@@ -142313,14 +142313,14 @@ const $schema$2 = "http://json-schema.org/draft-07/schema#", title$5 = "Medicati
142313
142313
  }
142314
142314
  ),
142315
142315
  R && F && F.length > 0 && /* @__PURE__ */ jsx(
142316
- kb2,
142316
+ Ib2,
142317
142317
  {
142318
142318
  title: c(`${a.toUpperCase()}_ADDED_TITLE`),
142319
142319
  className: styles$c.itemsBox,
142320
142320
  children: F.map((Q) => /* @__PURE__ */ jsxs("div", { children: [
142321
142321
  Q.cdsCards?.map((ne) => /* @__PURE__ */ jsx("div", { className: styles$c.cdsCardContainer, children: /* @__PURE__ */ jsx(CDSCardAlert, { card: ne, className: styles$c.cdsCard }) }, ne.summary)),
142322
142322
  /* @__PURE__ */ jsx(
142323
- Bb2,
142323
+ kb2,
142324
142324
  {
142325
142325
  onClose: () => U(Q.id),
142326
142326
  className: styles$c.selectedItem,
@@ -142963,13 +142963,13 @@ const form$1 = "ImmunizationForm-module_form__e68vP", title$3 = "ImmunizationFor
142963
142963
  }
142964
142964
  ),
142965
142965
  /* @__PURE__ */ jsxs(
142966
- zb2,
142966
+ yb2,
142967
142967
  {
142968
142968
  id: `selected-immunization-item-grid-${T}`,
142969
142969
  "data-testid": `selected-immunization-item-grid-${T}-test-id`,
142970
142970
  children: [
142971
- findAttr("drug", d) && /* @__PURE__ */ jsx(bb2, { sm: 4, md: 8, lg: 16, className: styles$b.column, children: /* @__PURE__ */ jsx(
142972
- fb2,
142971
+ findAttr("drug", d) && /* @__PURE__ */ jsx(Nb2, { sm: 4, md: 8, lg: 16, className: styles$b.column, children: /* @__PURE__ */ jsx(
142972
+ pb2,
142973
142973
  {
142974
142974
  id: `immunization-drug-name-combobox-${T}`,
142975
142975
  "data-testid": `immunization-drug-name-combobox-${T}-test-id`,
@@ -142998,7 +142998,7 @@ const form$1 = "ImmunizationForm-module_form__e68vP", title$3 = "ImmunizationFor
142998
142998
  invalidText: p.errors.drug ? $(p.errors.drug) : ""
142999
142999
  }
143000
143000
  ) }),
143001
- findAttr("administeredOn", d) && /* @__PURE__ */ jsx(bb2, { sm: 4, md: 2, lg: 5, className: styles$b.column, children: /* @__PURE__ */ jsx(
143001
+ findAttr("administeredOn", d) && /* @__PURE__ */ jsx(Nb2, { sm: 4, md: 2, lg: 5, className: styles$b.column, children: /* @__PURE__ */ jsx(
143002
143002
  qL2,
143003
143003
  {
143004
143004
  datePickerType: "single",
@@ -143020,8 +143020,8 @@ const form$1 = "ImmunizationForm-module_form__e68vP", title$3 = "ImmunizationFor
143020
143020
  )
143021
143021
  }
143022
143022
  ) }),
143023
- findAttr("administeredLocation", d) && /* @__PURE__ */ jsx(bb2, { sm: 4, md: 2, lg: 5, className: styles$b.column, children: /* @__PURE__ */ jsx(
143024
- fb2,
143023
+ findAttr("administeredLocation", d) && /* @__PURE__ */ jsx(Nb2, { sm: 4, md: 2, lg: 5, className: styles$b.column, children: /* @__PURE__ */ jsx(
143024
+ pb2,
143025
143025
  {
143026
143026
  id: `immunization-administered-location-combobox-${T}`,
143027
143027
  "data-testid": `immunization-administered-location-${T}-test-id`,
@@ -143053,8 +143053,8 @@ const form$1 = "ImmunizationForm-module_form__e68vP", title$3 = "ImmunizationFor
143053
143053
  invalidText: p.errors.administeredLocation ? $(p.errors.administeredLocation) : ""
143054
143054
  }
143055
143055
  ) }),
143056
- findAttr("route", d) && /* @__PURE__ */ jsx(bb2, { sm: 4, md: 2, lg: 5, className: styles$b.column, children: /* @__PURE__ */ jsx(
143057
- fb2,
143056
+ findAttr("route", d) && /* @__PURE__ */ jsx(Nb2, { sm: 4, md: 2, lg: 5, className: styles$b.column, children: /* @__PURE__ */ jsx(
143057
+ pb2,
143058
143058
  {
143059
143059
  id: `immunization-route-combobox-${T}`,
143060
143060
  "data-testid": `immunization-route-${T}-test-id`,
@@ -143071,8 +143071,8 @@ const form$1 = "ImmunizationForm-module_form__e68vP", title$3 = "ImmunizationFor
143071
143071
  invalidText: p.errors.route ? $(p.errors.route) : ""
143072
143072
  }
143073
143073
  ) }),
143074
- findAttr("site", d) && /* @__PURE__ */ jsx(bb2, { sm: 4, md: 2, lg: 5, className: styles$b.column, children: /* @__PURE__ */ jsx(
143075
- fb2,
143074
+ findAttr("site", d) && /* @__PURE__ */ jsx(Nb2, { sm: 4, md: 2, lg: 5, className: styles$b.column, children: /* @__PURE__ */ jsx(
143075
+ pb2,
143076
143076
  {
143077
143077
  id: `immunization-site-combobox-${T}`,
143078
143078
  "data-testid": `immunization-site-${T}-test-id`,
@@ -143089,8 +143089,8 @@ const form$1 = "ImmunizationForm-module_form__e68vP", title$3 = "ImmunizationFor
143089
143089
  invalidText: p.errors.site ? $(p.errors.site) : ""
143090
143090
  }
143091
143091
  ) }),
143092
- findAttr("statusReason", d) && /* @__PURE__ */ jsx(bb2, { sm: 4, md: 8, lg: 16, className: styles$b.column, children: /* @__PURE__ */ jsx(
143093
- fb2,
143092
+ findAttr("statusReason", d) && /* @__PURE__ */ jsx(Nb2, { sm: 4, md: 8, lg: 16, className: styles$b.column, children: /* @__PURE__ */ jsx(
143093
+ pb2,
143094
143094
  {
143095
143095
  id: `immunization-status-reason-combobox-${T}`,
143096
143096
  "data-testid": `immunization-status-reason-${T}-test-id`,
@@ -143117,8 +143117,8 @@ const form$1 = "ImmunizationForm-module_form__e68vP", title$3 = "ImmunizationFor
143117
143117
  invalidText: p.errors.statusReason ? $(p.errors.statusReason) : ""
143118
143118
  }
143119
143119
  ) }),
143120
- findAttr("manufacturer", d) && /* @__PURE__ */ jsx(bb2, { sm: 4, md: 2, lg: 5, className: styles$b.column, children: /* @__PURE__ */ jsx(
143121
- pb2,
143120
+ findAttr("manufacturer", d) && /* @__PURE__ */ jsx(Nb2, { sm: 4, md: 2, lg: 5, className: styles$b.column, children: /* @__PURE__ */ jsx(
143121
+ hb2,
143122
143122
  {
143123
143123
  id: `immunization-manufacturer-${T}`,
143124
143124
  "data-testid": `immunization-manufacturer-${T}`,
@@ -143132,8 +143132,8 @@ const form$1 = "ImmunizationForm-module_form__e68vP", title$3 = "ImmunizationFor
143132
143132
  invalidText: p.errors.manufacturer ? $(p.errors.manufacturer) : ""
143133
143133
  }
143134
143134
  ) }),
143135
- findAttr("batchNumber", d) && /* @__PURE__ */ jsx(bb2, { sm: 4, md: 2, lg: 5, className: styles$b.column, children: /* @__PURE__ */ jsx(
143136
- fb2,
143135
+ findAttr("batchNumber", d) && /* @__PURE__ */ jsx(Nb2, { sm: 4, md: 2, lg: 5, className: styles$b.column, children: /* @__PURE__ */ jsx(
143136
+ pb2,
143137
143137
  {
143138
143138
  id: `immunization-batch-number-${T}`,
143139
143139
  "data-testid": `immunization-batch-number-${T}`,
@@ -143159,7 +143159,7 @@ const form$1 = "ImmunizationForm-module_form__e68vP", title$3 = "ImmunizationFor
143159
143159
  invalidText: p.errors.batchNumber ? $(p.errors.batchNumber) : ""
143160
143160
  }
143161
143161
  ) }),
143162
- findAttr("doseSequence", d) && /* @__PURE__ */ jsx(bb2, { sm: 4, md: 2, lg: 5, className: styles$b.column, children: /* @__PURE__ */ jsx(
143162
+ findAttr("doseSequence", d) && /* @__PURE__ */ jsx(Nb2, { sm: 4, md: 2, lg: 5, className: styles$b.column, children: /* @__PURE__ */ jsx(
143163
143163
  ix2,
143164
143164
  {
143165
143165
  id: `immunization-dose-sequence-${T}`,
@@ -143176,7 +143176,7 @@ const form$1 = "ImmunizationForm-module_form__e68vP", title$3 = "ImmunizationFor
143176
143176
  className: styles$b.doseSequenceInput
143177
143177
  }
143178
143178
  ) }),
143179
- findAttr("expiryDate", d) && /* @__PURE__ */ jsx(bb2, { sm: 4, md: 2, lg: 5, className: styles$b.column, children: /* @__PURE__ */ jsx(
143179
+ findAttr("expiryDate", d) && /* @__PURE__ */ jsx(Nb2, { sm: 4, md: 2, lg: 5, className: styles$b.column, children: /* @__PURE__ */ jsx(
143180
143180
  qL2,
143181
143181
  {
143182
143182
  datePickerType: "single",
@@ -143202,8 +143202,8 @@ const form$1 = "ImmunizationForm-module_form__e68vP", title$3 = "ImmunizationFor
143202
143202
  )
143203
143203
  }
143204
143204
  ) }),
143205
- findAttr("note", d) && /* @__PURE__ */ jsx(bb2, { sm: 4, md: 8, lg: 16, className: styles$b.column, children: !Q && !ue && !p.errors.note ? /* @__PURE__ */ jsx(
143206
- Nb2,
143205
+ findAttr("note", d) && /* @__PURE__ */ jsx(Nb2, { sm: 4, md: 8, lg: 16, className: styles$b.column, children: !Q && !ue && !p.errors.note ? /* @__PURE__ */ jsx(
143206
+ Ab2,
143207
143207
  {
143208
143208
  href: "#",
143209
143209
  "data-testid": `immunization-add-note-link-${T}-test-id`,
@@ -143213,7 +143213,7 @@ const form$1 = "ImmunizationForm-module_form__e68vP", title$3 = "ImmunizationFor
143213
143213
  children: $("IMMUNIZATION_INPUT_CONTROL_ADD_NOTE")
143214
143214
  }
143215
143215
  ) : /* @__PURE__ */ jsx(
143216
- Iz2,
143216
+ Pz2,
143217
143217
  {
143218
143218
  id: `immunization-note-${T}`,
143219
143219
  "data-testid": `immunization-note-${T}-test-id`,
@@ -143420,7 +143420,7 @@ const form$1 = "ImmunizationForm-module_form__e68vP", title$3 = "ImmunizationFor
143420
143420
  }
143421
143421
  ),
143422
143422
  !(B && Q) && /* @__PURE__ */ jsx(
143423
- fb2,
143423
+ pb2,
143424
143424
  {
143425
143425
  id: "immunization-history-search",
143426
143426
  "data-testid": "immunization-history-search-combobox",
@@ -143441,7 +143441,7 @@ const form$1 = "ImmunizationForm-module_form__e68vP", title$3 = "ImmunizationFor
143441
143441
  }
143442
143442
  ),
143443
143443
  wt ? /* @__PURE__ */ jsx(
143444
- Cb2,
143444
+ xb2,
143445
143445
  {
143446
143446
  id: "immunization-history-loading",
143447
143447
  testId: "immunization-history-loading-test-id",
@@ -143458,10 +143458,10 @@ const form$1 = "ImmunizationForm-module_form__e68vP", title$3 = "ImmunizationFor
143458
143458
  children: a("ERROR_LOADING_IMMUNIZATION_DETAILS")
143459
143459
  }
143460
143460
  ) : null,
143461
- at && /* @__PURE__ */ jsx(kb2, { title: a("IMMUNIZATION_INPUT_CONTROL_ADDED_ITEMS"), children: R.map((mt, lt) => /* @__PURE__ */ jsxs("div", { children: [
143461
+ at && /* @__PURE__ */ jsx(Ib2, { title: a("IMMUNIZATION_INPUT_CONTROL_ADDED_ITEMS"), children: R.map((mt, lt) => /* @__PURE__ */ jsxs("div", { children: [
143462
143462
  mt.cdsCards?.map((Bt) => /* @__PURE__ */ jsx("div", { className: styles$b.cdsCardContainer, children: /* @__PURE__ */ jsx(CDSCardAlert, { card: Bt, className: styles$b.cdsCard }) }, Bt.summary)),
143463
143463
  /* @__PURE__ */ jsx(
143464
- Bb2,
143464
+ kb2,
143465
143465
  {
143466
143466
  className: styles$b.selectedItem,
143467
143467
  onClose: () => g(mt.id),
@@ -143606,7 +143606,7 @@ const DOCUMENTS_INPUT_CONTROL_KEY = "documents", DOCUMENT_TYPE_ATTRIBUTE = "docu
143606
143606
  hasData: () => c().entries.some((f) => !Tkt(f)),
143607
143607
  reset: () => {
143608
143608
  c().entries.forEach(
143609
- (f) => f.files.forEach(TNe)
143609
+ (f) => f.files.forEach(TAe)
143610
143610
  ), p({ entries: [], attributes: void 0 });
143611
143611
  }
143612
143612
  };
@@ -143921,7 +143921,7 @@ const observationFormsTile = "ObservationForms-module_observationFormsTile__AZ0b
143921
143921
  V
143922
143922
  ]);
143923
143923
  return H ? /* @__PURE__ */ jsxs(
143924
- Xy2,
143924
+ Qy2,
143925
143925
  {
143926
143926
  className: styles$9.observationFormsTile,
143927
143927
  "data-testid": "observation-forms-tile",
@@ -143935,7 +143935,7 @@ const observationFormsTile = "ObservationForms-module_observationFormsTile__AZ0b
143935
143935
  }
143936
143936
  ),
143937
143937
  /* @__PURE__ */ jsx("div", { "data-testid": "observation-forms-search-section", children: /* @__PURE__ */ jsx(
143938
- fb2,
143938
+ pb2,
143939
143939
  {
143940
143940
  id: "observation-forms-search",
143941
143941
  placeholder: V("OBSERVATION_FORMS_SEARCH_PLACEHOLDER"),
@@ -143954,7 +143954,7 @@ const observationFormsTile = "ObservationForms-module_observationFormsTile__AZ0b
143954
143954
  }
143955
143955
  ) }),
143956
143956
  c && c.length > 0 && /* @__PURE__ */ jsx("div", { "data-testid": "added-forms-section", children: /* @__PURE__ */ jsx(
143957
- Yb2,
143957
+ Jb2,
143958
143958
  {
143959
143959
  title: V("OBSERVATION_FORMS_ADDED_FORMS"),
143960
143960
  dataTestId: "added-forms-container",
@@ -143963,7 +143963,7 @@ const observationFormsTile = "ObservationForms-module_observationFormsTile__AZ0b
143963
143963
  `OBSERVATION_ADDED_FORM_VALIDATION_ERROR_TITLE_${oe.toUpperCase()}`
143964
143964
  ) : void 0;
143965
143965
  return /* @__PURE__ */ jsx(
143966
- Jb2,
143966
+ Xb2,
143967
143967
  {
143968
143968
  title: Q.name,
143969
143969
  icon: "fa-file-lines",
@@ -143980,21 +143980,21 @@ const observationFormsTile = "ObservationForms-module_observationFormsTile__AZ0b
143980
143980
  }
143981
143981
  ) }),
143982
143982
  /* @__PURE__ */ jsx("div", { "data-testid": "pinned-forms-section", children: /* @__PURE__ */ jsx(
143983
- Yb2,
143983
+ Jb2,
143984
143984
  {
143985
143985
  title: V("DEFAULT_AND_PINNED_FORMS_TITLE"),
143986
143986
  showNoFormsMessage: !E && T.length === 0,
143987
143987
  noFormsMessage: V("DEFAULT_AND_PINNED_FORMS_NO_FORMS_FOUND"),
143988
143988
  dataTestId: "pinned-forms-container",
143989
143989
  children: E || d ? /* @__PURE__ */ jsx(
143990
- Eb2,
143990
+ Vb2,
143991
143991
  {
143992
143992
  width: "100%",
143993
143993
  lineCount: 3,
143994
143994
  testId: "pinned-forms-skeleton"
143995
143995
  }
143996
143996
  ) : T.map((Q) => /* @__PURE__ */ jsx(
143997
- Jb2,
143997
+ Xb2,
143998
143998
  {
143999
143999
  title: Q.name,
144000
144000
  icon: "fa-file-lines",
@@ -144147,7 +144147,7 @@ const formView = "ObservationFormsContainer-module_formView__d3K6Z", inlineNotif
144147
144147
  T,
144148
144148
  s
144149
144149
  ]), B ? ee ? null : /* @__PURE__ */ jsx("div", { className: styles$8.loadingWrapper, children: /* @__PURE__ */ jsx(
144150
- Rb2,
144150
+ Ob2,
144151
144151
  {
144152
144152
  description: c("OBSERVATION_FORM_LOADING_METADATA"),
144153
144153
  role: "status",
@@ -144239,7 +144239,7 @@ function createStopMedicationEntry(p) {
144239
144239
  if (!c.medicationToStop?.id || !c.stopReason) return [];
144240
144240
  const a = c.medicationToStop.subject?.reference?.split("/").pop();
144241
144241
  if (!a) return [];
144242
- const f = c.inputControlKey === LNt ? Be.Cancelled : Be.Stopped, d = `${c.stopDate.getFullYear()}-${String(c.stopDate.getMonth() + 1).padStart(2, "0")}-${String(c.stopDate.getDate()).padStart(2, "0")}`, h = {
144242
+ const f = c.inputControlKey === LAt ? Be.Cancelled : Be.Stopped, d = `${c.stopDate.getFullYear()}-${String(c.stopDate.getMonth() + 1).padStart(2, "0")}-${String(c.stopDate.getDate()).padStart(2, "0")}`, h = {
144243
144243
  resourceType: "MedicationRequest",
144244
144244
  status: f,
144245
144245
  intent: "order",
@@ -144288,7 +144288,7 @@ const stopMedicationFormTile = "StopMedicationForm-module_stopMedicationFormTile
144288
144288
  noteColumn
144289
144289
  }, StopMedicationForm = React__default.memo(
144290
144290
  ({ encounterSessionStartContext: p, inputControlConfig: c }) => {
144291
- const { t: a } = useTranslation(), s = c?.type === LNt, f = p?.stopMedication, {
144291
+ const { t: a } = useTranslation(), s = c?.type === LAt, f = p?.stopMedication, {
144292
144292
  stopDate: d,
144293
144293
  stopReason: h,
144294
144294
  note: E,
@@ -144351,7 +144351,7 @@ const stopMedicationFormTile = "StopMedicationForm-module_stopMedicationFormTile
144351
144351
  display: oe
144352
144352
  })), ue = R.stopDate?.isVisible !== !1, Q = R.stopReason?.isVisible !== !1, ne = R.note?.isVisible !== !1;
144353
144353
  return /* @__PURE__ */ jsxs(
144354
- Xy2,
144354
+ Qy2,
144355
144355
  {
144356
144356
  className: styles$7.stopMedicationFormTile,
144357
144357
  "data-testid": "stop-medication-form-tile",
@@ -144359,9 +144359,9 @@ const stopMedicationFormTile = "StopMedicationForm-module_stopMedicationFormTile
144359
144359
  /* @__PURE__ */ jsx("div", { className: styles$7.formTitle, children: a(
144360
144360
  s ? "CANCEL_VACCINATION_FORM_TITLE" : "STOP_MEDICATION_FORM_TITLE"
144361
144361
  ) }),
144362
- /* @__PURE__ */ jsxs(zb2, { condensed: !1, children: [
144363
- /* @__PURE__ */ jsx(bb2, { sm: 4, md: 8, lg: 16, children: /* @__PURE__ */ jsx("p", { className: styles$7.medicationName, children: le }) }),
144364
- ue && /* @__PURE__ */ jsx(bb2, { sm: 2, md: 4, lg: 8, className: styles$7.column, children: /* @__PURE__ */ jsx(
144362
+ /* @__PURE__ */ jsxs(yb2, { condensed: !1, children: [
144363
+ /* @__PURE__ */ jsx(Nb2, { sm: 4, md: 8, lg: 16, children: /* @__PURE__ */ jsx("p", { className: styles$7.medicationName, children: le }) }),
144364
+ ue && /* @__PURE__ */ jsx(Nb2, { sm: 2, md: 4, lg: 8, className: styles$7.column, children: /* @__PURE__ */ jsx(
144365
144365
  qL2,
144366
144366
  {
144367
144367
  datePickerType: "single",
@@ -144390,8 +144390,8 @@ const stopMedicationFormTile = "StopMedicationForm-module_stopMedicationFormTile
144390
144390
  },
144391
144391
  N?.effectiveStartDate ?? "pending"
144392
144392
  ) }),
144393
- Q && /* @__PURE__ */ jsx(bb2, { sm: 2, md: 4, lg: 8, className: styles$7.column, children: /* @__PURE__ */ jsx(
144394
- xb2,
144393
+ Q && /* @__PURE__ */ jsx(Nb2, { sm: 2, md: 4, lg: 8, className: styles$7.column, children: /* @__PURE__ */ jsx(
144394
+ Lb2,
144395
144395
  {
144396
144396
  id: "stop-medication-reason",
144397
144397
  "data-testid": "stop-medication-reason-dropdown",
@@ -144414,9 +144414,9 @@ const stopMedicationFormTile = "StopMedicationForm-module_stopMedicationFormTile
144414
144414
  invalidText: a(g.stopReason ?? "")
144415
144415
  }
144416
144416
  ) }),
144417
- ne && /* @__PURE__ */ jsxs(bb2, { sm: 4, md: 8, lg: 16, className: styles$7.noteColumn, children: [
144417
+ ne && /* @__PURE__ */ jsxs(Nb2, { sm: 4, md: 8, lg: 16, className: styles$7.noteColumn, children: [
144418
144418
  !D && /* @__PURE__ */ jsx(
144419
- Nb2,
144419
+ Ab2,
144420
144420
  {
144421
144421
  href: "#",
144422
144422
  "data-testid": "stop-medication-add-note-link",
@@ -144429,7 +144429,7 @@ const stopMedicationFormTile = "StopMedicationForm-module_stopMedicationFormTile
144429
144429
  }
144430
144430
  ),
144431
144431
  D && /* @__PURE__ */ jsx(
144432
- Iz2,
144432
+ Pz2,
144433
144433
  {
144434
144434
  id: "stop-medication-note",
144435
144435
  "data-testid": "stop-medication-note",
@@ -144504,7 +144504,7 @@ const InputControlRenderer = ({
144504
144504
  inputControlConfig: p.inputControlConfig
144505
144505
  }
144506
144506
  ),
144507
- /* @__PURE__ */ jsx(Gb2, { "data-testid": `${p.key}-divider` })
144507
+ /* @__PURE__ */ jsx(Kb2, { "data-testid": `${p.key}-divider` })
144508
144508
  ] });
144509
144509
  }, isImmutableData = (p) => typeof p == "object" && p !== null && "toJS" in p && typeof p.toJS == "function", isFormControlTree = (p) => typeof p == "object" && p !== null && "formFieldPath" in p && "children" in p, isFormData = (p) => typeof p == "object" && p !== null && "controls" in p && Array.isArray(p.controls);
144510
144510
  function useObservationFormData(p) {
@@ -144903,7 +144903,7 @@ const executeOnFormSaveEvent = (p, c, a, s) => {
144903
144903
  encounterSessionStartContext: g
144904
144904
  }
144905
144905
  ),
144906
- /* @__PURE__ */ jsx(Gb2, {}),
144906
+ /* @__PURE__ */ jsx(Kb2, {}),
144907
144907
  $ && c && /* @__PURE__ */ jsx(
144908
144908
  "div",
144909
144909
  {
@@ -144913,7 +144913,7 @@ const executeOnFormSaveEvent = (p, c, a, s) => {
144913
144913
  }
144914
144914
  ),
144915
144915
  $ && c && z && /* @__PURE__ */ jsx("div", { className: styles$8.inlineNotificationWrapper, children: /* @__PURE__ */ jsx(
144916
- tN2,
144916
+ nN2,
144917
144917
  {
144918
144918
  kind: "info",
144919
144919
  title: z,
@@ -144924,7 +144924,7 @@ const executeOnFormSaveEvent = (p, c, a, s) => {
144924
144924
  ) })
144925
144925
  ] }),
144926
144926
  ae && ae !== VALIDATION_STATE_SCRIPT_ERROR && /* @__PURE__ */ jsx("div", { className: styles$8.inlineNotificationWrapper, children: /* @__PURE__ */ jsx(
144927
- tN2,
144927
+ nN2,
144928
144928
  {
144929
144929
  kind: "error",
144930
144930
  title: H(
@@ -144939,7 +144939,7 @@ const executeOnFormSaveEvent = (p, c, a, s) => {
144939
144939
  }
144940
144940
  ) }),
144941
144941
  ae === VALIDATION_STATE_SCRIPT_ERROR && J && /* @__PURE__ */ jsx("div", { className: styles$8.inlineNotificationWrapper, children: /* @__PURE__ */ jsx(
144942
- tN2,
144942
+ nN2,
144943
144943
  {
144944
144944
  kind: "error",
144945
144945
  title: H("OBSERVATION_FORM_SCRIPT_ERROR_TITLE"),
@@ -144957,7 +144957,7 @@ const executeOnFormSaveEvent = (p, c, a, s) => {
144957
144957
  className: styles$8.formContent,
144958
144958
  "data-testid": "observation-form-content",
144959
144959
  children: He || T ? /* @__PURE__ */ jsx("div", { className: styles$8.loadingWrapper, children: /* @__PURE__ */ jsx(
144960
- Rb2,
144960
+ Ob2,
144961
144961
  {
144962
144962
  description: H("OBSERVATION_FORM_LOADING_METADATA"),
144963
144963
  role: "status",
@@ -145001,7 +145001,7 @@ const executeOnFormSaveEvent = (p, c, a, s) => {
145001
145001
  if (c) {
145002
145002
  const ct = H(d ? "CONSULTATION_PAD_DONE_BUTTON" : ae ? "OBSERVATION_FORM_CONTINUE_ANYWAY_BUTTON" : "OBSERVATION_FORM_SAVE_BUTTON"), Vt = H(d ? "CONSULTATION_PAD_CANCEL_BUTTON" : "OBSERVATION_FORM_DISCARD_BUTTON"), aa = d ? () => Ze(h) : ae ? Qe : Ze, kt = d ? E ?? wt : wt;
145003
145003
  return /* @__PURE__ */ jsx(
145004
- jb2,
145004
+ Ub2,
145005
145005
  {
145006
145006
  className: styles$8.formViewActionArea,
145007
145007
  title: mt,
@@ -145503,7 +145503,7 @@ const ConsultationPad = ({
145503
145503
  ), aa = lt || !Q || M || !ue || !Ht || Ie || de === void 0;
145504
145504
  return /* @__PURE__ */ jsxs(Fragment, { children: [
145505
145505
  /* @__PURE__ */ jsx(
145506
- jb2,
145506
+ Ub2,
145507
145507
  {
145508
145508
  "data-testid": "consultation-pad-action-area",
145509
145509
  title: lt ? "" : V(E || "CONSULTATION_ACTION_NEW"),
@@ -145646,16 +145646,16 @@ const ConsultationPad = ({
145646
145646
  {
145647
145647
  className: styles$5.loadingWrapper,
145648
145648
  "data-testid": "consultation-pad-container-loading",
145649
- children: /* @__PURE__ */ jsx(Rb2, { description: f("STARTING_VISIT"), withOverlay: !1 })
145649
+ children: /* @__PURE__ */ jsx(Ob2, { description: f("STARTING_VISIT"), withOverlay: !1 })
145650
145650
  }
145651
145651
  ) : ue && (!H || ee) ? /* @__PURE__ */ jsx(
145652
- jb2,
145652
+ Ub2,
145653
145653
  {
145654
145654
  title: f("CONSULTATION_PAD_TITLE"),
145655
145655
  primaryButtonText: f("CLOSE_BUTTON"),
145656
145656
  onPrimaryButtonClick: c,
145657
145657
  content: /* @__PURE__ */ jsx("div", { className: styles$5.bannerWrapper, children: /* @__PURE__ */ jsx(
145658
- tN2,
145658
+ nN2,
145659
145659
  {
145660
145660
  kind: "warning",
145661
145661
  title: f("START_VISIT_REQUEST_TO_BE_STARTED"),
@@ -145668,7 +145668,7 @@ const ConsultationPad = ({
145668
145668
  ...M
145669
145669
  }
145670
145670
  ) : ue && H && le.length > 1 ? /* @__PURE__ */ jsx(
145671
- jb2,
145671
+ Ub2,
145672
145672
  {
145673
145673
  title: f("CONSULTATION_PAD_TITLE"),
145674
145674
  primaryButtonText: f("START_VISIT_BUTTON"),
@@ -145678,7 +145678,7 @@ const ConsultationPad = ({
145678
145678
  onSecondaryButtonClick: ae,
145679
145679
  content: /* @__PURE__ */ jsxs(Fragment, { children: [
145680
145680
  /* @__PURE__ */ jsx("div", { className: styles$5.bannerWrapper, children: /* @__PURE__ */ jsx(
145681
- tN2,
145681
+ nN2,
145682
145682
  {
145683
145683
  kind: "warning",
145684
145684
  title: f("START_VISIT_NO_ACTIVE_VISIT_BANNER"),
@@ -145755,7 +145755,7 @@ const ConsultationPad = ({
145755
145755
  "data-testid": `dashboard-section-wrapper-${p.name}`,
145756
145756
  children: [
145757
145757
  /* @__PURE__ */ jsx(
145758
- Xy2,
145758
+ Qy2,
145759
145759
  {
145760
145760
  id: `section-${p.id}`,
145761
145761
  className: styles$4.sectionName,
@@ -145808,7 +145808,7 @@ const ConsultationPad = ({
145808
145808
  });
145809
145809
  }
145810
145810
  }, [c, p, a]), p.length ? /* @__PURE__ */ jsx(
145811
- Tb2,
145811
+ Sb2,
145812
145812
  {
145813
145813
  className: styles$3.sectionContainer,
145814
145814
  "data-testid": "dashboard-container",
@@ -145911,7 +145911,7 @@ const CONSULTATION_START_EVENT = "startConsultation", dispatchConsultationStart
145911
145911
  return w6(
145912
145912
  qkt.ENCOUNTER
145913
145913
  ) ? a ? /* @__PURE__ */ jsx(
145914
- Vb2,
145914
+ Hb2,
145915
145915
  {
145916
145916
  className: styles$2.newConsultationButtonSkeleton,
145917
145917
  testId: "consultation-action-button-skeleton"
@@ -146120,7 +146120,7 @@ const CONSULTATION_START_EVENT = "startConsultation", dispatchConsultationStart
146120
146120
  className: styles$1.patientSearchContainer,
146121
146121
  "data-testid": "patient-search-container",
146122
146122
  children: /* @__PURE__ */ jsx(
146123
- fb2,
146123
+ pb2,
146124
146124
  {
146125
146125
  id: "patient-search-combobox",
146126
146126
  "data-testid": "patient-search-combobox",
@@ -146183,7 +146183,7 @@ const CONSULTATION_START_EVENT = "startConsultation", dispatchConsultationStart
146183
146183
  activeEpisodeId: R
146184
146184
  };
146185
146185
  }, [d, c, a, h?.id]);
146186
- return E.isLoading && c.length > 0 ? /* @__PURE__ */ jsx(Rb2, { description: s("LOADING_CLINICAL_DATA"), role: "status" }) : E.error ? /* @__PURE__ */ jsx("div", { className: "alert alert-danger", children: s("ERROR_FETCHING_CLINICAL_DATA") }) : /* @__PURE__ */ jsx(ClinicalAppContext.Provider, { value: E, children: p });
146186
+ return E.isLoading && c.length > 0 ? /* @__PURE__ */ jsx(Ob2, { description: s("LOADING_CLINICAL_DATA"), role: "status" }) : E.error ? /* @__PURE__ */ jsx("div", { className: "alert alert-danger", children: s("ERROR_FETCHING_CLINICAL_DATA") }) : /* @__PURE__ */ jsx(ClinicalAppContext.Provider, { value: E, children: p });
146187
146187
  };
146188
146188
  ClinicalAppProvider.displayName = "clinical apps provider";
146189
146189
  const DASHBOARD_CONFIG_URL = (p) => `${CLINICAL_V2_CONFIG_BASE_URL}/dashboards/${p}`, EPISODE_UUID_SEARCH_PARAMS_KEY = "episodeUuid", CURRENT_DASHBOARD_SEARCH_PARAMS_KEY = "currentDashboard", PROGRAM_UUID_SEARCH_PARAMS_KEY = "programUuid", $schema = "http://json-schema.org/draft-07/schema#", title = "Clinical Dashboard Configuration Schema", description = "Schema for dashboards in clinical app which contains sections and associated controls", type = "object", additionalProperties = !1, required = ["sections"], properties = { sections: { type: "array", description: "Section in a dashboard", items: { type: "object", additionalProperties: !1, required: ["name", "icon", "controls"], properties: { name: { type: "string", description: "Display name of the section" }, translationKey: { type: "string", description: "Translation key for the section name" }, icon: { type: "string", description: "Fontawesome Icon name for the section" }, controls: { type: "array", description: "List of controls in the section", items: { type: "object", additionalProperties: !1, required: ["type"], properties: { type: { type: "string", description: "Type of the control" }, requiredPrivileges: { type: "array", description: "List of required privileges for the control", items: { type: "string" } }, config: { type: "object", description: "Configuration for the control. For 'programs' type, see programsConfig definition." } } } } } } } }, dashboardConfigSchema = {
@@ -146296,7 +146296,7 @@ const DASHBOARD_CONFIG_URL = (p) => `${CLINICAL_V2_CONFIG_BASE_URL}/dashboards/$
146296
146296
  sections: filterSectionsByPrivileges(Q.sections)
146297
146297
  }, [Q, s]), ae = useMemo(() => !ee?.printOptions || !s ? [] : ee.printOptions.filter(
146298
146298
  (Ie) => dw(s, Ie.privileges)
146299
- ), [ee, s]), re = useMemo(() => pe ? getSidebarItems(pe, p) : [], [pe, p]), [J, he] = useState(0), { activeItemId: _e, handleItemClick: ie } = Sb2(re), ye = useCallback(
146299
+ ), [ee, s]), re = useMemo(() => pe ? getSidebarItems(pe, p) : [], [pe, p]), [J, he] = useState(0), { activeItemId: _e, handleItemClick: ie } = Rb2(re), ye = useCallback(
146300
146300
  (Ie) => {
146301
146301
  ie(Ie), he((Ae) => Ae + 1);
146302
146302
  },
@@ -146304,7 +146304,7 @@ const DASHBOARD_CONFIG_URL = (p) => `${CLINICAL_V2_CONFIG_BASE_URL}/dashboards/$
146304
146304
  );
146305
146305
  if (a)
146306
146306
  return /* @__PURE__ */ jsx(
146307
- Rb2,
146307
+ Ob2,
146308
146308
  {
146309
146309
  id: "loading-clinical-config",
146310
146310
  description: p("LOADING_CLINICAL_CONFIG"),
@@ -146312,7 +146312,7 @@ const DASHBOARD_CONFIG_URL = (p) => `${CLINICAL_V2_CONFIG_BASE_URL}/dashboards/$
146312
146312
  }
146313
146313
  );
146314
146314
  if (!s)
146315
- return /* @__PURE__ */ jsx(Rb2, { description: p("LOADING_USER_PRIVILEGES"), role: "status" });
146315
+ return /* @__PURE__ */ jsx(Ob2, { description: p("LOADING_USER_PRIVILEGES"), role: "status" });
146316
146316
  if (!ee) {
146317
146317
  const Ie = le ? p("ERROR_DASHBOARD_NOT_CONFIGURED", {
146318
146318
  dashboardName: le
@@ -146331,7 +146331,7 @@ const DASHBOARD_CONFIG_URL = (p) => `${CLINICAL_V2_CONFIG_BASE_URL}/dashboards/$
146331
146331
  }
146332
146332
  if (ne)
146333
146333
  return /* @__PURE__ */ jsx(
146334
- Rb2,
146334
+ Ob2,
146335
146335
  {
146336
146336
  id: "loading-dashboard-config",
146337
146337
  "data-testid": "loading-dashboard-config-test-id",
@@ -146363,10 +146363,10 @@ const DASHBOARD_CONFIG_URL = (p) => `${CLINICAL_V2_CONFIG_BASE_URL}/dashboards/$
146363
146363
  return /* @__PURE__ */ jsxs(ClinicalAppProvider, { episodeUuids: T, patientId: O, children: [
146364
146364
  /* @__PURE__ */ jsx(PatientSearch, { isOpen: H, onClose: I }),
146365
146365
  /* @__PURE__ */ jsx(
146366
- $b2,
146366
+ Db2,
146367
146367
  {
146368
146368
  headerWSideNav: /* @__PURE__ */ jsx(
146369
- Tz2,
146369
+ Sz2,
146370
146370
  {
146371
146371
  breadcrumbItems: X,
146372
146372
  globalActions: D,
@@ -146382,7 +146382,7 @@ const DASHBOARD_CONFIG_URL = (p) => `${CLINICAL_V2_CONFIG_BASE_URL}/dashboards/$
146382
146382
  {
146383
146383
  "data-testid": "suspense-dashboard-container-test-id",
146384
146384
  fallback: /* @__PURE__ */ jsx(
146385
- Rb2,
146385
+ Ob2,
146386
146386
  {
146387
146387
  id: "loading-dashboard-content",
146388
146388
  "data-testid": "loading-dashboard-content-test-id",
@@ -146392,7 +146392,7 @@ const DASHBOARD_CONFIG_URL = (p) => `${CLINICAL_V2_CONFIG_BASE_URL}/dashboards/$
146392
146392
  ),
146393
146393
  children: [
146394
146394
  O && W && /* @__PURE__ */ jsx(
146395
- Rb2,
146395
+ Ob2,
146396
146396
  {
146397
146397
  id: "loading-patient",
146398
146398
  "data-testid": "loading-patient-test-id",