@bahmni/clinical-app 0.0.1-dev.169 → 0.0.1-dev.170
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/{FormsTable-DVAzwoLx-DM2pPwEt.js → FormsTable-BPeGy94--CVzB3MSS.js} +28 -28
- package/dist/{LNWAZHJI-CH285k-8.js → LNWAZHJI-BLaPuqm1.js} +9 -9
- package/dist/{MWZ6AO7Z-JtNAX526.js → MWZ6AO7Z-CPlDOuSW.js} +2 -2
- package/dist/{Observations-o_GsRckh-Cq8BaCQX.js → Observations-DFn-QE1o-2Wj1hXjN.js} +15 -15
- package/dist/{YPM2AS64-C1KqZsbG.js → YPM2AS64-B3n5UqGP.js} +1 -1
- package/dist/{index-1DbsnfSR.js → index-BPuADWI_.js} +1591 -1587
- package/dist/index.css +1 -1
- package/dist/index.js +1 -1
- package/package.json +1 -1
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import { jsx as s, jsxs as p, Fragment as k } from "react/jsx-runtime";
|
|
2
|
-
import { u as ee, h as re,
|
|
3
|
-
import { useState as K, useMemo as h, useCallback as
|
|
4
|
-
const Ne = "_formsTableBody_1pd36_1", ye = "_customAccordianItem_1pd36_6",
|
|
2
|
+
import { u as ee, h as re, v as ae, a as te, b as L, e as oe, i as ne, T as se, z as U, Y as de, G as me, c as ie, M as le, V as q, d as ce, g as ue, C as A, F as be, N as pe, f as _e, U as fe, J as $e, j as ve, k as ge, K as he } from "./index-BPuADWI_.js";
|
|
3
|
+
import { useState as K, useMemo as h, useCallback as R } from "react";
|
|
4
|
+
const Ne = "_formsTableBody_1pd36_1", ye = "_customAccordianItem_1pd36_6", Le = "_formContent_1pd36_18", Re = "_formDetailsContainer_1pd36_25", Ae = "_observation_1pd36_30", Ce = "_groupContainer_1pd36_39", Fe = "_rowContainer_1pd36_43", Me = "_groupLabel_1pd36_48", Ve = "_rowLabel_1pd36_58", Oe = "_rowValue_1pd36_67", Te = "_groupMembers_1pd36_75", Ie = "_memberRow_1pd36_81", Se = "_memberLabel_1pd36_86", we = "_memberValue_1pd36_94", De = "_abnormalValue_1pd36_102", Ge = "_commentSection_1pd36_110", Ee = "_commentText_1pd36_116", xe = "_nestedGroup_1pd36_125", Be = "_nestedGroupLabel_1pd36_132", Ue = "_nestedGroupMembers_1pd36_141", o = {
|
|
5
5
|
formsTableBody: Ne,
|
|
6
6
|
customAccordianItem: ye,
|
|
7
|
-
formContent:
|
|
8
|
-
formDetailsContainer:
|
|
9
|
-
observation:
|
|
10
|
-
groupContainer:
|
|
7
|
+
formContent: Le,
|
|
8
|
+
formDetailsContainer: Re,
|
|
9
|
+
observation: Ae,
|
|
10
|
+
groupContainer: Ce,
|
|
11
11
|
rowContainer: Fe,
|
|
12
12
|
groupLabel: Me,
|
|
13
13
|
rowLabel: Ve,
|
|
14
14
|
rowValue: Oe,
|
|
15
|
-
groupMembers:
|
|
16
|
-
memberRow:
|
|
15
|
+
groupMembers: Te,
|
|
16
|
+
memberRow: Ie,
|
|
17
17
|
memberLabel: Se,
|
|
18
18
|
memberValue: we,
|
|
19
19
|
abnormalValue: De,
|
|
@@ -91,7 +91,7 @@ const Ne = "_formsTableBody_1pd36_1", ye = "_customAccordianItem_1pd36_6", Ce =
|
|
|
91
91
|
/* @__PURE__ */ p(
|
|
92
92
|
"p",
|
|
93
93
|
{
|
|
94
|
-
className:
|
|
94
|
+
className: A(
|
|
95
95
|
o.memberLabel,
|
|
96
96
|
_ ? o.abnormalValue : ""
|
|
97
97
|
),
|
|
@@ -105,7 +105,7 @@ const Ne = "_formsTableBody_1pd36_1", ye = "_customAccordianItem_1pd36_6", Ce =
|
|
|
105
105
|
/* @__PURE__ */ p(
|
|
106
106
|
"div",
|
|
107
107
|
{
|
|
108
|
-
className:
|
|
108
|
+
className: A(
|
|
109
109
|
o.memberValue,
|
|
110
110
|
_ ? o.abnormalValue : ""
|
|
111
111
|
),
|
|
@@ -154,7 +154,7 @@ const Ne = "_formsTableBody_1pd36_1", ye = "_customAccordianItem_1pd36_6", Ce =
|
|
|
154
154
|
/* @__PURE__ */ p(
|
|
155
155
|
"p",
|
|
156
156
|
{
|
|
157
|
-
className:
|
|
157
|
+
className: A(
|
|
158
158
|
d ? o.groupLabel : o.rowLabel,
|
|
159
159
|
!d && t ? o.abnormalValue : ""
|
|
160
160
|
),
|
|
@@ -184,7 +184,7 @@ const Ne = "_formsTableBody_1pd36_1", ye = "_customAccordianItem_1pd36_6", Ce =
|
|
|
184
184
|
) : /* @__PURE__ */ p(
|
|
185
185
|
"div",
|
|
186
186
|
{
|
|
187
|
-
className:
|
|
187
|
+
className: A(
|
|
188
188
|
o.rowValue,
|
|
189
189
|
t ? o.abnormalValue : ""
|
|
190
190
|
),
|
|
@@ -260,30 +260,30 @@ const Ne = "_formsTableBody_1pd36_1", ye = "_customAccordianItem_1pd36_6", Ce =
|
|
|
260
260
|
isError: y,
|
|
261
261
|
error: z,
|
|
262
262
|
refetch: Y
|
|
263
|
-
} =
|
|
263
|
+
} = L({
|
|
264
264
|
queryKey: ["forms", d, e],
|
|
265
265
|
queryFn: () => $e(d, void 0, v),
|
|
266
266
|
enabled: !!d && !_
|
|
267
267
|
}), O = h(() => !r || r.length === 0 ? $ : $.filter(
|
|
268
268
|
(i) => r.includes(i.encounterUuid)
|
|
269
|
-
), [$, r]), { data:
|
|
269
|
+
), [$, r]), { data: T = [] } = L({
|
|
270
270
|
queryKey: ["observationForms"],
|
|
271
271
|
queryFn: () => ve()
|
|
272
|
-
}),
|
|
273
|
-
(i) =>
|
|
274
|
-
[
|
|
275
|
-
),
|
|
272
|
+
}), I = R(
|
|
273
|
+
(i) => T.find((u) => u.name === i)?.uuid,
|
|
274
|
+
[T]
|
|
275
|
+
), C = h(() => {
|
|
276
276
|
if (t)
|
|
277
|
-
return
|
|
278
|
-
}, [t,
|
|
279
|
-
queryKey: ["formMetadata",
|
|
280
|
-
queryFn: () => ge(
|
|
281
|
-
enabled: !!
|
|
277
|
+
return I(t.formName);
|
|
278
|
+
}, [t, I]), { isLoading: Q, error: S } = L({
|
|
279
|
+
queryKey: ["formMetadata", C],
|
|
280
|
+
queryFn: () => ge(C),
|
|
281
|
+
enabled: !!C && c
|
|
282
282
|
}), {
|
|
283
283
|
data: F,
|
|
284
284
|
isLoading: J,
|
|
285
285
|
error: w
|
|
286
|
-
} =
|
|
286
|
+
} = L({
|
|
287
287
|
queryKey: ["formsEncounterFHIR", t?.encounterUuid],
|
|
288
288
|
queryFn: () => he(t.encounterUuid),
|
|
289
289
|
enabled: !!t?.encounterUuid && c
|
|
@@ -334,11 +334,11 @@ const Ne = "_formsTableBody_1pd36_1", ye = "_customAccordianItem_1pd36_6", Ce =
|
|
|
334
334
|
)
|
|
335
335
|
})
|
|
336
336
|
).sort((u, l) => u.formName.localeCompare(l.formName));
|
|
337
|
-
}, [O, a]), x =
|
|
337
|
+
}, [O, a]), x = R((i) => {
|
|
338
338
|
b(i), m(!0);
|
|
339
|
-
}, []), W =
|
|
339
|
+
}, []), W = R(() => {
|
|
340
340
|
m(!1), b(null);
|
|
341
|
-
}, []), B =
|
|
341
|
+
}, []), B = R(
|
|
342
342
|
(i, u) => {
|
|
343
343
|
switch (u) {
|
|
344
344
|
case "recordedOn":
|
|
@@ -1,25 +1,25 @@
|
|
|
1
|
-
import { c, T as l, P as m, a as
|
|
2
|
-
import {
|
|
1
|
+
import { c, T as l, P as m, a as u, D as v, Q as i } from "./YPM2AS64-B3n5UqGP.js";
|
|
2
|
+
import { o as d, s as f, w as e } from "./index-BPuADWI_.js";
|
|
3
3
|
var p = (a) => {
|
|
4
|
-
const [r,
|
|
4
|
+
const [r, o] = c({
|
|
5
5
|
prefix: "TanstackQueryDevtools"
|
|
6
6
|
}), n = d(), s = f(() => {
|
|
7
|
-
const
|
|
8
|
-
return
|
|
7
|
+
const t = r.theme_preference || l;
|
|
8
|
+
return t !== "system" ? t : n();
|
|
9
9
|
});
|
|
10
10
|
return e(i.Provider, {
|
|
11
11
|
value: a,
|
|
12
12
|
get children() {
|
|
13
13
|
return e(m, {
|
|
14
14
|
localStore: r,
|
|
15
|
-
setLocalStore:
|
|
15
|
+
setLocalStore: o,
|
|
16
16
|
get children() {
|
|
17
|
-
return e(
|
|
17
|
+
return e(u.Provider, {
|
|
18
18
|
value: s,
|
|
19
19
|
get children() {
|
|
20
|
-
return e(
|
|
20
|
+
return e(v, {
|
|
21
21
|
localStore: r,
|
|
22
|
-
setLocalStore:
|
|
22
|
+
setLocalStore: o
|
|
23
23
|
});
|
|
24
24
|
}
|
|
25
25
|
});
|
|
@@ -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 {
|
|
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-B3n5UqGP.js";
|
|
2
|
+
import { o as v, s as C, w as e } from "./index-BPuADWI_.js";
|
|
3
3
|
var h = (t) => {
|
|
4
4
|
const [r, o] = l({
|
|
5
5
|
prefix: "TanstackQueryDevtools"
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsxs as $, jsx as c } from "react/jsx-runtime";
|
|
2
|
-
import { h as B, p as V, u as I,
|
|
2
|
+
import { h as B, p as V, u as I, l as x, q as K, b as z, e as G, d as Q, r as w, n as H, _ as M, z as j, m as W, x as S, t as P, F as X, D as Y, N as J, f as Z, W as ee } from "./index-BPuADWI_.js";
|
|
3
3
|
import { useRef as te, useEffect as N, useMemo as h } from "react";
|
|
4
|
-
const
|
|
4
|
+
const D = (t, d, i, l, r) => {
|
|
5
5
|
const a = P(t, d), s = a.value, o = X(s);
|
|
6
6
|
let n = s;
|
|
7
7
|
o === "Image" && (n = /* @__PURE__ */ c(J, { imageSrc: s, alt: s, id: `${s}-img` })), o === "Video" && (n = /* @__PURE__ */ c(Z, { id: `${s}-video`, videoSrc: s }));
|
|
@@ -27,7 +27,7 @@ const A = (t, d, i, l, r) => {
|
|
|
27
27
|
id: `grouped-obs-${t.display}-${l}`,
|
|
28
28
|
open: i,
|
|
29
29
|
children: t.members?.map(
|
|
30
|
-
(s, o) =>
|
|
30
|
+
(s, o) => D(s, o, r, a, d)
|
|
31
31
|
)
|
|
32
32
|
},
|
|
33
33
|
`grouped-obs-${t.id}`
|
|
@@ -45,7 +45,7 @@ const A = (t, d, i, l, r) => {
|
|
|
45
45
|
open: a,
|
|
46
46
|
children: [
|
|
47
47
|
r.observations.map(
|
|
48
|
-
(n, b) =>
|
|
48
|
+
(n, b) => D(n, b, s, d, i)
|
|
49
49
|
),
|
|
50
50
|
r.groupedObservations.map(
|
|
51
51
|
(n, b) => ae(
|
|
@@ -98,7 +98,7 @@ const A = (t, d, i, l, r) => {
|
|
|
98
98
|
}, [n, i]);
|
|
99
99
|
const b = h(() => n.map((e) => e.data?.uuid).filter((e) => !!e), [n]), p = h(() => [.../* @__PURE__ */ new Set([...b, ...l])], [b, l]), v = h(() => i.length === 0 ? !0 : n.every((e) => !e.isLoading), [n, i.length]), {
|
|
100
100
|
data: u,
|
|
101
|
-
isLoading:
|
|
101
|
+
isLoading: F,
|
|
102
102
|
isError: R,
|
|
103
103
|
refetch: g
|
|
104
104
|
} = z({
|
|
@@ -120,15 +120,15 @@ const A = (t, d, i, l, r) => {
|
|
|
120
120
|
type: "error"
|
|
121
121
|
});
|
|
122
122
|
}, [R]);
|
|
123
|
-
const
|
|
123
|
+
const _ = h(() => {
|
|
124
124
|
if (!u) return [];
|
|
125
|
-
const e = Q(u), m =
|
|
126
|
-
return
|
|
127
|
-
}, [u]),
|
|
125
|
+
const e = Q(u), m = w(e);
|
|
126
|
+
return H(m);
|
|
127
|
+
}, [u]), q = [
|
|
128
128
|
{ key: "name", header: "name" },
|
|
129
129
|
{ key: "value", header: "value" },
|
|
130
130
|
{ key: "form", header: "form" }
|
|
131
|
-
],
|
|
131
|
+
], f = F || !v, O = R && v, A = (!u || u.entry?.length === 0 || p.length === 0) && v, L = O ? o("ERROR_FETCHING_OBSERVATIONS") : null, U = A ? o("NO_OBSERVATIONS_FOUND") : void 0, k = _.length > 0 && !f && !O, E = d.titleTranslationKey, y = E ? o(E) : "";
|
|
132
132
|
return /* @__PURE__ */ $(
|
|
133
133
|
"div",
|
|
134
134
|
{
|
|
@@ -138,7 +138,7 @@ const A = (t, d, i, l, r) => {
|
|
|
138
138
|
className: T.observations,
|
|
139
139
|
children: [
|
|
140
140
|
/* @__PURE__ */ c(
|
|
141
|
-
|
|
141
|
+
M,
|
|
142
142
|
{
|
|
143
143
|
id: "observations-title",
|
|
144
144
|
testId: E ? `observations-title-${y}` : "observations-title",
|
|
@@ -147,13 +147,13 @@ const A = (t, d, i, l, r) => {
|
|
|
147
147
|
children: /* @__PURE__ */ c("p", { children: y })
|
|
148
148
|
}
|
|
149
149
|
),
|
|
150
|
-
k ? /* @__PURE__ */ c(re, { groupedData:
|
|
151
|
-
|
|
150
|
+
k ? /* @__PURE__ */ c(re, { groupedData: _, title: y }) : /* @__PURE__ */ c(
|
|
151
|
+
j,
|
|
152
152
|
{
|
|
153
|
-
headers:
|
|
153
|
+
headers: q,
|
|
154
154
|
rows: [],
|
|
155
155
|
ariaLabel: o("OBSERVATIONS"),
|
|
156
|
-
loading:
|
|
156
|
+
loading: f,
|
|
157
157
|
errorStateMessage: L,
|
|
158
158
|
emptyStateMessage: U,
|
|
159
159
|
dataTestId: "observations-table"
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { y as we, A as z, B as xt, E as B, s as q, w as y, P as Ro, H as ye, S as R, I as _, L as k, O as N, Q as A, R as bs, X as ir, Z as $e, $ as U, a0 as Hn, a1 as Vn, a2 as dt, a3 as D, a4 as xs, a5 as cn, a6 as Be, a7 as ws, a8 as qt, a9 as zt, aa as $s, ab as Cs, ac as $n, ad as Ss, ae as Nr, af as Bt, ag as zo, ah as ks, ai as Es, aj as j, ak as Ur, al as Ms, am as Ds, an as sr, ao as As, ap as Ts, aq as zn, ar as Fs, as as Is, at as Z, au as Ps, av as Ls } from "./index-BPuADWI_.js";
|
|
2
2
|
var Os = (e) => e != null, qs = (e) => e.filter(Os);
|
|
3
3
|
function _s(e) {
|
|
4
4
|
return (...t) => {
|