@bahmni/widgets 0.0.1-dev.438 → 0.0.1-dev.440

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 T, Fragment as Y } from "react/jsx-runtime";
2
- import { u as W, a as X, h as J, V as Z, v as x, b as ee, F as te } from "./index-mhCtVZYq.js";
2
+ import { u as W, a as X, D as J, V as Z, k as x, b as ee, F as te } from "./index-CzoC3r40.js";
3
3
  import { useQuery as ne } from "@tanstack/react-query";
4
4
  import { useState as l, useCallback as _, useEffect as I, useMemo as p } from "react";
5
5
  import { useTranslation as ae } from "react-i18next";
@@ -39,7 +39,7 @@ const Te = [
39
39
  null
40
40
  ), [V, A] = l(
41
41
  /* @__PURE__ */ new Set()
42
- ), E = W(), { t: o } = ae(), { addNotification: w } = X(), P = Number(n?.pageSize) || 5, [N, C] = l(1), [u, $] = l(P), [k, O] = l(void 0), v = _((e) => {
42
+ ), E = W(), { t: o } = ae(), { addNotification: w } = X(), k = Number(n?.pageSize) || 5, [N, C] = l(1), [u, P] = l(k), [$, O] = l(void 0), v = _((e) => {
43
43
  U(e), L(!0);
44
44
  }, []), z = _(() => {
45
45
  L(!1), U(null), A(/* @__PURE__ */ new Set());
@@ -92,7 +92,7 @@ const Te = [
92
92
  }, [d, s]);
93
93
  const q = _(
94
94
  (e, t) => {
95
- t !== u ? ($(t), C(1), O(void 0)) : C(e);
95
+ t !== u ? (P(t), C(1), O(void 0)) : C(e);
96
96
  },
97
97
  [u]
98
98
  ), D = p(
@@ -153,7 +153,7 @@ const Te = [
153
153
  className: c.documentsTableBody,
154
154
  dataTestId: "documents-table",
155
155
  pageSize: u,
156
- totalItems: k,
156
+ totalItems: $,
157
157
  page: N,
158
158
  onPageChange: q
159
159
  }
@@ -1,51 +1,51 @@
1
1
  import { jsx as n, jsxs as P, Fragment as ie } from "react/jsx-runtime";
2
- import { u as de, c as le, d as me, e as ce, B as ue, j as fe, f as be, g as he, i as Ne, k as ye, G as Oe, v as ge, C as q, l as G, V as Te, b as j, r as pe, m as Ee, F as Ie, O as Fe, n as Ae } from "./index-mhCtVZYq.js";
3
- import { useQueryClient as _e, useQuery as F } from "@tanstack/react-query";
4
- import { useState as x, useMemo as i, useCallback as d } from "react";
5
- import { useTranslation as ve } from "react-i18next";
2
+ import { u as de, c as le, d as me, e as ce, f as ue, o as fe, g as be, S as he, h as Ne, i as ye, J as Oe, k as ge, C as q, B as x, V as Te, b as $, r as pe, j as Ee, F as Fe, O as Ie, l as Ae } from "./index-CzoC3r40.js";
3
+ import { useQueryClient as ve, useQuery as I } from "@tanstack/react-query";
4
+ import { useState as j, useMemo as i, useCallback as d } from "react";
5
+ import { useTranslation as _e } from "react-i18next";
6
6
  const Re = "FormsTable-module_formsTableBody__SvGha", De = "FormsTable-module_modalHeading__wnTmA", Le = "FormsTable-module_customAccordianItem__isszs", y = {
7
7
  formsTableBody: Re,
8
8
  modalHeading: De,
9
9
  customAccordianItem: Le
10
- }, Be = "startConsultation", Ve = ({
10
+ }, Ce = "startConsultation", Ue = ({
11
11
  episodeOfCareUuids: A,
12
12
  encounterUuids: m,
13
- config: $,
13
+ config: G,
14
14
  disableActions: z = !1,
15
15
  activeEncounterUuid: b = null
16
16
  }) => {
17
- const { t: o } = ve(), c = de(), [O, _] = x(!1), [a, v] = x(null), {
17
+ const { t: o } = _e(), c = de(), [O, v] = j(!1), [a, _] = j(null), {
18
18
  numberOfVisits: K,
19
19
  hideThumbnail: Q = !1,
20
20
  forms: h
21
- } = $ ?? {}, W = le(
21
+ } = G ?? {}, J = le(
22
22
  Ae.EDIT_OBSERVATIONS
23
- ), { userPrivileges: N } = me(), g = W && !z && !!b, R = ce(
23
+ ), { userPrivileges: N } = me(), g = J && !z && !!b, R = ce(
24
24
  A,
25
25
  m
26
- ), Y = _e(), {
26
+ ), W = ve(), {
27
27
  data: D = [],
28
28
  isLoading: L,
29
- isError: B,
30
- error: J,
29
+ isError: C,
30
+ error: Y,
31
31
  refetch: X
32
- } = F({
32
+ } = I({
33
33
  queryKey: ["forms", c, A],
34
34
  queryFn: () => ue(c, void 0, K),
35
35
  enabled: !!c && !R
36
- }), C = i(() => {
36
+ }), S = i(() => {
37
37
  let e = D;
38
38
  return m && m.length > 0 && (e = e.filter(
39
39
  (t) => m.includes(t.encounterUuid)
40
40
  )), Array.isArray(h) && h.length > 0 && (e = e.filter(
41
41
  (t) => h.some((s) => s.toLowerCase() === t.formName.toLowerCase())
42
42
  )), e;
43
- }, [D, m, h]), { data: S = [] } = F({
43
+ }, [D, m, h]), { data: B = [] } = I({
44
44
  queryKey: ["observationForms"],
45
45
  queryFn: () => fe()
46
46
  }), M = d(
47
47
  (e) => {
48
- const t = S.find(
48
+ const t = B.find(
49
49
  (r) => r.name.toLowerCase() === e.toLowerCase()
50
50
  );
51
51
  if (!t?.privileges || t.privileges.length === 0) return !0;
@@ -55,7 +55,7 @@ const Re = "FormsTable-module_formsTableBody__SvGha", De = "FormsTable-module_mo
55
55
  (r) => s.has(r.privilegeName) && r.editable
56
56
  );
57
57
  },
58
- [S, N]
58
+ [B, N]
59
59
  ), u = d(
60
60
  (e) => !b || e.encounterUuid !== b ? !1 : M(e.formName),
61
61
  [b, M]
@@ -64,14 +64,14 @@ const Re = "FormsTable-module_formsTableBody__SvGha", De = "FormsTable-module_mo
64
64
  isLoading: Z,
65
65
  isError: ee,
66
66
  error: p
67
- } = F({
67
+ } = I({
68
68
  queryKey: ["formsEncounterFHIR", a?.encounterUuid],
69
69
  queryFn: () => be(a.encounterUuid),
70
70
  enabled: !!a?.encounterUuid && O
71
71
  });
72
72
  he(
73
73
  (e) => {
74
- e.patientUUID === c && (X(), Y.invalidateQueries({ queryKey: ["formsEncounterFHIR"] }));
74
+ e.patientUUID === c && (X(), W.invalidateQueries({ queryKey: ["formsEncounterFHIR"] }));
75
75
  },
76
76
  [c]
77
77
  );
@@ -96,17 +96,17 @@ const Re = "FormsTable-module_formsTableBody__SvGha", De = "FormsTable-module_mo
96
96
  { key: "recordedBy", sortable: !0 }
97
97
  ],
98
98
  []
99
- ), U = i(() => {
100
- const e = C.reduce(
99
+ ), k = i(() => {
100
+ const e = S.reduce(
101
101
  (s, r) => {
102
102
  const l = r.formName;
103
103
  s[l] ??= [];
104
- const I = r.providers.map((ne) => ne.providerName).filter(Boolean).join(", ");
104
+ const F = r.providers.map((ne) => ne.providerName).filter(Boolean).join(", ");
105
105
  return s[l].push({
106
106
  id: r.encounterUuid,
107
107
  formName: r.formName,
108
108
  recordedOn: ge(r.encounterDateTime, o, !0).formattedResult,
109
- recordedBy: I ?? "--",
109
+ recordedBy: F ?? "--",
110
110
  encounterDateTime: r.encounterDateTime,
111
111
  encounterUuid: r.encounterUuid
112
112
  }), s;
@@ -117,17 +117,17 @@ const Re = "FormsTable-module_formsTableBody__SvGha", De = "FormsTable-module_mo
117
117
  ([s, r]) => ({
118
118
  formName: s,
119
119
  records: r.sort(
120
- (l, I) => I.encounterDateTime - l.encounterDateTime
120
+ (l, F) => F.encounterDateTime - l.encounterDateTime
121
121
  )
122
122
  })
123
123
  ).sort((s, r) => s.formName.localeCompare(r.formName));
124
- }, [C, o]), V = d((e) => {
125
- v(e), _(!0);
126
- }, []), k = d(() => {
127
- _(!1), v(null);
124
+ }, [S, o]), U = d((e) => {
125
+ _(e), v(!0);
126
+ }, []), H = d(() => {
127
+ v(!1), _(null);
128
128
  }, []), E = d((e) => {
129
129
  globalThis.dispatchEvent(
130
- new CustomEvent(Be, {
130
+ new CustomEvent(Ce, {
131
131
  detail: {
132
132
  editOnly: "observationForms",
133
133
  editTitle: "EDIT_OBSERVATION_FORM_TITLE",
@@ -137,11 +137,11 @@ const Re = "FormsTable-module_formsTableBody__SvGha", De = "FormsTable-module_mo
137
137
  }
138
138
  })
139
139
  );
140
- }, []), H = d(
140
+ }, []), V = d(
141
141
  (e, t) => {
142
142
  switch (t) {
143
143
  case "recordedOn":
144
- return /* @__PURE__ */ n(Te, { onClick: () => V(e), children: e.recordedOn });
144
+ return /* @__PURE__ */ n(Te, { onClick: () => U(e), children: e.recordedOn });
145
145
  case "recordedBy":
146
146
  return e.recordedBy;
147
147
  case "actions":
@@ -153,30 +153,30 @@ const Re = "FormsTable-module_formsTableBody__SvGha", De = "FormsTable-module_mo
153
153
  size: "sm",
154
154
  testId: `edit-form-${e.encounterUuid}`,
155
155
  onClick: () => E(e),
156
- children: /* @__PURE__ */ n(G, {})
156
+ children: /* @__PURE__ */ n(x, {})
157
157
  }
158
158
  ) : null;
159
159
  default:
160
160
  return null;
161
161
  }
162
162
  },
163
- [V, E, u, o]
163
+ [U, E, u, o]
164
164
  );
165
165
  return /* @__PURE__ */ P(ie, { children: [
166
- /* @__PURE__ */ n("div", { id: "forms-table", "data-testid": "forms-table", children: L || B || U.length === 0 || R ? /* @__PURE__ */ n(
167
- j,
166
+ /* @__PURE__ */ n("div", { id: "forms-table", "data-testid": "forms-table", children: L || C || k.length === 0 || R ? /* @__PURE__ */ n(
167
+ $,
168
168
  {
169
169
  headers: oe,
170
170
  ariaLabel: o("FORMS_HEADING"),
171
171
  rows: [],
172
172
  loading: L,
173
- errorStateMessage: B ? J?.message : void 0,
173
+ errorStateMessage: C ? Y?.message : void 0,
174
174
  emptyStateMessage: o("FORMS_UNAVAILABLE"),
175
- renderCell: H,
175
+ renderCell: V,
176
176
  className: y.formsTableBody,
177
177
  dataTestId: "forms-table"
178
178
  }
179
- ) : /* @__PURE__ */ n(pe, { align: "start", children: U.map((e, t) => {
179
+ ) : /* @__PURE__ */ n(pe, { align: "start", children: k.map((e, t) => {
180
180
  const { formName: s, records: r } = e, l = se(r);
181
181
  return /* @__PURE__ */ n(
182
182
  Ee,
@@ -186,7 +186,7 @@ const Re = "FormsTable-module_formsTableBody__SvGha", De = "FormsTable-module_mo
186
186
  testId: `accordian-title-${s}`,
187
187
  open: t === 0,
188
188
  children: /* @__PURE__ */ n(
189
- j,
189
+ $,
190
190
  {
191
191
  headers: l,
192
192
  ariaLabel: o("FORMS_HEADING"),
@@ -195,7 +195,7 @@ const Re = "FormsTable-module_formsTableBody__SvGha", De = "FormsTable-module_mo
195
195
  errorStateMessage: "",
196
196
  sortable: ae,
197
197
  emptyStateMessage: o("FORMS_UNAVAILABLE"),
198
- renderCell: H,
198
+ renderCell: V,
199
199
  className: y.formsTableBody,
200
200
  dataTestId: `forms-table-${s}`
201
201
  }
@@ -205,12 +205,12 @@ const Re = "FormsTable-module_formsTableBody__SvGha", De = "FormsTable-module_mo
205
205
  );
206
206
  }) }) }),
207
207
  O && a && /* @__PURE__ */ n(
208
- Ie,
208
+ Fe,
209
209
  {
210
210
  id: "modalIdForActionAreaLayout",
211
211
  portalId: "main-display-area",
212
212
  open: O,
213
- onRequestClose: k,
213
+ onRequestClose: H,
214
214
  modalHeading: /* @__PURE__ */ P("div", { className: y.modalHeading, children: [
215
215
  /* @__PURE__ */ n("span", { children: a.formName }),
216
216
  g && u(a) && /* @__PURE__ */ n(
@@ -221,9 +221,9 @@ const Re = "FormsTable-module_formsTableBody__SvGha", De = "FormsTable-module_mo
221
221
  size: "sm",
222
222
  testId: `edit-form-modal-${a.encounterUuid}`,
223
223
  onClick: () => {
224
- k(), E(a);
224
+ H(), E(a);
225
225
  },
226
- children: /* @__PURE__ */ n(G, {})
226
+ children: /* @__PURE__ */ n(x, {})
227
227
  }
228
228
  )
229
229
  ] }),
@@ -232,7 +232,7 @@ const Re = "FormsTable-module_formsTableBody__SvGha", De = "FormsTable-module_mo
232
232
  size: "md",
233
233
  testId: "form-details-modal",
234
234
  children: /* @__PURE__ */ n(
235
- Fe,
235
+ Ie,
236
236
  {
237
237
  observations: re,
238
238
  isLoading: Z,
@@ -249,5 +249,5 @@ const Re = "FormsTable-module_formsTableBody__SvGha", De = "FormsTable-module_mo
249
249
  ] });
250
250
  };
251
251
  export {
252
- Ve as default
252
+ Ue as default
253
253
  };
@@ -1,5 +1,5 @@
1
- import { jsx as i, jsxs as S } from "react/jsx-runtime";
2
- import { o as z, D as U, t as G, p as H, v as P, q as j, T as x, R as J, S as Y, u as W, a as X, U as Z, e as ee, E as se, w as te, g as re, s as ae, x as oe, y as ne, z as ie, A as ce, b as le } from "./index-mhCtVZYq.js";
1
+ import { jsx as i, jsxs as N } from "react/jsx-runtime";
2
+ import { m as z, n as F, t as G, N as H, k as P, p as j, T as x, R as J, q as Y, u as W, a as X, z as Z, e as ee, M as se, s as te, S as re, v as ae, w as oe, x as ne, y as ie, A as ce, b as le } from "./index-CzoC3r40.js";
3
3
  import { useQueries as de, useQuery as ue } from "@tanstack/react-query";
4
4
  import { useRef as pe, useEffect as C, useMemo as I } from "react";
5
5
  import { useTranslation as w } from "react-i18next";
@@ -8,7 +8,7 @@ const be = "Observations-module_observations__RKSyo", me = "Observations-module_
8
8
  title: me,
9
9
  wrapper: ve,
10
10
  secondary: ye
11
- }, F = (t, l, n, c, u, r) => {
11
+ }, U = (t, l, n, c, u, r) => {
12
12
  const a = G(t, l, u), e = a.value, p = H(e);
13
13
  let o = e;
14
14
  p === "Image" && (o = /* @__PURE__ */ i(
@@ -27,35 +27,35 @@ const be = "Observations-module_observations__RKSyo", me = "Observations-module_
27
27
  hideThumbnail: r
28
28
  }
29
29
  )), p === "PDF" && (o = /* @__PURE__ */ i(Y, { id: `${e}-pdf`, src: e }));
30
- const b = /* @__PURE__ */ S("div", { className: y.wrapper, children: [
30
+ const b = /* @__PURE__ */ N("div", { className: y.wrapper, children: [
31
31
  /* @__PURE__ */ i("span", { children: a.header.display }),
32
32
  a.header.referenceRange && /* @__PURE__ */ i("span", { className: y.secondary, children: a.header.referenceRange })
33
33
  ] }), d = u("OBSERVATIONS_RECORDED_BY", {
34
34
  provider: a.provider
35
- }), m = t.effectiveDateTime ? P(t.effectiveDateTime, u, !0).formattedResult : void 0, _ = /* @__PURE__ */ S("div", { className: y.wrapper, children: [
35
+ }), m = t.effectiveDateTime ? P(t.effectiveDateTime, u, !0).formattedResult : void 0, _ = /* @__PURE__ */ N("div", { className: y.wrapper, children: [
36
36
  /* @__PURE__ */ i("span", { children: d }),
37
37
  m && /* @__PURE__ */ i("span", { className: y.secondary, children: m })
38
- ] }), v = t.display, g = t.observationValue?.isAbnormal ? "abnormal-obs" : "obs", E = c ? `${c}-${g}-${v}-${n}-${l}` : `${g}-${v}-${n}-${l}`;
38
+ ] }), v = t.display, T = t.observationValue?.isAbnormal ? "abnormal-obs" : "obs", O = c ? `${c}-${T}-${v}-${n}-${l}` : `${T}-${v}-${n}-${l}`;
39
39
  return /* @__PURE__ */ i(
40
40
  j,
41
41
  {
42
42
  header: b,
43
43
  value: o,
44
44
  info: _,
45
- id: E,
46
- testId: E,
47
- ariaLabel: E
45
+ id: O,
46
+ testId: O,
47
+ ariaLabel: O
48
48
  },
49
49
  `obs-${t.id}`
50
50
  );
51
51
  }, fe = (t, l, n, c, u, r, a) => /* @__PURE__ */ i(
52
- U,
52
+ F,
53
53
  {
54
54
  title: t.display,
55
55
  id: `grouped-obs-${t.display}-${c}`,
56
56
  open: n,
57
57
  children: t.members?.map(
58
- (e, p) => F(
58
+ (e, p) => U(
59
59
  e,
60
60
  p,
61
61
  u,
@@ -66,22 +66,22 @@ const be = "Observations-module_observations__RKSyo", me = "Observations-module_
66
66
  )
67
67
  },
68
68
  `grouped-obs-${t.id}`
69
- ), Ee = ({
69
+ ), Oe = ({
70
70
  groupedData: t,
71
71
  title: l = "",
72
72
  hideThumbnail: n
73
73
  }) => {
74
74
  const { t: c } = w(), u = (r, a, e) => {
75
75
  const p = z(r.encounterDetails, c);
76
- return /* @__PURE__ */ S(
77
- U,
76
+ return /* @__PURE__ */ N(
77
+ F,
78
78
  {
79
79
  title: p,
80
80
  id: `encounter-${r.encounterId}`,
81
81
  open: a,
82
82
  children: [
83
83
  r.observations.map(
84
- (o, b) => F(
84
+ (o, b) => U(
85
85
  o,
86
86
  b,
87
87
  e,
@@ -117,13 +117,13 @@ const be = "Observations-module_observations__RKSyo", me = "Observations-module_
117
117
  )
118
118
  }
119
119
  );
120
- }, Oe = (t) => ["conceptUuid", t], he = (t, l, n, c) => [
120
+ }, he = (t) => ["conceptUuid", t], Ee = (t, l, n, c) => [
121
121
  "observations",
122
122
  t,
123
123
  ...l,
124
124
  n,
125
125
  c
126
- ], Se = ({
126
+ ], Ne = ({
127
127
  config: t,
128
128
  episodeOfCareUuids: l,
129
129
  encounterUuids: n
@@ -135,7 +135,7 @@ const be = "Observations-module_observations__RKSyo", me = "Observations-module_
135
135
  scope: e = "all"
136
136
  } = c, p = pe(/* @__PURE__ */ new Set()), o = W(), { addNotification: b } = X(), { t: d } = w(), m = de({
137
137
  queries: u.map((s) => ({
138
- queryKey: Oe(s),
138
+ queryKey: he(s),
139
139
  queryFn: () => Z(s),
140
140
  enabled: !!s
141
141
  }))
@@ -148,22 +148,22 @@ const be = "Observations-module_observations__RKSyo", me = "Observations-module_
148
148
  type: "error"
149
149
  }), p.current.add(0)) : !s && R && p.current.clear();
150
150
  }, [m, b, d]);
151
- const _ = I(() => m.map((s) => s.data?.uuid).filter((s) => !!s), [m]), v = I(() => [.../* @__PURE__ */ new Set([..._, ...r])], [_, r]), f = I(() => u.length === 0 ? !0 : m.every((s) => !s.isLoading), [m, u.length]), g = e === "latest" || e === "latest-encounter", E = ee(
151
+ const _ = I(() => m.map((s) => s.data?.uuid).filter((s) => !!s), [m]), v = I(() => [.../* @__PURE__ */ new Set([..._, ...r])], [_, r]), f = I(() => u.length === 0 ? !0 : m.every((s) => !s.isLoading), [m, u.length]), T = e === "latest" || e === "latest-encounter", O = ee(
152
152
  l,
153
153
  n
154
154
  ), {
155
- data: O,
155
+ data: h,
156
156
  isLoading: V,
157
- isError: N,
157
+ isError: S,
158
158
  refetch: D
159
159
  } = ue({
160
- queryKey: he(
160
+ queryKey: Ee(
161
161
  o,
162
162
  v,
163
163
  n,
164
164
  e
165
165
  ),
166
- queryFn: () => g ? se(
166
+ queryFn: () => T ? se(
167
167
  o,
168
168
  v,
169
169
  n
@@ -172,7 +172,7 @@ const be = "Observations-module_observations__RKSyo", me = "Observations-module_
172
172
  v,
173
173
  n
174
174
  ),
175
- enabled: !!o && v.length > 0 && f && !E
175
+ enabled: !!o && v.length > 0 && f && !O
176
176
  });
177
177
  re(
178
178
  (s) => {
@@ -182,28 +182,28 @@ const be = "Observations-module_observations__RKSyo", me = "Observations-module_
182
182
  },
183
183
  [o, D]
184
184
  ), C(() => {
185
- N && b({
185
+ S && b({
186
186
  title: d("ERROR_DEFAULT_TITLE"),
187
187
  message: d("ERROR_FETCHING_OBSERVATIONS"),
188
188
  type: "error"
189
189
  });
190
- }, [N]);
190
+ }, [S]);
191
191
  const A = I(() => {
192
- if (!O) return [];
193
- let s = ae(O);
192
+ if (!h) return [];
193
+ let s = ae(h);
194
194
  e === "latest-encounter" && (s = oe(s));
195
195
  const R = ne(s);
196
196
  return ie(R);
197
- }, [O, e]), K = [
197
+ }, [h, e]), M = [
198
198
  { key: "name", header: "name" },
199
199
  { key: "value", header: "value" },
200
200
  { key: "form", header: "form" }
201
- ], L = V || !f, B = N && f, M = (!O || O.entry?.length === 0 || v.length === 0) && f, q = B ? d("ERROR_FETCHING_OBSERVATIONS") : null, Q = M ? d("NO_OBSERVATIONS_FOUND") : void 0, k = A.length > 0 && !L && !B, T = c.titleTranslationKey, h = T ? d(T) : "";
202
- return /* @__PURE__ */ S(
201
+ ], L = V || !f, B = S && f, k = (!h || h.entry?.length === 0 || v.length === 0) && f, K = B ? d("ERROR_FETCHING_OBSERVATIONS") : null, q = k ? d("NO_OBSERVATIONS_FOUND") : void 0, Q = A.length > 0 && !L && !B, g = c.titleTranslationKey, E = g ? d(g) : "";
202
+ return /* @__PURE__ */ N(
203
203
  "div",
204
204
  {
205
205
  id: "observations",
206
- "data-testid": T ? `observations-${h}` : "observations",
206
+ "data-testid": g ? `observations-${E}` : "observations",
207
207
  "aria-label": "observations-aria-label",
208
208
  className: y.observations,
209
209
  children: [
@@ -211,28 +211,28 @@ const be = "Observations-module_observations__RKSyo", me = "Observations-module_
211
211
  ce,
212
212
  {
213
213
  id: "observations-title",
214
- testId: T ? `observations-title-${h}` : "observations-title",
215
- title: h,
214
+ testId: g ? `observations-title-${E}` : "observations-title",
215
+ title: E,
216
216
  className: y.title,
217
- children: /* @__PURE__ */ i("p", { children: h })
217
+ children: /* @__PURE__ */ i("p", { children: E })
218
218
  }
219
219
  ),
220
- k ? /* @__PURE__ */ i(
221
- Ee,
220
+ Q ? /* @__PURE__ */ i(
221
+ Oe,
222
222
  {
223
223
  groupedData: A,
224
- title: h,
224
+ title: E,
225
225
  hideThumbnail: a
226
226
  }
227
227
  ) : /* @__PURE__ */ i(
228
228
  le,
229
229
  {
230
- headers: K,
230
+ headers: M,
231
231
  rows: [],
232
232
  ariaLabel: d("OBSERVATIONS"),
233
233
  loading: L,
234
- errorStateMessage: q,
235
- emptyStateMessage: Q ?? d("NO_OBSERVATIONS_AVAILABLE"),
234
+ errorStateMessage: K,
235
+ emptyStateMessage: q ?? d("NO_OBSERVATIONS_AVAILABLE"),
236
236
  dataTestId: "observations-table"
237
237
  }
238
238
  )
@@ -241,7 +241,7 @@ const be = "Observations-module_observations__RKSyo", me = "Observations-module_
241
241
  );
242
242
  };
243
243
  export {
244
- Oe as conceptUuidQueryKeys,
245
- Se as default,
246
- he as observationsQueryKeys
244
+ he as conceptUuidQueryKeys,
245
+ Ne as default,
246
+ Ee as observationsQueryKeys
247
247
  };
@@ -1 +1 @@
1
- {"version":3,"file":"AllergiesTable.d.ts","sourceRoot":"","sources":["../../src/allergies/AllergiesTable.tsx"],"names":[],"mappings":"AAmBA,OAAO,KAAoD,MAAM,OAAO,CAAC;AAGzE,OAAO,EAAsB,WAAW,EAAE,MAAM,mBAAmB,CAAC;AA2BpE,QAAA,MAAM,cAAc,EAAE,KAAK,CAAC,EAAE,CAAC,WAAW,CA4LzC,CAAC;AAEF,eAAe,cAAc,CAAC"}
1
+ {"version":3,"file":"AllergiesTable.d.ts","sourceRoot":"","sources":["../../src/allergies/AllergiesTable.tsx"],"names":[],"mappings":"AAoBA,OAAO,KAAoD,MAAM,OAAO,CAAC;AAGzE,OAAO,EAAsB,WAAW,EAAE,MAAM,mBAAmB,CAAC;AA2BpE,QAAA,MAAM,cAAc,EAAE,KAAK,CAAC,EAAE,CAAC,WAAW,CA6LzC,CAAC;AAEF,eAAe,cAAc,CAAC"}