@bahmni/clinical-app 0.0.1-dev.359 → 0.0.1-dev.361
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-C3NLuX16.js → ConsultationPage-CkN6CM0B.js} +1967 -1967
- package/dist/{DocumentsTable-5x3z64yX-0lmOtgcL.js → DocumentsTable-CuUXGGnu-BsbCkW1d.js} +23 -23
- package/dist/{FormsTable-DK5LbwNj-J6vb59zf.js → FormsTable-Brl_a7KT-BDb-E0HM.js} +111 -111
- package/dist/{LNWAZHJI-DjMZvbBr.js → LNWAZHJI-COvorflD.js} +2 -2
- package/dist/{MWZ6AO7Z-CA1l21_F.js → MWZ6AO7Z-BfzMWGu3.js} +2 -2
- package/dist/{Observations-BtZFJSMF-BG95W5Mh.js → Observations-BhHohufb-CIINxrrm.js} +63 -63
- package/dist/{YPM2AS64-Daz3i2os.js → YPM2AS64-h4ErisFG.js} +1 -1
- package/dist/components/forms/observations/ObservationFormsContainer.d.ts.map +1 -1
- package/dist/{hook-CG-TZseI.js → hook-DliNUT4D.js} +1 -1
- package/dist/{index-B37y3cQu.js → index-AZbvK4Xt.js} +3 -3
- package/dist/{index-BVXXyDc6.js → index-CKLsqmrZ.js} +4338 -4338
- package/dist/{index-UzpbgStd.js → index-CilfHn_F.js} +3 -3
- package/dist/index.css +1 -1
- package/dist/index.js +1 -1
- package/package.json +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { jsx as r, jsxs as h, Fragment as
|
|
2
|
-
import {
|
|
1
|
+
import { jsx as r, jsxs as h, Fragment as x } from "react/jsx-runtime";
|
|
2
|
+
import { g as G, u as Y, K as W, h as J, n as X, a as Z, U as ee, p as te } from "./index-CKLsqmrZ.js";
|
|
3
3
|
import { useQuery as ae } from "@tanstack/react-query";
|
|
4
|
-
import { useState as l, useCallback as
|
|
4
|
+
import { useState as l, useCallback as p, 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 = {
|
|
6
6
|
documentsTableBody: ne,
|
|
7
7
|
viewAttachmentsLink: oe,
|
|
@@ -34,15 +34,15 @@ const Te = [
|
|
|
34
34
|
"uploadedOn",
|
|
35
35
|
"uploadedBy"
|
|
36
36
|
], he = /\.(jpg|jpeg|png|gif|webp|bmp|svg)$/i, B = (a) => a.attachments.length > 0 ? a.attachments : a.documentUrl ? [{ url: a.documentUrl, contentType: a.contentType }] : [], Ne = ({ config: a, encounterUuids: g }) => {
|
|
37
|
-
const [s,
|
|
37
|
+
const [s, U] = l(!1), [o, w] = l(
|
|
38
38
|
null
|
|
39
39
|
), [$, O] = l(
|
|
40
40
|
/* @__PURE__ */ new Set()
|
|
41
|
-
), E =
|
|
42
|
-
|
|
43
|
-
}, []), H =
|
|
44
|
-
|
|
45
|
-
}, []), v =
|
|
41
|
+
), E = G(), { t: n } = Y(), { addNotification: L } = W(), k = Number(a?.pageSize) || 5, [f, C] = l(1), [u, V] = l(k), [F, A] = l(void 0), M = p((e) => {
|
|
42
|
+
w(e), U(!0);
|
|
43
|
+
}, []), H = p(() => {
|
|
44
|
+
U(!1), w(null), O(/* @__PURE__ */ new Set());
|
|
45
|
+
}, []), v = p((e) => {
|
|
46
46
|
O((t) => new Set(t).add(e));
|
|
47
47
|
}, []), { data: i, isLoading: q, isError: b, error: y } = ae({
|
|
48
48
|
queryKey: [
|
|
@@ -61,9 +61,9 @@ const Te = [
|
|
|
61
61
|
)
|
|
62
62
|
});
|
|
63
63
|
I(() => {
|
|
64
|
-
i &&
|
|
64
|
+
i && A(i.total);
|
|
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"),
|
|
@@ -89,24 +89,24 @@ const Te = [
|
|
|
89
89
|
e.signal.aborted || O(t);
|
|
90
90
|
})(), () => e.abort();
|
|
91
91
|
}, [s, o]);
|
|
92
|
-
const
|
|
92
|
+
const K = p(
|
|
93
93
|
(e, t) => {
|
|
94
|
-
t !== u ? (V(t),
|
|
94
|
+
t !== u ? (V(t), C(1), A(void 0)) : C(e);
|
|
95
95
|
},
|
|
96
96
|
[u]
|
|
97
|
-
), N =
|
|
97
|
+
), N = _(
|
|
98
98
|
() => a?.fields ?? Te,
|
|
99
99
|
[a?.fields]
|
|
100
|
-
),
|
|
100
|
+
), j = _(() => [...i?.documents ?? []].sort((e, t) => !e.uploadedOn && !t.uploadedOn ? 0 : e.uploadedOn ? t.uploadedOn ? new Date(t.uploadedOn).getTime() - new Date(e.uploadedOn).getTime() : -1 : 1), [i]), P = _(() => ie(N, n), [N, n]), z = _(
|
|
101
101
|
() => N.map((e) => ({
|
|
102
102
|
key: e,
|
|
103
103
|
sortable: e !== "attachments"
|
|
104
104
|
})),
|
|
105
105
|
[N]
|
|
106
|
-
), T =
|
|
106
|
+
), T = _(
|
|
107
107
|
() => o ? B(o) : [],
|
|
108
108
|
[o]
|
|
109
|
-
),
|
|
109
|
+
), Q = p(
|
|
110
110
|
(e, t) => {
|
|
111
111
|
switch (t) {
|
|
112
112
|
case "documentIdentifier":
|
|
@@ -137,24 +137,24 @@ const Te = [
|
|
|
137
137
|
},
|
|
138
138
|
[M, n]
|
|
139
139
|
);
|
|
140
|
-
return /* @__PURE__ */ h(
|
|
140
|
+
return /* @__PURE__ */ h(x, { children: [
|
|
141
141
|
/* @__PURE__ */ r("div", { "data-testid": "documents-table", children: /* @__PURE__ */ r(
|
|
142
142
|
ee,
|
|
143
143
|
{
|
|
144
|
-
headers:
|
|
144
|
+
headers: P,
|
|
145
145
|
ariaLabel: n("DOCUMENTS_TABLE_HEADING"),
|
|
146
|
-
rows:
|
|
146
|
+
rows: j,
|
|
147
147
|
loading: q,
|
|
148
148
|
errorStateMessage: b ? y?.message : null,
|
|
149
|
-
sortable:
|
|
149
|
+
sortable: z,
|
|
150
150
|
emptyStateMessage: n("DOCUMENTS_NO_RECORDS"),
|
|
151
|
-
renderCell:
|
|
151
|
+
renderCell: Q,
|
|
152
152
|
className: d.documentsTableBody,
|
|
153
153
|
dataTestId: "documents-table",
|
|
154
154
|
pageSize: u,
|
|
155
155
|
totalItems: F,
|
|
156
156
|
page: f,
|
|
157
|
-
onPageChange:
|
|
157
|
+
onPageChange: K
|
|
158
158
|
}
|
|
159
159
|
) }),
|
|
160
160
|
s && o && /* @__PURE__ */ r(
|
|
@@ -1,98 +1,98 @@
|
|
|
1
|
-
import { jsx as i, jsxs as
|
|
2
|
-
import { u as
|
|
3
|
-
import { useQueryClient as
|
|
4
|
-
import { useState as
|
|
1
|
+
import { jsx as i, jsxs as G, Fragment as ge } from "react/jsx-runtime";
|
|
2
|
+
import { u as he, g as pe, E as be, J as Ne, b as Oe, d as Te, c as Ee, e as Ie, f as Ae, i as ve, R as _e, v as Fe, s as K, a as Re, j as Y, k as x, n as Se, U as P, l as Ue, m as Ce, p as Be, G as Le, N as De } from "./index-CKLsqmrZ.js";
|
|
3
|
+
import { useQueryClient as Me, useQuery as O } from "@tanstack/react-query";
|
|
4
|
+
import { useState as Q, useMemo as d, useCallback as l } from "react";
|
|
5
5
|
const ke = "FormsTable-module_formsTableBody__SvGha", qe = "FormsTable-module_modalHeading__wnTmA", we = "FormsTable-module_customAccordianItem__isszs", T = {
|
|
6
6
|
formsTableBody: ke,
|
|
7
7
|
modalHeading: qe,
|
|
8
8
|
customAccordianItem: we
|
|
9
|
-
}, He = "startConsultation",
|
|
10
|
-
episodeOfCareUuids:
|
|
9
|
+
}, He = "startConsultation", Ge = ({
|
|
10
|
+
episodeOfCareUuids: S,
|
|
11
11
|
encounterUuids: u,
|
|
12
|
-
config:
|
|
13
|
-
disableActions:
|
|
14
|
-
activeEncounterUuid:
|
|
12
|
+
config: J,
|
|
13
|
+
disableActions: X = !1,
|
|
14
|
+
activeEncounterUuid: g = null
|
|
15
15
|
}) => {
|
|
16
|
-
const { t: n } =
|
|
17
|
-
numberOfVisits:
|
|
16
|
+
const { t: n } = he(), c = pe(), [h, U] = Q(!1), [t, C] = Q(null), {
|
|
17
|
+
numberOfVisits: Z,
|
|
18
18
|
hideThumbnail: W = !1,
|
|
19
19
|
forms: p
|
|
20
|
-
} =
|
|
21
|
-
|
|
22
|
-
), { userPrivileges:
|
|
23
|
-
|
|
20
|
+
} = J ?? {}, ee = be(
|
|
21
|
+
De.EDIT_OBSERVATIONS
|
|
22
|
+
), { userPrivileges: b } = Ne(), E = ee && !X && !!g, B = Oe(
|
|
23
|
+
S,
|
|
24
24
|
u
|
|
25
|
-
), re =
|
|
26
|
-
data:
|
|
27
|
-
isLoading:
|
|
28
|
-
isError:
|
|
25
|
+
), re = Me(), {
|
|
26
|
+
data: L = [],
|
|
27
|
+
isLoading: D,
|
|
28
|
+
isError: M,
|
|
29
29
|
error: oe,
|
|
30
30
|
refetch: ae
|
|
31
|
-
} =
|
|
32
|
-
queryKey: ["forms", c,
|
|
33
|
-
queryFn: () => Te(c, void 0,
|
|
34
|
-
enabled: !!c && !
|
|
31
|
+
} = O({
|
|
32
|
+
queryKey: ["forms", c, S],
|
|
33
|
+
queryFn: () => Te(c, void 0, Z),
|
|
34
|
+
enabled: !!c && !B
|
|
35
35
|
}), k = d(() => {
|
|
36
|
-
let e =
|
|
36
|
+
let e = L;
|
|
37
37
|
return u && u.length > 0 && (e = e.filter(
|
|
38
38
|
(r) => u.includes(r.encounterUuid)
|
|
39
39
|
)), Array.isArray(p) && p.length > 0 && (e = e.filter(
|
|
40
40
|
(r) => p.some((o) => o.toLowerCase() === r.formName.toLowerCase())
|
|
41
41
|
)), e;
|
|
42
|
-
}, [
|
|
42
|
+
}, [L, u, p]), { data: N = [] } = O({
|
|
43
43
|
queryKey: ["observationForms"],
|
|
44
|
-
queryFn: () =>
|
|
44
|
+
queryFn: () => Ee()
|
|
45
45
|
}), q = l(
|
|
46
46
|
(e) => {
|
|
47
|
-
const r =
|
|
47
|
+
const r = N.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
|
-
[
|
|
55
|
+
[N, b]
|
|
56
56
|
), f = l(
|
|
57
|
-
(e) => !
|
|
58
|
-
[
|
|
57
|
+
(e) => !g || e.encounterUuid !== g ? !1 : q(e.formName),
|
|
58
|
+
[g, q]
|
|
59
59
|
), w = l(
|
|
60
|
-
(e) =>
|
|
61
|
-
[
|
|
62
|
-
),
|
|
63
|
-
if (
|
|
64
|
-
return w(
|
|
65
|
-
}, [
|
|
60
|
+
(e) => N.find((r) => r.name === e)?.uuid,
|
|
61
|
+
[N]
|
|
62
|
+
), I = d(() => {
|
|
63
|
+
if (t)
|
|
64
|
+
return w(t.formName);
|
|
65
|
+
}, [t, w]), {
|
|
66
66
|
data: m,
|
|
67
|
-
isLoading:
|
|
68
|
-
isError:
|
|
67
|
+
isLoading: se,
|
|
68
|
+
isError: te,
|
|
69
69
|
error: A
|
|
70
|
-
} =
|
|
71
|
-
queryKey: ["formMetadata",
|
|
72
|
-
queryFn: () =>
|
|
73
|
-
enabled: !!
|
|
70
|
+
} = O({
|
|
71
|
+
queryKey: ["formMetadata", I],
|
|
72
|
+
queryFn: () => Ie(I),
|
|
73
|
+
enabled: !!I && h
|
|
74
74
|
}), {
|
|
75
|
-
data:
|
|
75
|
+
data: v,
|
|
76
76
|
isLoading: ne,
|
|
77
77
|
isError: ie,
|
|
78
|
-
error:
|
|
79
|
-
} =
|
|
80
|
-
queryKey: ["formsEncounterFHIR",
|
|
81
|
-
queryFn: () => Ae(
|
|
82
|
-
enabled: !!
|
|
78
|
+
error: _
|
|
79
|
+
} = O({
|
|
80
|
+
queryKey: ["formsEncounterFHIR", t?.encounterUuid],
|
|
81
|
+
queryFn: () => Ae(t.encounterUuid),
|
|
82
|
+
enabled: !!t?.encounterUuid && h
|
|
83
83
|
});
|
|
84
|
-
|
|
84
|
+
ve(
|
|
85
85
|
(e) => {
|
|
86
86
|
e.patientUUID === c && e.updatedConcepts.size > 0 && (ae(), re.invalidateQueries({ queryKey: ["formsEncounterFHIR"] }));
|
|
87
87
|
},
|
|
88
88
|
[c]
|
|
89
89
|
);
|
|
90
|
-
const de = d(() => !
|
|
90
|
+
const de = d(() => !v?.entry || !t?.formName ? [] : v.entry.filter((e) => e.resource?.resourceType === "Observation").map((e) => e.resource).filter((e) => _e(e) ? Fe(e)?.toLowerCase() === t.formName.toLowerCase() : !0), [v, t?.formName]), le = d(() => {
|
|
91
91
|
if (!m?.schema) return;
|
|
92
92
|
const e = [], r = (o) => {
|
|
93
93
|
(o ?? []).forEach((a) => {
|
|
94
|
-
const
|
|
95
|
-
|
|
94
|
+
const s = a;
|
|
95
|
+
s.id != null && e.push(String(s.id)), s.controls && r(s.controls);
|
|
96
96
|
});
|
|
97
97
|
};
|
|
98
98
|
return r(
|
|
@@ -101,12 +101,12 @@ const ke = "FormsTable-module_formsTableBody__SvGha", qe = "FormsTable-module_mo
|
|
|
101
101
|
}, [m]), me = d(() => {
|
|
102
102
|
if (!m?.schema) return;
|
|
103
103
|
const e = {}, r = (o, a) => {
|
|
104
|
-
for (const
|
|
105
|
-
if (
|
|
106
|
-
const
|
|
107
|
-
r(
|
|
104
|
+
for (const s of o)
|
|
105
|
+
if (s.type === "section") {
|
|
106
|
+
const R = s.label?.value ?? "Section";
|
|
107
|
+
r(s.controls ?? [], R);
|
|
108
108
|
} else
|
|
109
|
-
|
|
109
|
+
s.id != null && a && (e[String(s.id)] = a), s.controls && r(s.controls, a);
|
|
110
110
|
};
|
|
111
111
|
return r(
|
|
112
112
|
m.schema.controls ?? [],
|
|
@@ -114,22 +114,22 @@ const ke = "FormsTable-module_formsTableBody__SvGha", qe = "FormsTable-module_mo
|
|
|
114
114
|
), Object.keys(e).length > 0 ? e : void 0;
|
|
115
115
|
}, [m]), ue = d(() => {
|
|
116
116
|
if (A)
|
|
117
|
-
return
|
|
118
|
-
if (
|
|
119
|
-
return
|
|
120
|
-
}, [A,
|
|
117
|
+
return K(A).message;
|
|
118
|
+
if (_)
|
|
119
|
+
return K(_).message;
|
|
120
|
+
}, [A, _]), y = d(
|
|
121
121
|
() => [
|
|
122
122
|
{ key: "recordedOn", header: n("RECORDED_ON") },
|
|
123
123
|
{ key: "recordedBy", header: n("RECORDED_BY") }
|
|
124
124
|
],
|
|
125
125
|
[n]
|
|
126
126
|
), H = d(
|
|
127
|
-
() => [...
|
|
128
|
-
[
|
|
127
|
+
() => [...y, { key: "actions", header: n("ACTIONS") }],
|
|
128
|
+
[y, n]
|
|
129
129
|
), ce = l(
|
|
130
|
-
(e) =>
|
|
131
|
-
[
|
|
132
|
-
), fe =
|
|
130
|
+
(e) => E && e.some((r) => f(r)) ? H : y,
|
|
131
|
+
[E, f, H, y]
|
|
132
|
+
), fe = y, ye = d(
|
|
133
133
|
() => [
|
|
134
134
|
{ key: "recordedOn", sortable: !0 },
|
|
135
135
|
{ key: "recordedBy", sortable: !0 }
|
|
@@ -140,12 +140,12 @@ const ke = "FormsTable-module_formsTableBody__SvGha", qe = "FormsTable-module_mo
|
|
|
140
140
|
(r, o) => {
|
|
141
141
|
const a = o.formName;
|
|
142
142
|
r[a] ??= [];
|
|
143
|
-
const
|
|
143
|
+
const s = o.providers.map((R) => R.providerName).filter(Boolean).join(", ");
|
|
144
144
|
return r[a].push({
|
|
145
145
|
id: o.encounterUuid,
|
|
146
146
|
formName: o.formName,
|
|
147
|
-
recordedOn:
|
|
148
|
-
recordedBy:
|
|
147
|
+
recordedOn: Re(o.encounterDateTime, n, !0).formattedResult,
|
|
148
|
+
recordedBy: s ?? "--",
|
|
149
149
|
encounterDateTime: o.encounterDateTime,
|
|
150
150
|
encounterUuid: o.encounterUuid
|
|
151
151
|
}), r;
|
|
@@ -156,14 +156,14 @@ const ke = "FormsTable-module_formsTableBody__SvGha", qe = "FormsTable-module_mo
|
|
|
156
156
|
([r, o]) => ({
|
|
157
157
|
formName: r,
|
|
158
158
|
records: o.sort(
|
|
159
|
-
(a,
|
|
159
|
+
(a, s) => s.encounterDateTime - a.encounterDateTime
|
|
160
160
|
)
|
|
161
161
|
})
|
|
162
162
|
).sort((r, o) => r.formName.localeCompare(o.formName));
|
|
163
|
-
}, [k, n]),
|
|
164
|
-
|
|
165
|
-
}, []),
|
|
166
|
-
|
|
163
|
+
}, [k, n]), j = l((e) => {
|
|
164
|
+
C(e), U(!0);
|
|
165
|
+
}, []), $ = l(() => {
|
|
166
|
+
U(!1), C(null);
|
|
167
167
|
}, []), F = l((e) => {
|
|
168
168
|
globalThis.dispatchEvent(
|
|
169
169
|
new CustomEvent(He, {
|
|
@@ -176,65 +176,65 @@ const ke = "FormsTable-module_formsTableBody__SvGha", qe = "FormsTable-module_mo
|
|
|
176
176
|
}
|
|
177
177
|
})
|
|
178
178
|
);
|
|
179
|
-
}, []),
|
|
179
|
+
}, []), z = l(
|
|
180
180
|
(e, r) => {
|
|
181
181
|
switch (r) {
|
|
182
182
|
case "recordedOn":
|
|
183
|
-
return /* @__PURE__ */ i(
|
|
183
|
+
return /* @__PURE__ */ i(Se, { onClick: () => j(e), children: e.recordedOn });
|
|
184
184
|
case "recordedBy":
|
|
185
185
|
return e.recordedBy;
|
|
186
186
|
case "actions":
|
|
187
187
|
return f(e) ? /* @__PURE__ */ i(
|
|
188
|
-
|
|
188
|
+
Y,
|
|
189
189
|
{
|
|
190
190
|
label: n("EDIT_OBSERVATION_FORM"),
|
|
191
191
|
kind: "ghost",
|
|
192
192
|
size: "sm",
|
|
193
193
|
testId: `edit-form-${e.encounterUuid}`,
|
|
194
194
|
onClick: () => F(e),
|
|
195
|
-
children: /* @__PURE__ */ i(
|
|
195
|
+
children: /* @__PURE__ */ i(x, {})
|
|
196
196
|
}
|
|
197
197
|
) : null;
|
|
198
198
|
default:
|
|
199
199
|
return null;
|
|
200
200
|
}
|
|
201
201
|
},
|
|
202
|
-
[
|
|
202
|
+
[j, F, f, n]
|
|
203
203
|
);
|
|
204
|
-
return /* @__PURE__ */
|
|
205
|
-
/* @__PURE__ */ i("div", { id: "forms-table", "data-testid": "forms-table", children:
|
|
206
|
-
|
|
204
|
+
return /* @__PURE__ */ G(ge, { children: [
|
|
205
|
+
/* @__PURE__ */ i("div", { id: "forms-table", "data-testid": "forms-table", children: D || M || V.length === 0 || B ? /* @__PURE__ */ i(
|
|
206
|
+
P,
|
|
207
207
|
{
|
|
208
208
|
headers: fe,
|
|
209
209
|
ariaLabel: n("FORMS_HEADING"),
|
|
210
210
|
rows: [],
|
|
211
|
-
loading:
|
|
212
|
-
errorStateMessage:
|
|
211
|
+
loading: D,
|
|
212
|
+
errorStateMessage: M ? oe?.message : void 0,
|
|
213
213
|
emptyStateMessage: n("FORMS_UNAVAILABLE"),
|
|
214
|
-
renderCell:
|
|
214
|
+
renderCell: z,
|
|
215
215
|
className: T.formsTableBody,
|
|
216
216
|
dataTestId: "forms-table"
|
|
217
217
|
}
|
|
218
|
-
) : /* @__PURE__ */ i(
|
|
219
|
-
const { formName: o, records: a } = e,
|
|
218
|
+
) : /* @__PURE__ */ i(Ue, { align: "start", children: V.map((e, r) => {
|
|
219
|
+
const { formName: o, records: a } = e, s = ce(a);
|
|
220
220
|
return /* @__PURE__ */ i(
|
|
221
|
-
|
|
221
|
+
Ce,
|
|
222
222
|
{
|
|
223
223
|
title: o,
|
|
224
224
|
className: T.customAccordianItem,
|
|
225
225
|
testId: `accordian-title-${o}`,
|
|
226
226
|
open: r === 0,
|
|
227
227
|
children: /* @__PURE__ */ i(
|
|
228
|
-
|
|
228
|
+
P,
|
|
229
229
|
{
|
|
230
|
-
headers:
|
|
230
|
+
headers: s,
|
|
231
231
|
ariaLabel: n("FORMS_HEADING"),
|
|
232
232
|
rows: a,
|
|
233
233
|
loading: !1,
|
|
234
234
|
errorStateMessage: "",
|
|
235
|
-
sortable:
|
|
235
|
+
sortable: ye,
|
|
236
236
|
emptyStateMessage: n("FORMS_UNAVAILABLE"),
|
|
237
|
-
renderCell:
|
|
237
|
+
renderCell: z,
|
|
238
238
|
className: T.formsTableBody,
|
|
239
239
|
dataTestId: `forms-table-${o}`
|
|
240
240
|
}
|
|
@@ -243,42 +243,42 @@ const ke = "FormsTable-module_formsTableBody__SvGha", qe = "FormsTable-module_mo
|
|
|
243
243
|
o
|
|
244
244
|
);
|
|
245
245
|
}) }) }),
|
|
246
|
-
|
|
247
|
-
|
|
246
|
+
h && t && /* @__PURE__ */ i(
|
|
247
|
+
Be,
|
|
248
248
|
{
|
|
249
249
|
id: "modalIdForActionAreaLayout",
|
|
250
250
|
portalId: "main-display-area",
|
|
251
|
-
open:
|
|
252
|
-
onRequestClose:
|
|
253
|
-
modalHeading: /* @__PURE__ */
|
|
254
|
-
/* @__PURE__ */ i("span", { children:
|
|
255
|
-
|
|
256
|
-
|
|
251
|
+
open: h,
|
|
252
|
+
onRequestClose: $,
|
|
253
|
+
modalHeading: /* @__PURE__ */ G("div", { className: T.modalHeading, children: [
|
|
254
|
+
/* @__PURE__ */ i("span", { children: t.formName }),
|
|
255
|
+
E && f(t) && /* @__PURE__ */ i(
|
|
256
|
+
Y,
|
|
257
257
|
{
|
|
258
258
|
label: n("EDIT_OBSERVATION_FORM"),
|
|
259
259
|
kind: "ghost",
|
|
260
260
|
size: "sm",
|
|
261
|
-
testId: `edit-form-modal-${
|
|
261
|
+
testId: `edit-form-modal-${t.encounterUuid}`,
|
|
262
262
|
onClick: () => {
|
|
263
|
-
|
|
263
|
+
$(), F(t);
|
|
264
264
|
},
|
|
265
|
-
children: /* @__PURE__ */ i(
|
|
265
|
+
children: /* @__PURE__ */ i(x, {})
|
|
266
266
|
}
|
|
267
267
|
)
|
|
268
268
|
] }),
|
|
269
|
-
modalLabel: `${
|
|
269
|
+
modalLabel: `${t.recordedOn} | ${t.recordedBy}`,
|
|
270
270
|
passiveModal: !0,
|
|
271
271
|
size: "md",
|
|
272
272
|
testId: "form-details-modal",
|
|
273
273
|
children: /* @__PURE__ */ i(
|
|
274
|
-
|
|
274
|
+
Le,
|
|
275
275
|
{
|
|
276
276
|
observations: de,
|
|
277
|
-
isLoading:
|
|
278
|
-
isError:
|
|
277
|
+
isLoading: se || ne,
|
|
278
|
+
isError: te || ie,
|
|
279
279
|
errorMessage: ue,
|
|
280
280
|
emptyStateMessage: n("NO_FORM_DATA_AVAILABLE"),
|
|
281
|
-
testIdPrefix:
|
|
281
|
+
testIdPrefix: t.formName,
|
|
282
282
|
hideThumbnail: W,
|
|
283
283
|
controlOrder: le,
|
|
284
284
|
sectionMap: me
|
|
@@ -289,5 +289,5 @@ const ke = "FormsTable-module_formsTableBody__SvGha", qe = "FormsTable-module_mo
|
|
|
289
289
|
] });
|
|
290
290
|
};
|
|
291
291
|
export {
|
|
292
|
-
|
|
292
|
+
Ge as default
|
|
293
293
|
};
|
|
@@ -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 { bN as d, bO as f, bP as e } from "./index-
|
|
1
|
+
import { c, T as l, P as m, a as u, D as v, Q as i } from "./YPM2AS64-h4ErisFG.js";
|
|
2
|
+
import { bN as d, bO as f, bP as e } from "./index-CKLsqmrZ.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 { bN as v, bO as C, bP 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-h4ErisFG.js";
|
|
2
|
+
import { bN as v, bO as C, bP as e } from "./index-CKLsqmrZ.js";
|
|
3
3
|
var h = (t) => {
|
|
4
4
|
const [r, o] = s({
|
|
5
5
|
prefix: "TanstackQueryDevtools"
|