@bahmni/appointments-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-C4PZwwNE.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-Ck1OwLu_.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-C4PZwwNE.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-Ck1OwLu_.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-C5iXprY9.js";
2
- import { S as d, T as f, U as e } from "./index-C4PZwwNE.js";
1
+ import { c, T as l, P as m, a as u, D as v, Q as i } from "./YPM2AS64-CcAuIkxI.js";
2
+ import { S as d, T as f, U as e } from "./index-Ck1OwLu_.js";
3
3
  var p = (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 u, a as i, b as m, C as P, Q as d } from "./YPM2AS64-C5iXprY9.js";
2
- import { S as v, T as C, U as e } from "./index-C4PZwwNE.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-CcAuIkxI.js";
2
+ import { S as v, T as C, U as e } from "./index-Ck1OwLu_.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-C4PZwwNE.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-Ck1OwLu_.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 { V as we, a0 as z, a1 as xt, a2 as B, T as q, U as y, a3 as Ro, a4 as ye, a5 as R, a6 as _, a7 as k, a8 as N, a9 as A, aa as bs, ab as ir, ac as $e, ad as U, ae as Hn, af as Vn, ag as dt, ah as D, ai as xs, aj as cn, ak as Be, al as ws, am as qt, an as zt, ao as $s, ap as Cs, aq as $n, ar as Ss, as as Nr, at as Bt, au as zo, av as ks, aw as Es, ax as j, ay as Ur, az as Ms, aA as Ds, aB as sr, aC as As, aD as Ts, aE as zn, aF as Fs, aG as Is, aH as Z, aI as Ps, aJ as Ls } from "./index-C4PZwwNE.js";
1
+ import { V as we, a0 as z, a1 as xt, a2 as B, T as q, U as y, a3 as Ro, a4 as ye, a5 as R, a6 as _, a7 as k, a8 as N, a9 as A, aa as bs, ab as ir, ac as $e, ad as U, ae as Hn, af as Vn, ag as dt, ah as D, ai as xs, aj as cn, ak as Be, al as ws, am as qt, an as zt, ao as $s, ap as Cs, aq as $n, ar as Ss, as as Nr, at as Bt, au as zo, av as ks, aw as Es, ax as j, ay as Ur, az as Ms, aA as Ds, aB as sr, aC as As, aD as Ts, aE as zn, aF as Fs, aG as Is, aH as Z, aI as Ps, aJ as Ls } from "./index-Ck1OwLu_.js";
2
2
  var Os = (e) => e != null, qs = (e) => e.filter(Os);
