@bahmni/clinical-app 0.0.1-dev.342 → 0.0.1-dev.344
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-lyolzWQa.js → ConsultationPage-Cdj2gIRS.js} +10725 -10673
- package/dist/{DocumentsTable-CwsQxB8z-C1MBrA4k.js → DocumentsTable-eF8z2BlA-C9OE_5Qy.js} +58 -58
- package/dist/{FormsTable-D7qAq2oV-DZ9Jdr3X.js → FormsTable-CPVRSlLS-C7rNh_lF.js} +69 -69
- package/dist/{LNWAZHJI-COBYn-dX.js → LNWAZHJI-CUoNYoTI.js} +2 -2
- package/dist/{MWZ6AO7Z-BhFPUwnQ.js → MWZ6AO7Z-BUJdmkTr.js} +2 -2
- package/dist/{Observations-CuU8iPzI-B468X5n5.js → Observations-DisYmEmq-B2f65YKU.js} +35 -35
- package/dist/{YPM2AS64-Bg1gggRq.js → YPM2AS64-BtVZDgbK.js} +1 -1
- package/dist/{hook-D0Jte7cL.js → hook-BYV2CC-F.js} +1 -1
- package/dist/{index-8jABWVHf.js → index-BODja8Tu.js} +11 -11
- package/dist/{index-BnvRPF3_.js → index-C9If6LVr.js} +7 -7
- package/dist/{index-B2JKo9fD.js → index-DR3b8F6u.js} +59052 -54804
- package/dist/index.css +1 -1
- package/dist/index.js +1 -1
- package/dist/locales/locale_en.json +88 -65
- package/dist/locales/locale_es.json +87 -64
- package/package.json +1 -1
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { jsxs as S, jsx as u } from "react/jsx-runtime";
|
|
2
|
-
import {
|
|
2
|
+
import { y as k, r as q, u as N, j as x, U as Q, a as j, n as M, o as P, c as w, P as G, X as H, f as z, x as D, g as X, h as J, R as Y, i as W, k as Z, p as ee } from "./index-DR3b8F6u.js";
|
|
3
3
|
import { useQueries as ae, useQuery as te } from "@tanstack/react-query";
|
|
4
|
-
import { useRef as se, useEffect as
|
|
5
|
-
const
|
|
6
|
-
const t =
|
|
4
|
+
import { useRef as se, useEffect as _, useMemo as E } from "react";
|
|
5
|
+
const F = (a, n, d, l, b, r) => {
|
|
6
|
+
const t = X(a, n, b), s = t.value, o = J(s);
|
|
7
7
|
let i = s;
|
|
8
8
|
o === "Image" && (i = /* @__PURE__ */ u(
|
|
9
|
-
|
|
9
|
+
W,
|
|
10
10
|
{
|
|
11
11
|
imageSrc: s,
|
|
12
12
|
alt: s,
|
|
@@ -25,7 +25,7 @@ const C = (a, n, d, l, b, r) => {
|
|
|
25
25
|
provider: t.provider
|
|
26
26
|
}), p = a.display, y = a.observationValue?.isAbnormal ? "abnormal-obs" : "obs", c = l ? `${l}-${y}-${p}-${d}-${n}` : `${y}-${p}-${d}-${n}`;
|
|
27
27
|
return /* @__PURE__ */ u(
|
|
28
|
-
|
|
28
|
+
Y,
|
|
29
29
|
{
|
|
30
30
|
header: t.header,
|
|
31
31
|
value: i,
|
|
@@ -37,13 +37,13 @@ const C = (a, n, d, l, b, r) => {
|
|
|
37
37
|
`obs-${a.id}`
|
|
38
38
|
);
|
|
39
39
|
}, re = (a, n, d, l, b, r, t) => /* @__PURE__ */ u(
|
|
40
|
-
|
|
40
|
+
D,
|
|
41
41
|
{
|
|
42
42
|
title: a.display,
|
|
43
43
|
id: `grouped-obs-${a.display}-${l}`,
|
|
44
44
|
open: d,
|
|
45
45
|
children: a.members?.map(
|
|
46
|
-
(s, o) =>
|
|
46
|
+
(s, o) => F(
|
|
47
47
|
s,
|
|
48
48
|
o,
|
|
49
49
|
b,
|
|
@@ -60,16 +60,16 @@ const C = (a, n, d, l, b, r) => {
|
|
|
60
60
|
hideThumbnail: d
|
|
61
61
|
}) => {
|
|
62
62
|
const { t: l } = N(), b = (r, t, s) => {
|
|
63
|
-
const o =
|
|
63
|
+
const o = z(r.encounterDetails, l);
|
|
64
64
|
return /* @__PURE__ */ S(
|
|
65
|
-
|
|
65
|
+
D,
|
|
66
66
|
{
|
|
67
67
|
title: o,
|
|
68
68
|
id: `encounter-${r.encounterId}`,
|
|
69
69
|
open: t,
|
|
70
70
|
children: [
|
|
71
71
|
r.observations.map(
|
|
72
|
-
(i, m) =>
|
|
72
|
+
(i, m) => F(
|
|
73
73
|
i,
|
|
74
74
|
m,
|
|
75
75
|
s,
|
|
@@ -113,63 +113,63 @@ const C = (a, n, d, l, b, r) => {
|
|
|
113
113
|
conceptNames: d = [],
|
|
114
114
|
conceptUuid: l = [],
|
|
115
115
|
hideThumbnail: b = !1
|
|
116
|
-
} = n, r = se(/* @__PURE__ */ new Set()), t =
|
|
116
|
+
} = n, r = se(/* @__PURE__ */ new Set()), t = k(), { addNotification: s } = q(), { t: o } = N(), i = ae({
|
|
117
117
|
queries: d.map((e) => ({
|
|
118
118
|
queryKey: de(e),
|
|
119
|
-
queryFn: () =>
|
|
119
|
+
queryFn: () => x(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);
|
|
133
133
|
});
|
|
134
134
|
}, [i, d]);
|
|
135
|
-
const m =
|
|
135
|
+
const m = E(() => i.map((e) => e.data?.uuid).filter((e) => !!e), [i]), p = E(() => [.../* @__PURE__ */ new Set([...m, ...l])], [m, l]), y = E(() => d.length === 0 ? !0 : i.every((e) => !e.isLoading), [i, d.length]), {
|
|
136
136
|
data: c,
|
|
137
|
-
isLoading:
|
|
137
|
+
isLoading: L,
|
|
138
138
|
isError: T,
|
|
139
139
|
refetch: g
|
|
140
140
|
} = te({
|
|
141
141
|
queryKey: le(t, p),
|
|
142
|
-
queryFn: () =>
|
|
142
|
+
queryFn: () => Q(t, p),
|
|
143
143
|
enabled: !!t && p.length > 0 && y
|
|
144
144
|
});
|
|
145
|
-
|
|
145
|
+
j(
|
|
146
146
|
(e) => {
|
|
147
147
|
e.patientUUID === t && e.updatedConcepts.size > 0 && [...e.updatedConcepts.keys()].some(
|
|
148
148
|
(h) => p.includes(h)
|
|
149
149
|
) && g();
|
|
150
150
|
},
|
|
151
151
|
[t, g]
|
|
152
|
-
),
|
|
152
|
+
), _(() => {
|
|
153
153
|
T && s({
|
|
154
154
|
title: o("ERROR_DEFAULT_TITLE"),
|
|
155
155
|
message: o("ERROR_FETCHING_OBSERVATIONS"),
|
|
156
156
|
type: "error"
|
|
157
157
|
});
|
|
158
158
|
}, [T]);
|
|
159
|
-
const
|
|
159
|
+
const f = E(() => {
|
|
160
160
|
if (!c) return [];
|
|
161
|
-
const e =
|
|
162
|
-
return
|
|
163
|
-
}, [c]),
|
|
161
|
+
const e = M(c), h = P(e);
|
|
162
|
+
return w(h);
|
|
163
|
+
}, [c]), U = [
|
|
164
164
|
{ key: "name", header: "name" },
|
|
165
165
|
{ key: "value", header: "value" },
|
|
166
166
|
{ key: "form", header: "form" }
|
|
167
|
-
],
|
|
167
|
+
], O = L || !y, I = T && y, A = (!c || c.entry?.length === 0 || p.length === 0) && y, C = I ? o("ERROR_FETCHING_OBSERVATIONS") : null, B = A ? o("NO_OBSERVATIONS_FOUND") : void 0, V = f.length > 0 && !O && !I, R = n.titleTranslationKey, v = R ? o(R) : "";
|
|
168
168
|
return /* @__PURE__ */ S(
|
|
169
169
|
"div",
|
|
170
170
|
{
|
|
171
171
|
id: "observations",
|
|
172
|
-
"data-testid":
|
|
172
|
+
"data-testid": R ? `observations-${v}` : "observations",
|
|
173
173
|
"aria-label": "observations-aria-label",
|
|
174
174
|
className: $.observations,
|
|
175
175
|
children: [
|
|
@@ -177,28 +177,28 @@ const C = (a, n, d, l, b, r) => {
|
|
|
177
177
|
G,
|
|
178
178
|
{
|
|
179
179
|
id: "observations-title",
|
|
180
|
-
testId:
|
|
180
|
+
testId: R ? `observations-title-${v}` : "observations-title",
|
|
181
181
|
title: v,
|
|
182
182
|
className: $.title,
|
|
183
183
|
children: /* @__PURE__ */ u("p", { children: v })
|
|
184
184
|
}
|
|
185
185
|
),
|
|
186
|
-
|
|
186
|
+
V ? /* @__PURE__ */ u(
|
|
187
187
|
oe,
|
|
188
188
|
{
|
|
189
|
-
groupedData:
|
|
189
|
+
groupedData: f,
|
|
190
190
|
title: v,
|
|
191
191
|
hideThumbnail: b
|
|
192
192
|
}
|
|
193
193
|
) : /* @__PURE__ */ u(
|
|
194
|
-
|
|
194
|
+
H,
|
|
195
195
|
{
|
|
196
|
-
headers:
|
|
196
|
+
headers: U,
|
|
197
197
|
rows: [],
|
|
198
198
|
ariaLabel: o("OBSERVATIONS"),
|
|
199
|
-
loading:
|
|
200
|
-
errorStateMessage:
|
|
201
|
-
emptyStateMessage:
|
|
199
|
+
loading: O,
|
|
200
|
+
errorStateMessage: C,
|
|
201
|
+
emptyStateMessage: B,
|
|
202
202
|
dataTestId: "observations-table"
|
|
203
203
|
}
|
|
204
204
|
)
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { bL as we, bM as z, bN as xt, bO as B, bJ as q, bK as y, bP as Ro, bQ as ye, bR as R, bS as _, bT as k, bU as N, bV as A, bW as bs, bX as ir, bY as $e, bZ as U, b_ as Hn, b$ as Vn, c0 as dt, c1 as D, c2 as xs, c3 as cn, c4 as Be, c5 as ws, c6 as qt, c7 as zt, c8 as $s, c9 as Cs, ca as $n, cb as Ss, cc as Nr, cd as Bt, ce as zo, cf as ks, cg as Es, ch as j, ci as Ur, cj as Ms, ck as Ds, cl as sr, cm as As, cn as Ts, co as zn, cp as Fs, cq as Is, cr as Z, cs as Ps, ct as Ls } from "./index-
|
|
1
|
+
import { bL as we, bM as z, bN as xt, bO as B, bJ as q, bK as y, bP as Ro, bQ as ye, bR as R, bS as _, bT as k, bU as N, bV as A, bW as bs, bX as ir, bY as $e, bZ as U, b_ as Hn, b$ as Vn, c0 as dt, c1 as D, c2 as xs, c3 as cn, c4 as Be, c5 as ws, c6 as qt, c7 as zt, c8 as $s, c9 as Cs, ca as $n, cb as Ss, cc as Nr, cd as Bt, ce as zo, cf as ks, cg as Es, ch as j, ci as Ur, cj as Ms, ck as Ds, cl as sr, cm as As, cn as Ts, co as zn, cp as Fs, cq as Is, cr as Z, cs as Ps, ct as Ls } from "./index-DR3b8F6u.js";
|
|
2
2
|
var Os = (e) => e != null, qs = (e) => e.filter(Os);
|
|
3
3
|
function _s(e) {
|
|
4
4
|
return (...t) => {
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { u as r, cu as o, cv as l, cw as c, b4 as m, b5 as g, cx as h, cy as b, cz as
|
|
3
|
-
import { Suspense as
|
|
4
|
-
const
|
|
5
|
-
loading:
|
|
1
|
+
import { jsxs as d, jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import { u as r, cu as o, cv as l, cw as c, b4 as m, b5 as g, cx as h, cy as b, cz as p, aF as u } from "./index-DR3b8F6u.js";
|
|
3
|
+
import { Suspense as _ } from "react";
|
|
4
|
+
const $ = "index-module_loading__FAL7n", E = "index-module_message__KjCnF", t = {
|
|
5
|
+
loading: $,
|
|
6
6
|
message: E
|
|
7
7
|
}, I = ({ extensions: i }) => {
|
|
8
8
|
const { t: s } = r();
|
|
9
|
-
return i.length === 0 ? null : /* @__PURE__ */
|
|
9
|
+
return i.length === 0 ? null : /* @__PURE__ */ d(o, { children: [
|
|
10
10
|
/* @__PURE__ */ e(
|
|
11
11
|
l,
|
|
12
12
|
{
|
|
@@ -40,19 +40,19 @@ const _ = "index-module_loading__FAL7n", E = "index-module_message__KjCnF", d =
|
|
|
40
40
|
a.extensionParams?.searchHandler ?? ""
|
|
41
41
|
)?.component;
|
|
42
42
|
return /* @__PURE__ */ e(
|
|
43
|
-
|
|
43
|
+
p,
|
|
44
44
|
{
|
|
45
45
|
id: `${a.id}-panel`,
|
|
46
46
|
"data-testid": `${a.id}-panel-test-id`,
|
|
47
47
|
"aria-label": `Panel ${a.id}`,
|
|
48
48
|
children: n ? /* @__PURE__ */ e(
|
|
49
|
-
|
|
49
|
+
_,
|
|
50
50
|
{
|
|
51
51
|
fallback: /* @__PURE__ */ e(
|
|
52
|
-
|
|
52
|
+
u,
|
|
53
53
|
{
|
|
54
54
|
type: "multi",
|
|
55
|
-
className:
|
|
55
|
+
className: t.loading
|
|
56
56
|
}
|
|
57
57
|
),
|
|
58
58
|
children: /* @__PURE__ */ e(n, { extensionParams: a.extensionParams })
|
|
@@ -63,7 +63,7 @@ const _ = "index-module_loading__FAL7n", E = "index-module_message__KjCnF", d =
|
|
|
63
63
|
id: "extension-widget-not-registered",
|
|
64
64
|
"data-testid": "extension-widget-not-registered-test-id",
|
|
65
65
|
"aria-label": "Extension widget not registered",
|
|
66
|
-
className:
|
|
66
|
+
className: t.message,
|
|
67
67
|
children: s("EXTENSION_WIDGET_NOT_REGISTERED")
|
|
68
68
|
}
|
|
69
69
|
)
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as a } from "react/jsx-runtime";
|
|
2
|
-
import { by as m, u, aM as f, bv as p, bF as b, aF as _, bB as x } from "./index-
|
|
2
|
+
import { by as m, u, aM as f, bv as p, bF as b, aF as _, bB as x } from "./index-DR3b8F6u.js";
|
|
3
3
|
import { lazy as N, useMemo as r, Suspense as h } from "react";
|
|
4
|
-
import { u as E } from "./hook-
|
|
4
|
+
import { u as E } from "./hook-BYV2CC-F.js";
|
|
5
5
|
const P = (s) => {
|
|
6
6
|
const i = /* @__PURE__ */ new Map();
|
|
7
7
|
for (const e of s) {
|
|
@@ -13,12 +13,12 @@ const P = (s) => {
|
|
|
13
13
|
(e) => !e.requiredPrivileges || e.requiredPrivileges.length === 0 || m(i, e.requiredPrivileges)
|
|
14
14
|
), C = {
|
|
15
15
|
"org.bahmni.clinical.v2.search": N(
|
|
16
|
-
() => import("./index-
|
|
16
|
+
() => import("./index-BODja8Tu.js")
|
|
17
17
|
)
|
|
18
|
-
},
|
|
19
|
-
page:
|
|
20
|
-
loading:
|
|
21
|
-
tabs:
|
|
18
|
+
}, I = "index-module_page__16xxw", L = "index-module_loading__wNI-4", y = "index-module_tabs__ZZv8Y", w = "index-module_message__Ib5Iw", l = {
|
|
19
|
+
page: I,
|
|
20
|
+
loading: L,
|
|
21
|
+
tabs: y,
|
|
22
22
|
message: w
|
|
23
23
|
}, S = () => {
|
|
24
24
|
const { t: s } = u(), { clinicalConfig: i } = E(), { userPrivileges: e } = f(), o = r(
|