@bahmni/widgets 0.0.1-dev.148 → 0.0.1-dev.150
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.
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsxs as b, jsx as a, Fragment as Y } from "react/jsx-runtime";
|
|
2
|
-
import { c as L, u as W, o as X, h as Z, f as ee, p as te, a as re, g as oe, b as ae, J as U, L as se, H as ne, d as de, t as ce, e as q, l as le } from "./index-
|
|
2
|
+
import { c as L, u as W, o as X, h as Z, f as ee, p as te, a as re, g as oe, b as ae, J as U, L as se, H as ne, d as de, t as ce, e as q, l as le } from "./index-BjvGB6TE.js";
|
|
3
3
|
import { useQuery as y } from "@tanstack/react-query";
|
|
4
4
|
import { useState as H, useMemo as g, useCallback as M } from "react";
|
|
5
5
|
import { useTranslation as me } from "react-i18next";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as d, jsxs as $ } from "react/jsx-runtime";
|
|
2
|
-
import { i as V, V as N, j as q, D as k, _ as w, x as K, k as Q, u as M, m as G, n as j, r as H, q as P, s as J, v as Y, O as x, J as z } from "./index-
|
|
2
|
+
import { i as V, V as N, j as q, D as k, _ as w, x as K, k as Q, u as M, m as G, n as j, r as H, q as P, s as J, v as Y, O as x, J as z } from "./index-BjvGB6TE.js";
|
|
3
3
|
import { useQueries as W, useQuery as X } from "@tanstack/react-query";
|
|
4
4
|
import { useRef as Z, useEffect as _, useMemo as O } from "react";
|
|
5
5
|
import { useTranslation as S } from "react-i18next";
|
|
@@ -72134,7 +72134,7 @@ const ws = (t, e) => t?.length === 0 ? !1 : e?.length === 0, dYe = async () => {
|
|
|
72134
72134
|
});
|
|
72135
72135
|
const i = mYe + a.toString();
|
|
72136
72136
|
return $t(i);
|
|
72137
|
-
}, Cde = "custom:(uuid,episodeUuid,patient,program,display,dateEnrolled,dateCompleted,location,voided,allowedStates,outcome,states:(uuid,startDate,endDate,voided,state:(uuid,concept:(uuid,display,name,names))),auditInfo,attributes)", wYe = (t) => `${br}/bahmniprogramenrollment?patient=${t}&v=${Cde}`, Tde = (t) => `${br}/bahmniprogramenrollment/${t}`, vYe = (t) => `${Tde(t)}?v=${Cde}`, EYe = async (t) => await $t(wYe(t)), yYe = async (t) => await $t(vYe(t)), VYe = async (t, e) => {
|
|
72137
|
+
}, Cde = "custom:(uuid,episodeUuid,patient,program,display,dateEnrolled,dateCompleted,location,voided,allowedStates,outcome,states:(uuid,startDate,endDate,voided,state:(uuid,concept:(uuid,display,name,names)),auditInfo),auditInfo,attributes)", wYe = (t) => `${br}/bahmniprogramenrollment?patient=${t}&v=${Cde}`, Tde = (t) => `${br}/bahmniprogramenrollment/${t}`, vYe = (t) => `${Tde(t)}?v=${Cde}`, EYe = async (t) => await $t(wYe(t)), yYe = async (t) => await $t(vYe(t)), VYe = async (t, e) => {
|
|
72138
72138
|
const r = {
|
|
72139
72139
|
uuid: t,
|
|
72140
72140
|
states: [
|
|
@@ -72156,15 +72156,13 @@ function Ode(t) {
|
|
|
72156
72156
|
const r = t.states.filter(
|
|
72157
72157
|
(n) => n.endDate !== null
|
|
72158
72158
|
).sort((n, a) => {
|
|
72159
|
-
const i = new Date(n.
|
|
72159
|
+
const i = new Date(n.auditInfo.dateCreated).getTime(), s = new Date(a.auditInfo.dateCreated).getTime();
|
|
72160
72160
|
return i - s;
|
|
72161
72161
|
});
|
|
72162
72162
|
e = r[r.length - 1];
|
|
72163
72163
|
} else
|
|
72164
72164
|
e = t.states.find((r) => r.endDate === null);
|
|
72165
|
-
return e ? PUe(
|
|
72166
|
-
e.state.concept.names
|
|
72167
|
-
) ?? e.state.concept.display : null;
|
|
72165
|
+
return e ? PUe(e.state.concept.names) ?? e.state.concept.display : null;
|
|
72168
72166
|
}
|
|
72169
72167
|
function Lde(t, e) {
|
|
72170
72168
|
if (e.length === 0)
|
|
@@ -76152,7 +76150,7 @@ function Qtt(t) {
|
|
|
76152
76150
|
return !n && !a ? 0 : n ? a ? new Date(a).getTime() - new Date(n).getTime() : -1 : 1;
|
|
76153
76151
|
});
|
|
76154
76152
|
}
|
|
76155
|
-
const YXe = "
|
|
76153
|
+
const YXe = "_resultsContainer_1c8ff_1", GXe = "_observation_1c8ff_9", JXe = "_groupContainer_1c8ff_17", XXe = "_rowContainer_1c8ff_21", QXe = "_groupLabel_1c8ff_26", eQe = "_rowLabel_1c8ff_35", tQe = "_rowValue_1c8ff_43", rQe = "_groupMembers_1c8ff_51", nQe = "_memberRow_1c8ff_57", oQe = "_memberLabel_1c8ff_62", aQe = "_memberValue_1c8ff_70", iQe = "_abnormalValue_1c8ff_78", sQe = "_rangeInfo_1c8ff_86", lQe = "_nestedGroup_1c8ff_96", cQe = "_nestedGroupLabel_1c8ff_103", dQe = "_nestedGroupMembers_1c8ff_112", rr = {
|
|
76156
76154
|
resultsContainer: YXe,
|
|
76157
76155
|
observation: GXe,
|
|
76158
76156
|
groupContainer: JXe,
|
|
@@ -76431,7 +76429,7 @@ function xQe(t) {
|
|
|
76431
76429
|
priority: n.priority,
|
|
76432
76430
|
orderedBy: n.requester.display,
|
|
76433
76431
|
orderedDate: a,
|
|
76434
|
-
status: n.status,
|
|
76432
|
+
status: n.status.toLowerCase(),
|
|
76435
76433
|
...i && i.length > 0 && { replaces: i },
|
|
76436
76434
|
...s && { note: s },
|
|
76437
76435
|
...c.length > 0 && {
|
|
@@ -77958,7 +77956,7 @@ function Zet(t) {
|
|
|
77958
77956
|
priority: r.priority,
|
|
77959
77957
|
orderedBy: r.requester.display,
|
|
77960
77958
|
orderedDate: n,
|
|
77961
|
-
status: r.status,
|
|
77959
|
+
status: r.status.toLowerCase(),
|
|
77962
77960
|
...a && a.length > 0 && { replaces: a },
|
|
77963
77961
|
...i && { note: i }
|
|
77964
77962
|
};
|
|
@@ -78594,7 +78592,7 @@ const rrt = () => {
|
|
|
78594
78592
|
},
|
|
78595
78593
|
{
|
|
78596
78594
|
type: "forms",
|
|
78597
|
-
component: nn(() => import("./FormsTable-
|
|
78595
|
+
component: nn(() => import("./FormsTable-DD9_nkDn.js"))
|
|
78598
78596
|
},
|
|
78599
78597
|
{
|
|
78600
78598
|
type: "labOrders",
|
|
@@ -78602,7 +78600,7 @@ const rrt = () => {
|
|
|
78602
78600
|
},
|
|
78603
78601
|
{
|
|
78604
78602
|
type: "observations",
|
|
78605
|
-
component: nn(() => import("./Observations-
|
|
78603
|
+
component: nn(() => import("./Observations-Inw_xlv1.js"))
|
|
78606
78604
|
},
|
|
78607
78605
|
{
|
|
78608
78606
|
type: "ordersControl",
|