@bahmni/widgets 0.0.1-dev.345 → 0.0.1-dev.348
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-CDPuUEO0.js → DocumentsTable-B7UTGYR4.js} +23 -23
- package/dist/{FormsTable-D_vHLfEk.js → FormsTable-DPsJz4yi.js} +36 -36
- package/dist/{Observations-D3ji-Erl.js → Observations-CkemtZ5h.js} +12 -12
- package/dist/documentUpload/DocumentUpload.d.ts.map +1 -1
- package/dist/documentUpload/models.d.ts +1 -0
- package/dist/documentUpload/models.d.ts.map +1 -1
- package/dist/forms/FormsTable.d.ts.map +1 -1
- package/dist/{index-DYEFLsy1.js → index-BbuEus1P.js} +50978 -54510
- package/dist/index.css +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +57 -55
- package/dist/medications/components/Actions.d.ts.map +1 -1
- package/dist/observations/__mocks__/observationTestData.d.ts +6 -0
- package/dist/observations/__mocks__/observationTestData.d.ts.map +1 -1
- package/dist/observations/index.d.ts +1 -1
- package/dist/observations/index.d.ts.map +1 -1
- package/dist/observations/utils.d.ts +2 -0
- package/dist/observations/utils.d.ts.map +1 -1
- package/dist/tasks/TaskList.d.ts.map +1 -1
- package/dist/tasks/__tests__/__mocks__/configMocks.d.ts +9 -0
- package/dist/tasks/__tests__/__mocks__/configMocks.d.ts.map +1 -0
- package/dist/tasks/__tests__/__mocks__/taskActionsMocks.d.ts +2 -2
- package/dist/tasks/__tests__/__mocks__/taskActionsMocks.d.ts.map +1 -1
- package/dist/tasks/__tests__/__mocks__/taskListMocks.d.ts +5 -4
- package/dist/tasks/__tests__/__mocks__/taskListMocks.d.ts.map +1 -1
- package/dist/tasks/{components → actions}/TaskActions.d.ts +2 -3
- package/dist/tasks/actions/TaskActions.d.ts.map +1 -0
- package/dist/tasks/actions/actionHandlers.d.ts +3 -0
- package/dist/tasks/actions/actionHandlers.d.ts.map +1 -0
- package/dist/tasks/actions/index.d.ts +3 -0
- package/dist/tasks/actions/index.d.ts.map +1 -0
- package/dist/tasks/constants.d.ts +11 -0
- package/dist/tasks/constants.d.ts.map +1 -0
- package/dist/tasks/models.d.ts +14 -4
- package/dist/tasks/models.d.ts.map +1 -1
- package/dist/tasks/utils.d.ts +7 -18
- package/dist/tasks/utils.d.ts.map +1 -1
- package/dist/tasks/views/TaskViewResults.d.ts +9 -0
- package/dist/tasks/views/TaskViewResults.d.ts.map +1 -0
- package/dist/tasks/views/ViewFormData/ViewFormData.d.ts +12 -0
- package/dist/tasks/views/ViewFormData/ViewFormData.d.ts.map +1 -0
- package/dist/tasks/views/ViewFormData/index.d.ts +2 -0
- package/dist/tasks/views/ViewFormData/index.d.ts.map +1 -0
- package/dist/tasks/views/index.d.ts +4 -0
- package/dist/tasks/views/index.d.ts.map +1 -0
- package/dist/tasks/views/viewHandlers.d.ts +4 -0
- package/dist/tasks/views/viewHandlers.d.ts.map +1 -0
- package/package.json +1 -1
- package/dist/forms/utils.d.ts +0 -18
- package/dist/forms/utils.d.ts.map +0 -1
- package/dist/tasks/components/TaskActions.d.ts.map +0 -1
- package/dist/tasks/components/actionHandlers.d.ts +0 -9
- package/dist/tasks/components/actionHandlers.d.ts.map +0 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as r, jsxs as T, Fragment as Y } from "react/jsx-runtime";
|
|
2
|
-
import { u as W, a as X,
|
|
2
|
+
import { u as W, a as X, d as J, B as Z, R as x, q as ee, F as te } from "./index-BbuEus1P.js";
|
|
3
3
|
import { useQuery as ne } from "@tanstack/react-query";
|
|
4
|
-
import { useState as l, useCallback as _, useEffect as
|
|
4
|
+
import { useState as l, useCallback as _, useEffect as I, useMemo as p } from "react";
|
|
5
5
|
import { useTranslation as ae } from "react-i18next";
|
|
6
6
|
const oe = "DocumentsTable-module_documentsTableBody__6iR3w", se = "DocumentsTable-module_viewAttachmentsLink__aQ1on", re = "DocumentsTable-module_documentViewerContainer__F5m8D", ce = "DocumentsTable-module_attachmentItem__17KA7", de = "DocumentsTable-module_attachmentCounter__WFiI3", me = "DocumentsTable-module_attachmentError__RI4U2", le = "DocumentsTable-module_documentIframe__ptq5I", ue = "DocumentsTable-module_documentImage__KQVgS", c = {
|
|
7
7
|
documentsTableBody: oe,
|
|
@@ -19,7 +19,7 @@ const oe = "DocumentsTable-module_documentsTableBody__6iR3w", se = "DocumentsTab
|
|
|
19
19
|
uploadedBy: "DOCUMENTS_UPLOADED_BY",
|
|
20
20
|
attachments: "DOCUMENTS_ATTACHMENTS"
|
|
21
21
|
};
|
|
22
|
-
function
|
|
22
|
+
function B(n) {
|
|
23
23
|
return !n || n.includes(":") ? "#" : `/openmrs/auth?requested_document=/document_images/${n}`;
|
|
24
24
|
}
|
|
25
25
|
function he(n, f) {
|
|
@@ -34,16 +34,16 @@ const Te = [
|
|
|
34
34
|
"attachments",
|
|
35
35
|
"uploadedOn",
|
|
36
36
|
"uploadedBy"
|
|
37
|
-
], _e = /\.(jpg|jpeg|png|gif|webp|bmp|svg)$/i,
|
|
37
|
+
], _e = /\.(jpg|jpeg|png|gif|webp|bmp|svg)$/i, F = (n) => n.attachments.length > 0 ? n.attachments : n.documentUrl ? [{ url: n.documentUrl, contentType: n.contentType }] : [], Ie = ({ config: n, encounterUuids: f }) => {
|
|
38
38
|
const [d, L] = l(!1), [s, U] = l(
|
|
39
39
|
null
|
|
40
40
|
), [P, A] = l(
|
|
41
41
|
/* @__PURE__ */ new Set()
|
|
42
|
-
), E = W(), { t: o } = ae(), { addNotification: w } = X(),
|
|
42
|
+
), E = W(), { t: o } = ae(), { addNotification: w } = X(), V = Number(n?.pageSize) || 5, [N, C] = l(1), [u, $] = l(V), [k, O] = l(void 0), v = _((e) => {
|
|
43
43
|
U(e), L(!0);
|
|
44
|
-
}, []),
|
|
44
|
+
}, []), H = _(() => {
|
|
45
45
|
L(!1), U(null), A(/* @__PURE__ */ new Set());
|
|
46
|
-
}, []),
|
|
46
|
+
}, []), R = _((e) => {
|
|
47
47
|
A((t) => new Set(t).add(e));
|
|
48
48
|
}, []), { data: i, isLoading: q, isError: S, error: y } = ne({
|
|
49
49
|
queryKey: [
|
|
@@ -61,23 +61,23 @@ const Te = [
|
|
|
61
61
|
N
|
|
62
62
|
)
|
|
63
63
|
});
|
|
64
|
-
|
|
64
|
+
I(() => {
|
|
65
65
|
i && O(i.total);
|
|
66
|
-
}, [i]),
|
|
66
|
+
}, [i]), I(() => {
|
|
67
67
|
C(1), O(void 0);
|
|
68
|
-
}, [E]),
|
|
68
|
+
}, [E]), I(() => {
|
|
69
69
|
S && w({
|
|
70
70
|
title: o("ERROR_DEFAULT_TITLE"),
|
|
71
71
|
message: y?.message ?? "",
|
|
72
72
|
type: "error"
|
|
73
73
|
});
|
|
74
|
-
}, [S, y, w, o]),
|
|
74
|
+
}, [S, y, w, o]), I(() => {
|
|
75
75
|
const e = new AbortController();
|
|
76
76
|
return (async () => {
|
|
77
77
|
if (!d || !s) return;
|
|
78
|
-
const a = /* @__PURE__ */ new Set(),
|
|
79
|
-
for (let m = 0; m <
|
|
80
|
-
const b =
|
|
78
|
+
const a = /* @__PURE__ */ new Set(), g = F(s);
|
|
79
|
+
for (let m = 0; m < g.length; m++) {
|
|
80
|
+
const b = B(g[m].url);
|
|
81
81
|
try {
|
|
82
82
|
(await fetch(b, {
|
|
83
83
|
method: "HEAD",
|
|
@@ -92,7 +92,7 @@ const Te = [
|
|
|
92
92
|
}, [d, s]);
|
|
93
93
|
const z = _(
|
|
94
94
|
(e, t) => {
|
|
95
|
-
t !== u ? (
|
|
95
|
+
t !== u ? ($(t), C(1), O(void 0)) : C(e);
|
|
96
96
|
},
|
|
97
97
|
[u]
|
|
98
98
|
), D = p(
|
|
@@ -105,7 +105,7 @@ const Te = [
|
|
|
105
105
|
})),
|
|
106
106
|
[D]
|
|
107
107
|
), h = p(
|
|
108
|
-
() => s ?
|
|
108
|
+
() => s ? F(s) : [],
|
|
109
109
|
[s]
|
|
110
110
|
), Q = _(
|
|
111
111
|
(e, t) => {
|
|
@@ -153,7 +153,7 @@ const Te = [
|
|
|
153
153
|
className: c.documentsTableBody,
|
|
154
154
|
dataTestId: "documents-table",
|
|
155
155
|
pageSize: u,
|
|
156
|
-
totalItems:
|
|
156
|
+
totalItems: k,
|
|
157
157
|
page: N,
|
|
158
158
|
onPageChange: z
|
|
159
159
|
}
|
|
@@ -164,13 +164,13 @@ const Te = [
|
|
|
164
164
|
id: "modalIdForActionAreaLayout",
|
|
165
165
|
portalId: "main-display-area",
|
|
166
166
|
open: d,
|
|
167
|
-
onRequestClose:
|
|
167
|
+
onRequestClose: H,
|
|
168
168
|
modalHeading: s.documentIdentifier,
|
|
169
169
|
passiveModal: !0,
|
|
170
170
|
size: "lg",
|
|
171
171
|
testId: "document-view-modal",
|
|
172
172
|
children: /* @__PURE__ */ r("div", { className: c.documentViewerContainer, children: h.map((e, t) => {
|
|
173
|
-
const a =
|
|
173
|
+
const a = B(e.url), g = e.contentType?.toLowerCase().includes("pdf"), m = (e.contentType?.toLowerCase().includes("image") ?? !1) || _e.test(e.url ?? ""), b = P.has(t);
|
|
174
174
|
return a === "#" || b ? /* @__PURE__ */ T(
|
|
175
175
|
"div",
|
|
176
176
|
{
|
|
@@ -203,15 +203,15 @@ const Te = [
|
|
|
203
203
|
src: a,
|
|
204
204
|
alt: s.documentIdentifier,
|
|
205
205
|
className: c.documentImage,
|
|
206
|
-
onError: () =>
|
|
206
|
+
onError: () => R(t)
|
|
207
207
|
}
|
|
208
208
|
) : /* @__PURE__ */ r(
|
|
209
209
|
"iframe",
|
|
210
210
|
{
|
|
211
|
-
src:
|
|
211
|
+
src: g ? `${a}#toolbar=0` : a,
|
|
212
212
|
className: c.documentIframe,
|
|
213
213
|
title: s.documentIdentifier,
|
|
214
|
-
onError: () =>
|
|
214
|
+
onError: () => R(t)
|
|
215
215
|
}
|
|
216
216
|
)
|
|
217
217
|
]
|
|
@@ -224,5 +224,5 @@ const Te = [
|
|
|
224
224
|
] });
|
|
225
225
|
};
|
|
226
226
|
export {
|
|
227
|
-
|
|
227
|
+
Ie as default
|
|
228
228
|
};
|
|
@@ -1,52 +1,52 @@
|
|
|
1
1
|
import { jsx as i, jsxs as oe, Fragment as te } from "react/jsx-runtime";
|
|
2
|
-
import { u as se,
|
|
2
|
+
import { u as se, $ as ae, H as ne, j as de, V as ie, w as ce, n as le, e as me, b as U, R as ue, B as fe, q as k, T as ye, c as be, F as pe, O as ge } from "./index-BbuEus1P.js";
|
|
3
3
|
import { useQueryClient as he, useQuery as b } from "@tanstack/react-query";
|
|
4
|
-
import { useState as
|
|
4
|
+
import { useState as H, useMemo as d, useCallback as p } from "react";
|
|
5
5
|
import { useTranslation as Fe } from "react-i18next";
|
|
6
6
|
const Ne = "FormsTable-module_formsTableBody__SvGha", Oe = "FormsTable-module_customAccordianItem__isszs", O = {
|
|
7
7
|
formsTableBody: Ne,
|
|
8
8
|
customAccordianItem: Oe
|
|
9
9
|
}, Ae = ({
|
|
10
|
-
episodeOfCareUuids:
|
|
10
|
+
episodeOfCareUuids: v,
|
|
11
11
|
encounterUuids: l,
|
|
12
|
-
config:
|
|
12
|
+
config: j
|
|
13
13
|
}) => {
|
|
14
|
-
const { t: n } = Fe(), m = se(), [f,
|
|
15
|
-
numberOfVisits:
|
|
16
|
-
hideThumbnail:
|
|
14
|
+
const { t: n } = Fe(), m = se(), [f, E] = H(!1), [a, M] = H(null), {
|
|
15
|
+
numberOfVisits: w,
|
|
16
|
+
hideThumbnail: V = !1,
|
|
17
17
|
forms: y
|
|
18
|
-
} =
|
|
19
|
-
|
|
18
|
+
} = j ?? {}, B = ae(
|
|
19
|
+
v,
|
|
20
20
|
l
|
|
21
|
-
),
|
|
22
|
-
data:
|
|
21
|
+
), $ = he(), {
|
|
22
|
+
data: I = [],
|
|
23
23
|
isLoading: A,
|
|
24
24
|
isError: D,
|
|
25
|
-
error:
|
|
26
|
-
refetch:
|
|
25
|
+
error: x,
|
|
26
|
+
refetch: K
|
|
27
27
|
} = b({
|
|
28
|
-
queryKey: ["forms", m,
|
|
29
|
-
queryFn: () => ne(m, void 0,
|
|
30
|
-
enabled: !!m && !
|
|
28
|
+
queryKey: ["forms", m, v],
|
|
29
|
+
queryFn: () => ne(m, void 0, w),
|
|
30
|
+
enabled: !!m && !B
|
|
31
31
|
}), T = d(() => {
|
|
32
|
-
let e =
|
|
32
|
+
let e = I;
|
|
33
33
|
return l && l.length > 0 && (e = e.filter(
|
|
34
34
|
(o) => l.includes(o.encounterUuid)
|
|
35
35
|
)), Array.isArray(y) && y.length > 0 && (e = e.filter(
|
|
36
36
|
(o) => y.some((r) => r.toLowerCase() === o.formName.toLowerCase())
|
|
37
37
|
)), e;
|
|
38
|
-
}, [
|
|
38
|
+
}, [I, l, y]), { data: R = [] } = b({
|
|
39
39
|
queryKey: ["observationForms"],
|
|
40
40
|
queryFn: () => de()
|
|
41
|
-
}),
|
|
42
|
-
(e) =>
|
|
43
|
-
[
|
|
41
|
+
}), _ = p(
|
|
42
|
+
(e) => R.find((r) => r.name === e)?.uuid,
|
|
43
|
+
[R]
|
|
44
44
|
), g = d(() => {
|
|
45
45
|
if (a)
|
|
46
|
-
return
|
|
47
|
-
}, [a,
|
|
46
|
+
return _(a.formName);
|
|
47
|
+
}, [a, _]), {
|
|
48
48
|
data: c,
|
|
49
|
-
isLoading:
|
|
49
|
+
isLoading: P,
|
|
50
50
|
isError: z,
|
|
51
51
|
error: h
|
|
52
52
|
} = b({
|
|
@@ -65,7 +65,7 @@ const Ne = "FormsTable-module_formsTableBody__SvGha", Oe = "FormsTable-module_cu
|
|
|
65
65
|
});
|
|
66
66
|
le(
|
|
67
67
|
(e) => {
|
|
68
|
-
e.patientUUID === m && e.updatedConcepts.size > 0 && (
|
|
68
|
+
e.patientUUID === m && e.updatedConcepts.size > 0 && (K(), $.invalidateQueries({ queryKey: ["formsEncounterFHIR"] }));
|
|
69
69
|
},
|
|
70
70
|
[m]
|
|
71
71
|
);
|
|
@@ -114,7 +114,7 @@ const Ne = "FormsTable-module_formsTableBody__SvGha", Oe = "FormsTable-module_cu
|
|
|
114
114
|
{ key: "recordedBy", sortable: !0 }
|
|
115
115
|
],
|
|
116
116
|
[]
|
|
117
|
-
),
|
|
117
|
+
), C = d(() => {
|
|
118
118
|
const e = T.reduce(
|
|
119
119
|
(r, t) => {
|
|
120
120
|
const s = t.formName;
|
|
@@ -139,38 +139,38 @@ const Ne = "FormsTable-module_formsTableBody__SvGha", Oe = "FormsTable-module_cu
|
|
|
139
139
|
)
|
|
140
140
|
})
|
|
141
141
|
).sort((r, t) => r.formName.localeCompare(t.formName));
|
|
142
|
-
}, [T, n]),
|
|
143
|
-
|
|
142
|
+
}, [T, n]), q = p((e) => {
|
|
143
|
+
M(e), E(!0);
|
|
144
144
|
}, []), ee = p(() => {
|
|
145
|
-
|
|
145
|
+
E(!1), M(null);
|
|
146
146
|
}, []), S = p(
|
|
147
147
|
(e, o) => {
|
|
148
148
|
switch (o) {
|
|
149
149
|
case "recordedOn":
|
|
150
|
-
return /* @__PURE__ */ i(fe, { onClick: () =>
|
|
150
|
+
return /* @__PURE__ */ i(fe, { onClick: () => q(e), children: e.recordedOn });
|
|
151
151
|
case "recordedBy":
|
|
152
152
|
return e.recordedBy;
|
|
153
153
|
default:
|
|
154
154
|
return null;
|
|
155
155
|
}
|
|
156
156
|
},
|
|
157
|
-
[
|
|
157
|
+
[q]
|
|
158
158
|
);
|
|
159
159
|
return /* @__PURE__ */ oe(te, { children: [
|
|
160
|
-
/* @__PURE__ */ i("div", { id: "forms-table", "data-testid": "forms-table", children: A || D ||
|
|
160
|
+
/* @__PURE__ */ i("div", { id: "forms-table", "data-testid": "forms-table", children: A || D || C.length === 0 || B ? /* @__PURE__ */ i(
|
|
161
161
|
k,
|
|
162
162
|
{
|
|
163
163
|
headers: L,
|
|
164
164
|
ariaLabel: n("FORMS_HEADING"),
|
|
165
165
|
rows: [],
|
|
166
166
|
loading: A,
|
|
167
|
-
errorStateMessage: D ?
|
|
167
|
+
errorStateMessage: D ? x?.message : void 0,
|
|
168
168
|
emptyStateMessage: n("FORMS_UNAVAILABLE"),
|
|
169
169
|
renderCell: S,
|
|
170
170
|
className: O.formsTableBody,
|
|
171
171
|
dataTestId: "forms-table"
|
|
172
172
|
}
|
|
173
|
-
) : /* @__PURE__ */ i(ye, { align: "start", children:
|
|
173
|
+
) : /* @__PURE__ */ i(ye, { align: "start", children: C.map((e, o) => {
|
|
174
174
|
const { formName: r, records: t } = e;
|
|
175
175
|
return /* @__PURE__ */ i(
|
|
176
176
|
be,
|
|
@@ -214,12 +214,12 @@ const Ne = "FormsTable-module_formsTableBody__SvGha", Oe = "FormsTable-module_cu
|
|
|
214
214
|
ge,
|
|
215
215
|
{
|
|
216
216
|
observations: Y,
|
|
217
|
-
isLoading:
|
|
217
|
+
isLoading: P || G,
|
|
218
218
|
isError: z || Q,
|
|
219
219
|
errorMessage: X,
|
|
220
220
|
emptyStateMessage: n("NO_FORM_DATA_AVAILABLE"),
|
|
221
221
|
testIdPrefix: a.formName,
|
|
222
|
-
hideThumbnail:
|
|
222
|
+
hideThumbnail: V,
|
|
223
223
|
controlOrder: J,
|
|
224
224
|
sectionMap: W
|
|
225
225
|
}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { jsx as d, jsxs as N } from "react/jsx-runtime";
|
|
2
|
-
import { f as
|
|
2
|
+
import { f as K, Q as D, t as V, g as q, W as k, h as w, i as H, k as G, u as P, a as j, l as z, m as W, n as J, o as Y, p as X, s as Z, r as x, q as ee } from "./index-BbuEus1P.js";
|
|
3
3
|
import { useQueries as te, useQuery as se } from "@tanstack/react-query";
|
|
4
4
|
import { useRef as oe, useEffect as C, useMemo as g } from "react";
|
|
5
5
|
import { useTranslation as U } from "react-i18next";
|
|
6
6
|
const B = (t, i, c, l, u, r) => {
|
|
7
|
-
const s =
|
|
7
|
+
const s = V(t, i, u), o = s.value, a = q(o);
|
|
8
8
|
let n = o;
|
|
9
9
|
a === "Image" && (n = /* @__PURE__ */ d(
|
|
10
|
-
|
|
10
|
+
w,
|
|
11
11
|
{
|
|
12
12
|
imageSrc: o,
|
|
13
13
|
alt: o,
|
|
@@ -15,7 +15,7 @@ const B = (t, i, c, l, u, r) => {
|
|
|
15
15
|
hideThumbnail: r
|
|
16
16
|
}
|
|
17
17
|
)), a === "Video" && (n = /* @__PURE__ */ d(
|
|
18
|
-
|
|
18
|
+
H,
|
|
19
19
|
{
|
|
20
20
|
id: `${o}-video`,
|
|
21
21
|
videoSrc: o,
|
|
@@ -26,7 +26,7 @@ const B = (t, i, c, l, u, r) => {
|
|
|
26
26
|
provider: s.provider
|
|
27
27
|
}), m = t.display, p = t.observationValue?.isAbnormal ? "abnormal-obs" : "obs", y = l ? `${l}-${p}-${m}-${c}-${i}` : `${p}-${m}-${c}-${i}`;
|
|
28
28
|
return /* @__PURE__ */ d(
|
|
29
|
-
|
|
29
|
+
k,
|
|
30
30
|
{
|
|
31
31
|
header: s.header,
|
|
32
32
|
value: n,
|
|
@@ -61,7 +61,7 @@ const B = (t, i, c, l, u, r) => {
|
|
|
61
61
|
hideThumbnail: c
|
|
62
62
|
}) => {
|
|
63
63
|
const { t: l } = U(), u = (r, s, o) => {
|
|
64
|
-
const a =
|
|
64
|
+
const a = K(r.encounterDetails, l);
|
|
65
65
|
return /* @__PURE__ */ N(
|
|
66
66
|
D,
|
|
67
67
|
{
|
|
@@ -117,7 +117,7 @@ const B = (t, i, c, l, u, r) => {
|
|
|
117
117
|
} = i, r = oe(/* @__PURE__ */ new Set()), s = P(), { addNotification: o } = j(), { t: a } = U(), n = te({
|
|
118
118
|
queries: c.map((e) => ({
|
|
119
119
|
queryKey: ce(e),
|
|
120
|
-
queryFn: () =>
|
|
120
|
+
queryFn: () => z(e),
|
|
121
121
|
enabled: !!e
|
|
122
122
|
}))
|
|
123
123
|
});
|
|
@@ -140,10 +140,10 @@ const B = (t, i, c, l, u, r) => {
|
|
|
140
140
|
refetch: T
|
|
141
141
|
} = se({
|
|
142
142
|
queryKey: le(s, m),
|
|
143
|
-
queryFn: () =>
|
|
143
|
+
queryFn: () => W(s, m),
|
|
144
144
|
enabled: !!s && m.length > 0 && f
|
|
145
145
|
});
|
|
146
|
-
|
|
146
|
+
J(
|
|
147
147
|
(e) => {
|
|
148
148
|
e.patientUUID === s && e.updatedConcepts.size > 0 && [...e.updatedConcepts.keys()].some(
|
|
149
149
|
(R) => m.includes(R)
|
|
@@ -159,8 +159,8 @@ const B = (t, i, c, l, u, r) => {
|
|
|
159
159
|
}, [h]);
|
|
160
160
|
const _ = g(() => {
|
|
161
161
|
if (!p) return [];
|
|
162
|
-
const e =
|
|
163
|
-
return
|
|
162
|
+
const e = Y(p), v = X(e);
|
|
163
|
+
return Z(v);
|
|
164
164
|
}, [p]), A = [
|
|
165
165
|
{ key: "name", header: "name" },
|
|
166
166
|
{ key: "value", header: "value" },
|
|
@@ -175,7 +175,7 @@ const B = (t, i, c, l, u, r) => {
|
|
|
175
175
|
className: S.observations,
|
|
176
176
|
children: [
|
|
177
177
|
/* @__PURE__ */ d(
|
|
178
|
-
|
|
178
|
+
x,
|
|
179
179
|
{
|
|
180
180
|
id: "observations-title",
|
|
181
181
|
testId: O ? `observations-title-${E}` : "observations-title",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DocumentUpload.d.ts","sourceRoot":"","sources":["../../src/documentUpload/DocumentUpload.tsx"],"names":[],"mappings":"AAaA,OAAO,KAA2B,MAAM,OAAO,CAAC;AAMhD,OAAO,EAAE,mBAAmB,EAAmB,MAAM,UAAU,CAAC;AAIhE,eAAO,MAAM,cAAc,EAAE,KAAK,CAAC,EAAE,CAAC,mBAAmB,
|
|
1
|
+
{"version":3,"file":"DocumentUpload.d.ts","sourceRoot":"","sources":["../../src/documentUpload/DocumentUpload.tsx"],"names":[],"mappings":"AAaA,OAAO,KAA2B,MAAM,OAAO,CAAC;AAMhD,OAAO,EAAE,mBAAmB,EAAmB,MAAM,UAAU,CAAC;AAIhE,eAAO,MAAM,cAAc,EAAE,KAAK,CAAC,EAAE,CAAC,mBAAmB,CA4OxD,CAAC;AAEF,eAAe,cAAc,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"models.d.ts","sourceRoot":"","sources":["../../src/documentUpload/models.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAGzE,YAAY,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AAE3D,MAAM,WAAW,mBAAmB;IAClC,WAAW,EAAE,MAAM,CAAC;IACpB,iBAAiB,EAAE,MAAM,CAAC;IAC1B,UAAU,EAAE,kBAAkB,CAAC;IAC/B,aAAa,CAAC,EAAE,YAAY,EAAE,CAAC;IAC/B,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;CACtB;AAGD,MAAM,WAAW,eAAe;IAC9B,GAAG,EAAE,MAAM,CAAC;IACZ,QAAQ,EAAE,MAAM,CAAC;IACjB,WAAW,EAAE,MAAM,CAAC;CACrB"}
|
|
1
|
+
{"version":3,"file":"models.d.ts","sourceRoot":"","sources":["../../src/documentUpload/models.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAGzE,YAAY,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AAE3D,MAAM,WAAW,mBAAmB;IAClC,WAAW,EAAE,MAAM,CAAC;IACpB,iBAAiB,EAAE,MAAM,CAAC;IAC1B,UAAU,EAAE,kBAAkB,CAAC;IAC/B,aAAa,CAAC,EAAE,YAAY,EAAE,CAAC;IAC/B,aAAa,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC9B,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;CACtB;AAGD,MAAM,WAAW,eAAe;IAC9B,GAAG,EAAE,MAAM,CAAC;IACZ,QAAQ,EAAE,MAAM,CAAC;IACjB,WAAW,EAAE,MAAM,CAAC;CACrB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FormsTable.d.ts","sourceRoot":"","sources":["../../src/forms/FormsTable.tsx"],"names":[],"mappings":"AAwBA,OAAO,KAAyC,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"FormsTable.d.ts","sourceRoot":"","sources":["../../src/forms/FormsTable.tsx"],"names":[],"mappings":"AAwBA,OAAO,KAAyC,MAAM,OAAO,CAAC;AAI9D,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAUhD;;;GAGG;AACH,QAAA,MAAM,UAAU,EAAE,KAAK,CAAC,EAAE,CAAC,WAAW,CA+VrC,CAAC;AAEF,eAAe,UAAU,CAAC"}
|