@bahmni/clinical-app 0.0.1-dev.319 → 0.0.1-dev.321
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-DcBUo8_C.js → DocumentsTable-DJp5cpq1-B-XFXrH2.js} +1 -1
- package/dist/{FormsTable-F1FaoFiu-Bz9p77rm.js → FormsTable-eYSyFNI4-D5oekewT.js} +18 -18
- package/dist/{LNWAZHJI-9OnKhlh6.js → LNWAZHJI-BibJSlJ9.js} +3 -3
- package/dist/{MWZ6AO7Z-1iaOUtB4.js → MWZ6AO7Z-NnDfp4BU.js} +4 -4
- package/dist/{Observations-HyR2_B59-DXBOhGyE.js → Observations-DqC-iu2a-DxfaOgBy.js} +5 -5
- package/dist/{YPM2AS64-Dl2xhzIk.js → YPM2AS64-CD-7Dwnv.js} +1 -1
- package/dist/components/forms/observations/__tests__/__mocks__/observationFormContainerMocks.d.ts +27 -0
- package/dist/components/forms/observations/__tests__/__mocks__/observationFormContainerMocks.d.ts.map +1 -0
- package/dist/{index-KT3ssyRA.js → index-CXEUxtH6.js} +29801 -29789
- package/dist/index.js +1 -1
- package/dist/pages/schema.json.d.ts +43 -20
- package/dist/providers/clinicalConfig/models.d.ts +5 -1
- package/dist/providers/clinicalConfig/models.d.ts.map +1 -1
- package/dist/providers/clinicalConfig/schema.json.d.ts +13 -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-CXEUxtH6.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-CXEUxtH6.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-CD-7Dwnv.js";
|
|
2
|
+
import { f, i as d, l as e } from "./index-CXEUxtH6.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-CD-7Dwnv.js";
|
|
2
|
+
import { f as v, i as C, l as e } from "./index-CXEUxtH6.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-CXEUxtH6.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-CXEUxtH6.js";
|
|
2
2
|
var Os = (e) => e != null, qs = (e) => e.filter(Os);
|
|
3
3
|
function _s(e) {
|
|
4
4
|
return (...t) => {
|
package/dist/components/forms/observations/__tests__/__mocks__/observationFormContainerMocks.d.ts
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
export declare const mockMinimalPatientData: {
|
|
2
|
+
id: string;
|
|
3
|
+
fullName: null;
|
|
4
|
+
givenName: null;
|
|
5
|
+
familyName: null;
|
|
6
|
+
gender: null;
|
|
7
|
+
birthDate: null;
|
|
8
|
+
birthtime: null;
|
|
9
|
+
formattedAddress: null;
|
|
10
|
+
formattedContact: null;
|
|
11
|
+
identifiers: Map<any, any>;
|
|
12
|
+
identifier: null;
|
|
13
|
+
};
|
|
14
|
+
export declare const mockEnrichedPatientData: {
|
|
15
|
+
id: string;
|
|
16
|
+
fullName: string;
|
|
17
|
+
givenName: string;
|
|
18
|
+
familyName: string;
|
|
19
|
+
gender: string;
|
|
20
|
+
birthDate: string;
|
|
21
|
+
birthtime: null;
|
|
22
|
+
formattedAddress: null;
|
|
23
|
+
formattedContact: null;
|
|
24
|
+
identifiers: Map<any, any>;
|
|
25
|
+
identifier: string;
|
|
26
|
+
};
|
|
27
|
+
//# sourceMappingURL=observationFormContainerMocks.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"observationFormContainerMocks.d.ts","sourceRoot":"","sources":["../../../../../../src/components/forms/observations/__tests__/__mocks__/observationFormContainerMocks.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,sBAAsB;;;;;;;;;;;;CAYlC,CAAC;AAEF,eAAO,MAAM,uBAAuB;;;;;;;;;;;;CAYnC,CAAC"}
|