@bahmni/widgets 0.0.1-dev.155 → 0.0.1-dev.156
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.
- package/dist/{FormsTable-Co0vmiID.js → FormsTable-tx52xn2R.js} +53 -53
- package/dist/{Observations-mh6G3pVz.js → Observations-DzpnagCL.js} +23 -23
- package/dist/genericServiceRequest/GenericServiceRequestTable.d.ts.map +1 -1
- package/dist/{index-veQFQARd.js → index-C_q5GRt5.js} +5023 -5002
- package/dist/index.js +11 -11
- package/package.json +1 -1
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import { jsxs as b, jsx as d, Fragment as k } from "react/jsx-runtime";
|
|
2
|
-
import { c as
|
|
3
|
-
import { useQueryClient as
|
|
4
|
-
import { useState as P, useMemo as
|
|
2
|
+
import { c as F, C as te, N as re, $ as ae, e as oe, a as se, u as ne, i as de, m as ie, p as le, h as ce, o as me, O as ue, y as pe, b as be, t as x, H as fe, d as _e, f as $e, g as ye, j as H, l as ge } from "./index-C_q5GRt5.js";
|
|
3
|
+
import { useQueryClient as he, useQuery as L } from "@tanstack/react-query";
|
|
4
|
+
import { useState as P, useMemo as h, useCallback as C } from "react";
|
|
5
5
|
import { useTranslation as ve } from "react-i18next";
|
|
6
|
-
const Ne = "_formsTableBody_1pd36_1", Oe = "_customAccordianItem_1pd36_6", Le = "_formContent_1pd36_18",
|
|
6
|
+
const Ne = "_formsTableBody_1pd36_1", Oe = "_customAccordianItem_1pd36_6", Le = "_formContent_1pd36_18", Ce = "_formDetailsContainer_1pd36_25", Fe = "_observation_1pd36_30", Me = "_groupContainer_1pd36_39", Re = "_rowContainer_1pd36_43", we = "_groupLabel_1pd36_48", De = "_rowLabel_1pd36_58", Te = "_rowValue_1pd36_67", Ve = "_groupMembers_1pd36_75", Ae = "_memberRow_1pd36_81", Ee = "_memberLabel_1pd36_86", Be = "_memberValue_1pd36_94", Ie = "_abnormalValue_1pd36_102", Se = "_commentSection_1pd36_110", Ge = "_commentText_1pd36_116", qe = "_nestedGroup_1pd36_125", Ue = "_nestedGroupLabel_1pd36_132", xe = "_nestedGroupMembers_1pd36_141", o = {
|
|
7
7
|
formsTableBody: Ne,
|
|
8
8
|
customAccordianItem: Oe,
|
|
9
9
|
formContent: Le,
|
|
10
|
-
formDetailsContainer:
|
|
11
|
-
observation:
|
|
12
|
-
groupContainer:
|
|
13
|
-
rowContainer:
|
|
14
|
-
groupLabel:
|
|
15
|
-
rowLabel:
|
|
10
|
+
formDetailsContainer: Ce,
|
|
11
|
+
observation: Fe,
|
|
12
|
+
groupContainer: Me,
|
|
13
|
+
rowContainer: Re,
|
|
14
|
+
groupLabel: we,
|
|
15
|
+
rowLabel: De,
|
|
16
16
|
rowValue: Te,
|
|
17
17
|
groupMembers: Ve,
|
|
18
18
|
memberRow: Ae,
|
|
@@ -24,7 +24,7 @@ const Ne = "_formsTableBody_1pd36_1", Oe = "_customAccordianItem_1pd36_6", Le =
|
|
|
24
24
|
nestedGroup: qe,
|
|
25
25
|
nestedGroupLabel: Ue,
|
|
26
26
|
nestedGroupMembers: xe
|
|
27
|
-
},
|
|
27
|
+
}, j = (e) => {
|
|
28
28
|
const t = te(e);
|
|
29
29
|
return t === "Image" ? /* @__PURE__ */ d(
|
|
30
30
|
re,
|
|
@@ -34,7 +34,7 @@ const Ne = "_formsTableBody_1pd36_1", Oe = "_customAccordianItem_1pd36_6", Le =
|
|
|
34
34
|
id: `${e}-img`
|
|
35
35
|
}
|
|
36
36
|
) : t === "Video" ? /* @__PURE__ */ d(ae, { id: `${e}-video`, videoSrc: e }) : e;
|
|
37
|
-
},
|
|
37
|
+
}, K = (e) => {
|
|
38
38
|
const t = e.observationValue?.unit, a = e.observationValue?.referenceRange?.low?.value, n = e.observationValue?.referenceRange?.high?.value, s = a != null, c = n != null, i = s && c ? ` (${a} - ${n})` : s ? ` (>${a})` : c ? ` (<${n})` : "", r = e.observationValue?.isAbnormal === !0;
|
|
39
39
|
return { units: t, rangeString: i, isAbnormal: r };
|
|
40
40
|
}, Q = ({
|
|
@@ -81,7 +81,7 @@ const Ne = "_formsTableBody_1pd36_1", Oe = "_customAccordianItem_1pd36_6", Le =
|
|
|
81
81
|
]
|
|
82
82
|
}
|
|
83
83
|
);
|
|
84
|
-
const { units: p, rangeString:
|
|
84
|
+
const { units: p, rangeString: g, isAbnormal: f } = K(e), _ = e.observationValue?.value?.toString(), $ = _ ? j(_) : null;
|
|
85
85
|
return /* @__PURE__ */ b(k, { children: [
|
|
86
86
|
/* @__PURE__ */ b(
|
|
87
87
|
"div",
|
|
@@ -93,21 +93,21 @@ const Ne = "_formsTableBody_1pd36_1", Oe = "_customAccordianItem_1pd36_6", Le =
|
|
|
93
93
|
/* @__PURE__ */ b(
|
|
94
94
|
"p",
|
|
95
95
|
{
|
|
96
|
-
className:
|
|
96
|
+
className: F(
|
|
97
97
|
o.memberLabel,
|
|
98
98
|
f ? o.abnormalValue : ""
|
|
99
99
|
),
|
|
100
100
|
"data-testid": `${r}obs-member-label-${i}-${a}`,
|
|
101
101
|
children: [
|
|
102
102
|
i,
|
|
103
|
-
|
|
103
|
+
g
|
|
104
104
|
]
|
|
105
105
|
}
|
|
106
106
|
),
|
|
107
107
|
/* @__PURE__ */ b(
|
|
108
108
|
"div",
|
|
109
109
|
{
|
|
110
|
-
className:
|
|
110
|
+
className: F(
|
|
111
111
|
o.memberValue,
|
|
112
112
|
f ? o.abnormalValue : ""
|
|
113
113
|
),
|
|
@@ -140,7 +140,7 @@ const Ne = "_formsTableBody_1pd36_1", Oe = "_customAccordianItem_1pd36_6", Le =
|
|
|
140
140
|
formName: a = "",
|
|
141
141
|
comment: n
|
|
142
142
|
}) => {
|
|
143
|
-
const s = e.members && e.members.length > 0, { units: c, rangeString: i, isAbnormal: r } =
|
|
143
|
+
const s = e.members && e.members.length > 0, { units: c, rangeString: i, isAbnormal: r } = K(e), p = a ? `${a}-` : "", g = e.observationValue?.value?.toString(), f = g ? j(g) : null;
|
|
144
144
|
return /* @__PURE__ */ b(
|
|
145
145
|
"div",
|
|
146
146
|
{
|
|
@@ -156,7 +156,7 @@ const Ne = "_formsTableBody_1pd36_1", Oe = "_customAccordianItem_1pd36_6", Le =
|
|
|
156
156
|
/* @__PURE__ */ b(
|
|
157
157
|
"p",
|
|
158
158
|
{
|
|
159
|
-
className:
|
|
159
|
+
className: F(
|
|
160
160
|
s ? o.groupLabel : o.rowLabel,
|
|
161
161
|
!s && r ? o.abnormalValue : ""
|
|
162
162
|
),
|
|
@@ -186,7 +186,7 @@ const Ne = "_formsTableBody_1pd36_1", Oe = "_customAccordianItem_1pd36_6", Le =
|
|
|
186
186
|
) : /* @__PURE__ */ b(
|
|
187
187
|
"div",
|
|
188
188
|
{
|
|
189
|
-
className:
|
|
189
|
+
className: F(
|
|
190
190
|
o.rowValue,
|
|
191
191
|
r ? o.abnormalValue : ""
|
|
192
192
|
),
|
|
@@ -220,28 +220,28 @@ const Ne = "_formsTableBody_1pd36_1", Oe = "_customAccordianItem_1pd36_6", Le =
|
|
|
220
220
|
)?.valueString : void 0, ke = (e) => {
|
|
221
221
|
if (e)
|
|
222
222
|
return e.note?.[0]?.text;
|
|
223
|
-
},
|
|
224
|
-
const a =
|
|
223
|
+
}, je = (e, t) => e.entry?.find((a) => a.resource?.id === t)?.resource, D = (e, t) => {
|
|
224
|
+
const a = je(e, t);
|
|
225
225
|
return a ? {
|
|
226
226
|
formFieldPath: Pe(a),
|
|
227
227
|
comment: ke(a)
|
|
228
228
|
} : {};
|
|
229
|
-
},
|
|
229
|
+
}, Ke = (e, t) => {
|
|
230
230
|
if (!e?.entry || !t)
|
|
231
231
|
return [];
|
|
232
232
|
const a = oe(e);
|
|
233
233
|
return [
|
|
234
234
|
...a.observations.map((s) => {
|
|
235
|
-
const { formFieldPath: c, comment: i } =
|
|
235
|
+
const { formFieldPath: c, comment: i } = D(
|
|
236
236
|
e,
|
|
237
237
|
s.id
|
|
238
238
|
);
|
|
239
239
|
return { obs: s, formFieldPath: c, comment: i };
|
|
240
240
|
}),
|
|
241
241
|
...a.groupedObservations.flatMap((s) => {
|
|
242
|
-
const { formFieldPath: c } =
|
|
242
|
+
const { formFieldPath: c } = D(e, s.id);
|
|
243
243
|
return (s.members ?? []).map((i) => {
|
|
244
|
-
const { comment: r } =
|
|
244
|
+
const { comment: r } = D(e, i.id);
|
|
245
245
|
return { obs: i, formFieldPath: c, comment: r };
|
|
246
246
|
});
|
|
247
247
|
})
|
|
@@ -253,10 +253,10 @@ const Ne = "_formsTableBody_1pd36_1", Oe = "_customAccordianItem_1pd36_6", Le =
|
|
|
253
253
|
encounterUuids: t,
|
|
254
254
|
config: a
|
|
255
255
|
}) => {
|
|
256
|
-
const { t: n } = ve(), s = ne(), [c, i] = P(!1), [r, p] = P(null),
|
|
256
|
+
const { t: n } = ve(), s = ne(), [c, i] = P(!1), [r, p] = P(null), g = a?.numberOfVisits, f = de(
|
|
257
257
|
e,
|
|
258
258
|
t
|
|
259
|
-
), _ =
|
|
259
|
+
), _ = he(), {
|
|
260
260
|
data: $ = [],
|
|
261
261
|
isLoading: v,
|
|
262
262
|
isError: N,
|
|
@@ -264,25 +264,25 @@ const Ne = "_formsTableBody_1pd36_1", Oe = "_customAccordianItem_1pd36_6", Le =
|
|
|
264
264
|
refetch: W
|
|
265
265
|
} = L({
|
|
266
266
|
queryKey: ["forms", s, e],
|
|
267
|
-
queryFn: () => ie(s, void 0,
|
|
267
|
+
queryFn: () => ie(s, void 0, g),
|
|
268
268
|
enabled: !!s && !f
|
|
269
|
-
}), T =
|
|
269
|
+
}), T = h(() => !t || t.length === 0 ? $ : $.filter(
|
|
270
270
|
(l) => t.includes(l.encounterUuid)
|
|
271
271
|
), [$, t]), { data: V = [] } = L({
|
|
272
272
|
queryKey: ["observationForms"],
|
|
273
273
|
queryFn: () => le()
|
|
274
|
-
}), A =
|
|
274
|
+
}), A = C(
|
|
275
275
|
(l) => V.find((m) => m.name === l)?.uuid,
|
|
276
276
|
[V]
|
|
277
|
-
),
|
|
277
|
+
), M = h(() => {
|
|
278
278
|
if (r)
|
|
279
279
|
return A(r.formName);
|
|
280
280
|
}, [r, A]), { isLoading: Y, error: E } = L({
|
|
281
|
-
queryKey: ["formMetadata",
|
|
282
|
-
queryFn: () => ce(
|
|
283
|
-
enabled: !!
|
|
281
|
+
queryKey: ["formMetadata", M],
|
|
282
|
+
queryFn: () => ce(M),
|
|
283
|
+
enabled: !!M && c
|
|
284
284
|
}), {
|
|
285
|
-
data:
|
|
285
|
+
data: R,
|
|
286
286
|
isLoading: J,
|
|
287
287
|
error: B
|
|
288
288
|
} = L({
|
|
@@ -296,32 +296,32 @@ const Ne = "_formsTableBody_1pd36_1", Oe = "_customAccordianItem_1pd36_6", Le =
|
|
|
296
296
|
},
|
|
297
297
|
[s]
|
|
298
298
|
);
|
|
299
|
-
const I =
|
|
300
|
-
|
|
299
|
+
const I = h(() => !R || !r?.formName ? [] : Ke(
|
|
300
|
+
R,
|
|
301
301
|
r.formName
|
|
302
|
-
), [
|
|
302
|
+
), [R, r?.formName]), S = h(
|
|
303
303
|
() => [
|
|
304
304
|
{ key: "recordedOn", header: n("FORM_RECORDED_ON") },
|
|
305
305
|
{ key: "recordedBy", header: n("FORM_RECORDED_BY") }
|
|
306
306
|
],
|
|
307
307
|
[n]
|
|
308
|
-
), X =
|
|
308
|
+
), X = h(
|
|
309
309
|
() => [
|
|
310
310
|
{ key: "recordedOn", sortable: !0 },
|
|
311
311
|
{ key: "recordedBy", sortable: !0 }
|
|
312
312
|
],
|
|
313
313
|
[]
|
|
314
|
-
), G =
|
|
314
|
+
), G = h(() => {
|
|
315
315
|
const l = T.reduce(
|
|
316
316
|
(m, u) => {
|
|
317
317
|
const O = u.formName;
|
|
318
318
|
m[O] ??= [];
|
|
319
|
-
const
|
|
319
|
+
const w = u.providers.map((ee) => ee.providerName).filter(Boolean).join(", ");
|
|
320
320
|
return m[O].push({
|
|
321
321
|
id: u.encounterUuid,
|
|
322
322
|
formName: u.formName,
|
|
323
|
-
recordedOn: pe(u.encounterDateTime, n,
|
|
324
|
-
recordedBy:
|
|
323
|
+
recordedOn: pe(u.encounterDateTime, n, ge).formattedResult,
|
|
324
|
+
recordedBy: w ?? "--",
|
|
325
325
|
encounterDateTime: u.encounterDateTime,
|
|
326
326
|
encounterUuid: u.encounterUuid
|
|
327
327
|
}), m;
|
|
@@ -332,17 +332,17 @@ const Ne = "_formsTableBody_1pd36_1", Oe = "_customAccordianItem_1pd36_6", Le =
|
|
|
332
332
|
([m, u]) => ({
|
|
333
333
|
formName: m,
|
|
334
334
|
records: u.sort(
|
|
335
|
-
(O,
|
|
335
|
+
(O, w) => w.encounterDateTime - O.encounterDateTime
|
|
336
336
|
)
|
|
337
337
|
})
|
|
338
338
|
).sort((m, u) => m.formName.localeCompare(u.formName));
|
|
339
|
-
}, [T, n]), q =
|
|
339
|
+
}, [T, n]), q = C((l) => {
|
|
340
340
|
p(l), i(!0);
|
|
341
|
-
}, []), Z =
|
|
341
|
+
}, []), Z = C(() => {
|
|
342
342
|
i(!1), p(null);
|
|
343
|
-
}, []), U =
|
|
344
|
-
(l,
|
|
345
|
-
switch (
|
|
343
|
+
}, []), U = C(
|
|
344
|
+
(l, y) => {
|
|
345
|
+
switch (y) {
|
|
346
346
|
case "recordedOn":
|
|
347
347
|
return /* @__PURE__ */ d(be, { onClick: () => q(l), children: l.recordedOn });
|
|
348
348
|
case "recordedBy":
|
|
@@ -367,7 +367,7 @@ const Ne = "_formsTableBody_1pd36_1", Oe = "_customAccordianItem_1pd36_6", Le =
|
|
|
367
367
|
className: o.formsTableBody,
|
|
368
368
|
dataTestId: "forms-table"
|
|
369
369
|
}
|
|
370
|
-
) : /* @__PURE__ */ d(fe, { align: "start", children: G.map((l,
|
|
370
|
+
) : /* @__PURE__ */ d(fe, { align: "start", children: G.map((l, y) => {
|
|
371
371
|
const { formName: m, records: u } = l;
|
|
372
372
|
return /* @__PURE__ */ d(
|
|
373
373
|
_e,
|
|
@@ -375,7 +375,7 @@ const Ne = "_formsTableBody_1pd36_1", Oe = "_customAccordianItem_1pd36_6", Le =
|
|
|
375
375
|
title: m,
|
|
376
376
|
className: o.customAccordianItem,
|
|
377
377
|
testId: `accordian-title-${m}`,
|
|
378
|
-
open:
|
|
378
|
+
open: y === 0,
|
|
379
379
|
children: /* @__PURE__ */ d(
|
|
380
380
|
x,
|
|
381
381
|
{
|
|
@@ -406,13 +406,13 @@ const Ne = "_formsTableBody_1pd36_1", Oe = "_customAccordianItem_1pd36_6", Le =
|
|
|
406
406
|
passiveModal: !0,
|
|
407
407
|
size: "md",
|
|
408
408
|
testId: "form-details-modal",
|
|
409
|
-
children: /* @__PURE__ */ d("div", { className: o.formContent, children: Y || J ? /* @__PURE__ */ d(
|
|
409
|
+
children: /* @__PURE__ */ d("div", { className: o.formContent, children: Y || J ? /* @__PURE__ */ d(ye, { width: "100%", lineCount: 3 }) : E ? /* @__PURE__ */ d("div", { children: H(E).message ?? n("ERROR_FETCHING_FORM_METADATA") }) : B ? /* @__PURE__ */ d("div", { children: H(B).message ?? n("ERROR_FETCHING_FORM_DATA") }) : I.length > 0 ? /* @__PURE__ */ d("div", { className: o.formDetailsContainer, children: I.map(({ obs: l, comment: y }, m) => /* @__PURE__ */ d(
|
|
410
410
|
He,
|
|
411
411
|
{
|
|
412
412
|
observation: l,
|
|
413
413
|
index: m,
|
|
414
414
|
formName: r.formName,
|
|
415
|
-
comment:
|
|
415
|
+
comment: y
|
|
416
416
|
},
|
|
417
417
|
`${l.id}`
|
|
418
418
|
)) }) : /* @__PURE__ */ d("div", { children: n("NO_FORM_DATA_AVAILABLE") }) })
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { jsx as d, jsxs as
|
|
2
|
-
import {
|
|
1
|
+
import { jsx as d, jsxs as C } from "react/jsx-runtime";
|
|
2
|
+
import { k, _ as S, n as q, C as M, q as V, N as K, $ as Q, u as G, r as H, s as P, v as j, O as z, e as Y, w as J, x as W, B as X, t as Z } from "./index-C_q5GRt5.js";
|
|
3
3
|
import { useQueries as x, useQuery as ee } from "@tanstack/react-query";
|
|
4
4
|
import { useRef as te, useEffect as I, useMemo as h } from "react";
|
|
5
|
-
import { useTranslation as
|
|
5
|
+
import { useTranslation as D } from "react-i18next";
|
|
6
6
|
const U = (t, c, n, l, o) => {
|
|
7
7
|
const s = q(t, c), r = s.value, a = M(r);
|
|
8
8
|
let i = r;
|
|
9
9
|
a === "Image" && (i = /* @__PURE__ */ d(K, { imageSrc: r, alt: r, id: `${r}-img` })), a === "Video" && (i = /* @__PURE__ */ d(Q, { id: `${r}-video`, videoSrc: r }));
|
|
10
10
|
const u = o("OBSERVATIONS_RECORDED_BY", {
|
|
11
11
|
provider: s.provider
|
|
12
|
-
}), b = t.display,
|
|
12
|
+
}), b = t.display, m = t.observationValue?.isAbnormal ? "abnormal-obs" : "obs", f = l ? `${l}-${m}-${b}-${n}-${c}` : `${m}-${b}-${n}-${c}`;
|
|
13
13
|
return /* @__PURE__ */ d(
|
|
14
14
|
V,
|
|
15
15
|
{
|
|
@@ -37,9 +37,9 @@ const U = (t, c, n, l, o) => {
|
|
|
37
37
|
groupedData: t,
|
|
38
38
|
title: c = ""
|
|
39
39
|
}) => {
|
|
40
|
-
const { t: n } =
|
|
40
|
+
const { t: n } = D(), l = (o, s, r) => {
|
|
41
41
|
const a = k(o.encounterDetails, n);
|
|
42
|
-
return /* @__PURE__ */
|
|
42
|
+
return /* @__PURE__ */ C(
|
|
43
43
|
S,
|
|
44
44
|
{
|
|
45
45
|
title: a,
|
|
@@ -78,34 +78,34 @@ const U = (t, c, n, l, o) => {
|
|
|
78
78
|
}, re = "_observations_kfbhq_1", ae = "_title_kfbhq_12", N = {
|
|
79
79
|
observations: re,
|
|
80
80
|
title: ae
|
|
81
|
-
}, ne = (t) => ["conceptUuid", t], ie = (t, c) => ["observations", t, ...c],
|
|
82
|
-
const c = t, { conceptNames: n = [], conceptUuid: l = [] } = c, o = te(/* @__PURE__ */ new Set()), s = G(), { addNotification: r } =
|
|
81
|
+
}, ne = (t) => ["conceptUuid", t], ie = (t, c) => ["observations", t, ...c], me = ({ config: t }) => {
|
|
82
|
+
const c = t, { conceptNames: n = [], conceptUuid: l = [] } = c, o = te(/* @__PURE__ */ new Set()), s = G(), { addNotification: r } = H(), { t: a } = D(), i = x({
|
|
83
83
|
queries: n.map((e) => ({
|
|
84
84
|
queryKey: ne(e),
|
|
85
|
-
queryFn: () =>
|
|
85
|
+
queryFn: () => P(e),
|
|
86
86
|
enabled: !!e
|
|
87
87
|
}))
|
|
88
88
|
});
|
|
89
89
|
I(() => {
|
|
90
|
-
i.forEach((e,
|
|
91
|
-
if (e.isError && !o.current.has(
|
|
92
|
-
const g = n[
|
|
90
|
+
i.forEach((e, p) => {
|
|
91
|
+
if (e.isError && !o.current.has(p)) {
|
|
92
|
+
const g = n[p];
|
|
93
93
|
r({
|
|
94
94
|
title: a("ERROR_DEFAULT_TITLE"),
|
|
95
95
|
message: a("ERROR_FETCHING_CONCEPT", { conceptName: g }),
|
|
96
96
|
type: "error"
|
|
97
|
-
}), o.current.add(
|
|
98
|
-
} else e.isError || o.current.delete(
|
|
97
|
+
}), o.current.add(p);
|
|
98
|
+
} else e.isError || o.current.delete(p);
|
|
99
99
|
});
|
|
100
100
|
}, [i, n]);
|
|
101
101
|
const u = h(() => i.map((e) => e.data?.uuid).filter((e) => !!e), [i]), b = h(() => [.../* @__PURE__ */ new Set([...u, ...l])], [u, l]), v = h(() => n.length === 0 ? !0 : i.every((e) => !e.isLoading), [i, n.length]), {
|
|
102
|
-
data:
|
|
102
|
+
data: m,
|
|
103
103
|
isLoading: f,
|
|
104
104
|
isError: O,
|
|
105
105
|
refetch: R
|
|
106
106
|
} = ee({
|
|
107
107
|
queryKey: ie(s, b),
|
|
108
|
-
queryFn: () =>
|
|
108
|
+
queryFn: () => j(s, b),
|
|
109
109
|
enabled: !!s && b.length > 0 && v
|
|
110
110
|
});
|
|
111
111
|
z(
|
|
@@ -123,15 +123,15 @@ const U = (t, c, n, l, o) => {
|
|
|
123
123
|
});
|
|
124
124
|
}, [O]);
|
|
125
125
|
const T = h(() => {
|
|
126
|
-
if (!
|
|
127
|
-
const e = Y(
|
|
128
|
-
return W(
|
|
129
|
-
}, [
|
|
126
|
+
if (!m) return [];
|
|
127
|
+
const e = Y(m), p = J(e);
|
|
128
|
+
return W(p);
|
|
129
|
+
}, [m]), B = [
|
|
130
130
|
{ key: "name", header: "name" },
|
|
131
131
|
{ key: "value", header: "value" },
|
|
132
132
|
{ key: "form", header: "form" }
|
|
133
|
-
], _ = f || !v, $ = O && v, A = (!
|
|
134
|
-
return /* @__PURE__ */
|
|
133
|
+
], _ = f || !v, $ = O && v, A = (!m || m.entry?.length === 0 || b.length === 0) && v, F = $ ? a("ERROR_FETCHING_OBSERVATIONS") : null, L = A ? a("NO_OBSERVATIONS_FOUND") : void 0, w = T.length > 0 && !_ && !$, E = c.titleTranslationKey, y = E ? a(E) : "";
|
|
134
|
+
return /* @__PURE__ */ C(
|
|
135
135
|
"div",
|
|
136
136
|
{
|
|
137
137
|
id: "observations",
|
|
@@ -167,6 +167,6 @@ const U = (t, c, n, l, o) => {
|
|
|
167
167
|
};
|
|
168
168
|
export {
|
|
169
169
|
ne as conceptUuidQueryKeys,
|
|
170
|
-
|
|
170
|
+
me as default,
|
|
171
171
|
ie as observationsQueryKeys
|
|
172
172
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GenericServiceRequestTable.d.ts","sourceRoot":"","sources":["../../src/genericServiceRequest/GenericServiceRequestTable.tsx"],"names":[],"mappings":"AAoBA,OAAO,KAA0C,MAAM,OAAO,CAAC;AAI/D,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;
|
|
1
|
+
{"version":3,"file":"GenericServiceRequestTable.d.ts","sourceRoot":"","sources":["../../src/genericServiceRequest/GenericServiceRequestTable.tsx"],"names":[],"mappings":"AAoBA,OAAO,KAA0C,MAAM,OAAO,CAAC;AAI/D,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAahD,eAAO,MAAM,8BAA8B,GACzC,cAAc,MAAM,EACpB,aAAa,MAAM,EACnB,iBAAiB,MAAM,EAAE,6EAEoD,CAAC;AAehF;;;GAGG;AACH,QAAA,MAAM,0BAA0B,EAAE,KAAK,CAAC,EAAE,CAAC,WAAW,CAkOrD,CAAC;AAEF,eAAe,0BAA0B,CAAC"}
|