@bahmni/admin-app 0.0.1-dev.445 → 0.0.1-dev.447
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/{AdminDashboard-DKVK2iRm.js → AdminDashboard-DERqq7Lh.js} +1 -1
- package/dist/{AuditLog-kHPttZtH.js → AuditLog-_7neDd-v.js} +26 -26
- package/dist/{CsvExport-DPsugWqm.js → CsvExport-D7rZ6c6u.js} +17 -17
- package/dist/{CsvUpload-DSbbVrTi.js → CsvUpload-BFjYxTlJ.js} +1 -1
- package/dist/{DocumentsTable-BX6swgtN-BJtoA-2r.js → DocumentsTable-EFrvR1Y7-BJrPT8_r.js} +20 -20
- package/dist/{FormsTable-9ylMl24e-CberXfj1.js → FormsTable-Bbqg3PV1-CrF3A5pi.js} +82 -82
- package/dist/{LNWAZHJI-PY-1Yhvq.js → LNWAZHJI-DvrZAbmM.js} +2 -2
- package/dist/{MWZ6AO7Z-Cb-ZcFLH.js → MWZ6AO7Z-CW0QKSwE.js} +2 -2
- package/dist/{Observations-Dci35cGN-siZqjUoD.js → Observations-CJiVrL61-CjMEuUvJ.js} +74 -74
- package/dist/{YPM2AS64-7x86dV9L.js → YPM2AS64-DrF_cHRZ.js} +1 -1
- package/dist/{index-DI87tGQ1.js → index-ClETYuc0.js} +46069 -46610
- package/dist/index.css +1 -1
- package/dist/index.js +1 -1
- package/package.json +1 -1
|
@@ -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 { a9 as v, aa as C, ab 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-DrF_cHRZ.js";
|
|
2
|
+
import { a9 as v, aa as C, ab as e } from "./index-ClETYuc0.js";
|
|
3
3
|
var h = (t) => {
|
|
4
4
|
const [r, o] = s({
|
|
5
5
|
prefix: "TanstackQueryDevtools"
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { d as H, z as
|
|
1
|
+
import { jsxs as I, jsx as n } from "react/jsx-runtime";
|
|
2
|
+
import { d as H, z as Q, u as V, q as x, H as M, K as j, G as Y, w as J, l as P, n as W, o as X, s as Z, p as ee, I as ae, r as se, _ as B, t as te, v as re, h as ie, x as oe, B as ne, C as de, D as le } from "./index-ClETYuc0.js";
|
|
3
3
|
import { useQueries as ue, useQuery as ce } from "@tanstack/react-query";
|
|
4
|
-
import { useRef as pe, useEffect as L, useMemo as
|
|
5
|
-
const me = "Observations-module_observations__RKSyo", be = "Observations-module_title__TJL3z", he = "Observations-module_wrapper__muk2L", ve = "Observations-module_secondary__14nuS",
|
|
4
|
+
import { useRef as pe, useEffect as L, useMemo as g } from "react";
|
|
5
|
+
const me = "Observations-module_observations__RKSyo", be = "Observations-module_title__TJL3z", he = "Observations-module_wrapper__muk2L", ve = "Observations-module_secondary__14nuS", O = {
|
|
6
6
|
observations: me,
|
|
7
7
|
title: be,
|
|
8
8
|
wrapper: he,
|
|
9
9
|
secondary: ve
|
|
10
|
-
},
|
|
11
|
-
const
|
|
10
|
+
}, F = (s, l, o, d, c, t) => {
|
|
11
|
+
const r = te(s, l, c), e = r.value, p = re(e);
|
|
12
12
|
let i = e;
|
|
13
13
|
p === "Image" && (i = /* @__PURE__ */ n(
|
|
14
14
|
ne,
|
|
@@ -16,71 +16,71 @@ const me = "Observations-module_observations__RKSyo", be = "Observations-module_
|
|
|
16
16
|
imageSrc: e,
|
|
17
17
|
alt: e,
|
|
18
18
|
id: `${e}-img`,
|
|
19
|
-
hideThumbnail:
|
|
19
|
+
hideThumbnail: t
|
|
20
20
|
}
|
|
21
21
|
)), p === "Video" && (i = /* @__PURE__ */ n(
|
|
22
22
|
de,
|
|
23
23
|
{
|
|
24
24
|
id: `${e}-video`,
|
|
25
25
|
videoSrc: e,
|
|
26
|
-
hideThumbnail:
|
|
26
|
+
hideThumbnail: t
|
|
27
27
|
}
|
|
28
28
|
)), p === "PDF" && (i = /* @__PURE__ */ n(le, { id: `${e}-pdf`, src: e }));
|
|
29
|
-
const m = /* @__PURE__ */
|
|
30
|
-
/* @__PURE__ */ n("span", { children:
|
|
31
|
-
|
|
29
|
+
const m = /* @__PURE__ */ I("div", { className: O.wrapper, children: [
|
|
30
|
+
/* @__PURE__ */ n("span", { children: r.header.display }),
|
|
31
|
+
r.header.referenceRange && /* @__PURE__ */ n("span", { className: O.secondary, children: r.header.referenceRange })
|
|
32
32
|
] }), u = c("OBSERVATIONS_RECORDED_BY", {
|
|
33
|
-
provider:
|
|
34
|
-
}), b = s.effectiveDateTime ? ie(s.effectiveDateTime, c, !0).formattedResult : void 0,
|
|
33
|
+
provider: r.provider
|
|
34
|
+
}), b = s.effectiveDateTime ? ie(s.effectiveDateTime, c, !0).formattedResult : void 0, T = /* @__PURE__ */ I("div", { className: O.wrapper, children: [
|
|
35
35
|
/* @__PURE__ */ n("span", { children: u }),
|
|
36
|
-
b && /* @__PURE__ */ n("span", { className:
|
|
37
|
-
] }), h = s.display, v = s.observationValue?.isAbnormal ? "abnormal-obs" : "obs",
|
|
36
|
+
b && /* @__PURE__ */ n("span", { className: O.secondary, children: b })
|
|
37
|
+
] }), h = s.display, v = s.observationValue?.isAbnormal ? "abnormal-obs" : "obs", _ = d ? `${d}-${v}-${h}-${o}-${l}` : `${v}-${h}-${o}-${l}`;
|
|
38
38
|
return /* @__PURE__ */ n(
|
|
39
39
|
oe,
|
|
40
40
|
{
|
|
41
41
|
header: m,
|
|
42
42
|
value: i,
|
|
43
|
-
info:
|
|
44
|
-
id:
|
|
45
|
-
testId:
|
|
46
|
-
ariaLabel:
|
|
43
|
+
info: T,
|
|
44
|
+
id: _,
|
|
45
|
+
testId: _,
|
|
46
|
+
ariaLabel: _
|
|
47
47
|
},
|
|
48
48
|
`obs-${s.id}`
|
|
49
49
|
);
|
|
50
|
-
}, ye = (s, l, o, d, c,
|
|
50
|
+
}, ye = (s, l, o, d, c, t, r) => /* @__PURE__ */ n(
|
|
51
51
|
B,
|
|
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, p) =>
|
|
57
|
+
(e, p) => F(
|
|
58
58
|
e,
|
|
59
59
|
p,
|
|
60
60
|
c,
|
|
61
|
-
|
|
61
|
+
t,
|
|
62
62
|
l,
|
|
63
|
-
|
|
63
|
+
r
|
|
64
64
|
)
|
|
65
65
|
)
|
|
66
66
|
},
|
|
67
67
|
`grouped-obs-${s.id}`
|
|
68
|
-
),
|
|
68
|
+
), Oe = ({
|
|
69
69
|
groupedData: s,
|
|
70
70
|
title: l = "",
|
|
71
71
|
hideThumbnail: o
|
|
72
72
|
}) => {
|
|
73
|
-
const { t: d } = V(), c = (
|
|
74
|
-
const p = se(
|
|
75
|
-
return /* @__PURE__ */
|
|
73
|
+
const { t: d } = V(), c = (t, r, e) => {
|
|
74
|
+
const p = se(t.encounterDetails, d);
|
|
75
|
+
return /* @__PURE__ */ I(
|
|
76
76
|
B,
|
|
77
77
|
{
|
|
78
78
|
title: p,
|
|
79
|
-
id: `encounter-${
|
|
80
|
-
open:
|
|
79
|
+
id: `encounter-${t.encounterId}`,
|
|
80
|
+
open: r,
|
|
81
81
|
children: [
|
|
82
|
-
|
|
83
|
-
(i, m) =>
|
|
82
|
+
t.observations.map(
|
|
83
|
+
(i, m) => F(
|
|
84
84
|
i,
|
|
85
85
|
m,
|
|
86
86
|
e,
|
|
@@ -89,11 +89,11 @@ const me = "Observations-module_observations__RKSyo", be = "Observations-module_
|
|
|
89
89
|
o
|
|
90
90
|
)
|
|
91
91
|
),
|
|
92
|
-
|
|
92
|
+
t.groupedObservations.map(
|
|
93
93
|
(i, m) => ye(
|
|
94
94
|
i,
|
|
95
95
|
d,
|
|
96
|
-
|
|
96
|
+
r,
|
|
97
97
|
m,
|
|
98
98
|
e,
|
|
99
99
|
l,
|
|
@@ -102,7 +102,7 @@ const me = "Observations-module_observations__RKSyo", be = "Observations-module_
|
|
|
102
102
|
)
|
|
103
103
|
]
|
|
104
104
|
},
|
|
105
|
-
`encounter-${
|
|
105
|
+
`encounter-${t.encounterId}`
|
|
106
106
|
);
|
|
107
107
|
};
|
|
108
108
|
return /* @__PURE__ */ n(
|
|
@@ -112,30 +112,30 @@ const me = "Observations-module_observations__RKSyo", be = "Observations-module_
|
|
|
112
112
|
"data-testid": "obs-by-encounter-test-id",
|
|
113
113
|
"aria-label": "obs-by-encounter-aria-label",
|
|
114
114
|
children: s.map(
|
|
115
|
-
(
|
|
115
|
+
(t, r) => c(t, r === 0, r)
|
|
116
116
|
)
|
|
117
117
|
}
|
|
118
118
|
);
|
|
119
|
-
},
|
|
119
|
+
}, _e = (s) => ["conceptUuid", s], Re = (s, l, o, d) => [
|
|
120
120
|
"observations",
|
|
121
121
|
s,
|
|
122
122
|
...l,
|
|
123
123
|
o,
|
|
124
124
|
d
|
|
125
|
-
],
|
|
125
|
+
], Ie = ({
|
|
126
126
|
config: s,
|
|
127
127
|
episodeOfCareUuids: l,
|
|
128
128
|
encounterUuids: o
|
|
129
129
|
}) => {
|
|
130
130
|
const d = s, {
|
|
131
131
|
conceptNames: c = [],
|
|
132
|
-
conceptUuid:
|
|
133
|
-
hideThumbnail:
|
|
132
|
+
conceptUuid: t = [],
|
|
133
|
+
hideThumbnail: r = !1,
|
|
134
134
|
scope: e = "all"
|
|
135
|
-
} = d, p = pe(/* @__PURE__ */ new Set()), i = H(), { addNotification: m } =
|
|
135
|
+
} = d, p = pe(/* @__PURE__ */ new Set()), i = H(), { addNotification: m } = Q(), { t: u } = V(), b = ue({
|
|
136
136
|
queries: c.map((a) => ({
|
|
137
|
-
queryKey:
|
|
138
|
-
queryFn: () =>
|
|
137
|
+
queryKey: _e(a),
|
|
138
|
+
queryFn: () => x(a),
|
|
139
139
|
enabled: !!a
|
|
140
140
|
}))
|
|
141
141
|
});
|
|
@@ -147,14 +147,14 @@ const me = "Observations-module_observations__RKSyo", be = "Observations-module_
|
|
|
147
147
|
type: "error"
|
|
148
148
|
}), p.current.add(0)) : !a && y && p.current.clear();
|
|
149
149
|
}, [b, m, u]);
|
|
150
|
-
const
|
|
150
|
+
const T = g(() => b.map((a) => a.data?.uuid).filter((a) => !!a), [b]), h = g(() => [.../* @__PURE__ */ new Set([...T, ...t])], [T, t]), v = g(() => c.length === 0 ? !0 : b.every((a) => !a.isLoading), [b, c.length]), _ = e === "latest" || e === "latest-encounter", K = M(
|
|
151
151
|
l,
|
|
152
152
|
o
|
|
153
153
|
), {
|
|
154
154
|
data: R,
|
|
155
155
|
isLoading: U,
|
|
156
|
-
isError:
|
|
157
|
-
refetch:
|
|
156
|
+
isError: S,
|
|
157
|
+
refetch: N
|
|
158
158
|
} = ce({
|
|
159
159
|
queryKey: Re(
|
|
160
160
|
i,
|
|
@@ -162,75 +162,75 @@ const me = "Observations-module_observations__RKSyo", be = "Observations-module_
|
|
|
162
162
|
o,
|
|
163
163
|
e
|
|
164
164
|
),
|
|
165
|
-
queryFn: () =>
|
|
165
|
+
queryFn: () => _ ? j(
|
|
166
166
|
i,
|
|
167
167
|
h,
|
|
168
168
|
o
|
|
169
|
-
) :
|
|
169
|
+
) : Y(
|
|
170
170
|
i,
|
|
171
171
|
h,
|
|
172
172
|
o
|
|
173
173
|
),
|
|
174
|
-
enabled: !!i && h.length > 0 && v && !
|
|
174
|
+
enabled: !!i && h.length > 0 && v && !K
|
|
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)
|
|
180
|
-
) &&
|
|
180
|
+
) && N();
|
|
181
181
|
},
|
|
182
|
-
[i,
|
|
182
|
+
[i, N]
|
|
183
183
|
), L(() => {
|
|
184
|
-
|
|
184
|
+
S && m({
|
|
185
185
|
title: u("ERROR_DEFAULT_TITLE"),
|
|
186
186
|
message: u("ERROR_FETCHING_OBSERVATIONS"),
|
|
187
187
|
type: "error"
|
|
188
188
|
});
|
|
189
|
-
}, [
|
|
190
|
-
const
|
|
189
|
+
}, [S]);
|
|
190
|
+
const $ = g(() => {
|
|
191
191
|
if (!R) return [];
|
|
192
192
|
let a = P(R);
|
|
193
|
-
e === "latest-encounter" && (a =
|
|
194
|
-
const y =
|
|
195
|
-
return
|
|
196
|
-
}, [R, e]),
|
|
193
|
+
e === "latest-encounter" && (a = W(a));
|
|
194
|
+
const y = X(a);
|
|
195
|
+
return Z(y);
|
|
196
|
+
}, [R, e]), w = [
|
|
197
197
|
{ key: "name", header: "name" },
|
|
198
198
|
{ key: "value", header: "value" },
|
|
199
199
|
{ key: "form", header: "form" }
|
|
200
|
-
], A = U || !v, D =
|
|
201
|
-
return /* @__PURE__ */
|
|
200
|
+
], A = U || !v, D = S && v, q = (!R || R.entry?.length === 0 || h.length === 0) && v, C = D ? u("ERROR_FETCHING_OBSERVATIONS") : null, k = q ? u("NO_OBSERVATIONS_FOUND") : void 0, G = $.length > 0 && !A && !D, E = d.titleTranslationKey, f = E ? u(E) : "";
|
|
201
|
+
return /* @__PURE__ */ I(
|
|
202
202
|
"div",
|
|
203
203
|
{
|
|
204
204
|
id: "observations",
|
|
205
|
-
"data-testid":
|
|
205
|
+
"data-testid": E ? `observations-${f}` : "observations",
|
|
206
206
|
"aria-label": "observations-aria-label",
|
|
207
|
-
className:
|
|
207
|
+
className: O.observations,
|
|
208
208
|
children: [
|
|
209
209
|
/* @__PURE__ */ n(
|
|
210
210
|
ee,
|
|
211
211
|
{
|
|
212
212
|
id: "observations-title",
|
|
213
|
-
testId:
|
|
214
|
-
title:
|
|
215
|
-
className:
|
|
216
|
-
children: /* @__PURE__ */ n("p", { children:
|
|
213
|
+
testId: E ? `observations-title-${f}` : "observations-title",
|
|
214
|
+
title: f,
|
|
215
|
+
className: O.title,
|
|
216
|
+
children: /* @__PURE__ */ n("p", { children: f })
|
|
217
217
|
}
|
|
218
218
|
),
|
|
219
|
-
|
|
220
|
-
|
|
219
|
+
G ? /* @__PURE__ */ n(
|
|
220
|
+
Oe,
|
|
221
221
|
{
|
|
222
|
-
groupedData:
|
|
223
|
-
title:
|
|
224
|
-
hideThumbnail:
|
|
222
|
+
groupedData: $,
|
|
223
|
+
title: f,
|
|
224
|
+
hideThumbnail: r
|
|
225
225
|
}
|
|
226
226
|
) : /* @__PURE__ */ n(
|
|
227
227
|
ae,
|
|
228
228
|
{
|
|
229
|
-
headers:
|
|
229
|
+
headers: w,
|
|
230
230
|
rows: [],
|
|
231
231
|
ariaLabel: u("OBSERVATIONS"),
|
|
232
232
|
loading: A,
|
|
233
|
-
errorStateMessage:
|
|
233
|
+
errorStateMessage: C,
|
|
234
234
|
emptyStateMessage: k ?? u("NO_OBSERVATIONS_AVAILABLE"),
|
|
235
235
|
dataTestId: "observations-table"
|
|
236
236
|
}
|
|
@@ -240,7 +240,7 @@ const me = "Observations-module_observations__RKSyo", be = "Observations-module_
|
|
|
240
240
|
);
|
|
241
241
|
};
|
|
242
242
|
export {
|
|
243
|
-
|
|
244
|
-
|
|
243
|
+
_e as conceptUuidQueryKeys,
|
|
244
|
+
Ie as default,
|
|
245
245
|
Re as observationsQueryKeys
|
|
246
246
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ac as we, ad as z, ae as xt, af as B, aa as q, ab as y, ag as Ro, ah as ye, ai as R, aj as _, ak as k, al as N, am as A, an as bs, ao as ir, ap as $e, aq as U, ar as Hn, as as Vn, at as dt, au as D, av as xs, aw as cn, ax as Be, ay as ws, az as qt, aA as zt, aB as $s, aC as Cs, aD as $n, aE as Ss, aF as Nr, aG as Bt, aH as zo, aI as ks, aJ as Es, aK as j, aL as Ur, aM as Ms, aN as Ds, aO as sr, aP as As, aQ as Ts, aR as zn, aS as Fs, aT as Is, aU as Z, aV as Ps, aW as Ls } from "./index-
|
|
1
|
+
import { ac as we, ad as z, ae as xt, af as B, aa as q, ab as y, ag as Ro, ah as ye, ai as R, aj as _, ak as k, al as N, am as A, an as bs, ao as ir, ap as $e, aq as U, ar as Hn, as as Vn, at as dt, au as D, av as xs, aw as cn, ax as Be, ay as ws, az as qt, aA as zt, aB as $s, aC as Cs, aD as $n, aE as Ss, aF as Nr, aG as Bt, aH as zo, aI as ks, aJ as Es, aK as j, aL as Ur, aM as Ms, aN as Ds, aO as sr, aP as As, aQ as Ts, aR as zn, aS as Fs, aT as Is, aU as Z, aV as Ps, aW as Ls } from "./index-ClETYuc0.js";
|
|
2
2
|
var Os = (e) => e != null, qs = (e) => e.filter(Os);
|
|
3
3
|
function _s(e) {
|
|
4
4
|
return (...t) => {
|