@bahmni/registration-app 0.0.1-dev.128 → 0.0.1-dev.129

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,9 +1,9 @@
1
- import { jsx as t, jsxs as p, Fragment as z } from "react/jsx-runtime";
2
- import { u as J, C as Q, Y as W, a as Z, n as ee, o as re, r as ae, H as oe, R as te, q as G, O as ne, L as se, b as me, c as de, w as x, G as ie, I as v } from "./index-CbLfyRgd.js";
1
+ import { jsx as t, jsxs as p, Fragment as Z } from "react/jsx-runtime";
2
+ import { u as z, C as J, Y as Q, f as W, h as ee, p as re, a as ae, b as oe, S as te, q as G, L as ne, D as se, R as me, B as de, g as x, X as ie, Z as v } from "./index-BkOfuV6e.js";
3
3
  import { useQuery as h } from "@tanstack/react-query";
4
4
  import { useState as q, useMemo as N, useCallback as y } from "react";
5
5
  import { createPortal as le } from "react-dom";
6
- const ce = "_formsTableBody_1pd36_1", ue = "_customAccordianItem_1pd36_6", pe = "_formContent_1pd36_18", be = "_formDetailsContainer_1pd36_25", _e = "_observation_1pd36_30", fe = "_groupContainer_1pd36_39", Ne = "_rowContainer_1pd36_43", $e = "_groupLabel_1pd36_48", ge = "_rowLabel_1pd36_58", he = "_rowValue_1pd36_67", ye = "_groupMembers_1pd36_75", ve = "_memberRow_1pd36_81", Me = "_memberLabel_1pd36_86", Ae = "_memberValue_1pd36_94", Le = "_abnormalValue_1pd36_102", Te = "_commentSection_1pd36_110", Oe = "_commentText_1pd36_116", Re = "_nestedGroup_1pd36_125", Ce = "_nestedGroupLabel_1pd36_132", De = "_nestedGroupMembers_1pd36_141", o = {
6
+ const ce = "_formsTableBody_1pd36_1", ue = "_customAccordianItem_1pd36_6", pe = "_formContent_1pd36_18", be = "_formDetailsContainer_1pd36_25", _e = "_observation_1pd36_30", fe = "_groupContainer_1pd36_39", Ne = "_rowContainer_1pd36_43", $e = "_groupLabel_1pd36_48", ge = "_rowLabel_1pd36_58", he = "_rowValue_1pd36_67", ye = "_groupMembers_1pd36_75", ve = "_memberRow_1pd36_81", Ae = "_memberLabel_1pd36_86", Le = "_memberValue_1pd36_94", Me = "_abnormalValue_1pd36_102", Te = "_commentSection_1pd36_110", Ce = "_commentText_1pd36_116", De = "_nestedGroup_1pd36_125", Re = "_nestedGroupLabel_1pd36_132", Oe = "_nestedGroupMembers_1pd36_141", o = {
7
7
  formsTableBody: ce,
8
8
  customAccordianItem: ue,
9
9
  formContent: pe,
@@ -16,18 +16,18 @@ const ce = "_formsTableBody_1pd36_1", ue = "_customAccordianItem_1pd36_6", pe =
16
16
  rowValue: he,
17
17
  groupMembers: ye,
18
18
  memberRow: ve,
19
- memberLabel: Me,
20
- memberValue: Ae,
21
- abnormalValue: Le,
19
+ memberLabel: Ae,
20
+ memberValue: Le,
21
+ abnormalValue: Me,
22
22
  commentSection: Te,
23
- commentText: Oe,
24
- nestedGroup: Re,
25
- nestedGroupLabel: Ce,
26
- nestedGroupMembers: De
23
+ commentText: Ce,
24
+ nestedGroup: De,
25
+ nestedGroupLabel: Re,
26
+ nestedGroupMembers: Oe
27
27
  }, Fe = "ABNORMAL", U = (e) => {
28
28
  const s = e.concept?.units, d = e.concept?.lowNormal, r = e.concept?.hiNormal, u = d != null, m = r != null, c = u && m ? ` (${d} - ${r})` : u ? ` (>${d})` : m ? ` (<${r})` : "", a = e.interpretation && e.interpretation.toUpperCase() === Fe;
29
29
  return { units: s, rangeString: c, isAbnormal: a };
30
- }, H = ({
30
+ }, X = ({
31
31
  member: e,
32
32
  depth: s = 0,
33
33
  memberIndex: d = 0,
@@ -56,7 +56,7 @@ const ce = "_formsTableBody_1pd36_1", ue = "_customAccordianItem_1pd36_6", pe =
56
56
  className: o.nestedGroupMembers,
57
57
  "data-testid": `${c}obs-nested-group-members-${m}-${d}`,
58
58
  children: e.groupMembers?.map(($, g) => /* @__PURE__ */ t(
59
- H,
59
+ X,
60
60
  {
61
61
  member: $,
62
62
  depth: s + 1,
@@ -109,7 +109,7 @@ const ce = "_formsTableBody_1pd36_1", ue = "_customAccordianItem_1pd36_6", pe =
109
109
  ]
110
110
  }
111
111
  );
112
- }, we = ({
112
+ }, Ie = ({
113
113
  observation: e,
114
114
  index: s,
115
115
  formName: d = ""
@@ -147,7 +147,7 @@ const ce = "_formsTableBody_1pd36_1", ue = "_customAccordianItem_1pd36_6", pe =
147
147
  className: o.groupMembers,
148
148
  "data-testid": `${a}observation-group-members-${e.conceptNameToDisplay}-${s}`,
149
149
  children: e.groupMembers?.map((b, _) => /* @__PURE__ */ t(
150
- H,
150
+ X,
151
151
  {
152
152
  member: b,
153
153
  depth: 0,
@@ -194,70 +194,70 @@ const ce = "_formsTableBody_1pd36_1", ue = "_customAccordianItem_1pd36_6", pe =
194
194
  encounterUuids: s,
195
195
  config: d
196
196
  }) => {
197
- const { t: r } = J(), u = Q(), [m, c] = q(!1), [a, b] = q(null), _ = d?.numberOfVisits, $ = W(
197
+ const { t: r } = z(), u = J(), [m, c] = q(!1), [a, b] = q(null), _ = d?.numberOfVisits, $ = Q(
198
198
  e,
199
199
  s
200
200
  ), {
201
201
  data: g = [],
202
202
  isLoading: T,
203
- isError: O,
203
+ isError: C,
204
204
  error: k
205
205
  } = h({
206
206
  queryKey: ["forms", u, e],
207
- queryFn: () => Z(u, void 0, _),
207
+ queryFn: () => W(u, void 0, _),
208
208
  enabled: !!u && !$
209
- }), R = N(() => !s || s.length === 0 ? g : g.filter(
209
+ }), D = N(() => !s || s.length === 0 ? g : g.filter(
210
210
  (n) => s.includes(n.encounterUuid)
211
- ), [g, s]), { data: C = [] } = h({
211
+ ), [g, s]), { data: R = [] } = h({
212
212
  queryKey: ["observationForms"],
213
213
  queryFn: () => ee()
214
- }), D = y(
215
- (n) => C.find((l) => l.name === n)?.uuid,
216
- [C]
217
- ), M = N(() => {
214
+ }), O = y(
215
+ (n) => R.find((l) => l.name === n)?.uuid,
216
+ [R]
217
+ ), A = N(() => {
218
218
  if (a)
219
- return D(a.formName);
220
- }, [a, D]), {
221
- data: Ie,
222
- isLoading: j,
219
+ return O(a.formName);
220
+ }, [a, O]), {
221
+ data: we,
222
+ isLoading: H,
223
223
  error: F
224
224
  } = h({
225
- queryKey: ["formMetadata", M],
226
- queryFn: () => re(M),
227
- enabled: !!M && m
225
+ queryKey: ["formMetadata", A],
226
+ queryFn: () => re(A),
227
+ enabled: !!A && m
228
228
  }), {
229
- data: A,
230
- isLoading: K,
231
- error: w
229
+ data: L,
230
+ isLoading: j,
231
+ error: I
232
232
  } = h({
233
233
  queryKey: ["formsEncounter", a?.encounterUuid],
234
234
  queryFn: () => ae(a.encounterUuid, !0),
235
235
  enabled: !!a?.encounterUuid && m
236
- }), I = N(() => !A?.observations || !a?.formName ? [] : A.observations.filter(
236
+ }), w = N(() => !L?.observations || !a?.formName ? [] : L.observations.filter(
237
237
  (n) => "formFieldPath" in n && typeof n.formFieldPath == "string" && n.formFieldPath.includes(a.formName)
238
- ), [A?.observations, a?.formName]), E = N(
238
+ ), [L?.observations, a?.formName]), B = N(
239
239
  () => [
240
240
  { key: "recordedOn", header: r("FORM_RECORDED_ON") },
241
241
  { key: "recordedBy", header: r("FORM_RECORDED_BY") }
242
242
  ],
243
243
  [r]
244
- ), P = N(
244
+ ), K = N(
245
245
  () => [
246
246
  { key: "recordedOn", sortable: !0 },
247
247
  { key: "recordedBy", sortable: !0 }
248
248
  ],
249
249
  []
250
- ), B = N(() => {
251
- const n = R.reduce(
250
+ ), S = N(() => {
251
+ const n = D.reduce(
252
252
  (l, i) => {
253
253
  const f = i.formName;
254
254
  l[f] ??= [];
255
- const L = i.providers.map((Y) => Y.providerName).filter(Boolean).join(", ");
255
+ const M = i.providers.map((Y) => Y.providerName).filter(Boolean).join(", ");
256
256
  return l[f].push({
257
257
  id: i.encounterUuid,
258
258
  formName: i.formName,
259
259
  recordedOn: oe(i.encounterDateTime, r, ie).formattedResult,
260
- recordedBy: L ?? "--",
260
+ recordedBy: M ?? "--",
261
261
  encounterDateTime: i.encounterDateTime,
262
262
  encounterUuid: i.encounterUuid
263
263
  }), l;
@@ -268,42 +268,42 @@ const ce = "_formsTableBody_1pd36_1", ue = "_customAccordianItem_1pd36_6", pe =
268
268
  ([l, i]) => ({
269
269
  formName: l,
270
270
  records: i.sort(
271
- (f, L) => L.encounterDateTime - f.encounterDateTime
271
+ (f, M) => M.encounterDateTime - f.encounterDateTime
272
272
  )
273
273
  })
274
274
  ).sort((l, i) => l.formName.localeCompare(i.formName));
275
- }, [R, r]), S = y((n) => {
275
+ }, [D, r]), E = y((n) => {
276
276
  b(n), c(!0);
277
- }, []), X = y(() => {
277
+ }, []), P = y(() => {
278
278
  c(!1), b(null);
279
279
  }, []), V = y(
280
280
  (n, l) => {
281
281
  switch (l) {
282
282
  case "recordedOn":
283
- return /* @__PURE__ */ t(te, { onClick: () => S(n), children: n.recordedOn });
283
+ return /* @__PURE__ */ t(te, { onClick: () => E(n), children: n.recordedOn });
284
284
  case "recordedBy":
285
285
  return n.recordedBy;
286
286
  default:
287
287
  return null;
288
288
  }
289
289
  },
290
- [S]
290
+ [E]
291
291
  );
292
- return /* @__PURE__ */ p(z, { children: [
293
- /* @__PURE__ */ t("div", { "data-testid": "forms-table", children: T || O || B.length === 0 || $ ? /* @__PURE__ */ t(
292
+ return /* @__PURE__ */ p(Z, { children: [
293
+ /* @__PURE__ */ t("div", { "data-testid": "forms-table", children: T || C || S.length === 0 || $ ? /* @__PURE__ */ t(
294
294
  G,
295
295
  {
296
- headers: E,
296
+ headers: B,
297
297
  ariaLabel: r("FORMS_HEADING"),
298
298
  rows: [],
299
299
  loading: T,
300
- errorStateMessage: O ? k?.message : void 0,
300
+ errorStateMessage: C ? k?.message : void 0,
301
301
  emptyStateMessage: r("FORMS_UNAVAILABLE"),
302
302
  renderCell: V,
303
303
  className: o.formsTableBody,
304
304
  dataTestId: "forms-table"
305
305
  }
306
- ) : /* @__PURE__ */ t(ne, { align: "start", children: B.map((n, l) => {
306
+ ) : /* @__PURE__ */ t(ne, { align: "start", children: S.map((n, l) => {
307
307
  const { formName: i, records: f } = n;
308
308
  return /* @__PURE__ */ t(
309
309
  se,
@@ -315,12 +315,12 @@ const ce = "_formsTableBody_1pd36_1", ue = "_customAccordianItem_1pd36_6", pe =
315
315
  children: /* @__PURE__ */ t(
316
316
  G,
317
317
  {
318
- headers: E,
318
+ headers: B,
319
319
  ariaLabel: r("FORMS_HEADING"),
320
320
  rows: f,
321
321
  loading: !1,
322
322
  errorStateMessage: "",
323
- sortable: P,
323
+ sortable: K,
324
324
  emptyStateMessage: r("FORMS_UNAVAILABLE"),
325
325
  renderCell: V,
326
326
  className: o.formsTableBody,
@@ -335,16 +335,16 @@ const ce = "_formsTableBody_1pd36_1", ue = "_customAccordianItem_1pd36_6", pe =
335
335
  /* @__PURE__ */ t(
336
336
  me,
337
337
  {
338
- id: "formDetailsModal",
338
+ id: "modalIdForActionAreaLayout",
339
339
  open: m,
340
- onRequestClose: X,
340
+ onRequestClose: P,
341
341
  modalHeading: a.formName,
342
342
  modalLabel: `${a.recordedOn} | ${a.recordedBy}`,
343
343
  passiveModal: !0,
344
344
  size: "md",
345
345
  testId: "form-details-modal",
346
- children: /* @__PURE__ */ t("div", { className: o.formContent, children: j || K ? /* @__PURE__ */ t(de, { width: "100%", lineCount: 3 }) : F ? /* @__PURE__ */ t("div", { children: x(F).message ?? r("ERROR_FETCHING_FORM_METADATA") }) : w ? /* @__PURE__ */ t("div", { children: x(w).message ?? r("ERROR_FETCHING_FORM_DATA") }) : I.length > 0 ? /* @__PURE__ */ t("div", { className: o.formDetailsContainer, children: I.map((n, l) => /* @__PURE__ */ t(
347
- we,
346
+ children: /* @__PURE__ */ t("div", { className: o.formContent, children: H || j ? /* @__PURE__ */ t(de, { width: "100%", lineCount: 3 }) : F ? /* @__PURE__ */ t("div", { children: x(F).message ?? r("ERROR_FETCHING_FORM_METADATA") }) : I ? /* @__PURE__ */ t("div", { children: x(I).message ?? r("ERROR_FETCHING_FORM_DATA") }) : w.length > 0 ? /* @__PURE__ */ t("div", { className: o.formDetailsContainer, children: w.map((n, l) => /* @__PURE__ */ t(
347
+ Ie,
348
348
  {
349
349
  observation: n,
350
350
  index: l,
@@ -1,6 +1,6 @@
1
- import { c, T as l, P as m, a as i, D as u, Q as v } from "./YPM2AS64-CfIWHauQ.js";
2
- import { g as d, h as f, i as e } from "./index-CbLfyRgd.js";
3
- var h = (a) => {
1
+ import { c, T as l, P as m, a as i, D as u, Q as v } from "./YPM2AS64-JmbQ96C3.js";
2
+ import { i as d, k as f, m as e } from "./index-BkOfuV6e.js";
3
+ var p = (a) => {
4
4
  const [r, t] = c({
5
5
  prefix: "TanstackQueryDevtools"
6
6
  }), n = d(), s = f(() => {
@@ -27,7 +27,7 @@ var h = (a) => {
27
27
  });
28
28
  }
29
29
  });
30
- }, C = h;
30
+ }, C = p;
31
31
  export {
32
32
  C as default
33
33
  };
@@ -1,9 +1,9 @@
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-CfIWHauQ.js";
2
- import { g as h, h as v, i as e } from "./index-CbLfyRgd.js";
3
- var C = (t) => {
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-JmbQ96C3.js";
2
+ import { i as v, k as C, m as e } from "./index-BkOfuV6e.js";
3
+ var h = (t) => {
4
4
  const [r, o] = s({
5
5
  prefix: "TanstackQueryDevtools"
6
- }), a = h(), l = v(() => {
6
+ }), a = v(), l = C(() => {
7
7
  const n = r.theme_preference || c;
8
8
  return n !== "system" ? n : a();
9
9
  });
@@ -36,7 +36,7 @@ var C = (t) => {
36
36
  });
37
37
  }
38
38
  });
39
- }, p = C;
39
+ }, p = h;
40
40
  export {
41
41
  p as default
42
42
  };
@@ -1,8 +1,8 @@
1
1
  import { jsxs as _, jsx as b } from "react/jsx-runtime";
2
- import { C as F, T as G, u as I, e as U, t as Q, J as k, q as x, X as K, d as A, Q as X, A as H, D as j, f as J } from "./index-CbLfyRgd.js";
3
- import { useQueries as P, useQuery as Y } from "@tanstack/react-query";
4
- import { useRef as Z, useEffect as S, useMemo as h } from "react";
5
- const z = "normal", W = "http://terminology.hl7.org/CodeSystem/referencerange-meaning", ee = "A", te = "http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation", ne = (e, n) => e?.date ? K(e.date, n).formattedResult : n("DATE_ERROR_PARSE"), re = (e) => {
2
+ import { C as B, T as U, u as I, c as k, d as x, e as G, q as X, s as K, P as w, l as Q, _ as j, j as P, F as H } from "./index-BkOfuV6e.js";
3
+ import { useQueries as Y, useQuery as Z } from "@tanstack/react-query";
4
+ import { useRef as z, useEffect as S, useMemo as h } from "react";
5
+ const J = "normal", W = "http://terminology.hl7.org/CodeSystem/referencerange-meaning", ee = "A", te = "http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation", ne = (e, n) => e?.date ? K(e.date, n).formattedResult : n("DATE_ERROR_PARSE"), re = (e) => {
6
6
  if (!e.observationValue?.value)
7
7
  return "";
8
8
  const { value: n, unit: t } = e.observationValue;
@@ -60,7 +60,7 @@ function se(e) {
60
60
  if (i && i.length > 0) {
61
61
  const l = i.find(
62
62
  (v) => v.type?.coding?.some(
63
- (c) => c.system === W && c.code === z
63
+ (c) => c.system === W && c.code === J
64
64
  )
65
65
  );
66
66
  l && (l.low || l.high) && (u.referenceRange = {
@@ -112,9 +112,9 @@ function ue(e, n) {
112
112
  location: t.location?.[0]?.location?.display
113
113
  };
114
114
  }
115
- function D(e, n, t) {
115
+ function A(e, n, t) {
116
116
  const a = $(e.encounter), r = (e.hasMember ?? []).map((o) => $(o)).map((o) => o ? t.get(o) : void 0).filter((o) => !!o).map(
117
- (o) => D(o, n, t)
117
+ (o) => A(o, n, t)
118
118
  );
119
119
  return {
120
120
  id: e.id,
@@ -137,7 +137,7 @@ function le(e) {
137
137
  const r = [], o = [];
138
138
  return t.forEach((i, s) => {
139
139
  if (a.has(s)) return;
140
- const u = D(
140
+ const u = A(
141
141
  i,
142
142
  n,
143
143
  t
@@ -177,15 +177,15 @@ function ce(e) {
177
177
  return !a && !r ? 0 : a ? r ? new Date(r).getTime() - new Date(a).getTime() : -1 : 1;
178
178
  });
179
179
  }
180
- const w = (e, n, t, a, r) => {
181
- const o = ae(e, n), i = o.value, s = X(i);
180
+ const D = (e, n, t, a, r) => {
181
+ const o = ae(e, n), i = o.value, s = Q(i);
182
182
  let u = i;
183
- s === "Image" && (u = /* @__PURE__ */ b(j, { imageSrc: i, alt: i, id: `${i}-img` })), s === "Video" && (u = /* @__PURE__ */ b(J, { id: `${i}-video`, videoSrc: i }));
183
+ s === "Image" && (u = /* @__PURE__ */ b(P, { imageSrc: i, alt: i, id: `${i}-img` })), s === "Video" && (u = /* @__PURE__ */ b(H, { id: `${i}-video`, videoSrc: i }));
184
184
  const l = r("OBSERVATIONS_RECORDED_BY", {
185
185
  provider: o.provider
186
186
  }), v = e.display, c = e.observationValue?.isAbnormal ? "abnormal-obs" : "obs", p = a ? `${a}-${c}-${v}-${t}-${n}` : `${c}-${v}-${t}-${n}`;
187
187
  return /* @__PURE__ */ b(
188
- H,
188
+ j,
189
189
  {
190
190
  header: o.header,
191
191
  value: u,
@@ -197,13 +197,13 @@ const w = (e, n, t, a, r) => {
197
197
  `obs-${e.id}`
198
198
  );
199
199
  }, ve = (e, n, t, a, r, o) => /* @__PURE__ */ b(
200
- A,
200
+ w,
201
201
  {
202
202
  title: e.display,
203
203
  id: `grouped-obs-${e.display}-${a}`,
204
204
  open: t,
205
205
  children: e.children.map(
206
- (i, s) => w(i, s, r, o, n)
206
+ (i, s) => D(i, s, r, o, n)
207
207
  )
208
208
  },
209
209
  `grouped-obs-${e.id}`
@@ -214,14 +214,14 @@ const w = (e, n, t, a, r) => {
214
214
  const { t } = I(), a = (r, o, i) => {
215
215
  const s = ne(r.encounterDetails, t);
216
216
  return /* @__PURE__ */ _(
217
- A,
217
+ w,
218
218
  {
219
219
  title: s,
220
220
  id: `encounter-${r.encounterId}`,
221
221
  open: o,
222
222
  children: [
223
223
  r.observations.map(
224
- (u, l) => w(u, l, i, n, t)
224
+ (u, l) => D(u, l, i, n, t)
225
225
  ),
226
226
  r.groupedObservations.map(
227
227
  (u, l) => ve(
@@ -252,21 +252,21 @@ const w = (e, n, t, a, r) => {
252
252
  }, be = "_observations_kfbhq_1", ge = "_title_kfbhq_12", T = {
253
253
  observations: be,
254
254
  title: ge
255
- }, me = (e) => ["conceptUuid", e], fe = (e, n) => ["observations", e, ...n], Re = ({ config: e }) => {
256
- const n = e, { conceptNames: t = [], conceptUuid: a = [] } = n, r = Z(/* @__PURE__ */ new Set()), o = F(), { addNotification: i } = G(), { t: s } = I(), u = P({
255
+ }, me = (e) => ["conceptUuid", e], fe = (e, n) => ["observations", e, ...n], Oe = ({ config: e }) => {
256
+ const n = e, { conceptNames: t = [], conceptUuid: a = [] } = n, r = z(/* @__PURE__ */ new Set()), o = B(), { addNotification: i } = U(), { t: s } = I(), u = Y({
257
257
  queries: t.map((d) => ({
258
258
  queryKey: me(d),
259
- queryFn: () => U(d),
259
+ queryFn: () => k(d),
260
260
  enabled: !!d
261
261
  }))
262
262
  });
263
263
  S(() => {
264
264
  u.forEach((d, g) => {
265
265
  if (d.isError && !r.current.has(g)) {
266
- const B = t[g];
266
+ const M = t[g];
267
267
  i({
268
268
  title: s("ERROR_DEFAULT_TITLE"),
269
- message: s("ERROR_FETCHING_CONCEPT", { conceptName: B }),
269
+ message: s("ERROR_FETCHING_CONCEPT", { conceptName: M }),
270
270
  type: "error"
271
271
  }), r.current.add(g);
272
272
  } else d.isError || r.current.delete(g);
@@ -276,9 +276,9 @@ const w = (e, n, t, a, r) => {
276
276
  data: p,
277
277
  isLoading: N,
278
278
  isError: y
279
- } = Y({
279
+ } = Z({
280
280
  queryKey: fe(o, v),
281
- queryFn: () => Q(o, v),
281
+ queryFn: () => x(o, v),
282
282
  enabled: !!o && v.length > 0 && c
283
283
  });
284
284
  S(() => {
@@ -296,7 +296,7 @@ const w = (e, n, t, a, r) => {
296
296
  { key: "name", header: "name" },
297
297
  { key: "value", header: "value" },
298
298
  { key: "form", header: "form" }
299
- ], R = N || !c, O = y && c, V = (!p || p.entry?.length === 0 || v.length === 0) && c, q = O ? s("ERROR_FETCHING_OBSERVATIONS") : null, L = V ? s("NO_OBSERVATIONS_FOUND") : void 0, M = E.length > 0 && !R && !O, f = n.titleTranslationKey, m = f ? s(f) : "";
299
+ ], O = N || !c, R = y && c, V = (!p || p.entry?.length === 0 || v.length === 0) && c, q = R ? s("ERROR_FETCHING_OBSERVATIONS") : null, F = V ? s("NO_OBSERVATIONS_FOUND") : void 0, L = E.length > 0 && !O && !R, f = n.titleTranslationKey, m = f ? s(f) : "";
300
300
  return /* @__PURE__ */ _(
301
301
  "div",
302
302
  {
@@ -306,7 +306,7 @@ const w = (e, n, t, a, r) => {
306
306
  className: T.observations,
307
307
  children: [
308
308
  /* @__PURE__ */ b(
309
- k,
309
+ G,
310
310
  {
311
311
  id: "observations-title",
312
312
  testId: f ? `observations-title-${m}` : "observations-title",
@@ -315,15 +315,15 @@ const w = (e, n, t, a, r) => {
315
315
  children: /* @__PURE__ */ b("p", { children: m })
316
316
  }
317
317
  ),
318
- M ? /* @__PURE__ */ b(pe, { groupedData: E, title: m }) : /* @__PURE__ */ b(
319
- x,
318
+ L ? /* @__PURE__ */ b(pe, { groupedData: E, title: m }) : /* @__PURE__ */ b(
319
+ X,
320
320
  {
321
321
  headers: C,
322
322
  rows: [],
323
323
  ariaLabel: s("OBSERVATIONS"),
324
- loading: R,
324
+ loading: O,
325
325
  errorStateMessage: q,
326
- emptyStateMessage: L,
326
+ emptyStateMessage: F,
327
327
  dataTestId: "observations-table"
328
328
  }
329
329
  )
@@ -333,6 +333,6 @@ const w = (e, n, t, a, r) => {
333
333
  };
334
334
  export {
335
335
  me as conceptUuidQueryKeys,
336
- Re as default,
336
+ Oe as default,
337
337
  fe as observationsQueryKeys
338
338
  };