@bahmni/widgets 0.0.1-dev.346 → 0.0.1-dev.349

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.
Files changed (55) hide show
  1. package/dist/{DocumentsTable-Dtvjttoa.js → DocumentsTable-BDdB-GBM.js} +21 -21
  2. package/dist/FormsTable-B0BlNJRr.js +294 -0
  3. package/dist/{Observations-3Ged1eJY.js → Observations-sujkgy3_.js} +5 -5
  4. package/dist/forms/FormsTable.d.ts.map +1 -1
  5. package/dist/{index-D-OVBhy0.js → index-BAz36sQ7.js} +49439 -53149
  6. package/dist/index.css +1 -1
  7. package/dist/index.d.ts +1 -1
  8. package/dist/index.d.ts.map +1 -1
  9. package/dist/index.js +60 -58
  10. package/dist/medications/components/Actions.d.ts.map +1 -1
  11. package/dist/observations/__mocks__/observationTestData.d.ts +6 -0
  12. package/dist/observations/__mocks__/observationTestData.d.ts.map +1 -1
  13. package/dist/observations/index.d.ts +1 -1
  14. package/dist/observations/index.d.ts.map +1 -1
  15. package/dist/observations/utils.d.ts +2 -0
  16. package/dist/observations/utils.d.ts.map +1 -1
  17. package/dist/tasks/TaskList.d.ts.map +1 -1
  18. package/dist/tasks/__tests__/__mocks__/configMocks.d.ts +9 -0
  19. package/dist/tasks/__tests__/__mocks__/configMocks.d.ts.map +1 -0
  20. package/dist/tasks/__tests__/__mocks__/taskActionsMocks.d.ts +2 -2
  21. package/dist/tasks/__tests__/__mocks__/taskActionsMocks.d.ts.map +1 -1
  22. package/dist/tasks/__tests__/__mocks__/taskListMocks.d.ts +5 -4
  23. package/dist/tasks/__tests__/__mocks__/taskListMocks.d.ts.map +1 -1
  24. package/dist/tasks/{components → actions}/TaskActions.d.ts +2 -3
  25. package/dist/tasks/actions/TaskActions.d.ts.map +1 -0
  26. package/dist/tasks/actions/actionHandlers.d.ts +3 -0
  27. package/dist/tasks/actions/actionHandlers.d.ts.map +1 -0
  28. package/dist/tasks/actions/index.d.ts +3 -0
  29. package/dist/tasks/actions/index.d.ts.map +1 -0
  30. package/dist/tasks/constants.d.ts +11 -0
  31. package/dist/tasks/constants.d.ts.map +1 -0
  32. package/dist/tasks/models.d.ts +14 -4
  33. package/dist/tasks/models.d.ts.map +1 -1
  34. package/dist/tasks/utils.d.ts +7 -18
  35. package/dist/tasks/utils.d.ts.map +1 -1
  36. package/dist/tasks/views/TaskViewResults.d.ts +9 -0
  37. package/dist/tasks/views/TaskViewResults.d.ts.map +1 -0
  38. package/dist/tasks/views/ViewFormData/ViewFormData.d.ts +12 -0
  39. package/dist/tasks/views/ViewFormData/ViewFormData.d.ts.map +1 -0
  40. package/dist/tasks/views/ViewFormData/index.d.ts +2 -0
  41. package/dist/tasks/views/ViewFormData/index.d.ts.map +1 -0
  42. package/dist/tasks/views/index.d.ts +4 -0
  43. package/dist/tasks/views/index.d.ts.map +1 -0
  44. package/dist/tasks/views/viewHandlers.d.ts +4 -0
  45. package/dist/tasks/views/viewHandlers.d.ts.map +1 -0
  46. package/dist/userPrivileges/consultationPadPrivileges.d.ts +1 -0
  47. package/dist/userPrivileges/consultationPadPrivileges.d.ts.map +1 -1
  48. package/dist/utils/Observations.d.ts.map +1 -1
  49. package/package.json +1 -1
  50. package/dist/FormsTable-BKd88Ugp.js +0 -233
  51. package/dist/forms/utils.d.ts +0 -18
  52. package/dist/forms/utils.d.ts.map +0 -1
  53. package/dist/tasks/components/TaskActions.d.ts.map +0 -1
  54. package/dist/tasks/components/actionHandlers.d.ts +0 -9
  55. package/dist/tasks/components/actionHandlers.d.ts.map +0 -1
