@bahmni/registration-app 0.0.1-dev.320 → 0.0.1-dev.324
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-N3KZd9ZV-CFK3Uqis.js → DocumentsTable-DJp5cpq1-DDHFirJQ.js} +1 -1
- package/dist/{FormsTable-F1FaoFiu-DZSpaXa0.js → FormsTable-eYSyFNI4-Bpsobs3i.js} +18 -18
- package/dist/{LNWAZHJI-Cm-agdri.js → LNWAZHJI-B_9VquQm.js} +3 -3
- package/dist/{MWZ6AO7Z-COGPqmQg.js → MWZ6AO7Z-CeXDEVB3.js} +4 -4
- package/dist/{Observations-HyR2_B59-S0Y0rSCd.js → Observations-DqC-iu2a-CuALhNYE.js} +5 -5
- package/dist/{YPM2AS64-BE7gjSGN.js → YPM2AS64-iImmhxA0.js} +1 -1
- package/dist/components/forms/patientRelationships/RelationshipRow.d.ts.map +1 -1
- package/dist/{index-pNCRgyjy.js → index-CTSIYmp7.js} +8161 -8150
- package/dist/index.js +1 -1
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as r, jsxs as h, Fragment as x } from "react/jsx-runtime";
|
|
2
|
-
import { n as G, u as W, o as Y, U as J, a as X, g as Z, O as ee, h as te } from "./index-
|
|
2
|
+
import { n as G, u as W, o as Y, U as J, a as X, g as Z, O as ee, h as te } from "./index-CTSIYmp7.js";
|
|
3
3
|
import { useQuery as ae } from "@tanstack/react-query";
|
|
4
4
|
import { useState as l, useCallback as _, useEffect as N, useMemo as p } 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 = {
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { jsx as i, jsxs as re, Fragment as ae } from "react/jsx-runtime";
|
|
2
|
-
import { u as te, n as oe, x as se, j as ne, B as de, F as ie, P as le,
|
|
3
|
-
import { useQueryClient as
|
|
4
|
-
import { useState as w, useMemo as d, useCallback as
|
|
2
|
+
import { u as te, n as oe, x as se, j as ne, B as de, F as ie, P as le, p as ue, D as q, g as me, a as ce, O as j, w as fe, v as ye, h as he, Q as pe, $ as be } from "./index-CTSIYmp7.js";
|
|
3
|
+
import { useQueryClient as ge, useQuery as h } from "@tanstack/react-query";
|
|
4
|
+
import { useState as w, useMemo as d, useCallback as p } from "react";
|
|
5
5
|
const Ne = "FormsTable-module_formsTableBody__SvGha", Oe = "FormsTable-module_customAccordianItem__isszs", M = {
|
|
6
6
|
formsTableBody: Ne,
|
|
7
7
|
customAccordianItem: Oe
|
|
8
8
|
}, Ae = (m) => m ? m.extension?.find(
|
|
9
|
-
(l) => l.url ===
|
|
9
|
+
(l) => l.url === be
|
|
10
10
|
)?.valueString : void 0, Te = ({
|
|
11
11
|
episodeOfCareUuids: m,
|
|
12
12
|
encounterUuids: l,
|
|
@@ -19,7 +19,7 @@ const Ne = "FormsTable-module_formsTableBody__SvGha", Oe = "FormsTable-module_cu
|
|
|
19
19
|
} = k ?? {}, I = se(
|
|
20
20
|
m,
|
|
21
21
|
l
|
|
22
|
-
), H =
|
|
22
|
+
), H = ge(), {
|
|
23
23
|
data: T = [],
|
|
24
24
|
isLoading: B,
|
|
25
25
|
isError: D,
|
|
@@ -39,21 +39,21 @@ const Ne = "FormsTable-module_formsTableBody__SvGha", Oe = "FormsTable-module_cu
|
|
|
39
39
|
}, [T, l, y]), { data: L = [] } = h({
|
|
40
40
|
queryKey: ["observationForms"],
|
|
41
41
|
queryFn: () => de()
|
|
42
|
-
}), S =
|
|
42
|
+
}), S = p(
|
|
43
43
|
(e) => L.find((r) => r.name === e)?.uuid,
|
|
44
44
|
[L]
|
|
45
|
-
),
|
|
45
|
+
), b = d(() => {
|
|
46
46
|
if (o)
|
|
47
47
|
return S(o.formName);
|
|
48
48
|
}, [o, S]), {
|
|
49
49
|
data: u,
|
|
50
50
|
isLoading: V,
|
|
51
51
|
isError: z,
|
|
52
|
-
error:
|
|
52
|
+
error: g
|
|
53
53
|
} = h({
|
|
54
|
-
queryKey: ["formMetadata",
|
|
55
|
-
queryFn: () => ie(
|
|
56
|
-
enabled: !!
|
|
54
|
+
queryKey: ["formMetadata", b],
|
|
55
|
+
queryFn: () => ie(b),
|
|
56
|
+
enabled: !!b && f
|
|
57
57
|
}), {
|
|
58
58
|
data: N,
|
|
59
59
|
isLoading: G,
|
|
@@ -99,11 +99,11 @@ const Ne = "FormsTable-module_formsTableBody__SvGha", Oe = "FormsTable-module_cu
|
|
|
99
99
|
null
|
|
100
100
|
), Object.keys(e).length > 0 ? e : void 0;
|
|
101
101
|
}, [u]), X = d(() => {
|
|
102
|
-
if (
|
|
103
|
-
return q(
|
|
102
|
+
if (g)
|
|
103
|
+
return q(g).message;
|
|
104
104
|
if (O)
|
|
105
105
|
return q(O).message;
|
|
106
|
-
}, [
|
|
106
|
+
}, [g, O]), _ = d(
|
|
107
107
|
() => [
|
|
108
108
|
{ key: "recordedOn", header: n("RECORDED_ON") },
|
|
109
109
|
{ key: "recordedBy", header: n("RECORDED_BY") }
|
|
@@ -140,11 +140,11 @@ 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
|
-
}, [E, n]), R =
|
|
143
|
+
}, [E, n]), R = p((e) => {
|
|
144
144
|
F(e), v(!0);
|
|
145
|
-
}, []), ee =
|
|
145
|
+
}, []), ee = p(() => {
|
|
146
146
|
v(!1), F(null);
|
|
147
|
-
}, []), U =
|
|
147
|
+
}, []), U = p(
|
|
148
148
|
(e, r) => {
|
|
149
149
|
switch (r) {
|
|
150
150
|
case "recordedOn":
|
|
@@ -212,7 +212,7 @@ const Ne = "FormsTable-module_formsTableBody__SvGha", Oe = "FormsTable-module_cu
|
|
|
212
212
|
size: "md",
|
|
213
213
|
testId: "form-details-modal",
|
|
214
214
|
children: /* @__PURE__ */ i(
|
|
215
|
-
|
|
215
|
+
pe,
|
|
216
216
|
{
|
|
217
217
|
observations: Y,
|
|
218
218
|
isLoading: V || G,
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { c, T as l, P as m, a as i, D as u, Q as v } from "./YPM2AS64-
|
|
2
|
-
import { i as d, l as
|
|
1
|
+
import { c, T as l, P as m, a as i, D as u, Q as v } from "./YPM2AS64-iImmhxA0.js";
|
|
2
|
+
import { f, i as d, l as e } from "./index-CTSIYmp7.js";
|
|
3
3
|
var p = (a) => {
|
|
4
4
|
const [r, t] = c({
|
|
5
5
|
prefix: "TanstackQueryDevtools"
|
|
6
|
-
}), n =
|
|
6
|
+
}), n = f(), s = d(() => {
|
|
7
7
|
const o = r.theme_preference || l;
|
|
8
8
|
return o !== "system" ? o : n();
|
|
9
9
|
});
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { c as s, T as c, P as i, a as u, b as m, C as P, Q as d } from "./YPM2AS64-
|
|
2
|
-
import {
|
|
3
|
-
var
|
|
1
|
+
import { c as s, T as c, P as i, a as u, b as m, C as P, Q as d } from "./YPM2AS64-iImmhxA0.js";
|
|
2
|
+
import { f as v, i as C, l as e } from "./index-CTSIYmp7.js";
|
|
3
|
+
var f = (t) => {
|
|
4
4
|
const [r, o] = s({
|
|
5
5
|
prefix: "TanstackQueryDevtools"
|
|
6
6
|
}), a = v(), l = C(() => {
|
|
@@ -36,7 +36,7 @@ var h = (t) => {
|
|
|
36
36
|
});
|
|
37
37
|
}
|
|
38
38
|
});
|
|
39
|
-
}, p =
|
|
39
|
+
}, p = f;
|
|
40
40
|
export {
|
|
41
41
|
p as default
|
|
42
42
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsxs as I, jsx as u } from "react/jsx-runtime";
|
|
2
|
-
import { n as k, o as K, u as N, k as Q, Z as q,
|
|
2
|
+
import { n as k, o as K, u as N, k as Q, Z as q, p as G, J as x, X as z, b as w, c as H, O as J, G as Y, E as M, Y as j, d as P, e as X, M as Z, S as W, z as ee } from "./index-CTSIYmp7.js";
|
|
3
3
|
import { useQueries as te, useQuery as ae } from "@tanstack/react-query";
|
|
4
4
|
import { useRef as se, useEffect as $, useMemo as O } from "react";
|
|
5
5
|
const D = (t, n, d, l, b, r) => {
|
|
@@ -156,7 +156,7 @@ const D = (t, n, d, l, b, r) => {
|
|
|
156
156
|
type: "error"
|
|
157
157
|
});
|
|
158
158
|
}, [R]);
|
|
159
|
-
const
|
|
159
|
+
const g = O(() => {
|
|
160
160
|
if (!c) return [];
|
|
161
161
|
const e = x(c), h = z(e);
|
|
162
162
|
return w(h);
|
|
@@ -164,7 +164,7 @@ const D = (t, n, d, l, b, r) => {
|
|
|
164
164
|
{ key: "name", header: "name" },
|
|
165
165
|
{ key: "value", header: "value" },
|
|
166
166
|
{ key: "form", header: "form" }
|
|
167
|
-
],
|
|
167
|
+
], f = F || !y, _ = R && y, A = (!c || c.entry?.length === 0 || p.length === 0) && y, C = _ ? o("ERROR_FETCHING_OBSERVATIONS") : null, U = A ? o("NO_OBSERVATIONS_FOUND") : void 0, B = g.length > 0 && !f && !_, E = n.titleTranslationKey, v = E ? o(E) : "";
|
|
168
168
|
return /* @__PURE__ */ I(
|
|
169
169
|
"div",
|
|
170
170
|
{
|
|
@@ -186,7 +186,7 @@ const D = (t, n, d, l, b, r) => {
|
|
|
186
186
|
B ? /* @__PURE__ */ u(
|
|
187
187
|
oe,
|
|
188
188
|
{
|
|
189
|
-
groupedData:
|
|
189
|
+
groupedData: g,
|
|
190
190
|
title: v,
|
|
191
191
|
hideThumbnail: b
|
|
192
192
|
}
|
|
@@ -196,7 +196,7 @@ const D = (t, n, d, l, b, r) => {
|
|
|
196
196
|
headers: L,
|
|
197
197
|
rows: [],
|
|
198
198
|
ariaLabel: o("OBSERVATIONS"),
|
|
199
|
-
loading:
|
|
199
|
+
loading: f,
|
|
200
200
|
errorStateMessage: C,
|
|
201
201
|
emptyStateMessage: U,
|
|
202
202
|
dataTestId: "observations-table"
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { m as we, q as z, r as xt, s as B, i as q, l as y, t as Ro, y as ye, A as R, C as _, H as k, I as N, K as A, L as bs, N as ir, R as $e, T as U, V as Hn, W 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-CTSIYmp7.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":"RelationshipRow.d.ts","sourceRoot":"","sources":["../../../../src/components/forms/patientRelationships/RelationshipRow.tsx"],"names":[],"mappings":"AAUA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,iCAAiC,CAAC;AACzE,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAU/D,MAAM,WAAW,gBAAgB;IAC/B,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,MAAM,CAAC;CAChB;AAED,UAAU,oBAAoB;IAC5B,YAAY,EAAE,gBAAgB,CAAC;IAC/B,iBAAiB,EAAE,gBAAgB,EAAE,CAAC;IACtC,WAAW,EAAE,iBAAiB,EAAE,CAAC;IACjC,MAAM,EAAE;QACN,gBAAgB,CAAC,EAAE,MAAM,CAAC;QAC1B,SAAS,CAAC,EAAE,MAAM,CAAC;KACpB,CAAC;IACF,oBAAoB,EAAE,CACpB,EAAE,EAAE,MAAM,EACV,KAAK,EAAE,MAAM,gBAAgB,EAC7B,KAAK,EAAE,MAAM,KACV,IAAI,CAAC;IACV,eAAe,EAAE,CAAC,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACrD,eAAe,EAAE,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,EAAE,iBAAiB,GAAG,IAAI,KAAK,IAAI,CAAC;IACzE,QAAQ,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;IAC/B,CAAC,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,MAAM,CAAC;CAC5B;AAED,eAAO,MAAM,eAAe;qIAUzB,oBAAoB;;;;;;;;
|
|
1
|
+
{"version":3,"file":"RelationshipRow.d.ts","sourceRoot":"","sources":["../../../../src/components/forms/patientRelationships/RelationshipRow.tsx"],"names":[],"mappings":"AAUA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,iCAAiC,CAAC;AACzE,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAU/D,MAAM,WAAW,gBAAgB;IAC/B,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,MAAM,CAAC;CAChB;AAED,UAAU,oBAAoB;IAC5B,YAAY,EAAE,gBAAgB,CAAC;IAC/B,iBAAiB,EAAE,gBAAgB,EAAE,CAAC;IACtC,WAAW,EAAE,iBAAiB,EAAE,CAAC;IACjC,MAAM,EAAE;QACN,gBAAgB,CAAC,EAAE,MAAM,CAAC;QAC1B,SAAS,CAAC,EAAE,MAAM,CAAC;KACpB,CAAC;IACF,oBAAoB,EAAE,CACpB,EAAE,EAAE,MAAM,EACV,KAAK,EAAE,MAAM,gBAAgB,EAC7B,KAAK,EAAE,MAAM,KACV,IAAI,CAAC;IACV,eAAe,EAAE,CAAC,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACrD,eAAe,EAAE,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,EAAE,iBAAiB,GAAG,IAAI,KAAK,IAAI,CAAC;IACzE,QAAQ,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;IAC/B,CAAC,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,MAAM,CAAC;CAC5B;AAED,eAAO,MAAM,eAAe;qIAUzB,oBAAoB;;;;;;;;CAyJtB,CAAC"}
|