@bahmni/registration-app 0.0.1-dev.221 → 0.0.1-dev.223
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-BZHe_sb0-C2zG0GwF.js → DocumentsTable-itmbz5Wi-UlYQjHrV.js} +2 -2
- package/dist/{FormsTable-BztxQbBL-CLxpjuZi.js → FormsTable-CGFieZJf-DW6qmt2G.js} +35 -35
- package/dist/{LNWAZHJI-DXQQ0dPM.js → LNWAZHJI-CZj4pOAA.js} +2 -2
- package/dist/{MWZ6AO7Z-rDk_b_dN.js → MWZ6AO7Z-DZiKsZBA.js} +2 -2
- package/dist/{Observations-Cnt-RGWx-11A1fxdA.js → Observations-DCRioZtt-BWgySmT1.js} +4 -4
- package/dist/{YPM2AS64-DHZ5z7U1.js → YPM2AS64-DOZzntnb.js} +1 -1
- package/dist/{index-Mm75tbmR.js → index-C2LD-Ven.js} +8 -11
- package/dist/index.css +1 -1
- 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
|
|
2
|
+
import { t as W, u as K, r as Q, a as J, M as X, N as Z, o as ee, s as te } from "./index-C2LD-Ven.js";
|
|
3
3
|
import { useQuery as ae } from "@tanstack/react-query";
|
|
4
4
|
import { useState as m, 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", me = "_documentImage_1voj8_50", d = {
|
|
@@ -38,7 +38,7 @@ const _e = [
|
|
|
38
38
|
null
|
|
39
39
|
), [R, I] = m(
|
|
40
40
|
/* @__PURE__ */ new Set()
|
|
41
|
-
), E =
|
|
41
|
+
), E = W(), { t: n } = K(), { addNotification: L } = Q(), $ = Number(a?.pageSize) || 5, [C, A] = m(1), [l, k] = m($), [V, y] = m(void 0), U = h((e) => {
|
|
42
42
|
M(e), w(!0);
|
|
43
43
|
}, []), F = h(() => {
|
|
44
44
|
w(!1), M(null), I(/* @__PURE__ */ new Set());
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import { jsx as s, jsxs as Y, Fragment as Z } from "react/jsx-runtime";
|
|
2
|
-
import { u as W, t as ee, m as re, b as ae, X as te, e as oe, Q as se, k as ne, V as U, N as de, M as ie, o as
|
|
2
|
+
import { u as W, t as ee, m as re, b as ae, X as te, e as oe, Q as se, k as ne, V as U, N as de, M as ie, o as C, G as me, J as ue, s as le, Z as ce, c as fe } from "./index-C2LD-Ven.js";
|
|
3
3
|
import { useQueryClient as ye, useQuery as c } from "@tanstack/react-query";
|
|
4
|
-
import { useState as
|
|
5
|
-
const be = "_formsTableBody_81hra_1",
|
|
4
|
+
import { useState as S, useMemo as d, useCallback as f } from "react";
|
|
5
|
+
const be = "_formsTableBody_81hra_1", pe = "_customAccordianItem_81hra_6", O = {
|
|
6
6
|
formsTableBody: be,
|
|
7
|
-
customAccordianItem:
|
|
8
|
-
},
|
|
7
|
+
customAccordianItem: pe
|
|
8
|
+
}, Ne = (m) => m ? m.extension?.find(
|
|
9
9
|
(n) => n.url === fe
|
|
10
|
-
)?.valueString : void 0,
|
|
10
|
+
)?.valueString : void 0, Ie = ({
|
|
11
11
|
episodeOfCareUuids: m,
|
|
12
12
|
encounterUuids: n,
|
|
13
|
-
config:
|
|
13
|
+
config: q
|
|
14
14
|
}) => {
|
|
15
|
-
const { t: o } = W(), u = ee(), [l,
|
|
15
|
+
const { t: o } = W(), u = ee(), [l, A] = S(!1), [t, I] = S(null), { numberOfVisits: k, hideThumbnail: V = !1 } = q ?? {}, M = re(
|
|
16
16
|
m,
|
|
17
17
|
n
|
|
18
18
|
), G = ye(), {
|
|
@@ -27,25 +27,25 @@ const be = "_formsTableBody_81hra_1", Ne = "_customAccordianItem_81hra_6", I = {
|
|
|
27
27
|
enabled: !!u && !M
|
|
28
28
|
}), E = d(() => !n || n.length === 0 ? y : y.filter(
|
|
29
29
|
(e) => n.includes(e.encounterUuid)
|
|
30
|
-
), [y, n]), { data:
|
|
30
|
+
), [y, n]), { data: _ = [] } = c({
|
|
31
31
|
queryKey: ["observationForms"],
|
|
32
32
|
queryFn: () => te()
|
|
33
|
-
}),
|
|
34
|
-
(e) =>
|
|
35
|
-
[
|
|
33
|
+
}), D = f(
|
|
34
|
+
(e) => _.find((r) => r.name === e)?.uuid,
|
|
35
|
+
[_]
|
|
36
36
|
), b = d(() => {
|
|
37
37
|
if (t)
|
|
38
|
-
return
|
|
39
|
-
}, [t,
|
|
38
|
+
return D(t.formName);
|
|
39
|
+
}, [t, D]), {
|
|
40
40
|
isLoading: Q,
|
|
41
41
|
isError: j,
|
|
42
|
-
error:
|
|
42
|
+
error: p
|
|
43
43
|
} = c({
|
|
44
44
|
queryKey: ["formMetadata", b],
|
|
45
45
|
queryFn: () => oe(b),
|
|
46
46
|
enabled: !!b && l
|
|
47
47
|
}), {
|
|
48
|
-
data:
|
|
48
|
+
data: N,
|
|
49
49
|
isLoading: x,
|
|
50
50
|
isError: $,
|
|
51
51
|
error: g
|
|
@@ -60,15 +60,15 @@ const be = "_formsTableBody_81hra_1", Ne = "_customAccordianItem_81hra_6", I = {
|
|
|
60
60
|
},
|
|
61
61
|
[u]
|
|
62
62
|
);
|
|
63
|
-
const w = d(() => !
|
|
64
|
-
const r =
|
|
63
|
+
const w = d(() => !N?.entry || !t?.formName ? [] : N.entry.filter((e) => e.resource?.resourceType === "Observation").map((e) => e.resource).filter((e) => {
|
|
64
|
+
const r = Ne(e);
|
|
65
65
|
return !r || r.includes(t.formName);
|
|
66
|
-
}), [
|
|
67
|
-
if (
|
|
68
|
-
return U(
|
|
66
|
+
}), [N, t?.formName]), z = d(() => {
|
|
67
|
+
if (p)
|
|
68
|
+
return U(p).message;
|
|
69
69
|
if (g)
|
|
70
70
|
return U(g).message;
|
|
71
|
-
}, [
|
|
71
|
+
}, [p, g]), F = d(
|
|
72
72
|
() => [
|
|
73
73
|
{ key: "recordedOn", header: o("RECORDED_ON") },
|
|
74
74
|
{ key: "recordedBy", header: o("RECORDED_BY") }
|
|
@@ -80,7 +80,7 @@ const be = "_formsTableBody_81hra_1", Ne = "_customAccordianItem_81hra_6", I = {
|
|
|
80
80
|
{ key: "recordedBy", sortable: !0 }
|
|
81
81
|
],
|
|
82
82
|
[]
|
|
83
|
-
),
|
|
83
|
+
), L = d(() => {
|
|
84
84
|
const e = E.reduce(
|
|
85
85
|
(r, a) => {
|
|
86
86
|
const i = a.formName;
|
|
@@ -106,9 +106,9 @@ const be = "_formsTableBody_81hra_1", Ne = "_customAccordianItem_81hra_6", I = {
|
|
|
106
106
|
})
|
|
107
107
|
).sort((r, a) => r.formName.localeCompare(a.formName));
|
|
108
108
|
}, [E, o]), R = f((e) => {
|
|
109
|
-
|
|
109
|
+
I(e), A(!0);
|
|
110
110
|
}, []), P = f(() => {
|
|
111
|
-
|
|
111
|
+
A(!1), I(null);
|
|
112
112
|
}, []), v = f(
|
|
113
113
|
(e, r) => {
|
|
114
114
|
switch (r) {
|
|
@@ -123,32 +123,32 @@ const be = "_formsTableBody_81hra_1", Ne = "_customAccordianItem_81hra_6", I = {
|
|
|
123
123
|
[R]
|
|
124
124
|
);
|
|
125
125
|
return /* @__PURE__ */ Y(Z, { children: [
|
|
126
|
-
/* @__PURE__ */ s("div", { "data-testid": "forms-table", children: T || B ||
|
|
127
|
-
|
|
126
|
+
/* @__PURE__ */ s("div", { "data-testid": "forms-table", children: T || B || L.length === 0 || M ? /* @__PURE__ */ s(
|
|
127
|
+
C,
|
|
128
128
|
{
|
|
129
|
-
headers:
|
|
129
|
+
headers: F,
|
|
130
130
|
ariaLabel: o("FORMS_HEADING"),
|
|
131
131
|
rows: [],
|
|
132
132
|
loading: T,
|
|
133
133
|
errorStateMessage: B ? H?.message : void 0,
|
|
134
134
|
emptyStateMessage: o("FORMS_UNAVAILABLE"),
|
|
135
135
|
renderCell: v,
|
|
136
|
-
className:
|
|
136
|
+
className: O.formsTableBody,
|
|
137
137
|
dataTestId: "forms-table"
|
|
138
138
|
}
|
|
139
|
-
) : /* @__PURE__ */ s(me, { align: "start", children:
|
|
139
|
+
) : /* @__PURE__ */ s(me, { align: "start", children: L.map((e, r) => {
|
|
140
140
|
const { formName: a, records: i } = e;
|
|
141
141
|
return /* @__PURE__ */ s(
|
|
142
142
|
ue,
|
|
143
143
|
{
|
|
144
144
|
title: a,
|
|
145
|
-
className:
|
|
145
|
+
className: O.customAccordianItem,
|
|
146
146
|
testId: `accordian-title-${a}`,
|
|
147
147
|
open: r === 0,
|
|
148
148
|
children: /* @__PURE__ */ s(
|
|
149
|
-
|
|
149
|
+
C,
|
|
150
150
|
{
|
|
151
|
-
headers:
|
|
151
|
+
headers: F,
|
|
152
152
|
ariaLabel: o("FORMS_HEADING"),
|
|
153
153
|
rows: i,
|
|
154
154
|
loading: !1,
|
|
@@ -156,7 +156,7 @@ const be = "_formsTableBody_81hra_1", Ne = "_customAccordianItem_81hra_6", I = {
|
|
|
156
156
|
sortable: J,
|
|
157
157
|
emptyStateMessage: o("FORMS_UNAVAILABLE"),
|
|
158
158
|
renderCell: v,
|
|
159
|
-
className:
|
|
159
|
+
className: O.formsTableBody,
|
|
160
160
|
dataTestId: `forms-table-${a}`
|
|
161
161
|
}
|
|
162
162
|
)
|
|
@@ -193,5 +193,5 @@ const be = "_formsTableBody_81hra_1", Ne = "_customAccordianItem_81hra_6", I = {
|
|
|
193
193
|
] });
|
|
194
194
|
};
|
|
195
195
|
export {
|
|
196
|
-
|
|
196
|
+
Ie as default
|
|
197
197
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { c, T as l, P as m, a as u, D as v, Q as i } from "./YPM2AS64-
|
|
2
|
-
import { w as d, x as f, y as e } from "./index-
|
|
1
|
+
import { c, T as l, P as m, a as u, D as v, Q as i } from "./YPM2AS64-DOZzntnb.js";
|
|
2
|
+
import { w as d, x as f, y as e } from "./index-C2LD-Ven.js";
|
|
3
3
|
var p = (a) => {
|
|
4
4
|
const [r, t] = c({
|
|
5
5
|
prefix: "TanstackQueryDevtools"
|
|
@@ -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 { w as v, x as C, y 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-DOZzntnb.js";
|
|
2
|
+
import { w as v, x as C, y as e } from "./index-C2LD-Ven.js";
|
|
3
3
|
var h = (t) => {
|
|
4
4
|
const [r, o] = s({
|
|
5
5
|
prefix: "TanstackQueryDevtools"
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsxs as N, jsx as u } from "react/jsx-runtime";
|
|
2
|
-
import { t as
|
|
2
|
+
import { t as K, r as V, u as S, Y as G, d as M, k as Q, f as j, l as w, g as x, h as H, o as Y, i as P, O as U, j as z, n as J, I as W, p as X, q as Z, v as ee } from "./index-C2LD-Ven.js";
|
|
3
3
|
import { useQueries as ae, useQuery as te } from "@tanstack/react-query";
|
|
4
4
|
import { useRef as se, useEffect as $, useMemo as f } from "react";
|
|
5
5
|
const D = (a, n, d, l, b, r) => {
|
|
@@ -113,7 +113,7 @@ const D = (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 } = V(), { t: i } = S(), o = ae({
|
|
117
117
|
queries: d.map((e) => ({
|
|
118
118
|
queryKey: de(e),
|
|
119
119
|
queryFn: () => G(e),
|
|
@@ -123,10 +123,10 @@ const D = (a, n, d, l, b, r) => {
|
|
|
123
123
|
$(() => {
|
|
124
124
|
o.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: i("ERROR_DEFAULT_TITLE"),
|
|
129
|
-
message: i("ERROR_FETCHING_CONCEPT", { conceptName:
|
|
129
|
+
message: i("ERROR_FETCHING_CONCEPT", { conceptName: B }),
|
|
130
130
|
type: "error"
|
|
131
131
|
}), r.current.add(h);
|
|
132
132
|
} else e.isError || r.current.delete(h);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { z as we, A as z, B as xt, C as B, x as q, y, P as Ro, D as ye, S as R, E as _, F as k, H as N, K as A, L as bs, R as ir, T as $e, U, W as Hn, _ 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-
|
|
1
|
+
import { z as we, A as z, B as xt, C as B, x as q, y, P as Ro, D as ye, S as R, E as _, F as k, H as N, K as A, L as bs, R as ir, T as $e, U, W as Hn, _ 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-C2LD-Ven.js";
|
|
2
2
|
var Os = (e) => e != null, qs = (e) => e.filter(Os);
|
|
3
3
|
function _s(e) {
|
|
4
4
|
return (...t) => {
|
|
@@ -159279,12 +159279,12 @@ const m$0 = ({ config: t }) => {
|
|
|
159279
159279
|
}, g$0 = (t) => {
|
|
159280
159280
|
const { userPrivileges: e } = TM();
|
|
159281
159281
|
return rC0(e, t);
|
|
159282
|
-
}, v$0 = "
|
|
159282
|
+
}, v$0 = "_widget_10hzg_1", E$0 = "_header_10hzg_5", M$0 = "_code_10hzg_27", y$0 = "_expandedRowContent_10hzg_34", Ei = {
|
|
159283
159283
|
widget: v$0,
|
|
159284
159284
|
header: E$0,
|
|
159285
159285
|
code: M$0,
|
|
159286
159286
|
expandedRowContent: y$0
|
|
159287
|
-
}, V$0 = "http://fhir.bahmni.org/ext/immunization/administeredProduct", qR1 = "
|
|
159287
|
+
}, V$0 = "http://fhir.bahmni.org/ext/immunization/administeredProduct", qR1 = "EP", z$0 = "OP", H$0 = "Add Immunizations";
|
|
159288
159288
|
function Uf(t, e) {
|
|
159289
159289
|
return t.performer?.find(
|
|
159290
159290
|
(r) => r.function?.coding?.some((o) => o.code === e)
|
|
@@ -159298,10 +159298,7 @@ function x$0(t) {
|
|
|
159298
159298
|
return e ? e.toString() : null;
|
|
159299
159299
|
}
|
|
159300
159300
|
function N$0(t) {
|
|
159301
|
-
const e = t.route?.coding?.[0]?.display ?? null, r = t.site?.coding?.[0]?.display ?? null, o = t.manufacturer?.display ?? null, a = t.lotNumber ?? null, c = Uf(
|
|
159302
|
-
t,
|
|
159303
|
-
qR1
|
|
159304
|
-
), i = Uf(t, z$0), l = t.note?.[0]?.text ?? null;
|
|
159301
|
+
const e = t.route?.coding?.[0]?.display ?? null, r = t.site?.coding?.[0]?.display ?? null, o = t.manufacturer?.display ?? null, a = t.lotNumber ?? null, c = Uf(t, qR1), i = Uf(t, z$0), l = t.note?.[0]?.text ?? null;
|
|
159305
159302
|
return {
|
|
159306
159303
|
id: t.id ?? "",
|
|
159307
159304
|
code: t.vaccineCode?.coding?.[0]?.display ?? null,
|
|
@@ -159342,7 +159339,7 @@ const L$0 = [
|
|
|
159342
159339
|
});
|
|
159343
159340
|
mn(
|
|
159344
159341
|
(d) => {
|
|
159345
|
-
d.patientUUID === t && d.updatedResources.
|
|
159342
|
+
d.patientUUID === t && d.updatedResources.immunizationHistory && c();
|
|
159346
159343
|
},
|
|
159347
159344
|
[t, c]
|
|
159348
159345
|
);
|
|
@@ -159467,7 +159464,7 @@ const L$0 = [
|
|
|
159467
159464
|
});
|
|
159468
159465
|
mn(
|
|
159469
159466
|
(s) => {
|
|
159470
|
-
s.patientUUID === t && s.updatedResources.
|
|
159467
|
+
s.patientUUID === t && s.updatedResources.immunizationHistory && c();
|
|
159471
159468
|
},
|
|
159472
159469
|
[t, c]
|
|
159473
159470
|
);
|
|
@@ -159721,7 +159718,7 @@ function Z$0(t, e, r) {
|
|
|
159721
159718
|
return o;
|
|
159722
159719
|
};
|
|
159723
159720
|
}
|
|
159724
|
-
ht(() => Promise.resolve().then(() => rL0)), ht(() => Promise.resolve().then(() => LL0)), ht(() => Promise.resolve().then(() => aA0)), ht(() => Promise.resolve().then(() => hA0)), ht(() => import("./DocumentsTable-
|
|
159721
|
+
ht(() => Promise.resolve().then(() => rL0)), ht(() => Promise.resolve().then(() => LL0)), ht(() => Promise.resolve().then(() => aA0)), ht(() => Promise.resolve().then(() => hA0)), ht(() => import("./DocumentsTable-itmbz5Wi-UlYQjHrV.js")), ht(() => Promise.resolve().then(() => XT0)), ht(() => import("./FormsTable-CGFieZJf-DW6qmt2G.js")), ht(() => Promise.resolve().then(() => bT0)), ht(() => import("./Observations-DCRioZtt-BWgySmT1.js")), ht(
|
|
159725
159722
|
() => Promise.resolve().then(() => l$0)
|
|
159726
159723
|
), ht(
|
|
159727
159724
|
() => Promise.resolve().then(() => W_0)
|
|
@@ -161560,7 +161557,7 @@ var bj0 = (t, e = !1) => {
|
|
|
161560
161557
|
const e = sS1(() => {
|
|
161561
161558
|
const r = this, [o] = this.#n, [a] = this.#o, [c] = this.#a, [i] = this.#c, [l] = this.#p, [s] = this.#t;
|
|
161562
161559
|
let d;
|
|
161563
|
-
return this.#i ? d = this.#i : (d = iS1(() => import("./LNWAZHJI-
|
|
161560
|
+
return this.#i ? d = this.#i : (d = iS1(() => import("./LNWAZHJI-CZj4pOAA.js")), this.#i = d), CS1(this.#h, this.#r), aS1(d, cS1({
|
|
161564
161561
|
get queryFlavor() {
|
|
161565
161562
|
return r.#d;
|
|
161566
161563
|
},
|
|
@@ -161658,7 +161655,7 @@ var bj0 = (t, e = !1) => {
|
|
|
161658
161655
|
const e = sS1(() => {
|
|
161659
161656
|
const r = this, [o] = this.#n, [a] = this.#o, [c] = this.#a, [i] = this.#c, [l] = this.#p, [s] = this.#t, [d] = this.#i;
|
|
161660
161657
|
let u;
|
|
161661
|
-
return this.#l ? u = this.#l : (u = iS1(() => import("./MWZ6AO7Z-
|
|
161658
|
+
return this.#l ? u = this.#l : (u = iS1(() => import("./MWZ6AO7Z-DZiKsZBA.js")), this.#l = u), CS1(this.#h, this.#r), aS1(u, cS1({
|
|
161662
161659
|
get queryFlavor() {
|
|
161663
161660
|
return r.#d;
|
|
161664
161661
|
},
|