@bahmni/registration-app 0.0.1-dev.238 → 0.0.1-dev.239
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/{DocumentsTable-1XgzVmNY-CUKwxyaB.js → DocumentsTable-CD-yiYOH-B5Gd-j_X.js} +8 -8
- package/dist/{FormsTable-B0J51cB5-CHAQaAvN.js → FormsTable-DJ3FB7TZ-CY9fZv6P.js} +15 -15
- package/dist/{LNWAZHJI-CwQl5Led.js → LNWAZHJI-CuFH7A2e.js} +5 -5
- package/dist/{MWZ6AO7Z-D6gT730N.js → MWZ6AO7Z-DrV8npQq.js} +4 -4
- package/dist/{Observations-Cqov9775-Cwd1FjVt.js → Observations-DG-3eskL-sBJRecHc.js} +13 -13
- package/dist/{YPM2AS64-BkOnKXVX.js → YPM2AS64-CQDsK6oR.js} +1 -1
- package/dist/{index-CO8q6vad.js → index-BiauV7w9.js} +1058 -1057
- package/dist/index.js +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 { t as K, u as Q, r as W,
|
|
2
|
+
import { t as K, u as Q, r as W, H as J, N as X, d as Z, o as ee, l as te } from "./index-BiauV7w9.js";
|
|
3
3
|
import { useQuery as ae } from "@tanstack/react-query";
|
|
4
4
|
import { useState as l, useCallback as h, useEffect as f, useMemo as T } from "react";
|
|
5
5
|
const ne = "_documentsTableBody_1voj8_1", oe = "_viewAttachmentsLink_1voj8_11", re = "_documentViewerContainer_1voj8_15", de = "_attachmentItem_1voj8_23", se = "_attachmentCounter_1voj8_27", ce = "_attachmentError_1voj8_36", ie = "_documentIframe_1voj8_44", le = "_documentImage_1voj8_50", d = {
|
|
@@ -38,13 +38,13 @@ const _e = [
|
|
|
38
38
|
null
|
|
39
39
|
), [R, I] = l(
|
|
40
40
|
/* @__PURE__ */ new Set()
|
|
41
|
-
), E = K(), { t: n } = Q(), { addNotification: U } = W(), $ = Number(a?.pageSize) || 5, [C, A] = l(1), [m,
|
|
41
|
+
), E = K(), { t: n } = Q(), { addNotification: U } = W(), $ = Number(a?.pageSize) || 5, [C, A] = l(1), [m, k] = l($), [H, y] = l(void 0), M = h((e) => {
|
|
42
42
|
L(e), w(!0);
|
|
43
|
-
}, []),
|
|
43
|
+
}, []), V = h(() => {
|
|
44
44
|
w(!1), L(null), I(/* @__PURE__ */ new Set());
|
|
45
45
|
}, []), b = h((e) => {
|
|
46
46
|
I((t) => new Set(t).add(e));
|
|
47
|
-
}, []), { data: u, isLoading:
|
|
47
|
+
}, []), { data: u, isLoading: F, isError: D, error: v } = ae({
|
|
48
48
|
queryKey: [
|
|
49
49
|
"documents",
|
|
50
50
|
E,
|
|
@@ -91,7 +91,7 @@ const _e = [
|
|
|
91
91
|
}, [s, o]);
|
|
92
92
|
const q = h(
|
|
93
93
|
(e, t) => {
|
|
94
|
-
t !== m ? (
|
|
94
|
+
t !== m ? (k(t), A(1), y(void 0)) : A(e);
|
|
95
95
|
},
|
|
96
96
|
[m]
|
|
97
97
|
), N = T(
|
|
@@ -144,7 +144,7 @@ const _e = [
|
|
|
144
144
|
headers: z,
|
|
145
145
|
ariaLabel: n("DOCUMENTS_TABLE_HEADING"),
|
|
146
146
|
rows: P,
|
|
147
|
-
loading:
|
|
147
|
+
loading: F,
|
|
148
148
|
errorStateMessage: D ? v?.message : null,
|
|
149
149
|
sortable: x,
|
|
150
150
|
emptyStateMessage: n("DOCUMENTS_NO_RECORDS"),
|
|
@@ -152,7 +152,7 @@ const _e = [
|
|
|
152
152
|
className: d.documentsTableBody,
|
|
153
153
|
dataTestId: "documents-table",
|
|
154
154
|
pageSize: m,
|
|
155
|
-
totalItems:
|
|
155
|
+
totalItems: H,
|
|
156
156
|
page: C,
|
|
157
157
|
onPageChange: q
|
|
158
158
|
}
|
|
@@ -163,7 +163,7 @@ const _e = [
|
|
|
163
163
|
id: "modalIdForActionAreaLayout",
|
|
164
164
|
portalId: "main-display-area",
|
|
165
165
|
open: s,
|
|
166
|
-
onRequestClose:
|
|
166
|
+
onRequestClose: V,
|
|
167
167
|
modalHeading: o.documentIdentifier,
|
|
168
168
|
passiveModal: !0,
|
|
169
169
|
size: "lg",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as s, jsxs as J, Fragment as W } from "react/jsx-runtime";
|
|
2
|
-
import { u as Z, t as ee, g as re,
|
|
2
|
+
import { u as Z, t as ee, g as re, V as ae, E as te, y as oe, v as se, B as ne, a as U, d as de, N as ie, o as S, Q as me, X as ue, l as le, b as ce, w as fe } from "./index-BiauV7w9.js";
|
|
3
3
|
import { useQueryClient as ye, useQuery as c } from "@tanstack/react-query";
|
|
4
4
|
import { useState as q, useMemo as d, useCallback as f } from "react";
|
|
5
5
|
const be = "_formsTableBody_81hra_1", ge = "_customAccordianItem_81hra_6", I = {
|
|
@@ -12,18 +12,18 @@ const be = "_formsTableBody_81hra_1", ge = "_customAccordianItem_81hra_6", I = {
|
|
|
12
12
|
encounterUuids: n,
|
|
13
13
|
config: C
|
|
14
14
|
}) => {
|
|
15
|
-
const { t: o } = Z(), u = ee(), [l, O] = q(!1), [t, A] = q(null), { numberOfVisits:
|
|
15
|
+
const { t: o } = Z(), u = ee(), [l, O] = q(!1), [t, A] = q(null), { numberOfVisits: V, hideThumbnail: k = !1 } = C ?? {}, B = re(
|
|
16
16
|
m,
|
|
17
17
|
n
|
|
18
|
-
),
|
|
18
|
+
), w = ye(), {
|
|
19
19
|
data: y = [],
|
|
20
20
|
isLoading: E,
|
|
21
21
|
isError: T,
|
|
22
|
-
error:
|
|
23
|
-
refetch:
|
|
22
|
+
error: H,
|
|
23
|
+
refetch: K
|
|
24
24
|
} = c({
|
|
25
25
|
queryKey: ["forms", u, m],
|
|
26
|
-
queryFn: () => ae(u, void 0,
|
|
26
|
+
queryFn: () => ae(u, void 0, V),
|
|
27
27
|
enabled: !!u && !B
|
|
28
28
|
}), F = d(() => !n || n.length === 0 ? y : y.filter(
|
|
29
29
|
(e) => n.includes(e.encounterUuid)
|
|
@@ -37,8 +37,8 @@ const be = "_formsTableBody_81hra_1", ge = "_customAccordianItem_81hra_6", I = {
|
|
|
37
37
|
if (t)
|
|
38
38
|
return v(t.formName);
|
|
39
39
|
}, [t, v]), {
|
|
40
|
-
isLoading:
|
|
41
|
-
isError:
|
|
40
|
+
isLoading: Q,
|
|
41
|
+
isError: j,
|
|
42
42
|
error: g
|
|
43
43
|
} = c({
|
|
44
44
|
queryKey: ["formMetadata", b],
|
|
@@ -46,8 +46,8 @@ const be = "_formsTableBody_81hra_1", ge = "_customAccordianItem_81hra_6", I = {
|
|
|
46
46
|
enabled: !!b && l
|
|
47
47
|
}), {
|
|
48
48
|
data: p,
|
|
49
|
-
isLoading:
|
|
50
|
-
isError:
|
|
49
|
+
isLoading: x,
|
|
50
|
+
isError: $,
|
|
51
51
|
error: N
|
|
52
52
|
} = c({
|
|
53
53
|
queryKey: ["formsEncounterFHIR", t?.encounterUuid],
|
|
@@ -56,7 +56,7 @@ const be = "_formsTableBody_81hra_1", ge = "_customAccordianItem_81hra_6", I = {
|
|
|
56
56
|
});
|
|
57
57
|
ne(
|
|
58
58
|
(e) => {
|
|
59
|
-
e.patientUUID === u && e.updatedConcepts.size > 0 && (
|
|
59
|
+
e.patientUUID === u && e.updatedConcepts.size > 0 && (K(), w.invalidateQueries({ queryKey: ["formsEncounterFHIR"] }));
|
|
60
60
|
},
|
|
61
61
|
[u]
|
|
62
62
|
);
|
|
@@ -130,7 +130,7 @@ const be = "_formsTableBody_81hra_1", ge = "_customAccordianItem_81hra_6", I = {
|
|
|
130
130
|
ariaLabel: o("FORMS_HEADING"),
|
|
131
131
|
rows: [],
|
|
132
132
|
loading: E,
|
|
133
|
-
errorStateMessage: T ?
|
|
133
|
+
errorStateMessage: T ? H?.message : void 0,
|
|
134
134
|
emptyStateMessage: o("FORMS_UNAVAILABLE"),
|
|
135
135
|
renderCell: R,
|
|
136
136
|
className: I.formsTableBody,
|
|
@@ -180,12 +180,12 @@ const be = "_formsTableBody_81hra_1", ge = "_customAccordianItem_81hra_6", I = {
|
|
|
180
180
|
ce,
|
|
181
181
|
{
|
|
182
182
|
observations: z,
|
|
183
|
-
isLoading:
|
|
184
|
-
isError:
|
|
183
|
+
isLoading: Q || x,
|
|
184
|
+
isError: j || $,
|
|
185
185
|
errorMessage: G,
|
|
186
186
|
emptyStateMessage: o("NO_FORM_DATA_AVAILABLE"),
|
|
187
187
|
testIdPrefix: t.formName,
|
|
188
|
-
hideThumbnail:
|
|
188
|
+
hideThumbnail: k
|
|
189
189
|
}
|
|
190
190
|
)
|
|
191
191
|
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { c, T as l, P as m, a as u, D as v, Q as i } from "./YPM2AS64-
|
|
2
|
-
import {
|
|
3
|
-
var
|
|
1
|
+
import { c, T as l, P as m, a as u, D as v, Q as i } from "./YPM2AS64-CQDsK6oR.js";
|
|
2
|
+
import { j as d, k as f, n as e } from "./index-BiauV7w9.js";
|
|
3
|
+
var p = (a) => {
|
|
4
4
|
const [r, t] = c({
|
|
5
5
|
prefix: "TanstackQueryDevtools"
|
|
6
|
-
}), n =
|
|
6
|
+
}), n = d(), s = f(() => {
|
|
7
7
|
const o = r.theme_preference || l;
|
|
8
8
|
return o !== "system" ? o : n();
|
|
9
9
|
});
|
|
@@ -27,7 +27,7 @@ var f = (a) => {
|
|
|
27
27
|
});
|
|
28
28
|
}
|
|
29
29
|
});
|
|
30
|
-
}, C =
|
|
30
|
+
}, C = p;
|
|
31
31
|
export {
|
|
32
32
|
C as default
|
|
33
33
|
};
|
|
@@ -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 {
|
|
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-CQDsK6oR.js";
|
|
2
|
+
import { j as v, k as C, n as e } from "./index-BiauV7w9.js";
|
|
3
3
|
var h = (t) => {
|
|
4
4
|
const [r, o] = s({
|
|
5
5
|
prefix: "TanstackQueryDevtools"
|
|
@@ -36,7 +36,7 @@ var h = (t) => {
|
|
|
36
36
|
});
|
|
37
37
|
}
|
|
38
38
|
});
|
|
39
|
-
},
|
|
39
|
+
}, p = h;
|
|
40
40
|
export {
|
|
41
|
-
|
|
41
|
+
p as default
|
|
42
42
|
};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { jsxs as N, jsx as u } from "react/jsx-runtime";
|
|
2
|
-
import { t as k, r as
|
|
2
|
+
import { t as k, r as x, u as S, m as K, c as Q, B as Y, z as w, A as z, _ as G, Y as H, o as M, x as j, J as F, e as J, f as P, F as W, h as X, T as Z, i as ee } from "./index-BiauV7w9.js";
|
|
3
3
|
import { useQueries as te, useQuery as ae } from "@tanstack/react-query";
|
|
4
4
|
import { useRef as se, useEffect as $, useMemo as T } from "react";
|
|
5
5
|
const A = (t, n, d, l, b, r) => {
|
|
6
|
-
const a =
|
|
6
|
+
const a = J(t, n, b), s = a.value, i = P(s);
|
|
7
7
|
let o = s;
|
|
8
8
|
i === "Image" && (o = /* @__PURE__ */ u(
|
|
9
9
|
X,
|
|
@@ -60,7 +60,7 @@ const A = (t, n, d, l, b, r) => {
|
|
|
60
60
|
hideThumbnail: d
|
|
61
61
|
}) => {
|
|
62
62
|
const { t: l } = S(), b = (r, a, s) => {
|
|
63
|
-
const i =
|
|
63
|
+
const i = j(r.encounterDetails, l);
|
|
64
64
|
return /* @__PURE__ */ N(
|
|
65
65
|
F,
|
|
66
66
|
{
|
|
@@ -113,10 +113,10 @@ const A = (t, 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()), a = k(), { addNotification: s } =
|
|
116
|
+
} = n, r = se(/* @__PURE__ */ new Set()), a = k(), { addNotification: s } = x(), { t: i } = S(), o = te({
|
|
117
117
|
queries: d.map((e) => ({
|
|
118
118
|
queryKey: de(e),
|
|
119
|
-
queryFn: () =>
|
|
119
|
+
queryFn: () => K(e),
|
|
120
120
|
enabled: !!e
|
|
121
121
|
}))
|
|
122
122
|
});
|
|
@@ -139,10 +139,10 @@ const A = (t, n, d, l, b, r) => {
|
|
|
139
139
|
refetch: R
|
|
140
140
|
} = ae({
|
|
141
141
|
queryKey: le(a, p),
|
|
142
|
-
queryFn: () =>
|
|
142
|
+
queryFn: () => Q(a, p),
|
|
143
143
|
enabled: !!a && p.length > 0 && y
|
|
144
144
|
});
|
|
145
|
-
|
|
145
|
+
Y(
|
|
146
146
|
(e) => {
|
|
147
147
|
e.patientUUID === a && e.updatedConcepts.size > 0 && [...e.updatedConcepts.keys()].some(
|
|
148
148
|
(h) => p.includes(h)
|
|
@@ -158,13 +158,13 @@ const A = (t, n, d, l, b, r) => {
|
|
|
158
158
|
}, [f]);
|
|
159
159
|
const g = T(() => {
|
|
160
160
|
if (!c) return [];
|
|
161
|
-
const e =
|
|
162
|
-
return
|
|
161
|
+
const e = w(c), h = z(e);
|
|
162
|
+
return G(h);
|
|
163
163
|
}, [c]), D = [
|
|
164
164
|
{ key: "name", header: "name" },
|
|
165
165
|
{ key: "value", header: "value" },
|
|
166
166
|
{ key: "form", header: "form" }
|
|
167
|
-
],
|
|
167
|
+
], _ = U || !y, O = f && y, B = (!c || c.entry?.length === 0 || p.length === 0) && y, L = O ? i("ERROR_FETCHING_OBSERVATIONS") : null, q = B ? i("NO_OBSERVATIONS_FOUND") : void 0, C = g.length > 0 && !_ && !O, E = n.titleTranslationKey, v = E ? i(E) : "";
|
|
168
168
|
return /* @__PURE__ */ N(
|
|
169
169
|
"div",
|
|
170
170
|
{
|
|
@@ -174,7 +174,7 @@ const A = (t, n, d, l, b, r) => {
|
|
|
174
174
|
className: I.observations,
|
|
175
175
|
children: [
|
|
176
176
|
/* @__PURE__ */ u(
|
|
177
|
-
|
|
177
|
+
H,
|
|
178
178
|
{
|
|
179
179
|
id: "observations-title",
|
|
180
180
|
testId: E ? `observations-title-${v}` : "observations-title",
|
|
@@ -191,12 +191,12 @@ const A = (t, n, d, l, b, r) => {
|
|
|
191
191
|
hideThumbnail: b
|
|
192
192
|
}
|
|
193
193
|
) : /* @__PURE__ */ u(
|
|
194
|
-
|
|
194
|
+
M,
|
|
195
195
|
{
|
|
196
196
|
headers: D,
|
|
197
197
|
rows: [],
|
|
198
198
|
ariaLabel: i("OBSERVATIONS"),
|
|
199
|
-
loading:
|
|
199
|
+
loading: _,
|
|
200
200
|
errorStateMessage: L,
|
|
201
201
|
emptyStateMessage: q,
|
|
202
202
|
dataTestId: "observations-table"
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { p as we, q as z, s as xt, C as B, k as q, n as y, P as Ro, D as ye, S as R, G as _, I as k, K as N, L as A, M as bs, O as ir, R as $e, U, W as Hn, Z as Vn, $ as dt, a0 as D, a1 as xs, a2 as cn, a3 as Be, a4 as ws, a5 as qt, a6 as zt, a7 as $s, a8 as Cs, a9 as $n, aa as Ss, ab as Nr, ac as Bt, ad as zo, ae as ks, af as Es, ag as j, ah as Ur, ai as Ms, aj as Ds, ak as sr, al as As, am as Ts, an as zn, ao as Fs, ap as Is, aq as Z, ar as Ps, as as Ls } from "./index-BiauV7w9.js";
|
|
2
2
|
var Os = (e) => e != null, qs = (e) => e.filter(Os);
|
|
3
3
|
function _s(e) {
|
|
4
4
|
return (...t) => {
|