@bahmni/clinical-app 0.0.1-dev.264 → 0.0.1-dev.265

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,5 +1,5 @@
1
1
  import { jsx as r, jsxs as p, Fragment as Y } from "react/jsx-runtime";
2
- import { d as K, u as Q, a as W, b as J, c as X, m as Z, e as ee, r as te, F as ae } from "./index-DucPzlE4.js";
2
+ import { d as K, u as Q, a as W, b as J, c as X, m as Z, e as ee, r as te, F as ae } from "./index-BY_FXoBB.js";
3
3
  import { useState as m, useCallback as h, useEffect as f, useMemo as T } from "react";
4
4
  const ne = "_documentsTableBody_1voj8_1", oe = "_viewAttachmentsLink_1voj8_11", re = "_documentViewerContainer_1voj8_15", de = "_attachmentItem_1voj8_23", se = "_attachmentCounter_1voj8_27", ce = "_attachmentError_1voj8_36", ie = "_documentIframe_1voj8_44", me = "_documentImage_1voj8_50", d = {
5
5
  documentsTableBody: ne,
@@ -1,30 +1,30 @@
1
1
  import { jsx as s, jsxs as J, Fragment as W } from "react/jsx-runtime";
2
- import { u as Z, d as ee, f as re, g as ae, b as c, X as te, R as U, m as oe, c as se, e as S, A as ne, _ as de, r as ie, Y as ue, I as me, j as le, B as ce, P as fe, k as ye } from "./index-DucPzlE4.js";
3
- import { useState as q, useMemo as d, useCallback as f } from "react";
4
- const pe = "_formsTableBody_81hra_1", be = "_customAccordianItem_81hra_6", A = {
2
+ import { u as Z, d as ee, f as re, g as ae, b as c, X as te, R as q, m as oe, c as se, e as U, A as ne, _ as de, r as ie, Y as ue, I as me, j as le, B as ce, P as fe, k as ye } from "./index-BY_FXoBB.js";
3
+ import { useState as S, useMemo as d, useCallback as f } from "react";
4
+ const pe = "_formsTableBody_ourq9_5", be = "_customAccordianItem_ourq9_10", I = {
5
5
  formsTableBody: pe,
6
6
  customAccordianItem: be
7
7
  }, ge = (u) => u ? u.extension?.find(
8
8
  (n) => n.url === me
9
- )?.valueString : void 0, Ie = ({
9
+ )?.valueString : void 0, he = ({
10
10
  episodeOfCareUuids: u,
11
11
  encounterUuids: n,
12
12
  config: C
13
13
  }) => {
14
- const { t: o } = Z(), m = ee(), [l, I] = q(!1), [t, O] = q(null), { numberOfVisits: k, hideThumbnail: j = !1 } = C ?? {}, B = re(
14
+ const { t: o } = Z(), m = ee(), [l, h] = S(!1), [t, O] = S(null), { numberOfVisits: k, hideThumbnail: j = !1 } = C ?? {}, B = re(
15
15
  u,
16
16
  n
17
17
  ), x = ae(), {
18
18
  data: y = [],
19
19
  isLoading: _,
20
- isError: T,
20
+ isError: E,
21
21
  error: H,
22
22
  refetch: K
23
23
  } = c({
24
24
  queryKey: ["forms", m, u],
25
25
  queryFn: () => le(m, void 0, k),
26
26
  enabled: !!m && !B
27
- }), E = d(() => !n || n.length === 0 ? y : y.filter(
27
+ }), T = d(() => !n || n.length === 0 ? y : y.filter(
28
28
  (e) => n.includes(e.encounterUuid)
29
29
  ), [y, n]), { data: R = [] } = c({
30
30
  queryKey: ["observationForms"],
@@ -64,9 +64,9 @@ const pe = "_formsTableBody_81hra_1", be = "_customAccordianItem_81hra_6", A = {
64
64
  return !r || r.includes(t.formName);
65
65
  }), [g, t?.formName]), Y = d(() => {
66
66
  if (b)
67
- return U(b).message;
67
+ return q(b).message;
68
68
  if (N)
69
- return U(N).message;
69
+ return q(N).message;
70
70
  }, [b, N]), L = d(
71
71
  () => [
72
72
  { key: "recordedOn", header: o("RECORDED_ON") },
@@ -80,16 +80,16 @@ const pe = "_formsTableBody_81hra_1", be = "_customAccordianItem_81hra_6", A = {
80
80
  ],
81
81
  []
82
82
  ), M = d(() => {
83
- const e = E.reduce(
83
+ const e = T.reduce(
84
84
  (r, a) => {
85
85
  const i = a.formName;
86
86
  r[i] ??= [];
87
- const h = a.providers.map((X) => X.providerName).filter(Boolean).join(", ");
87
+ const A = a.providers.map((X) => X.providerName).filter(Boolean).join(", ");
88
88
  return r[i].push({
89
89
  id: a.encounterUuid,
90
90
  formName: a.formName,
91
91
  recordedOn: oe(a.encounterDateTime, o, !0).formattedResult,
92
- recordedBy: h ?? "--",
92
+ recordedBy: A ?? "--",
93
93
  encounterDateTime: a.encounterDateTime,
94
94
  encounterUuid: a.encounterUuid
95
95
  }), r;
@@ -100,14 +100,14 @@ const pe = "_formsTableBody_81hra_1", be = "_customAccordianItem_81hra_6", A = {
100
100
  ([r, a]) => ({
101
101
  formName: r,
102
102
  records: a.sort(
103
- (i, h) => h.encounterDateTime - i.encounterDateTime
103
+ (i, A) => A.encounterDateTime - i.encounterDateTime
104
104
  )
105
105
  })
106
106
  ).sort((r, a) => r.formName.localeCompare(a.formName));
107
- }, [E, o]), v = f((e) => {
108
- O(e), I(!0);
107
+ }, [T, o]), v = f((e) => {
108
+ O(e), h(!0);
109
109
  }, []), G = f(() => {
110
- I(!1), O(null);
110
+ h(!1), O(null);
111
111
  }, []), D = f(
112
112
  (e, r) => {
113
113
  switch (r) {
@@ -122,17 +122,17 @@ const pe = "_formsTableBody_81hra_1", be = "_customAccordianItem_81hra_6", A = {
122
122
  [v]
123
123
  );
124
124
  return /* @__PURE__ */ J(W, { children: [
125
- /* @__PURE__ */ s("div", { "data-testid": "forms-table", children: _ || T || M.length === 0 || B ? /* @__PURE__ */ s(
126
- S,
125
+ /* @__PURE__ */ s("div", { id: "forms-table", "data-testid": "forms-table", children: _ || E || M.length === 0 || B ? /* @__PURE__ */ s(
126
+ U,
127
127
  {
128
128
  headers: L,
129
129
  ariaLabel: o("FORMS_HEADING"),
130
130
  rows: [],
131
131
  loading: _,
132
- errorStateMessage: T ? H?.message : void 0,
132
+ errorStateMessage: E ? H?.message : void 0,
133
133
  emptyStateMessage: o("FORMS_UNAVAILABLE"),
134
134
  renderCell: D,
135
- className: A.formsTableBody,
135
+ className: I.formsTableBody,
136
136
  dataTestId: "forms-table"
137
137
  }
138
138
  ) : /* @__PURE__ */ s(ne, { align: "start", children: M.map((e, r) => {
@@ -141,11 +141,11 @@ const pe = "_formsTableBody_81hra_1", be = "_customAccordianItem_81hra_6", A = {
141
141
  de,
142
142
  {
143
143
  title: a,
144
- className: A.customAccordianItem,
144
+ className: I.customAccordianItem,
145
145
  testId: `accordian-title-${a}`,
146
146
  open: r === 0,
147
147
  children: /* @__PURE__ */ s(
148
- S,
148
+ U,
149
149
  {
150
150
  headers: L,
151
151
  ariaLabel: o("FORMS_HEADING"),
@@ -155,7 +155,7 @@ const pe = "_formsTableBody_81hra_1", be = "_customAccordianItem_81hra_6", A = {
155
155
  sortable: z,
156
156
  emptyStateMessage: o("FORMS_UNAVAILABLE"),
157
157
  renderCell: D,
158
- className: A.formsTableBody,
158
+ className: I.formsTableBody,
159
159
  dataTestId: `forms-table-${a}`
160
160
  }
161
161
  )
@@ -192,5 +192,5 @@ const pe = "_formsTableBody_81hra_1", be = "_customAccordianItem_81hra_6", A = {
192
192
  ] });
193
193
  };
194
194
  export {
195
- Ie as default
195
+ he as default
196
196
  };
@@ -1,5 +1,5 @@
1
- import { c, T as l, P as m, a as u, D as v, Q as i } from "./YPM2AS64-BlfgA35l.js";
2
- import { n as p, o as d, p as e } from "./index-DucPzlE4.js";
1
+ import { c, T as l, P as m, a as u, D as v, Q as i } from "./YPM2AS64-LcL8zpT_.js";
2
+ import { n as p, o as d, p as e } from "./index-BY_FXoBB.js";
3
3
  var f = (a) => {
4
4
  const [r, o] = c({
5
5
  prefix: "TanstackQueryDevtools"
@@ -1,5 +1,5 @@
1
- import { c as s, T as c, P as u, a as i, b as m, C as P, Q as d } from "./YPM2AS64-BlfgA35l.js";
2
- import { n as v, o as C, p as e } from "./index-DucPzlE4.js";
1
+ import { c as s, T as c, P as u, a as i, b as m, C as P, Q as d } from "./YPM2AS64-LcL8zpT_.js";
2
+ import { n as v, o as C, p as e } from "./index-BY_FXoBB.js";
3
3
  var h = (t) => {
4
4
  const [r, o] = s({
5
5
  prefix: "TanstackQueryDevtools"
@@ -1,8 +1,8 @@
1
1
  import { jsxs as I, jsx as u } from "react/jsx-runtime";
2
- import { d as K, a as V, u as S, h as x, $ as G, b as H, X as Q, i as X, G as w, J as M, x as W, e as j, W as J, E as D, K as P, v as Y, l as Z, H as z, D as ee, N as ae, Z as te } from "./index-DucPzlE4.js";
2
+ import { d as V, a as w, u as S, h as q, $ as G, b as H, X as Q, i as X, G as k, J as M, x as W, e as j, W as J, E as D, K as P, v as Y, l as Z, H as z, D as ee, N as ae, Z as te } from "./index-BY_FXoBB.js";
3
3
  import { useRef as se, useEffect as O, useMemo as R } from "react";
4
- const F = (a, n, d, l, b, r) => {
5
- const t = P(a, n, b), s = t.value, i = Y(s);
4
+ const F = (a, n, d, l, p, r) => {
5
+ const t = P(a, n, p), s = t.value, i = Y(s);
6
6
  let o = s;
7
7
  i === "Image" && (o = /* @__PURE__ */ u(
8
8
  z,
@@ -20,7 +20,7 @@ const F = (a, n, d, l, b, r) => {
20
20
  hideThumbnail: r
21
21
  }
22
22
  )), i === "PDF" && (o = /* @__PURE__ */ u(ae, { id: `${s}-pdf`, src: s }));
23
- const p = b("OBSERVATIONS_RECORDED_BY", {
23
+ const b = p("OBSERVATIONS_RECORDED_BY", {
24
24
  provider: t.provider
25
25
  }), m = a.display, v = a.observationValue?.isAbnormal ? "abnormal-obs" : "obs", c = l ? `${l}-${v}-${m}-${d}-${n}` : `${v}-${m}-${d}-${n}`;
26
26
  return /* @__PURE__ */ u(
@@ -28,14 +28,14 @@ const F = (a, n, d, l, b, r) => {
28
28
  {
29
29
  header: t.header,
30
30
  value: o,
31
- info: p,
31
+ info: b,
32
32
  id: c,
33
33
  testId: c,
34
34
  ariaLabel: c
35
35
  },
36
36
  `obs-${a.id}`
37
37
  );
38
- }, re = (a, n, d, l, b, r, t) => /* @__PURE__ */ u(
38
+ }, re = (a, n, d, l, p, r, t) => /* @__PURE__ */ u(
39
39
  D,
40
40
  {
41
41
  title: a.display,
@@ -45,7 +45,7 @@ const F = (a, n, d, l, b, r) => {
45
45
  (s, i) => F(
46
46
  s,
47
47
  i,
48
- b,
48
+ p,
49
49
  r,
50
50
  n,
51
51
  t
@@ -58,7 +58,7 @@ const F = (a, n, d, l, b, r) => {
58
58
  title: n = "",
59
59
  hideThumbnail: d
60
60
  }) => {
61
- const { t: l } = S(), b = (r, t, s) => {
61
+ const { t: l } = S(), p = (r, t, s) => {
62
62
  const i = J(r.encounterDetails, l);
63
63
  return /* @__PURE__ */ I(
64
64
  D,
@@ -68,9 +68,9 @@ const F = (a, n, d, l, b, r) => {
68
68
  open: t,
69
69
  children: [
70
70
  r.observations.map(
71
- (o, p) => F(
71
+ (o, b) => F(
72
72
  o,
73
- p,
73
+ b,
74
74
  s,
75
75
  n,
76
76
  l,
@@ -78,11 +78,11 @@ const F = (a, n, d, l, b, r) => {
78
78
  )
79
79
  ),
80
80
  r.groupedObservations.map(
81
- (o, p) => re(
81
+ (o, b) => re(
82
82
  o,
83
83
  l,
84
84
  t,
85
- p,
85
+ b,
86
86
  s,
87
87
  n,
88
88
  d
@@ -100,19 +100,19 @@ const F = (a, n, d, l, b, r) => {
100
100
  "data-testid": "obs-by-encounter-test-id",
101
101
  "aria-label": "obs-by-encounter-aria-label",
102
102
  children: a.map(
103
- (r, t) => b(r, t === 0, t)
103
+ (r, t) => p(r, t === 0, t)
104
104
  )
105
105
  }
106
106
  );
107
- }, oe = "_observations_kfbhq_1", ne = "_title_kfbhq_12", N = {
107
+ }, oe = "_observations_w45xp_1", ne = "_title_w45xp_18", N = {
108
108
  observations: oe,
109
109
  title: ne
110
- }, de = (a) => ["conceptUuid", a], le = (a, n) => ["observations", a, ...n], pe = ({ config: a }) => {
110
+ }, de = (a) => ["conceptUuid", a], le = (a, n) => ["observations", a, ...n], be = ({ config: a }) => {
111
111
  const n = a, {
112
112
  conceptNames: d = [],
113
113
  conceptUuid: l = [],
114
- hideThumbnail: b = !1
115
- } = n, r = se(/* @__PURE__ */ new Set()), t = K(), { addNotification: s } = V(), { t: i } = S(), o = x({
114
+ hideThumbnail: p = !1
115
+ } = n, r = se(/* @__PURE__ */ new Set()), t = V(), { addNotification: s } = w(), { t: i } = S(), o = q({
116
116
  queries: d.map((e) => ({
117
117
  queryKey: de(e),
118
118
  queryFn: () => G(e),
@@ -122,16 +122,16 @@ const F = (a, n, d, l, b, r) => {
122
122
  O(() => {
123
123
  o.forEach((e, h) => {
124
124
  if (e.isError && !r.current.has(h)) {
125
- const B = d[h];
125
+ const K = d[h];
126
126
  s({
127
127
  title: i("ERROR_DEFAULT_TITLE"),
128
- message: i("ERROR_FETCHING_CONCEPT", { conceptName: B }),
128
+ message: i("ERROR_FETCHING_CONCEPT", { conceptName: K }),
129
129
  type: "error"
130
130
  }), r.current.add(h);
131
131
  } else e.isError || r.current.delete(h);
132
132
  });
133
133
  }, [o, d]);
134
- const p = R(() => o.map((e) => e.data?.uuid).filter((e) => !!e), [o]), m = R(() => [.../* @__PURE__ */ new Set([...p, ...l])], [p, l]), v = R(() => d.length === 0 ? !0 : o.every((e) => !e.isLoading), [o, d.length]), {
134
+ const b = R(() => o.map((e) => e.data?.uuid).filter((e) => !!e), [o]), m = R(() => [.../* @__PURE__ */ new Set([...b, ...l])], [b, l]), v = R(() => d.length === 0 ? !0 : o.every((e) => !e.isLoading), [o, d.length]), {
135
135
  data: c,
136
136
  isLoading: A,
137
137
  isError: T,
@@ -157,13 +157,13 @@ const F = (a, n, d, l, b, r) => {
157
157
  }, [T]);
158
158
  const $ = R(() => {
159
159
  if (!c) return [];
160
- const e = X(c), h = w(e);
160
+ const e = X(c), h = k(e);
161
161
  return M(h);
162
162
  }, [c]), L = [
163
163
  { key: "name", header: "name" },
164
164
  { key: "value", header: "value" },
165
165
  { key: "form", header: "form" }
166
- ], f = A || !v, _ = T && v, q = (!c || c.entry?.length === 0 || m.length === 0) && v, C = _ ? i("ERROR_FETCHING_OBSERVATIONS") : null, U = q ? i("NO_OBSERVATIONS_FOUND") : void 0, k = $.length > 0 && !f && !_, E = n.titleTranslationKey, y = E ? i(E) : "";
166
+ ], _ = A || !v, f = T && v, C = (!c || c.entry?.length === 0 || m.length === 0) && v, U = f ? i("ERROR_FETCHING_OBSERVATIONS") : null, x = C ? i("NO_OBSERVATIONS_FOUND") : void 0, B = $.length > 0 && !_ && !f, E = n.titleTranslationKey, y = E ? i(E) : "";
167
167
  return /* @__PURE__ */ I(
168
168
  "div",
169
169
  {
@@ -182,12 +182,12 @@ const F = (a, n, d, l, b, r) => {
182
182
  children: /* @__PURE__ */ u("p", { children: y })
183
183
  }
184
184
  ),
185
- k ? /* @__PURE__ */ u(
185
+ B ? /* @__PURE__ */ u(
186
186
  ie,
187
187
  {
188
188
  groupedData: $,
189
189
  title: y,
190
- hideThumbnail: b
190
+ hideThumbnail: p
191
191
  }
192
192
  ) : /* @__PURE__ */ u(
193
193
  j,
@@ -195,9 +195,9 @@ const F = (a, n, d, l, b, r) => {
195
195
  headers: L,
196
196
  rows: [],
197
197
  ariaLabel: i("OBSERVATIONS"),
198
- loading: f,
199
- errorStateMessage: C,
200
- emptyStateMessage: U,
198
+ loading: _,
199
+ errorStateMessage: U,
200
+ emptyStateMessage: x,
201
201
  dataTestId: "observations-table"
202
202
  }
203
203
  )
@@ -207,6 +207,6 @@ const F = (a, n, d, l, b, r) => {
207
207
  };
208
208
  export {
209
209
  de as conceptUuidQueryKeys,
210
- pe as default,
210
+ be as default,
211
211
  le as observationsQueryKeys
212
212
  };
@@ -1,4 +1,4 @@
1
- import { q as we, s as z, t as xt, w as B, o as q, p as y, y as Ro, z as ye, S as R, C as _, L as k, M as N, O as A, Q as bs, T as ir, U as $e, V as U, a0 as Hn, a1 as Vn, a2 as dt, a3 as D, a4 as xs, a5 as cn, a6 as Be, a7 as ws, a8 as qt, a9 as zt, aa as $s, ab as Cs, ac as $n, ad as Ss, ae as Nr, af as Bt, ag as zo, ah as ks, ai as Es, aj as j, ak as Ur, al as Ms, am as Ds, an as sr, ao as As, ap as Ts, aq as zn, ar as Fs, as as Is, at as Z, au as Ps, av as Ls } from "./index-DucPzlE4.js";
1
+ import { q as we, s as z, t as xt, w as B, o as q, p as y, y as Ro, z as ye, S as R, C as _, L as k, M as N, O as A, Q as bs, T as ir, U as $e, V as U, a0 as Hn, a1 as Vn, a2 as dt, a3 as D, a4 as xs, a5 as cn, a6 as Be, a7 as ws, a8 as qt, a9 as zt, aa as $s, ab as Cs, ac as $n, ad as Ss, ae as Nr, af as Bt, ag as zo, ah as ks, ai as Es, aj as j, ak as Ur, al as Ms, am as Ds, an as sr, ao as As, ap as Ts, aq as zn, ar as Fs, as as Is, at as Z, au as Ps, av as Ls } from "./index-BY_FXoBB.js";
2
2
  var Os = (e) => e != null, qs = (e) => e.filter(Os);
3
3
  function _s(e) {
4
4
  return (...t) => {
@@ -146877,7 +146877,7 @@ const hXe = ({
146877
146877
  testId: t,
146878
146878
  children: e,
146879
146879
  ...n
146880
- }) => /* @__PURE__ */ jsx(Is, { ...n, "data-testid": t, children: e }), pXe = "_container_ajkme_1", fXe = "_accordion_ajkme_14", mXe = "_rows_ajkme_44", vc = {
146880
+ }) => /* @__PURE__ */ jsx(Is, { ...n, "data-testid": t, children: e }), pXe = "_container_iixgz_1", fXe = "_accordion_iixgz_5", mXe = "_rows_iixgz_36", vc = {
146881
146881
  container: pXe,
146882
146882
  accordion: fXe,
146883
146883
  rows: mXe
@@ -167737,7 +167737,7 @@ const n4t = ({
167737
167737
  );
167738
167738
  };
167739
167739
  var Qu = /* @__PURE__ */ ((t) => (t.STAT = "stat", t.ROUTINE = "routine", t.URGENT = "urgent", t.ASAP = "asap", t))(Qu || {});
167740
- const p4t = "_medicationTableEmpty_1uyri_1", f4t = "_medicationTabList_1uyri_12", m4t = "_medicationTabs_1uyri_16", w4t = "_columnDataBold_1uyri_20", g4t = "_medicationName_1uyri_27", v4t = "_medicineDetails_1uyri_37", E4t = "_PRN_1uyri_45", y4t = "_STAT_1uyri_50", V4t = "_activeStatus_1uyri_55", H4t = "_scheduledStatus_1uyri_59", b4t = "_cancelledStatus_1uyri_63", M4t = "_completedStatus_1uyri_67", x4t = "_stoppedStatus_1uyri_71", N4t = "_unknownStatus_1uyri_75", z4t = "_rowSeperator_1uyri_79", A4t = "_medicationsTableBody_1uyri_83", _4t = "_customAccordianItem_1uyri_90", Jt = {
167740
+ const p4t = "_medicationTableEmpty_16to4_1", f4t = "_medicationTabList_16to4_12", m4t = "_medicationTabs_16to4_16", w4t = "_columnDataBold_16to4_20", g4t = "_medicationName_16to4_27", v4t = "_medicineDetails_16to4_37", E4t = "_PRN_16to4_45", y4t = "_STAT_16to4_50", V4t = "_activeStatus_16to4_55", H4t = "_scheduledStatus_16to4_59", b4t = "_cancelledStatus_16to4_63", M4t = "_completedStatus_16to4_67", x4t = "_stoppedStatus_16to4_71", N4t = "_unknownStatus_16to4_75", z4t = "_rowSeperator_16to4_79", A4t = "_medicationsTableBody_16to4_83", _4t = "_customAccordianItem_16to4_90", Jt = {
167741
167741
  medicationTableEmpty: p4t,
167742
167742
  medicationTabList: f4t,
167743
167743
  medicationTabs: m4t,
@@ -168132,7 +168132,7 @@ const Y4t = (t) => !t || t.length === 0 ? [] : [...t].sort((e, n) => {
168132
168132
  return null;
168133
168133
  }
168134
168134
  };
168135
- return V ? /* @__PURE__ */ jsx("div", { "data-testid": "medications-table-error", children: /* @__PURE__ */ jsx("p", { className: Jt.medicationTableEmpty, children: r("MEDICATIONS_ERROR_FETCHING") }) }) : /* @__PURE__ */ jsx("div", { "data-testid": "medications-table", children: /* @__PURE__ */ jsxs(
168135
+ return V ? /* @__PURE__ */ jsx("div", { "data-testid": "medications-table-error", children: /* @__PURE__ */ jsx("p", { className: Jt.medicationTableEmpty, children: r("MEDICATIONS_ERROR_FETCHING") }) }) : /* @__PURE__ */ jsx("div", { id: "medications-table", "data-testid": "medications-table", children: /* @__PURE__ */ jsxs(
168136
168136
  hu,
168137
168137
  {
168138
168138
  selectedIndex: w,
@@ -168787,7 +168787,7 @@ function Xme(t) {
168787
168787
  }));
168788
168788
  return e.length > 0 ? e : void 0;
168789
168789
  }
168790
- const _dt = "_investigationName_1sd3z_1", Cdt = "_resultsCell_1sd3z_11", Tdt = "_radiologyInvestigationTableBody_1sd3z_17", Odt = "_customAccordianItem_1sd3z_30", Ldt = "_linkedOrderRow_1sd3z_51", Ddt = "_expandableContentSpacer_1sd3z_58", Rdt = "_reportSection_1sd3z_62", Sdt = "_reportTitle_1sd3z_65", $dt = "_reportDetails_1sd3z_71", Idt = "_reportTile_1sd3z_79", w1 = {
168790
+ const _dt = "_investigationName_1j8fh_17", Cdt = "_resultsCell_1j8fh_27", Tdt = "_radiologyInvestigationTableBody_1j8fh_33", Odt = "_customAccordianItem_1j8fh_46", Ldt = "_linkedOrderRow_1j8fh_67", Ddt = "_expandableContentSpacer_1j8fh_74", Rdt = "_reportSection_1j8fh_78", Sdt = "_reportTitle_1j8fh_81", $dt = "_reportDetails_1j8fh_87", Idt = "_reportTile_1j8fh_95", w1 = {
168791
168791
  investigationName: _dt,
168792
168792
  resultsCell: Cdt,
168793
168793
  radiologyInvestigationTableBody: Tdt,
@@ -169326,7 +169326,7 @@ const t7e = (t) => ["radiologyInvestigation", t], Jdt = async (t, e, n, r) => {
169326
169326
  __proto__: null,
169327
169327
  default: Qdt,
169328
169328
  radiologyInvestigationQueryKeys: t7e
169329
- }, Symbol.toStringTag, { value: "Module" })), eut = "_labSkeleton_1icxb_1", tut = "_labTest_1icxb_5", rut = "_labTestHeader_1icxb_10", nut = "_labTestInfo_1icxb_19", out = "_testName_1icxb_31", aut = "_result_1icxb_39", iut = "_abnormalResult_1icxb_53", sut = "_testDetails_1icxb_69", lut = "_testResultsPending_1icxb_77", cut = "_accordionItem_1icxb_86", dut = "_labInvestigationTableBodyError_1icxb_97", uut = "_labTestResultsTable_1icxb_106", hut = "_viewAttachmentsLink_1icxb_112", put = "_attachmentsContainer_1icxb_116", fut = "_attachmentViewer_1icxb_123", mut = "_attachmentIframe_1icxb_131", wut = "_attachmentImage_1icxb_137", gut = "_attachmentNumber_1icxb_142", tr = {
169329
+ }, Symbol.toStringTag, { value: "Module" })), eut = "_labSkeleton_ogyfk_5", tut = "_labTest_ogyfk_9", rut = "_labTestHeader_ogyfk_14", nut = "_labTestInfo_ogyfk_23", out = "_testName_ogyfk_35", aut = "_result_ogyfk_43", iut = "_abnormalResult_ogyfk_57", sut = "_testDetails_ogyfk_73", lut = "_testResultsPending_ogyfk_81", cut = "_accordionItem_ogyfk_90", dut = "_labInvestigationTableBodyError_ogyfk_101", uut = "_labTestResultsTable_ogyfk_110", hut = "_viewAttachmentsLink_ogyfk_116", put = "_attachmentsContainer_ogyfk_120", fut = "_attachmentViewer_ogyfk_127", mut = "_attachmentIframe_ogyfk_135", wut = "_attachmentImage_ogyfk_141", gut = "_attachmentNumber_ogyfk_146", tr = {
169330
169330
  labSkeleton: eut,
169331
169331
  labTest: tut,
169332
169332
  labTestHeader: rut,
@@ -169706,31 +169706,33 @@ const Aut = ({
169706
169706
  className: tr.labSkeleton,
169707
169707
  testId: "lab-skeleton"
169708
169708
  }
169709
- ) : !E && (Z.length === 0 || C) ? /* @__PURE__ */ jsx("div", { className: tr.labInvestigationTableBodyError, children: r("LAB_TEST_UNAVAILABLE") }) : /* @__PURE__ */ jsx(Ao, { align: "start", children: spe.map((h7e, Hrt) => /* @__PURE__ */ jsx(
169710
- _o,
169711
- {
169712
- className: tr.accordionItem,
169713
- open: A.has(Hrt),
169714
- onHeadingClick: () => {
169715
- w((tft) => {
169716
- const eft = new Set(tft);
169717
- return eft.has(Hrt) ? eft.delete(Hrt) : (eft.add(Hrt), b(Hrt)), eft;
169718
- });
169719
- },
169720
- title: h7e.date,
169721
- children: h7e.tests?.map((tft) => /* @__PURE__ */ jsx(
169722
- Aut,
169723
- {
169724
- test: tft,
169725
- isOpen: A.has(Hrt),
169726
- hasProcessedReport: !!tft.reportId,
169727
- reportId: tft.reportId
169709
+ ) : !E && (Z.length === 0 || C) ? /* @__PURE__ */ jsx("div", { className: tr.labInvestigationTableBodyError, children: r("LAB_TEST_UNAVAILABLE") }) : /* @__PURE__ */ jsx("div", { id: "lab-investigations", children: /* @__PURE__ */ jsx(Ao, { align: "start", children: spe.map(
169710
+ (h7e, Hrt) => /* @__PURE__ */ jsx(
169711
+ _o,
169712
+ {
169713
+ className: tr.accordionItem,
169714
+ open: A.has(Hrt),
169715
+ onHeadingClick: () => {
169716
+ w((tft) => {
169717
+ const eft = new Set(tft);
169718
+ return eft.has(Hrt) ? eft.delete(Hrt) : (eft.add(Hrt), b(Hrt)), eft;
169719
+ });
169728
169720
  },
169729
- tft.id ?? `${h7e.date}-${tft.testName}`
169730
- ))
169731
- },
169732
- h7e.date
169733
- )) });
169721
+ title: h7e.date,
169722
+ children: h7e.tests?.map((tft) => /* @__PURE__ */ jsx(
169723
+ Aut,
169724
+ {
169725
+ test: tft,
169726
+ isOpen: A.has(Hrt),
169727
+ hasProcessedReport: !!tft.reportId,
169728
+ reportId: tft.reportId
169729
+ },
169730
+ tft.id ?? `${h7e.date}-${tft.testName}`
169731
+ ))
169732
+ },
169733
+ h7e.date
169734
+ )
169735
+ ) }) });
169734
169736
  }, Tut = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
169735
169737
  __proto__: null,
169736
169738
  default: Cut
@@ -170300,7 +170302,7 @@ ${Z.formattedResult}`
170300
170302
  }, oht = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
170301
170303
  __proto__: null,
170302
170304
  default: nht
170303
- }, Symbol.toStringTag, { value: "Module" })), aht = "_requestName_1uf67_1", iht = "_serviceRequestTableBody_1uf67_12", sht = "_customAccordianItem_1uf67_25", ei = {
170305
+ }, Symbol.toStringTag, { value: "Module" })), aht = "_requestName_1khlg_5", iht = "_serviceRequestTableBody_1khlg_16", sht = "_customAccordianItem_1khlg_29", ei = {
170304
170306
  requestName: aht,
170305
170307
  serviceRequestTableBody: iht,
170306
170308
  customAccordianItem: sht
@@ -170454,47 +170456,54 @@ const n7e = (t, e, n) => ["genericServiceRequest", t, e, n], hht = async (t, e,
170454
170456
  },
170455
170457
  [a]
170456
170458
  );
170457
- return /* @__PURE__ */ jsx("div", { "data-testid": "generic-service-request-table", children: N || P || j.length === 0 || A ? /* @__PURE__ */ jsx(
170458
- cr,
170459
+ return /* @__PURE__ */ jsx(
170460
+ "div",
170459
170461
  {
170460
- headers: Z,
170461
- ariaLabel: a("SERVICE_REQUEST_HEADING"),
170462
- rows: [],
170463
- loading: N,
170464
- errorStateMessage: P ? S?.message : void 0,
170465
- emptyStateMessage: a("NO_SERVICE_REQUESTS"),
170466
- renderCell: i1,
170467
- className: ei.serviceRequestTableBody,
170468
- dataTestId: "generic-service-request-table"
170469
- }
170470
- ) : /* @__PURE__ */ jsx(Ao, { align: "start", children: j.map((h1, $) => {
170471
- const { date: K1, requests: spe } = h1;
170472
- return /* @__PURE__ */ jsx(
170473
- _o,
170474
- {
170475
- title: K1,
170476
- className: ei.customAccordianItem,
170477
- testId: "accordian-table-title",
170478
- open: $ === 0,
170479
- children: /* @__PURE__ */ jsx(
170480
- cr,
170462
+ id: "generic-service-request-table",
170463
+ "data-testid": "generic-service-request-table",
170464
+ children: N || P || j.length === 0 || A ? /* @__PURE__ */ jsx(
170465
+ cr,
170466
+ {
170467
+ headers: Z,
170468
+ ariaLabel: a("SERVICE_REQUEST_HEADING"),
170469
+ rows: [],
170470
+ loading: N,
170471
+ errorStateMessage: P ? S?.message : void 0,
170472
+ emptyStateMessage: a("NO_SERVICE_REQUESTS"),
170473
+ renderCell: i1,
170474
+ className: ei.serviceRequestTableBody,
170475
+ dataTestId: "generic-service-request-table"
170476
+ }
170477
+ ) : /* @__PURE__ */ jsx(Ao, { align: "start", children: j.map((h1, $) => {
170478
+ const { date: K1, requests: spe } = h1;
170479
+ return /* @__PURE__ */ jsx(
170480
+ _o,
170481
170481
  {
170482
- headers: Z,
170483
- ariaLabel: a("SERVICE_REQUEST_HEADING"),
170484
- rows: spe,
170485
- loading: N,
170486
- errorStateMessage: "",
170487
- sortable: E,
170488
- emptyStateMessage: a("NO_SERVICE_REQUESTS"),
170489
- renderCell: i1,
170490
- className: ei.serviceRequestTableBody,
170491
- dataTestId: `generic-service-request-table-${K1}`
170492
- }
170493
- )
170494
- },
170495
- K1
170496
- );
170497
- }) }) });
170482
+ title: K1,
170483
+ className: ei.customAccordianItem,
170484
+ testId: "accordian-table-title",
170485
+ open: $ === 0,
170486
+ children: /* @__PURE__ */ jsx(
170487
+ cr,
170488
+ {
170489
+ headers: Z,
170490
+ ariaLabel: a("SERVICE_REQUEST_HEADING"),
170491
+ rows: spe,
170492
+ loading: N,
170493
+ errorStateMessage: "",
170494
+ sortable: E,
170495
+ emptyStateMessage: a("NO_SERVICE_REQUESTS"),
170496
+ renderCell: i1,
170497
+ className: ei.serviceRequestTableBody,
170498
+ dataTestId: `generic-service-request-table-${K1}`
170499
+ }
170500
+ )
170501
+ },
170502
+ K1
170503
+ );
170504
+ }) })
170505
+ }
170506
+ );
170498
170507
  }, fht = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
170499
170508
  __proto__: null,
170500
170509
  default: pht,
@@ -171441,7 +171450,7 @@ const apt = [
171441
171450
  },
171442
171451
  {
171443
171452
  type: "patientDocuments",
171444
- component: lazy$1(() => import("./DocumentsTable-BReXAZIp-C6ivA7EA.js"))
171453
+ component: lazy$1(() => import("./DocumentsTable-CTpGjHXi-BS3py5vP.js"))
171445
171454
  },
171446
171455
  {
171447
171456
  type: "flowSheet",
@@ -171449,7 +171458,7 @@ const apt = [
171449
171458
  },
171450
171459
  {
171451
171460
  type: "forms",
171452
- component: lazy$1(() => import("./FormsTable-C2TMKYSS-B-m5UjyJ.js"))
171461
+ component: lazy$1(() => import("./FormsTable-BIz1A-5g-D_GWAQ4K.js"))
171453
171462
  },
171454
171463
  {
171455
171464
  type: "labOrders",
@@ -171457,7 +171466,7 @@ const apt = [
171457
171466
  },
171458
171467
  {
171459
171468
  type: "observations",
171460
- component: lazy$1(() => import("./Observations-CicWM0Ea-HASisspz.js"))
171469
+ component: lazy$1(() => import("./Observations-Cf7HY6Zc-DupzN5D2.js"))
171461
171470
  },
171462
171471
  {
171463
171472
  type: "ordersControl",
@@ -173363,7 +173372,7 @@ var displayValue = (t, e = !1) => {
173363
173372
  const e = render(() => {
173364
173373
  const n = this, [r] = this.#o, [a] = this.#d, [l] = this.#f, [c] = this.#u, [g] = this.#h, [A] = this.#t;
173365
173374
  let w;
173366
- return this.#s ? w = this.#s : (w = lazy(() => import("./LNWAZHJI-wYmsNErv.js")), this.#s = w), setupStyleSheet(this.#i, this.#l), createComponent(w, mergeProps({
173375
+ return this.#s ? w = this.#s : (w = lazy(() => import("./LNWAZHJI-TFLuXN4b.js")), this.#s = w), setupStyleSheet(this.#i, this.#l), createComponent(w, mergeProps({
173367
173376
  get queryFlavor() {
173368
173377
  return n.#n;
173369
173378
  },
@@ -173461,7 +173470,7 @@ var displayValue = (t, e = !1) => {
173461
173470
  const e = render(() => {
173462
173471
  const n = this, [r] = this.#o, [a] = this.#d, [l] = this.#f, [c] = this.#u, [g] = this.#h, [A] = this.#t, [w] = this.#s;
173463
173472
  let _;
173464
- return this.#c ? _ = this.#c : (_ = lazy(() => import("./MWZ6AO7Z-fdO4CnVO.js")), this.#c = _), setupStyleSheet(this.#i, this.#l), createComponent(_, mergeProps({
173473
+ return this.#c ? _ = this.#c : (_ = lazy(() => import("./MWZ6AO7Z-C5UZFVIw.js")), this.#c = _), setupStyleSheet(this.#i, this.#l), createComponent(_, mergeProps({
173465
173474
  get queryFlavor() {
173466
173475
  return n.#n;
173467
173476
  },
@@ -231745,7 +231754,7 @@ function mapAllergyToInputEntry(t) {
231745
231754
  hasBeenValidated: !1
231746
231755
  };
231747
231756
  }
231748
- const sectionWrapper = "_sectionWrapper_1mshb_1", sectionName = "_sectionName_1mshb_26", sectionNameWithEdit = "_sectionNameWithEdit_1mshb_37", divider = "_divider_1mshb_51", widgetLoading = "_widgetLoading_1mshb_55", noContent = "_noContent_1mshb_65", widgetError = "_widgetError_1mshb_76", styles$4 = {
231757
+ const sectionWrapper = "_sectionWrapper_17ygr_1", sectionName = "_sectionName_17ygr_8", sectionNameWithEdit = "_sectionNameWithEdit_17ygr_19", divider = "_divider_17ygr_33", widgetLoading = "_widgetLoading_17ygr_37", noContent = "_noContent_17ygr_47", widgetError = "_widgetError_17ygr_58", styles$4 = {
231749
231758
  sectionWrapper,
231750
231759
  sectionName,
231751
231760
  sectionNameWithEdit,