@bahmni/clinical-app 0.0.1-dev.425 → 0.0.1-dev.426
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-C1vYrriP.js → ConsultationPage-C2EzNjf0.js} +14 -14
- package/dist/{DocumentsTable-Dbzg_SOZ-DjFVdEdV.js → DocumentsTable-COuvhq4l-acuMll24.js} +7 -7
- package/dist/FormsTable-BrgNrHL8-DzzCTOML.js +252 -0
- package/dist/{LNWAZHJI-BWGgiWUt.js → LNWAZHJI-C8SJ4dGv.js} +2 -2
- package/dist/{MWZ6AO7Z-CVPs6DSZ.js → MWZ6AO7Z-BJM1EVff.js} +2 -2
- package/dist/{Observations-DxmGTSMO-Dbf18EGg.js → Observations-CWIv940J-B94e59Va.js} +73 -73
- package/dist/{YPM2AS64-CcZ2-18K.js → YPM2AS64-BieTnFCg.js} +1 -1
- package/dist/{hook-D9PIGcVh.js → hook-CPPANRiZ.js} +1 -1
- package/dist/{index-BOTbV55I.js → index-BsKiBGTi.js} +6 -6
- package/dist/{index-BV7pBnna.js → index-C-zc6_Ur.js} +6 -6
- package/dist/{index-ksRzXiTW.js → index-DtI3QOMb.js} +16999 -16960
- package/dist/index.js +1 -1
- package/package.json +1 -1
- package/dist/FormsTable-BMa68g2K-Cxwr8Vn5.js +0 -272
|
@@ -1,63 +1,63 @@
|
|
|
1
|
-
import { jsxs as S, jsx as
|
|
2
|
-
import { g as
|
|
3
|
-
import { useQueries as
|
|
1
|
+
import { jsxs as S, jsx as o } from "react/jsx-runtime";
|
|
2
|
+
import { g as x, z as M, u as U, b as j, y as G, U as H, c as Y, m as J, t as P, o as W, r as X, n as Z, i as ee, Y as ae, Q as se, k as V, l as re, s as te, w as ie, x as ne, A as oe, S as de, D as le } from "./index-DtI3QOMb.js";
|
|
3
|
+
import { useQueries as ce, useQuery as ue } from "@tanstack/react-query";
|
|
4
4
|
import { useRef as me, useEffect as L, useMemo as E } from "react";
|
|
5
|
-
const pe = "Observations-module_observations__RKSyo", be = "Observations-module_title__TJL3z", he = "Observations-module_wrapper__muk2L", ve = "Observations-module_secondary__14nuS",
|
|
5
|
+
const pe = "Observations-module_observations__RKSyo", be = "Observations-module_title__TJL3z", he = "Observations-module_wrapper__muk2L", ve = "Observations-module_secondary__14nuS", O = {
|
|
6
6
|
observations: pe,
|
|
7
7
|
title: be,
|
|
8
8
|
wrapper: he,
|
|
9
9
|
secondary: ve
|
|
10
|
-
},
|
|
11
|
-
const t = re(s, l,
|
|
10
|
+
}, B = (s, l, n, d, u, r) => {
|
|
11
|
+
const t = re(s, l, u), e = t.value, m = te(e);
|
|
12
12
|
let i = e;
|
|
13
|
-
m === "Image" && (i = /* @__PURE__ */
|
|
14
|
-
|
|
13
|
+
m === "Image" && (i = /* @__PURE__ */ o(
|
|
14
|
+
oe,
|
|
15
15
|
{
|
|
16
16
|
imageSrc: e,
|
|
17
17
|
alt: e,
|
|
18
18
|
id: `${e}-img`,
|
|
19
19
|
hideThumbnail: r
|
|
20
20
|
}
|
|
21
|
-
)), m === "Video" && (i = /* @__PURE__ */
|
|
21
|
+
)), m === "Video" && (i = /* @__PURE__ */ o(
|
|
22
22
|
de,
|
|
23
23
|
{
|
|
24
24
|
id: `${e}-video`,
|
|
25
25
|
videoSrc: e,
|
|
26
26
|
hideThumbnail: r
|
|
27
27
|
}
|
|
28
|
-
)), m === "PDF" && (i = /* @__PURE__ */
|
|
29
|
-
const p = /* @__PURE__ */ S("div", { className:
|
|
30
|
-
/* @__PURE__ */
|
|
31
|
-
t.header.referenceRange && /* @__PURE__ */
|
|
32
|
-
] }),
|
|
28
|
+
)), m === "PDF" && (i = /* @__PURE__ */ o(le, { id: `${e}-pdf`, src: e }));
|
|
29
|
+
const p = /* @__PURE__ */ S("div", { className: O.wrapper, children: [
|
|
30
|
+
/* @__PURE__ */ o("span", { children: t.header.display }),
|
|
31
|
+
t.header.referenceRange && /* @__PURE__ */ o("span", { className: O.secondary, children: t.header.referenceRange })
|
|
32
|
+
] }), c = u("OBSERVATIONS_RECORDED_BY", {
|
|
33
33
|
provider: t.provider
|
|
34
|
-
}), b = s.effectiveDateTime ? ie(s.effectiveDateTime,
|
|
35
|
-
/* @__PURE__ */
|
|
36
|
-
b && /* @__PURE__ */
|
|
37
|
-
] }), h = s.display, v = s.observationValue?.isAbnormal ? "abnormal-obs" : "obs",
|
|
38
|
-
return /* @__PURE__ */
|
|
39
|
-
|
|
34
|
+
}), b = s.effectiveDateTime ? ie(s.effectiveDateTime, u, !0).formattedResult : void 0, f = /* @__PURE__ */ S("div", { className: O.wrapper, children: [
|
|
35
|
+
/* @__PURE__ */ o("span", { children: c }),
|
|
36
|
+
b && /* @__PURE__ */ o("span", { className: O.secondary, children: b })
|
|
37
|
+
] }), h = s.display, v = s.observationValue?.isAbnormal ? "abnormal-obs" : "obs", R = d ? `${d}-${v}-${h}-${n}-${l}` : `${v}-${h}-${n}-${l}`;
|
|
38
|
+
return /* @__PURE__ */ o(
|
|
39
|
+
ne,
|
|
40
40
|
{
|
|
41
41
|
header: p,
|
|
42
42
|
value: i,
|
|
43
43
|
info: f,
|
|
44
|
-
id:
|
|
45
|
-
testId:
|
|
46
|
-
ariaLabel:
|
|
44
|
+
id: R,
|
|
45
|
+
testId: R,
|
|
46
|
+
ariaLabel: R
|
|
47
47
|
},
|
|
48
48
|
`obs-${s.id}`
|
|
49
49
|
);
|
|
50
|
-
}, ye = (s, l,
|
|
51
|
-
|
|
50
|
+
}, ye = (s, l, n, d, u, r, t) => /* @__PURE__ */ o(
|
|
51
|
+
V,
|
|
52
52
|
{
|
|
53
53
|
title: s.display,
|
|
54
54
|
id: `grouped-obs-${s.display}-${d}`,
|
|
55
|
-
open:
|
|
55
|
+
open: n,
|
|
56
56
|
children: s.members?.map(
|
|
57
|
-
(e, m) =>
|
|
57
|
+
(e, m) => B(
|
|
58
58
|
e,
|
|
59
59
|
m,
|
|
60
|
-
|
|
60
|
+
u,
|
|
61
61
|
r,
|
|
62
62
|
l,
|
|
63
63
|
t
|
|
@@ -65,28 +65,28 @@ const pe = "Observations-module_observations__RKSyo", be = "Observations-module_
|
|
|
65
65
|
)
|
|
66
66
|
},
|
|
67
67
|
`grouped-obs-${s.id}`
|
|
68
|
-
),
|
|
68
|
+
), Oe = ({
|
|
69
69
|
groupedData: s,
|
|
70
70
|
title: l = "",
|
|
71
|
-
hideThumbnail:
|
|
71
|
+
hideThumbnail: n
|
|
72
72
|
}) => {
|
|
73
|
-
const { t: d } =
|
|
73
|
+
const { t: d } = U(), u = (r, t, e) => {
|
|
74
74
|
const m = se(r.encounterDetails, d);
|
|
75
75
|
return /* @__PURE__ */ S(
|
|
76
|
-
|
|
76
|
+
V,
|
|
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) => B(
|
|
84
84
|
i,
|
|
85
85
|
p,
|
|
86
86
|
e,
|
|
87
87
|
l,
|
|
88
88
|
d,
|
|
89
|
-
|
|
89
|
+
n
|
|
90
90
|
)
|
|
91
91
|
),
|
|
92
92
|
r.groupedObservations.map(
|
|
@@ -97,7 +97,7 @@ const pe = "Observations-module_observations__RKSyo", be = "Observations-module_
|
|
|
97
97
|
p,
|
|
98
98
|
e,
|
|
99
99
|
l,
|
|
100
|
-
|
|
100
|
+
n
|
|
101
101
|
)
|
|
102
102
|
)
|
|
103
103
|
]
|
|
@@ -105,75 +105,75 @@ const pe = "Observations-module_observations__RKSyo", be = "Observations-module_
|
|
|
105
105
|
`encounter-${r.encounterId}`
|
|
106
106
|
);
|
|
107
107
|
};
|
|
108
|
-
return /* @__PURE__ */
|
|
108
|
+
return /* @__PURE__ */ o(
|
|
109
109
|
"div",
|
|
110
110
|
{
|
|
111
111
|
id: "obs-by-encounter",
|
|
112
112
|
"data-testid": "obs-by-encounter-test-id",
|
|
113
113
|
"aria-label": "obs-by-encounter-aria-label",
|
|
114
114
|
children: s.map(
|
|
115
|
-
(r, t) =>
|
|
115
|
+
(r, t) => u(r, t === 0, t)
|
|
116
116
|
)
|
|
117
117
|
}
|
|
118
118
|
);
|
|
119
|
-
},
|
|
119
|
+
}, Re = (s) => ["conceptUuid", s], _e = (s, l, n, d) => [
|
|
120
120
|
"observations",
|
|
121
121
|
s,
|
|
122
122
|
...l,
|
|
123
|
-
|
|
123
|
+
n,
|
|
124
124
|
d
|
|
125
125
|
], Se = ({
|
|
126
126
|
config: s,
|
|
127
127
|
episodeOfCareUuids: l,
|
|
128
|
-
encounterUuids:
|
|
128
|
+
encounterUuids: n
|
|
129
129
|
}) => {
|
|
130
130
|
const d = s, {
|
|
131
|
-
conceptNames:
|
|
131
|
+
conceptNames: u = [],
|
|
132
132
|
conceptUuid: r = [],
|
|
133
133
|
hideThumbnail: t = !1,
|
|
134
134
|
scope: e = "all"
|
|
135
|
-
} = d, m = me(/* @__PURE__ */ new Set()), i =
|
|
136
|
-
queries:
|
|
137
|
-
queryKey:
|
|
138
|
-
queryFn: () =>
|
|
135
|
+
} = d, m = me(/* @__PURE__ */ new Set()), i = x(), { addNotification: p } = M(), { t: c } = U(), b = ce({
|
|
136
|
+
queries: u.map((a) => ({
|
|
137
|
+
queryKey: Re(a),
|
|
138
|
+
queryFn: () => j(a),
|
|
139
139
|
enabled: !!a
|
|
140
140
|
}))
|
|
141
141
|
});
|
|
142
142
|
L(() => {
|
|
143
143
|
const a = b.some((z) => z.isError), y = m.current.size > 0;
|
|
144
144
|
a && !y ? (p({
|
|
145
|
-
title:
|
|
146
|
-
message:
|
|
145
|
+
title: c("ERROR_DEFAULT_TITLE"),
|
|
146
|
+
message: c("ERROR_FETCHING_OBSERVATIONS"),
|
|
147
147
|
type: "error"
|
|
148
148
|
}), m.current.add(0)) : !a && y && m.current.clear();
|
|
149
|
-
}, [b, p,
|
|
150
|
-
const f = E(() => b.map((a) => a.data?.uuid).filter((a) => !!a), [b]), h = E(() => [.../* @__PURE__ */ new Set([...f, ...r])], [f, r]), v = E(() =>
|
|
149
|
+
}, [b, p, c]);
|
|
150
|
+
const f = E(() => b.map((a) => a.data?.uuid).filter((a) => !!a), [b]), h = E(() => [.../* @__PURE__ */ new Set([...f, ...r])], [f, r]), v = E(() => u.length === 0 ? !0 : b.every((a) => !a.isLoading), [b, u.length]), R = e === "latest" || e === "latest-encounter", F = G(
|
|
151
151
|
l,
|
|
152
|
-
|
|
152
|
+
n
|
|
153
153
|
), {
|
|
154
154
|
data: _,
|
|
155
155
|
isLoading: w,
|
|
156
156
|
isError: I,
|
|
157
157
|
refetch: N
|
|
158
|
-
} =
|
|
158
|
+
} = ue({
|
|
159
159
|
queryKey: _e(
|
|
160
160
|
i,
|
|
161
161
|
h,
|
|
162
|
-
|
|
162
|
+
n,
|
|
163
163
|
e
|
|
164
164
|
),
|
|
165
|
-
queryFn: () =>
|
|
165
|
+
queryFn: () => R ? H(
|
|
166
166
|
i,
|
|
167
167
|
h,
|
|
168
|
-
|
|
169
|
-
) :
|
|
168
|
+
n
|
|
169
|
+
) : Y(
|
|
170
170
|
i,
|
|
171
171
|
h,
|
|
172
|
-
|
|
172
|
+
n
|
|
173
173
|
),
|
|
174
174
|
enabled: !!i && h.length > 0 && v && !F
|
|
175
175
|
});
|
|
176
|
-
|
|
176
|
+
J(
|
|
177
177
|
(a) => {
|
|
178
178
|
a.patientUUID === i && a.updatedConcepts.size > 0 && [...a.updatedConcepts.keys()].some(
|
|
179
179
|
(y) => h.includes(y)
|
|
@@ -182,14 +182,14 @@ const pe = "Observations-module_observations__RKSyo", be = "Observations-module_
|
|
|
182
182
|
[i, N]
|
|
183
183
|
), L(() => {
|
|
184
184
|
I && p({
|
|
185
|
-
title:
|
|
186
|
-
message:
|
|
185
|
+
title: c("ERROR_DEFAULT_TITLE"),
|
|
186
|
+
message: c("ERROR_FETCHING_OBSERVATIONS"),
|
|
187
187
|
type: "error"
|
|
188
188
|
});
|
|
189
189
|
}, [I]);
|
|
190
190
|
const $ = E(() => {
|
|
191
191
|
if (!_) return [];
|
|
192
|
-
let a =
|
|
192
|
+
let a = P(_);
|
|
193
193
|
e === "latest-encounter" && (a = W(a));
|
|
194
194
|
const y = X(a);
|
|
195
195
|
return Z(y);
|
|
@@ -197,41 +197,41 @@ 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
|
-
],
|
|
200
|
+
], A = w || !v, D = I && v, C = (!_ || _.entry?.length === 0 || h.length === 0) && v, K = D ? c("ERROR_FETCHING_OBSERVATIONS") : null, Q = C ? c("NO_OBSERVATIONS_FOUND") : void 0, q = $.length > 0 && !A && !D, g = d.titleTranslationKey, T = g ? c(g) : "";
|
|
201
201
|
return /* @__PURE__ */ S(
|
|
202
202
|
"div",
|
|
203
203
|
{
|
|
204
204
|
id: "observations",
|
|
205
205
|
"data-testid": g ? `observations-${T}` : "observations",
|
|
206
206
|
"aria-label": "observations-aria-label",
|
|
207
|
-
className:
|
|
207
|
+
className: O.observations,
|
|
208
208
|
children: [
|
|
209
|
-
/* @__PURE__ */
|
|
209
|
+
/* @__PURE__ */ o(
|
|
210
210
|
ee,
|
|
211
211
|
{
|
|
212
212
|
id: "observations-title",
|
|
213
213
|
testId: g ? `observations-title-${T}` : "observations-title",
|
|
214
214
|
title: T,
|
|
215
|
-
className:
|
|
216
|
-
children: /* @__PURE__ */
|
|
215
|
+
className: O.title,
|
|
216
|
+
children: /* @__PURE__ */ o("p", { children: T })
|
|
217
217
|
}
|
|
218
218
|
),
|
|
219
|
-
|
|
220
|
-
|
|
219
|
+
q ? /* @__PURE__ */ o(
|
|
220
|
+
Oe,
|
|
221
221
|
{
|
|
222
222
|
groupedData: $,
|
|
223
223
|
title: T,
|
|
224
224
|
hideThumbnail: t
|
|
225
225
|
}
|
|
226
|
-
) : /* @__PURE__ */
|
|
226
|
+
) : /* @__PURE__ */ o(
|
|
227
227
|
ae,
|
|
228
228
|
{
|
|
229
229
|
headers: k,
|
|
230
230
|
rows: [],
|
|
231
|
-
ariaLabel:
|
|
232
|
-
loading:
|
|
233
|
-
errorStateMessage:
|
|
234
|
-
emptyStateMessage:
|
|
231
|
+
ariaLabel: c("OBSERVATIONS"),
|
|
232
|
+
loading: A,
|
|
233
|
+
errorStateMessage: K,
|
|
234
|
+
emptyStateMessage: Q ?? c("NO_OBSERVATIONS_AVAILABLE"),
|
|
235
235
|
dataTestId: "observations-table"
|
|
236
236
|
}
|
|
237
237
|
)
|
|
@@ -240,7 +240,7 @@ const pe = "Observations-module_observations__RKSyo", be = "Observations-module_
|
|
|
240
240
|
);
|
|
241
241
|
};
|
|
242
242
|
export {
|
|
243
|
-
|
|
243
|
+
Re as conceptUuidQueryKeys,
|
|
244
244
|
Se as default,
|
|
245
245
|
_e as observationsQueryKeys
|
|
246
246
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { c0 as we, c1 as z, c2 as xt, c3 as B, b_ as q, b$ as y, c4 as Ro, c5 as ye, c6 as R, c7 as _, c8 as k, c9 as N, ca as A, cb as bs, cc as ir, cd as $e, ce as G, cf as Hn, cg as Vn, ch as dt, ci as D, cj as xs, ck as cn, cl as Be, cm as ws, cn as qt, co as zt, cp as $s, cq as Cs, cr as $n, cs as Ss, ct as Nr, cu as Bt, cv as zo, cw as ks, cx as Es, cy as j, cz as Gr, cA as Ms, cB as Ds, cC as sr, cD as As, cE as Ts, cF as zn, cG as Fs, cH as Is, cI as Z, cJ as Ps, cK as Ls } from "./index-DtI3QOMb.js";
|
|
2
2
|
var Os = (e) => e != null, qs = (e) => e.filter(Os);
|
|
3
3
|
function _s(e) {
|
|
4
4
|
return (...t) => {
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { jsx as s } from "react/jsx-runtime";
|
|
2
|
-
import { u as g, Z as u,
|
|
2
|
+
import { u as g, Z as u, bK as b, bU as f, bV as x, bW as p, aI as _, bQ as N } from "./index-DtI3QOMb.js";
|
|
3
3
|
import { lazy as h, useMemo as t, Suspense as C } from "react";
|
|
4
4
|
import "@tanstack/react-query";
|
|
5
|
-
import { u as E } from "./hook-
|
|
5
|
+
import { u as E } from "./hook-CPPANRiZ.js";
|
|
6
6
|
const L = {
|
|
7
7
|
"org.bahmni.clinical.v2.search": h(
|
|
8
|
-
() => import("./index-
|
|
8
|
+
() => import("./index-C-zc6_Ur.js")
|
|
9
9
|
)
|
|
10
|
-
}, v = "index-module_page__16xxw",
|
|
10
|
+
}, v = "index-module_page__16xxw", I = "index-module_loading__wNI-4", y = "index-module_message__Ib5Iw", l = {
|
|
11
11
|
page: v,
|
|
12
|
-
loading:
|
|
13
|
-
message:
|
|
12
|
+
loading: I,
|
|
13
|
+
message: y
|
|
14
14
|
}, w = () => {
|
|
15
15
|
const { t: i } = g(), { clinicalConfig: o } = E(), { userPrivileges: r } = u(), m = t(
|
|
16
16
|
() => [
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { u as r,
|
|
1
|
+
import { jsxs as d, jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import { u as r, cL as l, cM as o, cN as c, ba as m, bb as g, cO as h, cP as p, cQ as b, aI as u } from "./index-DtI3QOMb.js";
|
|
3
3
|
import { Suspense as _ } from "react";
|
|
4
4
|
import "@tanstack/react-query";
|
|
5
5
|
const E = "index-module_loading__eyE2k", $ = "index-module_message__95HmH", y = "index-module_panel__8VJh2", s = {
|
|
@@ -8,7 +8,7 @@ const E = "index-module_loading__eyE2k", $ = "index-module_message__95HmH", y =
|
|
|
8
8
|
panel: y
|
|
9
9
|
}, T = ({ extensions: i }) => {
|
|
10
10
|
const { t: n } = r();
|
|
11
|
-
return i.length === 0 ? null : /* @__PURE__ */
|
|
11
|
+
return i.length === 0 ? null : /* @__PURE__ */ d(l, { children: [
|
|
12
12
|
/* @__PURE__ */ e(
|
|
13
13
|
o,
|
|
14
14
|
{
|
|
@@ -38,7 +38,7 @@ const E = "index-module_loading__eyE2k", $ = "index-module_message__95HmH", y =
|
|
|
38
38
|
}
|
|
39
39
|
),
|
|
40
40
|
/* @__PURE__ */ e(h, { children: i.map((a) => {
|
|
41
|
-
const
|
|
41
|
+
const t = p(
|
|
42
42
|
a.extensionParams?.searchHandler ?? ""
|
|
43
43
|
)?.component;
|
|
44
44
|
return /* @__PURE__ */ e(
|
|
@@ -48,7 +48,7 @@ const E = "index-module_loading__eyE2k", $ = "index-module_message__95HmH", y =
|
|
|
48
48
|
className: s.panel,
|
|
49
49
|
"data-testid": `${a.id}-panel-test-id`,
|
|
50
50
|
"aria-label": `Panel ${a.id}`,
|
|
51
|
-
children:
|
|
51
|
+
children: t && a.extensionParams ? /* @__PURE__ */ e(
|
|
52
52
|
_,
|
|
53
53
|
{
|
|
54
54
|
fallback: /* @__PURE__ */ e(
|
|
@@ -58,7 +58,7 @@ const E = "index-module_loading__eyE2k", $ = "index-module_message__95HmH", y =
|
|
|
58
58
|
className: s.loading
|
|
59
59
|
}
|
|
60
60
|
),
|
|
61
|
-
children: /* @__PURE__ */ e(
|
|
61
|
+
children: /* @__PURE__ */ e(t, { extensionParams: a.extensionParams })
|
|
62
62
|
}
|
|
63
63
|
) : /* @__PURE__ */ e(
|
|
64
64
|
"p",
|