@bahmni/clinical-app 0.0.1-dev.420 → 0.0.1-dev.423
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/App.d.ts.map +1 -1
- package/dist/{ConsultationPage-CTz3xIzT.js → ConsultationPage-DCxUw1gV.js} +5375 -5370
- package/dist/{DocumentsTable-Cik3MQZO-CSKPD0bP.js → DocumentsTable-BVnv0gpO-B58nOx2d.js} +1 -1
- package/dist/{FormsTable-BdcB_G8V-CwIyxfdg.js → FormsTable-BOBb-hEm-XMS7vPlW.js} +46 -46
- package/dist/{LNWAZHJI-Dr7i59DP.js → LNWAZHJI-CpTgwAVm.js} +2 -2
- package/dist/{MWZ6AO7Z-C4aYwSrQ.js → MWZ6AO7Z-DiEKY2PZ.js} +2 -2
- package/dist/{Observations-f5ZvMmFn-Cvng8otM.js → Observations-GQNCaUuo-UT9uVnX1.js} +15 -15
- package/dist/{YPM2AS64-DUEGFxd2.js → YPM2AS64-X6GiImLG.js} +1 -1
- package/dist/components/consultationPad/index.d.ts.map +1 -1
- package/dist/components/consultationPad/services.d.ts +1 -6
- package/dist/components/consultationPad/services.d.ts.map +1 -1
- package/dist/components/dashboardContainer/DashboardContainer.d.ts.map +1 -1
- package/dist/components/forms/index.d.ts +1 -1
- package/dist/components/forms/index.d.ts.map +1 -1
- package/dist/components/forms/models.d.ts +6 -0
- package/dist/components/forms/models.d.ts.map +1 -1
- package/dist/{hook-DboGMSJ4.js → hook-DDr-8x6b.js} +1 -1
- package/dist/{index-BvtrLWmw.js → index-BKGSRR-A.js} +515 -515
- package/dist/{index-jl-hqRBf.js → index-BRnk60iX.js} +3 -3
- package/dist/{index-DUlqWup0.js → index-yh278okG.js} +1 -1
- package/dist/index.js +1 -1
- package/dist/services/stopMedicationService.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 Y } from "react/jsx-runtime";
|
|
2
|
-
import { v as x, u as G, z as W, E as J, q as X, w as Z, Y as ee, p as te } from "./index-
|
|
2
|
+
import { v as x, u as G, z as W, E as J, q as X, w as Z, Y as ee, p as te } from "./index-BKGSRR-A.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 = {
|
|
@@ -1,30 +1,30 @@
|
|
|
1
|
-
import { jsx as n, jsxs as
|
|
2
|
-
import { u as
|
|
1
|
+
import { jsx as n, jsxs as P, Fragment as he } from "react/jsx-runtime";
|
|
2
|
+
import { u as ge, v as Ne, i as Te, e as Oe, a as be, b as Ie, J as Ae, N as Ee, c as _e, m as ve, d as Fe, V as Me, y as Se, S as K, w as Be, A as j, f as x, q as Re, Y as z, P as Ce, F as Le, p as Ue, h as De, g as qe } from "./index-BKGSRR-A.js";
|
|
3
3
|
import { useQueryClient as we, useQuery as T } from "@tanstack/react-query";
|
|
4
4
|
import { useState as Q, useMemo as i, useCallback as d } from "react";
|
|
5
|
-
const
|
|
6
|
-
formsTableBody:
|
|
7
|
-
modalHeading:
|
|
5
|
+
const Ve = "FormsTable-module_formsTableBody__SvGha", ke = "FormsTable-module_modalHeading__wnTmA", He = "FormsTable-module_customAccordianItem__isszs", O = {
|
|
6
|
+
formsTableBody: Ve,
|
|
7
|
+
modalHeading: ke,
|
|
8
8
|
customAccordianItem: He
|
|
9
|
-
},
|
|
9
|
+
}, $e = "startConsultation", xe = ({
|
|
10
10
|
episodeOfCareUuids: F,
|
|
11
11
|
encounterUuids: l,
|
|
12
12
|
config: Y,
|
|
13
13
|
disableActions: J = !1,
|
|
14
14
|
activeEncounterUuid: y = null
|
|
15
15
|
}) => {
|
|
16
|
-
const { t } =
|
|
16
|
+
const { t } = ge(), m = Ne(), [p, M] = Q(!1), [o, S] = Q(null), {
|
|
17
17
|
numberOfVisits: Z,
|
|
18
18
|
hideThumbnail: X = !1,
|
|
19
|
-
forms:
|
|
19
|
+
forms: h
|
|
20
20
|
} = Y ?? {}, W = Te(
|
|
21
21
|
qe.EDIT_OBSERVATIONS
|
|
22
|
-
), { userPrivileges:
|
|
22
|
+
), { userPrivileges: g } = Oe(), b = W && !J && !!y, B = be(
|
|
23
23
|
F,
|
|
24
24
|
l
|
|
25
25
|
), ee = we(), {
|
|
26
|
-
data:
|
|
27
|
-
isLoading:
|
|
26
|
+
data: R = [],
|
|
27
|
+
isLoading: C,
|
|
28
28
|
isError: L,
|
|
29
29
|
error: re,
|
|
30
30
|
refetch: ae
|
|
@@ -33,29 +33,29 @@ const ke = "FormsTable-module_formsTableBody__SvGha", Ve = "FormsTable-module_mo
|
|
|
33
33
|
queryFn: () => Ie(m, void 0, Z),
|
|
34
34
|
enabled: !!m && !B
|
|
35
35
|
}), U = i(() => {
|
|
36
|
-
let e =
|
|
36
|
+
let e = R;
|
|
37
37
|
return l && l.length > 0 && (e = e.filter(
|
|
38
38
|
(r) => l.includes(r.encounterUuid)
|
|
39
|
-
)), Array.isArray(
|
|
40
|
-
(r) =>
|
|
39
|
+
)), Array.isArray(h) && h.length > 0 && (e = e.filter(
|
|
40
|
+
(r) => h.some((a) => a.toLowerCase() === r.formName.toLowerCase())
|
|
41
41
|
)), e;
|
|
42
|
-
}, [
|
|
42
|
+
}, [R, l, h]), { data: N = [] } = T({
|
|
43
43
|
queryKey: ["observationForms"],
|
|
44
44
|
queryFn: () => Ae()
|
|
45
|
-
}),
|
|
45
|
+
}), D = d(
|
|
46
46
|
(e) => {
|
|
47
47
|
const r = N.find((s) => s.name === e);
|
|
48
48
|
if (!r?.privileges || r.privileges.length === 0) return !0;
|
|
49
|
-
if (!
|
|
50
|
-
const a = new Set(
|
|
49
|
+
if (!g || g.length === 0) return !1;
|
|
50
|
+
const a = new Set(g.map((s) => s.name));
|
|
51
51
|
return r.privileges.some(
|
|
52
52
|
(s) => a.has(s.privilegeName) && s.editable
|
|
53
53
|
);
|
|
54
54
|
},
|
|
55
|
-
[N,
|
|
55
|
+
[N, g]
|
|
56
56
|
), u = d(
|
|
57
|
-
(e) => !y || e.encounterUuid !== y ? !1 :
|
|
58
|
-
[y,
|
|
57
|
+
(e) => !y || e.encounterUuid !== y ? !1 : D(e.formName),
|
|
58
|
+
[y, D]
|
|
59
59
|
), q = d(
|
|
60
60
|
(e) => N.find((r) => r.name === e)?.uuid,
|
|
61
61
|
[N]
|
|
@@ -92,28 +92,28 @@ const ke = "FormsTable-module_formsTableBody__SvGha", Ve = "FormsTable-module_mo
|
|
|
92
92
|
[w]
|
|
93
93
|
), ue = i(() => {
|
|
94
94
|
if (A)
|
|
95
|
-
return
|
|
95
|
+
return K(A).message;
|
|
96
96
|
if (_)
|
|
97
|
-
return
|
|
97
|
+
return K(_).message;
|
|
98
98
|
}, [A, _]), c = i(
|
|
99
99
|
() => [
|
|
100
100
|
{ key: "recordedOn", header: t("RECORDED_ON") },
|
|
101
101
|
{ key: "recordedBy", header: t("RECORDED_BY") }
|
|
102
102
|
],
|
|
103
103
|
[t]
|
|
104
|
-
),
|
|
104
|
+
), V = i(
|
|
105
105
|
() => [...c, { key: "actions", header: t("ACTIONS") }],
|
|
106
106
|
[c, t]
|
|
107
107
|
), ce = d(
|
|
108
|
-
(e) => b && e.some((r) => u(r)) ?
|
|
109
|
-
[b, u,
|
|
108
|
+
(e) => b && e.some((r) => u(r)) ? V : c,
|
|
109
|
+
[b, u, V, c]
|
|
110
110
|
), fe = c, ye = i(
|
|
111
111
|
() => [
|
|
112
112
|
{ key: "recordedOn", sortable: !0 },
|
|
113
113
|
{ key: "recordedBy", sortable: !0 }
|
|
114
114
|
],
|
|
115
115
|
[]
|
|
116
|
-
),
|
|
116
|
+
), k = i(() => {
|
|
117
117
|
const e = U.reduce(
|
|
118
118
|
(r, a) => {
|
|
119
119
|
const s = a.formName;
|
|
@@ -140,11 +140,11 @@ const ke = "FormsTable-module_formsTableBody__SvGha", Ve = "FormsTable-module_mo
|
|
|
140
140
|
).sort((r, a) => r.formName.localeCompare(a.formName));
|
|
141
141
|
}, [U, t]), H = d((e) => {
|
|
142
142
|
S(e), M(!0);
|
|
143
|
-
}, []),
|
|
143
|
+
}, []), $ = d(() => {
|
|
144
144
|
M(!1), S(null);
|
|
145
145
|
}, []), v = d((e) => {
|
|
146
146
|
globalThis.dispatchEvent(
|
|
147
|
-
new CustomEvent(
|
|
147
|
+
new CustomEvent($e, {
|
|
148
148
|
detail: {
|
|
149
149
|
editOnly: "observationForms",
|
|
150
150
|
editTitle: "EDIT_OBSERVATION_FORM_TITLE",
|
|
@@ -154,23 +154,23 @@ const ke = "FormsTable-module_formsTableBody__SvGha", Ve = "FormsTable-module_mo
|
|
|
154
154
|
}
|
|
155
155
|
})
|
|
156
156
|
);
|
|
157
|
-
}, []),
|
|
157
|
+
}, []), G = d(
|
|
158
158
|
(e, r) => {
|
|
159
159
|
switch (r) {
|
|
160
160
|
case "recordedOn":
|
|
161
|
-
return /* @__PURE__ */ n(
|
|
161
|
+
return /* @__PURE__ */ n(Re, { onClick: () => H(e), children: e.recordedOn });
|
|
162
162
|
case "recordedBy":
|
|
163
163
|
return e.recordedBy;
|
|
164
164
|
case "actions":
|
|
165
165
|
return u(e) ? /* @__PURE__ */ n(
|
|
166
|
-
|
|
166
|
+
j,
|
|
167
167
|
{
|
|
168
168
|
label: t("EDIT_OBSERVATION_FORM"),
|
|
169
169
|
kind: "ghost",
|
|
170
170
|
size: "sm",
|
|
171
171
|
testId: `edit-form-${e.encounterUuid}`,
|
|
172
172
|
onClick: () => v(e),
|
|
173
|
-
children: /* @__PURE__ */ n(
|
|
173
|
+
children: /* @__PURE__ */ n(x, {})
|
|
174
174
|
}
|
|
175
175
|
) : null;
|
|
176
176
|
default:
|
|
@@ -179,21 +179,21 @@ const ke = "FormsTable-module_formsTableBody__SvGha", Ve = "FormsTable-module_mo
|
|
|
179
179
|
},
|
|
180
180
|
[H, v, u, t]
|
|
181
181
|
);
|
|
182
|
-
return /* @__PURE__ */
|
|
183
|
-
/* @__PURE__ */ n("div", { id: "forms-table", "data-testid": "forms-table", children:
|
|
182
|
+
return /* @__PURE__ */ P(he, { children: [
|
|
183
|
+
/* @__PURE__ */ n("div", { id: "forms-table", "data-testid": "forms-table", children: C || L || k.length === 0 || B ? /* @__PURE__ */ n(
|
|
184
184
|
z,
|
|
185
185
|
{
|
|
186
186
|
headers: fe,
|
|
187
187
|
ariaLabel: t("FORMS_HEADING"),
|
|
188
188
|
rows: [],
|
|
189
|
-
loading:
|
|
189
|
+
loading: C,
|
|
190
190
|
errorStateMessage: L ? re?.message : void 0,
|
|
191
191
|
emptyStateMessage: t("FORMS_UNAVAILABLE"),
|
|
192
|
-
renderCell:
|
|
192
|
+
renderCell: G,
|
|
193
193
|
className: O.formsTableBody,
|
|
194
194
|
dataTestId: "forms-table"
|
|
195
195
|
}
|
|
196
|
-
) : /* @__PURE__ */ n(
|
|
196
|
+
) : /* @__PURE__ */ n(Ce, { align: "start", children: k.map((e, r) => {
|
|
197
197
|
const { formName: a, records: s } = e, f = ce(s);
|
|
198
198
|
return /* @__PURE__ */ n(
|
|
199
199
|
Le,
|
|
@@ -212,7 +212,7 @@ const ke = "FormsTable-module_formsTableBody__SvGha", Ve = "FormsTable-module_mo
|
|
|
212
212
|
errorStateMessage: "",
|
|
213
213
|
sortable: ye,
|
|
214
214
|
emptyStateMessage: t("FORMS_UNAVAILABLE"),
|
|
215
|
-
renderCell:
|
|
215
|
+
renderCell: G,
|
|
216
216
|
className: O.formsTableBody,
|
|
217
217
|
dataTestId: `forms-table-${a}`
|
|
218
218
|
}
|
|
@@ -227,20 +227,20 @@ const ke = "FormsTable-module_formsTableBody__SvGha", Ve = "FormsTable-module_mo
|
|
|
227
227
|
id: "modalIdForActionAreaLayout",
|
|
228
228
|
portalId: "main-display-area",
|
|
229
229
|
open: p,
|
|
230
|
-
onRequestClose:
|
|
231
|
-
modalHeading: /* @__PURE__ */
|
|
230
|
+
onRequestClose: $,
|
|
231
|
+
modalHeading: /* @__PURE__ */ P("div", { className: O.modalHeading, children: [
|
|
232
232
|
/* @__PURE__ */ n("span", { children: o.formName }),
|
|
233
233
|
b && u(o) && /* @__PURE__ */ n(
|
|
234
|
-
|
|
234
|
+
j,
|
|
235
235
|
{
|
|
236
236
|
label: t("EDIT_OBSERVATION_FORM"),
|
|
237
237
|
kind: "ghost",
|
|
238
238
|
size: "sm",
|
|
239
239
|
testId: `edit-form-modal-${o.encounterUuid}`,
|
|
240
240
|
onClick: () => {
|
|
241
|
-
|
|
241
|
+
$(), v(o);
|
|
242
242
|
},
|
|
243
|
-
children: /* @__PURE__ */ n(
|
|
243
|
+
children: /* @__PURE__ */ n(x, {})
|
|
244
244
|
}
|
|
245
245
|
)
|
|
246
246
|
] }),
|
|
@@ -249,7 +249,7 @@ const ke = "FormsTable-module_formsTableBody__SvGha", Ve = "FormsTable-module_mo
|
|
|
249
249
|
size: "md",
|
|
250
250
|
testId: "form-details-modal",
|
|
251
251
|
children: /* @__PURE__ */ n(
|
|
252
|
-
|
|
252
|
+
De,
|
|
253
253
|
{
|
|
254
254
|
observations: ie,
|
|
255
255
|
isLoading: oe || se,
|
|
@@ -268,5 +268,5 @@ const ke = "FormsTable-module_formsTableBody__SvGha", Ve = "FormsTable-module_mo
|
|
|
268
268
|
] });
|
|
269
269
|
};
|
|
270
270
|
export {
|
|
271
|
-
|
|
271
|
+
xe as default
|
|
272
272
|
};
|
|
@@ -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 { b$ as d, c0 as f, c1 as e } from "./index-
|
|
1
|
+
import { c, T as l, P as m, a as u, D as v, Q as i } from "./YPM2AS64-X6GiImLG.js";
|
|
2
|
+
import { b$ as d, c0 as f, c1 as e } from "./index-BKGSRR-A.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 { b$ as v, c0 as C, c1 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-X6GiImLG.js";
|
|
2
|
+
import { b$ as v, c0 as C, c1 as e } from "./index-BKGSRR-A.js";
|
|
3
3
|
var h = (t) => {
|
|
4
4
|
const [r, o] = s({
|
|
5
5
|
prefix: "TanstackQueryDevtools"
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { jsxs as I, jsx as n } from "react/jsx-runtime";
|
|
2
|
-
import { v as Q, z as M, u as
|
|
2
|
+
import { v as Q, z as M, u as B, j as Y, a as j, k as G, l as H, m as J, n as P, o as W, _ as X, C as Z, r as ee, Y as ae, x as se, s as U, t as re, B as te, w as ie, R as oe, T as ne, L as de, O as le } from "./index-BKGSRR-A.js";
|
|
3
3
|
import { useQueries as ue, useQuery as ce } from "@tanstack/react-query";
|
|
4
|
-
import { useRef as me, useEffect as D, useMemo as
|
|
4
|
+
import { useRef as me, useEffect as D, useMemo as g } from "react";
|
|
5
5
|
const pe = "Observations-module_observations__RKSyo", be = "Observations-module_title__TJL3z", ve = "Observations-module_wrapper__muk2L", he = "Observations-module_secondary__14nuS", O = {
|
|
6
6
|
observations: pe,
|
|
7
7
|
title: be,
|
|
8
8
|
wrapper: ve,
|
|
9
9
|
secondary: he
|
|
10
|
-
},
|
|
10
|
+
}, V = (s, l, o, d, c, r) => {
|
|
11
11
|
const t = re(s, l, c), e = t.value, m = te(e);
|
|
12
12
|
let i = e;
|
|
13
13
|
m === "Image" && (i = /* @__PURE__ */ n(
|
|
@@ -48,13 +48,13 @@ const pe = "Observations-module_observations__RKSyo", be = "Observations-module_
|
|
|
48
48
|
`obs-${s.id}`
|
|
49
49
|
);
|
|
50
50
|
}, ye = (s, l, o, d, c, r, t) => /* @__PURE__ */ n(
|
|
51
|
-
|
|
51
|
+
U,
|
|
52
52
|
{
|
|
53
53
|
title: s.display,
|
|
54
54
|
id: `grouped-obs-${s.display}-${d}`,
|
|
55
55
|
open: o,
|
|
56
56
|
children: s.members?.map(
|
|
57
|
-
(e, m) =>
|
|
57
|
+
(e, m) => V(
|
|
58
58
|
e,
|
|
59
59
|
m,
|
|
60
60
|
c,
|
|
@@ -70,17 +70,17 @@ const pe = "Observations-module_observations__RKSyo", be = "Observations-module_
|
|
|
70
70
|
title: l = "",
|
|
71
71
|
hideThumbnail: o
|
|
72
72
|
}) => {
|
|
73
|
-
const { t: d } =
|
|
73
|
+
const { t: d } = B(), c = (r, t, e) => {
|
|
74
74
|
const m = se(r.encounterDetails, d);
|
|
75
75
|
return /* @__PURE__ */ I(
|
|
76
|
-
|
|
76
|
+
U,
|
|
77
77
|
{
|
|
78
78
|
title: m,
|
|
79
79
|
id: `encounter-${r.encounterId}`,
|
|
80
80
|
open: t,
|
|
81
81
|
children: [
|
|
82
82
|
r.observations.map(
|
|
83
|
-
(i, p) =>
|
|
83
|
+
(i, p) => V(
|
|
84
84
|
i,
|
|
85
85
|
p,
|
|
86
86
|
e,
|
|
@@ -132,7 +132,7 @@ const pe = "Observations-module_observations__RKSyo", be = "Observations-module_
|
|
|
132
132
|
conceptUuid: r = [],
|
|
133
133
|
hideThumbnail: t = !1,
|
|
134
134
|
scope: e = "all"
|
|
135
|
-
} = d, m = me(/* @__PURE__ */ new Set()), i = Q(), { addNotification: p } = M(), { t: u } =
|
|
135
|
+
} = d, m = me(/* @__PURE__ */ new Set()), i = Q(), { addNotification: p } = M(), { t: u } = B(), b = ue({
|
|
136
136
|
queries: c.map((a) => ({
|
|
137
137
|
queryKey: Re(a),
|
|
138
138
|
queryFn: () => Y(a),
|
|
@@ -147,7 +147,7 @@ const pe = "Observations-module_observations__RKSyo", be = "Observations-module_
|
|
|
147
147
|
type: "error"
|
|
148
148
|
}), m.current.add(0)) : !a && y && m.current.clear();
|
|
149
149
|
}, [b, p, u]);
|
|
150
|
-
const f =
|
|
150
|
+
const f = g(() => b.map((a) => a.data?.uuid).filter((a) => !!a), [b]), v = g(() => [.../* @__PURE__ */ new Set([...f, ...r])], [f, r]), h = g(() => c.length === 0 ? !0 : b.every((a) => !a.isLoading), [b, c.length]), R = e === "latest" || e === "latest-encounter", w = j(
|
|
151
151
|
l,
|
|
152
152
|
o
|
|
153
153
|
), {
|
|
@@ -171,7 +171,7 @@ const pe = "Observations-module_observations__RKSyo", be = "Observations-module_
|
|
|
171
171
|
v,
|
|
172
172
|
o
|
|
173
173
|
),
|
|
174
|
-
enabled: !!i && v.length > 0 && h && !
|
|
174
|
+
enabled: !!i && v.length > 0 && h && !w
|
|
175
175
|
});
|
|
176
176
|
J(
|
|
177
177
|
(a) => {
|
|
@@ -187,7 +187,7 @@ const pe = "Observations-module_observations__RKSyo", be = "Observations-module_
|
|
|
187
187
|
type: "error"
|
|
188
188
|
});
|
|
189
189
|
}, [N]);
|
|
190
|
-
const $ =
|
|
190
|
+
const $ = g(() => {
|
|
191
191
|
if (!_) return [];
|
|
192
192
|
let a = P(_);
|
|
193
193
|
e === "latest-encounter" && (a = W(a));
|
|
@@ -197,12 +197,12 @@ const pe = "Observations-module_observations__RKSyo", be = "Observations-module_
|
|
|
197
197
|
{ key: "name", header: "name" },
|
|
198
198
|
{ key: "value", header: "value" },
|
|
199
199
|
{ key: "form", header: "form" }
|
|
200
|
-
], A = C || !h, L = N && h, k = (!_ || _.entry?.length === 0 || v.length === 0) && h, K = L ? u("ERROR_FETCHING_OBSERVATIONS") : null, q = k ? u("NO_OBSERVATIONS_FOUND") : void 0, z = $.length > 0 && !A && !L,
|
|
200
|
+
], A = C || !h, L = N && h, k = (!_ || _.entry?.length === 0 || v.length === 0) && h, K = L ? u("ERROR_FETCHING_OBSERVATIONS") : null, q = k ? u("NO_OBSERVATIONS_FOUND") : void 0, z = $.length > 0 && !A && !L, E = d.titleTranslationKey, T = E ? u(E) : "";
|
|
201
201
|
return /* @__PURE__ */ I(
|
|
202
202
|
"div",
|
|
203
203
|
{
|
|
204
204
|
id: "observations",
|
|
205
|
-
"data-testid":
|
|
205
|
+
"data-testid": E ? `observations-${T}` : "observations",
|
|
206
206
|
"aria-label": "observations-aria-label",
|
|
207
207
|
className: O.observations,
|
|
208
208
|
children: [
|
|
@@ -210,7 +210,7 @@ const pe = "Observations-module_observations__RKSyo", be = "Observations-module_
|
|
|
210
210
|
ee,
|
|
211
211
|
{
|
|
212
212
|
id: "observations-title",
|
|
213
|
-
testId:
|
|
213
|
+
testId: E ? `observations-title-${T}` : "observations-title",
|
|
214
214
|
title: T,
|
|
215
215
|
className: O.title,
|
|
216
216
|
children: /* @__PURE__ */ n("p", { children: T })
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { c2 as we, c3 as z, c4 as xt, c5 as B, c0 as q, c1 as y, c6 as Ro, c7 as ye, c8 as R, c9 as _, ca as k, cb as N, cc as A, cd as bs, ce as ir, cf as $e, cg as G, ch as Hn, ci as Vn, cj as dt, ck as D, cl as xs, cm as cn, cn as Be, co as ws, cp as qt, cq as zt, cr as $s, cs as Cs, ct as $n, cu as Ss, cv as Nr, cw as Bt, cx as zo, cy as ks, cz as Es, cA as j, cB as Gr, cC as Ms, cD as Ds, cE as sr, cF as As, cG as Ts, cH as zn, cI as Fs, cJ as Is, cK as Z, cL as Ps, cM as Ls } from "./index-
|
|
1
|
+
import { c2 as we, c3 as z, c4 as xt, c5 as B, c0 as q, c1 as y, c6 as Ro, c7 as ye, c8 as R, c9 as _, ca as k, cb as N, cc as A, cd as bs, ce as ir, cf as $e, cg as G, ch as Hn, ci as Vn, cj as dt, ck as D, cl as xs, cm as cn, cn as Be, co as ws, cp as qt, cq as zt, cr as $s, cs as Cs, ct as $n, cu as Ss, cv as Nr, cw as Bt, cx as zo, cy as ks, cz as Es, cA as j, cB as Gr, cC as Ms, cD as Ds, cE as sr, cF as As, cG as Ts, cH as zn, cI as Fs, cJ as Is, cK as Z, cL as Ps, cM as Ls } from "./index-BKGSRR-A.js";
|
|
2
2
|
var Os = (e) => e != null, qs = (e) => e.filter(Os);
|
|
3
3
|
function _s(e) {
|
|
4
4
|
return (...t) => {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/consultationPad/index.tsx"],"names":[],"mappings":"AAmBA,OAAO,KAON,MAAM,OAAO,CAAC;AAIf,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,gCAAgC,CAAC;AAuBnF,UAAU,oBAAoB;IAC5B,4BAA4B,EAAE,4BAA4B,CAAC;IAC3D,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,oBAAoB,CAAC,EAAE,OAAO,CAAC;IAC/B,wBAAwB,CAAC,EAAE,MAAM,IAAI,CAAC;CACvC;AAED,QAAA,MAAM,eAAe,EAAE,KAAK,CAAC,EAAE,CAAC,oBAAoB,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/consultationPad/index.tsx"],"names":[],"mappings":"AAmBA,OAAO,KAON,MAAM,OAAO,CAAC;AAIf,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,gCAAgC,CAAC;AAuBnF,UAAU,oBAAoB;IAC5B,4BAA4B,EAAE,4BAA4B,CAAC;IAC3D,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,oBAAoB,CAAC,EAAE,OAAO,CAAC;IAC/B,wBAAwB,CAAC,EAAE,MAAM,IAAI,CAAC;CACvC;AAED,QAAA,MAAM,eAAe,EAAE,KAAK,CAAC,EAAE,CAAC,oBAAoB,CA8iBnD,CAAC;AAEF,eAAe,eAAe,CAAC"}
|
|
@@ -1,16 +1,11 @@
|
|
|
1
1
|
import { Encounter } from 'fhir/r4';
|
|
2
|
-
import { InputControl } from '../forms';
|
|
2
|
+
import { InputControl, SubmissionResult } from '../forms';
|
|
3
3
|
interface SubmissionRequest {
|
|
4
4
|
activeEncounter: Encounter | null;
|
|
5
5
|
episodeOfCareUuids: string[];
|
|
6
6
|
statDurationInMilliseconds?: number;
|
|
7
7
|
activeEntries: InputControl[];
|
|
8
8
|
}
|
|
9
|
-
interface SubmissionResult {
|
|
10
|
-
updatedConcepts: Map<string, string>;
|
|
11
|
-
patientUUID: string;
|
|
12
|
-
encounterTypeName: string;
|
|
13
|
-
}
|
|
14
9
|
export declare function submitConsultation(deps: SubmissionRequest): Promise<SubmissionResult>;
|
|
15
10
|
export {};
|
|
16
11
|
//# sourceMappingURL=services.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"services.d.ts","sourceRoot":"","sources":["../../../src/components/consultationPad/services.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAU,SAAS,EAAE,MAAM,SAAS,CAAC;AASjD,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"services.d.ts","sourceRoot":"","sources":["../../../src/components/consultationPad/services.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAU,SAAS,EAAE,MAAM,SAAS,CAAC;AASjD,OAAO,KAAK,EAEV,YAAY,EACZ,gBAAgB,EACjB,MAAM,UAAU,CAAC;AAElB,UAAU,iBAAiB;IACzB,eAAe,EAAE,SAAS,GAAG,IAAI,CAAC;IAClC,kBAAkB,EAAE,MAAM,EAAE,CAAC;IAC7B,0BAA0B,CAAC,EAAE,MAAM,CAAC;IACpC,aAAa,EAAE,YAAY,EAAE,CAAC;CAC/B;AAED,wBAAsB,kBAAkB,CACtC,IAAI,EAAE,iBAAiB,GACtB,OAAO,CAAC,gBAAgB,CAAC,CAyD3B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DashboardContainer.d.ts","sourceRoot":"","sources":["../../../src/components/dashboardContainer/DashboardContainer.tsx"],"names":[],"mappings":"AAQA,OAAO,KAA4B,MAAM,OAAO,CAAC;AAEjD,OAAO,EAAE,sBAAsB,EAAE,MAAM,oBAAoB,CAAC;AAK5D,MAAM,WAAW,uBAAuB;IACtC,QAAQ,EAAE,sBAAsB,EAAE,CAAC;IACnC,YAAY,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC7B,4FAA4F;IAC5F,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB;AAED;;;;;GAKG;AACH,QAAA,MAAM,kBAAkB,EAAE,KAAK,CAAC,EAAE,CAAC,uBAAuB,
|
|
1
|
+
{"version":3,"file":"DashboardContainer.d.ts","sourceRoot":"","sources":["../../../src/components/dashboardContainer/DashboardContainer.tsx"],"names":[],"mappings":"AAQA,OAAO,KAA4B,MAAM,OAAO,CAAC;AAEjD,OAAO,EAAE,sBAAsB,EAAE,MAAM,oBAAoB,CAAC;AAK5D,MAAM,WAAW,uBAAuB;IACtC,QAAQ,EAAE,sBAAsB,EAAE,CAAC;IACnC,YAAY,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC7B,4FAA4F;IAC5F,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB;AAED;;;;;GAKG;AACH,QAAA,MAAM,kBAAkB,EAAE,KAAK,CAAC,EAAE,CAAC,uBAAuB,CAmGzD,CAAC;AAEF,eAAe,kBAAkB,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export type { InputControl, EncounterContext } from './models';
|
|
1
|
+
export type { InputControl, EncounterContext, SubmissionResult, } from './models';
|
|
2
2
|
export { default as InputControlRenderer } from './renderer';
|
|
3
3
|
export { getRegisteredInputControls } from './registry';
|
|
4
4
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/forms/index.ts"],"names":[],"mappings":"AAAA,OAAO,oBAAoB,CAAC;AAC5B,OAAO,aAAa,CAAC;AACrB,OAAO,kBAAkB,CAAC;AAC1B,OAAO,0BAA0B,CAAC;AAClC,OAAO,qBAAqB,CAAC;AAC7B,OAAO,gBAAgB,CAAC;AACxB,OAAO,gBAAgB,CAAC;AACxB,OAAO,mBAAmB,CAAC;AAE3B,YAAY,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/forms/index.ts"],"names":[],"mappings":"AAAA,OAAO,oBAAoB,CAAC;AAC5B,OAAO,aAAa,CAAC;AACrB,OAAO,kBAAkB,CAAC;AAC1B,OAAO,0BAA0B,CAAC;AAClC,OAAO,qBAAqB,CAAC;AAC7B,OAAO,gBAAgB,CAAC;AACxB,OAAO,gBAAgB,CAAC;AACxB,OAAO,mBAAmB,CAAC;AAE3B,YAAY,EACV,YAAY,EACZ,gBAAgB,EAChB,gBAAgB,GACjB,MAAM,UAAU,CAAC;AAClB,OAAO,EAAE,OAAO,IAAI,oBAAoB,EAAE,MAAM,YAAY,CAAC;AAE7D,OAAO,EAAE,0BAA0B,EAAE,MAAM,YAAY,CAAC"}
|
|
@@ -2,6 +2,11 @@ import { CDSCard } from '@bahmni/services';
|
|
|
2
2
|
import { BundleEntry, Reference } from 'fhir/r4';
|
|
3
3
|
import { EncounterSessionStartContext } from '../../events/startConsultation';
|
|
4
4
|
import { InputControl as ClinicalInputControlConfig } from '../../providers/clinicalConfig/models';
|
|
5
|
+
export interface SubmissionResult {
|
|
6
|
+
updatedConcepts: Map<string, string>;
|
|
7
|
+
patientUUID: string;
|
|
8
|
+
encounterTypeName: string;
|
|
9
|
+
}
|
|
5
10
|
export interface InputControl {
|
|
6
11
|
key: string;
|
|
7
12
|
encounterTypes?: string[];
|
|
@@ -20,6 +25,7 @@ export interface InputControl {
|
|
|
20
25
|
updateItemCDSCards?: (itemId: string, cards: CDSCard[]) => void;
|
|
21
26
|
hasCriticalCDSCards?: () => boolean;
|
|
22
27
|
onDirectSubmit?: () => Promise<void>;
|
|
28
|
+
onSubmitSuccess?: (result: SubmissionResult) => void;
|
|
23
29
|
}
|
|
24
30
|
export interface EncounterContext {
|
|
25
31
|
encounterSubject: Reference;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"models.d.ts","sourceRoot":"","sources":["../../../src/components/forms/models.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAChD,OAAO,KAAK,EAAE,WAAW,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AACtD,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,gCAAgC,CAAC;AACnF,OAAO,KAAK,EAAE,YAAY,IAAI,0BAA0B,EAAE,MAAM,uCAAuC,CAAC;AAExG,MAAM,WAAW,YAAY;IAC3B,GAAG,EAAE,MAAM,CAAC;IACZ,cAAc,CAAC,EAAE,MAAM,EAAE,CAAC;IAC1B,SAAS,CAAC,EAAE,MAAM,EAAE,CAAC;IACrB,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B,kBAAkB,CAAC,EAAE,0BAA0B,CAAC;IAChD,SAAS,EAAE,KAAK,CAAC,aAAa,CAAC;QAC7B,4BAA4B,CAAC,EAAE,4BAA4B,CAAC;QAC5D,kBAAkB,CAAC,EAAE,0BAA0B,CAAC;KACjD,CAAC,CAAC;IACH,KAAK,EAAE,MAAM,IAAI,CAAC;IAClB,QAAQ,EAAE,MAAM,OAAO,CAAC;IACxB,OAAO,EAAE,MAAM,OAAO,CAAC;IACvB,SAAS,EAAE,CAAC,EAAE,EAAE,MAAM,IAAI,KAAK,MAAM,IAAI,CAAC;IAC1C,mBAAmB,CAAC,EAAE,CAAC,GAAG,EAAE,gBAAgB,KAAK,WAAW,EAAE,CAAC;IAC/D,kBAAkB,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,OAAO,EAAE,KAAK,IAAI,CAAC;IAChE,mBAAmB,CAAC,EAAE,MAAM,OAAO,CAAC;IACpC,cAAc,CAAC,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC;
|
|
1
|
+
{"version":3,"file":"models.d.ts","sourceRoot":"","sources":["../../../src/components/forms/models.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAChD,OAAO,KAAK,EAAE,WAAW,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AACtD,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,gCAAgC,CAAC;AACnF,OAAO,KAAK,EAAE,YAAY,IAAI,0BAA0B,EAAE,MAAM,uCAAuC,CAAC;AAExG,MAAM,WAAW,gBAAgB;IAC/B,eAAe,EAAE,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACrC,WAAW,EAAE,MAAM,CAAC;IACpB,iBAAiB,EAAE,MAAM,CAAC;CAC3B;AAED,MAAM,WAAW,YAAY;IAC3B,GAAG,EAAE,MAAM,CAAC;IACZ,cAAc,CAAC,EAAE,MAAM,EAAE,CAAC;IAC1B,SAAS,CAAC,EAAE,MAAM,EAAE,CAAC;IACrB,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B,kBAAkB,CAAC,EAAE,0BAA0B,CAAC;IAChD,SAAS,EAAE,KAAK,CAAC,aAAa,CAAC;QAC7B,4BAA4B,CAAC,EAAE,4BAA4B,CAAC;QAC5D,kBAAkB,CAAC,EAAE,0BAA0B,CAAC;KACjD,CAAC,CAAC;IACH,KAAK,EAAE,MAAM,IAAI,CAAC;IAClB,QAAQ,EAAE,MAAM,OAAO,CAAC;IACxB,OAAO,EAAE,MAAM,OAAO,CAAC;IACvB,SAAS,EAAE,CAAC,EAAE,EAAE,MAAM,IAAI,KAAK,MAAM,IAAI,CAAC;IAC1C,mBAAmB,CAAC,EAAE,CAAC,GAAG,EAAE,gBAAgB,KAAK,WAAW,EAAE,CAAC;IAC/D,kBAAkB,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,OAAO,EAAE,KAAK,IAAI,CAAC;IAChE,mBAAmB,CAAC,EAAE,MAAM,OAAO,CAAC;IACpC,cAAc,CAAC,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC;IACrC,eAAe,CAAC,EAAE,CAAC,MAAM,EAAE,gBAAgB,KAAK,IAAI,CAAC;CACtD;AAED,MAAM,WAAW,gBAAgB;IAC/B,gBAAgB,EAAE,SAAS,CAAC;IAC5B,kBAAkB,EAAE,MAAM,CAAC;IAC3B,gBAAgB,EAAE,MAAM,CAAC;IACzB,gBAAgB,EAAE,IAAI,CAAC;IACvB,0BAA0B,CAAC,EAAE,MAAM,CAAC;CACrC"}
|