@@ -1,16 +1,16 @@
1
1
  import { jsx as r, jsxs as T, Fragment as Y } from "react/jsx-runtime";
2
- import { u as W, a as X, l as J, B as Z, R as x, q as ee, F as te } from "./index-D-OVBhy0.js";
2
+ import { u as W, a as X, h as J, B as Z, A as x, q as ee, F as te } from "./index-BAz36sQ7.js";
3
3
  import { useQuery as ne } from "@tanstack/react-query";
4
- import { useState as m, useCallback as _, useEffect as I, useMemo as p } from "react";
4
+ import { useState as l, useCallback as _, useEffect as I, useMemo as p } from "react";
5
5
  import { useTranslation as ae } from "react-i18next";
6
- const oe = "DocumentsTable-module_documentsTableBody__6iR3w", se = "DocumentsTable-module_viewAttachmentsLink__aQ1on", re = "DocumentsTable-module_documentViewerContainer__F5m8D", ce = "DocumentsTable-module_attachmentItem__17KA7", de = "DocumentsTable-module_attachmentCounter__WFiI3", le = "DocumentsTable-module_attachmentError__RI4U2", me = "DocumentsTable-module_documentIframe__ptq5I", ue = "DocumentsTable-module_documentImage__KQVgS", c = {
6
+ const oe = "DocumentsTable-module_documentsTableBody__6iR3w", se = "DocumentsTable-module_viewAttachmentsLink__aQ1on", re = "DocumentsTable-module_documentViewerContainer__F5m8D", ce = "DocumentsTable-module_attachmentItem__17KA7", de = "DocumentsTable-module_attachmentCounter__WFiI3", me = "DocumentsTable-module_attachmentError__RI4U2", le = "DocumentsTable-module_documentIframe__ptq5I", ue = "DocumentsTable-module_documentImage__KQVgS", c = {
7
7
  documentsTableBody: oe,
8
8
  viewAttachmentsLink: se,
9
9
  documentViewerContainer: re,
10
10
  attachmentItem: ce,
11
11
  attachmentCounter: de,
12
- attachmentError: le,
13
- documentIframe: me,
12
+ attachmentError: me,
13
+ documentIframe: le,
14
14
  documentImage: ue
15
15
  }, ie = {
16
16
  documentIdentifier: "DOCUMENTS_DOCUMENT_IDENTIFIER",
@@ -19,7 +19,7 @@ const oe = "DocumentsTable-module_documentsTableBody__6iR3w", se = "DocumentsTab
19
19
  uploadedBy: "DOCUMENTS_UPLOADED_BY",
20
20
  attachments: "DOCUMENTS_ATTACHMENTS"
21
21
  };
22
- function B(n) {
22
+ function F(n) {
23
23
  return !n || n.includes(":") ? "#" : `/openmrs/auth?requested_document=/document_images/${n}`;
24
24
  }
25
25
  function he(n, f) {
@@ -34,16 +34,16 @@ const Te = [
34
34
  "attachments",
35
35
  "uploadedOn",
36
36
  "uploadedBy"
37
- ], _e = /\.(jpg|jpeg|png|gif|webp|bmp|svg)$/i, F = (n) => n.attachments.length > 0 ? n.attachments : n.documentUrl ? [{ url: n.documentUrl, contentType: n.contentType }] : [], Ie = ({ config: n, encounterUuids: f }) => {
38
- const [d, L] = m(!1), [s, U] = m(
37
+ ], _e = /\.(jpg|jpeg|png|gif|webp|bmp|svg)$/i, R = (n) => n.attachments.length > 0 ? n.attachments : n.documentUrl ? [{ url: n.documentUrl, contentType: n.contentType }] : [], Ie = ({ config: n, encounterUuids: f }) => {
38
+ const [d, L] = l(!1), [s, U] = l(
39
39
  null
40
- ), [P, A] = m(
40
+ ), [P, A] = l(
41
41
  /* @__PURE__ */ new Set()
42
- ), E = W(), { t: o } = ae(), { addNotification: w } = X(), V = Number(n?.pageSize) || 5, [N, C] = m(1), [u, $] = m(V), [k, O] = m(void 0), v = _((e) => {
42
+ ), E = W(), { t: o } = ae(), { addNotification: w } = X(), V = Number(n?.pageSize) || 5, [N, C] = l(1), [u, $] = l(V), [k, O] = l(void 0), v = _((e) => {
43
43
  U(e), L(!0);
44
44
  }, []), H = _(() => {
45
45
  L(!1), U(null), A(/* @__PURE__ */ new Set());
46
- }, []), R = _((e) => {
46
+ }, []), B = _((e) => {
47
47
  A((t) => new Set(t).add(e));
48
48
  }, []), { data: i, isLoading: q, isError: S, error: y } = ne({
49
49
  queryKey: [
@@ -75,16 +75,16 @@ const Te = [
75
75
  const e = new AbortController();
76
76
  return (async () => {
77
77
  if (!d || !s) return;
78
- const a = /* @__PURE__ */ new Set(), g = F(s);
79
- for (let l = 0; l < g.length; l++) {
80
- const b = B(g[l].url);
78
+ const a = /* @__PURE__ */ new Set(), g = R(s);
79
+ for (let m = 0; m < g.length; m++) {
80
+ const b = F(g[m].url);
81
81
  try {
82
82
  (await fetch(b, {
83
83
  method: "HEAD",
84
84
  signal: e.signal
85
- })).ok || a.add(l);
85
+ })).ok || a.add(m);
86
86
  } catch (M) {
87
- M instanceof Error && M.name !== "AbortError" && a.add(l);
87
+ M instanceof Error && M.name !== "AbortError" && a.add(m);
88
88
  }
89
89
  }
90
90
  e.signal.aborted || A(a);
@@ -105,7 +105,7 @@ const Te = [
105
105
  })),
106
106
  [D]
107
107
  ), h = p(
108
- () => s ? F(s) : [],
108
+ () => s ? R(s) : [],
109
109
  [s]
110
110
  ), Q = _(
111
111
  (e, t) => {
@@ -170,7 +170,7 @@ const Te = [
170
170
  size: "lg",
171
171
  testId: "document-view-modal",
172
172
  children: /* @__PURE__ */ r("div", { className: c.documentViewerContainer, children: h.map((e, t) => {
173
- const a = B(e.url), g = e.contentType?.toLowerCase().includes("pdf"), l = (e.contentType?.toLowerCase().includes("image") ?? !1) || _e.test(e.url ?? ""), b = P.has(t);
173
+ const a = F(e.url), g = e.contentType?.toLowerCase().includes("pdf"), m = (e.contentType?.toLowerCase().includes("image") ?? !1) || _e.test(e.url ?? ""), b = P.has(t);
174
174
  return a === "#" || b ? /* @__PURE__ */ T(
175
175
  "div",
176
176
  {
@@ -197,13 +197,13 @@ const Te = [
197
197
  "/",
198
198
  h.length
199
199
  ] }),
200
- l ? /* @__PURE__ */ r(
200
+ m ? /* @__PURE__ */ r(
201
201
  "img",
202
202
  {
203
203
  src: a,
204
204
  alt: s.documentIdentifier,
205
205
  className: c.documentImage,
206
- onError: () => R(t)
206
+ onError: () => B(t)
207
207
  }
208
208
  ) : /* @__PURE__ */ r(
209
209
  "iframe",
@@ -211,7 +211,7 @@ const Te = [
211
211
  src: g ? `${a}#toolbar=0` : a,
212
212
  className: c.documentIframe,
213
213
  title: s.documentIdentifier,
214
- onError: () => R(t)
214
+ onError: () => B(t)
215
215
  }
216
216
  )
217
217
  ]
@@ -0,0 +1,294 @@
1
+ import { jsx as i, jsxs as x, Fragment as be } from "react/jsx-runtime";
2
+ import { u as ye, b as Ne, c as pe, N as Oe, Y as Te, H as Ee, d as Fe, e as Ie, f as ve, g as Ae, i as _e, j as z, A as Re, l as G, $ as K, B as Be, q as Q, T as Me, R as De, F as Ce, O as Le, C as Se } from "./index-BAz36sQ7.js";
3
+ import { useQueryClient as He, useQuery as T } from "@tanstack/react-query";
4
+ import { useState as Y, useMemo as d, useCallback as l } from "react";
5
+ import { useTranslation as Ue } from "react-i18next";
6
+ const we = "FormsTable-module_formsTableBody__SvGha", ke = "FormsTable-module_modalHeading__wnTmA", qe = "FormsTable-module_customAccordianItem__isszs", E = {
7
+ formsTableBody: we,
8
+ modalHeading: ke,
9
+ customAccordianItem: qe
10
+ }, Pe = "startConsultation", Ge = ({
11
+ episodeOfCareUuids: B,
12
+ encounterUuids: m,
13
+ config: W,
14
+ disableActions: J = !1,
15
+ activeEncounterUuid: b = null
16
+ }) => {
17
+ const { t: n } = Ue(), u = ye(), [y, M] = Y(!1), [a, D] = Y(null), {
18
+ numberOfVisits: X,
19
+ hideThumbnail: Z = !1,
20
+ forms: N
21
+ } = W ?? {}, ee = Ne(
22
+ Se.EDIT_OBSERVATIONS
23
+ ), { userPrivileges: p } = pe(), F = ee && !J && !!b, C = Oe(
24
+ B,
25
+ m
26
+ ), re = He(), {
27
+ data: L = [],
28
+ isLoading: S,
29
+ isError: H,
30
+ error: te,
31
+ refetch: oe
32
+ } = T({
33
+ queryKey: ["forms", u, B],
34
+ queryFn: () => Te(u, void 0, X),
35
+ enabled: !!u && !C
36
+ }), U = d(() => {
37
+ let e = L;
38
+ return m && m.length > 0 && (e = e.filter(
39
+ (r) => m.includes(r.encounterUuid)
40
+ )), Array.isArray(N) && N.length > 0 && (e = e.filter(
41
+ (r) => N.some((o) => o.toLowerCase() === r.formName.toLowerCase())
42
+ )), e;
43
+ }, [L, m, N]), { data: O = [] } = T({
44
+ queryKey: ["observationForms"],
45
+ queryFn: () => Ee()
46
+ }), w = l(
47
+ (e) => {
48
+ const r = O.find((t) => t.name === e);
49
+ if (!r?.privileges || r.privileges.length === 0) return !0;
50
+ if (!p || p.length === 0) return !1;
51
+ const o = new Set(p.map((t) => t.name));
52
+ return r.privileges.some(
53
+ (t) => o.has(t.privilegeName) && t.editable
54
+ );
55
+ },
56
+ [O, p]
57
+ ), f = l(
58
+ (e) => !b || e.encounterUuid !== b ? !1 : w(e.formName),
59
+ [b, w]
60
+ ), k = l(
61
+ (e) => O.find((o) => o.name === e)?.uuid,
62
+ [O]
63
+ ), I = d(() => {
64
+ if (a)
65
+ return k(a.formName);
66
+ }, [a, k]), {
67
+ data: c,
68
+ isLoading: se,
69
+ isError: ae,
70
+ error: v
71
+ } = T({
72
+ queryKey: ["formMetadata", I],
73
+ queryFn: () => Fe(I),
74
+ enabled: !!I && y
75
+ }), {
76
+ data: A,
77
+ isLoading: ne,
78
+ isError: ie,
79
+ error: _
80
+ } = T({
81
+ queryKey: ["formsEncounterFHIR", a?.encounterUuid],
82
+ queryFn: () => Ie(a.encounterUuid),
83
+ enabled: !!a?.encounterUuid && y
84
+ });
85
+ ve(
86
+ (e) => {
87
+ e.patientUUID === u && e.updatedConcepts.size > 0 && (oe(), re.invalidateQueries({ queryKey: ["formsEncounterFHIR"] }));
88
+ },
89
+ [u]
90
+ );
91
+ const de = d(() => !A?.entry || !a?.formName ? [] : A.entry.filter((r) => r.resource?.resourceType === "Observation").map((r) => r.resource).filter((r) => Ae(r) ? _e(r)?.toLowerCase() === a.formName.toLowerCase() : !0), [A, a?.formName]), le = d(() => {
92
+ if (!c?.schema) return;
93
+ const e = [], r = (o) => {
94
+ (o ?? []).forEach((t) => {
95
+ const s = t;
96
+ s.id != null && e.push(String(s.id)), s.controls && r(s.controls);
97
+ });
98
+ };
99
+ return r(
100
+ c.schema.controls ?? []
101
+ ), e.length > 0 ? e : void 0;
102
+ }, [c]), ce = d(() => {
103
+ if (!c?.schema) return;
104
+ const e = {}, r = (o, t) => {
105
+ for (const s of o)
106
+ if (s.type === "section") {
107
+ const h = s.label?.value ?? "Section";
108
+ r(s.controls ?? [], h);
109
+ } else
110
+ s.id != null && t && (e[String(s.id)] = t), s.controls && r(s.controls, t);
111
+ };
112
+ return r(
113
+ c.schema.controls ?? [],
114
+ null
115
+ ), Object.keys(e).length > 0 ? e : void 0;
116
+ }, [c]), me = d(() => {
117
+ if (v)
118
+ return z(v).message;
119
+ if (_)
120
+ return z(_).message;
121
+ }, [v, _]), g = d(
122
+ () => [
123
+ { key: "recordedOn", header: n("RECORDED_ON") },
124
+ { key: "recordedBy", header: n("RECORDED_BY") }
125
+ ],
126
+ [n]
127
+ ), q = d(
128
+ () => [...g, { key: "actions", header: n("ACTIONS") }],
129
+ [g, n]
130
+ ), ue = l(
131
+ (e) => F && e.some((o) => f(o)) ? q : g,
132
+ [F, f, q, g]
133
+ ), fe = g, ge = d(
134
+ () => [
135
+ { key: "recordedOn", sortable: !0 },
136
+ { key: "recordedBy", sortable: !0 }
137
+ ],
138
+ []
139
+ ), P = d(() => {
140
+ const e = U.reduce(
141
+ (o, t) => {
142
+ const s = t.formName;
143
+ o[s] ??= [];
144
+ const h = t.providers.map((he) => he.providerName).filter(Boolean).join(", ");
145
+ return o[s].push({
146
+ id: t.encounterUuid,
147
+ formName: t.formName,
148
+ recordedOn: Re(t.encounterDateTime, n, !0).formattedResult,
149
+ recordedBy: h ?? "--",
150
+ encounterDateTime: t.encounterDateTime,
151
+ encounterUuid: t.encounterUuid
152
+ }), o;
153
+ },
154
+ {}
155
+ );
156
+ return Object.entries(e).map(
157
+ ([o, t]) => ({
158
+ formName: o,
159
+ records: t.sort(
160
+ (s, h) => h.encounterDateTime - s.encounterDateTime
161
+ )
162
+ })
163
+ ).sort((o, t) => o.formName.localeCompare(t.formName));
164
+ }, [U, n]), V = l((e) => {
165
+ D(e), M(!0);
166
+ }, []), $ = l(() => {
167
+ M(!1), D(null);
168
+ }, []), R = l((e) => {
169
+ globalThis.dispatchEvent(
170
+ new CustomEvent(Pe, {
171
+ detail: {
172
+ editOnly: "observationForms",
173
+ editTitle: "EDIT_OBSERVATION_FORM_TITLE",
174
+ editEncounterUuid: e.encounterUuid,
175
+ editFormName: e.formName,
176
+ directFormMode: !0
177
+ }
178
+ })
179
+ );
180
+ }, []), j = l(
181
+ (e, r) => {
182
+ switch (r) {
183
+ case "recordedOn":
184
+ return /* @__PURE__ */ i(Be, { onClick: () => V(e), children: e.recordedOn });
185
+ case "recordedBy":
186
+ return e.recordedBy;
187
+ case "actions":
188
+ return f(e) ? /* @__PURE__ */ i(
189
+ G,
190
+ {
191
+ label: n("EDIT_OBSERVATION_FORM"),
192
+ kind: "ghost",
193
+ size: "sm",
194
+ testId: `edit-form-${e.encounterUuid}`,
195
+ onClick: () => R(e),
196
+ children: /* @__PURE__ */ i(K, {})
197
+ }
198
+ ) : null;
199
+ default:
200
+ return null;
201
+ }
202
+ },
203
+ [V, R, f, n]
204
+ );
205
+ return /* @__PURE__ */ x(be, { children: [
206
+ /* @__PURE__ */ i("div", { id: "forms-table", "data-testid": "forms-table", children: S || H || P.length === 0 || C ? /* @__PURE__ */ i(
207
+ Q,
208
+ {
209
+ headers: fe,
210
+ ariaLabel: n("FORMS_HEADING"),
211
+ rows: [],
212
+ loading: S,
213
+ errorStateMessage: H ? te?.message : void 0,
214
+ emptyStateMessage: n("FORMS_UNAVAILABLE"),
215
+ renderCell: j,
216
+ className: E.formsTableBody,
217
+ dataTestId: "forms-table"
218
+ }
219
+ ) : /* @__PURE__ */ i(Me, { align: "start", children: P.map((e, r) => {
220
+ const { formName: o, records: t } = e, s = ue(t);
221
+ return /* @__PURE__ */ i(
222
+ De,
223
+ {
224
+ title: o,
225
+ className: E.customAccordianItem,
226
+ testId: `accordian-title-${o}`,
227
+ open: r === 0,
228
+ children: /* @__PURE__ */ i(
229
+ Q,
230
+ {
231
+ headers: s,
232
+ ariaLabel: n("FORMS_HEADING"),
233
+ rows: t,
234
+ loading: !1,
235
+ errorStateMessage: "",
236
+ sortable: ge,
237
+ emptyStateMessage: n("FORMS_UNAVAILABLE"),
238
+ renderCell: j,
239
+ className: E.formsTableBody,
240
+ dataTestId: `forms-table-${o}`
241
+ }
242
+ )
243
+ },
244
+ o
245
+ );
246
+ }) }) }),
247
+ y && a && /* @__PURE__ */ i(
248
+ Ce,
249
+ {
250
+ id: "modalIdForActionAreaLayout",
251
+ portalId: "main-display-area",
252
+ open: y,
253
+ onRequestClose: $,
254
+ modalHeading: /* @__PURE__ */ x("div", { className: E.modalHeading, children: [
255
+ /* @__PURE__ */ i("span", { children: a.formName }),
256
+ F && f(a) && /* @__PURE__ */ i(
257
+ G,
258
+ {
259
+ label: n("EDIT_OBSERVATION_FORM"),
260
+ kind: "ghost",
261
+ size: "sm",
262
+ testId: `edit-form-modal-${a.encounterUuid}`,
263
+ onClick: () => {
264
+ $(), R(a);
265
+ },
266
+ children: /* @__PURE__ */ i(K, {})
267
+ }
268
+ )
269
+ ] }),
270
+ modalLabel: `${a.recordedOn} | ${a.recordedBy}`,
271
+ passiveModal: !0,
272
+ size: "md",
273
+ testId: "form-details-modal",
274
+ children: /* @__PURE__ */ i(
275
+ Le,
276
+ {
277
+ observations: de,
278
+ isLoading: se || ne,
279
+ isError: ae || ie,
280
+ errorMessage: me,
281
+ emptyStateMessage: n("NO_FORM_DATA_AVAILABLE"),
282
+ testIdPrefix: a.formName,
283
+ hideThumbnail: Z,
284
+ controlOrder: le,
285
+ sectionMap: ce
286
+ }
287
+ )
288
+ }
289
+ )
290
+ ] });
291
+ };
292
+ export {
293
+ Ge as default
294
+ };
@@ -1,13 +1,13 @@
1
1
  import { jsx as d, jsxs as N } from "react/jsx-runtime";
2
- import { f as K, Q as D, t as V, g as q, W as k, h as w, n as H, i as G, u as P, a as j, k as z, m as W, r as J, o as Y, p as X, s as Z, v as x, q as ee } from "./index-D-OVBhy0.js";
2
+ import { k as w, Q as D, t as K, m as V, W as q, n as k, o as H, p as G, u as P, a as j, r as z, w as W, f as J, s as Y, v as X, x as Z, y as x, q as ee } from "./index-BAz36sQ7.js";
3
3
  import { useQueries as te, useQuery as se } from "@tanstack/react-query";
4
4
  import { useRef as oe, useEffect as C, useMemo as g } from "react";
5
5
  import { useTranslation as U } from "react-i18next";
6
6
  const B = (t, i, c, l, u, r) => {
7
- const s = V(t, i, u), o = s.value, a = q(o);
7
+ const s = K(t, i, u), o = s.value, a = V(o);
8
8
  let n = o;
9
9
  a === "Image" && (n = /* @__PURE__ */ d(
10
- w,
10
+ k,
11
11
  {
12
12
  imageSrc: o,
13
13
  alt: o,
@@ -26,7 +26,7 @@ const B = (t, i, c, l, u, r) => {
26
26
  provider: s.provider
27
27
  }), m = t.display, p = t.observationValue?.isAbnormal ? "abnormal-obs" : "obs", y = l ? `${l}-${p}-${m}-${c}-${i}` : `${p}-${m}-${c}-${i}`;
28
28
  return /* @__PURE__ */ d(
29
- k,
29
+ q,
30
30
  {
31
31
  header: s.header,
32
32
  value: n,
@@ -61,7 +61,7 @@ const B = (t, i, c, l, u, r) => {
61
61
  hideThumbnail: c
62
62
  }) => {
63
63
  const { t: l } = U(), u = (r, s, o) => {
64
- const a = K(r.encounterDetails, l);
64
+ const a = w(r.encounterDetails, l);
65
65
  return /* @__PURE__ */ N(
66
66
  D,
67
67
  {
@@ -1 +1 @@
1
- {"version":3,"file":"FormsTable.d.ts","sourceRoot":"","sources":["../../src/forms/FormsTable.tsx"],"names":[],"mappings":"AAwBA,OAAO,KAAyC,MAAM,OAAO,CAAC;AAG9D,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAWhD;;;GAGG;AACH,QAAA,MAAM,UAAU,EAAE,KAAK,CAAC,EAAE,CAAC,WAAW,CA+VrC,CAAC;AAEF,eAAe,UAAU,CAAC"}
1
+ {"version":3,"file":"FormsTable.d.ts","sourceRoot":"","sources":["../../src/forms/FormsTable.tsx"],"names":[],"mappings":"AA0BA,OAAO,KAAyC,MAAM,OAAO,CAAC;AAI9D,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAehD;;;GAGG;AACH,QAAA,MAAM,UAAU,EAAE,KAAK,CAAC,EAAE,CAAC,WAAW,CAycrC,CAAC;AAEF,eAAe,UAAU,CAAC"}