3
3
  function _s(e) {
4
4
  return (...t) => {
@@ -142484,7 +142484,7 @@ const uv0 = ({
142484
142484
  testId: t,
142485
142485
  children: e,
142486
142486
  ...r
142487
- }) => /* @__PURE__ */ i1(J9, { ...r, "data-testid": t, children: e }), hv0 = "_container_ajkme_1", pv0 = "_accordion_ajkme_14", fv0 = "_rows_ajkme_44", Au = {
142487
+ }) => /* @__PURE__ */ i1(J9, { ...r, "data-testid": t, children: e }), hv0 = "_container_iixgz_1", pv0 = "_accordion_iixgz_5", fv0 = "_rows_iixgz_36", Au = {
142488
142488
  container: hv0,
142489
142489
  accordion: pv0,
142490
142490
  rows: fv0
@@ -163110,7 +163110,7 @@ const v$0 = ({
163110
163110
  );
163111
163111
  };
163112
163112
  var qM = /* @__PURE__ */ ((t) => (t.STAT = "stat", t.ROUTINE = "routine", t.URGENT = "urgent", t.ASAP = "asap", t))(qM || {});
163113
- const L$0 = "_medicationTableEmpty_1uyri_1", C$0 = "_medicationTabList_1uyri_12", A$0 = "_medicationTabs_1uyri_16", _$0 = "_columnDataBold_1uyri_20", $$0 = "_medicationName_1uyri_27", T$0 = "_medicineDetails_1uyri_37", O$0 = "_PRN_1uyri_45", D$0 = "_STAT_1uyri_50", R$0 = "_activeStatus_1uyri_55", S$0 = "_scheduledStatus_1uyri_59", k$0 = "_cancelledStatus_1uyri_63", Z$0 = "_completedStatus_1uyri_67", I$0 = "_stoppedStatus_1uyri_71", B$0 = "_unknownStatus_1uyri_75", P$0 = "_rowSeperator_1uyri_79", j$0 = "_medicationsTableBody_1uyri_83", F$0 = "_customAccordianItem_1uyri_90", Q2 = {
163113
+ const L$0 = "_medicationTableEmpty_16to4_1", C$0 = "_medicationTabList_16to4_12", A$0 = "_medicationTabs_16to4_16", _$0 = "_columnDataBold_16to4_20", $$0 = "_medicationName_16to4_27", T$0 = "_medicineDetails_16to4_37", O$0 = "_PRN_16to4_45", D$0 = "_STAT_16to4_50", R$0 = "_activeStatus_16to4_55", S$0 = "_scheduledStatus_16to4_59", k$0 = "_cancelledStatus_16to4_63", Z$0 = "_completedStatus_16to4_67", I$0 = "_stoppedStatus_16to4_71", B$0 = "_unknownStatus_16to4_75", P$0 = "_rowSeperator_16to4_79", j$0 = "_medicationsTableBody_16to4_83", F$0 = "_customAccordianItem_16to4_90", Q2 = {
163114
163114
  medicationTableEmpty: L$0,
163115
163115
  medicationTabList: C$0,
163116
163116
  medicationTabs: A$0,
@@ -163505,7 +163505,7 @@ const dT0 = (t) => !t || t.length === 0 ? [] : [...t].sort((e, r) => {
163505
163505
  return null;
163506
163506
  }
163507
163507
  };
163508
- return f ? /* @__PURE__ */ i1("div", { "data-testid": "medications-table-error", children: /* @__PURE__ */ i1("p", { className: Q2.medicationTableEmpty, children: o("MEDICATIONS_ERROR_FETCHING") }) }) : /* @__PURE__ */ i1("div", { "data-testid": "medications-table", children: /* @__PURE__ */ oe(
163508
+ return f ? /* @__PURE__ */ i1("div", { "data-testid": "medications-table-error", children: /* @__PURE__ */ i1("p", { className: Q2.medicationTableEmpty, children: o("MEDICATIONS_ERROR_FETCHING") }) }) : /* @__PURE__ */ i1("div", { id: "medications-table", "data-testid": "medications-table", children: /* @__PURE__ */ oe(
163509
163509
  cM,
163510
163510
  {
163511
163511
  selectedIndex: d,
@@ -164160,7 +164160,7 @@ function URe(t) {
164160
164160
  }));
164161
164161
  return e.length > 0 ? e : void 0;
164162
164162
  }
164163
- const FT0 = "_investigationName_1sd3z_1", qT0 = "_resultsCell_1sd3z_11", UT0 = "_radiologyInvestigationTableBody_1sd3z_17", WT0 = "_customAccordianItem_1sd3z_30", KT0 = "_linkedOrderRow_1sd3z_51", YT0 = "_expandableContentSpacer_1sd3z_58", GT0 = "_reportSection_1sd3z_62", JT0 = "_reportTitle_1sd3z_65", QT0 = "_reportDetails_1sd3z_71", XT0 = "_reportTile_1sd3z_79", Yt = {
164163
+ const FT0 = "_investigationName_1j8fh_17", qT0 = "_resultsCell_1j8fh_27", UT0 = "_radiologyInvestigationTableBody_1j8fh_33", WT0 = "_customAccordianItem_1j8fh_46", KT0 = "_linkedOrderRow_1j8fh_67", YT0 = "_expandableContentSpacer_1j8fh_74", GT0 = "_reportSection_1j8fh_78", JT0 = "_reportTitle_1j8fh_81", QT0 = "_reportDetails_1j8fh_87", XT0 = "_reportTile_1j8fh_95", Yt = {
164164
164164
  investigationName: FT0,
164165
164165
  resultsCell: qT0,
164166
164166
  radiologyInvestigationTableBody: UT0,
@@ -164699,7 +164699,7 @@ const KRe = (t) => ["radiologyInvestigation", t], hO0 = async (t, e, r, o) => {
164699
164699
  __proto__: null,
164700
164700
  default: pO0,
164701
164701
  radiologyInvestigationQueryKeys: KRe
164702
- }, Symbol.toStringTag, { value: "Module" })), mO0 = "_labSkeleton_1icxb_1", wO0 = "_labTest_1icxb_5", gO0 = "_labTestHeader_1icxb_10", vO0 = "_labTestInfo_1icxb_19", EO0 = "_testName_1icxb_31", MO0 = "_result_1icxb_39", yO0 = "_abnormalResult_1icxb_53", zO0 = "_testDetails_1icxb_69", VO0 = "_testResultsPending_1icxb_77", HO0 = "_accordionItem_1icxb_86", bO0 = "_labInvestigationTableBodyError_1icxb_97", xO0 = "_labTestResultsTable_1icxb_106", NO0 = "_viewAttachmentsLink_1icxb_112", LO0 = "_attachmentsContainer_1icxb_116", CO0 = "_attachmentViewer_1icxb_123", AO0 = "_attachmentIframe_1icxb_131", _O0 = "_attachmentImage_1icxb_137", $O0 = "_attachmentNumber_1icxb_142", r0 = {
164702
+ }, Symbol.toStringTag, { value: "Module" })), mO0 = "_labSkeleton_ogyfk_5", wO0 = "_labTest_ogyfk_9", gO0 = "_labTestHeader_ogyfk_14", vO0 = "_labTestInfo_ogyfk_23", EO0 = "_testName_ogyfk_35", MO0 = "_result_ogyfk_43", yO0 = "_abnormalResult_ogyfk_57", zO0 = "_testDetails_ogyfk_73", VO0 = "_testResultsPending_ogyfk_81", HO0 = "_accordionItem_ogyfk_90", bO0 = "_labInvestigationTableBodyError_ogyfk_101", xO0 = "_labTestResultsTable_ogyfk_110", NO0 = "_viewAttachmentsLink_ogyfk_116", LO0 = "_attachmentsContainer_ogyfk_120", CO0 = "_attachmentViewer_ogyfk_127", AO0 = "_attachmentIframe_ogyfk_135", _O0 = "_attachmentImage_ogyfk_141", $O0 = "_attachmentNumber_ogyfk_146", r0 = {
164703
164703
  labSkeleton: mO0,
164704
164704
  labTest: wO0,
164705
164705
  labTestHeader: gO0,
@@ -165079,31 +165079,33 @@ const jO0 = ({
165079
165079
  className: r0.labSkeleton,
165080
165080
  testId: "lab-skeleton"
165081
165081
  }
165082
- ) : !_ && (L.length === 0 || m) ? /* @__PURE__ */ i1("div", { className: r0.labInvestigationTableBodyError, children: o("LAB_TEST_UNAVAILABLE") }) : /* @__PURE__ */ i1(Zl, { align: "start", children: U.map((K, e1) => /* @__PURE__ */ i1(
165083
- Il,
165084
- {
165085
- className: r0.accordionItem,
165086
- open: s.has(e1),
165087
- onHeadingClick: () => {
165088
- d((a1) => {
165089
- const r1 = new Set(a1);
165090
- return r1.has(e1) ? r1.delete(e1) : (r1.add(e1), h(e1)), r1;
165091
- });
165092
- },
165093
- title: K.date,
165094
- children: K.tests?.map((a1) => /* @__PURE__ */ i1(
165095
- jO0,
165096
- {
165097
- test: a1,
165098
- isOpen: s.has(e1),
165099
- hasProcessedReport: !!a1.reportId,
165100
- reportId: a1.reportId
165082
+ ) : !_ && (L.length === 0 || m) ? /* @__PURE__ */ i1("div", { className: r0.labInvestigationTableBodyError, children: o("LAB_TEST_UNAVAILABLE") }) : /* @__PURE__ */ i1("div", { id: "lab-investigations", children: /* @__PURE__ */ i1(Zl, { align: "start", children: U.map(
165083
+ (K, e1) => /* @__PURE__ */ i1(
165084
+ Il,
165085
+ {
165086
+ className: r0.accordionItem,
165087
+ open: s.has(e1),
165088
+ onHeadingClick: () => {
165089
+ d((a1) => {
165090
+ const r1 = new Set(a1);
165091
+ return r1.has(e1) ? r1.delete(e1) : (r1.add(e1), h(e1)), r1;
165092
+ });
165101
165093
  },
165102
- a1.id ?? `${K.date}-${a1.testName}`
165103
- ))
165104
- },
165105
- K.date
165106
- )) });
165094
+ title: K.date,
165095
+ children: K.tests?.map((a1) => /* @__PURE__ */ i1(
165096
+ jO0,
165097
+ {
165098
+ test: a1,
165099
+ isOpen: s.has(e1),
165100
+ hasProcessedReport: !!a1.reportId,
165101
+ reportId: a1.reportId
165102
+ },
165103
+ a1.id ?? `${K.date}-${a1.testName}`
165104
+ ))
165105
+ },
165106
+ K.date
165107
+ )
165108
+ ) }) });
165107
165109
  }, UO0 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
165108
165110
  __proto__: null,
165109
165111
  default: qO0
@@ -165673,7 +165675,7 @@ ${L.formattedResult}`
165673
165675
  }, uD0 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
165674
165676
  __proto__: null,
165675
165677
  default: dD0
165676
- }, Symbol.toStringTag, { value: "Module" })), hD0 = "_requestName_1uf67_1", pD0 = "_serviceRequestTableBody_1uf67_12", fD0 = "_customAccordianItem_1uf67_25", cs = {
165678
+ }, Symbol.toStringTag, { value: "Module" })), hD0 = "_requestName_1khlg_5", pD0 = "_serviceRequestTableBody_1khlg_16", fD0 = "_customAccordianItem_1khlg_29", cs = {
165677
165679
  requestName: hD0,
165678
165680
  serviceRequestTableBody: pD0,
165679
165681
  customAccordianItem: fD0
@@ -165827,47 +165829,54 @@ const GRe = (t, e, r) => ["genericServiceRequest", t, e, r], ED0 = async (t, e,
165827
165829
  },
165828
165830
  [a]
165829
165831
  );
165830
- return /* @__PURE__ */ i1("div", { "data-testid": "generic-service-request-table", children: g || C || A.length === 0 || s ? /* @__PURE__ */ i1(
165831
- f0,
165832
+ return /* @__PURE__ */ i1(
165833
+ "div",
165832
165834
  {
165833
- headers: L,
165834
- ariaLabel: a("SERVICE_REQUEST_HEADING"),
165835
- rows: [],
165836
- loading: g,
165837
- errorStateMessage: C ? y?.message : void 0,
165838
- emptyStateMessage: a("NO_SERVICE_REQUESTS"),
165839
- renderCell: R,
165840
- className: cs.serviceRequestTableBody,
165841
- dataTestId: "generic-service-request-table"
165842
- }
165843
- ) : /* @__PURE__ */ i1(Zl, { align: "start", children: A.map((O, D) => {
165844
- const { date: P, requests: U } = O;
165845
- return /* @__PURE__ */ i1(
165846
- Il,
165847
- {
165848
- title: P,
165849
- className: cs.customAccordianItem,
165850
- testId: "accordian-table-title",
165851
- open: D === 0,
165852
- children: /* @__PURE__ */ i1(
165853
- f0,
165835
+ id: "generic-service-request-table",
165836
+ "data-testid": "generic-service-request-table",
165837
+ children: g || C || A.length === 0 || s ? /* @__PURE__ */ i1(
165838
+ f0,
165839
+ {
165840
+ headers: L,
165841
+ ariaLabel: a("SERVICE_REQUEST_HEADING"),
165842
+ rows: [],
165843
+ loading: g,
165844
+ errorStateMessage: C ? y?.message : void 0,
165845
+ emptyStateMessage: a("NO_SERVICE_REQUESTS"),
165846
+ renderCell: R,
165847
+ className: cs.serviceRequestTableBody,
165848
+ dataTestId: "generic-service-request-table"
165849
+ }
165850
+ ) : /* @__PURE__ */ i1(Zl, { align: "start", children: A.map((O, D) => {
165851
+ const { date: P, requests: U } = O;
165852
+ return /* @__PURE__ */ i1(
165853
+ Il,
165854
165854
  {
165855
- headers: L,
165856
- ariaLabel: a("SERVICE_REQUEST_HEADING"),
165857
- rows: U,
165858
- loading: g,
165859
- errorStateMessage: "",
165860
- sortable: _,
165861
- emptyStateMessage: a("NO_SERVICE_REQUESTS"),
165862
- renderCell: R,
165863
- className: cs.serviceRequestTableBody,
165864
- dataTestId: `generic-service-request-table-${P}`
165865
- }
165866
- )
165867
- },
165868
- P
165869
- );
165870
- }) }) });
165855
+ title: P,
165856
+ className: cs.customAccordianItem,
165857
+ testId: "accordian-table-title",
165858
+ open: D === 0,
165859
+ children: /* @__PURE__ */ i1(
165860
+ f0,
165861
+ {
165862
+ headers: L,
165863
+ ariaLabel: a("SERVICE_REQUEST_HEADING"),
165864
+ rows: U,
165865
+ loading: g,
165866
+ errorStateMessage: "",
165867
+ sortable: _,
165868
+ emptyStateMessage: a("NO_SERVICE_REQUESTS"),
165869
+ renderCell: R,
165870
+ className: cs.serviceRequestTableBody,
165871
+ dataTestId: `generic-service-request-table-${P}`
165872
+ }
165873
+ )
165874
+ },
165875
+ P
165876
+ );
165877
+ }) })
165878
+ }
165879
+ );
165871
165880
  }, yD0 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
165872
165881
  __proto__: null,
165873
165882
  default: MD0,
@@ -166534,7 +166543,7 @@ function dZ0(t, e, r) {
166534
166543
  return o;
166535
166544
  };
166536
166545
  }
166537
- N0(() => Promise.resolve().then(() => m_0)), N0(() => Promise.resolve().then(() => P_0)), N0(() => Promise.resolve().then(() => E$0)), N0(() => Promise.resolve().then(() => x$0)), N0(() => import("./DocumentsTable-BReXAZIp-CzVbtfG8.js")), N0(() => Promise.resolve().then(() => uD0)), N0(() => import("./FormsTable-C2TMKYSS-B_m3QC2T.js")), N0(() => Promise.resolve().then(() => UO0)), N0(() => import("./Observations-CicWM0Ea-CAZMXS9N.js")), N0(
166546
+ N0(() => Promise.resolve().then(() => m_0)), N0(() => Promise.resolve().then(() => P_0)), N0(() => Promise.resolve().then(() => E$0)), N0(() => Promise.resolve().then(() => x$0)), N0(() => import("./DocumentsTable-CTpGjHXi-DaIYOjsy.js")), N0(() => Promise.resolve().then(() => uD0)), N0(() => import("./FormsTable-BIz1A-5g-Br7XXz78.js")), N0(() => Promise.resolve().then(() => UO0)), N0(() => import("./Observations-Cf7HY6Zc-Dq0gq0mO.js")), N0(
166538
166547
  () => Promise.resolve().then(() => yD0)
166539
166548
  ), N0(
166540
166549
  () => Promise.resolve().then(() => fO0)
@@ -168374,7 +168383,7 @@ var OZ0 = (t, e = !1) => {
168374
168383
  const e = gSe(() => {
168375
168384
  const r = this, [o] = this.#a, [a] = this.#h, [c] = this.#d, [l] = this.#u, [i] = this.#p, [s] = this.#t;
168376
168385
  let d;
168377
- return this.#i ? d = this.#i : (d = mSe(() => import("./LNWAZHJI-DRgcOAER.js")), this.#i = d), RSe(this.#l, this.#c), pSe(d, fSe({
168386
+ return this.#i ? d = this.#i : (d = mSe(() => import("./LNWAZHJI-CNpGrcrh.js")), this.#i = d), RSe(this.#l, this.#c), pSe(d, fSe({
168378
168387
  get queryFlavor() {
168379
168388
  return r.#r;
168380
168389
  },
@@ -168472,7 +168481,7 @@ var OZ0 = (t, e = !1) => {
168472
168481
  const e = gSe(() => {
168473
168482
  const r = this, [o] = this.#a, [a] = this.#h, [c] = this.#d, [l] = this.#u, [i] = this.#p, [s] = this.#t, [d] = this.#i;
168474
168483
  let u;
168475
- return this.#s ? u = this.#s : (u = mSe(() => import("./MWZ6AO7Z-Cicl0m02.js")), this.#s = u), RSe(this.#l, this.#c), pSe(u, fSe({
168484
+ return this.#s ? u = this.#s : (u = mSe(() => import("./MWZ6AO7Z-Bc1dOC2R.js")), this.#s = u), RSe(this.#l, this.#c), pSe(u, fSe({
168476
168485
  get queryFlavor() {
168477
168486
  return r.#r;
168478
168487
  },
@@ -168632,7 +168641,7 @@ const xS0 = {
168632
168641
  }), ZS0 = N0(
168633
168642
  () => import("./index-CFigb5vF.js").then((t) => ({ default: t.IndexPage }))
168634
168643
  ), IS0 = N0(
168635
- () => import("./index-TAII9cTU.js").then((t) => ({
168644
+ () => import("./index-ZYiZcEk7.js").then((t) => ({
168636
168645
  default: t.default
168637
168646
  }))
168638
168647
  ), BS0 = [
@@ -1,5 +1,5 @@
1
1
  import { jsx as n, jsxs as f } from "react/jsx-runtime";
2
- import { n as V, o as O, u as C, y as h, s as P, g as B, a as G, p as x, q as A, b as q, t as U, w as F, z as $, C as k, L as w, M as H, O as Q, Q as j } from "./index-C4PZwwNE.js";
2
+ import { n as V, o as O, u as C, y as h, s as P, g as B, a as G, p as x, q as A, b as q, t as U, w as F, z as $, C as k, L as w, M as H, O as Q, Q as j } from "./index-Ck1OwLu_.js";
3
3
  import { useState as I, useMemo as _ } from "react";
4
4
  const K = V(
5
5
  O,