@bahmni/clinical-app 0.0.1-dev.345 → 0.0.1-dev.347
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-C16UUcY9.js → ConsultationPage-C3T8THlO.js} +7006 -6994
- package/dist/{DocumentsTable-eF8z2BlA-DKH6plCQ.js → DocumentsTable-D-yL-evA-B1fwtgFW.js} +59 -59
- package/dist/{FormsTable-CPVRSlLS-DXEZ0G7y.js → FormsTable-BbwKhyCn-DTJMxF2E.js} +87 -87
- package/dist/{LNWAZHJI-DiqxMPAO.js → LNWAZHJI-imGBWvAi.js} +2 -2
- package/dist/{MWZ6AO7Z-CA4CjR11.js → MWZ6AO7Z-CaczTOj3.js} +2 -2
- package/dist/{Observations-DisYmEmq-CBcTeSrp.js → Observations-CiATLznu-n-AeVz43.js} +39 -39
- package/dist/{YPM2AS64-CorlLENH.js → YPM2AS64-BSKjhDOv.js} +1 -1
- package/dist/components/consultationPad/index.d.ts.map +1 -1
- package/dist/{hook-BOWWuzkL.js → hook-CQJXPLXP.js} +1 -1
- package/dist/{index-BSFJfPyX.js → index-C9yfr1HV.js} +12 -12
- package/dist/{index-BzYQyOmz.js → index-CjEhPxaX.js} +6 -6
- package/dist/{index-BtKseXPE.js → index-DUVzEfOd.js} +54428 -54009
- package/dist/index.js +1 -1
- 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 { V as Q, o as q, u as N, h as x, e as M, a as k, x as w, A as j, _ as G, W as H, Q as z, i as P, K as A, j as W, l as J, U as Y, q as X, E as Z, v as ee } from "./index-DUVzEfOd.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 I, useMemo as R } from "react";
|
|
5
|
+
const D = (a, n, d, l, b, r) => {
|
|
6
|
+
const t = W(a, n, b), s = t.value, o = J(s);
|
|
7
7
|
let i = s;
|
|
8
8
|
o === "Image" && (i = /* @__PURE__ */ u(
|
|
9
|
-
|
|
9
|
+
X,
|
|
10
10
|
{
|
|
11
11
|
imageSrc: s,
|
|
12
12
|
alt: s,
|
|
@@ -23,7 +23,7 @@ const F = (a, n, d, l, b, r) => {
|
|
|
23
23
|
)), o === "PDF" && (i = /* @__PURE__ */ u(ee, { id: `${s}-pdf`, src: s }));
|
|
24
24
|
const m = b("OBSERVATIONS_RECORDED_BY", {
|
|
25
25
|
provider: t.provider
|
|
26
|
-
}), p = a.display,
|
|
26
|
+
}), p = a.display, v = a.observationValue?.isAbnormal ? "abnormal-obs" : "obs", c = l ? `${l}-${v}-${p}-${d}-${n}` : `${v}-${p}-${d}-${n}`;
|
|
27
27
|
return /* @__PURE__ */ u(
|
|
28
28
|
Y,
|
|
29
29
|
{
|
|
@@ -37,13 +37,13 @@ const F = (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
|
+
A,
|
|
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) => D(
|
|
47
47
|
s,
|
|
48
48
|
o,
|
|
49
49
|
b,
|
|
@@ -60,16 +60,16 @@ const F = (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 = P(r.encounterDetails, l);
|
|
64
64
|
return /* @__PURE__ */ S(
|
|
65
|
-
|
|
65
|
+
A,
|
|
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) => D(
|
|
73
73
|
i,
|
|
74
74
|
m,
|
|
75
75
|
s,
|
|
@@ -113,92 +113,92 @@ const F = (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 = Q(), { addNotification: s } = q(), { t: o } = N(), i = ae({
|
|
117
117
|
queries: d.map((e) => ({
|
|
118
118
|
queryKey: de(e),
|
|
119
119
|
queryFn: () => x(e),
|
|
120
120
|
enabled: !!e
|
|
121
121
|
}))
|
|
122
122
|
});
|
|
123
|
-
|
|
123
|
+
I(() => {
|
|
124
124
|
i.forEach((e, h) => {
|
|
125
125
|
if (e.isError && !r.current.has(h)) {
|
|
126
|
-
const
|
|
126
|
+
const B = 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: B }),
|
|
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 = R(() => i.map((e) => e.data?.uuid).filter((e) => !!e), [i]), p = R(() => [.../* @__PURE__ */ new Set([...m, ...l])], [m, l]), v = R(() => d.length === 0 ? !0 : i.every((e) => !e.isLoading), [i, d.length]), {
|
|
136
136
|
data: c,
|
|
137
|
-
isLoading:
|
|
137
|
+
isLoading: F,
|
|
138
138
|
isError: T,
|
|
139
139
|
refetch: g
|
|
140
140
|
} = te({
|
|
141
141
|
queryKey: le(t, p),
|
|
142
|
-
queryFn: () =>
|
|
143
|
-
enabled: !!t && p.length > 0 &&
|
|
142
|
+
queryFn: () => M(t, p),
|
|
143
|
+
enabled: !!t && p.length > 0 && v
|
|
144
144
|
});
|
|
145
|
-
|
|
145
|
+
k(
|
|
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
|
+
), I(() => {
|
|
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 O = R(() => {
|
|
160
160
|
if (!c) return [];
|
|
161
|
-
const e =
|
|
162
|
-
return
|
|
163
|
-
}, [c]),
|
|
161
|
+
const e = w(c), h = j(e);
|
|
162
|
+
return G(h);
|
|
163
|
+
}, [c]), L = [
|
|
164
164
|
{ key: "name", header: "name" },
|
|
165
165
|
{ key: "value", header: "value" },
|
|
166
166
|
{ key: "form", header: "form" }
|
|
167
|
-
],
|
|
167
|
+
], _ = F || !v, f = T && v, U = (!c || c.entry?.length === 0 || p.length === 0) && v, V = f ? o("ERROR_FETCHING_OBSERVATIONS") : null, C = U ? o("NO_OBSERVATIONS_FOUND") : void 0, K = O.length > 0 && !_ && !f, E = n.titleTranslationKey, y = E ? o(E) : "";
|
|
168
168
|
return /* @__PURE__ */ S(
|
|
169
169
|
"div",
|
|
170
170
|
{
|
|
171
171
|
id: "observations",
|
|
172
|
-
"data-testid":
|
|
172
|
+
"data-testid": E ? `observations-${y}` : "observations",
|
|
173
173
|
"aria-label": "observations-aria-label",
|
|
174
174
|
className: $.observations,
|
|
175
175
|
children: [
|
|
176
176
|
/* @__PURE__ */ u(
|
|
177
|
-
|
|
177
|
+
H,
|
|
178
178
|
{
|
|
179
179
|
id: "observations-title",
|
|
180
|
-
testId:
|
|
181
|
-
title:
|
|
180
|
+
testId: E ? `observations-title-${y}` : "observations-title",
|
|
181
|
+
title: y,
|
|
182
182
|
className: $.title,
|
|
183
|
-
children: /* @__PURE__ */ u("p", { children:
|
|
183
|
+
children: /* @__PURE__ */ u("p", { children: y })
|
|
184
184
|
}
|
|
185
185
|
),
|
|
186
|
-
|
|
186
|
+
K ? /* @__PURE__ */ u(
|
|
187
187
|
oe,
|
|
188
188
|
{
|
|
189
|
-
groupedData:
|
|
190
|
-
title:
|
|
189
|
+
groupedData: O,
|
|
190
|
+
title: y,
|
|
191
191
|
hideThumbnail: b
|
|
192
192
|
}
|
|
193
193
|
) : /* @__PURE__ */ u(
|
|
194
|
-
|
|
194
|
+
z,
|
|
195
195
|
{
|
|
196
|
-
headers:
|
|
196
|
+
headers: L,
|
|
197
197
|
rows: [],
|
|
198
198
|
ariaLabel: o("OBSERVATIONS"),
|
|
199
|
-
loading:
|
|
200
|
-
errorStateMessage:
|
|
201
|
-
emptyStateMessage:
|
|
199
|
+
loading: _,
|
|
200
|
+
errorStateMessage: V,
|
|
201
|
+
emptyStateMessage: C,
|
|
202
202
|
dataTestId: "observations-table"
|
|
203
203
|
}
|
|
204
204
|
)
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { bM as we, bN as z, bO as xt, bP as B, bK as q, bL as y, bQ as Ro, bR as ye, bS as R, bT as _, bU as k, bV as N, bW as A, bX as bs, bY as ir, bZ as $e, b_ as U, b$ as Hn, c0 as Vn, c1 as dt, c2 as D, c3 as xs, c4 as cn, c5 as Be, c6 as ws, c7 as qt, c8 as zt, c9 as $s, ca as Cs, cb as $n, cc as Ss, cd as Nr, ce as Bt, cf as zo, cg as ks, ch as Es, ci as j, cj as Ur, ck as Ms, cl as Ds, cm as sr, cn as As, co as Ts, cp as zn, cq as Fs, cr as Is, cs as Z, ct as Ps, cu as Ls } from "./index-DUVzEfOd.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":"
|
|
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;AAqBnF,UAAU,oBAAoB;IAC5B,4BAA4B,EAAE,4BAA4B,CAAC;IAC3D,OAAO,EAAE,MAAM,IAAI,CAAC;CACrB;AAED,QAAA,MAAM,eAAe,EAAE,KAAK,CAAC,EAAE,CAAC,oBAAoB,CAohBnD,CAAC;AAEF,eAAe,eAAe,CAAC"}
|
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
import { jsx as a } from "react/jsx-runtime";
|
|
2
|
-
import {
|
|
2
|
+
import { bz as m, u, aK as f, bw as p, bG as b, aC as _, bC as x } from "./index-DUVzEfOd.js";
|
|
3
3
|
import { lazy as N, useMemo as r, Suspense as h } from "react";
|
|
4
|
-
import { u as E } from "./hook-
|
|
5
|
-
const
|
|
4
|
+
import { u as E } from "./hook-CQJXPLXP.js";
|
|
5
|
+
const C = (s) => {
|
|
6
6
|
const i = /* @__PURE__ */ new Map();
|
|
7
7
|
for (const e of s) {
|
|
8
8
|
const o = i.get(e.extensionPointId) ?? [];
|
|
9
9
|
o.push(e), i.set(e.extensionPointId, o);
|
|
10
10
|
}
|
|
11
11
|
return i;
|
|
12
|
-
},
|
|
12
|
+
}, P = (s, i) => s.filter(
|
|
13
13
|
(e) => !e.requiredPrivileges || e.requiredPrivileges.length === 0 || m(i, e.requiredPrivileges)
|
|
14
|
-
),
|
|
14
|
+
), v = {
|
|
15
15
|
"org.bahmni.clinical.v2.search": N(
|
|
16
|
-
() => import("./index-
|
|
16
|
+
() => import("./index-CjEhPxaX.js")
|
|
17
17
|
)
|
|
18
|
-
},
|
|
19
|
-
page:
|
|
20
|
-
loading:
|
|
18
|
+
}, L = "index-module_page__16xxw", I = "index-module_loading__wNI-4", y = "index-module_tabs__ZZv8Y", w = "index-module_message__Ib5Iw", l = {
|
|
19
|
+
page: L,
|
|
20
|
+
loading: I,
|
|
21
21
|
tabs: y,
|
|
22
22
|
message: w
|
|
23
23
|
}, S = () => {
|
|
@@ -28,13 +28,13 @@ const P = (s) => {
|
|
|
28
28
|
],
|
|
29
29
|
[s]
|
|
30
30
|
), c = r(
|
|
31
|
-
() =>
|
|
31
|
+
() => C(i?.extensions ?? []),
|
|
32
32
|
[i]
|
|
33
33
|
), d = r(
|
|
34
34
|
() => Array.from(c.entries()).map(([n, t]) => ({
|
|
35
35
|
pointId: n,
|
|
36
|
-
Handler:
|
|
37
|
-
filtered:
|
|
36
|
+
Handler: v[n],
|
|
37
|
+
filtered: P(t, e)
|
|
38
38
|
})).filter(({ Handler: n, filtered: t }) => !!n && t.length > 0),
|
|
39
39
|
[c, e]
|
|
40
40
|
);
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { jsxs as d, jsx as e } from "react/jsx-runtime";
|
|
2
|
-
import { u as r,
|
|
3
|
-
import { Suspense as
|
|
4
|
-
const
|
|
5
|
-
loading:
|
|
6
|
-
message:
|
|
2
|
+
import { u as r, cv as o, cw as l, cx as c, b2 as m, b3 as g, cy as h, cz as b, cA as p, aC as u } from "./index-DUVzEfOd.js";
|
|
3
|
+
import { Suspense as E } from "react";
|
|
4
|
+
const _ = "index-module_loading__FAL7n", $ = "index-module_message__KjCnF", t = {
|
|
5
|
+
loading: _,
|
|
6
|
+
message: $
|
|
7
7
|
}, I = ({ extensions: i }) => {
|
|
8
8
|
const { t: s } = r();
|
|
9
9
|
return i.length === 0 ? null : /* @__PURE__ */ d(o, { children: [
|
|
@@ -46,7 +46,7 @@ const $ = "index-module_loading__FAL7n", E = "index-module_message__KjCnF", t =
|
|
|
46
46
|
"data-testid": `${a.id}-panel-test-id`,
|
|
47
47
|
"aria-label": `Panel ${a.id}`,
|
|
48
48
|
children: n ? /* @__PURE__ */ e(
|
|
49
|
-
|
|
49
|
+
E,
|
|
50
50
|
{
|
|
51
51
|
fallback: /* @__PURE__ */ e(
|
|
52
52
|
u,
|