@bahmni/registration-app 0.0.1-dev.189 → 0.0.1-dev.191
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-BCnYVvIx-9ADe8L_l.js +203 -0
- package/dist/{FormsTable-BUw2KCew-KClza28c.js → FormsTable-DFknJTr7-BUzazgCC.js} +10 -10
- package/dist/{LNWAZHJI-DHp5Uc7F.js → LNWAZHJI-CxnADNOu.js} +2 -2
- package/dist/{MWZ6AO7Z-Cvm9991y.js → MWZ6AO7Z-ROo-WQsX.js} +2 -2
- package/dist/{Observations-D9XzsEPN-Bu_Y-469.js → Observations-D0PH7TgR-CirKb1dN.js} +6 -6
- package/dist/{YPM2AS64-CPxUGgoQ.js → YPM2AS64--lOd7DAs.js} +1 -1
- package/dist/{index-D6pGIWEE.js → index-BTczc-KE.js} +59 -57
- package/dist/index.css +1 -1
- package/dist/index.js +1 -1
- package/package.json +1 -1
- package/dist/DocumentsTable-BQYdm5FO-ZokI33et.js +0 -5431
|
@@ -0,0 +1,203 @@
|
|
|
1
|
+
import { jsx as o, jsxs as l, Fragment as k } from "react/jsx-runtime";
|
|
2
|
+
import { p as V, u as F, o as H, g as x, $ as P, a as j, A as G, b as Y, m as z } from "./index-BTczc-KE.js";
|
|
3
|
+
import { useQuery as J } from "@tanstack/react-query";
|
|
4
|
+
import { useState as C, useCallback as T, useEffect as S, useMemo as E } from "react";
|
|
5
|
+
const K = "_documentsTableBody_6qsah_1", Q = "_viewAttachmentsLink_6qsah_11", W = "_documentViewerContainer_6qsah_15", X = "_attachmentItem_6qsah_23", Z = "_attachmentCounter_6qsah_27", ee = "_attachmentError_6qsah_36", te = "_documentIframe_6qsah_44", ae = "_documentImage_6qsah_50", d = {
|
|
6
|
+
documentsTableBody: K,
|
|
7
|
+
viewAttachmentsLink: Q,
|
|
8
|
+
documentViewerContainer: W,
|
|
9
|
+
attachmentItem: X,
|
|
10
|
+
attachmentCounter: Z,
|
|
11
|
+
attachmentError: ee,
|
|
12
|
+
documentIframe: te,
|
|
13
|
+
documentImage: ae
|
|
14
|
+
}, ne = {
|
|
15
|
+
documentIdentifier: "DOCUMENTS_DOCUMENT_IDENTIFIER",
|
|
16
|
+
documentType: "DOCUMENTS_TYPE",
|
|
17
|
+
uploadedOn: "DOCUMENTS_UPLOADED_ON",
|
|
18
|
+
uploadedBy: "DOCUMENTS_UPLOADED_BY",
|
|
19
|
+
action: "DOCUMENTS_ACTION"
|
|
20
|
+
};
|
|
21
|
+
function U(a) {
|
|
22
|
+
return !a || a.includes(":") ? "#" : `/openmrs/auth?requested_document=/document_images/${a}`;
|
|
23
|
+
}
|
|
24
|
+
function re(a, u) {
|
|
25
|
+
return a.map((s) => ({
|
|
26
|
+
key: s,
|
|
27
|
+
header: u(ne[s])
|
|
28
|
+
}));
|
|
29
|
+
}
|
|
30
|
+
const oe = [
|
|
31
|
+
"documentIdentifier",
|
|
32
|
+
"documentType",
|
|
33
|
+
"uploadedOn",
|
|
34
|
+
"uploadedBy",
|
|
35
|
+
"action"
|
|
36
|
+
], M = (a) => a.attachments.length > 0 ? a.attachments : a.documentUrl ? [{ url: a.documentUrl, contentType: a.contentType }] : [], ie = ({ config: a, encounterUuids: u }) => {
|
|
37
|
+
const [s, g] = C(!1), [r, O] = C(
|
|
38
|
+
null
|
|
39
|
+
), [w, p] = C(
|
|
40
|
+
/* @__PURE__ */ new Set()
|
|
41
|
+
), N = V(), { t: n } = F(), { addNotification: y } = H(), D = T((e) => {
|
|
42
|
+
O(e), g(!0);
|
|
43
|
+
}, []), b = T(() => {
|
|
44
|
+
g(!1), O(null), p(/* @__PURE__ */ new Set());
|
|
45
|
+
}, []), L = T((e) => {
|
|
46
|
+
p((t) => new Set(t).add(e));
|
|
47
|
+
}, []), { data: q, isLoading: B, isError: f, error: I } = J({
|
|
48
|
+
queryKey: ["documents", N, u],
|
|
49
|
+
enabled: !!N,
|
|
50
|
+
queryFn: () => x(N, u)
|
|
51
|
+
});
|
|
52
|
+
S(() => {
|
|
53
|
+
f && y({
|
|
54
|
+
title: n("ERROR_DEFAULT_TITLE"),
|
|
55
|
+
message: I?.message ?? "",
|
|
56
|
+
type: "error"
|
|
57
|
+
});
|
|
58
|
+
}, [f, I, y, n]), S(() => {
|
|
59
|
+
const e = new AbortController();
|
|
60
|
+
return (async () => {
|
|
61
|
+
if (!s || !r) return;
|
|
62
|
+
const t = /* @__PURE__ */ new Set(), c = M(r);
|
|
63
|
+
for (let m = 0; m < c.length; m++) {
|
|
64
|
+
const A = U(c[m].url);
|
|
65
|
+
try {
|
|
66
|
+
(await fetch(A, {
|
|
67
|
+
method: "HEAD",
|
|
68
|
+
signal: e.signal
|
|
69
|
+
})).ok || t.add(m);
|
|
70
|
+
} catch (_) {
|
|
71
|
+
_ instanceof Error && _.name !== "AbortError" && t.add(m);
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
e.signal.aborted || p(t);
|
|
75
|
+
})(), () => e.abort();
|
|
76
|
+
}, [s, r]);
|
|
77
|
+
const h = E(
|
|
78
|
+
() => a?.fields ?? oe,
|
|
79
|
+
[a?.fields]
|
|
80
|
+
), R = E(() => re(h, n), [h, n]), $ = E(
|
|
81
|
+
() => h.map((e) => ({
|
|
82
|
+
key: e,
|
|
83
|
+
sortable: e !== "action"
|
|
84
|
+
})),
|
|
85
|
+
[h]
|
|
86
|
+
), i = E(
|
|
87
|
+
() => r ? M(r) : [],
|
|
88
|
+
[r]
|
|
89
|
+
), v = T(
|
|
90
|
+
(e, t) => {
|
|
91
|
+
switch (t) {
|
|
92
|
+
case "documentIdentifier":
|
|
93
|
+
return /* @__PURE__ */ o("span", { children: e.documentIdentifier });
|
|
94
|
+
case "documentType":
|
|
95
|
+
return e.documentType ?? n("DOCUMENTS_NOT_AVAILABLE");
|
|
96
|
+
case "uploadedOn":
|
|
97
|
+
return j(
|
|
98
|
+
e.uploadedOn,
|
|
99
|
+
n,
|
|
100
|
+
z
|
|
101
|
+
).formattedResult || n("DOCUMENTS_NOT_AVAILABLE");
|
|
102
|
+
case "uploadedBy":
|
|
103
|
+
return e.uploadedBy ?? n("DOCUMENTS_NOT_AVAILABLE");
|
|
104
|
+
case "action":
|
|
105
|
+
return e.attachments.length > 0 || e.documentUrl ? /* @__PURE__ */ o(
|
|
106
|
+
P,
|
|
107
|
+
{
|
|
108
|
+
onClick: () => D(e),
|
|
109
|
+
className: d.viewAttachmentsLink,
|
|
110
|
+
"data-testid": `view-attachments-${e.id}`,
|
|
111
|
+
children: n("DOCUMENTS_VIEW_ATTACHMENTS")
|
|
112
|
+
}
|
|
113
|
+
) : "--";
|
|
114
|
+
default:
|
|
115
|
+
return null;
|
|
116
|
+
}
|
|
117
|
+
},
|
|
118
|
+
[D, n]
|
|
119
|
+
);
|
|
120
|
+
return /* @__PURE__ */ l(k, { children: [
|
|
121
|
+
/* @__PURE__ */ o("div", { "data-testid": "documents-table", children: /* @__PURE__ */ o(
|
|
122
|
+
G,
|
|
123
|
+
{
|
|
124
|
+
headers: R,
|
|
125
|
+
ariaLabel: n("DOCUMENTS_TABLE_HEADING"),
|
|
126
|
+
rows: q ?? [],
|
|
127
|
+
loading: B,
|
|
128
|
+
errorStateMessage: f ? I?.message : null,
|
|
129
|
+
sortable: $,
|
|
130
|
+
emptyStateMessage: n("DOCUMENTS_NO_RECORDS"),
|
|
131
|
+
renderCell: v,
|
|
132
|
+
className: d.documentsTableBody,
|
|
133
|
+
dataTestId: "documents-table"
|
|
134
|
+
}
|
|
135
|
+
) }),
|
|
136
|
+
s && r && /* @__PURE__ */ o(
|
|
137
|
+
Y,
|
|
138
|
+
{
|
|
139
|
+
id: "modalIdForActionAreaLayout",
|
|
140
|
+
portalId: "main-display-area",
|
|
141
|
+
open: s,
|
|
142
|
+
onRequestClose: b,
|
|
143
|
+
modalHeading: r.documentIdentifier,
|
|
144
|
+
passiveModal: !0,
|
|
145
|
+
size: "lg",
|
|
146
|
+
testId: "document-view-modal",
|
|
147
|
+
children: /* @__PURE__ */ o("div", { className: d.documentViewerContainer, children: i.map((e, t) => {
|
|
148
|
+
const c = U(e.url), m = e.contentType?.toLowerCase().includes("pdf"), A = e.contentType?.toLowerCase().includes("image"), _ = w.has(t);
|
|
149
|
+
return c === "#" || _ ? /* @__PURE__ */ l(
|
|
150
|
+
"div",
|
|
151
|
+
{
|
|
152
|
+
className: d.attachmentError,
|
|
153
|
+
"data-testid": `attachment-error-${t}`,
|
|
154
|
+
children: [
|
|
155
|
+
i.length > 1 && /* @__PURE__ */ l("p", { className: d.attachmentCounter, children: [
|
|
156
|
+
t + 1,
|
|
157
|
+
"/",
|
|
158
|
+
i.length
|
|
159
|
+
] }),
|
|
160
|
+
/* @__PURE__ */ o("p", { children: n("DOCUMENTS_ERROR_LOADING_ATTACHMENT") })
|
|
161
|
+
]
|
|
162
|
+
},
|
|
163
|
+
`${r.id}-${e.url}`
|
|
164
|
+
) : /* @__PURE__ */ l(
|
|
165
|
+
"div",
|
|
166
|
+
{
|
|
167
|
+
className: d.attachmentItem,
|
|
168
|
+
"data-testid": `attachment-item-${t}`,
|
|
169
|
+
children: [
|
|
170
|
+
i.length > 1 && /* @__PURE__ */ l("p", { className: d.attachmentCounter, children: [
|
|
171
|
+
t + 1,
|
|
172
|
+
"/",
|
|
173
|
+
i.length
|
|
174
|
+
] }),
|
|
175
|
+
A ? /* @__PURE__ */ o(
|
|
176
|
+
"img",
|
|
177
|
+
{
|
|
178
|
+
src: c,
|
|
179
|
+
alt: r.documentIdentifier,
|
|
180
|
+
className: d.documentImage,
|
|
181
|
+
onError: () => L(t)
|
|
182
|
+
}
|
|
183
|
+
) : /* @__PURE__ */ o(
|
|
184
|
+
"iframe",
|
|
185
|
+
{
|
|
186
|
+
src: m ? `${c}#toolbar=0` : c,
|
|
187
|
+
className: d.documentIframe,
|
|
188
|
+
title: r.documentIdentifier,
|
|
189
|
+
onError: () => L(t)
|
|
190
|
+
}
|
|
191
|
+
)
|
|
192
|
+
]
|
|
193
|
+
},
|
|
194
|
+
`${r.id}-${e.url}`
|
|
195
|
+
);
|
|
196
|
+
}) })
|
|
197
|
+
}
|
|
198
|
+
)
|
|
199
|
+
] });
|
|
200
|
+
};
|
|
201
|
+
export {
|
|
202
|
+
ie as default
|
|
203
|
+
};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsx as s, jsxs as p, Fragment as H } from "react/jsx-runtime";
|
|
2
|
-
import { u as ee, p as re, y as ae, w as te, f as oe,
|
|
2
|
+
import { u as ee, p as re, y as ae, w as te, f as oe, c as ne, d as se, e as de, a as me, $ as ie, A as q, Y as le, G as ce, b as ue, P as be, Z as U, h as pe, m as fe, T as R, i as _e, F as $e, q as he, W as ve, j as ge } from "./index-BTczc-KE.js";
|
|
3
3
|
import { useQueryClient as ye, useQuery as A } from "@tanstack/react-query";
|
|
4
4
|
import { useState as P, useMemo as g, useCallback as F } from "react";
|
|
5
|
-
const Ne = "_formsTableBody_1pd36_1", Ae = "_customAccordianItem_1pd36_6", Fe = "_formContent_1pd36_18", Re = "_formDetailsContainer_1pd36_25", Le = "_observation_1pd36_30", Ce = "_groupContainer_1pd36_39", Oe = "_rowContainer_1pd36_43", Ie = "_groupLabel_1pd36_48", Te = "_rowLabel_1pd36_58", Me = "_rowValue_1pd36_67", Ve = "_groupMembers_1pd36_75", Se = "_memberRow_1pd36_81", we = "_memberLabel_1pd36_86", De = "_memberValue_1pd36_94",
|
|
5
|
+
const Ne = "_formsTableBody_1pd36_1", Ae = "_customAccordianItem_1pd36_6", Fe = "_formContent_1pd36_18", Re = "_formDetailsContainer_1pd36_25", Le = "_observation_1pd36_30", Ce = "_groupContainer_1pd36_39", Oe = "_rowContainer_1pd36_43", Ie = "_groupLabel_1pd36_48", Te = "_rowLabel_1pd36_58", Me = "_rowValue_1pd36_67", Ve = "_groupMembers_1pd36_75", Se = "_memberRow_1pd36_81", we = "_memberLabel_1pd36_86", De = "_memberValue_1pd36_94", Ee = "_abnormalValue_1pd36_102", xe = "_commentSection_1pd36_110", Be = "_commentText_1pd36_116", Ge = "_nestedGroup_1pd36_125", qe = "_nestedGroupLabel_1pd36_132", Ue = "_nestedGroupMembers_1pd36_141", o = {
|
|
6
6
|
formsTableBody: Ne,
|
|
7
7
|
customAccordianItem: Ae,
|
|
8
8
|
formContent: Fe,
|
|
@@ -17,8 +17,8 @@ const Ne = "_formsTableBody_1pd36_1", Ae = "_customAccordianItem_1pd36_6", Fe =
|
|
|
17
17
|
memberRow: Se,
|
|
18
18
|
memberLabel: we,
|
|
19
19
|
memberValue: De,
|
|
20
|
-
abnormalValue:
|
|
21
|
-
commentSection:
|
|
20
|
+
abnormalValue: Ee,
|
|
21
|
+
commentSection: xe,
|
|
22
22
|
commentText: Be,
|
|
23
23
|
nestedGroup: Ge,
|
|
24
24
|
nestedGroupLabel: qe,
|
|
@@ -298,7 +298,7 @@ const Ne = "_formsTableBody_1pd36_1", Ae = "_customAccordianItem_1pd36_6", Fe =
|
|
|
298
298
|
const D = g(() => !C || !t?.formName ? [] : Ke(
|
|
299
299
|
C,
|
|
300
300
|
t.formName
|
|
301
|
-
), [C, t?.formName]),
|
|
301
|
+
), [C, t?.formName]), E = g(
|
|
302
302
|
() => [
|
|
303
303
|
{ key: "recordedOn", header: a("FORM_RECORDED_ON") },
|
|
304
304
|
{ key: "recordedBy", header: a("FORM_RECORDED_BY") }
|
|
@@ -310,7 +310,7 @@ const Ne = "_formsTableBody_1pd36_1", Ae = "_customAccordianItem_1pd36_6", Fe =
|
|
|
310
310
|
{ key: "recordedBy", sortable: !0 }
|
|
311
311
|
],
|
|
312
312
|
[]
|
|
313
|
-
),
|
|
313
|
+
), x = g(() => {
|
|
314
314
|
const i = T.reduce(
|
|
315
315
|
(u, l) => {
|
|
316
316
|
const v = l.formName;
|
|
@@ -353,10 +353,10 @@ const Ne = "_formsTableBody_1pd36_1", Ae = "_customAccordianItem_1pd36_6", Fe =
|
|
|
353
353
|
[B]
|
|
354
354
|
);
|
|
355
355
|
return /* @__PURE__ */ p(H, { children: [
|
|
356
|
-
/* @__PURE__ */ s("div", { "data-testid": "forms-table", children: y || N ||
|
|
356
|
+
/* @__PURE__ */ s("div", { "data-testid": "forms-table", children: y || N || x.length === 0 || f ? /* @__PURE__ */ s(
|
|
357
357
|
q,
|
|
358
358
|
{
|
|
359
|
-
headers:
|
|
359
|
+
headers: E,
|
|
360
360
|
ariaLabel: a("FORMS_HEADING"),
|
|
361
361
|
rows: [],
|
|
362
362
|
loading: y,
|
|
@@ -366,7 +366,7 @@ const Ne = "_formsTableBody_1pd36_1", Ae = "_customAccordianItem_1pd36_6", Fe =
|
|
|
366
366
|
className: o.formsTableBody,
|
|
367
367
|
dataTestId: "forms-table"
|
|
368
368
|
}
|
|
369
|
-
) : /* @__PURE__ */ s(le, { align: "start", children:
|
|
369
|
+
) : /* @__PURE__ */ s(le, { align: "start", children: x.map((i, u) => {
|
|
370
370
|
const { formName: l, records: v } = i;
|
|
371
371
|
return /* @__PURE__ */ s(
|
|
372
372
|
ce,
|
|
@@ -378,7 +378,7 @@ const Ne = "_formsTableBody_1pd36_1", Ae = "_customAccordianItem_1pd36_6", Fe =
|
|
|
378
378
|
children: /* @__PURE__ */ s(
|
|
379
379
|
q,
|
|
380
380
|
{
|
|
381
|
-
headers:
|
|
381
|
+
headers: E,
|
|
382
382
|
ariaLabel: a("FORMS_HEADING"),
|
|
383
383
|
rows: v,
|
|
384
384
|
loading: !1,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { c, T as l, P as m, a as v, D as u, Q as i } from "./YPM2AS64
|
|
2
|
-
import { v as d, x as f, z as e } from "./index-
|
|
1
|
+
import { c, T as l, P as m, a as v, D as u, Q as i } from "./YPM2AS64--lOd7DAs.js";
|
|
2
|
+
import { v as d, x as f, z as e } from "./index-BTczc-KE.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 { v, x as C, z 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--lOd7DAs.js";
|
|
2
|
+
import { v, x as C, z as e } from "./index-BTczc-KE.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 l } from "react/jsx-runtime";
|
|
2
|
-
import { p as
|
|
2
|
+
import { p as C, o as B, u as N, k as H, l as K, e as Q, h as j, H as w, n as x, L as G, A as M, r as P, s as S, V as W, i as z, t as Y, F as J, q as X, W as Z } from "./index-BTczc-KE.js";
|
|
3
3
|
import { useQueries as ee, useQuery as te } from "@tanstack/react-query";
|
|
4
4
|
import { useRef as ae, useEffect as $, useMemo as E } from "react";
|
|
5
5
|
const F = (t, d, n, u, o) => {
|
|
@@ -78,7 +78,7 @@ const F = (t, d, n, u, o) => {
|
|
|
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, o = ae(/* @__PURE__ */ new Set()), a =
|
|
81
|
+
const d = t, { conceptNames: n = [], conceptUuid: u = [] } = d, o = ae(/* @__PURE__ */ new Set()), a = C(), { addNotification: r } = B(), { t: s } = N(), i = ee({
|
|
82
82
|
queries: n.map((e) => ({
|
|
83
83
|
queryKey: ne(e),
|
|
84
84
|
queryFn: () => H(e),
|
|
@@ -88,10 +88,10 @@ const F = (t, d, n, u, o) => {
|
|
|
88
88
|
$(() => {
|
|
89
89
|
i.forEach((e, m) => {
|
|
90
90
|
if (e.isError && !o.current.has(m)) {
|
|
91
|
-
const
|
|
91
|
+
const k = n[m];
|
|
92
92
|
r({
|
|
93
93
|
title: s("ERROR_DEFAULT_TITLE"),
|
|
94
|
-
message: s("ERROR_FETCHING_CONCEPT", { conceptName:
|
|
94
|
+
message: s("ERROR_FETCHING_CONCEPT", { conceptName: k }),
|
|
95
95
|
type: "error"
|
|
96
96
|
}), o.current.add(m);
|
|
97
97
|
} else e.isError || o.current.delete(m);
|
|
@@ -107,7 +107,7 @@ const F = (t, d, n, u, o) => {
|
|
|
107
107
|
queryFn: () => K(a, p),
|
|
108
108
|
enabled: !!a && p.length > 0 && v
|
|
109
109
|
});
|
|
110
|
-
|
|
110
|
+
Q(
|
|
111
111
|
(e) => {
|
|
112
112
|
e.patientUUID === a && e.updatedConcepts.size > 0 && [...e.updatedConcepts.keys()].some(
|
|
113
113
|
(m) => p.includes(m)
|
|
@@ -123,7 +123,7 @@ const F = (t, d, n, u, o) => {
|
|
|
123
123
|
}, [R]);
|
|
124
124
|
const g = E(() => {
|
|
125
125
|
if (!c) return [];
|
|
126
|
-
const e =
|
|
126
|
+
const e = j(c), m = w(e);
|
|
127
127
|
return x(m);
|
|
128
128
|
}, [c]), L = [
|
|
129
129
|
{ key: "name", header: "name" },
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { B as we, C as z, D as xt, E as B, x as q, z as y, I as Ro, J as ye, S as R,
|
|
1
|
+
import { B as we, C as z, D as xt, E as B, x as q, z as y, I as Ro, J as ye, S as R, K as _, M as k, N, O as A, Q as bs, R as ir, U as $e, X 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 Os } from "./index-BTczc-KE.js";
|
|
2
2
|
var Ls = (e) => e != null, qs = (e) => e.filter(Ls);
|
|
3
3
|
function _s(e) {
|
|
4
4
|
return (...t) => {
|
|
@@ -80105,6 +80105,8 @@ const TK2 = /* @__PURE__ */ zW2(_K2), mwe = {
|
|
|
80105
80105
|
}), FA1 = (t, e) => {
|
|
80106
80106
|
if (!t || t.length === 0)
|
|
80107
80107
|
return !1;
|
|
80108
|
+
if (!e || e.length === 0)
|
|
80109
|
+
return !0;
|
|
80108
80110
|
const r = Array.isArray(e) ? e : [e];
|
|
80109
80111
|
return t.some(
|
|
80110
80112
|
(n) => r.includes(n.name)
|
|
@@ -154658,15 +154660,16 @@ const oh1 = "consultation:saved", Ro = (t, e = []) => {
|
|
|
154658
154660
|
};
|
|
154659
154661
|
function __0(t) {
|
|
154660
154662
|
return t.filter((e) => e.resource?.resourceType === "DocumentReference").map((e) => {
|
|
154661
|
-
const r = e.resource, n = r.
|
|
154663
|
+
const r = e.resource, n = r.masterIdentifier?.value ?? r.id ?? "", a = (r.content ?? []).map((i) => i.attachment).filter((i) => !!i).map((i) => ({ url: i.url ?? "", contentType: i.contentType })), c = a[0];
|
|
154662
154664
|
return {
|
|
154663
|
-
id: r.id ??
|
|
154664
|
-
documentIdentifier:
|
|
154665
|
+
id: r.id ?? n,
|
|
154666
|
+
documentIdentifier: n,
|
|
154665
154667
|
documentType: r.type?.coding?.[0]?.display ?? r.category?.[0]?.coding?.[0]?.display,
|
|
154666
154668
|
uploadedOn: r.date ?? "",
|
|
154667
154669
|
uploadedBy: r.author?.[0]?.display,
|
|
154668
|
-
contentType:
|
|
154669
|
-
documentUrl:
|
|
154670
|
+
contentType: c?.contentType,
|
|
154671
|
+
documentUrl: c?.url ?? "",
|
|
154672
|
+
attachments: a
|
|
154670
154673
|
};
|
|
154671
154674
|
});
|
|
154672
154675
|
}
|
|
@@ -160923,7 +160926,7 @@ function vS0(t, e, r) {
|
|
|
160923
160926
|
return n;
|
|
160924
160927
|
};
|
|
160925
160928
|
}
|
|
160926
|
-
_t(() => Promise.resolve().then(() => K_0)), _t(() => Promise.resolve().then(() => P$0)), _t(() => Promise.resolve().then(() => EO0)), _t(() => Promise.resolve().then(() => xO0)), _t(() => import("./DocumentsTable-
|
|
160929
|
+
_t(() => Promise.resolve().then(() => K_0)), _t(() => Promise.resolve().then(() => P$0)), _t(() => Promise.resolve().then(() => EO0)), _t(() => Promise.resolve().then(() => xO0)), _t(() => import("./DocumentsTable-BCnYVvIx-9ADe8L_l.js")), _t(() => Promise.resolve().then(() => KR0)), _t(() => import("./FormsTable-DFknJTr7-BUzazgCC.js")), _t(() => Promise.resolve().then(() => yR0)), _t(() => import("./Observations-D0PH7TgR-CirKb1dN.js")), _t(
|
|
160927
160930
|
() => Promise.resolve().then(() => oS0)
|
|
160928
160931
|
), _t(
|
|
160929
160932
|
() => Promise.resolve().then(() => jD0)
|
|
@@ -162762,7 +162765,7 @@ var vK0 = (t, e = !1) => {
|
|
|
162762
162765
|
const e = VS1(() => {
|
|
162763
162766
|
const r = this, [n] = this.#n, [a] = this.#o, [c] = this.#a, [i] = this.#c, [l] = this.#p, [s] = this.#t;
|
|
162764
162767
|
let d;
|
|
162765
|
-
return this.#i ? d = this.#i : (d = MS1(() => import("./LNWAZHJI-
|
|
162768
|
+
return this.#i ? d = this.#i : (d = MS1(() => import("./LNWAZHJI-CxnADNOu.js")), this.#i = d), BS1(this.#h, this.#r), vS1(d, ES1({
|
|
162766
162769
|
get queryFlavor() {
|
|
162767
162770
|
return r.#d;
|
|
162768
162771
|
},
|
|
@@ -162860,7 +162863,7 @@ var vK0 = (t, e = !1) => {
|
|
|
162860
162863
|
const e = VS1(() => {
|
|
162861
162864
|
const r = this, [n] = this.#n, [a] = this.#o, [c] = this.#a, [i] = this.#c, [l] = this.#p, [s] = this.#t, [d] = this.#i;
|
|
162862
162865
|
let u;
|
|
162863
|
-
return this.#l ? u = this.#l : (u = MS1(() => import("./MWZ6AO7Z-
|
|
162866
|
+
return this.#l ? u = this.#l : (u = MS1(() => import("./MWZ6AO7Z-ROo-WQsX.js")), this.#l = u), BS1(this.#h, this.#r), vS1(u, ES1({
|
|
162864
162867
|
get queryFlavor() {
|
|
162865
162868
|
return r.#d;
|
|
162866
162869
|
},
|
|
@@ -173349,7 +173352,7 @@ const $U0 = new Ok1(Uk0), zK0 = () => {
|
|
|
173349
173352
|
] }) }) : /* @__PURE__ */ ce(RL1, {});
|
|
173350
173353
|
};
|
|
173351
173354
|
export {
|
|
173352
|
-
|
|
173355
|
+
Uf as $,
|
|
173353
173356
|
ht as A,
|
|
173354
173357
|
XW0 as B,
|
|
173355
173358
|
G2 as C,
|
|
@@ -173360,63 +173363,62 @@ export {
|
|
|
173360
173363
|
WW0 as H,
|
|
173361
173364
|
dK0 as I,
|
|
173362
173365
|
iK0 as J,
|
|
173363
|
-
|
|
173366
|
+
lK0 as K,
|
|
173364
173367
|
RO1 as L,
|
|
173365
|
-
|
|
173366
|
-
|
|
173367
|
-
|
|
173368
|
+
sm as M,
|
|
173369
|
+
m3 as N,
|
|
173370
|
+
GS0 as O,
|
|
173368
173371
|
mW0 as P,
|
|
173369
|
-
|
|
173370
|
-
|
|
173372
|
+
sK0 as Q,
|
|
173373
|
+
WS0 as R,
|
|
173371
173374
|
oK0 as S,
|
|
173372
173375
|
Ei as T,
|
|
173373
|
-
|
|
173376
|
+
eK0 as U,
|
|
173374
173377
|
UW0 as V,
|
|
173375
173378
|
vW0 as W,
|
|
173376
|
-
|
|
173379
|
+
Hi as X,
|
|
173377
173380
|
hl as Y,
|
|
173378
173381
|
fr as Z,
|
|
173379
|
-
|
|
173382
|
+
EK0 as _,
|
|
173380
173383
|
K0 as a,
|
|
173381
|
-
|
|
173382
|
-
|
|
173383
|
-
|
|
173384
|
-
|
|
173385
|
-
|
|
173386
|
-
|
|
173387
|
-
|
|
173388
|
-
|
|
173389
|
-
|
|
173390
|
-
|
|
173391
|
-
|
|
173392
|
-
|
|
173393
|
-
|
|
173394
|
-
|
|
173395
|
-
|
|
173396
|
-
|
|
173397
|
-
|
|
173398
|
-
|
|
173399
|
-
|
|
173400
|
-
|
|
173401
|
-
|
|
173402
|
-
|
|
173403
|
-
|
|
173404
|
-
|
|
173405
|
-
|
|
173406
|
-
|
|
173407
|
-
|
|
173408
|
-
|
|
173409
|
-
|
|
173410
|
-
|
|
173411
|
-
|
|
173412
|
-
|
|
173413
|
-
|
|
173414
|
-
|
|
173415
|
-
|
|
173416
|
-
PW0 as
|
|
173417
|
-
IW0 as
|
|
173418
|
-
Ro as
|
|
173419
|
-
Uf as e,
|
|
173384
|
+
MK0 as a0,
|
|
173385
|
+
GW0 as a1,
|
|
173386
|
+
lm as a2,
|
|
173387
|
+
fK0 as a3,
|
|
173388
|
+
tk0 as a4,
|
|
173389
|
+
tK0 as a5,
|
|
173390
|
+
YW0 as a6,
|
|
173391
|
+
pK0 as a7,
|
|
173392
|
+
wK0 as a8,
|
|
173393
|
+
mK0 as a9,
|
|
173394
|
+
gK0 as aa,
|
|
173395
|
+
vK0 as ab,
|
|
173396
|
+
rK0 as ac,
|
|
173397
|
+
yK0 as ad,
|
|
173398
|
+
I0 as ae,
|
|
173399
|
+
lS1 as af,
|
|
173400
|
+
QW0 as ag,
|
|
173401
|
+
ek0 as ah,
|
|
173402
|
+
ES1 as ai,
|
|
173403
|
+
f3 as aj,
|
|
173404
|
+
Sk0 as ak,
|
|
173405
|
+
nK0 as al,
|
|
173406
|
+
R6 as am,
|
|
173407
|
+
JS0 as an,
|
|
173408
|
+
hK0 as ao,
|
|
173409
|
+
cK0 as ap,
|
|
173410
|
+
aK0 as aq,
|
|
173411
|
+
S6 as ar,
|
|
173412
|
+
DS0 as as,
|
|
173413
|
+
uK0 as at,
|
|
173414
|
+
yS0 as au,
|
|
173415
|
+
zK0 as av,
|
|
173416
|
+
FS1 as aw,
|
|
173417
|
+
cZ0 as ax,
|
|
173418
|
+
hn as b,
|
|
173419
|
+
PW0 as c,
|
|
173420
|
+
IW0 as d,
|
|
173421
|
+
Ro as e,
|
|
173420
173422
|
BW0 as f,
|
|
173421
173423
|
FW0 as g,
|
|
173422
173424
|
lD0 as h,
|