@bahmni/registration-app 0.0.1-dev.196 → 0.0.1-dev.198
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/{DocumentsTable-CeadVs9A-B_GMwmZf.js → DocumentsTable-7_5Znf7I-DJXm4Ij8.js} +1 -1
- package/dist/{FormsTable-BOY-EyPE-BMvVSUvE.js → FormsTable-BR7769_Y-B9nlx4cc.js} +48 -48
- package/dist/{LNWAZHJI-BqDqIlpJ.js → LNWAZHJI-BRyrXitg.js} +2 -2
- package/dist/{MWZ6AO7Z-DrlB3Kk-.js → MWZ6AO7Z-D2o1G7C_.js} +2 -2
- package/dist/{Observations-BrQeD7aG-BGHXvswH.js → Observations-3hCgfnVw-CzbXW8dF.js} +10 -10
- package/dist/{YPM2AS64-Dw4y4Kq6.js → YPM2AS64-CcA4md34.js} +1 -1
- package/dist/{index-BOg7FK5l.js → index-D2PxipnA.js} +3 -3
- package/dist/index.js +1 -1
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as o, jsxs as l, Fragment as k } from "react/jsx-runtime";
|
|
2
|
-
import { l as V, u as x, Q as F, a as H, E as q, C as Q, x as P, T as G } from "./index-
|
|
2
|
+
import { l as V, u as x, Q as F, a as H, E as q, C as Q, x as P, T as G } from "./index-D2PxipnA.js";
|
|
3
3
|
import { useQuery as W } from "@tanstack/react-query";
|
|
4
4
|
import { useState as I, useCallback as T, useEffect as L, useMemo as E } from "react";
|
|
5
5
|
const Y = "_documentsTableBody_1voj8_1", z = "_viewAttachmentsLink_1voj8_11", J = "_documentViewerContainer_1voj8_15", K = "_attachmentItem_1voj8_23", X = "_attachmentCounter_1voj8_27", Z = "_attachmentError_1voj8_36", ee = "_documentIframe_1voj8_44", te = "_documentImage_1voj8_50", d = {
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import { jsx as o, jsxs as p, Fragment as k } from "react/jsx-runtime";
|
|
2
|
-
import { u as
|
|
2
|
+
import { u as O, l as ae, o as te, X as oe, Y as ne, J as se, G as de, f as me, C as ie, E as le, x as U, I as ce, Z as ue, T as be, b as pe, S as H, W as fe, q as K, c as F, d as _e, N as $e, A as ve, z as ge, e as he } from "./index-D2PxipnA.js";
|
|
3
3
|
import { useQueryClient as ye, useQuery as A } from "@tanstack/react-query";
|
|
4
4
|
import { useState as P, useMemo as h, useCallback as C } from "react";
|
|
5
|
-
const Ne = "_formsTableBody_1pd36_1", Ae = "_customAccordianItem_1pd36_6", Ce = "_formContent_1pd36_18",
|
|
5
|
+
const Ne = "_formsTableBody_1pd36_1", Ae = "_customAccordianItem_1pd36_6", Ce = "_formContent_1pd36_18", Fe = "_formDetailsContainer_1pd36_25", Le = "_observation_1pd36_30", Re = "_groupContainer_1pd36_39", Ie = "_rowContainer_1pd36_43", Me = "_groupLabel_1pd36_48", Oe = "_rowLabel_1pd36_58", Te = "_rowValue_1pd36_67", Se = "_groupMembers_1pd36_75", xe = "_memberRow_1pd36_81", De = "_memberLabel_1pd36_86", Ee = "_memberValue_1pd36_94", Ve = "_abnormalValue_1pd36_102", we = "_commentSection_1pd36_110", Be = "_commentText_1pd36_116", Ge = "_nestedGroup_1pd36_125", qe = "_nestedGroupLabel_1pd36_132", Ue = "_nestedGroupMembers_1pd36_141", n = {
|
|
6
6
|
formsTableBody: Ne,
|
|
7
7
|
customAccordianItem: Ae,
|
|
8
8
|
formContent: Ce,
|
|
9
|
-
formDetailsContainer:
|
|
10
|
-
observation:
|
|
11
|
-
groupContainer:
|
|
9
|
+
formDetailsContainer: Fe,
|
|
10
|
+
observation: Le,
|
|
11
|
+
groupContainer: Re,
|
|
12
12
|
rowContainer: Ie,
|
|
13
|
-
groupLabel:
|
|
14
|
-
rowLabel:
|
|
15
|
-
rowValue:
|
|
13
|
+
groupLabel: Me,
|
|
14
|
+
rowLabel: Oe,
|
|
15
|
+
rowValue: Te,
|
|
16
16
|
groupMembers: Se,
|
|
17
17
|
memberRow: xe,
|
|
18
18
|
memberLabel: De,
|
|
@@ -23,7 +23,7 @@ const Ne = "_formsTableBody_1pd36_1", Ae = "_customAccordianItem_1pd36_6", Ce =
|
|
|
23
23
|
nestedGroup: Ge,
|
|
24
24
|
nestedGroupLabel: qe,
|
|
25
25
|
nestedGroupMembers: Ue
|
|
26
|
-
},
|
|
26
|
+
}, j = (e) => {
|
|
27
27
|
const r = _e(e);
|
|
28
28
|
return r === "Image" ? /* @__PURE__ */ o(
|
|
29
29
|
$e,
|
|
@@ -33,20 +33,20 @@ const Ne = "_formsTableBody_1pd36_1", Ae = "_customAccordianItem_1pd36_6", Ce =
|
|
|
33
33
|
id: `${e}-img`
|
|
34
34
|
}
|
|
35
35
|
) : r === "Video" ? /* @__PURE__ */ o(ve, { id: `${e}-video`, videoSrc: e }) : r === "PDF" ? /* @__PURE__ */ o(ge, { id: `${e}-pdf`, src: e }) : e;
|
|
36
|
-
},
|
|
36
|
+
}, z = (e) => {
|
|
37
37
|
const r = e.observationValue?.referenceRange?.low?.value, s = e.observationValue?.referenceRange?.high?.value, a = r != null, l = s != null;
|
|
38
38
|
let d = "";
|
|
39
39
|
a && l ? d = ` (${r} - ${s})` : a ? d = ` (>${r})` : l && (d = ` (<${s})`);
|
|
40
40
|
const b = e.observationValue?.isAbnormal === !0;
|
|
41
41
|
return { rangeString: d, isAbnormal: b };
|
|
42
|
-
},
|
|
42
|
+
}, W = ({
|
|
43
43
|
member: e,
|
|
44
44
|
depth: r = 0,
|
|
45
45
|
memberIndex: s = 0,
|
|
46
46
|
formName: a = "",
|
|
47
47
|
comment: l
|
|
48
48
|
}) => {
|
|
49
|
-
const { t: d } =
|
|
49
|
+
const { t: d } = O(), b = e.members && e.members.length > 0, t = e.display, c = a ? `${a}-` : "";
|
|
50
50
|
if (b)
|
|
51
51
|
return /* @__PURE__ */ p(
|
|
52
52
|
"div",
|
|
@@ -69,7 +69,7 @@ const Ne = "_formsTableBody_1pd36_1", Ae = "_customAccordianItem_1pd36_6", Ce =
|
|
|
69
69
|
className: n.nestedGroupMembers,
|
|
70
70
|
"data-testid": `${c}obs-nested-group-members-${t}-${s}`,
|
|
71
71
|
children: e.members?.map((y, N) => /* @__PURE__ */ o(
|
|
72
|
-
|
|
72
|
+
W,
|
|
73
73
|
{
|
|
74
74
|
member: y,
|
|
75
75
|
depth: r + 1,
|
|
@@ -83,7 +83,7 @@ const Ne = "_formsTableBody_1pd36_1", Ae = "_customAccordianItem_1pd36_6", Ce =
|
|
|
83
83
|
]
|
|
84
84
|
}
|
|
85
85
|
);
|
|
86
|
-
const { rangeString: v, isAbnormal: f } =
|
|
86
|
+
const { rangeString: v, isAbnormal: f } = z(e), _ = K(e, d), $ = _ ? j(_) : null;
|
|
87
87
|
return /* @__PURE__ */ p(k, { children: [
|
|
88
88
|
/* @__PURE__ */ p(
|
|
89
89
|
"div",
|
|
@@ -95,7 +95,7 @@ const Ne = "_formsTableBody_1pd36_1", Ae = "_customAccordianItem_1pd36_6", Ce =
|
|
|
95
95
|
/* @__PURE__ */ p(
|
|
96
96
|
"p",
|
|
97
97
|
{
|
|
98
|
-
className:
|
|
98
|
+
className: F(
|
|
99
99
|
n.memberLabel,
|
|
100
100
|
f ? n.abnormalValue : ""
|
|
101
101
|
),
|
|
@@ -109,7 +109,7 @@ const Ne = "_formsTableBody_1pd36_1", Ae = "_customAccordianItem_1pd36_6", Ce =
|
|
|
109
109
|
/* @__PURE__ */ o(
|
|
110
110
|
"div",
|
|
111
111
|
{
|
|
112
|
-
className:
|
|
112
|
+
className: F(
|
|
113
113
|
n.memberValue,
|
|
114
114
|
f ? n.abnormalValue : ""
|
|
115
115
|
),
|
|
@@ -139,7 +139,7 @@ const Ne = "_formsTableBody_1pd36_1", Ae = "_customAccordianItem_1pd36_6", Ce =
|
|
|
139
139
|
formName: s = "",
|
|
140
140
|
comment: a
|
|
141
141
|
}) => {
|
|
142
|
-
const { t: l } =
|
|
142
|
+
const { t: l } = O(), d = e.members && e.members.length > 0, { rangeString: b, isAbnormal: t } = z(e), c = s ? `${s}-` : "", v = K(e, l), f = v ? j(v) : null;
|
|
143
143
|
return /* @__PURE__ */ p(
|
|
144
144
|
"div",
|
|
145
145
|
{
|
|
@@ -155,7 +155,7 @@ const Ne = "_formsTableBody_1pd36_1", Ae = "_customAccordianItem_1pd36_6", Ce =
|
|
|
155
155
|
/* @__PURE__ */ p(
|
|
156
156
|
"p",
|
|
157
157
|
{
|
|
158
|
-
className:
|
|
158
|
+
className: F(
|
|
159
159
|
d ? n.groupLabel : n.rowLabel,
|
|
160
160
|
!d && t ? n.abnormalValue : ""
|
|
161
161
|
),
|
|
@@ -172,7 +172,7 @@ const Ne = "_formsTableBody_1pd36_1", Ae = "_customAccordianItem_1pd36_6", Ce =
|
|
|
172
172
|
className: n.groupMembers,
|
|
173
173
|
"data-testid": `${c}observation-group-members-${e.display}-${r}`,
|
|
174
174
|
children: e.members?.map((_, $) => /* @__PURE__ */ o(
|
|
175
|
-
|
|
175
|
+
W,
|
|
176
176
|
{
|
|
177
177
|
member: _,
|
|
178
178
|
depth: 0,
|
|
@@ -185,7 +185,7 @@ const Ne = "_formsTableBody_1pd36_1", Ae = "_customAccordianItem_1pd36_6", Ce =
|
|
|
185
185
|
) : /* @__PURE__ */ o(
|
|
186
186
|
"div",
|
|
187
187
|
{
|
|
188
|
-
className:
|
|
188
|
+
className: F(
|
|
189
189
|
n.rowValue,
|
|
190
190
|
t ? n.abnormalValue : ""
|
|
191
191
|
),
|
|
@@ -216,53 +216,53 @@ const Ne = "_formsTableBody_1pd36_1", Ae = "_customAccordianItem_1pd36_6", Ce =
|
|
|
216
216
|
)?.valueString : void 0, ke = (e) => {
|
|
217
217
|
if (e)
|
|
218
218
|
return e.note?.[0]?.text;
|
|
219
|
-
},
|
|
220
|
-
const s =
|
|
219
|
+
}, Ke = (e, r) => e.entry?.find((s) => s.resource?.id === r)?.resource, M = (e, r) => {
|
|
220
|
+
const s = Ke(e, r);
|
|
221
221
|
return s ? {
|
|
222
222
|
formFieldPath: Pe(s),
|
|
223
223
|
comment: ke(s)
|
|
224
224
|
} : {};
|
|
225
|
-
},
|
|
225
|
+
}, je = (e, r) => {
|
|
226
226
|
if (!e?.entry || !r)
|
|
227
227
|
return [];
|
|
228
228
|
const s = fe(e);
|
|
229
229
|
return [
|
|
230
230
|
...s.observations.map((a) => {
|
|
231
|
-
const { formFieldPath: l, comment: d } =
|
|
231
|
+
const { formFieldPath: l, comment: d } = M(
|
|
232
232
|
e,
|
|
233
233
|
a.id
|
|
234
234
|
);
|
|
235
235
|
return { obs: a, formFieldPath: l, comment: d };
|
|
236
236
|
}),
|
|
237
237
|
...s.groupedObservations.flatMap((a) => {
|
|
238
|
-
const { formFieldPath: l } =
|
|
238
|
+
const { formFieldPath: l } = M(e, a.id);
|
|
239
239
|
return (a.members ?? []).map((d) => {
|
|
240
|
-
const { comment: b } =
|
|
240
|
+
const { comment: b } = M(e, d.id);
|
|
241
241
|
return { obs: d, formFieldPath: l, comment: b };
|
|
242
242
|
});
|
|
243
243
|
})
|
|
244
244
|
].filter(
|
|
245
245
|
({ formFieldPath: a }) => !a || a.includes(r)
|
|
246
246
|
);
|
|
247
|
-
},
|
|
247
|
+
}, Ye = ({
|
|
248
248
|
episodeOfCareUuids: e,
|
|
249
249
|
encounterUuids: r,
|
|
250
250
|
config: s
|
|
251
251
|
}) => {
|
|
252
|
-
const { t: a } =
|
|
252
|
+
const { t: a } = O(), l = ae(), [d, b] = P(!1), [t, c] = P(null), v = s?.numberOfVisits, f = te(
|
|
253
253
|
e,
|
|
254
254
|
r
|
|
255
255
|
), _ = ye(), {
|
|
256
256
|
data: $ = [],
|
|
257
257
|
isLoading: y,
|
|
258
258
|
isError: N,
|
|
259
|
-
error:
|
|
260
|
-
refetch:
|
|
259
|
+
error: Q,
|
|
260
|
+
refetch: X
|
|
261
261
|
} = A({
|
|
262
262
|
queryKey: ["forms", l, e],
|
|
263
263
|
queryFn: () => oe(l, void 0, v),
|
|
264
264
|
enabled: !!l && !f
|
|
265
|
-
}),
|
|
265
|
+
}), T = h(() => !r || r.length === 0 ? $ : $.filter(
|
|
266
266
|
(m) => r.includes(m.encounterUuid)
|
|
267
267
|
), [$, r]), { data: S = [] } = A({
|
|
268
268
|
queryKey: ["observationForms"],
|
|
@@ -270,15 +270,15 @@ const Ne = "_formsTableBody_1pd36_1", Ae = "_customAccordianItem_1pd36_6", Ce =
|
|
|
270
270
|
}), x = C(
|
|
271
271
|
(m) => S.find((u) => u.name === m)?.uuid,
|
|
272
272
|
[S]
|
|
273
|
-
),
|
|
273
|
+
), L = h(() => {
|
|
274
274
|
if (t)
|
|
275
275
|
return x(t.formName);
|
|
276
|
-
}, [t, x]), { isLoading:
|
|
277
|
-
queryKey: ["formMetadata",
|
|
278
|
-
queryFn: () => se(
|
|
279
|
-
enabled: !!
|
|
276
|
+
}, [t, x]), { isLoading: Y, error: D } = A({
|
|
277
|
+
queryKey: ["formMetadata", L],
|
|
278
|
+
queryFn: () => se(L),
|
|
279
|
+
enabled: !!L && d
|
|
280
280
|
}), {
|
|
281
|
-
data:
|
|
281
|
+
data: R,
|
|
282
282
|
isLoading: J,
|
|
283
283
|
error: E
|
|
284
284
|
} = A({
|
|
@@ -288,27 +288,27 @@ const Ne = "_formsTableBody_1pd36_1", Ae = "_customAccordianItem_1pd36_6", Ce =
|
|
|
288
288
|
});
|
|
289
289
|
me(
|
|
290
290
|
(m) => {
|
|
291
|
-
m.patientUUID === l && m.updatedConcepts.size > 0 && (
|
|
291
|
+
m.patientUUID === l && m.updatedConcepts.size > 0 && (X(), _.invalidateQueries({ queryKey: ["formsEncounterFHIR"] }));
|
|
292
292
|
},
|
|
293
293
|
[l]
|
|
294
294
|
);
|
|
295
|
-
const V = h(() => !
|
|
296
|
-
|
|
295
|
+
const V = h(() => !R || !t?.formName ? [] : je(
|
|
296
|
+
R,
|
|
297
297
|
t.formName
|
|
298
|
-
), [
|
|
298
|
+
), [R, t?.formName]), w = h(
|
|
299
299
|
() => [
|
|
300
300
|
{ key: "recordedOn", header: a("FORM_RECORDED_ON") },
|
|
301
301
|
{ key: "recordedBy", header: a("FORM_RECORDED_BY") }
|
|
302
302
|
],
|
|
303
303
|
[a]
|
|
304
|
-
),
|
|
304
|
+
), Z = h(
|
|
305
305
|
() => [
|
|
306
306
|
{ key: "recordedOn", sortable: !0 },
|
|
307
307
|
{ key: "recordedBy", sortable: !0 }
|
|
308
308
|
],
|
|
309
309
|
[]
|
|
310
310
|
), B = h(() => {
|
|
311
|
-
const m =
|
|
311
|
+
const m = T.reduce(
|
|
312
312
|
(u, i) => {
|
|
313
313
|
const g = i.formName;
|
|
314
314
|
u[g] ??= [];
|
|
@@ -332,7 +332,7 @@ const Ne = "_formsTableBody_1pd36_1", Ae = "_customAccordianItem_1pd36_6", Ce =
|
|
|
332
332
|
)
|
|
333
333
|
})
|
|
334
334
|
).sort((u, i) => u.formName.localeCompare(i.formName));
|
|
335
|
-
}, [
|
|
335
|
+
}, [T, a]), G = C((m) => {
|
|
336
336
|
c(m), b(!0);
|
|
337
337
|
}, []), ee = C(() => {
|
|
338
338
|
b(!1), c(null);
|
|
@@ -357,7 +357,7 @@ const Ne = "_formsTableBody_1pd36_1", Ae = "_customAccordianItem_1pd36_6", Ce =
|
|
|
357
357
|
ariaLabel: a("FORMS_HEADING"),
|
|
358
358
|
rows: [],
|
|
359
359
|
loading: y,
|
|
360
|
-
errorStateMessage: N ?
|
|
360
|
+
errorStateMessage: N ? Q?.message : void 0,
|
|
361
361
|
emptyStateMessage: a("FORMS_UNAVAILABLE"),
|
|
362
362
|
renderCell: q,
|
|
363
363
|
className: n.formsTableBody,
|
|
@@ -380,7 +380,7 @@ const Ne = "_formsTableBody_1pd36_1", Ae = "_customAccordianItem_1pd36_6", Ce =
|
|
|
380
380
|
rows: g,
|
|
381
381
|
loading: !1,
|
|
382
382
|
errorStateMessage: "",
|
|
383
|
-
sortable:
|
|
383
|
+
sortable: Z,
|
|
384
384
|
emptyStateMessage: a("FORMS_UNAVAILABLE"),
|
|
385
385
|
renderCell: q,
|
|
386
386
|
className: n.formsTableBody,
|
|
@@ -403,7 +403,7 @@ const Ne = "_formsTableBody_1pd36_1", Ae = "_customAccordianItem_1pd36_6", Ce =
|
|
|
403
403
|
passiveModal: !0,
|
|
404
404
|
size: "md",
|
|
405
405
|
testId: "form-details-modal",
|
|
406
|
-
children: /* @__PURE__ */ o("div", { className: n.formContent, children:
|
|
406
|
+
children: /* @__PURE__ */ o("div", { className: n.formContent, children: Y || J ? /* @__PURE__ */ o(pe, { width: "100%", lineCount: 3 }) : D ? /* @__PURE__ */ o("div", { children: H(D).message ?? a("ERROR_FETCHING_FORM_METADATA") }) : E ? /* @__PURE__ */ o("div", { children: H(E).message ?? a("ERROR_FETCHING_FORM_DATA") }) : V.length > 0 ? /* @__PURE__ */ o("div", { className: n.formDetailsContainer, children: V.map(({ obs: m, comment: u }, i) => /* @__PURE__ */ o(
|
|
407
407
|
He,
|
|
408
408
|
{
|
|
409
409
|
observation: m,
|
|
@@ -418,5 +418,5 @@ const Ne = "_formsTableBody_1pd36_1", Ae = "_customAccordianItem_1pd36_6", Ce =
|
|
|
418
418
|
] });
|
|
419
419
|
};
|
|
420
420
|
export {
|
|
421
|
-
|
|
421
|
+
Ye as default
|
|
422
422
|
};
|
|
@@ -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 { j as p, k as d, p as e } from "./index-
|
|
1
|
+
import { c, T as l, P as m, a as u, D as v, Q as i } from "./YPM2AS64-CcA4md34.js";
|
|
2
|
+
import { j as p, k as d, p as e } from "./index-D2PxipnA.js";
|
|
3
3
|
var f = (a) => {
|
|
4
4
|
const [r, t] = 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 { j as v, k as C, p 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-CcA4md34.js";
|
|
2
|
+
import { j as v, k as C, p as e } from "./index-D2PxipnA.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 l } from "react/jsx-runtime";
|
|
2
|
-
import { l as
|
|
2
|
+
import { l as K, Q, u as I, U as V, K as k, f as x, W as w, g as z, h as G, m as H, x as M, r as j, i as S, n as P, d as W, w as Y, N as J, A as X, z as Z } from "./index-D2PxipnA.js";
|
|
3
3
|
import { useQueries as ee, useQuery as te } from "@tanstack/react-query";
|
|
4
4
|
import { useRef as ae, useEffect as $, useMemo as f } from "react";
|
|
5
5
|
const A = (t, d, n, u, r) => {
|
|
@@ -78,7 +78,7 @@ const A = (t, d, n, u, r) => {
|
|
|
78
78
|
observations: oe,
|
|
79
79
|
title: ie
|
|
80
80
|
}, ne = (t) => ["conceptUuid", t], de = (t, d) => ["observations", t, ...d], pe = ({ config: t }) => {
|
|
81
|
-
const d = t, { conceptNames: n = [], conceptUuid: u = [] } = d, r = ae(/* @__PURE__ */ new Set()), a =
|
|
81
|
+
const d = t, { conceptNames: n = [], conceptUuid: u = [] } = d, r = ae(/* @__PURE__ */ new Set()), a = K(), { addNotification: s } = Q(), { t: o } = I(), i = ee({
|
|
82
82
|
queries: n.map((e) => ({
|
|
83
83
|
queryKey: ne(e),
|
|
84
84
|
queryFn: () => V(e),
|
|
@@ -88,10 +88,10 @@ const A = (t, d, n, u, r) => {
|
|
|
88
88
|
$(() => {
|
|
89
89
|
i.forEach((e, m) => {
|
|
90
90
|
if (e.isError && !r.current.has(m)) {
|
|
91
|
-
const
|
|
91
|
+
const B = n[m];
|
|
92
92
|
s({
|
|
93
93
|
title: o("ERROR_DEFAULT_TITLE"),
|
|
94
|
-
message: o("ERROR_FETCHING_CONCEPT", { conceptName:
|
|
94
|
+
message: o("ERROR_FETCHING_CONCEPT", { conceptName: B }),
|
|
95
95
|
type: "error"
|
|
96
96
|
}), r.current.add(m);
|
|
97
97
|
} else e.isError || r.current.delete(m);
|
|
@@ -99,15 +99,15 @@ const A = (t, d, n, u, r) => {
|
|
|
99
99
|
}, [i, n]);
|
|
100
100
|
const b = f(() => i.map((e) => e.data?.uuid).filter((e) => !!e), [i]), p = f(() => [.../* @__PURE__ */ new Set([...b, ...u])], [b, u]), v = f(() => n.length === 0 ? !0 : i.every((e) => !e.isLoading), [i, n.length]), {
|
|
101
101
|
data: c,
|
|
102
|
-
isLoading:
|
|
102
|
+
isLoading: D,
|
|
103
103
|
isError: g,
|
|
104
104
|
refetch: h
|
|
105
105
|
} = te({
|
|
106
106
|
queryKey: de(a, p),
|
|
107
|
-
queryFn: () =>
|
|
107
|
+
queryFn: () => k(a, p),
|
|
108
108
|
enabled: !!a && p.length > 0 && v
|
|
109
109
|
});
|
|
110
|
-
|
|
110
|
+
x(
|
|
111
111
|
(e) => {
|
|
112
112
|
e.patientUUID === a && e.updatedConcepts.size > 0 && [...e.updatedConcepts.keys()].some(
|
|
113
113
|
(m) => p.includes(m)
|
|
@@ -125,11 +125,11 @@ const A = (t, d, n, u, r) => {
|
|
|
125
125
|
if (!c) return [];
|
|
126
126
|
const e = w(c), m = z(e);
|
|
127
127
|
return G(m);
|
|
128
|
-
}, [c]),
|
|
128
|
+
}, [c]), F = [
|
|
129
129
|
{ key: "name", header: "name" },
|
|
130
130
|
{ key: "value", header: "value" },
|
|
131
131
|
{ key: "form", header: "form" }
|
|
132
|
-
], O =
|
|
132
|
+
], O = D || !v, _ = g && v, U = (!c || c.entry?.length === 0 || p.length === 0) && v, q = _ ? o("ERROR_FETCHING_OBSERVATIONS") : null, L = U ? o("NO_OBSERVATIONS_FOUND") : void 0, C = R.length > 0 && !O && !_, E = d.titleTranslationKey, y = E ? o(E) : "";
|
|
133
133
|
return /* @__PURE__ */ T(
|
|
134
134
|
"div",
|
|
135
135
|
{
|
|
@@ -151,7 +151,7 @@ const A = (t, d, n, u, r) => {
|
|
|
151
151
|
C ? /* @__PURE__ */ l(re, { groupedData: R, title: y }) : /* @__PURE__ */ l(
|
|
152
152
|
M,
|
|
153
153
|
{
|
|
154
|
-
headers:
|
|
154
|
+
headers: F,
|
|
155
155
|
rows: [],
|
|
156
156
|
ariaLabel: o("OBSERVATIONS"),
|
|
157
157
|
loading: O,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { s as we, t as z, v as xt, y as B, k as q, p as y, P as Ro, B as ye, D as R, F as _, H as k, L as N, M as A, O as bs, R as ir, V as $e, _ as U, $ as Hn, a0 as Vn, a1 as dt, a2 as D, a3 as xs, a4 as cn, a5 as Be, a6 as ws, a7 as qt, a8 as zt, a9 as $s, aa as Cs, ab as $n, ac as Ss, ad as Nr, ae as Bt, af as zo, ag as ks, ah as Es, ai as j, aj as Ur, ak as Ms, al as Ds, am as sr, an as As, ao as Ts, ap as zn, aq as Fs, ar as Is, as as Z, at as Ps, au as Ls } from "./index-
|
|
1
|
+
import { s as we, t as z, v as xt, y as B, k as q, p as y, P as Ro, B as ye, D as R, F as _, H as k, L as N, M as A, O as bs, R as ir, V as $e, _ as U, $ as Hn, a0 as Vn, a1 as dt, a2 as D, a3 as xs, a4 as cn, a5 as Be, a6 as ws, a7 as qt, a8 as zt, a9 as $s, aa as Cs, ab as $n, ac as Ss, ad as Nr, ae as Bt, af as zo, ag as ks, ah as Es, ai as j, aj as Ur, ak as Ms, al as Ds, am as sr, an as As, ao as Ts, ap as zn, aq as Fs, ar as Is, as as Z, at as Ps, au as Ls } from "./index-D2PxipnA.js";
|
|
2
2
|
var Os = (e) => e != null, qs = (e) => e.filter(Os);
|
|
3
3
|
function _s(e) {
|
|
4
4
|
return (...t) => {
|
|
@@ -157291,7 +157291,7 @@ function cT0(t, e, r) {
|
|
|
157291
157291
|
return o;
|
|
157292
157292
|
};
|
|
157293
157293
|
}
|
|
157294
|
-
Ht(() => Promise.resolve().then(() => FN0)), Ht(() => Promise.resolve().then(() => wL0)), Ht(() => Promise.resolve().then(() => WL0)), Ht(() => Promise.resolve().then(() => eC0)), Ht(() => import("./DocumentsTable-
|
|
157294
|
+
Ht(() => Promise.resolve().then(() => FN0)), Ht(() => Promise.resolve().then(() => wL0)), Ht(() => Promise.resolve().then(() => WL0)), Ht(() => Promise.resolve().then(() => eC0)), Ht(() => import("./DocumentsTable-7_5Znf7I-DJXm4Ij8.js")), Ht(() => Promise.resolve().then(() => R_0)), Ht(() => import("./FormsTable-BR7769_Y-B9nlx4cc.js")), Ht(() => Promise.resolve().then(() => s_0)), Ht(() => import("./Observations-3hCgfnVw-CzbXW8dF.js")), Ht(
|
|
157295
157295
|
() => Promise.resolve().then(() => U_0)
|
|
157296
157296
|
), Ht(
|
|
157297
157297
|
() => Promise.resolve().then(() => _A0)
|
|
@@ -159130,7 +159130,7 @@ var FP0 = (t, e = !1) => {
|
|
|
159130
159130
|
const e = MR1(() => {
|
|
159131
159131
|
const r = this, [o] = this.#n, [a] = this.#o, [c] = this.#a, [i] = this.#c, [l] = this.#p, [s] = this.#t;
|
|
159132
159132
|
let d;
|
|
159133
|
-
return this.#i ? d = this.#i : (d = vR1(() => import("./LNWAZHJI-
|
|
159133
|
+
return this.#i ? d = this.#i : (d = vR1(() => import("./LNWAZHJI-BRyrXitg.js")), this.#i = d), ZR1(this.#h, this.#r), wR1(d, gR1({
|
|
159134
159134
|
get queryFlavor() {
|
|
159135
159135
|
return r.#d;
|
|
159136
159136
|
},
|
|
@@ -159228,7 +159228,7 @@ var FP0 = (t, e = !1) => {
|
|
|
159228
159228
|
const e = MR1(() => {
|
|
159229
159229
|
const r = this, [o] = this.#n, [a] = this.#o, [c] = this.#a, [i] = this.#c, [l] = this.#p, [s] = this.#t, [d] = this.#i;
|
|
159230
159230
|
let u;
|
|
159231
|
-
return this.#l ? u = this.#l : (u = vR1(() => import("./MWZ6AO7Z-
|
|
159231
|
+
return this.#l ? u = this.#l : (u = vR1(() => import("./MWZ6AO7Z-D2o1G7C_.js")), this.#l = u), ZR1(this.#h, this.#r), wR1(u, gR1({
|
|
159232
159232
|
get queryFlavor() {
|
|
159233
159233
|
return r.#d;
|
|
159234
159234
|
},
|
package/dist/index.js
CHANGED