@bahmni/clinical-app 0.0.1-dev.370 → 0.0.1-dev.372
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-BV3BXEMh.js → ConsultationPage-BLYFKrw8.js} +11685 -11500
- package/dist/{DocumentsTable-C1vD9Kw9-ftdIXmkR.js → DocumentsTable-CJDKfTCd-PhD_VqGg.js} +20 -20
- package/dist/{FormsTable-BhI227Fr-BCbOzFC4.js → FormsTable-CbqIREzM-p3skNj4B.js} +54 -54
- package/dist/{LNWAZHJI-lRV9jkB1.js → LNWAZHJI-DmaAcpq_.js} +2 -2
- package/dist/{MWZ6AO7Z-DEiFf-Mc.js → MWZ6AO7Z-DqlTLIaM.js} +2 -2
- package/dist/{Observations-D3RSu-vt-g7jomFIO.js → Observations-DtVG5HBx-CFKxJPDS.js} +4 -4
- package/dist/{YPM2AS64-CQhU5EiF.js → YPM2AS64-B09hwU1A.js} +1 -1
- package/dist/components/consultationPadContainer/index.d.ts +9 -0
- package/dist/components/consultationPadContainer/index.d.ts.map +1 -0
- package/dist/components/forms/encounterDetails/EncounterDetails.d.ts +7 -1
- package/dist/components/forms/encounterDetails/EncounterDetails.d.ts.map +1 -1
- package/dist/components/forms/observations/ObservationFormsContainer.d.ts.map +1 -1
- package/dist/{hook-BWfIb4f3.js → hook-BVh7Tcva.js} +1 -1
- package/dist/{index-1Ys3OxQI.js → index-CPurGlza.js} +14 -14
- package/dist/{index-BhY34I_M.js → index-DFdBXY1N.js} +28788 -28704
- package/dist/{index-z3UC96oc.js → index-xyOlNGgA.js} +3 -3
- package/dist/index.css +1 -1
- package/dist/index.js +1 -1
- package/dist/locales/locale_en.json +7 -0
- package/dist/locales/locale_es.json +7 -0
- package/dist/providers/clinicalConfig/models.d.ts +1 -0
- package/dist/providers/clinicalConfig/models.d.ts.map +1 -1
- package/dist/providers/clinicalConfig/schema.json.d.ts +7 -0
- package/package.json +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as r, jsxs as p, Fragment as Q } from "react/jsx-runtime";
|
|
2
|
-
import { g as W, u as x, G as Y, H as J, w as X, a as Z, W as ee, p as te } from "./index-
|
|
2
|
+
import { g as W, u as x, G as Y, H as J, w as X, a as Z, W as ee, p as te } from "./index-DFdBXY1N.js";
|
|
3
3
|
import { useQuery as ae } from "@tanstack/react-query";
|
|
4
|
-
import { useState as l, useCallback as h, useEffect as
|
|
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 = {
|
|
6
6
|
documentsTableBody: ne,
|
|
7
7
|
viewAttachmentsLink: oe,
|
|
@@ -33,7 +33,7 @@ const Te = [
|
|
|
33
33
|
"attachments",
|
|
34
34
|
"uploadedOn",
|
|
35
35
|
"uploadedBy"
|
|
36
|
-
], pe = /\.(jpg|jpeg|png|gif|webp|bmp|svg)$/i, B = (a) => a.attachments.length > 0 ? a.attachments : a.documentUrl ? [{ url: a.documentUrl, contentType: a.contentType }] : [],
|
|
36
|
+
], pe = /\.(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
37
|
const [s, w] = l(!1), [o, U] = l(
|
|
38
38
|
null
|
|
39
39
|
), [$, O] = l(
|
|
@@ -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: y, error: b } = ae({
|
|
48
48
|
queryKey: [
|
|
49
49
|
"documents",
|
|
50
50
|
E,
|
|
@@ -60,17 +60,17 @@ const Te = [
|
|
|
60
60
|
f
|
|
61
61
|
)
|
|
62
62
|
});
|
|
63
|
-
|
|
63
|
+
I(() => {
|
|
64
64
|
i && A(i.total);
|
|
65
|
-
}, [i]),
|
|
65
|
+
}, [i]), I(() => {
|
|
66
66
|
C(1), A(void 0);
|
|
67
|
-
}, [E]),
|
|
68
|
-
|
|
67
|
+
}, [E]), I(() => {
|
|
68
|
+
y && L({
|
|
69
69
|
title: n("ERROR_DEFAULT_TITLE"),
|
|
70
|
-
message:
|
|
70
|
+
message: b?.message ?? "",
|
|
71
71
|
type: "error"
|
|
72
72
|
});
|
|
73
|
-
}, [
|
|
73
|
+
}, [y, b, L, n]), I(() => {
|
|
74
74
|
const e = new AbortController();
|
|
75
75
|
return (async () => {
|
|
76
76
|
if (!s || !o) return;
|
|
@@ -82,8 +82,8 @@ const Te = [
|
|
|
82
82
|
method: "HEAD",
|
|
83
83
|
signal: e.signal
|
|
84
84
|
})).ok || t.add(c);
|
|
85
|
-
} catch (
|
|
86
|
-
|
|
85
|
+
} catch (D) {
|
|
86
|
+
D instanceof Error && D.name !== "AbortError" && t.add(c);
|
|
87
87
|
}
|
|
88
88
|
}
|
|
89
89
|
e.signal.aborted || O(t);
|
|
@@ -94,15 +94,15 @@ const Te = [
|
|
|
94
94
|
t !== u ? (H(t), C(1), A(void 0)) : C(e);
|
|
95
95
|
},
|
|
96
96
|
[u]
|
|
97
|
-
),
|
|
97
|
+
), N = _(
|
|
98
98
|
() => a?.fields ?? Te,
|
|
99
99
|
[a?.fields]
|
|
100
|
-
), G = _(() => [...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(
|
|
101
|
-
() =>
|
|
100
|
+
), G = _(() => [...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
|
+
() => N.map((e) => ({
|
|
102
102
|
key: e,
|
|
103
103
|
sortable: e !== "attachments"
|
|
104
104
|
})),
|
|
105
|
-
[
|
|
105
|
+
[N]
|
|
106
106
|
), T = _(
|
|
107
107
|
() => o ? B(o) : [],
|
|
108
108
|
[o]
|
|
@@ -145,7 +145,7 @@ const Te = [
|
|
|
145
145
|
ariaLabel: n("DOCUMENTS_TABLE_HEADING"),
|
|
146
146
|
rows: G,
|
|
147
147
|
loading: q,
|
|
148
|
-
errorStateMessage:
|
|
148
|
+
errorStateMessage: y ? b?.message : null,
|
|
149
149
|
sortable: z,
|
|
150
150
|
emptyStateMessage: n("DOCUMENTS_NO_RECORDS"),
|
|
151
151
|
renderCell: K,
|
|
@@ -169,8 +169,8 @@ const Te = [
|
|
|
169
169
|
size: "lg",
|
|
170
170
|
testId: "document-view-modal",
|
|
171
171
|
children: /* @__PURE__ */ r("div", { className: d.documentViewerContainer, children: T.map((e, t) => {
|
|
172
|
-
const m = R(e.url), c = e.contentType?.toLowerCase().includes("pdf"), S = (e.contentType?.toLowerCase().includes("image") ?? !1) || pe.test(e.url ?? ""),
|
|
173
|
-
return m === "#" ||
|
|
172
|
+
const m = R(e.url), c = e.contentType?.toLowerCase().includes("pdf"), S = (e.contentType?.toLowerCase().includes("image") ?? !1) || pe.test(e.url ?? ""), D = $.has(t);
|
|
173
|
+
return m === "#" || D ? /* @__PURE__ */ p(
|
|
174
174
|
"div",
|
|
175
175
|
{
|
|
176
176
|
className: d.attachmentError,
|
|
@@ -223,5 +223,5 @@ const Te = [
|
|
|
223
223
|
] });
|
|
224
224
|
};
|
|
225
225
|
export {
|
|
226
|
-
|
|
226
|
+
Ne as default
|
|
227
227
|
};
|
|
@@ -1,25 +1,25 @@
|
|
|
1
|
-
import { jsx as i, jsxs as
|
|
2
|
-
import { u as
|
|
1
|
+
import { jsx as i, jsxs as x, Fragment as ge } from "react/jsx-runtime";
|
|
2
|
+
import { u as ye, g as be, V as pe, X as Ne, b as Oe, c as Ie, h as Te, y as Ee, e as Ae, f as _e, D as ve, N as Fe, s as z, a as Se, d as K, r as G, w as Ce, W as P, $ as Re, I as Be, p as De, Y as Le, k as Ue } from "./index-DFdBXY1N.js";
|
|
3
3
|
import { useQueryClient as Me, useQuery as O } from "@tanstack/react-query";
|
|
4
4
|
import { useState as Q, useMemo as d, useCallback as l } from "react";
|
|
5
|
-
const ke = "FormsTable-module_formsTableBody__SvGha", we = "FormsTable-module_modalHeading__wnTmA", qe = "FormsTable-module_customAccordianItem__isszs",
|
|
5
|
+
const ke = "FormsTable-module_formsTableBody__SvGha", we = "FormsTable-module_modalHeading__wnTmA", qe = "FormsTable-module_customAccordianItem__isszs", I = {
|
|
6
6
|
formsTableBody: ke,
|
|
7
7
|
modalHeading: we,
|
|
8
8
|
customAccordianItem: qe
|
|
9
|
-
}, Ve = "startConsultation",
|
|
9
|
+
}, Ve = "startConsultation", xe = ({
|
|
10
10
|
episodeOfCareUuids: C,
|
|
11
11
|
encounterUuids: u,
|
|
12
12
|
config: X,
|
|
13
13
|
disableActions: W = !1,
|
|
14
|
-
activeEncounterUuid:
|
|
14
|
+
activeEncounterUuid: g = null
|
|
15
15
|
}) => {
|
|
16
|
-
const { t: n } =
|
|
16
|
+
const { t: n } = ye(), c = be(), [y, R] = Q(!1), [s, B] = Q(null), {
|
|
17
17
|
numberOfVisits: Z,
|
|
18
18
|
hideThumbnail: J = !1,
|
|
19
|
-
forms:
|
|
20
|
-
} = X ?? {}, ee =
|
|
19
|
+
forms: b
|
|
20
|
+
} = X ?? {}, ee = pe(
|
|
21
21
|
Ue.EDIT_OBSERVATIONS
|
|
22
|
-
), { userPrivileges:
|
|
22
|
+
), { userPrivileges: p } = Ne(), T = ee && !W && !!g, D = Oe(
|
|
23
23
|
C,
|
|
24
24
|
u
|
|
25
25
|
), re = Me(), {
|
|
@@ -30,32 +30,32 @@ const ke = "FormsTable-module_formsTableBody__SvGha", we = "FormsTable-module_mo
|
|
|
30
30
|
refetch: ae
|
|
31
31
|
} = O({
|
|
32
32
|
queryKey: ["forms", c, C],
|
|
33
|
-
queryFn: () =>
|
|
33
|
+
queryFn: () => Ie(c, void 0, Z),
|
|
34
34
|
enabled: !!c && !D
|
|
35
35
|
}), k = d(() => {
|
|
36
36
|
let e = L;
|
|
37
37
|
return u && u.length > 0 && (e = e.filter(
|
|
38
38
|
(r) => u.includes(r.encounterUuid)
|
|
39
|
-
)), Array.isArray(
|
|
40
|
-
(r) =>
|
|
39
|
+
)), Array.isArray(b) && b.length > 0 && (e = e.filter(
|
|
40
|
+
(r) => b.some((o) => o.toLowerCase() === r.formName.toLowerCase())
|
|
41
41
|
)), e;
|
|
42
|
-
}, [L, u,
|
|
42
|
+
}, [L, u, b]), { data: N = [] } = O({
|
|
43
43
|
queryKey: ["observationForms"],
|
|
44
|
-
queryFn: () =>
|
|
44
|
+
queryFn: () => Te()
|
|
45
45
|
}), w = l(
|
|
46
46
|
(e) => {
|
|
47
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 (!p || p.length === 0) return !1;
|
|
50
|
+
const o = new Set(p.map((a) => a.name));
|
|
51
51
|
return r.privileges.some(
|
|
52
52
|
(a) => o.has(a.privilegeName) && a.editable
|
|
53
53
|
);
|
|
54
54
|
},
|
|
55
|
-
[N,
|
|
55
|
+
[N, p]
|
|
56
56
|
), f = l(
|
|
57
|
-
(e) => !
|
|
58
|
-
[
|
|
57
|
+
(e) => !g || e.encounterUuid !== g ? !1 : w(e.formName),
|
|
58
|
+
[g, w]
|
|
59
59
|
), q = l(
|
|
60
60
|
(e) => N.find((r) => r.name === e)?.uuid,
|
|
61
61
|
[N]
|
|
@@ -70,7 +70,7 @@ const ke = "FormsTable-module_formsTableBody__SvGha", we = "FormsTable-module_mo
|
|
|
70
70
|
} = O({
|
|
71
71
|
queryKey: ["formMetadata", E],
|
|
72
72
|
queryFn: () => Ee(E),
|
|
73
|
-
enabled: !!E &&
|
|
73
|
+
enabled: !!E && y
|
|
74
74
|
}), {
|
|
75
75
|
data: _,
|
|
76
76
|
isLoading: ne,
|
|
@@ -79,7 +79,7 @@ const ke = "FormsTable-module_formsTableBody__SvGha", we = "FormsTable-module_mo
|
|
|
79
79
|
} = O({
|
|
80
80
|
queryKey: ["formsEncounterFHIR", s?.encounterUuid],
|
|
81
81
|
queryFn: () => Ae(s.encounterUuid),
|
|
82
|
-
enabled: !!s?.encounterUuid &&
|
|
82
|
+
enabled: !!s?.encounterUuid && y
|
|
83
83
|
});
|
|
84
84
|
_e(
|
|
85
85
|
(e) => {
|
|
@@ -87,7 +87,7 @@ const ke = "FormsTable-module_formsTableBody__SvGha", we = "FormsTable-module_mo
|
|
|
87
87
|
},
|
|
88
88
|
[c]
|
|
89
89
|
);
|
|
90
|
-
const de = d(() => !_?.entry || !s?.formName ? [] : _.entry.filter((e) => e.resource?.resourceType === "Observation").map((e) => e.resource).filter((e) => ve(e) ?
|
|
90
|
+
const de = d(() => !_?.entry || !s?.formName ? [] : _.entry.filter((e) => e.resource?.resourceType === "Observation").map((e) => e.resource).filter((e) => ve(e) ? Fe(e)?.toLowerCase() === s.formName.toLowerCase() : !0), [_, s?.formName]), le = d(() => {
|
|
91
91
|
if (!m?.schema) return;
|
|
92
92
|
const e = [], r = (o) => {
|
|
93
93
|
(o ?? []).forEach((a) => {
|
|
@@ -103,8 +103,8 @@ const ke = "FormsTable-module_formsTableBody__SvGha", we = "FormsTable-module_mo
|
|
|
103
103
|
const e = {}, r = (o, a) => {
|
|
104
104
|
for (const t of o)
|
|
105
105
|
if (t.type === "section") {
|
|
106
|
-
const
|
|
107
|
-
r(t.controls ?? [],
|
|
106
|
+
const S = t.label?.value ?? "Section";
|
|
107
|
+
r(t.controls ?? [], S);
|
|
108
108
|
} else
|
|
109
109
|
t.id != null && a && (e[String(t.id)] = a), t.controls && r(t.controls, a);
|
|
110
110
|
};
|
|
@@ -114,22 +114,22 @@ const ke = "FormsTable-module_formsTableBody__SvGha", we = "FormsTable-module_mo
|
|
|
114
114
|
), Object.keys(e).length > 0 ? e : void 0;
|
|
115
115
|
}, [m]), ue = d(() => {
|
|
116
116
|
if (A)
|
|
117
|
-
return
|
|
117
|
+
return z(A).message;
|
|
118
118
|
if (v)
|
|
119
|
-
return
|
|
120
|
-
}, [A, v]),
|
|
119
|
+
return z(v).message;
|
|
120
|
+
}, [A, v]), h = 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
|
), V = d(
|
|
127
|
-
() => [...
|
|
128
|
-
[
|
|
127
|
+
() => [...h, { key: "actions", header: n("ACTIONS") }],
|
|
128
|
+
[h, n]
|
|
129
129
|
), ce = l(
|
|
130
|
-
(e) =>
|
|
131
|
-
[
|
|
132
|
-
), fe =
|
|
130
|
+
(e) => T && e.some((r) => f(r)) ? V : h,
|
|
131
|
+
[T, f, V, h]
|
|
132
|
+
), fe = h, he = d(
|
|
133
133
|
() => [
|
|
134
134
|
{ key: "recordedOn", sortable: !0 },
|
|
135
135
|
{ key: "recordedBy", sortable: !0 }
|
|
@@ -140,11 +140,11 @@ const ke = "FormsTable-module_formsTableBody__SvGha", we = "FormsTable-module_mo
|
|
|
140
140
|
(r, o) => {
|
|
141
141
|
const a = o.formName;
|
|
142
142
|
r[a] ??= [];
|
|
143
|
-
const t = o.providers.map((
|
|
143
|
+
const t = o.providers.map((S) => S.providerName).filter(Boolean).join(", ");
|
|
144
144
|
return r[a].push({
|
|
145
145
|
id: o.encounterUuid,
|
|
146
146
|
formName: o.formName,
|
|
147
|
-
recordedOn:
|
|
147
|
+
recordedOn: Se(o.encounterDateTime, n, !0).formattedResult,
|
|
148
148
|
recordedBy: t ?? "--",
|
|
149
149
|
encounterDateTime: o.encounterDateTime,
|
|
150
150
|
encounterUuid: o.encounterUuid
|
|
@@ -164,7 +164,7 @@ const ke = "FormsTable-module_formsTableBody__SvGha", we = "FormsTable-module_mo
|
|
|
164
164
|
B(e), R(!0);
|
|
165
165
|
}, []), Y = l(() => {
|
|
166
166
|
R(!1), B(null);
|
|
167
|
-
}, []),
|
|
167
|
+
}, []), F = l((e) => {
|
|
168
168
|
globalThis.dispatchEvent(
|
|
169
169
|
new CustomEvent(Ve, {
|
|
170
170
|
detail: {
|
|
@@ -185,25 +185,25 @@ const ke = "FormsTable-module_formsTableBody__SvGha", we = "FormsTable-module_mo
|
|
|
185
185
|
return e.recordedBy;
|
|
186
186
|
case "actions":
|
|
187
187
|
return f(e) ? /* @__PURE__ */ i(
|
|
188
|
-
|
|
188
|
+
K,
|
|
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
|
-
onClick: () =>
|
|
195
|
-
children: /* @__PURE__ */ i(
|
|
194
|
+
onClick: () => F(e),
|
|
195
|
+
children: /* @__PURE__ */ i(G, {})
|
|
196
196
|
}
|
|
197
197
|
) : null;
|
|
198
198
|
default:
|
|
199
199
|
return null;
|
|
200
200
|
}
|
|
201
201
|
},
|
|
202
|
-
[$,
|
|
202
|
+
[$, F, f, n]
|
|
203
203
|
);
|
|
204
|
-
return /* @__PURE__ */
|
|
204
|
+
return /* @__PURE__ */ x(ge, { children: [
|
|
205
205
|
/* @__PURE__ */ i("div", { id: "forms-table", "data-testid": "forms-table", children: U || M || H.length === 0 || D ? /* @__PURE__ */ i(
|
|
206
|
-
|
|
206
|
+
P,
|
|
207
207
|
{
|
|
208
208
|
headers: fe,
|
|
209
209
|
ariaLabel: n("FORMS_HEADING"),
|
|
@@ -212,7 +212,7 @@ const ke = "FormsTable-module_formsTableBody__SvGha", we = "FormsTable-module_mo
|
|
|
212
212
|
errorStateMessage: M ? oe?.message : void 0,
|
|
213
213
|
emptyStateMessage: n("FORMS_UNAVAILABLE"),
|
|
214
214
|
renderCell: j,
|
|
215
|
-
className:
|
|
215
|
+
className: I.formsTableBody,
|
|
216
216
|
dataTestId: "forms-table"
|
|
217
217
|
}
|
|
218
218
|
) : /* @__PURE__ */ i(Re, { align: "start", children: H.map((e, r) => {
|
|
@@ -221,21 +221,21 @@ const ke = "FormsTable-module_formsTableBody__SvGha", we = "FormsTable-module_mo
|
|
|
221
221
|
Be,
|
|
222
222
|
{
|
|
223
223
|
title: o,
|
|
224
|
-
className:
|
|
224
|
+
className: I.customAccordianItem,
|
|
225
225
|
testId: `accordian-title-${o}`,
|
|
226
226
|
open: r === 0,
|
|
227
227
|
children: /* @__PURE__ */ i(
|
|
228
|
-
|
|
228
|
+
P,
|
|
229
229
|
{
|
|
230
230
|
headers: t,
|
|
231
231
|
ariaLabel: n("FORMS_HEADING"),
|
|
232
232
|
rows: a,
|
|
233
233
|
loading: !1,
|
|
234
234
|
errorStateMessage: "",
|
|
235
|
-
sortable:
|
|
235
|
+
sortable: he,
|
|
236
236
|
emptyStateMessage: n("FORMS_UNAVAILABLE"),
|
|
237
237
|
renderCell: j,
|
|
238
|
-
className:
|
|
238
|
+
className: I.formsTableBody,
|
|
239
239
|
dataTestId: `forms-table-${o}`
|
|
240
240
|
}
|
|
241
241
|
)
|
|
@@ -243,26 +243,26 @@ const ke = "FormsTable-module_formsTableBody__SvGha", we = "FormsTable-module_mo
|
|
|
243
243
|
o
|
|
244
244
|
);
|
|
245
245
|
}) }) }),
|
|
246
|
-
|
|
246
|
+
y && s && /* @__PURE__ */ i(
|
|
247
247
|
De,
|
|
248
248
|
{
|
|
249
249
|
id: "modalIdForActionAreaLayout",
|
|
250
250
|
portalId: "main-display-area",
|
|
251
|
-
open:
|
|
251
|
+
open: y,
|
|
252
252
|
onRequestClose: Y,
|
|
253
|
-
modalHeading: /* @__PURE__ */
|
|
253
|
+
modalHeading: /* @__PURE__ */ x("div", { className: I.modalHeading, children: [
|
|
254
254
|
/* @__PURE__ */ i("span", { children: s.formName }),
|
|
255
|
-
|
|
256
|
-
|
|
255
|
+
T && f(s) && /* @__PURE__ */ i(
|
|
256
|
+
K,
|
|
257
257
|
{
|
|
258
258
|
label: n("EDIT_OBSERVATION_FORM"),
|
|
259
259
|
kind: "ghost",
|
|
260
260
|
size: "sm",
|
|
261
261
|
testId: `edit-form-modal-${s.encounterUuid}`,
|
|
262
262
|
onClick: () => {
|
|
263
|
-
Y(),
|
|
263
|
+
Y(), F(s);
|
|
264
264
|
},
|
|
265
|
-
children: /* @__PURE__ */ i(
|
|
265
|
+
children: /* @__PURE__ */ i(G, {})
|
|
266
266
|
}
|
|
267
267
|
)
|
|
268
268
|
] }),
|
|
@@ -289,5 +289,5 @@ const ke = "FormsTable-module_formsTableBody__SvGha", we = "FormsTable-module_mo
|
|
|
289
289
|
] });
|
|
290
290
|
};
|
|
291
291
|
export {
|
|
292
|
-
|
|
292
|
+
xe 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 {
|
|
1
|
+
import { c, T as l, P as m, a as u, D as v, Q as i } from "./YPM2AS64-B09hwU1A.js";
|
|
2
|
+
import { bT as d, bU as f, bV as e } from "./index-DFdBXY1N.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-B09hwU1A.js";
|
|
2
|
+
import { bT as v, bU as C, bV as e } from "./index-DFdBXY1N.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 S, jsx as u } from "react/jsx-runtime";
|
|
2
|
-
import { g as V, G, u as N, v as
|
|
2
|
+
import { g as V, G, u as N, v as Q, E as k, f as q, T as z, O as M, L as j, i as w, W as x, C as H, Q as L, z as P, j as W, l as J, m as X, n as Z, o as ee } from "./index-DFdBXY1N.js";
|
|
3
3
|
import { useQueries as ae, useQuery as te } from "@tanstack/react-query";
|
|
4
4
|
import { useRef as se, useEffect as $, useMemo as R } from "react";
|
|
5
5
|
const C = (a, n, d, l, b, r) => {
|
|
@@ -116,17 +116,17 @@ const C = (a, n, d, l, b, r) => {
|
|
|
116
116
|
} = n, r = se(/* @__PURE__ */ new Set()), t = V(), { addNotification: s } = G(), { t: o } = N(), i = ae({
|
|
117
117
|
queries: d.map((e) => ({
|
|
118
118
|
queryKey: de(e),
|
|
119
|
-
queryFn: () =>
|
|
119
|
+
queryFn: () => Q(e),
|
|
120
120
|
enabled: !!e
|
|
121
121
|
}))
|
|
122
122
|
});
|
|
123
123
|
$(() => {
|
|
124
124
|
i.forEach((e, h) => {
|
|
125
125
|
if (e.isError && !r.current.has(h)) {
|
|
126
|
-
const
|
|
126
|
+
const K = d[h];
|
|
127
127
|
s({
|
|
128
128
|
title: o("ERROR_DEFAULT_TITLE"),
|
|
129
|
-
message: o("ERROR_FETCHING_CONCEPT", { conceptName:
|
|
129
|
+
message: o("ERROR_FETCHING_CONCEPT", { conceptName: K }),
|
|
130
130
|
type: "error"
|
|
131
131
|
}), r.current.add(h);
|
|
132
132
|
} else e.isError || r.current.delete(h);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { bW as we, bX as z, bY as xt, bZ as B, bU as q, bV as y, b_ as Ro, b$ as ye, c0 as R, c1 as _, c2 as k, c3 as N, c4 as A, c5 as bs, c6 as ir, c7 as $e, c8 as U, c9 as Hn, ca as Vn, cb as dt, cc as D, cd as xs, ce as cn, cf as Be, cg as ws, ch as qt, ci as zt, cj as $s, ck as Cs, cl as $n, cm as Ss, cn as Nr, co as Bt, cp as zo, cq as ks, cr as Es, cs as j, ct as Ur, cu as Ms, cv as Ds, cw as sr, cx as As, cy as Ts, cz as zn, cA as Fs, cB as Is, cC as Z, cD as Ps, cE as Ls } from "./index-DFdBXY1N.js";
|
|
2
2
|
var Os = (e) => e != null, qs = (e) => e.filter(Os);
|
|
3
3
|
function _s(e) {
|
|
4
4
|
return (...t) => {
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { EncounterSessionStartContext } from '../../events/startConsultation';
|
|
3
|
+
interface ConsultationPadContainerProps {
|
|
4
|
+
encounterSessionStartContext: EncounterSessionStartContext;
|
|
5
|
+
onClose: () => void;
|
|
6
|
+
}
|
|
7
|
+
declare const ConsultationPadContainer: React.FC<ConsultationPadContainerProps>;
|
|
8
|
+
export default ConsultationPadContainer;
|
|
9
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/consultationPadContainer/index.tsx"],"names":[],"mappings":"AAiBA,OAAO,KAAoD,MAAM,OAAO,CAAC;AACzE,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,gCAAgC,CAAC;AAWnF,UAAU,6BAA6B;IACrC,4BAA4B,EAAE,4BAA4B,CAAC;IAC3D,OAAO,EAAE,MAAM,IAAI,CAAC;CACrB;AAED,QAAA,MAAM,wBAAwB,EAAE,KAAK,CAAC,EAAE,CAAC,6BAA6B,CAsOrE,CAAC;AAEF,eAAe,wBAAwB,CAAC"}
|
|
@@ -1,4 +1,10 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
|
-
|
|
2
|
+
import { EncounterSessionStartContext } from '../../../events/startConsultation';
|
|
3
|
+
import { InputControl as ClinicalInputControlConfig } from '../../../providers/clinicalConfig/models';
|
|
4
|
+
export interface EncounterDetailsProps {
|
|
5
|
+
encounterSessionStartContext?: EncounterSessionStartContext;
|
|
6
|
+
inputControlConfig?: ClinicalInputControlConfig;
|
|
7
|
+
}
|
|
8
|
+
declare const EncounterDetails: React.FC<EncounterDetailsProps>;
|
|
3
9
|
export default EncounterDetails;
|
|
4
10
|
//# sourceMappingURL=EncounterDetails.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EncounterDetails.d.ts","sourceRoot":"","sources":["../../../../src/components/forms/encounterDetails/EncounterDetails.tsx"],"names":[],"mappings":"AAUA,OAAO,KAAuC,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"EncounterDetails.d.ts","sourceRoot":"","sources":["../../../../src/components/forms/encounterDetails/EncounterDetails.tsx"],"names":[],"mappings":"AAUA,OAAO,KAAuC,MAAM,OAAO,CAAC;AAC5D,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,mCAAmC,CAAC;AAMtF,OAAO,KAAK,EAAE,YAAY,IAAI,0BAA0B,EAAE,MAAM,0CAA0C,CAAC;AAI3G,MAAM,WAAW,qBAAqB;IACpC,4BAA4B,CAAC,EAAE,4BAA4B,CAAC;IAC5D,kBAAkB,CAAC,EAAE,0BAA0B,CAAC;CACjD;AAED,QAAA,MAAM,gBAAgB,EAAE,KAAK,CAAC,EAAE,CAAC,qBAAqB,CAoXrD,CAAC;AA4BF,eAAe,gBAAgB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ObservationFormsContainer.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EAAE,KAAK,CAAC,EAAE,CAAC,8BAA8B,
|
|
1
|
+
{"version":3,"file":"ObservationFormsContainer.d.ts","sourceRoot":"","sources":["../../../../src/components/forms/observations/ObservationFormsContainer.tsx"],"names":[],"mappings":"AAYA,OAAO,wCAAwC,CAAC;AAChD,OAAO,oCAAoC,CAAC;AAC5C,OAAO,EACL,eAAe,EACf,gBAAgB,EAWjB,MAAM,kBAAkB,CAAC;AAG1B,OAAO,KAAK,EAAE,SAAS,EAAQ,MAAM,SAAS,CAAC;AAC/C,OAAO,KAAoC,MAAM,OAAO,CAAC;AAEzD,OAAO,EAEL,sBAAsB,EACtB,0BAA0B,EAC1B,wBAAwB,EACxB,6BAA6B,EAC9B,MAAM,0BAA0B,CAAC;AAClC,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,mCAAmC,CAAC;AAiBtF,UAAU,8BAA8B;IACtC,mBAAmB,EAAE,CAAC,WAAW,EAAE,eAAe,GAAG,IAAI,KAAK,IAAI,CAAC;IACnE,WAAW,CAAC,EAAE,eAAe,GAAG,IAAI,CAAC;IACrC,YAAY,CAAC,EAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,IAAI,CAAC;IAC1C,wBAAwB,CAAC,EAAE,CACzB,QAAQ,EAAE,MAAM,EAChB,YAAY,EAAE,gBAAgB,EAAE,EAChC,mBAAmB,CAAC,EAChB,IAAI,GACJ,OAAO,sBAAsB,GAC7B,OAAO,0BAA0B,GACjC,OAAO,wBAAwB,GAC/B,OAAO,6BAA6B,EACxC,OAAO,CAAC,EAAE,SAAS,KAChB,IAAI,CAAC;IACV,oBAAoB,CAAC,EAAE,gBAAgB,EAAE,CAAC;IAC1C,mBAAmB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACpC,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,kBAAkB,CAAC,EAAE,MAAM,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAChD,kBAAkB,CAAC,EAAE,MAAM,IAAI,CA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p, bQ as _, aG as x, bK as N } from "./index-DFdBXY1N.js";
|
|
3
|
+
import { lazy as E, useMemo as n, Suspense as h } from "react";
|
|
4
4
|
import "@tanstack/react-query";
|
|
5
|
-
import { u as
|
|
6
|
-
const
|
|
7
|
-
"org.bahmni.clinical.v2.search":
|
|
8
|
-
() => import("./index-
|
|
5
|
+
import { u as C } from "./hook-BVh7Tcva.js";
|
|
6
|
+
const L = {
|
|
7
|
+
"org.bahmni.clinical.v2.search": E(
|
|
8
|
+
() => import("./index-xyOlNGgA.js")
|
|
9
9
|
)
|
|
10
|
-
}, v = "index-module_page__16xxw",
|
|
10
|
+
}, v = "index-module_page__16xxw", H = "index-module_loading__wNI-4", I = "index-module_message__Ib5Iw", t = {
|
|
11
11
|
page: v,
|
|
12
|
-
loading:
|
|
13
|
-
message:
|
|
14
|
-
},
|
|
15
|
-
const { t: a } = g(), { clinicalConfig: l } =
|
|
12
|
+
loading: H,
|
|
13
|
+
message: I
|
|
14
|
+
}, T = () => {
|
|
15
|
+
const { t: a } = g(), { clinicalConfig: l } = C(), { userPrivileges: o } = u(), d = n(
|
|
16
16
|
() => [
|
|
17
17
|
{ id: "home", label: a("HOME_LABEL"), href: b },
|
|
18
18
|
{ id: "clinical", label: a("CLINICAL_LABEL"), isCurrentPage: !0 }
|
|
@@ -24,7 +24,7 @@ const C = {
|
|
|
24
24
|
), c = n(
|
|
25
25
|
() => Array.from(r.entries()).map(([e, i]) => ({
|
|
26
26
|
pointId: e,
|
|
27
|
-
Handler:
|
|
27
|
+
Handler: L[e],
|
|
28
28
|
filtered: p(i, o)
|
|
29
29
|
})).filter(({ Handler: e, filtered: i }) => !!e && i.length > 0),
|
|
30
30
|
[r, o]
|
|
@@ -46,7 +46,7 @@ const C = {
|
|
|
46
46
|
id: e,
|
|
47
47
|
"data-testid": `${e}-test-id`,
|
|
48
48
|
children: /* @__PURE__ */ s(
|
|
49
|
-
|
|
49
|
+
h,
|
|
50
50
|
{
|
|
51
51
|
fallback: /* @__PURE__ */ s(
|
|
52
52
|
x,
|
|
@@ -76,5 +76,5 @@ const C = {
|
|
|
76
76
|
);
|
|
77
77
|
};
|
|
78
78
|
export {
|
|
79
|
-
|
|
79
|
+
T as default
|
|
80
80
|
};
|