@bahmni/registration-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, F as J, b as X, m as Z, c as ee, r as te } from "./index-CYGwGfmW.js";
2
+ import { d as K, u as Q, a as W, F as J, b as X, m as Z, c as ee, r as te } from "./index-rMUBJNQi.js";
3
3
  import { useQuery as ae } from "@tanstack/react-query";
4
4
  import { useState as m, useCallback as h, useEffect as O, useMemo as T } from "react";
5
5
  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 = {
@@ -1,8 +1,8 @@
1
1
  import { jsx as s, jsxs as J, Fragment as W } from "react/jsx-runtime";
2
- import { u as Z, d as ee, e as re, j as ae, B as te, P as oe, k as se, X as ne, R as U, m as de, b as ie, c as S, A as me, _ as ue, r as le, Y as ce, I as fe } from "./index-CYGwGfmW.js";
2
+ import { u as Z, d as ee, e as re, j as ae, B as te, P as oe, k as se, X as ne, R as q, m as de, b as ie, c as U, A as me, _ as ue, r as le, Y as ce, I as fe } from "./index-rMUBJNQi.js";
3
3
  import { useQueryClient as ye, useQuery as c } from "@tanstack/react-query";
4
- import { useState as q, useMemo as d, useCallback as f } from "react";
5
- const pe = "_formsTableBody_81hra_1", be = "_customAccordianItem_81hra_6", A = {
4
+ import { useState as S, useMemo as d, useCallback as f } from "react";
5
+ const pe = "_formsTableBody_ourq9_5", be = "_customAccordianItem_ourq9_10", I = {
6
6
  formsTableBody: pe,
7
7
  customAccordianItem: be
8
8
  }, ge = (m) => m ? m.extension?.find(
@@ -12,20 +12,20 @@ const pe = "_formsTableBody_81hra_1", be = "_customAccordianItem_81hra_6", A = {
12
12
  encounterUuids: n,
13
13
  config: C
14
14
  }) => {
15
- const { t: o } = Z(), u = ee(), [l, I] = q(!1), [t, O] = q(null), { numberOfVisits: k, hideThumbnail: j = !1 } = C ?? {}, B = re(
15
+ const { t: o } = Z(), u = ee(), [l, h] = S(!1), [t, O] = S(null), { numberOfVisits: k, hideThumbnail: j = !1 } = C ?? {}, B = re(
16
16
  m,
17
17
  n
18
18
  ), x = ye(), {
19
19
  data: y = [],
20
20
  isLoading: _,
21
- isError: T,
21
+ isError: E,
22
22
  error: H,
23
23
  refetch: K
24
24
  } = c({
25
25
  queryKey: ["forms", u, m],
26
26
  queryFn: () => ae(u, void 0, k),
27
27
  enabled: !!u && !B
28
- }), E = d(() => !n || n.length === 0 ? y : y.filter(
28
+ }), T = d(() => !n || n.length === 0 ? y : y.filter(
29
29
  (e) => n.includes(e.encounterUuid)
30
30
  ), [y, n]), { data: R = [] } = c({
31
31
  queryKey: ["observationForms"],
@@ -65,9 +65,9 @@ const pe = "_formsTableBody_81hra_1", be = "_customAccordianItem_81hra_6", A = {
65
65
  return !r || r.includes(t.formName);
66
66
  }), [g, t?.formName]), Y = d(() => {
67
67
  if (b)
68
- return U(b).message;
68
+ return q(b).message;
69
69
  if (N)
70
- return U(N).message;
70
+ return q(N).message;
71
71
  }, [b, N]), L = d(
72
72
  () => [
73
73
  { key: "recordedOn", header: o("RECORDED_ON") },
@@ -81,16 +81,16 @@ const pe = "_formsTableBody_81hra_1", be = "_customAccordianItem_81hra_6", A = {
81
81
  ],
82
82
  []
83
83
  ), M = d(() => {
84
- const e = E.reduce(
84
+ const e = T.reduce(
85
85
  (r, a) => {
86
86
  const i = a.formName;
87
87
  r[i] ??= [];
88
- const h = a.providers.map((X) => X.providerName).filter(Boolean).join(", ");
88
+ const A = a.providers.map((X) => X.providerName).filter(Boolean).join(", ");
89
89
  return r[i].push({
90
90
  id: a.encounterUuid,
91
91
  formName: a.formName,
92
92
  recordedOn: de(a.encounterDateTime, o, !0).formattedResult,
93
- recordedBy: h ?? "--",
93
+ recordedBy: A ?? "--",
94
94
  encounterDateTime: a.encounterDateTime,
95
95
  encounterUuid: a.encounterUuid
96
96
  }), r;
@@ -101,14 +101,14 @@ const pe = "_formsTableBody_81hra_1", be = "_customAccordianItem_81hra_6", A = {
101
101
  ([r, a]) => ({
102
102
  formName: r,
103
103
  records: a.sort(
104
- (i, h) => h.encounterDateTime - i.encounterDateTime
104
+ (i, A) => A.encounterDateTime - i.encounterDateTime
105
105
  )
106
106
  })
107
107
  ).sort((r, a) => r.formName.localeCompare(a.formName));
108
- }, [E, o]), v = f((e) => {
109
- O(e), I(!0);
108
+ }, [T, o]), v = f((e) => {
109
+ O(e), h(!0);
110
110
  }, []), G = f(() => {
111
- I(!1), O(null);
111
+ h(!1), O(null);
112
112
  }, []), D = f(
113
113
  (e, r) => {
114
114
  switch (r) {
@@ -123,17 +123,17 @@ const pe = "_formsTableBody_81hra_1", be = "_customAccordianItem_81hra_6", A = {
123
123
  [v]
124
124
  );
125
125
  return /* @__PURE__ */ J(W, { children: [
126
- /* @__PURE__ */ s("div", { "data-testid": "forms-table", children: _ || T || M.length === 0 || B ? /* @__PURE__ */ s(
127
- S,
126
+ /* @__PURE__ */ s("div", { id: "forms-table", "data-testid": "forms-table", children: _ || E || M.length === 0 || B ? /* @__PURE__ */ s(
127
+ U,
128
128
  {
129
129
  headers: L,
130
130
  ariaLabel: o("FORMS_HEADING"),
131
131
  rows: [],
132
132
  loading: _,
133
- errorStateMessage: T ? H?.message : void 0,
133
+ errorStateMessage: E ? H?.message : void 0,
134
134
  emptyStateMessage: o("FORMS_UNAVAILABLE"),
135
135
  renderCell: D,
136
- className: A.formsTableBody,
136
+ className: I.formsTableBody,
137
137
  dataTestId: "forms-table"
138
138
  }
139
139
  ) : /* @__PURE__ */ s(me, { align: "start", children: M.map((e, r) => {
@@ -142,11 +142,11 @@ const pe = "_formsTableBody_81hra_1", be = "_customAccordianItem_81hra_6", A = {
142
142
  ue,
143
143
  {
144
144
  title: a,
145
- className: A.customAccordianItem,
145
+ className: I.customAccordianItem,
146
146
  testId: `accordian-title-${a}`,
147
147
  open: r === 0,
148
148
  children: /* @__PURE__ */ s(
149
- S,
149
+ U,
150
150
  {
151
151
  headers: L,
152
152
  ariaLabel: o("FORMS_HEADING"),
@@ -156,7 +156,7 @@ const pe = "_formsTableBody_81hra_1", be = "_customAccordianItem_81hra_6", A = {
156
156
  sortable: z,
157
157
  emptyStateMessage: o("FORMS_UNAVAILABLE"),
158
158
  renderCell: D,
159
- className: A.formsTableBody,
159
+ className: I.formsTableBody,
160
160
  dataTestId: `forms-table-${a}`
161
161
  }
162
162
  )
@@ -1,5 +1,5 @@
1
- import { c, T as l, P as m, a as i, D as u, Q as v } from "./YPM2AS64-RZyaOFqK.js";
2
- import { h as d, i as f, l as e } from "./index-CYGwGfmW.js";
1
+ import { c, T as l, P as m, a as i, D as u, Q as v } from "./YPM2AS64-CY4CSO5N.js";
2
+ import { h as d, i as f, l as e } from "./index-rMUBJNQi.js";
3
3
  var h = (a) => {
4
4
  const [r, t] = c({
5
5
  prefix: "TanstackQueryDevtools"
@@ -1,5 +1,5 @@
1
- import { c as s, T as c, P as i, a as u, b as m, C as P, Q as d } from "./YPM2AS64-RZyaOFqK.js";
2
- import { h, i as v, l as e } from "./index-CYGwGfmW.js";
1
+ import { c as s, T as c, P as i, a as u, b as m, C as P, Q as d } from "./YPM2AS64-CY4CSO5N.js";
2
+ import { h, i as v, l as e } from "./index-rMUBJNQi.js";
3
3
  var C = (t) => {
4
4
  const [r, o] = s({
5
5
  prefix: "TanstackQueryDevtools"
@@ -1,9 +1,9 @@
1
1
  import { jsxs as I, jsx as u } from "react/jsx-runtime";
2
- import { d as K, a as V, u as S, $ as x, Z as G, X as H, f as Q, G as X, J as w, x as M, c as W, W as j, E as D, K as J, v as P, g as Y, H as Z, D as z, N as ee } from "./index-CYGwGfmW.js";
2
+ import { d as V, a as w, u as S, $ as q, Z as G, X as H, f as Q, G as X, J as k, x as M, c as W, W as j, E as D, K as J, v as P, g as Y, H as Z, D as z, N as ee } from "./index-rMUBJNQi.js";
3
3
  import { useQueries as ae, useQuery as te } from "@tanstack/react-query";
4
- import { useRef as se, useEffect as O, useMemo as f } from "react";
5
- const F = (a, n, d, l, b, r) => {
6
- const t = J(a, n, b), s = t.value, i = P(s);
4
+ import { useRef as se, useEffect as O, useMemo as g } from "react";
5
+ const F = (a, n, d, l, p, r) => {
6
+ const t = J(a, n, p), s = t.value, i = P(s);
7
7
  let o = s;
8
8
  i === "Image" && (o = /* @__PURE__ */ u(
9
9
  Z,
@@ -21,7 +21,7 @@ const F = (a, n, d, l, b, r) => {
21
21
  hideThumbnail: r
22
22
  }
23
23
  )), i === "PDF" && (o = /* @__PURE__ */ u(ee, { id: `${s}-pdf`, src: s }));
24
- const p = b("OBSERVATIONS_RECORDED_BY", {
24
+ const b = p("OBSERVATIONS_RECORDED_BY", {
25
25
  provider: t.provider
26
26
  }), m = a.display, v = a.observationValue?.isAbnormal ? "abnormal-obs" : "obs", c = l ? `${l}-${v}-${m}-${d}-${n}` : `${v}-${m}-${d}-${n}`;
27
27
  return /* @__PURE__ */ u(
@@ -29,14 +29,14 @@ const F = (a, n, d, l, b, r) => {
29
29
  {
30
30
  header: t.header,
31
31
  value: o,
32
- info: p,
32
+ info: b,
33
33
  id: c,
34
34
  testId: c,
35
35
  ariaLabel: c
36
36
  },
37
37
  `obs-${a.id}`
38
38
  );
39
- }, re = (a, n, d, l, b, r, t) => /* @__PURE__ */ u(
39
+ }, re = (a, n, d, l, p, r, t) => /* @__PURE__ */ u(
40
40
  D,
41
41
  {
42
42
  title: a.display,
@@ -46,7 +46,7 @@ const F = (a, n, d, l, b, r) => {
46
46
  (s, i) => F(
47
47
  s,
48
48
  i,
49
- b,
49
+ p,
50
50
  r,
51
51
  n,
52
52
  t
@@ -59,7 +59,7 @@ const F = (a, n, d, l, b, r) => {
59
59
  title: n = "",
60
60
  hideThumbnail: d
61
61
  }) => {
62
- const { t: l } = S(), b = (r, t, s) => {
62
+ const { t: l } = S(), p = (r, t, s) => {
63
63
  const i = j(r.encounterDetails, l);
64
64
  return /* @__PURE__ */ I(
65
65
  D,
@@ -69,9 +69,9 @@ const F = (a, n, d, l, b, r) => {
69
69
  open: t,
70
70
  children: [
71
71
  r.observations.map(
72
- (o, p) => F(
72
+ (o, b) => F(
73
73
  o,
74
- p,
74
+ b,
75
75
  s,
76
76
  n,
77
77
  l,
@@ -79,11 +79,11 @@ const F = (a, n, d, l, b, r) => {
79
79
  )
80
80
  ),
81
81
  r.groupedObservations.map(
82
- (o, p) => re(
82
+ (o, b) => re(
83
83
  o,
84
84
  l,
85
85
  t,
86
- p,
86
+ b,
87
87
  s,
88
88
  n,
89
89
  d
@@ -101,42 +101,42 @@ const F = (a, n, d, l, b, r) => {
101
101
  "data-testid": "obs-by-encounter-test-id",
102
102
  "aria-label": "obs-by-encounter-aria-label",
103
103
  children: a.map(
104
- (r, t) => b(r, t === 0, t)
104
+ (r, t) => p(r, t === 0, t)
105
105
  )
106
106
  }
107
107
  );
108
- }, oe = "_observations_kfbhq_1", ne = "_title_kfbhq_12", N = {
108
+ }, oe = "_observations_w45xp_1", ne = "_title_w45xp_18", N = {
109
109
  observations: oe,
110
110
  title: ne
111
111
  }, de = (a) => ["conceptUuid", a], le = (a, n) => ["observations", a, ...n], me = ({ config: a }) => {
112
112
  const n = a, {
113
113
  conceptNames: d = [],
114
114
  conceptUuid: l = [],
115
- hideThumbnail: b = !1
116
- } = n, r = se(/* @__PURE__ */ new Set()), t = K(), { addNotification: s } = V(), { t: i } = S(), o = ae({
115
+ hideThumbnail: p = !1
116
+ } = n, r = se(/* @__PURE__ */ new Set()), t = V(), { addNotification: s } = w(), { t: i } = S(), o = ae({
117
117
  queries: d.map((e) => ({
118
118
  queryKey: de(e),
119
- queryFn: () => x(e),
119
+ queryFn: () => q(e),
120
120
  enabled: !!e
121
121
  }))
122
122
  });
123
123
  O(() => {
124
124
  o.forEach((e, h) => {
125
125
  if (e.isError && !r.current.has(h)) {
126
- const B = d[h];
126
+ const K = d[h];
127
127
  s({
128
128
  title: i("ERROR_DEFAULT_TITLE"),
129
- message: i("ERROR_FETCHING_CONCEPT", { conceptName: B }),
129
+ message: i("ERROR_FETCHING_CONCEPT", { conceptName: K }),
130
130
  type: "error"
131
131
  }), r.current.add(h);
132
132
  } else e.isError || r.current.delete(h);
133
133
  });
134
134
  }, [o, d]);
135
- const p = f(() => o.map((e) => e.data?.uuid).filter((e) => !!e), [o]), m = f(() => [.../* @__PURE__ */ new Set([...p, ...l])], [p, l]), v = f(() => d.length === 0 ? !0 : o.every((e) => !e.isLoading), [o, d.length]), {
135
+ const b = g(() => o.map((e) => e.data?.uuid).filter((e) => !!e), [o]), m = g(() => [.../* @__PURE__ */ new Set([...b, ...l])], [b, l]), v = g(() => d.length === 0 ? !0 : o.every((e) => !e.isLoading), [o, d.length]), {
136
136
  data: c,
137
137
  isLoading: A,
138
- isError: g,
139
- refetch: R
138
+ isError: R,
139
+ refetch: T
140
140
  } = te({
141
141
  queryKey: le(t, m),
142
142
  queryFn: () => G(t, m),
@@ -146,25 +146,25 @@ const F = (a, n, d, l, b, r) => {
146
146
  (e) => {
147
147
  e.patientUUID === t && e.updatedConcepts.size > 0 && [...e.updatedConcepts.keys()].some(
148
148
  (h) => m.includes(h)
149
- ) && R();
149
+ ) && T();
150
150
  },
151
- [t, R]
151
+ [t, T]
152
152
  ), O(() => {
153
- g && s({
153
+ R && s({
154
154
  title: i("ERROR_DEFAULT_TITLE"),
155
155
  message: i("ERROR_FETCHING_OBSERVATIONS"),
156
156
  type: "error"
157
157
  });
158
- }, [g]);
159
- const T = f(() => {
158
+ }, [R]);
159
+ const $ = g(() => {
160
160
  if (!c) return [];
161
161
  const e = Q(c), h = X(e);
162
- return w(h);
162
+ return k(h);
163
163
  }, [c]), L = [
164
164
  { key: "name", header: "name" },
165
165
  { key: "value", header: "value" },
166
166
  { key: "form", header: "form" }
167
- ], $ = A || !v, _ = g && 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 = T.length > 0 && !$ && !_, E = n.titleTranslationKey, y = E ? i(E) : "";
167
+ ], f = A || !v, _ = R && v, C = (!c || c.entry?.length === 0 || m.length === 0) && v, U = _ ? i("ERROR_FETCHING_OBSERVATIONS") : null, x = C ? i("NO_OBSERVATIONS_FOUND") : void 0, B = $.length > 0 && !f && !_, E = n.titleTranslationKey, y = E ? i(E) : "";
168
168
  return /* @__PURE__ */ I(
169
169
  "div",
170
170
  {
@@ -183,12 +183,12 @@ const F = (a, n, d, l, b, r) => {
183
183
  children: /* @__PURE__ */ u("p", { children: y })
184
184
  }
185
185
  ),
186
- k ? /* @__PURE__ */ u(
186
+ B ? /* @__PURE__ */ u(
187
187
  ie,
188
188
  {
189
- groupedData: T,
189
+ groupedData: $,
190
190
  title: y,
191
- hideThumbnail: b
191
+ hideThumbnail: p
192
192
  }
193
193
  ) : /* @__PURE__ */ u(
194
194
  W,
@@ -196,9 +196,9 @@ const F = (a, n, d, l, b, r) => {
196
196
  headers: L,
197
197
  rows: [],
198
198
  ariaLabel: i("OBSERVATIONS"),
199
- loading: $,
200
- errorStateMessage: C,
201
- emptyStateMessage: U,
199
+ loading: f,
200
+ errorStateMessage: U,
201
+ emptyStateMessage: x,
202
202
  dataTestId: "observations-table"
203
203
  }
204
204
  )
@@ -1,4 +1,4 @@
1
- import { n as we, o as z, p as xt, q as B, i as q, l as y, s as Ro, t as ye, S as R, w as _, y as k, z as N, C as A, L as bs, M as ir, O as $e, Q as U, T as Hn, U as Vn, V as dt, a0 as D, a1 as xs, a2 as cn, a3 as Be, a4 as ws, a5 as qt, a6 as zt, a7 as $s, a8 as Cs, a9 as $n, aa as Ss, ab as Nr, ac as Bt, ad as zo, ae as ks, af as Es, ag as j, ah as Ur, ai as Ms, aj as Ds, ak as sr, al as As, am as Ts, an as zn, ao as Fs, ap as Is, aq as Z, ar as Ps, as as Ls } from "./index-CYGwGfmW.js";
1
+ import { n as we, o as z, p as xt, q as B, i as q, l as y, s as Ro, t as ye, S as R, w as _, y as k, z as N, C as A, L as bs, M as ir, O as $e, Q as U, T as Hn, U as Vn, V as dt, a0 as D, a1 as xs, a2 as cn, a3 as Be, a4 as ws, a5 as qt, a6 as zt, a7 as $s, a8 as Cs, a9 as $n, aa as Ss, ab as Nr, ac as Bt, ad as zo, ae as ks, af as Es, ag as j, ah as Ur, ai as Ms, aj as Ds, ak as sr, al as As, am as Ts, an as zn, ao as Fs, ap as Is, aq as Z, ar as Ps, as as Ls } from "./index-rMUBJNQi.js";
2
2
  var Os = (e) => e != null, qs = (e) => e.filter(Os);
3
3
  function _s(e) {
4
4
  return (...t) => {
@@ -142915,7 +142915,7 @@ const zC0 = ({
142915
142915
  testId: t,
142916
142916
  children: e,
142917
142917
  ...r
142918
- }) => /* @__PURE__ */ ce(yd, { ...r, "data-testid": t, children: e }), HC0 = "_container_ajkme_1", bC0 = "_accordion_ajkme_14", xC0 = "_rows_ajkme_44", dp = {
142918
+ }) => /* @__PURE__ */ ce(yd, { ...r, "data-testid": t, children: e }), HC0 = "_container_iixgz_1", bC0 = "_accordion_iixgz_5", xC0 = "_rows_iixgz_36", dp = {
142919
142919
  container: HC0,
142920
142920
  accordion: bC0,
142921
142921
  rows: xC0
@@ -163541,7 +163541,7 @@ const AP0 = ({
163541
163541
  );
163542
163542
  };
163543
163543
  var xV = /* @__PURE__ */ ((t) => (t.STAT = "stat", t.ROUTINE = "routine", t.URGENT = "urgent", t.ASAP = "asap", t))(xV || {});
163544
- const ZP0 = "_medicationTableEmpty_1uyri_1", BP0 = "_medicationTabList_1uyri_12", PP0 = "_medicationTabs_1uyri_16", FP0 = "_columnDataBold_1uyri_20", jP0 = "_medicationName_1uyri_27", qP0 = "_medicineDetails_1uyri_37", UP0 = "_PRN_1uyri_45", WP0 = "_STAT_1uyri_50", KP0 = "_activeStatus_1uyri_55", YP0 = "_scheduledStatus_1uyri_59", GP0 = "_cancelledStatus_1uyri_63", JP0 = "_completedStatus_1uyri_67", QP0 = "_stoppedStatus_1uyri_71", XP0 = "_unknownStatus_1uyri_75", eF0 = "_rowSeperator_1uyri_79", tF0 = "_medicationsTableBody_1uyri_83", rF0 = "_customAccordianItem_1uyri_90", l0 = {
163544
+ const ZP0 = "_medicationTableEmpty_16to4_1", BP0 = "_medicationTabList_16to4_12", PP0 = "_medicationTabs_16to4_16", FP0 = "_columnDataBold_16to4_20", jP0 = "_medicationName_16to4_27", qP0 = "_medicineDetails_16to4_37", UP0 = "_PRN_16to4_45", WP0 = "_STAT_16to4_50", KP0 = "_activeStatus_16to4_55", YP0 = "_scheduledStatus_16to4_59", GP0 = "_cancelledStatus_16to4_63", JP0 = "_completedStatus_16to4_67", QP0 = "_stoppedStatus_16to4_71", XP0 = "_unknownStatus_16to4_75", eF0 = "_rowSeperator_16to4_79", tF0 = "_medicationsTableBody_16to4_83", rF0 = "_customAccordianItem_16to4_90", l0 = {
163545
163545
  medicationTableEmpty: ZP0,
163546
163546
  medicationTabList: BP0,
163547
163547
  medicationTabs: PP0,
@@ -163936,7 +163936,7 @@ const VF0 = (t) => !t || t.length === 0 ? [] : [...t].sort((e, r) => {
163936
163936
  return null;
163937
163937
  }
163938
163938
  };
163939
- return w ? /* @__PURE__ */ ce("div", { "data-testid": "medications-table-error", children: /* @__PURE__ */ ce("p", { className: l0.medicationTableEmpty, children: n("MEDICATIONS_ERROR_FETCHING") }) }) : /* @__PURE__ */ ce("div", { "data-testid": "medications-table", children: /* @__PURE__ */ Ye(
163939
+ return w ? /* @__PURE__ */ ce("div", { "data-testid": "medications-table-error", children: /* @__PURE__ */ ce("p", { className: l0.medicationTableEmpty, children: n("MEDICATIONS_ERROR_FETCHING") }) }) : /* @__PURE__ */ ce("div", { id: "medications-table", "data-testid": "medications-table", children: /* @__PURE__ */ Ye(
163940
163940
  BM,
163941
163941
  {
163942
163942
  selectedIndex: u,
@@ -164591,7 +164591,7 @@ function jF1(t) {
164591
164591
  }));
164592
164592
  return e.length > 0 ? e : void 0;
164593
164593
  }
164594
- const rj0 = "_investigationName_1sd3z_1", nj0 = "_resultsCell_1sd3z_11", oj0 = "_radiologyInvestigationTableBody_1sd3z_17", aj0 = "_customAccordianItem_1sd3z_30", cj0 = "_linkedOrderRow_1sd3z_51", ij0 = "_expandableContentSpacer_1sd3z_58", lj0 = "_reportSection_1sd3z_62", sj0 = "_reportTitle_1sd3z_65", dj0 = "_reportDetails_1sd3z_71", uj0 = "_reportTile_1sd3z_79", pr = {
164594
+ const rj0 = "_investigationName_1j8fh_17", nj0 = "_resultsCell_1j8fh_27", oj0 = "_radiologyInvestigationTableBody_1j8fh_33", aj0 = "_customAccordianItem_1j8fh_46", cj0 = "_linkedOrderRow_1j8fh_67", ij0 = "_expandableContentSpacer_1j8fh_74", lj0 = "_reportSection_1j8fh_78", sj0 = "_reportTitle_1j8fh_81", dj0 = "_reportDetails_1j8fh_87", uj0 = "_reportTile_1j8fh_95", pr = {
164595
164595
  investigationName: rj0,
164596
164596
  resultsCell: nj0,
164597
164597
  radiologyInvestigationTableBody: oj0,
@@ -165130,7 +165130,7 @@ const UF1 = (t) => ["radiologyInvestigation", t], Hj0 = async (t, e, r, n) => {
165130
165130
  __proto__: null,
165131
165131
  default: bj0,
165132
165132
  radiologyInvestigationQueryKeys: UF1
165133
- }, Symbol.toStringTag, { value: "Module" })), Nj0 = "_labSkeleton_1icxb_1", Cj0 = "_labTest_1icxb_5", Lj0 = "_labTestHeader_1icxb_10", Aj0 = "_labTestInfo_1icxb_19", _j0 = "_testName_1icxb_31", Tj0 = "_result_1icxb_39", $j0 = "_abnormalResult_1icxb_53", Oj0 = "_testDetails_1icxb_69", Dj0 = "_testResultsPending_1icxb_77", Rj0 = "_accordionItem_1icxb_86", Sj0 = "_labInvestigationTableBodyError_1icxb_97", kj0 = "_labTestResultsTable_1icxb_106", Ij0 = "_viewAttachmentsLink_1icxb_112", Zj0 = "_attachmentsContainer_1icxb_116", Bj0 = "_attachmentViewer_1icxb_123", Pj0 = "_attachmentIframe_1icxb_131", Fj0 = "_attachmentImage_1icxb_137", jj0 = "_attachmentNumber_1icxb_142", h0 = {
165133
+ }, Symbol.toStringTag, { value: "Module" })), Nj0 = "_labSkeleton_ogyfk_5", Cj0 = "_labTest_ogyfk_9", Lj0 = "_labTestHeader_ogyfk_14", Aj0 = "_labTestInfo_ogyfk_23", _j0 = "_testName_ogyfk_35", Tj0 = "_result_ogyfk_43", $j0 = "_abnormalResult_ogyfk_57", Oj0 = "_testDetails_ogyfk_73", Dj0 = "_testResultsPending_ogyfk_81", Rj0 = "_accordionItem_ogyfk_90", Sj0 = "_labInvestigationTableBodyError_ogyfk_101", kj0 = "_labTestResultsTable_ogyfk_110", Ij0 = "_viewAttachmentsLink_ogyfk_116", Zj0 = "_attachmentsContainer_ogyfk_120", Bj0 = "_attachmentViewer_ogyfk_127", Pj0 = "_attachmentIframe_ogyfk_135", Fj0 = "_attachmentImage_ogyfk_141", jj0 = "_attachmentNumber_ogyfk_146", h0 = {
165134
165134
  labSkeleton: Nj0,
165135
165135
  labTest: Cj0,
165136
165136
  labTestHeader: Lj0,
@@ -165510,31 +165510,33 @@ const tq0 = ({
165510
165510
  className: h0.labSkeleton,
165511
165511
  testId: "lab-skeleton"
165512
165512
  }
165513
- ) : !_ && (H.length === 0 || p) ? /* @__PURE__ */ ce("div", { className: h0.labInvestigationTableBodyError, children: n("LAB_TEST_UNAVAILABLE") }) : /* @__PURE__ */ ce(Il, { align: "start", children: W.map((q, X) => /* @__PURE__ */ ce(
165514
- Zl,
165515
- {
165516
- className: h0.accordionItem,
165517
- open: s.has(X),
165518
- onHeadingClick: () => {
165519
- u((j) => {
165520
- const U = new Set(j);
165521
- return U.has(X) ? U.delete(X) : (U.add(X), h(X)), U;
165522
- });
165523
- },
165524
- title: q.date,
165525
- children: q.tests?.map((j) => /* @__PURE__ */ ce(
165526
- tq0,
165527
- {
165528
- test: j,
165529
- isOpen: s.has(X),
165530
- hasProcessedReport: !!j.reportId,
165531
- reportId: j.reportId
165513
+ ) : !_ && (H.length === 0 || p) ? /* @__PURE__ */ ce("div", { className: h0.labInvestigationTableBodyError, children: n("LAB_TEST_UNAVAILABLE") }) : /* @__PURE__ */ ce("div", { id: "lab-investigations", children: /* @__PURE__ */ ce(Il, { align: "start", children: W.map(
165514
+ (q, X) => /* @__PURE__ */ ce(
165515
+ Zl,
165516
+ {
165517
+ className: h0.accordionItem,
165518
+ open: s.has(X),
165519
+ onHeadingClick: () => {
165520
+ u((j) => {
165521
+ const U = new Set(j);
165522
+ return U.has(X) ? U.delete(X) : (U.add(X), h(X)), U;
165523
+ });
165532
165524
  },
165533
- j.id ?? `${q.date}-${j.testName}`
165534
- ))
165535
- },
165536
- q.date
165537
- )) });
165525
+ title: q.date,
165526
+ children: q.tests?.map((j) => /* @__PURE__ */ ce(
165527
+ tq0,
165528
+ {
165529
+ test: j,
165530
+ isOpen: s.has(X),
165531
+ hasProcessedReport: !!j.reportId,
165532
+ reportId: j.reportId
165533
+ },
165534
+ j.id ?? `${q.date}-${j.testName}`
165535
+ ))
165536
+ },
165537
+ q.date
165538
+ )
165539
+ ) }) });
165538
165540
  }, oq0 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
165539
165541
  __proto__: null,
165540
165542
  default: nq0
@@ -166332,7 +166334,7 @@ ${H.formattedResult}`
166332
166334
  }, Tq0 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
166333
166335
  __proto__: null,
166334
166336
  default: _q0
166335
- }, Symbol.toStringTag, { value: "Module" })), $q0 = "_requestName_1uf67_1", Oq0 = "_serviceRequestTableBody_1uf67_12", Dq0 = "_customAccordianItem_1uf67_25", i8 = {
166337
+ }, Symbol.toStringTag, { value: "Module" })), $q0 = "_requestName_1khlg_5", Oq0 = "_serviceRequestTableBody_1khlg_16", Dq0 = "_customAccordianItem_1khlg_29", i8 = {
166336
166338
  requestName: $q0,
166337
166339
  serviceRequestTableBody: Oq0,
166338
166340
  customAccordianItem: Dq0
@@ -166486,47 +166488,54 @@ const KF1 = (t, e, r) => ["genericServiceRequest", t, e, r], Zq0 = async (t, e,
166486
166488
  },
166487
166489
  [a]
166488
166490
  );
166489
- return /* @__PURE__ */ ce("div", { "data-testid": "generic-service-request-table", children: g || b || C.length === 0 || s ? /* @__PURE__ */ ce(
166490
- b0,
166491
+ return /* @__PURE__ */ ce(
166492
+ "div",
166491
166493
  {
166492
- headers: H,
166493
- ariaLabel: a("SERVICE_REQUEST_HEADING"),
166494
- rows: [],
166495
- loading: g,
166496
- errorStateMessage: b ? E?.message : void 0,
166497
- emptyStateMessage: a("NO_SERVICE_REQUESTS"),
166498
- renderCell: $,
166499
- className: i8.serviceRequestTableBody,
166500
- dataTestId: "generic-service-request-table"
166501
- }
166502
- ) : /* @__PURE__ */ ce(Il, { align: "start", children: C.map((D, R) => {
166503
- const { date: I, requests: W } = D;
166504
- return /* @__PURE__ */ ce(
166505
- Zl,
166506
- {
166507
- title: I,
166508
- className: i8.customAccordianItem,
166509
- testId: "accordian-table-title",
166510
- open: R === 0,
166511
- children: /* @__PURE__ */ ce(
166512
- b0,
166494
+ id: "generic-service-request-table",
166495
+ "data-testid": "generic-service-request-table",
166496
+ children: g || b || C.length === 0 || s ? /* @__PURE__ */ ce(
166497
+ b0,
166498
+ {
166499
+ headers: H,
166500
+ ariaLabel: a("SERVICE_REQUEST_HEADING"),
166501
+ rows: [],
166502
+ loading: g,
166503
+ errorStateMessage: b ? E?.message : void 0,
166504
+ emptyStateMessage: a("NO_SERVICE_REQUESTS"),
166505
+ renderCell: $,
166506
+ className: i8.serviceRequestTableBody,
166507
+ dataTestId: "generic-service-request-table"
166508
+ }
166509
+ ) : /* @__PURE__ */ ce(Il, { align: "start", children: C.map((D, R) => {
166510
+ const { date: I, requests: W } = D;
166511
+ return /* @__PURE__ */ ce(
166512
+ Zl,
166513
166513
  {
166514
- headers: H,
166515
- ariaLabel: a("SERVICE_REQUEST_HEADING"),
166516
- rows: W,
166517
- loading: g,
166518
- errorStateMessage: "",
166519
- sortable: _,
166520
- emptyStateMessage: a("NO_SERVICE_REQUESTS"),
166521
- renderCell: $,
166522
- className: i8.serviceRequestTableBody,
166523
- dataTestId: `generic-service-request-table-${I}`
166524
- }
166525
- )
166526
- },
166527
- I
166528
- );
166529
- }) }) });
166514
+ title: I,
166515
+ className: i8.customAccordianItem,
166516
+ testId: "accordian-table-title",
166517
+ open: R === 0,
166518
+ children: /* @__PURE__ */ ce(
166519
+ b0,
166520
+ {
166521
+ headers: H,
166522
+ ariaLabel: a("SERVICE_REQUEST_HEADING"),
166523
+ rows: W,
166524
+ loading: g,
166525
+ errorStateMessage: "",
166526
+ sortable: _,
166527
+ emptyStateMessage: a("NO_SERVICE_REQUESTS"),
166528
+ renderCell: $,
166529
+ className: i8.serviceRequestTableBody,
166530
+ dataTestId: `generic-service-request-table-${I}`
166531
+ }
166532
+ )
166533
+ },
166534
+ I
166535
+ );
166536
+ }) })
166537
+ }
166538
+ );
166530
166539
  }, Pq0 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
166531
166540
  __proto__: null,
166532
166541
  default: Bq0,
@@ -167193,7 +167202,7 @@ function yU0(t, e, r) {
167193
167202
  return n;
167194
167203
  };
167195
167204
  }
167196
- mt(() => Promise.resolve().then(() => NB0)), mt(() => Promise.resolve().then(() => eP0)), mt(() => Promise.resolve().then(() => _P0)), mt(() => Promise.resolve().then(() => kP0)), mt(() => import("./DocumentsTable-BReXAZIp-BLohUaFS.js")), mt(() => Promise.resolve().then(() => Tq0)), mt(() => import("./FormsTable-C2TMKYSS-T0hcSU_o.js")), mt(() => Promise.resolve().then(() => oq0)), mt(() => import("./Observations-CicWM0Ea-CzsbODnO.js")), mt(
167205
+ mt(() => Promise.resolve().then(() => NB0)), mt(() => Promise.resolve().then(() => eP0)), mt(() => Promise.resolve().then(() => _P0)), mt(() => Promise.resolve().then(() => kP0)), mt(() => import("./DocumentsTable-CTpGjHXi-CKKiZo45.js")), mt(() => Promise.resolve().then(() => Tq0)), mt(() => import("./FormsTable-BIz1A-5g-B4tz9UfU.js")), mt(() => Promise.resolve().then(() => oq0)), mt(() => import("./Observations-Cf7HY6Zc-BwzuDZ2e.js")), mt(
167197
167206
  () => Promise.resolve().then(() => Pq0)
167198
167207
  ), mt(
167199
167208
  () => Promise.resolve().then(() => xj0)
@@ -169033,7 +169042,7 @@ var U2t = (t, e = !1) => {
169033
169042
  const e = mj1(() => {
169034
169043
  const r = this, [n] = this.#n, [a] = this.#o, [c] = this.#a, [i] = this.#c, [l] = this.#p, [s] = this.#t;
169035
169044
  let u;
169036
- return this.#i ? u = this.#i : (u = pj1(() => import("./LNWAZHJI-BVIUtrB3.js")), this.#i = u), Oj1(this.#h, this.#r), uj1(u, hj1({
169045
+ return this.#i ? u = this.#i : (u = pj1(() => import("./LNWAZHJI-r-79-T5p.js")), this.#i = u), Oj1(this.#h, this.#r), uj1(u, hj1({
169037
169046
  get queryFlavor() {
169038
169047
  return r.#d;
169039
169048
  },
@@ -169131,7 +169140,7 @@ var U2t = (t, e = !1) => {
169131
169140
  const e = mj1(() => {
169132
169141
  const r = this, [n] = this.#n, [a] = this.#o, [c] = this.#a, [i] = this.#c, [l] = this.#p, [s] = this.#t, [u] = this.#i;
169133
169142
  let d;
169134
- return this.#l ? d = this.#l : (d = pj1(() => import("./MWZ6AO7Z-DK1aNCz4.js")), this.#l = d), Oj1(this.#h, this.#r), uj1(d, hj1({
169143
+ return this.#l ? d = this.#l : (d = pj1(() => import("./MWZ6AO7Z-DOFFe8uz.js")), this.#l = d), Oj1(this.#h, this.#r), uj1(d, hj1({
169135
169144
  get queryFlavor() {
169136
169145
  return r.#d;
169137
169146
  },