@bahmni/widgets 0.0.1-dev.165 → 0.0.1-dev.167
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-BrMo9kKI.js → FormsTable-CFv9vxue.js} +44 -44
- package/dist/{Observations-CMgpWfKH.js → Observations-WBixHtoT.js} +25 -25
- package/dist/{index-DmXkCYhd.js → index-CefCE_cy.js} +33 -36
- package/dist/index.js +8 -8
- package/dist/searchPatient/SearchPatient.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import { jsxs as b, jsx as d, Fragment as k } from "react/jsx-runtime";
|
|
2
|
-
import { c as C,
|
|
3
|
-
import { useQueryClient as he, useQuery as
|
|
4
|
-
import { useState as P, useMemo as h, useCallback as
|
|
2
|
+
import { c as C, L as te, N as re, $ as ae, e as oe, T as se, u as ne, a as de, y as ie, m as le, g as ce, b as me, d as ue, v as pe, f as be, t as x, H as fe, C as _e, h as $e, o as ge, i as H, l as ye } from "./index-CefCE_cy.js";
|
|
3
|
+
import { useQueryClient as he, useQuery as O } from "@tanstack/react-query";
|
|
4
|
+
import { useState as P, useMemo as h, useCallback as F } from "react";
|
|
5
5
|
import { useTranslation as ve } from "react-i18next";
|
|
6
|
-
const Ne = "_formsTableBody_1pd36_1",
|
|
6
|
+
const Ne = "_formsTableBody_1pd36_1", Le = "_customAccordianItem_1pd36_6", Oe = "_formContent_1pd36_18", Fe = "_formDetailsContainer_1pd36_25", Ce = "_observation_1pd36_30", Me = "_groupContainer_1pd36_39", Re = "_rowContainer_1pd36_43", we = "_groupLabel_1pd36_48", Te = "_rowLabel_1pd36_58", De = "_rowValue_1pd36_67", Ve = "_groupMembers_1pd36_75", Ae = "_memberRow_1pd36_81", Ee = "_memberLabel_1pd36_86", Ie = "_memberValue_1pd36_94", Be = "_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
|
-
customAccordianItem:
|
|
9
|
-
formContent:
|
|
10
|
-
formDetailsContainer:
|
|
8
|
+
customAccordianItem: Le,
|
|
9
|
+
formContent: Oe,
|
|
10
|
+
formDetailsContainer: Fe,
|
|
11
11
|
observation: Ce,
|
|
12
12
|
groupContainer: Me,
|
|
13
13
|
rowContainer: Re,
|
|
14
14
|
groupLabel: we,
|
|
15
|
-
rowLabel:
|
|
16
|
-
rowValue:
|
|
15
|
+
rowLabel: Te,
|
|
16
|
+
rowValue: De,
|
|
17
17
|
groupMembers: Ve,
|
|
18
18
|
memberRow: Ae,
|
|
19
19
|
memberLabel: Ee,
|
|
@@ -24,7 +24,7 @@ const Ne = "_formsTableBody_1pd36_1", Oe = "_customAccordianItem_1pd36_6", Fe =
|
|
|
24
24
|
nestedGroup: qe,
|
|
25
25
|
nestedGroupLabel: Ue,
|
|
26
26
|
nestedGroupMembers: xe
|
|
27
|
-
},
|
|
27
|
+
}, K = (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", Fe =
|
|
|
34
34
|
id: `${e}-img`
|
|
35
35
|
}
|
|
36
36
|
) : t === "Video" ? /* @__PURE__ */ d(ae, { id: `${e}-video`, videoSrc: e }) : e;
|
|
37
|
-
},
|
|
37
|
+
}, j = (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", Fe =
|
|
|
81
81
|
]
|
|
82
82
|
}
|
|
83
83
|
);
|
|
84
|
-
const { units: p, rangeString:
|
|
84
|
+
const { units: p, rangeString: y, isAbnormal: f } = j(e), _ = e.observationValue?.value?.toString(), $ = _ ? K(_) : null;
|
|
85
85
|
return /* @__PURE__ */ b(k, { children: [
|
|
86
86
|
/* @__PURE__ */ b(
|
|
87
87
|
"div",
|
|
@@ -100,7 +100,7 @@ const Ne = "_formsTableBody_1pd36_1", Oe = "_customAccordianItem_1pd36_6", Fe =
|
|
|
100
100
|
"data-testid": `${r}obs-member-label-${i}-${a}`,
|
|
101
101
|
children: [
|
|
102
102
|
i,
|
|
103
|
-
|
|
103
|
+
y
|
|
104
104
|
]
|
|
105
105
|
}
|
|
106
106
|
),
|
|
@@ -140,7 +140,7 @@ const Ne = "_formsTableBody_1pd36_1", Oe = "_customAccordianItem_1pd36_6", Fe =
|
|
|
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 } = j(e), p = a ? `${a}-` : "", y = e.observationValue?.value?.toString(), f = y ? K(y) : null;
|
|
144
144
|
return /* @__PURE__ */ b(
|
|
145
145
|
"div",
|
|
146
146
|
{
|
|
@@ -220,28 +220,28 @@ const Ne = "_formsTableBody_1pd36_1", Oe = "_customAccordianItem_1pd36_6", Fe =
|
|
|
220
220
|
)?.valueString : void 0, ke = (e) => {
|
|
221
221
|
if (e)
|
|
222
222
|
return e.note?.[0]?.text;
|
|
223
|
-
},
|
|
224
|
-
const a =
|
|
223
|
+
}, Ke = (e, t) => e.entry?.find((a) => a.resource?.id === t)?.resource, T = (e, t) => {
|
|
224
|
+
const a = Ke(e, t);
|
|
225
225
|
return a ? {
|
|
226
226
|
formFieldPath: Pe(a),
|
|
227
227
|
comment: ke(a)
|
|
228
228
|
} : {};
|
|
229
|
-
},
|
|
229
|
+
}, je = (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 } = T(
|
|
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 } = T(e, s.id);
|
|
243
243
|
return (s.members ?? []).map((i) => {
|
|
244
|
-
const { comment: r } =
|
|
244
|
+
const { comment: r } = T(e, i.id);
|
|
245
245
|
return { obs: i, formFieldPath: c, comment: r };
|
|
246
246
|
});
|
|
247
247
|
})
|
|
@@ -253,7 +253,7 @@ const Ne = "_formsTableBody_1pd36_1", Oe = "_customAccordianItem_1pd36_6", Fe =
|
|
|
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), y = a?.numberOfVisits, f = de(
|
|
257
257
|
e,
|
|
258
258
|
t
|
|
259
259
|
), _ = he(), {
|
|
@@ -262,22 +262,22 @@ const Ne = "_formsTableBody_1pd36_1", Oe = "_customAccordianItem_1pd36_6", Fe =
|
|
|
262
262
|
isError: N,
|
|
263
263
|
error: z,
|
|
264
264
|
refetch: W
|
|
265
|
-
} =
|
|
265
|
+
} = O({
|
|
266
266
|
queryKey: ["forms", s, e],
|
|
267
|
-
queryFn: () => ie(s, void 0,
|
|
267
|
+
queryFn: () => ie(s, void 0, y),
|
|
268
268
|
enabled: !!s && !f
|
|
269
|
-
}),
|
|
269
|
+
}), D = h(() => !t || t.length === 0 ? $ : $.filter(
|
|
270
270
|
(l) => t.includes(l.encounterUuid)
|
|
271
|
-
), [$, t]), { data: V = [] } =
|
|
271
|
+
), [$, t]), { data: V = [] } = O({
|
|
272
272
|
queryKey: ["observationForms"],
|
|
273
273
|
queryFn: () => le()
|
|
274
|
-
}), A =
|
|
274
|
+
}), A = F(
|
|
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
|
-
}, [r, A]), { isLoading: Y, error: E } =
|
|
280
|
+
}, [r, A]), { isLoading: Y, error: E } = O({
|
|
281
281
|
queryKey: ["formMetadata", M],
|
|
282
282
|
queryFn: () => ce(M),
|
|
283
283
|
enabled: !!M && c
|
|
@@ -285,7 +285,7 @@ const Ne = "_formsTableBody_1pd36_1", Oe = "_customAccordianItem_1pd36_6", Fe =
|
|
|
285
285
|
data: R,
|
|
286
286
|
isLoading: J,
|
|
287
287
|
error: I
|
|
288
|
-
} =
|
|
288
|
+
} = O({
|
|
289
289
|
queryKey: ["formsEncounterFHIR", r?.encounterUuid],
|
|
290
290
|
queryFn: () => me(r.encounterUuid),
|
|
291
291
|
enabled: !!r?.encounterUuid && c
|
|
@@ -296,7 +296,7 @@ const Ne = "_formsTableBody_1pd36_1", Oe = "_customAccordianItem_1pd36_6", Fe =
|
|
|
296
296
|
},
|
|
297
297
|
[s]
|
|
298
298
|
);
|
|
299
|
-
const B = h(() => !R || !r?.formName ? [] :
|
|
299
|
+
const B = h(() => !R || !r?.formName ? [] : je(
|
|
300
300
|
R,
|
|
301
301
|
r.formName
|
|
302
302
|
), [R, r?.formName]), S = h(
|
|
@@ -312,15 +312,15 @@ const Ne = "_formsTableBody_1pd36_1", Oe = "_customAccordianItem_1pd36_6", Fe =
|
|
|
312
312
|
],
|
|
313
313
|
[]
|
|
314
314
|
), G = h(() => {
|
|
315
|
-
const l =
|
|
315
|
+
const l = D.reduce(
|
|
316
316
|
(m, u) => {
|
|
317
|
-
const
|
|
318
|
-
m[
|
|
317
|
+
const L = u.formName;
|
|
318
|
+
m[L] ??= [];
|
|
319
319
|
const w = u.providers.map((ee) => ee.providerName).filter(Boolean).join(", ");
|
|
320
|
-
return m[
|
|
320
|
+
return m[L].push({
|
|
321
321
|
id: u.encounterUuid,
|
|
322
322
|
formName: u.formName,
|
|
323
|
-
recordedOn: pe(u.encounterDateTime, n,
|
|
323
|
+
recordedOn: pe(u.encounterDateTime, n, ye).formattedResult,
|
|
324
324
|
recordedBy: w ?? "--",
|
|
325
325
|
encounterDateTime: u.encounterDateTime,
|
|
326
326
|
encounterUuid: u.encounterUuid
|
|
@@ -332,17 +332,17 @@ const Ne = "_formsTableBody_1pd36_1", Oe = "_customAccordianItem_1pd36_6", Fe =
|
|
|
332
332
|
([m, u]) => ({
|
|
333
333
|
formName: m,
|
|
334
334
|
records: u.sort(
|
|
335
|
-
(
|
|
335
|
+
(L, w) => w.encounterDateTime - L.encounterDateTime
|
|
336
336
|
)
|
|
337
337
|
})
|
|
338
338
|
).sort((m, u) => m.formName.localeCompare(u.formName));
|
|
339
|
-
}, [
|
|
339
|
+
}, [D, n]), q = F((l) => {
|
|
340
340
|
p(l), i(!0);
|
|
341
|
-
}, []), Z =
|
|
341
|
+
}, []), Z = F(() => {
|
|
342
342
|
i(!1), p(null);
|
|
343
|
-
}, []), U =
|
|
344
|
-
(l,
|
|
345
|
-
switch (
|
|
343
|
+
}, []), U = F(
|
|
344
|
+
(l, g) => {
|
|
345
|
+
switch (g) {
|
|
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", Fe =
|
|
|
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, g) => {
|
|
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", Fe =
|
|
|
375
375
|
title: m,
|
|
376
376
|
className: o.customAccordianItem,
|
|
377
377
|
testId: `accordian-title-${m}`,
|
|
378
|
-
open:
|
|
378
|
+
open: g === 0,
|
|
379
379
|
children: /* @__PURE__ */ d(
|
|
380
380
|
x,
|
|
381
381
|
{
|
|
@@ -406,13 +406,13 @@ const Ne = "_formsTableBody_1pd36_1", Oe = "_customAccordianItem_1pd36_6", Fe =
|
|
|
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(ge, { width: "100%", lineCount: 3 }) : E ? /* @__PURE__ */ d("div", { children: H(E).message ?? n("ERROR_FETCHING_FORM_METADATA") }) : I ? /* @__PURE__ */ d("div", { children: H(I).message ?? n("ERROR_FETCHING_FORM_DATA") }) : B.length > 0 ? /* @__PURE__ */ d("div", { className: o.formDetailsContainer, children: B.map(({ obs: l, comment: g }, 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: g
|
|
416
416
|
},
|
|
417
417
|
`${l.id}`
|
|
418
418
|
)) }) : /* @__PURE__ */ d("div", { children: n("NO_FORM_DATA_AVAILABLE") }) })
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { jsx as d, jsxs as
|
|
2
|
-
import { k, _ as
|
|
1
|
+
import { jsx as d, jsxs as S } from "react/jsx-runtime";
|
|
2
|
+
import { j as k, _ as C, k as q, L as M, n as V, N as K, $ as Q, u as G, p as j, q as H, r as P, d as z, e as Y, s as J, w as W, B as X, t as Z } from "./index-CefCE_cy.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
5
|
import { useTranslation as D } from "react-i18next";
|
|
@@ -9,7 +9,7 @@ const U = (t, c, n, l, o) => {
|
|
|
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, p = t.observationValue?.isAbnormal ? "abnormal-obs" : "obs", f = l ? `${l}-${p}-${b}-${n}-${c}` : `${p}-${b}-${n}-${c}`;
|
|
13
13
|
return /* @__PURE__ */ d(
|
|
14
14
|
V,
|
|
15
15
|
{
|
|
@@ -23,7 +23,7 @@ const U = (t, c, n, l, o) => {
|
|
|
23
23
|
`obs-${t.id}`
|
|
24
24
|
);
|
|
25
25
|
}, se = (t, c, n, l, o, s) => /* @__PURE__ */ d(
|
|
26
|
-
|
|
26
|
+
C,
|
|
27
27
|
{
|
|
28
28
|
title: t.display,
|
|
29
29
|
id: `grouped-obs-${t.display}-${l}`,
|
|
@@ -39,8 +39,8 @@ const U = (t, c, n, l, o) => {
|
|
|
39
39
|
}) => {
|
|
40
40
|
const { t: n } = D(), l = (o, s, r) => {
|
|
41
41
|
const a = k(o.encounterDetails, n);
|
|
42
|
-
return /* @__PURE__ */
|
|
43
|
-
|
|
42
|
+
return /* @__PURE__ */ S(
|
|
43
|
+
C,
|
|
44
44
|
{
|
|
45
45
|
title: a,
|
|
46
46
|
id: `encounter-${o.encounterId}`,
|
|
@@ -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], pe = ({ config: t }) => {
|
|
82
|
+
const c = t, { conceptNames: n = [], conceptUuid: l = [] } = c, o = te(/* @__PURE__ */ new Set()), s = G(), { addNotification: r } = j(), { t: a } = D(), i = x({
|
|
83
83
|
queries: n.map((e) => ({
|
|
84
84
|
queryKey: ne(e),
|
|
85
|
-
queryFn: () =>
|
|
85
|
+
queryFn: () => H(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, m) => {
|
|
91
|
+
if (e.isError && !o.current.has(m)) {
|
|
92
|
+
const g = n[m];
|
|
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(m);
|
|
98
|
+
} else e.isError || o.current.delete(m);
|
|
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: p,
|
|
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: () => P(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 (!p) return [];
|
|
127
|
+
const e = Y(p), m = J(e);
|
|
128
|
+
return W(m);
|
|
129
|
+
}, [p]), B = [
|
|
130
130
|
{ key: "name", header: "name" },
|
|
131
131
|
{ key: "value", header: "value" },
|
|
132
132
|
{ key: "form", header: "form" }
|
|
133
|
-
], _ = f || !v, $ = O && v,
|
|
134
|
-
return /* @__PURE__ */
|
|
133
|
+
], _ = f || !v, $ = O && v, L = (!p || p.entry?.length === 0 || b.length === 0) && v, A = $ ? a("ERROR_FETCHING_OBSERVATIONS") : null, F = L ? a("NO_OBSERVATIONS_FOUND") : void 0, w = T.length > 0 && !_ && !$, E = c.titleTranslationKey, y = E ? a(E) : "";
|
|
134
|
+
return /* @__PURE__ */ S(
|
|
135
135
|
"div",
|
|
136
136
|
{
|
|
137
137
|
id: "observations",
|
|
@@ -156,8 +156,8 @@ const U = (t, c, n, l, o) => {
|
|
|
156
156
|
rows: [],
|
|
157
157
|
ariaLabel: a("OBSERVATIONS"),
|
|
158
158
|
loading: _,
|
|
159
|
-
errorStateMessage:
|
|
160
|
-
emptyStateMessage:
|
|
159
|
+
errorStateMessage: A,
|
|
160
|
+
emptyStateMessage: F,
|
|
161
161
|
dataTestId: "observations-table"
|
|
162
162
|
}
|
|
163
163
|
)
|
|
@@ -167,6 +167,6 @@ const U = (t, c, n, l, o) => {
|
|
|
167
167
|
};
|
|
168
168
|
export {
|
|
169
169
|
ne as conceptUuidQueryKeys,
|
|
170
|
-
|
|
170
|
+
pe as default,
|
|
171
171
|
ie as observationsQueryKeys
|
|
172
172
|
};
|
|
@@ -77521,11 +77521,8 @@ const fet = "_searchPatientContainer_4r1cg_1", met = "_searchPatient_4r1cg_1", g
|
|
|
77521
77521
|
message: _ instanceof Error ? _.message : String(_),
|
|
77522
77522
|
type: "error"
|
|
77523
77523
|
}), w([]), m("");
|
|
77524
|
-
else if (M?.patientSearch
|
|
77525
|
-
const k =
|
|
77526
|
-
...M.patientSearch.customAttributes || [],
|
|
77527
|
-
...M.patientSearch.appointment || []
|
|
77528
|
-
];
|
|
77524
|
+
else if (M?.patientSearch) {
|
|
77525
|
+
const k = Object.values(M.patientSearch).filter(Array.isArray).flat();
|
|
77529
77526
|
x(k);
|
|
77530
77527
|
const Y = k.map(
|
|
77531
77528
|
(z) => v(z.translationKey)
|
|
@@ -78645,7 +78642,7 @@ const irt = () => {
|
|
|
78645
78642
|
},
|
|
78646
78643
|
{
|
|
78647
78644
|
type: "forms",
|
|
78648
|
-
component: nn(() => import("./FormsTable-
|
|
78645
|
+
component: nn(() => import("./FormsTable-CFv9vxue.js"))
|
|
78649
78646
|
},
|
|
78650
78647
|
{
|
|
78651
78648
|
type: "labOrders",
|
|
@@ -78653,7 +78650,7 @@ const irt = () => {
|
|
|
78653
78650
|
},
|
|
78654
78651
|
{
|
|
78655
78652
|
type: "observations",
|
|
78656
|
-
component: nn(() => import("./Observations-
|
|
78653
|
+
component: nn(() => import("./Observations-WBixHtoT.js"))
|
|
78657
78654
|
},
|
|
78658
78655
|
{
|
|
78659
78656
|
type: "ordersControl",
|
|
@@ -78728,24 +78725,24 @@ export {
|
|
|
78728
78725
|
ztt as $,
|
|
78729
78726
|
kYe as A,
|
|
78730
78727
|
Au as B,
|
|
78731
|
-
|
|
78732
|
-
|
|
78733
|
-
|
|
78734
|
-
|
|
78728
|
+
G2 as C,
|
|
78729
|
+
pXe as D,
|
|
78730
|
+
fQe as E,
|
|
78731
|
+
set as F,
|
|
78735
78732
|
qet as G,
|
|
78736
78733
|
Y2 as H,
|
|
78737
78734
|
ett as I,
|
|
78738
78735
|
art as J,
|
|
78739
78736
|
xYe as K,
|
|
78740
|
-
|
|
78737
|
+
Ftt as L,
|
|
78741
78738
|
kXe as M,
|
|
78742
78739
|
Ntt as N,
|
|
78743
|
-
|
|
78740
|
+
Qtt as O,
|
|
78744
78741
|
Xtt as P,
|
|
78745
|
-
|
|
78742
|
+
rtt as Q,
|
|
78746
78743
|
_Qe as R,
|
|
78747
78744
|
ort as S,
|
|
78748
|
-
|
|
78745
|
+
Utt as T,
|
|
78749
78746
|
ftt as U,
|
|
78750
78747
|
Det as V,
|
|
78751
78748
|
mtt as W,
|
|
@@ -78753,36 +78750,36 @@ export {
|
|
|
78753
78750
|
aue as Y,
|
|
78754
78751
|
srt as Z,
|
|
78755
78752
|
xtt as _,
|
|
78756
|
-
|
|
78753
|
+
ws as a,
|
|
78757
78754
|
lrt as a0,
|
|
78758
78755
|
crt as a1,
|
|
78759
78756
|
drt as a2,
|
|
78760
78757
|
urt as a3,
|
|
78761
78758
|
hrt as a4,
|
|
78762
78759
|
prt as a5,
|
|
78763
|
-
|
|
78760
|
+
Ktt as b,
|
|
78764
78761
|
C0 as c,
|
|
78765
|
-
|
|
78762
|
+
e1 as d,
|
|
78766
78763
|
GXe as e,
|
|
78767
|
-
|
|
78768
|
-
|
|
78769
|
-
|
|
78770
|
-
|
|
78771
|
-
|
|
78772
|
-
|
|
78764
|
+
Cc as f,
|
|
78765
|
+
Gtt as g,
|
|
78766
|
+
Gn as h,
|
|
78767
|
+
Vr as i,
|
|
78768
|
+
ert as j,
|
|
78769
|
+
trt as k,
|
|
78773
78770
|
gde as l,
|
|
78774
|
-
|
|
78775
|
-
|
|
78776
|
-
|
|
78777
|
-
|
|
78778
|
-
|
|
78779
|
-
|
|
78780
|
-
|
|
78771
|
+
Ytt as m,
|
|
78772
|
+
Dke as n,
|
|
78773
|
+
Mtt as o,
|
|
78774
|
+
pn as p,
|
|
78775
|
+
qtt as q,
|
|
78776
|
+
Wtt as r,
|
|
78777
|
+
rrt as s,
|
|
78781
78778
|
zr as t,
|
|
78782
78779
|
hn as u,
|
|
78783
|
-
|
|
78784
|
-
|
|
78785
|
-
|
|
78786
|
-
|
|
78787
|
-
|
|
78780
|
+
ir as v,
|
|
78781
|
+
nrt as w,
|
|
78782
|
+
_Je as x,
|
|
78783
|
+
Jtt as y,
|
|
78784
|
+
iXe as z
|
|
78788
78785
|
};
|
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Y as t, W as s, A as o,
|
|
1
|
+
import { Y as t, W as s, A as o, x as r, z as n, D as g, G as l, F as P, M as c, K as d, O as v, P as b, I as T, J as p, E as A, R as W, S as f, U as m, V as u, a4 as R, a3 as C, a0 as D, a1 as I, a2 as S, Z as U, a5 as y, X as h, p as x, u as N, Q as F } from "./index-CefCE_cy.js";
|
|
2
2
|
import "react";
|
|
3
3
|
export {
|
|
4
4
|
t as ActivePractitionerContext,
|
|
@@ -12,11 +12,11 @@ export {
|
|
|
12
12
|
c as MedicationsTable,
|
|
13
13
|
d as NotificationProvider,
|
|
14
14
|
v as NotificationServiceComponent,
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
15
|
+
b as PatientDetails,
|
|
16
|
+
T as PatientProgramsTable,
|
|
17
|
+
p as ProgramDetails,
|
|
18
|
+
A as RadiologyInvestigationReport,
|
|
19
|
+
W as RadiologyInvestigationTable,
|
|
20
20
|
f as SearchPatient,
|
|
21
21
|
m as UserPrivilegeProvider,
|
|
22
22
|
u as VitalFlowSheet,
|
|
@@ -28,7 +28,7 @@ export {
|
|
|
28
28
|
U as registerWidget,
|
|
29
29
|
y as resetWidgetRegistry,
|
|
30
30
|
h as useActivePractitioner,
|
|
31
|
-
|
|
32
|
-
|
|
31
|
+
x as useNotification,
|
|
32
|
+
N as usePatientUUID,
|
|
33
33
|
F as useUserPrivilege
|
|
34
34
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SearchPatient.d.ts","sourceRoot":"","sources":["../../src/searchPatient/SearchPatient.tsx"],"names":[],"mappings":"AACA,OAAO,EACL,yBAAyB,EAI1B,MAAM,kBAAkB,CAAC;AAQ1B,UAAU,kBAAkB;IAC1B,WAAW,EAAE,MAAM,CAAC;IACpB,oBAAoB,EAAE,MAAM,CAAC;IAC7B,QAAQ,EAAE,CACR,IAAI,EAAE,yBAAyB,GAAG,SAAS,EAC3C,UAAU,EAAE,MAAM,EAClB,SAAS,EAAE,OAAO,EAClB,OAAO,EAAE,OAAO,EAChB,gBAAgB,EAAE,OAAO,EACzB,iBAAiB,CAAC,EAAE,MAAM,KACvB,IAAI,CAAC;CACX;AAED,QAAA,MAAM,aAAa,EAAE,KAAK,CAAC,EAAE,CAAC,kBAAkB,
|
|
1
|
+
{"version":3,"file":"SearchPatient.d.ts","sourceRoot":"","sources":["../../src/searchPatient/SearchPatient.tsx"],"names":[],"mappings":"AACA,OAAO,EACL,yBAAyB,EAI1B,MAAM,kBAAkB,CAAC;AAQ1B,UAAU,kBAAkB;IAC1B,WAAW,EAAE,MAAM,CAAC;IACpB,oBAAoB,EAAE,MAAM,CAAC;IAC7B,QAAQ,EAAE,CACR,IAAI,EAAE,yBAAyB,GAAG,SAAS,EAC3C,UAAU,EAAE,MAAM,EAClB,SAAS,EAAE,OAAO,EAClB,OAAO,EAAE,OAAO,EAChB,gBAAgB,EAAE,OAAO,EACzB,iBAAiB,CAAC,EAAE,MAAM,KACvB,IAAI,CAAC;CACX;AAED,QAAA,MAAM,aAAa,EAAE,KAAK,CAAC,EAAE,CAAC,kBAAkB,CAyV/C,CAAC;AAEF,eAAe,aAAa,CAAC"}
|