@bahmni/clinical-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/{ConsultationPage-BGYw1Lyi.js → ConsultationPage-BDLSPmoA.js} +10977 -10926
- package/dist/{DocumentsTable-DvzP4zA0-SCplv32I.js → DocumentsTable-Cx3H-xNc-DoN77TEz.js} +6 -6
- package/dist/{FormsTable-BexiFTEe-B2rMaDDD.js → FormsTable-BRgVe8lS-BQsG4m2x.js} +119 -107
- package/dist/{LNWAZHJI-DS5U3Oud.js → LNWAZHJI-Dsp6EgmW.js} +2 -2
- package/dist/{MWZ6AO7Z-CnnAEK95.js → MWZ6AO7Z-BHbP1AQg.js} +2 -2
- package/dist/{Observations-DIntvvSw-BtjJonqG.js → Observations-BZ0HyAoB-lxP1x5SW.js} +6 -6
- package/dist/{YPM2AS64-5oAqPQDc.js → YPM2AS64-CEGgzhAq.js} +138 -138
- package/dist/components/forms/observations/ObservationFormsContainer.d.ts +0 -85
- package/dist/components/forms/observations/ObservationFormsContainer.d.ts.map +1 -1
- package/dist/{hook-CgKQ6WAl.js → hook-CVhjmeas.js} +1 -1
- package/dist/{index-DzbMZloO.js → index-COTXkJn5.js} +1 -1
- package/dist/{index-Db-dpLuX.js → index-Cmilatk1.js} +11 -11
- package/dist/{index-p757R1Oj.js → index-D0-iBtyH.js} +11337 -11316
- package/dist/index.js +1 -1
- package/dist/utils/fhir/observationReconciliation.d.ts +14 -0
- package/dist/utils/fhir/observationReconciliation.d.ts.map +1 -0
- package/dist/utils/fhir/observationResourceCreator.d.ts +1 -17
- package/dist/utils/fhir/observationResourceCreator.d.ts.map +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-D0-iBtyH.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-D0-iBtyH.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 {
|
|
1
|
+
import { c, T as l, P as m, a as u, D as v, Q as i } from "./YPM2AS64-CEGgzhAq.js";
|
|
2
|
+
import { bV as d, bW as f, bX as e } from "./index-D0-iBtyH.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 {
|
|
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-CEGgzhAq.js";
|
|
2
|
+
import { bV as v, bW as C, bX as e } from "./index-D0-iBtyH.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-D0-iBtyH.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",
|