@bahmni/registration-app 0.0.1-dev.328 → 0.0.1-dev.329
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-Cd0rZQF3-B1_exM1T.js → DocumentsTable-y7KKSEft-C1K8j8eP.js} +4 -4
- package/dist/{FormsTable-CgyxKp9V-72xzeyqT.js → FormsTable-DWjxOeF0-CxE8Os6f.js} +29 -29
- package/dist/{LNWAZHJI-gBe42kJl.js → LNWAZHJI-Dw9KXobi.js} +2 -2
- package/dist/{MWZ6AO7Z-BAMghvKM.js → MWZ6AO7Z-BkM3NYWY.js} +2 -2
- package/dist/{Observations-3VgJK5Ks-MRiCDQ-V.js → Observations-BVrVtdFC-C9--mu7K.js} +1 -1
- package/dist/{YPM2AS64-C_mZVuOB.js → YPM2AS64-tjQ1P5CC.js} +1 -1
- package/dist/{index-Cxm9I49_.js → index-ua-STquW.js} +3 -3
- package/dist/index.js +1 -1
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { jsx as r, jsxs as p, Fragment as
|
|
2
|
-
import { n as
|
|
1
|
+
import { jsx as r, jsxs as p, Fragment as G } from "react/jsx-runtime";
|
|
2
|
+
import { n as Q, u as W, o as Y, w as J, f as X, g as Z, O as ee, p as te } from "./index-ua-STquW.js";
|
|
3
3
|
import { useQuery as ae } from "@tanstack/react-query";
|
|
4
4
|
import { useState as l, useCallback as h, useEffect as N, useMemo as _ } from "react";
|
|
5
5
|
const ne = "DocumentsTable-module_documentsTableBody__6iR3w", oe = "DocumentsTable-module_viewAttachmentsLink__aQ1on", re = "DocumentsTable-module_documentViewerContainer__F5m8D", de = "DocumentsTable-module_attachmentItem__17KA7", se = "DocumentsTable-module_attachmentCounter__WFiI3", me = "DocumentsTable-module_attachmentError__RI4U2", ce = "DocumentsTable-module_documentIframe__ptq5I", le = "DocumentsTable-module_documentImage__KQVgS", d = {
|
|
@@ -38,7 +38,7 @@ const Te = [
|
|
|
38
38
|
null
|
|
39
39
|
), [$, D] = l(
|
|
40
40
|
/* @__PURE__ */ new Set()
|
|
41
|
-
), E =
|
|
41
|
+
), E = Q(), { t: n } = W(), { addNotification: L } = Y(), k = Number(a?.pageSize) || 5, [I, C] = l(1), [u, V] = l(k), [F, A] = l(void 0), M = h((e) => {
|
|
42
42
|
U(e), w(!0);
|
|
43
43
|
}, []), H = h(() => {
|
|
44
44
|
w(!1), U(null), D(/* @__PURE__ */ new Set());
|
|
@@ -137,7 +137,7 @@ const Te = [
|
|
|
137
137
|
},
|
|
138
138
|
[M, n]
|
|
139
139
|
);
|
|
140
|
-
return /* @__PURE__ */ p(
|
|
140
|
+
return /* @__PURE__ */ p(G, { children: [
|
|
141
141
|
/* @__PURE__ */ r("div", { "data-testid": "documents-table", children: /* @__PURE__ */ r(
|
|
142
142
|
ee,
|
|
143
143
|
{
|
|
@@ -1,42 +1,42 @@
|
|
|
1
1
|
import { jsx as i, jsxs as re, Fragment as ae } from "react/jsx-runtime";
|
|
2
|
-
import { u as te, n as oe, N as se, a as ne, e as de, m as ie, b as le, j as me, D as q, g as ue, f as ce, O as x, v as fe, E as ye, p as be, c as pe, d as ge } from "./index-
|
|
2
|
+
import { u as te, n as oe, N as se, a as ne, e as de, m as ie, b as le, j as me, D as q, g as ue, f as ce, O as x, v as fe, E as ye, p as be, c as pe, d as ge } from "./index-ua-STquW.js";
|
|
3
3
|
import { useQueryClient as he, useQuery as b } from "@tanstack/react-query";
|
|
4
4
|
import { useState as j, useMemo as d, useCallback as p } from "react";
|
|
5
|
-
const Ne = "FormsTable-module_formsTableBody__SvGha", Oe = "FormsTable-module_customAccordianItem__isszs",
|
|
5
|
+
const Ne = "FormsTable-module_formsTableBody__SvGha", Oe = "FormsTable-module_customAccordianItem__isszs", E = {
|
|
6
6
|
formsTableBody: Ne,
|
|
7
7
|
customAccordianItem: Oe
|
|
8
8
|
}, Ae = (u) => u ? u.extension?.find(
|
|
9
9
|
(l) => l.url === ge
|
|
10
|
-
)?.valueString : void 0,
|
|
10
|
+
)?.valueString : void 0, Fe = ({
|
|
11
11
|
episodeOfCareUuids: u,
|
|
12
12
|
encounterUuids: l,
|
|
13
13
|
config: k
|
|
14
14
|
}) => {
|
|
15
|
-
const { t: n } = te(), c = oe(), [f,
|
|
15
|
+
const { t: n } = te(), c = oe(), [f, T] = j(!1), [o, v] = j(null), {
|
|
16
16
|
numberOfVisits: w,
|
|
17
17
|
hideThumbnail: H = !1,
|
|
18
18
|
forms: y
|
|
19
|
-
} = k ?? {},
|
|
19
|
+
} = k ?? {}, I = se(
|
|
20
20
|
u,
|
|
21
21
|
l
|
|
22
22
|
), K = he(), {
|
|
23
|
-
data:
|
|
24
|
-
isLoading:
|
|
25
|
-
isError:
|
|
23
|
+
data: F = [],
|
|
24
|
+
isLoading: L,
|
|
25
|
+
isError: B,
|
|
26
26
|
error: V,
|
|
27
27
|
refetch: $
|
|
28
28
|
} = b({
|
|
29
29
|
queryKey: ["forms", c, u],
|
|
30
30
|
queryFn: () => ne(c, void 0, w),
|
|
31
|
-
enabled: !!c && !
|
|
32
|
-
}),
|
|
33
|
-
let e =
|
|
31
|
+
enabled: !!c && !I
|
|
32
|
+
}), D = d(() => {
|
|
33
|
+
let e = F;
|
|
34
34
|
return l && l.length > 0 && (e = e.filter(
|
|
35
35
|
(r) => l.includes(r.encounterUuid)
|
|
36
36
|
)), Array.isArray(y) && y.length > 0 && (e = e.filter(
|
|
37
37
|
(r) => y.some((a) => a.toLowerCase() === r.formName.toLowerCase())
|
|
38
38
|
)), e;
|
|
39
|
-
}, [
|
|
39
|
+
}, [F, l, y]), { data: M = [] } = b({
|
|
40
40
|
queryKey: ["observationForms"],
|
|
41
41
|
queryFn: () => de()
|
|
42
42
|
}), S = p(
|
|
@@ -57,7 +57,7 @@ const Ne = "FormsTable-module_formsTableBody__SvGha", Oe = "FormsTable-module_cu
|
|
|
57
57
|
}), {
|
|
58
58
|
data: N,
|
|
59
59
|
isLoading: Q,
|
|
60
|
-
isError:
|
|
60
|
+
isError: P,
|
|
61
61
|
error: O
|
|
62
62
|
} = b({
|
|
63
63
|
queryKey: ["formsEncounterFHIR", o?.encounterUuid],
|
|
@@ -70,10 +70,10 @@ const Ne = "FormsTable-module_formsTableBody__SvGha", Oe = "FormsTable-module_cu
|
|
|
70
70
|
},
|
|
71
71
|
[c]
|
|
72
72
|
);
|
|
73
|
-
const
|
|
73
|
+
const Y = d(() => !N?.entry || !o?.formName ? [] : N.entry.filter((e) => e.resource?.resourceType === "Observation").map((e) => e.resource).filter((e) => {
|
|
74
74
|
const r = Ae(e);
|
|
75
75
|
return !r || r.includes(o.formName);
|
|
76
|
-
}), [N, o?.formName]),
|
|
76
|
+
}), [N, o?.formName]), J = d(() => {
|
|
77
77
|
if (!m?.schema) return;
|
|
78
78
|
const e = [], r = (a) => {
|
|
79
79
|
(a ?? []).forEach((s) => {
|
|
@@ -116,7 +116,7 @@ const Ne = "FormsTable-module_formsTableBody__SvGha", Oe = "FormsTable-module_cu
|
|
|
116
116
|
],
|
|
117
117
|
[]
|
|
118
118
|
), C = d(() => {
|
|
119
|
-
const e =
|
|
119
|
+
const e = D.reduce(
|
|
120
120
|
(r, a) => {
|
|
121
121
|
const s = a.formName;
|
|
122
122
|
r[s] ??= [];
|
|
@@ -140,10 +140,10 @@ const Ne = "FormsTable-module_formsTableBody__SvGha", Oe = "FormsTable-module_cu
|
|
|
140
140
|
)
|
|
141
141
|
})
|
|
142
142
|
).sort((r, a) => r.formName.localeCompare(a.formName));
|
|
143
|
-
}, [
|
|
144
|
-
|
|
143
|
+
}, [D, n]), R = p((e) => {
|
|
144
|
+
v(e), T(!0);
|
|
145
145
|
}, []), ee = p(() => {
|
|
146
|
-
|
|
146
|
+
T(!1), v(null);
|
|
147
147
|
}, []), U = p(
|
|
148
148
|
(e, r) => {
|
|
149
149
|
switch (r) {
|
|
@@ -158,17 +158,17 @@ const Ne = "FormsTable-module_formsTableBody__SvGha", Oe = "FormsTable-module_cu
|
|
|
158
158
|
[R]
|
|
159
159
|
);
|
|
160
160
|
return /* @__PURE__ */ re(ae, { children: [
|
|
161
|
-
/* @__PURE__ */ i("div", { id: "forms-table", "data-testid": "forms-table", children:
|
|
161
|
+
/* @__PURE__ */ i("div", { id: "forms-table", "data-testid": "forms-table", children: L || B || C.length === 0 || I ? /* @__PURE__ */ i(
|
|
162
162
|
x,
|
|
163
163
|
{
|
|
164
164
|
headers: _,
|
|
165
165
|
ariaLabel: n("FORMS_HEADING"),
|
|
166
166
|
rows: [],
|
|
167
|
-
loading:
|
|
168
|
-
errorStateMessage:
|
|
167
|
+
loading: L,
|
|
168
|
+
errorStateMessage: B ? V?.message : void 0,
|
|
169
169
|
emptyStateMessage: n("FORMS_UNAVAILABLE"),
|
|
170
170
|
renderCell: U,
|
|
171
|
-
className:
|
|
171
|
+
className: E.formsTableBody,
|
|
172
172
|
dataTestId: "forms-table"
|
|
173
173
|
}
|
|
174
174
|
) : /* @__PURE__ */ i(fe, { align: "start", children: C.map((e, r) => {
|
|
@@ -177,7 +177,7 @@ const Ne = "FormsTable-module_formsTableBody__SvGha", Oe = "FormsTable-module_cu
|
|
|
177
177
|
ye,
|
|
178
178
|
{
|
|
179
179
|
title: a,
|
|
180
|
-
className:
|
|
180
|
+
className: E.customAccordianItem,
|
|
181
181
|
testId: `accordian-title-${a}`,
|
|
182
182
|
open: r === 0,
|
|
183
183
|
children: /* @__PURE__ */ i(
|
|
@@ -191,7 +191,7 @@ const Ne = "FormsTable-module_formsTableBody__SvGha", Oe = "FormsTable-module_cu
|
|
|
191
191
|
sortable: Z,
|
|
192
192
|
emptyStateMessage: n("FORMS_UNAVAILABLE"),
|
|
193
193
|
renderCell: U,
|
|
194
|
-
className:
|
|
194
|
+
className: E.formsTableBody,
|
|
195
195
|
dataTestId: `forms-table-${a}`
|
|
196
196
|
}
|
|
197
197
|
)
|
|
@@ -214,14 +214,14 @@ const Ne = "FormsTable-module_formsTableBody__SvGha", Oe = "FormsTable-module_cu
|
|
|
214
214
|
children: /* @__PURE__ */ i(
|
|
215
215
|
pe,
|
|
216
216
|
{
|
|
217
|
-
observations:
|
|
217
|
+
observations: Y,
|
|
218
218
|
isLoading: z || Q,
|
|
219
|
-
isError: G ||
|
|
219
|
+
isError: G || P,
|
|
220
220
|
errorMessage: X,
|
|
221
221
|
emptyStateMessage: n("NO_FORM_DATA_AVAILABLE"),
|
|
222
222
|
testIdPrefix: o.formName,
|
|
223
223
|
hideThumbnail: H,
|
|
224
|
-
controlOrder:
|
|
224
|
+
controlOrder: J,
|
|
225
225
|
sectionMap: W
|
|
226
226
|
}
|
|
227
227
|
)
|
|
@@ -230,5 +230,5 @@ const Ne = "FormsTable-module_formsTableBody__SvGha", Oe = "FormsTable-module_cu
|
|
|
230
230
|
] });
|
|
231
231
|
};
|
|
232
232
|
export {
|
|
233
|
-
|
|
233
|
+
Fe as default
|
|
234
234
|
};
|
|
@@ -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 { s as d, t 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-tjQ1P5CC.js";
|
|
2
|
+
import { s as d, t as f, y as e } from "./index-ua-STquW.js";
|
|
3
3
|
var p = (a) => {
|
|
4
4
|
const [r, t] = c({
|
|
5
5
|
prefix: "TanstackQueryDevtools"
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { c as l, T as c, P as u, a as i, b as m, C as P, Q as d } from "./YPM2AS64-
|
|
2
|
-
import { s as v, t as C, y as e } from "./index-
|
|
1
|
+
import { c as l, T as c, P as u, a as i, b as m, C as P, Q as d } from "./YPM2AS64-tjQ1P5CC.js";
|
|
2
|
+
import { s as v, t as C, y as e } from "./index-ua-STquW.js";
|
|
3
3
|
var h = (t) => {
|
|
4
4
|
const [r, o] = l({
|
|
5
5
|
prefix: "TanstackQueryDevtools"
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsxs as S, jsx as u } from "react/jsx-runtime";
|
|
2
|
-
import { n as B, o as M, u as N, h as K, i as k, j as H, H as Q, M as j, x as P, k as w, O as G, V as z, q as x, l as J, C as Y, r as W, _ as X, P as Z, R as ee } from "./index-
|
|
2
|
+
import { n as B, o as M, u as N, h as K, i as k, j as H, H as Q, M as j, x as P, k as w, O as G, V as z, q as x, l as J, C as Y, r as W, _ as X, P as Z, R as ee } from "./index-ua-STquW.js";
|
|
3
3
|
import { useQueries as te, useQuery as ae } from "@tanstack/react-query";
|
|
4
4
|
import { useRef as se, useEffect as $, useMemo as E } from "react";
|
|
5
5
|
const C = (t, n, d, l, b, r) => {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { z as we, A as z, B as xt, F as B, t as q, y, G as Ro, I as ye, S as R, J as _, K as k, L as N, Q as A, T as bs, U as ir, W as $e, X as U, Y 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-
|
|
1
|
+
import { z as we, A as z, B as xt, F as B, t as q, y, G as Ro, I as ye, S as R, J as _, K as k, L as N, Q as A, T as bs, U as ir, W as $e, X as U, Y 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-ua-STquW.js";
|
|
2
2
|
var Os = (e) => e != null, qs = (e) => e.filter(Os);
|
|
3
3
|
function _s(e) {
|
|
4
4
|
return (...t) => {
|
|
@@ -95447,7 +95447,7 @@ function Vt0(t, e, r) {
|
|
|
95447
95447
|
return n;
|
|
95448
95448
|
};
|
|
95449
95449
|
}
|
|
95450
|
-
it(() => Promise.resolve().then(() => RG2)), it(() => Promise.resolve().then(() => sY2)), it(() => Promise.resolve().then(() => PY2)), it(() => Promise.resolve().then(() => GY2)), it(() => import("./DocumentsTable-
|
|
95450
|
+
it(() => Promise.resolve().then(() => RG2)), it(() => Promise.resolve().then(() => sY2)), it(() => Promise.resolve().then(() => PY2)), it(() => Promise.resolve().then(() => GY2)), it(() => import("./DocumentsTable-y7KKSEft-C1K8j8eP.js")), it(() => Promise.resolve().then(() => ne0)), it(() => import("./FormsTable-DWjxOeF0-CxE8Os6f.js")), it(() => Promise.resolve().then(() => AQ2)), it(() => import("./Observations-BVrVtdFC-C9--mu7K.js")), it(
|
|
95451
95451
|
() => Promise.resolve().then(() => Re0)
|
|
95452
95452
|
), it(
|
|
95453
95453
|
() => Promise.resolve().then(() => JX2)
|
|
@@ -180279,7 +180279,7 @@ var Fwt = (t, e = !1) => {
|
|
|
180279
180279
|
const e = _22(() => {
|
|
180280
180280
|
const r = this, [n] = this.#n, [a] = this.#o, [c] = this.#a, [i] = this.#c, [l] = this.#p, [s] = this.#t;
|
|
180281
180281
|
let d;
|
|
180282
|
-
return this.#i ? d = this.#i : (d = A22(() => import("./LNWAZHJI-
|
|
180282
|
+
return this.#i ? d = this.#i : (d = A22(() => import("./LNWAZHJI-Dw9KXobi.js")), this.#i = d), Y22(this.#h, this.#r), N22(d, C22({
|
|
180283
180283
|
get queryFlavor() {
|
|
180284
180284
|
return r.#d;
|
|
180285
180285
|
},
|
|
@@ -180377,7 +180377,7 @@ var Fwt = (t, e = !1) => {
|
|
|
180377
180377
|
const e = _22(() => {
|
|
180378
180378
|
const r = this, [n] = this.#n, [a] = this.#o, [c] = this.#a, [i] = this.#c, [l] = this.#p, [s] = this.#t, [d] = this.#i;
|
|
180379
180379
|
let u;
|
|
180380
|
-
return this.#l ? u = this.#l : (u = A22(() => import("./MWZ6AO7Z-
|
|
180380
|
+
return this.#l ? u = this.#l : (u = A22(() => import("./MWZ6AO7Z-BkM3NYWY.js")), this.#l = u), Y22(this.#h, this.#r), N22(u, C22({
|
|
180381
180381
|
get queryFlavor() {
|
|
180382
180382
|
return r.#d;
|
|
180383
180383
|
},
|
package/dist/index.js
CHANGED