@bahmni/clinical-app 0.0.1-dev.120 → 0.0.1-dev.121
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-1YKJ9smH-DWyevjGq.js → FormsTable-1YKJ9smH-BM7aXhYn.js} +1 -1
- package/dist/{LNWAZHJI-DV4NqaJJ.js → LNWAZHJI-C_dlG_LE.js} +2 -2
- package/dist/{MWZ6AO7Z-B5oL9AMg.js → MWZ6AO7Z-DN8ct8ry.js} +2 -2
- package/dist/{Observations-DUCNXnZJ-BZafbYSf.js → Observations-DUCNXnZJ-BOPLq1MC.js} +1 -1
- package/dist/{YPM2AS64-wGYsxxOA.js → YPM2AS64-CmoJrkTn.js} +1 -1
- package/dist/{index-DU0CcPEi.js → index-DwCJMWny.js} +32 -20
- package/dist/index.js +1 -1
- package/dist/locales/locale_en.json +1 -0
- package/dist/pages/ConsultationPage.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as o, jsxs as p, Fragment as J } from "react/jsx-runtime";
|
|
2
|
-
import { u as Q, C as Y, K as W, a as f, H as Z, R as ee, q as V, O as re, T as ae, L as oe, b as ne, w as $, G as te, I as N, c as se, n as de, o as ie, r as me } from "./index-
|
|
2
|
+
import { u as Q, C as Y, K as W, a as f, H as Z, R as ee, q as V, O as re, T as ae, L as oe, b as ne, w as $, G as te, I as N, c as se, n as de, o as ie, r as me } from "./index-DwCJMWny.js";
|
|
3
3
|
import { useState as x, useMemo as _, useCallback as g } from "react";
|
|
4
4
|
import { createPortal as le } from "react-dom";
|
|
5
5
|
const ce = "_formsTableBody_1pd36_1", ue = "_customAccordianItem_1pd36_6", pe = "_formContent_1pd36_18", be = "_formDetailsContainer_1pd36_25", _e = "_observation_1pd36_30", fe = "_groupContainer_1pd36_39", ge = "_rowContainer_1pd36_43", Ne = "_groupLabel_1pd36_48", he = "_rowLabel_1pd36_58", ye = "_rowValue_1pd36_67", ve = "_groupMembers_1pd36_75", Me = "_memberRow_1pd36_81", Le = "_memberLabel_1pd36_86", Ae = "_memberValue_1pd36_94", Ce = "_abnormalValue_1pd36_102", Oe = "_commentSection_1pd36_110", Re = "_commentText_1pd36_116", Te = "_nestedGroup_1pd36_125", Fe = "_nestedGroupLabel_1pd36_132", De = "_nestedGroupMembers_1pd36_141", r = {
|
|
@@ -1,5 +1,5 @@
|
|
|
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, j as f, k as e } from "./index-
|
|
1
|
+
import { c, T as l, P as m, a as i, D as u, Q as v } from "./YPM2AS64-CmoJrkTn.js";
|
|
2
|
+
import { i as d, j as f, k as e } from "./index-DwCJMWny.js";
|
|
3
3
|
var p = (a) => {
|
|
4
4
|
const [r, t] = c({
|
|
5
5
|
prefix: "TanstackQueryDevtools"
|
|
@@ -1,5 +1,5 @@
|
|
|
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 { i as v, j as C, k as e } from "./index-
|
|
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-CmoJrkTn.js";
|
|
2
|
+
import { i as v, j as C, k as e } from "./index-DwCJMWny.js";
|
|
3
3
|
var h = (t) => {
|
|
4
4
|
const [r, o] = s({
|
|
5
5
|
prefix: "TanstackQueryDevtools"
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsxs as S, jsx as c } from "react/jsx-runtime";
|
|
2
|
-
import { C as M, d as F, u as T, e as G, f as B, a as Q, J as U, q as k, X as x, D as _, Q as K, A as X, g as H, h as J, t as j } from "./index-
|
|
2
|
+
import { C as M, d as F, u as T, e as G, f as B, a as Q, J as U, q as k, X as x, D as _, Q as K, A as X, g as H, h as J, t as j } from "./index-DwCJMWny.js";
|
|
3
3
|
import { useRef as P, useEffect as O, useMemo as m } from "react";
|
|
4
4
|
const W = "normal", Y = "http://terminology.hl7.org/CodeSystem/referencerange-meaning", Z = "A", z = "http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation", ee = (e, n) => e?.date ? x(e.date, n).formattedResult : n("DATE_ERROR_PARSE"), te = (e) => {
|
|
5
5
|
if (!e.observationValue?.value)
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { l as we, m as z, p as xt, s as B, j as q, k as y, P as Ro, v as ye, S as R, x as _, y as k, z as N, B as A, E as bs, F as ir, M as $e, N as U, U as Hn, V as Vn, W as dt, Y as D, Z as xs, _ as cn, $ as Be, a0 as ws, a1 as qt, a2 as zt, a3 as $s, a4 as Cs, a5 as $n, a6 as Ss, a7 as Nr, a8 as Bt, a9 as zo, aa as ks, ab as Es, ac as j, ad as Ur, ae as Ms, af as Ds, ag as sr, ah as As, ai as Ts, aj as zn, ak as Fs, al as Is, am as Z, an as Ps, ao as Ls } from "./index-
|
|
1
|
+
import { l as we, m as z, p as xt, s as B, j as q, k as y, P as Ro, v as ye, S as R, x as _, y as k, z as N, B as A, E as bs, F as ir, M as $e, N as U, U as Hn, V as Vn, W as dt, Y as D, Z as xs, _ as cn, $ as Be, a0 as ws, a1 as qt, a2 as zt, a3 as $s, a4 as Cs, a5 as $n, a6 as Ss, a7 as Nr, a8 as Bt, a9 as zo, aa as ks, ab as Es, ac as j, ad as Ur, ae as Ms, af as Ds, ag as sr, ah as As, ai as Ts, aj as zn, ak as Fs, al as Is, am as Z, an as Ps, ao as Ls } from "./index-DwCJMWny.js";
|
|
2
2
|
var Os = (e) => e != null, qs = (e) => e.filter(Os);
|
|
3
3
|
function _s(e) {
|
|
4
4
|
return (...t) => {
|
|
@@ -156868,11 +156868,11 @@ const dXe = () => {
|
|
|
156868
156868
|
},
|
|
156869
156869
|
{
|
|
156870
156870
|
type: "forms",
|
|
156871
|
-
component: lazy$1(() => import("./FormsTable-1YKJ9smH-
|
|
156871
|
+
component: lazy$1(() => import("./FormsTable-1YKJ9smH-BM7aXhYn.js"))
|
|
156872
156872
|
},
|
|
156873
156873
|
{
|
|
156874
156874
|
type: "observations",
|
|
156875
|
-
component: lazy$1(() => import("./Observations-DUCNXnZJ-
|
|
156875
|
+
component: lazy$1(() => import("./Observations-DUCNXnZJ-BOPLq1MC.js"))
|
|
156876
156876
|
}
|
|
156877
156877
|
];
|
|
156878
156878
|
class t1 {
|
|
@@ -158753,7 +158753,7 @@ var displayValue = (n, e = !1) => {
|
|
|
158753
158753
|
const e = render(() => {
|
|
158754
158754
|
const a = this, [r] = this.#o, [l] = this.#d, [f] = this.#f, [d] = this.#u, [h] = this.#p, [m] = this.#t;
|
|
158755
158755
|
let A;
|
|
158756
|
-
return this.#s ? A = this.#s : (A = lazy(() => import("./LNWAZHJI-
|
|
158756
|
+
return this.#s ? A = this.#s : (A = lazy(() => import("./LNWAZHJI-C_dlG_LE.js")), this.#s = A), setupStyleSheet(this.#i, this.#l), createComponent(A, mergeProps({
|
|
158757
158757
|
get queryFlavor() {
|
|
158758
158758
|
return a.#n;
|
|
158759
158759
|
},
|
|
@@ -158851,7 +158851,7 @@ var displayValue = (n, e = !1) => {
|
|
|
158851
158851
|
const e = render(() => {
|
|
158852
158852
|
const a = this, [r] = this.#o, [l] = this.#d, [f] = this.#f, [d] = this.#u, [h] = this.#p, [m] = this.#t, [A] = this.#s;
|
|
158853
158853
|
let g;
|
|
158854
|
-
return this.#c ? g = this.#c : (g = lazy(() => import("./MWZ6AO7Z-
|
|
158854
|
+
return this.#c ? g = this.#c : (g = lazy(() => import("./MWZ6AO7Z-DN8ct8ry.js")), this.#c = g), setupStyleSheet(this.#i, this.#l), createComponent(g, mergeProps({
|
|
158855
158855
|
get queryFlavor() {
|
|
158856
158856
|
return a.#n;
|
|
158857
158857
|
},
|
|
@@ -204786,11 +204786,27 @@ const getDefaultDashboard = (n) => {
|
|
|
204786
204786
|
}
|
|
204787
204787
|
}
|
|
204788
204788
|
], ConsultationPage = () => {
|
|
204789
|
-
const { t: n } = useTranslation(), { clinicalConfig: e } = useClinicalConfig(), { userPrivileges: a } = cXe(), { addNotification: r } = O1(), [l, f] = useState(!1), [d] = useSearchParams(), h = useObservationFormsStore((
|
|
204790
|
-
const
|
|
204791
|
-
return
|
|
204792
|
-
}, [d]), A =
|
|
204793
|
-
|
|
204789
|
+
const { t: n } = useTranslation(), { clinicalConfig: e } = useClinicalConfig(), { userPrivileges: a } = cXe(), { addNotification: r } = O1(), [l, f] = useState(!1), [d] = useSearchParams(), h = useObservationFormsStore((y) => y.viewingForm), m = useMemo(() => {
|
|
204790
|
+
const y = d.get("episodeUuid");
|
|
204791
|
+
return y ? y.split(",").map((x) => x.trim()).filter(Boolean) : [];
|
|
204792
|
+
}, [d]), A = d.get("currentDashboard"), g = useMemo(() => e ? A ? e.dashboards?.find(
|
|
204793
|
+
(y) => y.name === A
|
|
204794
|
+
) : getDefaultDashboard(e.dashboards || []) : null, [e, A]), w = g?.url ?? null, { dashboardConfig: E } = useDashboardConfig(w), C = useMemo(() => E ? getSidebarItems(E, n) : [], [E, n]), { activeItemId: M, handleItemClick: v } = m72(C);
|
|
204795
|
+
if (!e)
|
|
204796
|
+
return /* @__PURE__ */ jsx(w72, { description: n("LOADING_CLINICAL_CONFIG"), role: "status" });
|
|
204797
|
+
if (!a)
|
|
204798
|
+
return /* @__PURE__ */ jsx(w72, { description: n("LOADING_USER_PRIVILEGES"), role: "status" });
|
|
204799
|
+
if (!g) {
|
|
204800
|
+
const y = A ? n("ERROR_DASHBOARD_NOT_CONFIGURED", {
|
|
204801
|
+
dashboardName: A
|
|
204802
|
+
}) : n("ERROR_NO_DEFAULT_DASHBOARD");
|
|
204803
|
+
return r({
|
|
204804
|
+
title: n("ERROR_DEFAULT_TITLE"),
|
|
204805
|
+
message: y,
|
|
204806
|
+
type: "error"
|
|
204807
|
+
}), /* @__PURE__ */ jsx(w72, { description: n("ERROR_LOADING_DASHBOARD"), role: "alert" });
|
|
204808
|
+
}
|
|
204809
|
+
return E ? /* @__PURE__ */ jsx(ClinicalAppProvider, { episodeUuids: m, children: /* @__PURE__ */ jsx(
|
|
204794
204810
|
h72,
|
|
204795
204811
|
{
|
|
204796
204812
|
headerWSideNav: /* @__PURE__ */ jsx(
|
|
@@ -204798,9 +204814,9 @@ const getDefaultDashboard = (n) => {
|
|
|
204798
204814
|
{
|
|
204799
204815
|
breadcrumbItems,
|
|
204800
204816
|
globalActions,
|
|
204801
|
-
sideNavItems:
|
|
204802
|
-
activeSideNavItemId:
|
|
204803
|
-
onSideNavItemClick:
|
|
204817
|
+
sideNavItems: C,
|
|
204818
|
+
activeSideNavItemId: M,
|
|
204819
|
+
onSideNavItemClick: v,
|
|
204804
204820
|
isRail: l
|
|
204805
204821
|
}
|
|
204806
204822
|
),
|
|
@@ -204824,8 +204840,8 @@ const getDefaultDashboard = (n) => {
|
|
|
204824
204840
|
children: /* @__PURE__ */ jsx(
|
|
204825
204841
|
DashboardContainer,
|
|
204826
204842
|
{
|
|
204827
|
-
sections:
|
|
204828
|
-
activeItemId:
|
|
204843
|
+
sections: E.sections,
|
|
204844
|
+
activeItemId: M
|
|
204829
204845
|
}
|
|
204830
204846
|
)
|
|
204831
204847
|
}
|
|
@@ -204835,15 +204851,11 @@ const getDefaultDashboard = (n) => {
|
|
|
204835
204851
|
actionArea: /* @__PURE__ */ jsx(
|
|
204836
204852
|
ConsultationPad,
|
|
204837
204853
|
{
|
|
204838
|
-
onClose: () => f((
|
|
204854
|
+
onClose: () => f((y) => !y)
|
|
204839
204855
|
}
|
|
204840
204856
|
)
|
|
204841
204857
|
}
|
|
204842
|
-
) }) : /* @__PURE__ */ jsx(w72, { description: n("LOADING_DASHBOARD_CONFIG"), role: "status" })
|
|
204843
|
-
title: n("ERROR_DEFAULT_TITLE"),
|
|
204844
|
-
message: n("ERROR_NO_DEFAULT_DASHBOARD"),
|
|
204845
|
-
type: "error"
|
|
204846
|
-
}), /* @__PURE__ */ jsx(w72, { description: n("ERROR_LOADING_DASHBOARD"), role: "alert" })) : /* @__PURE__ */ jsx(w72, { description: n("LOADING_USER_PRIVILEGES"), role: "status" }) : /* @__PURE__ */ jsx(w72, { description: n("LOADING_CLINICAL_CONFIG"), role: "status" });
|
|
204858
|
+
) }) : /* @__PURE__ */ jsx(w72, { description: n("LOADING_DASHBOARD_CONFIG"), role: "status" });
|
|
204847
204859
|
}, ClinicalConfigProvider = ({
|
|
204848
204860
|
children: n
|
|
204849
204861
|
}) => {
|
package/dist/index.js
CHANGED
|
@@ -113,6 +113,7 @@
|
|
|
113
113
|
"ERROR_CONSULTATION_PAD_NOT_FOUND": "Consultation pad configuration not found",
|
|
114
114
|
"ERROR_CONSULTATION_TITLE": "Consultation Error",
|
|
115
115
|
"ERROR_DASHBOARD_CONFIG_TITLE": "Department Configuration Error",
|
|
116
|
+
"ERROR_DASHBOARD_NOT_CONFIGURED": "{{dashboardName}} is not configured",
|
|
116
117
|
"ERROR_DEFAULT_TITLE": "Error",
|
|
117
118
|
"ERROR_DUPLICATE_ACTIVE_MEDICATION": "One or more drugs you are trying to order are already active. Please change the start date of the conflicting drug or remove them from the new prescription.",
|
|
118
119
|
"ERROR_FETCHING_CLINICAL_DATA": "Invalid episode uuid",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ConsultationPage.d.ts","sourceRoot":"","sources":["../../src/pages/ConsultationPage.tsx"],"names":[],"mappings":"AAUA,OAAO,KAAsC,MAAM,OAAO,CAAC;AAgD3D;;;;;;;;GAQG;AACH,QAAA,MAAM,gBAAgB,EAAE,KAAK,CAAC,
|
|
1
|
+
{"version":3,"file":"ConsultationPage.d.ts","sourceRoot":"","sources":["../../src/pages/ConsultationPage.tsx"],"names":[],"mappings":"AAUA,OAAO,KAAsC,MAAM,OAAO,CAAC;AAgD3D;;;;;;;;GAQG;AACH,QAAA,MAAM,gBAAgB,EAAE,KAAK,CAAC,EAiH7B,CAAC;AAEF,eAAe,gBAAgB,CAAC"}
|