@bahmni/registration-app 0.0.1-dev.165 → 0.0.1-dev.168
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-1Ss9-TNz-DQKg2hjf.js → FormsTable-C7QfrmD1-C8xKxTFG.js} +44 -44
- package/dist/{LNWAZHJI-7oGcaFa6.js → LNWAZHJI-lDbx5Q3a.js} +2 -2
- package/dist/{MWZ6AO7Z-mxdABSTR.js → MWZ6AO7Z-Dwh5b8AK.js} +2 -2
- package/dist/{Observations-C0JPS6cs-CncSbW-B.js → Observations-BAaMZ7G3-DK11Ak19.js} +15 -15
- package/dist/{YPM2AS64-CHj2iqWG.js → YPM2AS64-ZfjFK021.js} +1 -1
- package/dist/components/common/personAttributeHelpers.d.ts.map +1 -1
- package/dist/{index-CWXjIVdJ.js → index-pMxrukjk.js} +8 -16
- package/dist/index.js +1 -1
- package/package.json +1 -1
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import { jsx as s, jsxs as p, Fragment as H } from "react/jsx-runtime";
|
|
2
|
-
import { u as ee, h as re, w as ae, J as te, Y as oe, G as ne, K as se, e as de, i as me, C as ie, z as U, a as le, b as ce, c as ue, M as be, V as q, d as pe, g as _e, f as
|
|
2
|
+
import { u as ee, h as re, w as ae, J as te, Y as oe, G as ne, K as se, e as de, i as me, C as ie, z as U, a as le, b as ce, c as ue, M as be, V as q, d as pe, g as _e, f as R, F as fe, N as $e, j as ve, U as ge } from "./index-pMxrukjk.js";
|
|
3
3
|
import { useQueryClient as he, useQuery as C } from "@tanstack/react-query";
|
|
4
|
-
import { useState as K, useMemo as h, useCallback as
|
|
5
|
-
const Ne = "_formsTableBody_1pd36_1", ye = "_customAccordianItem_1pd36_6", Ce = "_formContent_1pd36_18",
|
|
4
|
+
import { useState as K, useMemo as h, useCallback as L } from "react";
|
|
5
|
+
const Ne = "_formsTableBody_1pd36_1", ye = "_customAccordianItem_1pd36_6", Ce = "_formContent_1pd36_18", Le = "_formDetailsContainer_1pd36_25", Re = "_observation_1pd36_30", Ae = "_groupContainer_1pd36_39", Fe = "_rowContainer_1pd36_43", Me = "_groupLabel_1pd36_48", Ve = "_rowLabel_1pd36_58", Oe = "_rowValue_1pd36_67", Ie = "_groupMembers_1pd36_75", Te = "_memberRow_1pd36_81", Se = "_memberLabel_1pd36_86", we = "_memberValue_1pd36_94", De = "_abnormalValue_1pd36_102", Ge = "_commentSection_1pd36_110", Ee = "_commentText_1pd36_116", xe = "_nestedGroup_1pd36_125", Be = "_nestedGroupLabel_1pd36_132", Ue = "_nestedGroupMembers_1pd36_141", o = {
|
|
6
6
|
formsTableBody: Ne,
|
|
7
7
|
customAccordianItem: ye,
|
|
8
8
|
formContent: Ce,
|
|
9
|
-
formDetailsContainer:
|
|
10
|
-
observation:
|
|
11
|
-
groupContainer:
|
|
12
|
-
rowContainer:
|
|
9
|
+
formDetailsContainer: Le,
|
|
10
|
+
observation: Re,
|
|
11
|
+
groupContainer: Ae,
|
|
12
|
+
rowContainer: Fe,
|
|
13
13
|
groupLabel: Me,
|
|
14
|
-
rowLabel:
|
|
15
|
-
rowValue:
|
|
14
|
+
rowLabel: Ve,
|
|
15
|
+
rowValue: Oe,
|
|
16
16
|
groupMembers: Ie,
|
|
17
17
|
memberRow: Te,
|
|
18
18
|
memberLabel: Se,
|
|
@@ -32,7 +32,7 @@ const Ne = "_formsTableBody_1pd36_1", ye = "_customAccordianItem_1pd36_6", Ce =
|
|
|
32
32
|
alt: e,
|
|
33
33
|
id: `${e}-img`
|
|
34
34
|
}
|
|
35
|
-
) : r === "Video" ? /* @__PURE__ */ s(
|
|
35
|
+
) : r === "Video" ? /* @__PURE__ */ s(ve, { id: `${e}-video`, videoSrc: e }) : e;
|
|
36
36
|
}, k = (e) => {
|
|
37
37
|
const r = e.observationValue?.unit, n = e.observationValue?.referenceRange?.low?.value, a = e.observationValue?.referenceRange?.high?.value, d = n != null, c = a != null, m = d && c ? ` (${n} - ${a})` : d ? ` (>${n})` : c ? ` (<${a})` : "", t = e.observationValue?.isAbnormal === !0;
|
|
38
38
|
return { units: r, rangeString: m, isAbnormal: t };
|
|
@@ -80,7 +80,7 @@ const Ne = "_formsTableBody_1pd36_1", ye = "_customAccordianItem_1pd36_6", Ce =
|
|
|
80
80
|
]
|
|
81
81
|
}
|
|
82
82
|
);
|
|
83
|
-
const { units: b, rangeString:
|
|
83
|
+
const { units: b, rangeString: v, isAbnormal: _ } = k(e), f = e.observationValue?.value?.toString(), $ = f ? j(f) : null;
|
|
84
84
|
return /* @__PURE__ */ p(H, { children: [
|
|
85
85
|
/* @__PURE__ */ p(
|
|
86
86
|
"div",
|
|
@@ -92,21 +92,21 @@ const Ne = "_formsTableBody_1pd36_1", ye = "_customAccordianItem_1pd36_6", Ce =
|
|
|
92
92
|
/* @__PURE__ */ p(
|
|
93
93
|
"p",
|
|
94
94
|
{
|
|
95
|
-
className:
|
|
95
|
+
className: R(
|
|
96
96
|
o.memberLabel,
|
|
97
97
|
_ ? o.abnormalValue : ""
|
|
98
98
|
),
|
|
99
99
|
"data-testid": `${t}obs-member-label-${m}-${n}`,
|
|
100
100
|
children: [
|
|
101
101
|
m,
|
|
102
|
-
|
|
102
|
+
v
|
|
103
103
|
]
|
|
104
104
|
}
|
|
105
105
|
),
|
|
106
106
|
/* @__PURE__ */ p(
|
|
107
107
|
"div",
|
|
108
108
|
{
|
|
109
|
-
className:
|
|
109
|
+
className: R(
|
|
110
110
|
o.memberValue,
|
|
111
111
|
_ ? o.abnormalValue : ""
|
|
112
112
|
),
|
|
@@ -139,7 +139,7 @@ const Ne = "_formsTableBody_1pd36_1", ye = "_customAccordianItem_1pd36_6", Ce =
|
|
|
139
139
|
formName: n = "",
|
|
140
140
|
comment: a
|
|
141
141
|
}) => {
|
|
142
|
-
const d = e.members && e.members.length > 0, { units: c, rangeString: m, isAbnormal: t } = k(e), b = n ? `${n}-` : "",
|
|
142
|
+
const d = e.members && e.members.length > 0, { units: c, rangeString: m, isAbnormal: t } = k(e), b = n ? `${n}-` : "", v = e.observationValue?.value?.toString(), _ = v ? j(v) : null;
|
|
143
143
|
return /* @__PURE__ */ p(
|
|
144
144
|
"div",
|
|
145
145
|
{
|
|
@@ -155,7 +155,7 @@ const Ne = "_formsTableBody_1pd36_1", ye = "_customAccordianItem_1pd36_6", Ce =
|
|
|
155
155
|
/* @__PURE__ */ p(
|
|
156
156
|
"p",
|
|
157
157
|
{
|
|
158
|
-
className:
|
|
158
|
+
className: R(
|
|
159
159
|
d ? o.groupLabel : o.rowLabel,
|
|
160
160
|
!d && t ? o.abnormalValue : ""
|
|
161
161
|
),
|
|
@@ -185,7 +185,7 @@ const Ne = "_formsTableBody_1pd36_1", ye = "_customAccordianItem_1pd36_6", Ce =
|
|
|
185
185
|
) : /* @__PURE__ */ p(
|
|
186
186
|
"div",
|
|
187
187
|
{
|
|
188
|
-
className:
|
|
188
|
+
className: R(
|
|
189
189
|
o.rowValue,
|
|
190
190
|
t ? o.abnormalValue : ""
|
|
191
191
|
),
|
|
@@ -215,11 +215,11 @@ const Ne = "_formsTableBody_1pd36_1", ye = "_customAccordianItem_1pd36_6", Ce =
|
|
|
215
215
|
`${e.id}-${r}`
|
|
216
216
|
);
|
|
217
217
|
}, Ke = (e) => e ? e.extension?.find(
|
|
218
|
-
(r) => r.url ===
|
|
218
|
+
(r) => r.url === ge
|
|
219
219
|
)?.valueString : void 0, He = (e) => {
|
|
220
220
|
if (e)
|
|
221
221
|
return e.note?.[0]?.text;
|
|
222
|
-
}, je = (e, r) => e.entry?.find((n) => n.resource?.id === r)?.resource,
|
|
222
|
+
}, je = (e, r) => e.entry?.find((n) => n.resource?.id === r)?.resource, V = (e, r) => {
|
|
223
223
|
const n = je(e, r);
|
|
224
224
|
return n ? {
|
|
225
225
|
formFieldPath: Ke(n),
|
|
@@ -231,16 +231,16 @@ const Ne = "_formsTableBody_1pd36_1", ye = "_customAccordianItem_1pd36_6", Ce =
|
|
|
231
231
|
const n = pe(e);
|
|
232
232
|
return [
|
|
233
233
|
...n.observations.map((a) => {
|
|
234
|
-
const { formFieldPath: d, comment: c } =
|
|
234
|
+
const { formFieldPath: d, comment: c } = V(
|
|
235
235
|
e,
|
|
236
236
|
a.id
|
|
237
237
|
);
|
|
238
238
|
return { obs: a, formFieldPath: d, comment: c };
|
|
239
239
|
}),
|
|
240
240
|
...n.groupedObservations.flatMap((a) => {
|
|
241
|
-
const { formFieldPath: d } =
|
|
241
|
+
const { formFieldPath: d } = V(e, a.id);
|
|
242
242
|
return (a.members ?? []).map((c) => {
|
|
243
|
-
const { comment: m } =
|
|
243
|
+
const { comment: m } = V(e, c.id);
|
|
244
244
|
return { obs: c, formFieldPath: d, comment: m };
|
|
245
245
|
});
|
|
246
246
|
})
|
|
@@ -252,7 +252,7 @@ const Ne = "_formsTableBody_1pd36_1", ye = "_customAccordianItem_1pd36_6", Ce =
|
|
|
252
252
|
encounterUuids: r,
|
|
253
253
|
config: n
|
|
254
254
|
}) => {
|
|
255
|
-
const { t: a } = ee(), d = re(), [c, m] = K(!1), [t, b] = K(null),
|
|
255
|
+
const { t: a } = ee(), d = re(), [c, m] = K(!1), [t, b] = K(null), v = n?.numberOfVisits, _ = ae(
|
|
256
256
|
e,
|
|
257
257
|
r
|
|
258
258
|
), f = he(), {
|
|
@@ -263,25 +263,25 @@ const Ne = "_formsTableBody_1pd36_1", ye = "_customAccordianItem_1pd36_6", Ce =
|
|
|
263
263
|
refetch: Y
|
|
264
264
|
} = C({
|
|
265
265
|
queryKey: ["forms", d, e],
|
|
266
|
-
queryFn: () => te(d, void 0,
|
|
266
|
+
queryFn: () => te(d, void 0, v),
|
|
267
267
|
enabled: !!d && !_
|
|
268
|
-
}),
|
|
268
|
+
}), O = h(() => !r || r.length === 0 ? $ : $.filter(
|
|
269
269
|
(i) => r.includes(i.encounterUuid)
|
|
270
270
|
), [$, r]), { data: I = [] } = C({
|
|
271
271
|
queryKey: ["observationForms"],
|
|
272
272
|
queryFn: () => oe()
|
|
273
|
-
}), T =
|
|
273
|
+
}), T = L(
|
|
274
274
|
(i) => I.find((u) => u.name === i)?.uuid,
|
|
275
275
|
[I]
|
|
276
|
-
),
|
|
276
|
+
), A = h(() => {
|
|
277
277
|
if (t)
|
|
278
278
|
return T(t.formName);
|
|
279
279
|
}, [t, T]), { isLoading: Q, error: S } = C({
|
|
280
|
-
queryKey: ["formMetadata",
|
|
281
|
-
queryFn: () => ne(
|
|
282
|
-
enabled: !!
|
|
280
|
+
queryKey: ["formMetadata", A],
|
|
281
|
+
queryFn: () => ne(A),
|
|
282
|
+
enabled: !!A && c
|
|
283
283
|
}), {
|
|
284
|
-
data:
|
|
284
|
+
data: F,
|
|
285
285
|
isLoading: J,
|
|
286
286
|
error: w
|
|
287
287
|
} = C({
|
|
@@ -295,10 +295,10 @@ const Ne = "_formsTableBody_1pd36_1", ye = "_customAccordianItem_1pd36_6", Ce =
|
|
|
295
295
|
},
|
|
296
296
|
[d]
|
|
297
297
|
);
|
|
298
|
-
const D = h(() => !
|
|
299
|
-
|
|
298
|
+
const D = h(() => !F || !t?.formName ? [] : ke(
|
|
299
|
+
F,
|
|
300
300
|
t.formName
|
|
301
|
-
), [
|
|
301
|
+
), [F, t?.formName]), G = h(
|
|
302
302
|
() => [
|
|
303
303
|
{ key: "recordedOn", header: a("FORM_RECORDED_ON") },
|
|
304
304
|
{ key: "recordedBy", header: a("FORM_RECORDED_BY") }
|
|
@@ -311,12 +311,12 @@ const Ne = "_formsTableBody_1pd36_1", ye = "_customAccordianItem_1pd36_6", Ce =
|
|
|
311
311
|
],
|
|
312
312
|
[]
|
|
313
313
|
), E = h(() => {
|
|
314
|
-
const i =
|
|
314
|
+
const i = O.reduce(
|
|
315
315
|
(u, l) => {
|
|
316
|
-
const
|
|
317
|
-
u[
|
|
316
|
+
const g = l.formName;
|
|
317
|
+
u[g] ??= [];
|
|
318
318
|
const M = l.providers.map((Z) => Z.providerName).filter(Boolean).join(", ");
|
|
319
|
-
return u[
|
|
319
|
+
return u[g].push({
|
|
320
320
|
id: l.encounterUuid,
|
|
321
321
|
formName: l.formName,
|
|
322
322
|
recordedOn: me(l.encounterDateTime, a, _e).formattedResult,
|
|
@@ -331,15 +331,15 @@ const Ne = "_formsTableBody_1pd36_1", ye = "_customAccordianItem_1pd36_6", Ce =
|
|
|
331
331
|
([u, l]) => ({
|
|
332
332
|
formName: u,
|
|
333
333
|
records: l.sort(
|
|
334
|
-
(
|
|
334
|
+
(g, M) => M.encounterDateTime - g.encounterDateTime
|
|
335
335
|
)
|
|
336
336
|
})
|
|
337
337
|
).sort((u, l) => u.formName.localeCompare(l.formName));
|
|
338
|
-
}, [
|
|
338
|
+
}, [O, a]), x = L((i) => {
|
|
339
339
|
b(i), m(!0);
|
|
340
|
-
}, []), W =
|
|
340
|
+
}, []), W = L(() => {
|
|
341
341
|
m(!1), b(null);
|
|
342
|
-
}, []), B =
|
|
342
|
+
}, []), B = L(
|
|
343
343
|
(i, u) => {
|
|
344
344
|
switch (u) {
|
|
345
345
|
case "recordedOn":
|
|
@@ -367,7 +367,7 @@ const Ne = "_formsTableBody_1pd36_1", ye = "_customAccordianItem_1pd36_6", Ce =
|
|
|
367
367
|
dataTestId: "forms-table"
|
|
368
368
|
}
|
|
369
369
|
) : /* @__PURE__ */ s(le, { align: "start", children: E.map((i, u) => {
|
|
370
|
-
const { formName: l, records:
|
|
370
|
+
const { formName: l, records: g } = i;
|
|
371
371
|
return /* @__PURE__ */ s(
|
|
372
372
|
ce,
|
|
373
373
|
{
|
|
@@ -380,7 +380,7 @@ const Ne = "_formsTableBody_1pd36_1", ye = "_customAccordianItem_1pd36_6", Ce =
|
|
|
380
380
|
{
|
|
381
381
|
headers: G,
|
|
382
382
|
ariaLabel: a("FORMS_HEADING"),
|
|
383
|
-
rows:
|
|
383
|
+
rows: g,
|
|
384
384
|
loading: !1,
|
|
385
385
|
errorStateMessage: "",
|
|
386
386
|
sortable: X,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { c, T as l, P as m, a as u, D as v, Q as i } from "./YPM2AS64-
|
|
2
|
-
import { l as d, m as f, o as e } from "./index-
|
|
1
|
+
import { c, T as l, P as m, a as u, D as v, Q as i } from "./YPM2AS64-ZfjFK021.js";
|
|
2
|
+
import { l as d, m as f, o as e } from "./index-pMxrukjk.js";
|
|
3
3
|
var p = (a) => {
|
|
4
4
|
const [r, o] = c({
|
|
5
5
|
prefix: "TanstackQueryDevtools"
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { c as s, T as c, P as u, a as i, b as m, C as P, Q as d } from "./YPM2AS64-
|
|
2
|
-
import { l as v, m as C, o as e } from "./index-
|
|
1
|
+
import { c as s, T as c, P as u, a as i, b as m, C as P, Q as d } from "./YPM2AS64-ZfjFK021.js";
|
|
2
|
+
import { l as v, m as C, o as e } from "./index-pMxrukjk.js";
|
|
3
3
|
var h = (t) => {
|
|
4
4
|
const [r, o] = s({
|
|
5
5
|
prefix: "TanstackQueryDevtools"
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsxs as T, jsx as c } from "react/jsx-runtime";
|
|
2
|
-
import { h as B, p as V, u as I, q as x, W as K, e as w, d as z, r as G, n as Q, A as j, z as H, k as M, x as S, t as W, F as P, D as X, N as Y, j as J } from "./index-
|
|
2
|
+
import { h as B, p as V, u as I, q as x, W as K, e as w, d as z, r as G, n as Q, A as j, z as H, k as M, x as S, t as W, F as P, D as X, N as Y, j as J } from "./index-pMxrukjk.js";
|
|
3
3
|
import { useQueries as Z, useQuery as ee } from "@tanstack/react-query";
|
|
4
4
|
import { useRef as te, useEffect as $, useMemo as h } from "react";
|
|
5
5
|
const A = (t, d, i, l, r) => {
|
|
@@ -8,7 +8,7 @@ const A = (t, d, i, l, r) => {
|
|
|
8
8
|
o === "Image" && (n = /* @__PURE__ */ c(Y, { imageSrc: s, alt: s, id: `${s}-img` })), o === "Video" && (n = /* @__PURE__ */ c(J, { id: `${s}-video`, videoSrc: s }));
|
|
9
9
|
const b = r("OBSERVATIONS_RECORDED_BY", {
|
|
10
10
|
provider: a.provider
|
|
11
|
-
}),
|
|
11
|
+
}), p = t.display, v = t.observationValue?.isAbnormal ? "abnormal-obs" : "obs", u = l ? `${l}-${v}-${p}-${i}-${d}` : `${v}-${p}-${i}-${d}`;
|
|
12
12
|
return /* @__PURE__ */ c(
|
|
13
13
|
X,
|
|
14
14
|
{
|
|
@@ -86,31 +86,31 @@ const A = (t, d, i, l, r) => {
|
|
|
86
86
|
}))
|
|
87
87
|
});
|
|
88
88
|
$(() => {
|
|
89
|
-
n.forEach((e,
|
|
90
|
-
if (e.isError && !r.current.has(
|
|
91
|
-
const C = i[
|
|
89
|
+
n.forEach((e, m) => {
|
|
90
|
+
if (e.isError && !r.current.has(m)) {
|
|
91
|
+
const C = i[m];
|
|
92
92
|
s({
|
|
93
93
|
title: o("ERROR_DEFAULT_TITLE"),
|
|
94
94
|
message: o("ERROR_FETCHING_CONCEPT", { conceptName: C }),
|
|
95
95
|
type: "error"
|
|
96
|
-
}), r.current.add(
|
|
97
|
-
} else e.isError || r.current.delete(
|
|
96
|
+
}), r.current.add(m);
|
|
97
|
+
} else e.isError || r.current.delete(m);
|
|
98
98
|
});
|
|
99
99
|
}, [n, i]);
|
|
100
|
-
const b = h(() => n.map((e) => e.data?.uuid).filter((e) => !!e), [n]),
|
|
100
|
+
const b = h(() => n.map((e) => e.data?.uuid).filter((e) => !!e), [n]), p = h(() => [.../* @__PURE__ */ new Set([...b, ...l])], [b, l]), v = h(() => i.length === 0 ? !0 : n.every((e) => !e.isLoading), [n, i.length]), {
|
|
101
101
|
data: u,
|
|
102
102
|
isLoading: D,
|
|
103
103
|
isError: R,
|
|
104
104
|
refetch: g
|
|
105
105
|
} = ee({
|
|
106
|
-
queryKey: ne(a,
|
|
107
|
-
queryFn: () => K(a,
|
|
108
|
-
enabled: !!a &&
|
|
106
|
+
queryKey: ne(a, p),
|
|
107
|
+
queryFn: () => K(a, p),
|
|
108
|
+
enabled: !!a && p.length > 0 && v
|
|
109
109
|
});
|
|
110
110
|
w(
|
|
111
111
|
(e) => {
|
|
112
112
|
e.patientUUID === a && e.updatedConcepts.size > 0 && [...e.updatedConcepts.keys()].some(
|
|
113
|
-
(
|
|
113
|
+
(m) => p.includes(m)
|
|
114
114
|
) && g();
|
|
115
115
|
},
|
|
116
116
|
[a, g]
|
|
@@ -123,13 +123,13 @@ const A = (t, d, i, l, r) => {
|
|
|
123
123
|
}, [R]);
|
|
124
124
|
const f = h(() => {
|
|
125
125
|
if (!u) return [];
|
|
126
|
-
const e = z(u),
|
|
127
|
-
return Q(
|
|
126
|
+
const e = z(u), m = G(e);
|
|
127
|
+
return Q(m);
|
|
128
128
|
}, [u]), F = [
|
|
129
129
|
{ key: "name", header: "name" },
|
|
130
130
|
{ key: "value", header: "value" },
|
|
131
131
|
{ key: "form", header: "form" }
|
|
132
|
-
], O = D || !v, _ = R && v, q = (!u || u.entry?.length === 0 ||
|
|
132
|
+
], O = D || !v, _ = R && v, q = (!u || u.entry?.length === 0 || p.length === 0) && v, L = _ ? o("ERROR_FETCHING_OBSERVATIONS") : null, U = q ? o("NO_OBSERVATIONS_FOUND") : void 0, k = f.length > 0 && !O && !_, E = d.titleTranslationKey, y = E ? o(E) : "";
|
|
133
133
|
return /* @__PURE__ */ T(
|
|
134
134
|
"div",
|
|
135
135
|
{
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { s as we, v as z, y as xt, B, m as q, o as y, P as Ro, E as ye, S as R, H as _, I as k, L as N, O as A, Q as bs, R as ir, T as $e, X as U, Z as Hn, _ as Vn, $ as dt, a0 as D, a1 as xs, a2 as cn, a3 as Be, a4 as ws, a5 as qt, a6 as zt, a7 as $s, a8 as Cs, a9 as $n, aa as Ss, ab as Nr, ac as Bt, ad as zo, ae as ks, af as Es, ag as j, ah as Ur, ai as Ms, aj as Ds, ak as sr, al as As, am as Ts, an as zn, ao as Fs, ap as Is, aq as Z, ar as Ps, as as Ls } from "./index-
|
|
1
|
+
import { s as we, v as z, y as xt, B, m as q, o as y, P as Ro, E as ye, S as R, H as _, I as k, L as N, O as A, Q as bs, R as ir, T as $e, X as U, Z as Hn, _ as Vn, $ as dt, a0 as D, a1 as xs, a2 as cn, a3 as Be, a4 as ws, a5 as qt, a6 as zt, a7 as $s, a8 as Cs, a9 as $n, aa as Ss, ab as Nr, ac as Bt, ad as zo, ae as ks, af as Es, ag as j, ah as Ur, ai as Ms, aj as Ds, ak as sr, al as As, am as Ts, an as zn, ao as Fs, ap as Is, aq as Z, ar as Ps, as as Ls } from "./index-pMxrukjk.js";
|
|
2
2
|
var Os = (e) => e != null, qs = (e) => e.filter(Os);
|
|
3
3
|
function _s(e) {
|
|
4
4
|
return (...t) => {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"personAttributeHelpers.d.ts","sourceRoot":"","sources":["../../../src/components/common/personAttributeHelpers.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,sCAAsC,CAAC;AACjF,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,sBAAsB,CAAC;AAEjE,MAAM,WAAW,eAAe;IAC9B,KAAK,EAAE,MAAM,CAAC;IACd,cAAc,EAAE,MAAM,CAAC;CACxB;AAED,eAAO,MAAM,eAAe,GAC1B,iBAAiB,oBAAoB,EAAE,EACvC,kBAAkB,eAAe,EAAE,KAClC,oBAAoB,
|
|
1
|
+
{"version":3,"file":"personAttributeHelpers.d.ts","sourceRoot":"","sources":["../../../src/components/common/personAttributeHelpers.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,sCAAsC,CAAC;AACjF,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,sBAAsB,CAAC;AAEjE,MAAM,WAAW,eAAe;IAC9B,KAAK,EAAE,MAAM,CAAC;IACd,cAAc,EAAE,MAAM,CAAC;CACxB;AAED,eAAO,MAAM,eAAe,GAC1B,iBAAiB,oBAAoB,EAAE,EACvC,kBAAkB,eAAe,EAAE,KAClC,oBAAoB,EAUtB,CAAC;AAEF,eAAO,MAAM,yBAAyB,GACpC,kBAAkB,eAAe,EAAE,KAClC,MAAM,CAAC,MAAM,EAAE,MAAM,CAMvB,CAAC;AAEF,eAAO,MAAM,kBAAkB,GAC7B,cAAc,oBAAoB,EAAE,EACpC,cAAc,oBAAoB,KACjC,oBAMF,CAAC;AAEF,eAAO,MAAM,aAAa,GACxB,WAAW,MAAM,EACjB,qBAAqB,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,EAC3C,aAAa,CAAC,GAAG,EAAE,MAAM,KAAK,MAAM,KACnC,MAGF,CAAC"}
|
|
@@ -154899,11 +154899,8 @@ const QV0 = "_searchPatientContainer_4r1cg_1", eb0 = "_searchPatient_4r1cg_1", t
|
|
|
154899
154899
|
message: T instanceof Error ? T.message : String(T),
|
|
154900
154900
|
type: "error"
|
|
154901
154901
|
}), f([]), h("");
|
|
154902
|
-
else if (V?.patientSearch
|
|
154903
|
-
const B =
|
|
154904
|
-
...V.patientSearch.customAttributes || [],
|
|
154905
|
-
...V.patientSearch.appointment || []
|
|
154906
|
-
];
|
|
154902
|
+
else if (V?.patientSearch) {
|
|
154903
|
+
const B = Object.values(V.patientSearch).filter(Array.isArray).flat();
|
|
154907
154904
|
x(B);
|
|
154908
154905
|
const re = B.map(
|
|
154909
154906
|
(_) => w(_.translationKey)
|
|
@@ -155746,7 +155743,7 @@ const GC1 = (t, e) => ["programs", t, e], kb0 = async (t, e) => {
|
|
|
155746
155743
|
};
|
|
155747
155744
|
QC1.displayName = "UserPrivilegeProvider";
|
|
155748
155745
|
U2(void 0);
|
|
155749
|
-
or(() => Promise.resolve().then(() => xE0)), or(() => Promise.resolve().then(() => wM0)), or(() => Promise.resolve().then(() => UM0)), or(() => Promise.resolve().then(() => ez0)), or(() => Promise.resolve().then(() => Mb0)), or(() => import("./FormsTable-
|
|
155746
|
+
or(() => Promise.resolve().then(() => xE0)), or(() => Promise.resolve().then(() => wM0)), or(() => Promise.resolve().then(() => UM0)), or(() => Promise.resolve().then(() => ez0)), or(() => Promise.resolve().then(() => Mb0)), or(() => import("./FormsTable-C7QfrmD1-C8xKxTFG.js")), or(() => Promise.resolve().then(() => KV0)), or(() => import("./Observations-BAaMZ7G3-DK11Ak19.js")), or(
|
|
155750
155747
|
() => Promise.resolve().then(() => _b0)
|
|
155751
155748
|
), or(
|
|
155752
155749
|
() => Promise.resolve().then(() => wV0)
|
|
@@ -157585,7 +157582,7 @@ var xD0 = (t, e = !1) => {
|
|
|
157585
157582
|
const e = wL1(() => {
|
|
157586
157583
|
const r = this, [n] = this.#n, [a] = this.#o, [c] = this.#a, [i] = this.#c, [l] = this.#p, [s] = this.#t;
|
|
157587
157584
|
let d;
|
|
157588
|
-
return this.#i ? d = this.#i : (d = fL1(() => import("./LNWAZHJI-
|
|
157585
|
+
return this.#i ? d = this.#i : (d = fL1(() => import("./LNWAZHJI-lDbx5Q3a.js")), this.#i = d), DL1(this.#h, this.#r), hL1(d, pL1({
|
|
157589
157586
|
get queryFlavor() {
|
|
157590
157587
|
return r.#d;
|
|
157591
157588
|
},
|
|
@@ -157683,7 +157680,7 @@ var xD0 = (t, e = !1) => {
|
|
|
157683
157680
|
const e = wL1(() => {
|
|
157684
157681
|
const r = this, [n] = this.#n, [a] = this.#o, [c] = this.#a, [i] = this.#c, [l] = this.#p, [s] = this.#t, [d] = this.#i;
|
|
157685
157682
|
let u;
|
|
157686
|
-
return this.#l ? u = this.#l : (u = fL1(() => import("./MWZ6AO7Z-
|
|
157683
|
+
return this.#l ? u = this.#l : (u = fL1(() => import("./MWZ6AO7Z-Dwh5b8AK.js")), this.#l = u), DL1(this.#h, this.#r), hL1(u, pL1({
|
|
157687
157684
|
get queryFlavor() {
|
|
157688
157685
|
return r.#d;
|
|
157689
157686
|
},
|
|
@@ -158004,14 +158001,9 @@ const ZL1 = U2(void 0), $y = () => {
|
|
|
158004
158001
|
isLoading: e,
|
|
158005
158002
|
error: r
|
|
158006
158003
|
};
|
|
158007
|
-
}, PL1 = (t, e) =>
|
|
158008
|
-
|
|
158009
|
-
|
|
158010
|
-
const r = e.map((n) => n.field);
|
|
158011
|
-
return t.filter(
|
|
158012
|
-
(n) => r.includes(n.name)
|
|
158013
|
-
);
|
|
158014
|
-
}, jL1 = (t) => {
|
|
158004
|
+
}, PL1 = (t, e) => e.length === 0 ? [] : e.map(
|
|
158005
|
+
(r) => t.find((n) => n.name === r.field)
|
|
158006
|
+
).filter((r) => r !== void 0), jL1 = (t) => {
|
|
158015
158007
|
const e = {};
|
|
158016
158008
|
return t.forEach((r) => {
|
|
158017
158009
|
e[r.field] = r.translationKey;
|
package/dist/index.js
CHANGED