@bahmni/home-app 0.0.1-dev.469 → 0.0.1-dev.472
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-DddJ0p1F-u74Jiu-D.js → DocumentsTable-D05Z8kWb-DzQ5bm6e.js} +61 -61
- package/dist/{FormsTable-DLC_vCD0-BhU8zSjO.js → FormsTable-DS8v_y5q-BRmywf2r.js} +67 -67
- package/dist/{LNWAZHJI-Dot2apDO.js → LNWAZHJI-DdY39os1.js} +2 -2
- package/dist/{MWZ6AO7Z-D6IBCgP5.js → MWZ6AO7Z-BUJGOmip.js} +2 -2
- package/dist/{Observations-Cwi0QkK8-BV77fUJw.js → Observations-UeuPSqCU-CwJXcB-L.js} +13 -13
- package/dist/{YPM2AS64-vr5zQari.js → YPM2AS64-C8dmMwSG.js} +1 -1
- package/dist/{index-t4eOD165.js → index-BZHrIUJp.js} +5 -5
- package/dist/{index-CXj_ccBI.js → index-Cee5-kEn.js} +19583 -19459
- package/dist/{index-sjgf7zfi-BXyDneou.js → index-Dyt17CgX-XFw_K91S.js} +1 -1
- package/dist/index.js +1 -1
- package/package.json +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsxs as S, jsx as n } from "react/jsx-runtime";
|
|
2
|
-
import { Q as z, a as G, u as U,
|
|
2
|
+
import { Q as z, a as G, u as U, y as H, g as x, r as J, s as Y, $ as j, G as W, J as P, K as X, Y as Z, c as ee, M as ae, v as se, w as V, W as re, A as te, H as ie, F as oe, I as ne, L as de, N as le } from "./index-Cee5-kEn.js";
|
|
3
3
|
import { useQueries as ce, useQuery as ue } from "@tanstack/react-query";
|
|
4
|
-
import { useRef as pe, useEffect as L, useMemo as
|
|
4
|
+
import { useRef as pe, useEffect as L, useMemo as E } from "react";
|
|
5
5
|
const me = "Observations-module_observations__RKSyo", be = "Observations-module_title__TJL3z", he = "Observations-module_wrapper__muk2L", ve = "Observations-module_secondary__14nuS", R = {
|
|
6
6
|
observations: me,
|
|
7
7
|
title: be,
|
|
@@ -31,7 +31,7 @@ const me = "Observations-module_observations__RKSyo", be = "Observations-module_
|
|
|
31
31
|
t.header.referenceRange && /* @__PURE__ */ n("span", { className: R.secondary, children: t.header.referenceRange })
|
|
32
32
|
] }), c = u("OBSERVATIONS_RECORDED_BY", {
|
|
33
33
|
provider: t.provider
|
|
34
|
-
}), b = s.effectiveDateTime ? ie(s.effectiveDateTime, u, !0).formattedResult : void 0,
|
|
34
|
+
}), b = s.effectiveDateTime ? ie(s.effectiveDateTime, u, !0).formattedResult : void 0, T = /* @__PURE__ */ S("div", { className: R.wrapper, children: [
|
|
35
35
|
/* @__PURE__ */ n("span", { children: c }),
|
|
36
36
|
b && /* @__PURE__ */ n("span", { className: R.secondary, children: b })
|
|
37
37
|
] }), h = s.display, v = s.observationValue?.isAbnormal ? "abnormal-obs" : "obs", O = d ? `${d}-${v}-${h}-${o}-${l}` : `${v}-${h}-${o}-${l}`;
|
|
@@ -40,7 +40,7 @@ const me = "Observations-module_observations__RKSyo", be = "Observations-module_
|
|
|
40
40
|
{
|
|
41
41
|
header: m,
|
|
42
42
|
value: i,
|
|
43
|
-
info:
|
|
43
|
+
info: T,
|
|
44
44
|
id: O,
|
|
45
45
|
testId: O,
|
|
46
46
|
ariaLabel: O
|
|
@@ -147,7 +147,7 @@ const me = "Observations-module_observations__RKSyo", be = "Observations-module_
|
|
|
147
147
|
type: "error"
|
|
148
148
|
}), p.current.add(0)) : !a && y && p.current.clear();
|
|
149
149
|
}, [b, m, c]);
|
|
150
|
-
const
|
|
150
|
+
const T = E(() => b.map((a) => a.data?.uuid).filter((a) => !!a), [b]), h = E(() => [.../* @__PURE__ */ new Set([...T, ...r])], [T, r]), v = E(() => u.length === 0 ? !0 : b.every((a) => !a.isLoading), [b, u.length]), O = e === "latest" || e === "latest-encounter", F = x(
|
|
151
151
|
l,
|
|
152
152
|
o
|
|
153
153
|
), {
|
|
@@ -162,18 +162,18 @@ const me = "Observations-module_observations__RKSyo", be = "Observations-module_
|
|
|
162
162
|
o,
|
|
163
163
|
e
|
|
164
164
|
),
|
|
165
|
-
queryFn: () => O ?
|
|
165
|
+
queryFn: () => O ? J(
|
|
166
166
|
i,
|
|
167
167
|
h,
|
|
168
168
|
o
|
|
169
|
-
) :
|
|
169
|
+
) : Y(
|
|
170
170
|
i,
|
|
171
171
|
h,
|
|
172
172
|
o
|
|
173
173
|
),
|
|
174
174
|
enabled: !!i && h.length > 0 && v && !F
|
|
175
175
|
});
|
|
176
|
-
|
|
176
|
+
j(
|
|
177
177
|
(a) => {
|
|
178
178
|
a.patientUUID === i && a.updatedConcepts.size > 0 && [...a.updatedConcepts.keys()].some(
|
|
179
179
|
(y) => h.includes(y)
|
|
@@ -187,7 +187,7 @@ const me = "Observations-module_observations__RKSyo", be = "Observations-module_
|
|
|
187
187
|
type: "error"
|
|
188
188
|
});
|
|
189
189
|
}, [N]);
|
|
190
|
-
const I =
|
|
190
|
+
const I = E(() => {
|
|
191
191
|
if (!_) return [];
|
|
192
192
|
let a = W(_);
|
|
193
193
|
e === "latest-encounter" && (a = P(a));
|
|
@@ -197,12 +197,12 @@ const me = "Observations-module_observations__RKSyo", be = "Observations-module_
|
|
|
197
197
|
{ key: "name", header: "name" },
|
|
198
198
|
{ key: "value", header: "value" },
|
|
199
199
|
{ key: "form", header: "form" }
|
|
200
|
-
], A = w || !v, D = N && v,
|
|
200
|
+
], A = w || !v, D = N && v, Q = (!_ || _.entry?.length === 0 || h.length === 0) && v, q = D ? c("ERROR_FETCHING_OBSERVATIONS") : null, C = Q ? c("NO_OBSERVATIONS_FOUND") : void 0, M = I.length > 0 && !A && !D, g = d.titleTranslationKey, f = g ? c(g) : "";
|
|
201
201
|
return /* @__PURE__ */ S(
|
|
202
202
|
"div",
|
|
203
203
|
{
|
|
204
204
|
id: "observations",
|
|
205
|
-
"data-testid":
|
|
205
|
+
"data-testid": g ? `observations-${f}` : "observations",
|
|
206
206
|
"aria-label": "observations-aria-label",
|
|
207
207
|
className: R.observations,
|
|
208
208
|
children: [
|
|
@@ -210,7 +210,7 @@ const me = "Observations-module_observations__RKSyo", be = "Observations-module_
|
|
|
210
210
|
ee,
|
|
211
211
|
{
|
|
212
212
|
id: "observations-title",
|
|
213
|
-
testId:
|
|
213
|
+
testId: g ? `observations-title-${f}` : "observations-title",
|
|
214
214
|
title: f,
|
|
215
215
|
className: R.title,
|
|
216
216
|
children: /* @__PURE__ */ n("p", { children: f })
|
|
@@ -230,7 +230,7 @@ const me = "Observations-module_observations__RKSyo", be = "Observations-module_
|
|
|
230
230
|
rows: [],
|
|
231
231
|
ariaLabel: c("OBSERVATIONS"),
|
|
232
232
|
loading: A,
|
|
233
|
-
errorStateMessage:
|
|
233
|
+
errorStateMessage: q,
|
|
234
234
|
emptyStateMessage: C ?? c("NO_OBSERVATIONS_AVAILABLE"),
|
|
235
235
|
dataTestId: "observations-table"
|
|
236
236
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ad as we, ae as z, af as xt, ag as B, ab as q, ac as y, ah as Ro, ai as ye, aj as R, ak as _, al as k, am as N, an as A, ao as bs, ap as ir, aq as $e, ar as U, as as Hn, at as Vn, au as dt, av as D, aw as xs, ax as cn, ay as Be, az as ws, aA as qt, aB as zt, aC as $s, aD as Cs, aE as $n, aF as Ss, aG as Nr, aH as Bt, aI as zo, aJ as ks, aK as Es, aL as j, aM as Ur, aN as Ms, aO as Ds, aP as sr, aQ as As, aR as Ts, aS as zn, aT as Fs, aU as Is, aV as Z, aW as Ps, aX as Ls } from "./index-
|
|
1
|
+
import { ad as we, ae as z, af as xt, ag as B, ab as q, ac as y, ah as Ro, ai as ye, aj as R, ak as _, al as k, am as N, an as A, ao as bs, ap as ir, aq as $e, ar as U, as as Hn, at as Vn, au as dt, av as D, aw as xs, ax as cn, ay as Be, az as ws, aA as qt, aB as zt, aC as $s, aD as Cs, aE as $n, aF as Ss, aG as Nr, aH as Bt, aI as zo, aJ as ks, aK as Es, aL as j, aM as Ur, aN as Ms, aO as Ds, aP as sr, aQ as As, aR as Ts, aS as zn, aT as Fs, aU as Is, aV as Z, aW as Ps, aX as Ls } from "./index-Cee5-kEn.js";
|
|
2
2
|
var Os = (e) => e != null, qs = (e) => e.filter(Os);
|
|
3
3
|
function _s(e) {
|
|
4
4
|
return (...t) => {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as e, jsxs as d, Fragment as _ } from "react/jsx-runtime";
|
|
2
|
-
import { a4 as E, a5 as f, u as m, a6 as u, a7 as O, a8 as g, a as h, a9 as H } from "./index-
|
|
2
|
+
import { a4 as E, a5 as f, u as m, a6 as u, a7 as O, a8 as g, a as h, a9 as H } from "./index-Cee5-kEn.js";
|
|
3
3
|
import "@tanstack/react-query";
|
|
4
4
|
import { useRef as N, useEffect as S } from "react";
|
|
5
5
|
import { useNavigate as M, useLocation as p } from "react-router";
|
|
@@ -15,9 +15,9 @@ const I = "HomePageGrid-module_headerOffset__xmJ-q", P = {
|
|
|
15
15
|
className: P.headerOffset,
|
|
16
16
|
testId: "home-modules"
|
|
17
17
|
}
|
|
18
|
-
), D = "HomePageHeader-module_locationSelector__foYmn",
|
|
18
|
+
), D = "HomePageHeader-module_locationSelector__foYmn", T = {
|
|
19
19
|
locationSelector: D
|
|
20
|
-
},
|
|
20
|
+
}, C = () => {
|
|
21
21
|
const { t: a } = m();
|
|
22
22
|
return /* @__PURE__ */ e(
|
|
23
23
|
u,
|
|
@@ -26,7 +26,7 @@ const I = "HomePageGrid-module_headerOffset__xmJ-q", P = {
|
|
|
26
26
|
brandPrefix: a("HOME_LABEL"),
|
|
27
27
|
brandHref: "/",
|
|
28
28
|
globalFeatures: [
|
|
29
|
-
/* @__PURE__ */ e("div", { className:
|
|
29
|
+
/* @__PURE__ */ e("div", { className: T.locationSelector, children: /* @__PURE__ */ e(g, {}) }, "location")
|
|
30
30
|
],
|
|
31
31
|
userMenu: /* @__PURE__ */ e(O, {})
|
|
32
32
|
}
|
|
@@ -43,7 +43,7 @@ const I = "HomePageGrid-module_headerOffset__xmJ-q", P = {
|
|
|
43
43
|
timeout: H
|
|
44
44
|
}), s({ pathname: r, search: n, hash: c }, { replace: !0, state: null }));
|
|
45
45
|
}, [o, t, a, s, r, n, c]), /* @__PURE__ */ d(_, { children: [
|
|
46
|
-
/* @__PURE__ */ e(
|
|
46
|
+
/* @__PURE__ */ e(C, {}),
|
|
47
47
|
/* @__PURE__ */ e("main", { className: A.homePageBody, children: /* @__PURE__ */ e(y, {}) })
|
|
48
48
|
] });
|
|
49
49
|
};
|