@bahmni/home-app 0.0.1-dev.373 → 0.0.1-dev.374
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-DvzP4zA0-Ctn06ZiV.js → DocumentsTable-Cx3H-xNc-DXm8s6bY.js} +6 -6
- package/dist/{FormsTable-BexiFTEe-aR2EeaaS.js → FormsTable-BRgVe8lS-CLFnkEL2.js} +119 -107
- package/dist/{LNWAZHJI-Vc_o0Tiw.js → LNWAZHJI-B0_PmrgT.js} +2 -2
- package/dist/{MWZ6AO7Z-GBbhSrRz.js → MWZ6AO7Z-CsNValOD.js} +2 -2
- package/dist/{Observations-DIntvvSw-DlFe6p8y.js → Observations-BZ0HyAoB-CshXgU3u.js} +6 -6
- package/dist/{YPM2AS64-DNGYQwaN.js → YPM2AS64-T0eYli2V.js} +1 -1
- package/dist/{index-CptkFVlT.js → index-D7NmN6ZW.js} +105 -90
- package/dist/{index-BDA93bdX.js → index-DDyGV6fU.js} +1 -1
- package/dist/index.js +1 -1
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as r, jsxs as p, Fragment as K } from "react/jsx-runtime";
|
|
2
|
-
import { g as Q, u as W, G as Y, x as J, a as X, b as Z, W as ee, p as te } from "./index-
|
|
2
|
+
import { g as Q, u as W, G as Y, x as J, a as X, b as Z, W as ee, p as te } from "./index-D7NmN6ZW.js";
|
|
3
3
|
import { useQuery as ae } from "@tanstack/react-query";
|
|
4
4
|
import { useState as l, useCallback as h, useEffect as I, useMemo as _ } from "react";
|
|
5
5
|
const ne = "DocumentsTable-module_documentsTableBody__6iR3w", oe = "DocumentsTable-module_viewAttachmentsLink__aQ1on", re = "DocumentsTable-module_documentViewerContainer__F5m8D", de = "DocumentsTable-module_attachmentItem__17KA7", se = "DocumentsTable-module_attachmentCounter__WFiI3", me = "DocumentsTable-module_attachmentError__RI4U2", ce = "DocumentsTable-module_documentIframe__ptq5I", le = "DocumentsTable-module_documentImage__KQVgS", d = {
|
|
@@ -44,7 +44,7 @@ const Te = [
|
|
|
44
44
|
w(!1), U(null), O(/* @__PURE__ */ new Set());
|
|
45
45
|
}, []), v = h((e) => {
|
|
46
46
|
O((t) => new Set(t).add(e));
|
|
47
|
-
}, []), { data: i, isLoading: q, isError:
|
|
47
|
+
}, []), { data: i, isLoading: q, isError: b, error: y } = ae({
|
|
48
48
|
queryKey: [
|
|
49
49
|
"documents",
|
|
50
50
|
E,
|
|
@@ -65,12 +65,12 @@ const Te = [
|
|
|
65
65
|
}, [i]), I(() => {
|
|
66
66
|
C(1), A(void 0);
|
|
67
67
|
}, [E]), I(() => {
|
|
68
|
-
|
|
68
|
+
b && L({
|
|
69
69
|
title: n("ERROR_DEFAULT_TITLE"),
|
|
70
|
-
message:
|
|
70
|
+
message: y?.message ?? "",
|
|
71
71
|
type: "error"
|
|
72
72
|
});
|
|
73
|
-
}, [
|
|
73
|
+
}, [b, y, L, n]), I(() => {
|
|
74
74
|
const e = new AbortController();
|
|
75
75
|
return (async () => {
|
|
76
76
|
if (!s || !o) return;
|
|
@@ -145,7 +145,7 @@ const Te = [
|
|
|
145
145
|
ariaLabel: n("DOCUMENTS_TABLE_HEADING"),
|
|
146
146
|
rows: x,
|
|
147
147
|
loading: q,
|
|
148
|
-
errorStateMessage:
|
|
148
|
+
errorStateMessage: b ? y?.message : null,
|
|
149
149
|
sortable: P,
|
|
150
150
|
emptyStateMessage: n("DOCUMENTS_NO_RECORDS"),
|
|
151
151
|
renderCell: z,
|
|
@@ -1,94 +1,94 @@
|
|
|
1
|
-
import { jsx as i, jsxs as
|
|
2
|
-
import { u as
|
|
3
|
-
import { useQueryClient as De, useQuery as
|
|
4
|
-
import { useState as G, useMemo as d, useCallback as
|
|
5
|
-
const
|
|
6
|
-
formsTableBody:
|
|
7
|
-
modalHeading:
|
|
1
|
+
import { jsx as i, jsxs as K, Fragment as ge } from "react/jsx-runtime";
|
|
2
|
+
import { u as ye, g as be, H as Oe, Q as Te, f as Ne, c as Ie, d as Ee, M as Ae, t as _e, m as ve, S as Se, T as Fe, s as P, b as Me, e as Q, n as Y, a as Re, W as z, I as Be, k as Ce, p as Le, J as Ue, P as ke } from "./index-D7NmN6ZW.js";
|
|
3
|
+
import { useQueryClient as De, useQuery as T } from "@tanstack/react-query";
|
|
4
|
+
import { useState as G, useMemo as d, useCallback as c } from "react";
|
|
5
|
+
const qe = "FormsTable-module_formsTableBody__SvGha", we = "FormsTable-module_modalHeading__wnTmA", He = "FormsTable-module_customAccordianItem__isszs", N = {
|
|
6
|
+
formsTableBody: qe,
|
|
7
|
+
modalHeading: we,
|
|
8
8
|
customAccordianItem: He
|
|
9
|
-
},
|
|
10
|
-
episodeOfCareUuids:
|
|
11
|
-
encounterUuids:
|
|
9
|
+
}, Ve = "startConsultation", Pe = ({
|
|
10
|
+
episodeOfCareUuids: M,
|
|
11
|
+
encounterUuids: m,
|
|
12
12
|
config: J,
|
|
13
13
|
disableActions: W = !1,
|
|
14
|
-
activeEncounterUuid:
|
|
14
|
+
activeEncounterUuid: p = null
|
|
15
15
|
}) => {
|
|
16
|
-
const { t: n } =
|
|
16
|
+
const { t: n } = ye(), u = be(), [g, R] = G(!1), [s, B] = G(null), {
|
|
17
17
|
numberOfVisits: X,
|
|
18
18
|
hideThumbnail: Z = !1,
|
|
19
19
|
forms: y
|
|
20
|
-
} = J ?? {}, ee =
|
|
21
|
-
|
|
22
|
-
), { userPrivileges:
|
|
23
|
-
|
|
24
|
-
|
|
20
|
+
} = J ?? {}, ee = Oe(
|
|
21
|
+
ke.EDIT_OBSERVATIONS
|
|
22
|
+
), { userPrivileges: b } = Te(), I = ee && !W && !!p, C = Ne(
|
|
23
|
+
M,
|
|
24
|
+
m
|
|
25
25
|
), re = De(), {
|
|
26
|
-
data:
|
|
26
|
+
data: L = [],
|
|
27
27
|
isLoading: U,
|
|
28
|
-
isError:
|
|
28
|
+
isError: k,
|
|
29
29
|
error: oe,
|
|
30
|
-
refetch:
|
|
31
|
-
} =
|
|
32
|
-
queryKey: ["forms",
|
|
33
|
-
queryFn: () =>
|
|
34
|
-
enabled: !!
|
|
35
|
-
}),
|
|
36
|
-
let e =
|
|
37
|
-
return
|
|
38
|
-
(r) =>
|
|
30
|
+
refetch: te
|
|
31
|
+
} = T({
|
|
32
|
+
queryKey: ["forms", u, M],
|
|
33
|
+
queryFn: () => Ie(u, void 0, X),
|
|
34
|
+
enabled: !!u && !C
|
|
35
|
+
}), D = d(() => {
|
|
36
|
+
let e = L;
|
|
37
|
+
return m && m.length > 0 && (e = e.filter(
|
|
38
|
+
(r) => m.includes(r.encounterUuid)
|
|
39
39
|
)), Array.isArray(y) && y.length > 0 && (e = e.filter(
|
|
40
40
|
(r) => y.some((o) => o.toLowerCase() === r.formName.toLowerCase())
|
|
41
41
|
)), e;
|
|
42
|
-
}, [
|
|
42
|
+
}, [L, m, y]), { data: O = [] } = T({
|
|
43
43
|
queryKey: ["observationForms"],
|
|
44
|
-
queryFn: () =>
|
|
45
|
-
}), q =
|
|
44
|
+
queryFn: () => Ee()
|
|
45
|
+
}), q = c(
|
|
46
46
|
(e) => {
|
|
47
|
-
const r =
|
|
47
|
+
const r = O.find((a) => a.name === e);
|
|
48
48
|
if (!r?.privileges || r.privileges.length === 0) return !0;
|
|
49
|
-
if (!
|
|
50
|
-
const o = new Set(
|
|
49
|
+
if (!b || b.length === 0) return !1;
|
|
50
|
+
const o = new Set(b.map((a) => a.name));
|
|
51
51
|
return r.privileges.some(
|
|
52
52
|
(a) => o.has(a.privilegeName) && a.editable
|
|
53
53
|
);
|
|
54
54
|
},
|
|
55
|
-
[
|
|
56
|
-
), f =
|
|
57
|
-
(e) => !
|
|
58
|
-
[
|
|
59
|
-
),
|
|
60
|
-
(e) =>
|
|
61
|
-
[
|
|
55
|
+
[O, b]
|
|
56
|
+
), f = c(
|
|
57
|
+
(e) => !p || e.encounterUuid !== p ? !1 : q(e.formName),
|
|
58
|
+
[p, q]
|
|
59
|
+
), w = c(
|
|
60
|
+
(e) => O.find((r) => r.name === e)?.uuid,
|
|
61
|
+
[O]
|
|
62
62
|
), E = d(() => {
|
|
63
63
|
if (s)
|
|
64
|
-
return
|
|
65
|
-
}, [s,
|
|
66
|
-
data:
|
|
67
|
-
isLoading:
|
|
64
|
+
return w(s.formName);
|
|
65
|
+
}, [s, w]), {
|
|
66
|
+
data: l,
|
|
67
|
+
isLoading: ae,
|
|
68
68
|
isError: se,
|
|
69
69
|
error: A
|
|
70
|
-
} =
|
|
70
|
+
} = T({
|
|
71
71
|
queryKey: ["formMetadata", E],
|
|
72
|
-
queryFn: () =>
|
|
73
|
-
enabled: !!E &&
|
|
72
|
+
queryFn: () => Ae(E),
|
|
73
|
+
enabled: !!E && g
|
|
74
74
|
}), {
|
|
75
75
|
data: _,
|
|
76
76
|
isLoading: ne,
|
|
77
77
|
isError: ie,
|
|
78
78
|
error: v
|
|
79
|
-
} =
|
|
79
|
+
} = T({
|
|
80
80
|
queryKey: ["formsEncounterFHIR", s?.encounterUuid],
|
|
81
|
-
queryFn: () =>
|
|
82
|
-
enabled: !!s?.encounterUuid &&
|
|
81
|
+
queryFn: () => _e(s.encounterUuid),
|
|
82
|
+
enabled: !!s?.encounterUuid && g
|
|
83
83
|
});
|
|
84
|
-
|
|
84
|
+
ve(
|
|
85
85
|
(e) => {
|
|
86
|
-
e.patientUUID ===
|
|
86
|
+
e.patientUUID === u && (te(), re.invalidateQueries({ queryKey: ["formsEncounterFHIR"] }));
|
|
87
87
|
},
|
|
88
|
-
[
|
|
88
|
+
[u]
|
|
89
89
|
);
|
|
90
|
-
const de = d(() => !_?.entry || !s?.formName ? [] : _.entry.filter((e) => e.resource?.resourceType === "Observation").map((e) => e.resource).filter((e) =>
|
|
91
|
-
if (!
|
|
90
|
+
const de = d(() => !_?.entry || !s?.formName ? [] : _.entry.filter((e) => e.resource?.resourceType === "Observation").map((e) => e.resource).filter((e) => Se(e) ? Fe(e)?.toLowerCase() === s.formName.toLowerCase() : !0), [_, s?.formName]), le = d(() => {
|
|
91
|
+
if (!l?.schema) return;
|
|
92
92
|
const e = [], r = (o) => {
|
|
93
93
|
(o ?? []).forEach((a) => {
|
|
94
94
|
const t = a;
|
|
@@ -96,10 +96,10 @@ const ke = "FormsTable-module_formsTableBody__SvGha", qe = "FormsTable-module_mo
|
|
|
96
96
|
});
|
|
97
97
|
};
|
|
98
98
|
return r(
|
|
99
|
-
|
|
99
|
+
l.schema.controls ?? []
|
|
100
100
|
), e.length > 0 ? e : void 0;
|
|
101
|
-
}, [
|
|
102
|
-
if (!
|
|
101
|
+
}, [l]), ce = d(() => {
|
|
102
|
+
if (!l?.schema) return;
|
|
103
103
|
const e = {}, r = (o, a) => {
|
|
104
104
|
for (const t of o)
|
|
105
105
|
if (t.type === "section") {
|
|
@@ -109,34 +109,45 @@ const ke = "FormsTable-module_formsTableBody__SvGha", qe = "FormsTable-module_mo
|
|
|
109
109
|
t.id != null && a && (e[String(t.id)] = a), t.controls && r(t.controls, a);
|
|
110
110
|
};
|
|
111
111
|
return r(
|
|
112
|
-
|
|
112
|
+
l.schema.controls ?? [],
|
|
113
113
|
null
|
|
114
114
|
), Object.keys(e).length > 0 ? e : void 0;
|
|
115
|
-
}, [
|
|
115
|
+
}, [l]), me = d(() => {
|
|
116
|
+
if (!l?.schema) return;
|
|
117
|
+
const e = {}, r = (o) => {
|
|
118
|
+
(o ?? []).forEach((a) => {
|
|
119
|
+
const t = a;
|
|
120
|
+
t.concept?.uuid && t.concept?.datatype && (e[t.concept.uuid] = t.concept.datatype), t.controls && r(t.controls);
|
|
121
|
+
});
|
|
122
|
+
};
|
|
123
|
+
return r(
|
|
124
|
+
l.schema.controls ?? []
|
|
125
|
+
), Object.keys(e).length > 0 ? e : void 0;
|
|
126
|
+
}, [l]), ue = d(() => {
|
|
116
127
|
if (A)
|
|
117
|
-
return
|
|
128
|
+
return P(A).message;
|
|
118
129
|
if (v)
|
|
119
|
-
return
|
|
120
|
-
}, [A, v]),
|
|
130
|
+
return P(v).message;
|
|
131
|
+
}, [A, v]), h = d(
|
|
121
132
|
() => [
|
|
122
133
|
{ key: "recordedOn", header: n("RECORDED_ON") },
|
|
123
134
|
{ key: "recordedBy", header: n("RECORDED_BY") }
|
|
124
135
|
],
|
|
125
136
|
[n]
|
|
126
|
-
),
|
|
127
|
-
() => [...
|
|
128
|
-
[
|
|
129
|
-
),
|
|
130
|
-
(e) => I && e.some((r) => f(r)) ?
|
|
131
|
-
[I, f,
|
|
132
|
-
),
|
|
137
|
+
), H = d(
|
|
138
|
+
() => [...h, { key: "actions", header: n("ACTIONS") }],
|
|
139
|
+
[h, n]
|
|
140
|
+
), fe = c(
|
|
141
|
+
(e) => I && e.some((r) => f(r)) ? H : h,
|
|
142
|
+
[I, f, H, h]
|
|
143
|
+
), he = h, pe = d(
|
|
133
144
|
() => [
|
|
134
145
|
{ key: "recordedOn", sortable: !0 },
|
|
135
146
|
{ key: "recordedBy", sortable: !0 }
|
|
136
147
|
],
|
|
137
148
|
[]
|
|
138
149
|
), V = d(() => {
|
|
139
|
-
const e =
|
|
150
|
+
const e = D.reduce(
|
|
140
151
|
(r, o) => {
|
|
141
152
|
const a = o.formName;
|
|
142
153
|
r[a] ??= [];
|
|
@@ -144,7 +155,7 @@ const ke = "FormsTable-module_formsTableBody__SvGha", qe = "FormsTable-module_mo
|
|
|
144
155
|
return r[a].push({
|
|
145
156
|
id: o.encounterUuid,
|
|
146
157
|
formName: o.formName,
|
|
147
|
-
recordedOn:
|
|
158
|
+
recordedOn: Me(o.encounterDateTime, n, !0).formattedResult,
|
|
148
159
|
recordedBy: t ?? "--",
|
|
149
160
|
encounterDateTime: o.encounterDateTime,
|
|
150
161
|
encounterUuid: o.encounterUuid
|
|
@@ -160,13 +171,13 @@ const ke = "FormsTable-module_formsTableBody__SvGha", qe = "FormsTable-module_mo
|
|
|
160
171
|
)
|
|
161
172
|
})
|
|
162
173
|
).sort((r, o) => r.formName.localeCompare(o.formName));
|
|
163
|
-
}, [
|
|
174
|
+
}, [D, n]), $ = c((e) => {
|
|
164
175
|
B(e), R(!0);
|
|
165
|
-
}, []),
|
|
176
|
+
}, []), j = c(() => {
|
|
166
177
|
R(!1), B(null);
|
|
167
|
-
}, []), S =
|
|
178
|
+
}, []), S = c((e) => {
|
|
168
179
|
globalThis.dispatchEvent(
|
|
169
|
-
new CustomEvent(
|
|
180
|
+
new CustomEvent(Ve, {
|
|
170
181
|
detail: {
|
|
171
182
|
editOnly: "observationForms",
|
|
172
183
|
editTitle: "EDIT_OBSERVATION_FORM_TITLE",
|
|
@@ -176,23 +187,23 @@ const ke = "FormsTable-module_formsTableBody__SvGha", qe = "FormsTable-module_mo
|
|
|
176
187
|
}
|
|
177
188
|
})
|
|
178
189
|
);
|
|
179
|
-
}, []),
|
|
190
|
+
}, []), x = c(
|
|
180
191
|
(e, r) => {
|
|
181
192
|
switch (r) {
|
|
182
193
|
case "recordedOn":
|
|
183
|
-
return /* @__PURE__ */ i(
|
|
194
|
+
return /* @__PURE__ */ i(Re, { onClick: () => $(e), children: e.recordedOn });
|
|
184
195
|
case "recordedBy":
|
|
185
196
|
return e.recordedBy;
|
|
186
197
|
case "actions":
|
|
187
198
|
return f(e) ? /* @__PURE__ */ i(
|
|
188
|
-
|
|
199
|
+
Q,
|
|
189
200
|
{
|
|
190
201
|
label: n("EDIT_OBSERVATION_FORM"),
|
|
191
202
|
kind: "ghost",
|
|
192
203
|
size: "sm",
|
|
193
204
|
testId: `edit-form-${e.encounterUuid}`,
|
|
194
205
|
onClick: () => S(e),
|
|
195
|
-
children: /* @__PURE__ */ i(
|
|
206
|
+
children: /* @__PURE__ */ i(Y, {})
|
|
196
207
|
}
|
|
197
208
|
) : null;
|
|
198
209
|
default:
|
|
@@ -201,41 +212,41 @@ const ke = "FormsTable-module_formsTableBody__SvGha", qe = "FormsTable-module_mo
|
|
|
201
212
|
},
|
|
202
213
|
[$, S, f, n]
|
|
203
214
|
);
|
|
204
|
-
return /* @__PURE__ */
|
|
205
|
-
/* @__PURE__ */ i("div", { id: "forms-table", "data-testid": "forms-table", children: U ||
|
|
206
|
-
|
|
215
|
+
return /* @__PURE__ */ K(ge, { children: [
|
|
216
|
+
/* @__PURE__ */ i("div", { id: "forms-table", "data-testid": "forms-table", children: U || k || V.length === 0 || C ? /* @__PURE__ */ i(
|
|
217
|
+
z,
|
|
207
218
|
{
|
|
208
|
-
headers:
|
|
219
|
+
headers: he,
|
|
209
220
|
ariaLabel: n("FORMS_HEADING"),
|
|
210
221
|
rows: [],
|
|
211
222
|
loading: U,
|
|
212
|
-
errorStateMessage:
|
|
223
|
+
errorStateMessage: k ? oe?.message : void 0,
|
|
213
224
|
emptyStateMessage: n("FORMS_UNAVAILABLE"),
|
|
214
|
-
renderCell:
|
|
215
|
-
className:
|
|
225
|
+
renderCell: x,
|
|
226
|
+
className: N.formsTableBody,
|
|
216
227
|
dataTestId: "forms-table"
|
|
217
228
|
}
|
|
218
|
-
) : /* @__PURE__ */ i(
|
|
219
|
-
const { formName: o, records: a } = e, t =
|
|
229
|
+
) : /* @__PURE__ */ i(Be, { align: "start", children: V.map((e, r) => {
|
|
230
|
+
const { formName: o, records: a } = e, t = fe(a);
|
|
220
231
|
return /* @__PURE__ */ i(
|
|
221
|
-
|
|
232
|
+
Ce,
|
|
222
233
|
{
|
|
223
234
|
title: o,
|
|
224
|
-
className:
|
|
235
|
+
className: N.customAccordianItem,
|
|
225
236
|
testId: `accordian-title-${o}`,
|
|
226
237
|
open: r === 0,
|
|
227
238
|
children: /* @__PURE__ */ i(
|
|
228
|
-
|
|
239
|
+
z,
|
|
229
240
|
{
|
|
230
241
|
headers: t,
|
|
231
242
|
ariaLabel: n("FORMS_HEADING"),
|
|
232
243
|
rows: a,
|
|
233
244
|
loading: !1,
|
|
234
245
|
errorStateMessage: "",
|
|
235
|
-
sortable:
|
|
246
|
+
sortable: pe,
|
|
236
247
|
emptyStateMessage: n("FORMS_UNAVAILABLE"),
|
|
237
|
-
renderCell:
|
|
238
|
-
className:
|
|
248
|
+
renderCell: x,
|
|
249
|
+
className: N.formsTableBody,
|
|
239
250
|
dataTestId: `forms-table-${o}`
|
|
240
251
|
}
|
|
241
252
|
)
|
|
@@ -243,26 +254,26 @@ const ke = "FormsTable-module_formsTableBody__SvGha", qe = "FormsTable-module_mo
|
|
|
243
254
|
o
|
|
244
255
|
);
|
|
245
256
|
}) }) }),
|
|
246
|
-
|
|
257
|
+
g && s && /* @__PURE__ */ i(
|
|
247
258
|
Le,
|
|
248
259
|
{
|
|
249
260
|
id: "modalIdForActionAreaLayout",
|
|
250
261
|
portalId: "main-display-area",
|
|
251
|
-
open:
|
|
252
|
-
onRequestClose:
|
|
253
|
-
modalHeading: /* @__PURE__ */
|
|
262
|
+
open: g,
|
|
263
|
+
onRequestClose: j,
|
|
264
|
+
modalHeading: /* @__PURE__ */ K("div", { className: N.modalHeading, children: [
|
|
254
265
|
/* @__PURE__ */ i("span", { children: s.formName }),
|
|
255
266
|
I && f(s) && /* @__PURE__ */ i(
|
|
256
|
-
|
|
267
|
+
Q,
|
|
257
268
|
{
|
|
258
269
|
label: n("EDIT_OBSERVATION_FORM"),
|
|
259
270
|
kind: "ghost",
|
|
260
271
|
size: "sm",
|
|
261
272
|
testId: `edit-form-modal-${s.encounterUuid}`,
|
|
262
273
|
onClick: () => {
|
|
263
|
-
|
|
274
|
+
j(), S(s);
|
|
264
275
|
},
|
|
265
|
-
children: /* @__PURE__ */ i(
|
|
276
|
+
children: /* @__PURE__ */ i(Y, {})
|
|
266
277
|
}
|
|
267
278
|
)
|
|
268
279
|
] }),
|
|
@@ -271,17 +282,18 @@ const ke = "FormsTable-module_formsTableBody__SvGha", qe = "FormsTable-module_mo
|
|
|
271
282
|
size: "md",
|
|
272
283
|
testId: "form-details-modal",
|
|
273
284
|
children: /* @__PURE__ */ i(
|
|
274
|
-
|
|
285
|
+
Ue,
|
|
275
286
|
{
|
|
276
287
|
observations: de,
|
|
277
|
-
isLoading:
|
|
288
|
+
isLoading: ae || ne,
|
|
278
289
|
isError: se || ie,
|
|
279
290
|
errorMessage: ue,
|
|
280
291
|
emptyStateMessage: n("NO_FORM_DATA_AVAILABLE"),
|
|
281
292
|
testIdPrefix: s.formName,
|
|
282
293
|
hideThumbnail: Z,
|
|
283
294
|
controlOrder: le,
|
|
284
|
-
sectionMap:
|
|
295
|
+
sectionMap: ce,
|
|
296
|
+
conceptDatatypeMap: me
|
|
285
297
|
}
|
|
286
298
|
)
|
|
287
299
|
}
|
|
@@ -289,5 +301,5 @@ const ke = "FormsTable-module_formsTableBody__SvGha", qe = "FormsTable-module_mo
|
|
|
289
301
|
] });
|
|
290
302
|
};
|
|
291
303
|
export {
|
|
292
|
-
|
|
304
|
+
Pe as default
|
|
293
305
|
};
|
|
@@ -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 { a0 as d, a1 as f, a2 as e } from "./index-
|
|
1
|
+
import { c, T as l, P as m, a as u, D as v, Q as i } from "./YPM2AS64-T0eYli2V.js";
|
|
2
|
+
import { a0 as d, a1 as f, a2 as e } from "./index-D7NmN6ZW.js";
|
|
3
3
|
var p = (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 { a0 as v, a1 as C, a2 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-T0eYli2V.js";
|
|
2
|
+
import { a0 as v, a1 as C, a2 as e } from "./index-D7NmN6ZW.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 I, jsx as u } from "react/jsx-runtime";
|
|
2
|
-
import { g as
|
|
2
|
+
import { g as q, G as K, u as N, V as G, h as k, m as w, R as H, D as M, i as Q, j, W as x, O as z, r as D, L as P, E as W, Z, l as J, o as X, q as ee } from "./index-D7NmN6ZW.js";
|
|
3
3
|
import { useQueries as ae, useQuery as te } from "@tanstack/react-query";
|
|
4
4
|
import { useRef as se, useEffect as $, useMemo as E } from "react";
|
|
5
5
|
const L = (a, n, d, l, b, r) => {
|
|
@@ -113,7 +113,7 @@ const L = (a, n, d, l, b, r) => {
|
|
|
113
113
|
conceptNames: d = [],
|
|
114
114
|
conceptUuid: l = [],
|
|
115
115
|
hideThumbnail: b = !1
|
|
116
|
-
} = n, r = se(/* @__PURE__ */ new Set()), t =
|
|
116
|
+
} = n, r = se(/* @__PURE__ */ new Set()), t = q(), { addNotification: s } = K(), { t: i } = N(), o = ae({
|
|
117
117
|
queries: d.map((e) => ({
|
|
118
118
|
queryKey: de(e),
|
|
119
119
|
queryFn: () => G(e),
|
|
@@ -142,7 +142,7 @@ const L = (a, n, d, l, b, r) => {
|
|
|
142
142
|
queryFn: () => k(t, p),
|
|
143
143
|
enabled: !!t && p.length > 0 && y
|
|
144
144
|
});
|
|
145
|
-
|
|
145
|
+
w(
|
|
146
146
|
(e) => {
|
|
147
147
|
e.patientUUID === t && e.updatedConcepts.size > 0 && [...e.updatedConcepts.keys()].some(
|
|
148
148
|
(h) => p.includes(h)
|
|
@@ -158,8 +158,8 @@ const L = (a, n, d, l, b, r) => {
|
|
|
158
158
|
}, [O]);
|
|
159
159
|
const g = E(() => {
|
|
160
160
|
if (!c) return [];
|
|
161
|
-
const e =
|
|
162
|
-
return
|
|
161
|
+
const e = H(c), h = M(e);
|
|
162
|
+
return Q(h);
|
|
163
163
|
}, [c]), A = [
|
|
164
164
|
{ key: "name", header: "name" },
|
|
165
165
|
{ key: "value", header: "value" },
|
|
@@ -174,7 +174,7 @@ const L = (a, n, d, l, b, r) => {
|
|
|
174
174
|
className: S.observations,
|
|
175
175
|
children: [
|
|
176
176
|
/* @__PURE__ */ u(
|
|
177
|
-
|
|
177
|
+
j,
|
|
178
178
|
{
|
|
179
179
|
id: "observations-title",
|
|
180
180
|
testId: v ? `observations-title-${R}` : "observations-title",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a3 as we, a4 as z, a5 as xt, a6 as B, a1 as q, a2 as y, a7 as Ro, a8 as ye, a9 as R, aa as _, ab as k, ac as N, ad as A, ae as bs, af as ir, ag as $e, ah as G, ai as Hn, aj as Vn, ak as dt, al as D, am as xs, an as cn, ao as Be, ap as ws, aq as qt, ar as zt, as as $s, at as Cs, au as $n, av as Ss, aw as Nr, ax as Bt, ay as zo, az as ks, aA as Es, aB as j, aC as Gr, aD as Ms, aE as Ds, aF as sr, aG as As, aH as Ts, aI as zn, aJ as Fs, aK as Is, aL as Z, aM as Ps, aN as Ls } from "./index-
|
|
1
|
+
import { a3 as we, a4 as z, a5 as xt, a6 as B, a1 as q, a2 as y, a7 as Ro, a8 as ye, a9 as R, aa as _, ab as k, ac as N, ad as A, ae as bs, af as ir, ag as $e, ah as G, ai as Hn, aj as Vn, ak as dt, al as D, am as xs, an as cn, ao as Be, ap as ws, aq as qt, ar as zt, as as $s, at as Cs, au as $n, av as Ss, aw as Nr, ax as Bt, ay as zo, az as ks, aA as Es, aB as j, aC as Gr, aD as Ms, aE as Ds, aF as sr, aG as As, aH as Ts, aI as zn, aJ as Fs, aK as Is, aL as Z, aM as Ps, aN as Ls } from "./index-D7NmN6ZW.js";
|
|
2
2
|
var Os = (e) => e != null, qs = (e) => e.filter(Os);
|
|
3
3
|
function _s(e) {
|
|
4
4
|
return (...t) => {
|
|
@@ -99141,17 +99141,22 @@ const QK1 = (t) => t ? t.extension?.find(
|
|
|
99141
99141
|
const r = e.split("/")[0].split("^").pop()?.replace(/\.\d+$/, "");
|
|
99142
99142
|
if (r)
|
|
99143
99143
|
return r;
|
|
99144
|
-
}, fyt = (t, e) => t?.date ? n2(t.date, e).formattedResult : e("DATE_ERROR_PARSE"), IE = (t, e) => {
|
|
99144
|
+
}, fyt = (t, e) => t?.date ? n2(t.date, e).formattedResult : e("DATE_ERROR_PARSE"), IE = (t, e, r) => {
|
|
99145
99145
|
if (t.observationValue?.value == null)
|
|
99146
99146
|
return "";
|
|
99147
|
-
const { value:
|
|
99148
|
-
if (
|
|
99149
|
-
|
|
99150
|
-
|
|
99151
|
-
|
|
99152
|
-
|
|
99153
|
-
|
|
99154
|
-
|
|
99147
|
+
const { value: o, unit: a, type: c } = t.observationValue;
|
|
99148
|
+
if (c === "dateTime") {
|
|
99149
|
+
const l = t.conceptId ? r?.[t.conceptId] : void 0, i = (s) => {
|
|
99150
|
+
const d = l != null ? l === "Datetime" : /T\d{2}:\d{2}:\d{2}/.test(s) && !/T00:00:00/.test(s);
|
|
99151
|
+
return n2(s, e, d).formattedResult;
|
|
99152
|
+
};
|
|
99153
|
+
return String(o).split(", ").map(i).join(", ");
|
|
99154
|
+
}
|
|
99155
|
+
if (c === "boolean") {
|
|
99156
|
+
const l = (i) => i === !0 || i === "true" ? e ? e("YES") : "Yes" : e ? e("NO") : "No";
|
|
99157
|
+
return typeof o == "boolean" ? l(o) : String(o).split(", ").map(l).join(", ");
|
|
99158
|
+
}
|
|
99159
|
+
return a ? `${o} ${a}` : String(o);
|
|
99155
99160
|
}, kc0 = (t) => {
|
|
99156
99161
|
const e = t.display;
|
|
99157
99162
|
if (!t.observationValue)
|
|
@@ -99309,53 +99314,55 @@ const Ic0 = "ObservationsRenderer-module_resultsContainer__xvAwi", Bc0 = "Observ
|
|
|
99309
99314
|
depth: e = 0,
|
|
99310
99315
|
memberIndex: r = 0,
|
|
99311
99316
|
testIdPrefix: o = "",
|
|
99312
|
-
hideThumbnail: a = !1
|
|
99317
|
+
hideThumbnail: a = !1,
|
|
99318
|
+
conceptDatatypeMap: c
|
|
99313
99319
|
}) => {
|
|
99314
|
-
const { t:
|
|
99315
|
-
if (
|
|
99320
|
+
const { t: l } = X1(), i = t.members && t.members.length > 0, s = t.display, d = o ? `${o}-` : "";
|
|
99321
|
+
if (i)
|
|
99316
99322
|
return /* @__PURE__ */ Ge(
|
|
99317
99323
|
"div",
|
|
99318
99324
|
{
|
|
99319
99325
|
className: N2.nestedGroup,
|
|
99320
|
-
"data-testid": `${
|
|
99326
|
+
"data-testid": `${d}obs-nested-group-${s}-${r}`,
|
|
99321
99327
|
children: [
|
|
99322
99328
|
/* @__PURE__ */ ae(
|
|
99323
99329
|
"div",
|
|
99324
99330
|
{
|
|
99325
99331
|
className: N2.nestedGroupLabel,
|
|
99326
|
-
"data-testid": `${
|
|
99332
|
+
"data-testid": `${d}obs-nested-group-label-${s}-${r}`,
|
|
99327
99333
|
style: { paddingLeft: `${e * 16}px` },
|
|
99328
|
-
children:
|
|
99334
|
+
children: s
|
|
99329
99335
|
}
|
|
99330
99336
|
),
|
|
99331
99337
|
/* @__PURE__ */ ae(
|
|
99332
99338
|
"div",
|
|
99333
99339
|
{
|
|
99334
99340
|
className: N2.nestedGroupMembers,
|
|
99335
|
-
"data-testid": `${
|
|
99336
|
-
children: t.members?.map((
|
|
99341
|
+
"data-testid": `${d}obs-nested-group-members-${s}-${r}`,
|
|
99342
|
+
children: t.members?.map((M, w) => /* @__PURE__ */ ae(
|
|
99337
99343
|
PE,
|
|
99338
99344
|
{
|
|
99339
|
-
member:
|
|
99345
|
+
member: M,
|
|
99340
99346
|
depth: e + 1,
|
|
99341
|
-
memberIndex:
|
|
99347
|
+
memberIndex: w,
|
|
99342
99348
|
testIdPrefix: o,
|
|
99343
|
-
hideThumbnail: a
|
|
99349
|
+
hideThumbnail: a,
|
|
99350
|
+
conceptDatatypeMap: c
|
|
99344
99351
|
},
|
|
99345
|
-
|
|
99352
|
+
M.id
|
|
99346
99353
|
))
|
|
99347
99354
|
}
|
|
99348
99355
|
)
|
|
99349
99356
|
]
|
|
99350
99357
|
}
|
|
99351
99358
|
);
|
|
99352
|
-
const { rangeString:
|
|
99359
|
+
const { rangeString: u, isAbnormal: h } = YK1(t), f = IE(t, l, c), m = f ? BE(f, a) : null;
|
|
99353
99360
|
return /* @__PURE__ */ Ge(o0, { children: [
|
|
99354
99361
|
/* @__PURE__ */ Ge(
|
|
99355
99362
|
"div",
|
|
99356
99363
|
{
|
|
99357
99364
|
className: N2.memberRow,
|
|
99358
|
-
"data-testid": `${
|
|
99365
|
+
"data-testid": `${d}obs-member-row-${s}-${r}`,
|
|
99359
99366
|
style: { paddingLeft: `${e * 16}px` },
|
|
99360
99367
|
children: [
|
|
99361
99368
|
/* @__PURE__ */ Ge(
|
|
@@ -99363,12 +99370,12 @@ const Ic0 = "ObservationsRenderer-module_resultsContainer__xvAwi", Bc0 = "Observ
|
|
|
99363
99370
|
{
|
|
99364
99371
|
className: E2(
|
|
99365
99372
|
N2.memberLabel,
|
|
99366
|
-
|
|
99373
|
+
h ? N2.abnormalValue : ""
|
|
99367
99374
|
),
|
|
99368
|
-
"data-testid": `${
|
|
99375
|
+
"data-testid": `${d}obs-member-label-${s}-${r}`,
|
|
99369
99376
|
children: [
|
|
99370
|
-
/* @__PURE__ */ ae("span", { children:
|
|
99371
|
-
|
|
99377
|
+
/* @__PURE__ */ ae("span", { children: s }),
|
|
99378
|
+
u && /* @__PURE__ */ ae("p", { className: N2.rangeInfo, children: u })
|
|
99372
99379
|
]
|
|
99373
99380
|
}
|
|
99374
99381
|
),
|
|
@@ -99377,10 +99384,10 @@ const Ic0 = "ObservationsRenderer-module_resultsContainer__xvAwi", Bc0 = "Observ
|
|
|
99377
99384
|
{
|
|
99378
99385
|
className: E2(
|
|
99379
99386
|
N2.memberValue,
|
|
99380
|
-
|
|
99387
|
+
h ? N2.abnormalValue : ""
|
|
99381
99388
|
),
|
|
99382
|
-
"data-testid": `${
|
|
99383
|
-
children:
|
|
99389
|
+
"data-testid": `${d}obs-member-value-${s}-${r}`,
|
|
99390
|
+
children: m
|
|
99384
99391
|
}
|
|
99385
99392
|
)
|
|
99386
99393
|
]
|
|
@@ -99390,7 +99397,7 @@ const Ic0 = "ObservationsRenderer-module_resultsContainer__xvAwi", Bc0 = "Observ
|
|
|
99390
99397
|
"p",
|
|
99391
99398
|
{
|
|
99392
99399
|
className: N2.commentSection,
|
|
99393
|
-
"data-testid": `${
|
|
99400
|
+
"data-testid": `${d}obs-member-comment-${s}-${r}`,
|
|
99394
99401
|
style: { paddingLeft: `${e * 16}px` },
|
|
99395
99402
|
children: [
|
|
99396
99403
|
t.comment,
|
|
@@ -99399,49 +99406,54 @@ const Ic0 = "ObservationsRenderer-module_resultsContainer__xvAwi", Bc0 = "Observ
|
|
|
99399
99406
|
}
|
|
99400
99407
|
)
|
|
99401
99408
|
] });
|
|
99402
|
-
}, al0 = (t, e, r, o = "", a = !1) => {
|
|
99403
|
-
const
|
|
99409
|
+
}, al0 = (t, e, r, o = "", a = !1, c) => {
|
|
99410
|
+
const l = t.members && t.members.length > 0, { rangeString: i, isAbnormal: s } = YK1(t), d = IE(
|
|
99411
|
+
t,
|
|
99412
|
+
r,
|
|
99413
|
+
c
|
|
99414
|
+
), u = d ? BE(d, a) : null, h = o ? `${o}-` : "";
|
|
99404
99415
|
return /* @__PURE__ */ Ge(
|
|
99405
99416
|
"div",
|
|
99406
99417
|
{
|
|
99407
99418
|
className: N2.observation,
|
|
99408
|
-
"data-testid": `${
|
|
99419
|
+
"data-testid": `${h}observation-item-${t.display}-${e}`,
|
|
99409
99420
|
children: [
|
|
99410
99421
|
/* @__PURE__ */ Ge(
|
|
99411
99422
|
"div",
|
|
99412
99423
|
{
|
|
99413
|
-
className:
|
|
99414
|
-
"data-testid": `${
|
|
99424
|
+
className: l ? N2.groupContainer : N2.rowContainer,
|
|
99425
|
+
"data-testid": `${h}observation-container-${t.display}-${e}`,
|
|
99415
99426
|
children: [
|
|
99416
99427
|
/* @__PURE__ */ Ge(
|
|
99417
99428
|
"div",
|
|
99418
99429
|
{
|
|
99419
99430
|
className: E2(
|
|
99420
|
-
|
|
99421
|
-
!
|
|
99431
|
+
l ? N2.groupLabel : N2.rowLabel,
|
|
99432
|
+
!l && s ? N2.abnormalValue : ""
|
|
99422
99433
|
),
|
|
99423
|
-
"data-testid": `${
|
|
99434
|
+
"data-testid": `${h}observation-label-${t.display}-${e}`,
|
|
99424
99435
|
children: [
|
|
99425
99436
|
/* @__PURE__ */ ae("span", { children: t.display }),
|
|
99426
|
-
!
|
|
99437
|
+
!l && i && /* @__PURE__ */ ae("p", { className: N2.rangeInfo, children: i })
|
|
99427
99438
|
]
|
|
99428
99439
|
}
|
|
99429
99440
|
),
|
|
99430
|
-
|
|
99441
|
+
l ? /* @__PURE__ */ ae(
|
|
99431
99442
|
"div",
|
|
99432
99443
|
{
|
|
99433
99444
|
className: N2.groupMembers,
|
|
99434
|
-
"data-testid": `${
|
|
99435
|
-
children: t.members?.map((
|
|
99445
|
+
"data-testid": `${h}observation-group-members-${t.display}-${e}`,
|
|
99446
|
+
children: t.members?.map((f, m) => /* @__PURE__ */ ae(
|
|
99436
99447
|
PE,
|
|
99437
99448
|
{
|
|
99438
|
-
member:
|
|
99449
|
+
member: f,
|
|
99439
99450
|
depth: 0,
|
|
99440
|
-
memberIndex:
|
|
99451
|
+
memberIndex: m,
|
|
99441
99452
|
testIdPrefix: o,
|
|
99442
|
-
hideThumbnail: a
|
|
99453
|
+
hideThumbnail: a,
|
|
99454
|
+
conceptDatatypeMap: c
|
|
99443
99455
|
},
|
|
99444
|
-
|
|
99456
|
+
f.id
|
|
99445
99457
|
))
|
|
99446
99458
|
}
|
|
99447
99459
|
) : /* @__PURE__ */ ae(
|
|
@@ -99449,10 +99461,10 @@ const Ic0 = "ObservationsRenderer-module_resultsContainer__xvAwi", Bc0 = "Observ
|
|
|
99449
99461
|
{
|
|
99450
99462
|
className: E2(
|
|
99451
99463
|
N2.rowValue,
|
|
99452
|
-
|
|
99464
|
+
s ? N2.abnormalValue : ""
|
|
99453
99465
|
),
|
|
99454
|
-
"data-testid": `${
|
|
99455
|
-
children:
|
|
99466
|
+
"data-testid": `${h}observation-value-${t.display}-${e}`,
|
|
99467
|
+
children: u
|
|
99456
99468
|
}
|
|
99457
99469
|
)
|
|
99458
99470
|
]
|
|
@@ -99462,7 +99474,7 @@ const Ic0 = "ObservationsRenderer-module_resultsContainer__xvAwi", Bc0 = "Observ
|
|
|
99462
99474
|
"p",
|
|
99463
99475
|
{
|
|
99464
99476
|
className: N2.commentSection,
|
|
99465
|
-
"data-testid": `${
|
|
99477
|
+
"data-testid": `${h}observation-comment-${t.display}-${e}`,
|
|
99466
99478
|
children: [
|
|
99467
99479
|
t.comment,
|
|
99468
99480
|
t.encounter?.provider && ` - by ${t.encounter.provider}`
|
|
@@ -99483,13 +99495,14 @@ const Ic0 = "ObservationsRenderer-module_resultsContainer__xvAwi", Bc0 = "Observ
|
|
|
99483
99495
|
testIdPrefix: l = "",
|
|
99484
99496
|
hideThumbnail: i = !1,
|
|
99485
99497
|
controlOrder: s,
|
|
99486
|
-
sectionMap: d
|
|
99498
|
+
sectionMap: d,
|
|
99499
|
+
conceptDatatypeMap: u
|
|
99487
99500
|
}) => {
|
|
99488
|
-
const { t:
|
|
99501
|
+
const { t: h } = X1(), f = t1(() => {
|
|
99489
99502
|
if (t.length === 0) return [];
|
|
99490
|
-
const
|
|
99491
|
-
return XK1(
|
|
99492
|
-
}, [t, s]),
|
|
99503
|
+
const p = Sc0(t), g = s && s.length > 0 ? Rc0(p, s) : JK1(p);
|
|
99504
|
+
return XK1(g);
|
|
99505
|
+
}, [t, s]), m = [
|
|
99493
99506
|
{ key: "label", header: "label" },
|
|
99494
99507
|
{ key: "value", header: "value" }
|
|
99495
99508
|
];
|
|
@@ -99497,7 +99510,7 @@ const Ic0 = "ObservationsRenderer-module_resultsContainer__xvAwi", Bc0 = "Observ
|
|
|
99497
99510
|
return /* @__PURE__ */ ae(
|
|
99498
99511
|
F0,
|
|
99499
99512
|
{
|
|
99500
|
-
headers:
|
|
99513
|
+
headers: m,
|
|
99501
99514
|
rows: [],
|
|
99502
99515
|
loading: !0,
|
|
99503
99516
|
ariaLabel: "Loading observations",
|
|
@@ -99509,68 +99522,70 @@ const Ic0 = "ObservationsRenderer-module_resultsContainer__xvAwi", Bc0 = "Observ
|
|
|
99509
99522
|
return /* @__PURE__ */ ae(
|
|
99510
99523
|
F0,
|
|
99511
99524
|
{
|
|
99512
|
-
headers:
|
|
99525
|
+
headers: m,
|
|
99513
99526
|
rows: [],
|
|
99514
|
-
errorStateMessage: o ??
|
|
99527
|
+
errorStateMessage: o ?? h("ERROR_LOADING_OBSERVATIONS"),
|
|
99515
99528
|
ariaLabel: "Observations error",
|
|
99516
99529
|
className: E2(N2.fullWidth, c)
|
|
99517
99530
|
}
|
|
99518
99531
|
);
|
|
99519
|
-
if (
|
|
99532
|
+
if (f.length === 0)
|
|
99520
99533
|
return /* @__PURE__ */ ae(
|
|
99521
99534
|
F0,
|
|
99522
99535
|
{
|
|
99523
|
-
headers:
|
|
99536
|
+
headers: m,
|
|
99524
99537
|
rows: [],
|
|
99525
|
-
emptyStateMessage: a ??
|
|
99538
|
+
emptyStateMessage: a ?? h("NO_OBSERVATIONS_AVAILABLE"),
|
|
99526
99539
|
ariaLabel: "No observations",
|
|
99527
99540
|
className: E2(N2.fullWidth, c)
|
|
99528
99541
|
}
|
|
99529
99542
|
);
|
|
99530
|
-
const
|
|
99531
|
-
let
|
|
99532
|
-
|
|
99533
|
-
const
|
|
99534
|
-
|
|
99543
|
+
const M = [];
|
|
99544
|
+
let w = null;
|
|
99545
|
+
f.forEach((p, g) => {
|
|
99546
|
+
const C = p.sortId?.split("-")[0] ?? "", v = d?.[C] ?? null;
|
|
99547
|
+
v ? (w?.name !== v && (w = {
|
|
99535
99548
|
kind: "section",
|
|
99536
|
-
name:
|
|
99549
|
+
name: v,
|
|
99537
99550
|
members: []
|
|
99538
|
-
},
|
|
99551
|
+
}, M.push(w)), w.members.push({ obs: p, index: g })) : (w = null, M.push({ kind: "obs", obs: p, index: g }));
|
|
99539
99552
|
});
|
|
99540
|
-
const
|
|
99541
|
-
|
|
99542
|
-
|
|
99543
|
-
|
|
99553
|
+
const E = l ? `${l}-` : "", y = M.map((p) => p.kind === "obs" ? al0(
|
|
99554
|
+
p.obs,
|
|
99555
|
+
p.index,
|
|
99556
|
+
h,
|
|
99544
99557
|
l,
|
|
99545
|
-
i
|
|
99558
|
+
i,
|
|
99559
|
+
u
|
|
99546
99560
|
) : /* @__PURE__ */ ae(
|
|
99547
99561
|
"div",
|
|
99548
99562
|
{
|
|
99549
99563
|
className: N2.observation,
|
|
99550
|
-
"data-testid": `${
|
|
99564
|
+
"data-testid": `${E}section-${p.name}`,
|
|
99551
99565
|
children: /* @__PURE__ */ Ge("div", { className: N2.groupContainer, children: [
|
|
99552
99566
|
/* @__PURE__ */ ae(
|
|
99553
99567
|
"div",
|
|
99554
99568
|
{
|
|
99555
99569
|
className: N2.groupLabel,
|
|
99556
|
-
"data-testid": `${
|
|
99557
|
-
children:
|
|
99570
|
+
"data-testid": `${E}section-label-${p.name}`,
|
|
99571
|
+
children: p.name
|
|
99558
99572
|
}
|
|
99559
99573
|
),
|
|
99560
|
-
/* @__PURE__ */ ae("div", { className: N2.groupMembers, children:
|
|
99574
|
+
/* @__PURE__ */ ae("div", { className: N2.groupMembers, children: p.members.map(({ obs: g, index: C }) => /* @__PURE__ */ ae(
|
|
99561
99575
|
PE,
|
|
99562
99576
|
{
|
|
99563
|
-
member:
|
|
99577
|
+
member: g,
|
|
99564
99578
|
depth: 0,
|
|
99565
|
-
memberIndex:
|
|
99579
|
+
memberIndex: C,
|
|
99566
99580
|
testIdPrefix: l,
|
|
99567
|
-
hideThumbnail: i
|
|
99581
|
+
hideThumbnail: i,
|
|
99582
|
+
conceptDatatypeMap: u
|
|
99568
99583
|
},
|
|
99569
|
-
|
|
99584
|
+
g.id
|
|
99570
99585
|
)) })
|
|
99571
99586
|
] })
|
|
99572
99587
|
},
|
|
99573
|
-
`section-${
|
|
99588
|
+
`section-${p.name}`
|
|
99574
99589
|
));
|
|
99575
99590
|
return /* @__PURE__ */ ae(
|
|
99576
99591
|
"div",
|
|
@@ -99579,7 +99594,7 @@ const Ic0 = "ObservationsRenderer-module_resultsContainer__xvAwi", Bc0 = "Observ
|
|
|
99579
99594
|
"data-testid": "observations-renderer-test-id",
|
|
99580
99595
|
"aria-label": "observations-renderer-aria-label",
|
|
99581
99596
|
className: E2(N2.resultsContainer, c),
|
|
99582
|
-
children:
|
|
99597
|
+
children: y
|
|
99583
99598
|
}
|
|
99584
99599
|
);
|
|
99585
99600
|
}, tG1 = ({ reportId: t }) => {
|
|
@@ -110042,7 +110057,7 @@ lG1({
|
|
|
110042
110057
|
key: "commonSearch",
|
|
110043
110058
|
component: nd0
|
|
110044
110059
|
});
|
|
110045
|
-
Y0(() => Promise.resolve().then(() => do0)), Y0(() => Promise.resolve().then(() => So0)), Y0(() => Promise.resolve().then(() => w40)), Y0(() => Promise.resolve().then(() => H40)), Y0(() => import("./DocumentsTable-
|
|
110060
|
+
Y0(() => Promise.resolve().then(() => do0)), Y0(() => Promise.resolve().then(() => So0)), Y0(() => Promise.resolve().then(() => w40)), Y0(() => Promise.resolve().then(() => H40)), Y0(() => import("./DocumentsTable-Cx3H-xNc-DXm8s6bY.js")), Y0(() => Promise.resolve().then(() => E60)), Y0(() => import("./FormsTable-BRgVe8lS-CLFnkEL2.js")), Y0(() => Promise.resolve().then(() => hi0)), Y0(() => import("./Observations-BZ0HyAoB-CshXgU3u.js")), Y0(
|
|
110046
110061
|
() => Promise.resolve().then(() => ns0)
|
|
110047
110062
|
), Y0(
|
|
110048
110063
|
() => Promise.resolve().then(() => $l0)
|
|
@@ -192094,7 +192109,7 @@ var AVt = (t, e = !1) => {
|
|
|
192094
192109
|
const e = Fo2(() => {
|
|
192095
192110
|
const r = this, [o] = this.#n, [a] = this.#o, [c] = this.#a, [l] = this.#c, [i] = this.#p, [s] = this.#t;
|
|
192096
192111
|
let d;
|
|
192097
|
-
return this.#l ? d = this.#l : (d = Po2(() => import("./LNWAZHJI-
|
|
192112
|
+
return this.#l ? d = this.#l : (d = Po2(() => import("./LNWAZHJI-B0_PmrgT.js")), this.#l = d), s42(this.#h, this.#r), Io2(d, Bo2({
|
|
192098
192113
|
get queryFlavor() {
|
|
192099
192114
|
return r.#d;
|
|
192100
192115
|
},
|
|
@@ -192192,7 +192207,7 @@ var AVt = (t, e = !1) => {
|
|
|
192192
192207
|
const e = Fo2(() => {
|
|
192193
192208
|
const r = this, [o] = this.#n, [a] = this.#o, [c] = this.#a, [l] = this.#c, [i] = this.#p, [s] = this.#t, [d] = this.#l;
|
|
192194
192209
|
let u;
|
|
192195
|
-
return this.#i ? u = this.#i : (u = Po2(() => import("./MWZ6AO7Z-
|
|
192210
|
+
return this.#i ? u = this.#i : (u = Po2(() => import("./MWZ6AO7Z-CsNValOD.js")), this.#i = u), s42(this.#h, this.#r), Io2(u, Bo2({
|
|
192196
192211
|
get queryFlavor() {
|
|
192197
192212
|
return r.#d;
|
|
192198
192213
|
},
|
|
@@ -192322,7 +192337,7 @@ const xMt = {
|
|
|
192322
192337
|
}
|
|
192323
192338
|
}
|
|
192324
192339
|
}, bMt = "home", $Vt = "/bahmni/home/index.html#/login", DVt = "/bahmni/home/index.html#/changePassword", RVt = 6, NMt = Y0(
|
|
192325
|
-
() => import("./index-
|
|
192340
|
+
() => import("./index-DDyGV6fU.js").then((t) => ({
|
|
192326
192341
|
default: t.HomePage
|
|
192327
192342
|
}))
|
|
192328
192343
|
), CMt = [
|
|
@@ -192353,7 +192368,7 @@ function SVt() {
|
|
|
192353
192368
|
}
|
|
192354
192369
|
export {
|
|
192355
192370
|
Qyt as $,
|
|
192356
|
-
|
|
192371
|
+
eVt as A,
|
|
192357
192372
|
oVt as B,
|
|
192358
192373
|
aVt as C,
|
|
192359
192374
|
gyt as D,
|
|
@@ -192456,5 +192471,5 @@ export {
|
|
|
192456
192471
|
cV as w,
|
|
192457
192472
|
dyt as x,
|
|
192458
192473
|
tVt as y,
|
|
192459
|
-
|
|
192474
|
+
RVt as z
|
|
192460
192475
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsxs as Ne, jsx as ne, Fragment as Qi } from "react/jsx-runtime";
|
|
2
|
-
import { u as ot, v as Xi, N as Ji, w as ec, y as tc, Q as rc,
|
|
2
|
+
import { u as ot, v as Xi, N as Ji, w as ec, y as tc, Q as rc, A as nc, z as oc, B as hi, C as ac, F as lc, G as ic, K as cc, $ as sc, U as fc, Y as pc, X as hc, _ as uc } from "./index-D7NmN6ZW.js";
|
|
3
3
|
import * as Q from "react";
|
|
4
4
|
import r, { createContext as at, useContext as $e, Children as q1, useState as pe, useLayoutEffect as V1, useEffect as ie, useMemo as lt, useCallback as Me, useRef as oe, forwardRef as y1, useReducer as dc, cloneElement as G1, isValidElement as wc } from "react";
|
|
5
5
|
import { useQuery as mc } from "@tanstack/react-query";
|
package/dist/index.js
CHANGED