@bahmni/clinical-app 0.0.1-dev.450 → 0.0.1-dev.451
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/{ConsultationPage-BR2u64Uf.js → ConsultationPage-CSuJ2AyA.js} +2 -2
- package/dist/{DocumentsTable-EFrvR1Y7-bCHfhR2_.js → DocumentsTable-cTYcbFbC-gO9nbYh4.js} +1 -1
- package/dist/{FormsTable-Bbqg3PV1-DBHayGAH.js → FormsTable-BkZ7CAhs-B75t4NlN.js} +1 -1
- package/dist/{LNWAZHJI-BpfW7OSd.js → LNWAZHJI-Ck7o7Ghg.js} +2 -2
- package/dist/{MWZ6AO7Z-BMRU_FsJ.js → MWZ6AO7Z-CpoFA_gI.js} +2 -2
- package/dist/{Observations-CJiVrL61-Bxewg-2c.js → Observations-ByaPCQhx-CndOctkY.js} +1 -1
- package/dist/{YPM2AS64-CYt14rJl.js → YPM2AS64-D6_BOozD.js} +1 -1
- package/dist/{hook-BPP368lo.js → hook-Bfvw3hcE.js} +1 -1
- package/dist/{index-CAsc6r1V.js → index-B4nadjEE.js} +3 -3
- package/dist/{index-yvHhX0be.js → index-CFA4g7FG.js} +171 -169
- package/dist/{index-D8KumN-s.js → index-DfwaWuXc.js} +1 -1
- package/dist/index.js +1 -1
- package/package.json +1 -1
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { jsxs, jsx, Fragment } from "react/jsx-runtime";
|
|
2
|
-
import { u as useTranslation, E as q, F as ENCOUNTER_CONCEPTS_URL, L as Jr, M as Yo, N as oqt, O as Ns, P as BAHMNI_USER_LOCATION_COOKIE_NAME, Q as bc, S as D3, d as d0, V as Vb2, T as Cb2, X as vb2, Z as jx2, $ as il1, a0 as ub2, a1 as U_, a2 as Wi, a3 as rf, a4 as b_, a5 as tf, a6 as Ps, a7 as dist, a8 as nt, a9 as ge, aa as us, ab as ob, ac as wb, ad as _b, ae as Lb2, af as Ab2, ag as ab2, ah as Bz2, z as z1, y as yp, ai as bb, aj as cg, ak as Tb, al as Uy2, am as cb2, an as qb2, ao as Tb2, ap as Db2, j as f21, aq as Sb, ar as vb, as as Rb, at as ev, au as Mb2, av as vv, aw as qs, ax as nv, ay as Wv, az as mb, aA as Ib, aB as Lb, aC as CLINICAL_V2_CONFIG_BASE_URL, aD as qb, aE as Y_, aF as fn, aG as Mb, aH as cb, aI as Jv, aJ as oL2, aK as sv, aL as Fb, aM as jb, aN as Zv, aO as gb2, aP as fT, aQ as sb, aR as Vb, aS as Rt, aT as Yr, aU as oT, aV as lT, k as kr, aW as $v, aX as av, aY as lv, f as bKt, aZ as Wb2, a_ as jb2, a$ as Dv, b0 as Cv, b1 as Nb2, b2 as se, b3 as STOP_REASON_VALUESET_EXPAND_URL, b4 as Be, b5 as T_, b6 as STOP_REASON_VALUESET_TITLE, b7 as Gf, b8 as os, b9 as Pb2, ba as Iv, bb as xv, bc as i0, bd as rb, be as a0, bf as dn, bg as N4, bh as c3, bi as Bb2, bj as C_, bk as Lv, bl as Mv, bm as Uv, bn as Fv, bo as Ki, bp as cs, bq as gv, br as Ab, bs as dT, bt as Qv, bu as Xv, bv as Kv, bw as CDSS_SERVER_CONFIG_URL, bx as Nb, by as ec, bz as M0, bA as Ge, bB as v21, bC as yb2, bD as XE, bE as yv, bF as Ev, bG as mb2, bH as Xt, bI as bv, bJ as _v, bK as wv, bL as r21, bM as Xn1, bN as u0, bO as Tv, bP as Mi, bQ as g_, bR as BAHMNI_CLINICAL_PATH, bS as k_, bT as cw, bU as bb2, bV as _b2, bW as $z2, bX as rn1, bY as x_, bZ as u21 } from "./index-
|
|
2
|
+
import { u as useTranslation, E as q, F as ENCOUNTER_CONCEPTS_URL, L as Jr, M as Yo, N as oqt, O as Ns, P as BAHMNI_USER_LOCATION_COOKIE_NAME, Q as bc, S as D3, d as d0, V as Vb2, T as Cb2, X as vb2, Z as jx2, $ as il1, a0 as ub2, a1 as U_, a2 as Wi, a3 as rf, a4 as b_, a5 as tf, a6 as Ps, a7 as dist, a8 as nt, a9 as ge, aa as us, ab as ob, ac as wb, ad as _b, ae as Lb2, af as Ab2, ag as ab2, ah as Bz2, z as z1, y as yp, ai as bb, aj as cg, ak as Tb, al as Uy2, am as cb2, an as qb2, ao as Tb2, ap as Db2, j as f21, aq as Sb, ar as vb, as as Rb, at as ev, au as Mb2, av as vv, aw as qs, ax as nv, ay as Wv, az as mb, aA as Ib, aB as Lb, aC as CLINICAL_V2_CONFIG_BASE_URL, aD as qb, aE as Y_, aF as fn, aG as Mb, aH as cb, aI as Jv, aJ as oL2, aK as sv, aL as Fb, aM as jb, aN as Zv, aO as gb2, aP as fT, aQ as sb, aR as Vb, aS as Rt, aT as Yr, aU as oT, aV as lT, k as kr, aW as $v, aX as av, aY as lv, f as bKt, aZ as Wb2, a_ as jb2, a$ as Dv, b0 as Cv, b1 as Nb2, b2 as se, b3 as STOP_REASON_VALUESET_EXPAND_URL, b4 as Be, b5 as T_, b6 as STOP_REASON_VALUESET_TITLE, b7 as Gf, b8 as os, b9 as Pb2, ba as Iv, bb as xv, bc as i0, bd as rb, be as a0, bf as dn, bg as N4, bh as c3, bi as Bb2, bj as C_, bk as Lv, bl as Mv, bm as Uv, bn as Fv, bo as Ki, bp as cs, bq as gv, br as Ab, bs as dT, bt as Qv, bu as Xv, bv as Kv, bw as CDSS_SERVER_CONFIG_URL, bx as Nb, by as ec, bz as M0, bA as Ge, bB as v21, bC as yb2, bD as XE, bE as yv, bF as Ev, bG as mb2, bH as Xt, bI as bv, bJ as _v, bK as wv, bL as r21, bM as Xn1, bN as u0, bO as Tv, bP as Mi, bQ as g_, bR as BAHMNI_CLINICAL_PATH, bS as k_, bT as cw, bU as bb2, bV as _b2, bW as $z2, bX as rn1, bY as x_, bZ as u21 } from "./index-CFA4g7FG.js";
|
|
3
3
|
import * as React from "react";
|
|
4
4
|
import React__default, { createContext, useContext, useState, useCallback, useEffect, useMemo, Children, useRef, useLayoutEffect, forwardRef, isValidElement, cloneElement, useReducer, Component, useImperativeHandle, PureComponent, createRef, useSyncExternalStore, Suspense } from "react";
|
|
5
5
|
import { useQuery, useQueries, useQueryClient } from "@tanstack/react-query";
|
|
6
6
|
import { useNavigate, useSearchParams } from "react-router-dom";
|
|
7
|
-
import { u as useClinicalConfig } from "./hook-
|
|
7
|
+
import { u as useClinicalConfig } from "./hook-Bfvw3hcE.js";
|
|
8
8
|
import * as ReactDOM from "react-dom";
|
|
9
9
|
import ReactDOM__default, { createPortal } from "react-dom";
|
|
10
10
|
var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as d, jsxs as h, Fragment as Y } from "react/jsx-runtime";
|
|
2
|
-
import { d as x, u as G, z as J, J as W, Y as X, h as Z, I as ee, a as te } from "./index-
|
|
2
|
+
import { d as x, u as G, z as J, J as W, Y as X, h as Z, I as ee, a as te } from "./index-CFA4g7FG.js";
|
|
3
3
|
import { useQuery as ae } from "@tanstack/react-query";
|
|
4
4
|
import { useState as l, useCallback as _, useEffect as D, useMemo as p } from "react";
|
|
5
5
|
const ne = "DocumentsTable-module_documentsTableBody__6iR3w", oe = "DocumentsTable-module_viewAttachmentsLink__aQ1on", de = "DocumentsTable-module_documentViewerContainer__F5m8D", re = "DocumentsTable-module_attachmentItem__17KA7", se = "DocumentsTable-module_attachmentCounter__WFiI3", me = "DocumentsTable-module_attachmentError__RI4U2", ce = "DocumentsTable-module_documentIframe__ptq5I", le = "DocumentsTable-module_documentImage__KQVgS", r = {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as n, jsxs as q, Fragment as ne } from "react/jsx-runtime";
|
|
2
|
-
import { u as ie, d as de, y as le, k as me, H as ue, b as ce, m as fe, c as ye, w as he, e as Ne, f as ge, R as Te, h as pe, g as V, i as z, Y as Ie, I as K, U as Oe, W as be, a as Ae, A as Ee, j as _e } from "./index-
|
|
2
|
+
import { u as ie, d as de, y as le, k as me, H as ue, b as ce, m as fe, c as ye, w as he, e as Ne, f as ge, R as Te, h as pe, g as V, i as z, Y as Ie, I as K, U as Oe, W as be, a as Ae, A as Ee, j as _e } from "./index-CFA4g7FG.js";
|
|
3
3
|
import { useQueryClient as Re, useQuery as A } from "@tanstack/react-query";
|
|
4
4
|
import { useState as Y, useMemo as i, useCallback as d } from "react";
|
|
5
5
|
const Ce = "FormsTable-module_formsTableBody__SvGha", ve = "FormsTable-module_modalHeading__wnTmA", Le = "FormsTable-module_customAccordianItem__isszs", g = {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { c as s, T as l, P as m, a as u, D as v, Q as i } from "./YPM2AS64-
|
|
2
|
-
import { c3 as d, c4 as f, c5 as e } from "./index-
|
|
1
|
+
import { c as s, T as l, P as m, a as u, D as v, Q as i } from "./YPM2AS64-D6_BOozD.js";
|
|
2
|
+
import { c3 as d, c4 as f, c5 as e } from "./index-CFA4g7FG.js";
|
|
3
3
|
var p = (a) => {
|
|
4
4
|
const [r, t] = s({
|
|
5
5
|
prefix: "TanstackQueryDevtools"
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { c as s, T as c, P as u, a as i, b as m, C as P, Q as d } from "./YPM2AS64-
|
|
2
|
-
import { c3 as v, c4 as C, c5 as e } from "./index-
|
|
1
|
+
import { c as s, T as c, P as u, a as i, b as m, C as P, Q as d } from "./YPM2AS64-D6_BOozD.js";
|
|
2
|
+
import { c3 as v, c4 as C, c5 as e } from "./index-CFA4g7FG.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 I, jsx as n } from "react/jsx-runtime";
|
|
2
|
-
import { d as H, z as Q, u as V, q as x, H as M, K as j, G as Y, w as J, l as P, n as W, o as X, s as Z, p as ee, I as ae, r as se, _ as B, t as te, v as re, h as ie, x as oe, B as ne, C as de, D as le } from "./index-
|
|
2
|
+
import { d as H, z as Q, u as V, q as x, H as M, K as j, G as Y, w as J, l as P, n as W, o as X, s as Z, p as ee, I as ae, r as se, _ as B, t as te, v as re, h as ie, x as oe, B as ne, C as de, D as le } from "./index-CFA4g7FG.js";
|
|
3
3
|
import { useQueries as ue, useQuery as ce } from "@tanstack/react-query";
|
|
4
4
|
import { useRef as pe, useEffect as L, useMemo as g } 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", O = {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { c6 as we, c7 as z, c8 as xt, c9 as B, c4 as q, c5 as y, ca as Ro, cb as ye, cc as R, cd as _, ce as k, cf as N, cg as A, ch as bs, ci as ir, cj as $e, ck as G, cl as Hn, cm as Vn, cn as dt, co as D, cp as xs, cq as cn, cr as Be, cs as ws, ct as qt, cu as zt, cv as $s, cw as Cs, cx as $n, cy as Ss, cz as Nr, cA as Bt, cB as zo, cC as ks, cD as Es, cE as j, cF as Gr, cG as Ms, cH as Ds, cI as sr, cJ as As, cK as Ts, cL as zn, cM as Fs, cN as Is, cO as Z, cP as Ps, cQ as Ls } from "./index-
|
|
1
|
+
import { c6 as we, c7 as z, c8 as xt, c9 as B, c4 as q, c5 as y, ca as Ro, cb as ye, cc as R, cd as _, ce as k, cf as N, cg as A, ch as bs, ci as ir, cj as $e, ck as G, cl as Hn, cm as Vn, cn as dt, co as D, cp as xs, cq as cn, cr as Be, cs as ws, ct as qt, cu as zt, cv as $s, cw as Cs, cx as $n, cy as Ss, cz as Nr, cA as Bt, cB as zo, cC as ks, cD as Es, cE as j, cF as Gr, cG as Ms, cH as Ds, cI as sr, cJ as As, cK as Ts, cL as zn, cM as Fs, cN as Is, cO as Z, cP as Ps, cQ as Ls } from "./index-CFA4g7FG.js";
|
|
2
2
|
var Os = (e) => e != null, qs = (e) => e.filter(Os);
|
|
3
3
|
function _s(e) {
|
|
4
4
|
return (...t) => {
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { jsx as s } from "react/jsx-runtime";
|
|
2
|
-
import { u as g, k as u, bQ as b, b_ as f, b$ as _, c0 as p, aO as x, bW as N } from "./index-
|
|
2
|
+
import { u as g, k as u, bQ as b, b_ as f, b$ as _, c0 as p, aO as x, bW as N } from "./index-CFA4g7FG.js";
|
|
3
3
|
import { lazy as h, useMemo as t, Suspense as E } from "react";
|
|
4
4
|
import "@tanstack/react-query";
|
|
5
|
-
import { u as C } from "./hook-
|
|
5
|
+
import { u as C } from "./hook-Bfvw3hcE.js";
|
|
6
6
|
const L = {
|
|
7
7
|
"org.bahmni.clinical.v2.search": h(
|
|
8
|
-
() => import("./index-
|
|
8
|
+
() => import("./index-DfwaWuXc.js")
|
|
9
9
|
)
|
|
10
10
|
}, I = "index-module_page__16xxw", O = "index-module_loading__wNI-4", P = "index-module_message__Ib5Iw", l = {
|
|
11
11
|
page: I,
|
|
@@ -106,7 +106,7 @@ const Uf2 = (t, e) => {
|
|
|
106
106
|
return ze(() => {
|
|
107
107
|
r.current = t;
|
|
108
108
|
}, [t, e]), r.current;
|
|
109
|
-
}, Ye2 = (t, e, r, n) => t.getFixedT(e, r, n), Wf2 = (t, e, r, n) => Ie(Ye2(t, e, r, n), [t, e, r, n]),
|
|
109
|
+
}, Ye2 = (t, e, r, n) => t.getFixedT(e, r, n), Wf2 = (t, e, r, n) => Ie(Ye2(t, e, r, n), [t, e, r, n]), q1 = (t, e = {}) => {
|
|
110
110
|
const {
|
|
111
111
|
i18n: r
|
|
112
112
|
} = e, {
|
|
@@ -77549,7 +77549,7 @@ function El0() {
|
|
|
77549
77549
|
return Fn2;
|
|
77550
77550
|
}
|
|
77551
77551
|
}
|
|
77552
|
-
function
|
|
77552
|
+
function j1(t, e, r = !1, n) {
|
|
77553
77553
|
const a = e ?? ((c) => c);
|
|
77554
77554
|
let l;
|
|
77555
77555
|
try {
|
|
@@ -83477,7 +83477,7 @@ function Is0({
|
|
|
83477
83477
|
onSelect: n,
|
|
83478
83478
|
onCancel: a
|
|
83479
83479
|
}) {
|
|
83480
|
-
const { t: l } =
|
|
83480
|
+
const { t: l } = q1(), [c, i] = ye([]), [s, d] = ye(!1), [u, h] = ye(!1);
|
|
83481
83481
|
return ze(() => {
|
|
83482
83482
|
if (!t) return;
|
|
83483
83483
|
let p = !1;
|
|
@@ -83541,7 +83541,7 @@ const js0 = {
|
|
|
83541
83541
|
},
|
|
83542
83542
|
getItemKey: (t) => t.id ?? "",
|
|
83543
83543
|
renderItem: (t, e) => {
|
|
83544
|
-
const r = t.period?.start, n = t.participant?.[0]?.individual?.display, a = r ?
|
|
83544
|
+
const r = t.period?.start, n = t.participant?.[0]?.individual?.display, a = r ? j1(r, e, !0, Bs0).formattedResult : "";
|
|
83545
83545
|
return {
|
|
83546
83546
|
primary: Fs0(t),
|
|
83547
83547
|
secondary: [a, n].filter(Boolean).join(" | ")
|
|
@@ -83664,7 +83664,7 @@ const CXt = ({
|
|
|
83664
83664
|
iconOnly: i,
|
|
83665
83665
|
iconLabel: s
|
|
83666
83666
|
}) => {
|
|
83667
|
-
const { t: d } =
|
|
83667
|
+
const { t: d } = q1(), [u, h] = ye(!1), [p, f] = ye(null), { practitioner: v } = uh(), [w] = ye(() => {
|
|
83668
83668
|
try {
|
|
83669
83669
|
return Nc();
|
|
83670
83670
|
} catch {
|
|
@@ -98726,7 +98726,7 @@ function eg0(t) {
|
|
|
98726
98726
|
}
|
|
98727
98727
|
function tg0(t, e) {
|
|
98728
98728
|
if (!t) return "";
|
|
98729
|
-
const r = n6(t, e), n =
|
|
98729
|
+
const r = n6(t, e), n = j1(t, e).formattedResult;
|
|
98730
98730
|
return [r, n].filter(Boolean).join(" | ") || "";
|
|
98731
98731
|
}
|
|
98732
98732
|
function rg0(t, e) {
|
|
@@ -98738,7 +98738,7 @@ function rg0(t, e) {
|
|
|
98738
98738
|
};
|
|
98739
98739
|
}
|
|
98740
98740
|
const _Xt = () => {
|
|
98741
|
-
const { t } =
|
|
98741
|
+
const { t } = q1(), { addNotification: e } = Z0(), r = Ct(), {
|
|
98742
98742
|
data: n,
|
|
98743
98743
|
isLoading: a,
|
|
98744
98744
|
error: l
|
|
@@ -98857,7 +98857,7 @@ const _Xt = () => {
|
|
|
98857
98857
|
config: t,
|
|
98858
98858
|
disableActions: e = !1
|
|
98859
98859
|
}) => {
|
|
98860
|
-
const [r, n] = ye([]), a = Ct(), { t: l } =
|
|
98860
|
+
const [r, n] = ye([]), a = Ct(), { t: l } = q1(), { addNotification: c } = Z0(), i = Ke(
|
|
98861
98861
|
() => t?.actions ?? [],
|
|
98862
98862
|
[t?.actions]
|
|
98863
98863
|
), s = Ke(
|
|
@@ -99038,7 +99038,7 @@ const _Xt = () => {
|
|
|
99038
99038
|
idPrefix: n,
|
|
99039
99039
|
queryFn: a
|
|
99040
99040
|
}) => {
|
|
99041
|
-
const { t: l } =
|
|
99041
|
+
const { t: l } = q1(), { addNotification: c } = Z0(), [i, s] = ye(1), [d, u] = ye(r), [h, p] = ye(void 0), { data: f, isLoading: v, isError: w, error: E } = d2({
|
|
99042
99042
|
queryKey: [t, e, i, d],
|
|
99043
99043
|
enabled: !!e,
|
|
99044
99044
|
queryFn: () => a(d, i)
|
|
@@ -99100,7 +99100,7 @@ const _Xt = () => {
|
|
|
99100
99100
|
totalItems: s,
|
|
99101
99101
|
onPageChange: d
|
|
99102
99102
|
}) => {
|
|
99103
|
-
const { t: u } =
|
|
99103
|
+
const { t: u } = q1();
|
|
99104
99104
|
return !e && t.length === 0 ? /* @__PURE__ */ j("p", { className: j0.appointmentTableEmpty, children: u(r) }) : /* @__PURE__ */ j(
|
|
99105
99105
|
K0,
|
|
99106
99106
|
{
|
|
@@ -99217,7 +99217,7 @@ const _Xt = () => {
|
|
|
99217
99217
|
"status",
|
|
99218
99218
|
"provider"
|
|
99219
99219
|
], Ug0 = ({ config: t }) => {
|
|
99220
|
-
const { t: e } =
|
|
99220
|
+
const { t: e } = q1(), r = Ct(), [n, a] = ye(0), l = t?.fields ?? qg0, c = Number(t?.pageSize) || 5, i = Ke(
|
|
99221
99221
|
() => l.map((u) => ({
|
|
99222
99222
|
key: u,
|
|
99223
99223
|
header: e(jg0[u] || u)
|
|
@@ -99244,16 +99244,16 @@ const _Xt = () => {
|
|
|
99244
99244
|
case "reason":
|
|
99245
99245
|
return p.reason?.trim() ?? "-";
|
|
99246
99246
|
case "appointmentDate":
|
|
99247
|
-
return !u.appointmentDate || u.appointmentDate === "-" ? "-" :
|
|
99247
|
+
return !u.appointmentDate || u.appointmentDate === "-" ? "-" : j1(u.appointmentDate, e, !1).formattedResult;
|
|
99248
99248
|
case "appointmentSlot": {
|
|
99249
99249
|
if (!u.appointmentStartTime || u.appointmentStartTime === "-")
|
|
99250
99250
|
return "-";
|
|
99251
|
-
const v =
|
|
99251
|
+
const v = j1(
|
|
99252
99252
|
u.appointmentStartTime,
|
|
99253
99253
|
e,
|
|
99254
99254
|
!1,
|
|
99255
99255
|
Il
|
|
99256
|
-
).formattedResult, w = u.appointmentEndTime ?
|
|
99256
|
+
).formattedResult, w = u.appointmentEndTime ? j1(
|
|
99257
99257
|
u.appointmentEndTime,
|
|
99258
99258
|
e,
|
|
99259
99259
|
!1,
|
|
@@ -100739,7 +100739,7 @@ const zGe = ({
|
|
|
100739
100739
|
renderCell: l,
|
|
100740
100740
|
enabled: c = !0
|
|
100741
100741
|
}) => {
|
|
100742
|
-
const { t: i } =
|
|
100742
|
+
const { t: i } = q1(), { addNotification: s } = Z0(), [d, u] = ye(1), [h, p] = ye(e), { data: f, isLoading: v, isError: w, error: E } = d2({
|
|
100743
100743
|
queryKey: [
|
|
100744
100744
|
"conditions",
|
|
100745
100745
|
r,
|
|
@@ -100801,7 +100801,7 @@ const zGe = ({
|
|
|
100801
100801
|
activeEncounter: r,
|
|
100802
100802
|
activeEncounterMatched: n
|
|
100803
100803
|
}) => {
|
|
100804
|
-
const a = Number(t?.pageSize) || 5, l = t?.encounterType, c = Ct(), { practitioner: i } = uh(), { t: s } =
|
|
100804
|
+
const a = Number(t?.pageSize) || 5, l = t?.encounterType, c = Ct(), { practitioner: i } = uh(), { t: s } = q1(), { addNotification: d } = Z0(), u = dc(), [h, p] = ye(0), [f, v] = ye(!1), [w, E] = ye(null), [y, m] = ye(!1), g = Ke(
|
|
100805
100805
|
() => t?.actions ?? [],
|
|
100806
100806
|
[t?.actions]
|
|
100807
100807
|
), A = Ke(
|
|
@@ -100991,7 +100991,7 @@ const zGe = ({
|
|
|
100991
100991
|
confirmedCell: Lv0,
|
|
100992
100992
|
provisionalCell: _v0
|
|
100993
100993
|
}, Tv0 = ({ config: t }) => {
|
|
100994
|
-
const e = Number(t?.pageSize) || 5, { t: r } =
|
|
100994
|
+
const e = Number(t?.pageSize) || 5, { t: r } = q1(), n = Ct(), { addNotification: a } = Z0(), [l, c] = ye(1), [i, s] = ye(e), { data: d, isLoading: u, isError: h, error: p, refetch: f } = d2({
|
|
100995
100995
|
queryKey: ["diagnoses", n, l, i],
|
|
100996
100996
|
enabled: !!n,
|
|
100997
100997
|
placeholderData: (m) => m,
|
|
@@ -101039,7 +101039,7 @@ const zGe = ({
|
|
|
101039
101039
|
)
|
|
101040
101040
|
] });
|
|
101041
101041
|
case "recordedDate":
|
|
101042
|
-
return
|
|
101042
|
+
return j1(m.recordedDate, r).formattedResult;
|
|
101043
101043
|
case "recorder":
|
|
101044
101044
|
return m.recorder || r("DIAGNOSIS_TABLE_NOT_AVAILABLE");
|
|
101045
101045
|
default:
|
|
@@ -101147,7 +101147,7 @@ const $v0 = "cancelVaccination", Dv0 = (t, e, r) => {
|
|
|
101147
101147
|
startDate: r,
|
|
101148
101148
|
disabledActionTypes: n = []
|
|
101149
101149
|
}) => {
|
|
101150
|
-
const { t: a } =
|
|
101150
|
+
const { t: a } = q1(), { userPrivileges: l } = Zo(), c = Ke(
|
|
101151
101151
|
() => t.filter(
|
|
101152
101152
|
(s) => ho(l, s.requiredPrivilege)
|
|
101153
101153
|
),
|
|
@@ -102765,7 +102765,7 @@ const OM0 = (t) => !t || t.length === 0 ? [] : [...t].sort((e, r) => {
|
|
|
102765
102765
|
activeEncounterUuid: a = null,
|
|
102766
102766
|
disableActions: l = !1
|
|
102767
102767
|
}) => {
|
|
102768
|
-
const { t: c } =
|
|
102768
|
+
const { t: c } = q1(), i = Ct(), { addNotification: s } = Z0(), { userPrivileges: d } = Zo(), u = t?.code || [], h = t?.actions ?? [], p = Ke(
|
|
102769
102769
|
() => h.filter(
|
|
102770
102770
|
(L) => ho(d, L.requiredPrivilege)
|
|
102771
102771
|
),
|
|
@@ -102795,7 +102795,7 @@ const OM0 = (t) => !t || t.length === 0 ? [] : [...t].sort((e, r) => {
|
|
|
102795
102795
|
}, Z = Ie(
|
|
102796
102796
|
(L) => {
|
|
102797
102797
|
if (!L || L.length === 0) return [];
|
|
102798
|
-
const $ = SV(L, (C) =>
|
|
102798
|
+
const $ = SV(L, (C) => j1(C.orderDate, c).formattedResult).sort((C, T) => {
|
|
102799
102799
|
const O = new Date(C.items[0]?.orderDate ?? 0).getTime();
|
|
102800
102800
|
return new Date(T.items[0]?.orderDate ?? 0).getTime() - O;
|
|
102801
102801
|
});
|
|
@@ -102901,11 +102901,11 @@ const OM0 = (t) => !t || t.length === 0 ? [] : [...t].sort((e, r) => {
|
|
|
102901
102901
|
case "instruction":
|
|
102902
102902
|
return L.instruction;
|
|
102903
102903
|
case "startDate":
|
|
102904
|
-
return
|
|
102904
|
+
return j1(L.startDate, c).formattedResult;
|
|
102905
102905
|
case "orderedBy":
|
|
102906
102906
|
return L.orderedBy;
|
|
102907
102907
|
case "orderDate":
|
|
102908
|
-
return
|
|
102908
|
+
return j1(L.orderDate, c).formattedResult;
|
|
102909
102909
|
case "status":
|
|
102910
102910
|
return /* @__PURE__ */ Le(u2, { children: [
|
|
102911
102911
|
/* @__PURE__ */ j(
|
|
@@ -102920,7 +102920,7 @@ const OM0 = (t) => !t || t.length === 0 ? [] : [...t].sort((e, r) => {
|
|
|
102920
102920
|
L.dateStopped && /* @__PURE__ */ Le("span", { className: g0.stopReasonText, children: [
|
|
102921
102921
|
c("MEDICATIONS_STOPPED_ON"),
|
|
102922
102922
|
" ",
|
|
102923
|
-
|
|
102923
|
+
j1(L.dateStopped, c).formattedResult
|
|
102924
102924
|
] }),
|
|
102925
102925
|
L.stopReason && /* @__PURE__ */ Le("span", { className: g0.stopReasonText, children: [
|
|
102926
102926
|
c("MEDICATIONS_STOPPED_DUE_TO"),
|
|
@@ -103256,14 +103256,14 @@ const fz = (t) => t?.controls ?? [], Va2 = (t) => t.flatMap((e) => [
|
|
|
103256
103256
|
const r = e.split("/")[0].split("^").pop()?.replace(/\.\d+$/, "");
|
|
103257
103257
|
if (r)
|
|
103258
103258
|
return r;
|
|
103259
|
-
}, OXt = (t, e) => t?.date ?
|
|
103259
|
+
}, OXt = (t, e) => t?.date ? j1(t.date, e).formattedResult : e("DATE_ERROR_PARSE"), mz = (t, e, r) => {
|
|
103260
103260
|
if (t.observationValue?.value == null)
|
|
103261
103261
|
return "";
|
|
103262
103262
|
const { value: n, unit: a, type: l } = t.observationValue;
|
|
103263
103263
|
if (l === "dateTime") {
|
|
103264
103264
|
const c = t.conceptId ? r?.[t.conceptId] : void 0, i = (s) => {
|
|
103265
103265
|
const d = c != null ? c === "Datetime" : /T\d{2}:\d{2}:\d{2}/.test(s) && !/T00:00:00/.test(s);
|
|
103266
|
-
return
|
|
103266
|
+
return j1(s, e, d).formattedResult;
|
|
103267
103267
|
};
|
|
103268
103268
|
return String(n).split(", ").map(i).join(", ");
|
|
103269
103269
|
}
|
|
@@ -103477,7 +103477,7 @@ const ny0 = (t) => {
|
|
|
103477
103477
|
hideThumbnail: a = !1,
|
|
103478
103478
|
conceptDatatypeMap: l
|
|
103479
103479
|
}) => {
|
|
103480
|
-
const { t: c } =
|
|
103480
|
+
const { t: c } = q1(), i = t.members && t.members.length > 0, s = t.display, d = n ? `${n}-` : "";
|
|
103481
103481
|
if (i)
|
|
103482
103482
|
return /* @__PURE__ */ Le(
|
|
103483
103483
|
"div",
|
|
@@ -103658,7 +103658,7 @@ const ny0 = (t) => {
|
|
|
103658
103658
|
sectionMap: d,
|
|
103659
103659
|
conceptDatatypeMap: u
|
|
103660
103660
|
}) => {
|
|
103661
|
-
const { t: h } =
|
|
103661
|
+
const { t: h } = q1(), p = Ke(() => {
|
|
103662
103662
|
if (t.length === 0) return [];
|
|
103663
103663
|
const m = GM0(t), g = s && s.length > 0 ? KM0(m, s) : Ma2(m);
|
|
103664
103664
|
return ya2(g);
|
|
@@ -103786,7 +103786,7 @@ const ny0 = (t) => {
|
|
|
103786
103786
|
}
|
|
103787
103787
|
);
|
|
103788
103788
|
}, xa2 = ({ reportId: t }) => {
|
|
103789
|
-
const { t: e } =
|
|
103789
|
+
const { t: e } = q1(), {
|
|
103790
103790
|
data: r,
|
|
103791
103791
|
isLoading: n,
|
|
103792
103792
|
isError: a,
|
|
@@ -103875,7 +103875,7 @@ const by0 = "RadiologyInvestigationTable-module_inProgressStatus__PKgxl", xy0 =
|
|
|
103875
103875
|
reportDetails: Sy0,
|
|
103876
103876
|
reportTile: ky0
|
|
103877
103877
|
}, Zy0 = ({ investigation: t, headers: e, renderCell: r, showLinkedOrders: n, showReport: a }) => {
|
|
103878
|
-
const { t: l } =
|
|
103878
|
+
const { t: l } = q1(), c = t.status === "completed", i = !!t.reportIds?.[0];
|
|
103879
103879
|
if (!n && !a)
|
|
103880
103880
|
return null;
|
|
103881
103881
|
const s = (h) => /* @__PURE__ */ Le(
|
|
@@ -103896,7 +103896,7 @@ const by0 = "RadiologyInvestigationTable-module_inProgressStatus__PKgxl", xy0 =
|
|
|
103896
103896
|
]
|
|
103897
103897
|
},
|
|
103898
103898
|
h.id
|
|
103899
|
-
), d = t.reportedDate &&
|
|
103899
|
+
), d = t.reportedDate && j1(t.reportedDate, l, !0).formattedResult, u = t.reportedBy;
|
|
103900
103900
|
return /* @__PURE__ */ Le(u2, { children: [
|
|
103901
103901
|
n && t.linkedOrders?.map(
|
|
103902
103902
|
(h) => s(h)
|
|
@@ -103925,7 +103925,7 @@ const by0 = "RadiologyInvestigationTable-module_inProgressStatus__PKgxl", xy0 =
|
|
|
103925
103925
|
imagingStudyId: t,
|
|
103926
103926
|
onDateLoaded: e
|
|
103927
103927
|
}) => {
|
|
103928
|
-
const { t: r } =
|
|
103928
|
+
const { t: r } = q1(), {
|
|
103929
103929
|
data: n,
|
|
103930
103930
|
isLoading: a,
|
|
103931
103931
|
isError: l,
|
|
@@ -104024,7 +104024,7 @@ const _a2 = (t) => ["radiologyInvestigation", t], Jy0 = async (t, e, r, n) => {
|
|
|
104024
104024
|
encounterUuids: e,
|
|
104025
104025
|
episodeOfCareUuids: r
|
|
104026
104026
|
}) => {
|
|
104027
|
-
const n = Ct(), { t: a } =
|
|
104027
|
+
const n = Ct(), { t: a } = q1(), { addNotification: l } = Z0(), c = t?.orderType, i = t?.numberOfVisits, s = t?.pacsViewerUrl, d = t?.groupLinkedOrders, u = t?.showInlineReport, [h, p] = ye(
|
|
104028
104028
|
/* @__PURE__ */ new Set([0])
|
|
104029
104029
|
), [f, v] = ye(null), [w, E] = ye(null), [y, m] = ye(), g = o6(
|
|
104030
104030
|
r,
|
|
@@ -104083,7 +104083,7 @@ const _a2 = (t) => ["radiologyInvestigation", t], Jy0 = async (t, e, r, n) => {
|
|
|
104083
104083
|
const X = Fy0(
|
|
104084
104084
|
D ?? []
|
|
104085
104085
|
), K = d ? Gy0(X) : X;
|
|
104086
|
-
return SV(K, (B) =>
|
|
104086
|
+
return SV(K, (B) => j1(B.orderedDate, a).formattedResult).sort(
|
|
104087
104087
|
(B, ne) => new Date(ne.date).getTime() - new Date(B.date).getTime()
|
|
104088
104088
|
).map((B) => ({
|
|
104089
104089
|
date: B.date,
|
|
@@ -104243,7 +104243,7 @@ const _a2 = (t) => ["radiologyInvestigation", t], Jy0 = async (t, e, r, n) => {
|
|
|
104243
104243
|
{
|
|
104244
104244
|
id: `${X.id}-ordered-on`,
|
|
104245
104245
|
"data-testid": `${X.id}-ordered-on-test-id`,
|
|
104246
|
-
children:
|
|
104246
|
+
children: j1(X.orderedDate, a, !0).formattedResult
|
|
104247
104247
|
}
|
|
104248
104248
|
);
|
|
104249
104249
|
case "status":
|
|
@@ -104284,7 +104284,7 @@ const _a2 = (t) => ["radiologyInvestigation", t], Jy0 = async (t, e, r, n) => {
|
|
|
104284
104284
|
)
|
|
104285
104285
|
}
|
|
104286
104286
|
);
|
|
104287
|
-
const U = f?.reportedDate &&
|
|
104287
|
+
const U = f?.reportedDate && j1(f.reportedDate, a, !0).formattedResult, P = y && j1(y, a, !0).formattedResult, I = f?.reportedBy, te = (X) => {
|
|
104288
104288
|
const K = X.linkedOrders && X.linkedOrders.length > 0, B = X.status === "completed", ne = !!X.reportIds?.[0], ee = d && K, le = u && B && ne;
|
|
104289
104289
|
return !ee && !le ? null : /* @__PURE__ */ j(
|
|
104290
104290
|
Zy0,
|
|
@@ -104486,7 +104486,7 @@ function VV0(t, e) {
|
|
|
104486
104486
|
return t.map((r) => {
|
|
104487
104487
|
const n = MV0(r), a = r.occurrencePeriod?.start;
|
|
104488
104488
|
let l;
|
|
104489
|
-
a && (l =
|
|
104489
|
+
a && (l = j1(a, e).formattedResult || a.split("T")[0]);
|
|
104490
104490
|
const c = yV0(r), i = r.note?.[0]?.text;
|
|
104491
104491
|
return {
|
|
104492
104492
|
id: r.id,
|
|
@@ -104528,14 +104528,14 @@ function xV0(t, e) {
|
|
|
104528
104528
|
return t.map((r) => {
|
|
104529
104529
|
const n = r.code?.text ?? r.code?.coding?.[0]?.display ?? "";
|
|
104530
104530
|
let a = "", l = "";
|
|
104531
|
-
r.valueQuantity?.value !== void 0 ? (a = r.valueQuantity.value.toString(), l = r.valueQuantity.unit ?? "") : r.valueDateTime ? a =
|
|
104531
|
+
r.valueQuantity?.value !== void 0 ? (a = r.valueQuantity.value.toString(), l = r.valueQuantity.unit ?? "") : r.valueDateTime ? a = j1(r.valueDateTime, e).formattedResult : r.valueBoolean !== void 0 ? a = r.valueBoolean ? "Positive" : "Negative" : r.valueInteger !== void 0 ? a = r.valueInteger.toString() : r.valueString ? a = r.valueString : r.valueCodeableConcept?.text ? a = r.valueCodeableConcept.text : r.valueCodeableConcept?.coding?.[0]?.display && (a = r.valueCodeableConcept.coding[0].display);
|
|
104532
104532
|
const c = r.referenceRange?.filter((d) => d.type?.coding?.some(
|
|
104533
104533
|
(u) => u.code === "normal"
|
|
104534
104534
|
/* NORMAL */
|
|
104535
104535
|
)).map((d) => {
|
|
104536
104536
|
const u = d.low?.value, h = d.high?.value;
|
|
104537
104537
|
return u !== void 0 && h !== void 0 ? `${u} - ${h}` : u !== void 0 ? `> ${u}` : h !== void 0 ? `< ${h}` : d.text ?? "";
|
|
104538
|
-
}).join(", ") ?? "", i = r.issued ?
|
|
104538
|
+
}).join(", ") ?? "", i = r.issued ? j1(r.issued, e).formattedResult || r.issued : "", s = r.interpretation?.[0]?.coding?.[0]?.code;
|
|
104539
104539
|
return {
|
|
104540
104540
|
status: r.status || "",
|
|
104541
104541
|
TestName: n,
|
|
@@ -104566,7 +104566,7 @@ const AV0 = ({
|
|
|
104566
104566
|
isOpen: e,
|
|
104567
104567
|
hasProcessedReport: r
|
|
104568
104568
|
}) => {
|
|
104569
|
-
const { t: n } =
|
|
104569
|
+
const { t: n } = q1(), [a, l] = ye(!1), c = t.reportIds ?? [], {
|
|
104570
104570
|
data: i,
|
|
104571
104571
|
isLoading: s,
|
|
104572
104572
|
isError: d
|
|
@@ -104694,7 +104694,7 @@ const AV0 = ({
|
|
|
104694
104694
|
encounterUuids: e,
|
|
104695
104695
|
episodeOfCareUuids: r
|
|
104696
104696
|
}) => {
|
|
104697
|
-
const { t: n } =
|
|
104697
|
+
const { t: n } = q1(), a = Ct(), { addNotification: l } = Z0(), c = t?.orderType, i = t?.numberOfVisits, [s, d] = ye(
|
|
104698
104698
|
/* @__PURE__ */ new Set([0])
|
|
104699
104699
|
), [u, h] = ye(0), p = o6(
|
|
104700
104700
|
r,
|
|
@@ -104966,105 +104966,106 @@ const AV0 = ({
|
|
|
104966
104966
|
isLoading: r,
|
|
104967
104967
|
isError: n,
|
|
104968
104968
|
isAdvancedSearch: a,
|
|
104969
|
-
|
|
104970
|
-
|
|
104971
|
-
|
|
104972
|
-
|
|
104969
|
+
isDateSearch: l,
|
|
104970
|
+
searchFields: c,
|
|
104971
|
+
selectedFieldType: i,
|
|
104972
|
+
patientDetailUrl: s,
|
|
104973
|
+
setData: d
|
|
104973
104974
|
}) => {
|
|
104974
|
-
const { t:
|
|
104975
|
-
{ key: "identifier", header:
|
|
104976
|
-
{ key: "name", header:
|
|
104977
|
-
{ key: "gender", header:
|
|
104978
|
-
{ key: "age", header:
|
|
104979
|
-
...
|
|
104975
|
+
const { t: u } = q1(), h = Af2(), { userPrivileges: p } = Zo(), { addNotification: f } = Z0(), v = [
|
|
104976
|
+
{ key: "identifier", header: u("REGISTRATION_PATIENT_SEARCH_HEADER_ID") },
|
|
104977
|
+
{ key: "name", header: u("REGISTRATION_PATIENT_SEARCH_HEADER_NAME") },
|
|
104978
|
+
{ key: "gender", header: u("REGISTRATION_PATIENT_SEARCH_HEADER_GENDER") },
|
|
104979
|
+
{ key: "age", header: u("REGISTRATION_PATIENT_SEARCH_HEADER_AGE") },
|
|
104980
|
+
...i === "appointment" ? [
|
|
104980
104981
|
{
|
|
104981
104982
|
key: "birthDate",
|
|
104982
|
-
header:
|
|
104983
|
+
header: u("REGISTRATION_PATIENT_SEARCH_HEADER_BIRTH_DATE")
|
|
104983
104984
|
}
|
|
104984
104985
|
] : [],
|
|
104985
|
-
...
|
|
104986
|
-
(
|
|
104987
|
-
key:
|
|
104988
|
-
header:
|
|
104986
|
+
...c.length > 0 ? c.flatMap(
|
|
104987
|
+
(_) => _.expectedFields?.map((R) => ({
|
|
104988
|
+
key: R.field,
|
|
104989
|
+
header: R.translationKey ? u(R.translationKey) : R.field
|
|
104989
104990
|
}))
|
|
104990
|
-
).filter((
|
|
104991
|
-
...
|
|
104991
|
+
).filter((_) => _ !== void 0) : [],
|
|
104992
|
+
...c.some((_) => _.actions && _.actions.length > 0) ? [
|
|
104992
104993
|
{
|
|
104993
104994
|
key: "actions",
|
|
104994
|
-
header:
|
|
104995
|
+
header: u("REGISTRATION_PATIENT_SEARCH_HEADER_ACTIONS")
|
|
104995
104996
|
}
|
|
104996
104997
|
] : []
|
|
104997
|
-
],
|
|
104998
|
+
], w = () => r ? /* @__PURE__ */ j(Vr0, { testId: "patient-search-title-loading" }) : n ? /* @__PURE__ */ j("span", { "data-testid": "patient-search-title-error", children: u("ERROR_DEFAULT_TITLE") }) : /* @__PURE__ */ j("span", { "data-testid": "patient-search-title", children: u("REGISTRATION_PATIENT_SEARCH_TABLE_TITLE", {
|
|
104998
104999
|
count: t?.totalCount ?? 0
|
|
104999
|
-
}) }),
|
|
105000
|
-
if (!
|
|
105001
|
-
return /* @__PURE__ */ j("span", { children:
|
|
105002
|
-
const
|
|
105003
|
-
return sz0.test(
|
|
105000
|
+
}) }), E = (_, R) => {
|
|
105001
|
+
if (!s)
|
|
105002
|
+
return /* @__PURE__ */ j("span", { children: R });
|
|
105003
|
+
const D = xn2(s, { patientUuid: _ }, !0).trim();
|
|
105004
|
+
return sz0.test(D) ? /* @__PURE__ */ j(
|
|
105004
105005
|
fn,
|
|
105005
105006
|
{
|
|
105006
|
-
href:
|
|
105007
|
-
onClick: (
|
|
105008
|
-
|
|
105007
|
+
href: D,
|
|
105008
|
+
onClick: (Z) => {
|
|
105009
|
+
Z.preventDefault(), h(D);
|
|
105009
105010
|
},
|
|
105010
|
-
children:
|
|
105011
|
+
children: R
|
|
105011
105012
|
}
|
|
105012
|
-
) : dz0.test(
|
|
105013
|
-
},
|
|
105013
|
+
) : dz0.test(D) ? /* @__PURE__ */ j("a", { href: D, children: R }) : /* @__PURE__ */ j("span", { children: R });
|
|
105014
|
+
}, y = (_, R) => /* @__PURE__ */ j(
|
|
105014
105015
|
Kr,
|
|
105015
105016
|
{
|
|
105016
|
-
className: `${F0[TV0(String(
|
|
105017
|
-
"data-testid": `appointment-status-${
|
|
105018
|
-
children:
|
|
105019
|
-
`REGISTRATION_SEARCH_PAGE_APPOINTMENT_STATUS_${String(
|
|
105017
|
+
className: `${F0[TV0(String(R))]}`,
|
|
105018
|
+
"data-testid": `appointment-status-${_}`,
|
|
105019
|
+
children: u(
|
|
105020
|
+
`REGISTRATION_SEARCH_PAGE_APPOINTMENT_STATUS_${String(R).replace(/([a-z])([A-Z])/g, "$1_$2").toUpperCase()}`
|
|
105020
105021
|
)
|
|
105021
105022
|
}
|
|
105022
|
-
),
|
|
105023
|
-
(
|
|
105024
|
-
|
|
105025
|
-
|
|
105026
|
-
|
|
105023
|
+
), m = (_) => /* @__PURE__ */ j(Cr0, { gap: 3, className: F0.actionButtonsContainer, children: c.map(
|
|
105024
|
+
(R) => R.actions?.map((D) => RV0(
|
|
105025
|
+
D,
|
|
105026
|
+
p ?? [],
|
|
105027
|
+
_
|
|
105027
105028
|
) ? /* @__PURE__ */ j(
|
|
105028
105029
|
Ar,
|
|
105029
105030
|
{
|
|
105030
105031
|
className: F0.actionButton,
|
|
105031
105032
|
kind: "tertiary",
|
|
105032
105033
|
size: "sm",
|
|
105033
|
-
"data-testid": `patient-action-button-${
|
|
105034
|
+
"data-testid": `patient-action-button-${D.translationKey}`,
|
|
105034
105035
|
onClick: () => {
|
|
105035
105036
|
t && DV0(
|
|
105037
|
+
D,
|
|
105036
105038
|
_,
|
|
105037
|
-
A,
|
|
105038
105039
|
t,
|
|
105039
|
-
|
|
105040
|
-
|
|
105041
|
-
|
|
105042
|
-
|
|
105040
|
+
d,
|
|
105041
|
+
h,
|
|
105042
|
+
f,
|
|
105043
|
+
u
|
|
105043
105044
|
);
|
|
105044
105045
|
},
|
|
105045
|
-
children:
|
|
105046
|
+
children: u(D.translationKey)
|
|
105046
105047
|
},
|
|
105047
|
-
|
|
105048
|
+
D.translationKey
|
|
105048
105049
|
) : null)
|
|
105049
|
-
) }),
|
|
105050
|
-
switch (
|
|
105050
|
+
) }), g = (_, R) => {
|
|
105051
|
+
switch (R) {
|
|
105051
105052
|
case Q5.IDENTIFIER:
|
|
105052
|
-
return
|
|
105053
|
+
return E(_.uuid ?? "", _.identifier ?? "");
|
|
105053
105054
|
case Q5.APPOINTMENT_STATUS:
|
|
105054
|
-
return
|
|
105055
|
-
|
|
105056
|
-
|
|
105055
|
+
return y(
|
|
105056
|
+
_.uuid ?? "",
|
|
105057
|
+
_.appointmentStatus ?? ""
|
|
105057
105058
|
);
|
|
105058
105059
|
case Q5.GENDER:
|
|
105059
|
-
return String(
|
|
105060
|
+
return String(_.gender ?? "");
|
|
105060
105061
|
case Q5.ACTIONS:
|
|
105061
|
-
return
|
|
105062
|
+
return m(_);
|
|
105062
105063
|
}
|
|
105063
|
-
const
|
|
105064
|
-
return
|
|
105065
|
-
},
|
|
105066
|
-
searchTerm:
|
|
105067
|
-
}) :
|
|
105064
|
+
const D = _[R];
|
|
105065
|
+
return D instanceof Date ? D.toLocaleDateString() : String(D ?? "");
|
|
105066
|
+
}, A = l ? j1(e, u).formattedResult : e, M = a ? u("REGISTRATION_PATIENT_SEARCH_CUSTOM_ATTRIBUTE_EMPTY_MESSAGE", {
|
|
105067
|
+
searchTerm: A
|
|
105068
|
+
}) : u("REGISTRATION_PATIENT_SEARCH_EMPTY_MESSAGE", { searchTerm: e });
|
|
105068
105069
|
return /* @__PURE__ */ Le("div", { className: F0.patientSearchResult, children: [
|
|
105069
105070
|
/* @__PURE__ */ j(
|
|
105070
105071
|
Ys,
|
|
@@ -105072,20 +105073,20 @@ const AV0 = ({
|
|
|
105072
105073
|
id: "patient-search-result",
|
|
105073
105074
|
"aria-label": "patient-search-result",
|
|
105074
105075
|
className: F0.resultsTitle,
|
|
105075
|
-
children:
|
|
105076
|
+
children: w()
|
|
105076
105077
|
}
|
|
105077
105078
|
),
|
|
105078
105079
|
/* @__PURE__ */ j(
|
|
105079
105080
|
K0,
|
|
105080
105081
|
{
|
|
105081
|
-
headers:
|
|
105082
|
+
headers: v,
|
|
105082
105083
|
ariaLabel: "patient-search-sortable-data-table",
|
|
105083
105084
|
loading: r,
|
|
105084
|
-
rows: iz0(t,
|
|
105085
|
-
renderCell:
|
|
105086
|
-
emptyStateMessage:
|
|
105085
|
+
rows: iz0(t, c),
|
|
105086
|
+
renderCell: g,
|
|
105087
|
+
emptyStateMessage: M,
|
|
105087
105088
|
className: F0.patientSearchTableBody,
|
|
105088
|
-
errorStateMessage: n ?
|
|
105089
|
+
errorStateMessage: n ? u("REGISTRATION_PATIENT_SEARCH_ERROR_MESSAGE") : void 0
|
|
105089
105090
|
}
|
|
105090
105091
|
)
|
|
105091
105092
|
] });
|
|
@@ -105109,7 +105110,7 @@ const AV0 = ({
|
|
|
105109
105110
|
onAdvanceClear: E,
|
|
105110
105111
|
onDropdownChange: y
|
|
105111
105112
|
}) => {
|
|
105112
|
-
const { t: m } =
|
|
105113
|
+
const { t: m } = q1();
|
|
105113
105114
|
return /* @__PURE__ */ Le(
|
|
105114
105115
|
"div",
|
|
105115
105116
|
{
|
|
@@ -105309,7 +105310,7 @@ class Ez0 {
|
|
|
105309
105310
|
middleName: "",
|
|
105310
105311
|
familyName: "",
|
|
105311
105312
|
gender: e.patient.gender,
|
|
105312
|
-
birthDate:
|
|
105313
|
+
birthDate: j1(e.patient.birthDate, r).formattedResult,
|
|
105313
105314
|
age: n6(e.patient.birthDate, r),
|
|
105314
105315
|
extraIdentifiers: null,
|
|
105315
105316
|
personId: 0,
|
|
@@ -105323,7 +105324,7 @@ class Ez0 {
|
|
|
105323
105324
|
// Appointment-specific fields
|
|
105324
105325
|
appointmentUuid: e.uuid,
|
|
105325
105326
|
appointmentNumber: e.appointmentNumber,
|
|
105326
|
-
appointmentDate:
|
|
105327
|
+
appointmentDate: j1(e.startDateTime, r, !0).formattedResult,
|
|
105327
105328
|
appointmentReason: this.getAppointmentReasons(e),
|
|
105328
105329
|
appointmentStatus: e.status,
|
|
105329
105330
|
appointmentServiceUuid: e.service?.uuid
|
|
@@ -105371,7 +105372,7 @@ class Mz0 {
|
|
|
105371
105372
|
...e,
|
|
105372
105373
|
pageOfResults: e.pageOfResults.map((n) => ({
|
|
105373
105374
|
...n,
|
|
105374
|
-
birthDate: n.birthDate ?
|
|
105375
|
+
birthDate: n.birthDate ? j1(
|
|
105375
105376
|
new Date(n.birthDate).getTime(),
|
|
105376
105377
|
r.translator
|
|
105377
105378
|
).formattedResult : n.birthDate,
|
|
@@ -105453,7 +105454,7 @@ class yz0 {
|
|
|
105453
105454
|
const a = this.parseJSON(n.addressFieldValue), l = this.parseJSON(n.customAttribute);
|
|
105454
105455
|
return {
|
|
105455
105456
|
...n,
|
|
105456
|
-
birthDate: n.birthDate ?
|
|
105457
|
+
birthDate: n.birthDate ? j1(
|
|
105457
105458
|
new Date(n.birthDate).getTime(),
|
|
105458
105459
|
r.translator
|
|
105459
105460
|
).formattedResult : n.birthDate,
|
|
@@ -105523,7 +105524,7 @@ const zz0 = (t) => [
|
|
|
105523
105524
|
queryKey: ["searchPatientConfig", e],
|
|
105524
105525
|
queryFn: () => oo2(e, vz0),
|
|
105525
105526
|
enabled: !!e
|
|
105526
|
-
}), [l, c] = ye(""), [i, s] = ye(""), [d, u] = ye(""), [h, p] = ye(""), { addNotification: f } = Z0(), { t: v } =
|
|
105527
|
+
}), [l, c] = ye(""), [i, s] = ye(""), [d, u] = ye(""), [h, p] = ye(""), { addNotification: f } = Z0(), { t: v } = q1(), [w, E] = ye(!1), [y, m] = ye([]), [g, A] = ye(""), [M, _] = ye([]), [R, D] = ye(
|
|
105527
105528
|
/* @__PURE__ */ new Date()
|
|
105528
105529
|
), [Z, k] = ye(void 0), F = () => M.find(
|
|
105529
105530
|
(ne) => v(ne.translationKey) === g
|
|
@@ -105678,6 +105679,7 @@ const zz0 = (t) => [
|
|
|
105678
105679
|
isLoading: oe,
|
|
105679
105680
|
isError: ie,
|
|
105680
105681
|
isAdvancedSearch: w,
|
|
105682
|
+
isDateSearch: ae(),
|
|
105681
105683
|
searchFields: B,
|
|
105682
105684
|
selectedFieldType: X,
|
|
105683
105685
|
patientDetailUrl: te?.patientDetailUrl,
|
|
@@ -105854,7 +105856,7 @@ const bz0 = "VitalFlowSheet-module_vitalFlowSheetDataTable__Nnc7i", xz0 = "Vital
|
|
|
105854
105856
|
}, Sz0 = [], kz0 = ({
|
|
105855
105857
|
config: { latestCount: t, obsConcepts: e, groupBy: r }
|
|
105856
105858
|
}) => {
|
|
105857
|
-
const { t: n } =
|
|
105859
|
+
const { t: n } = q1(), a = Ct(), {
|
|
105858
105860
|
data: l,
|
|
105859
105861
|
loading: c,
|
|
105860
105862
|
error: i,
|
|
@@ -105902,7 +105904,7 @@ ${n("TIME")}`
|
|
|
105902
105904
|
header: n("VITAL_SIGN")
|
|
105903
105905
|
},
|
|
105904
105906
|
...p.map((g, A) => {
|
|
105905
|
-
const M =
|
|
105907
|
+
const M = j1(g, n), _ = j1(
|
|
105906
105908
|
g,
|
|
105907
105909
|
n,
|
|
105908
105910
|
!1,
|
|
@@ -106119,7 +106121,7 @@ const d6 = (t, e) => {
|
|
|
106119
106121
|
[co.LAUNCH_FORM]: /* @__PURE__ */ j(MM, { "data-testid": "task-action-icon-add" }),
|
|
106120
106122
|
[co.EDIT_FORM]: /* @__PURE__ */ j(au, { "data-testid": "task-action-icon-edit" })
|
|
106121
106123
|
}, Jz0 = ({ task: t, taskConfig: e }) => {
|
|
106122
|
-
const { userPrivileges: r } = Zo(), { t: n } =
|
|
106124
|
+
const { userPrivileges: r } = Zo(), { t: n } = q1(), { addNotification: a } = Z0(), l = dc(), [c, i] = ye(!1), s = Bz0(e, t.code), { data: d = [], isLoading: u } = d2({
|
|
106123
106125
|
queryKey: ["observationForms"],
|
|
106124
106126
|
queryFn: () => so2(),
|
|
106125
106127
|
enabled: s
|
|
@@ -106209,7 +106211,7 @@ const d6 = (t, e) => {
|
|
|
106209
106211
|
patientUuid: n,
|
|
106210
106212
|
onClose: a
|
|
106211
106213
|
}) => {
|
|
106212
|
-
const { t: l } =
|
|
106214
|
+
const { t: l } = q1(), c = Ke(() => !e || !r ? null : d6(e, r.handlerConfig.formInputCode), [e, r]), i = e?.fhirResource.basedOn?.[0]?.reference, s = mn(i ?? "") ?? void 0, d = e?.fhirResource.encounter?.reference, {
|
|
106213
106215
|
data: u,
|
|
106214
106216
|
isLoading: h,
|
|
106215
106217
|
error: p
|
|
@@ -106258,7 +106260,7 @@ const d6 = (t, e) => {
|
|
|
106258
106260
|
l("RECORDED_ON"),
|
|
106259
106261
|
":",
|
|
106260
106262
|
" ",
|
|
106261
|
-
|
|
106263
|
+
j1(W.encounterDateTime, l, !0).formattedResult,
|
|
106262
106264
|
" |",
|
|
106263
106265
|
" ",
|
|
106264
106266
|
l("RECORDED_BY"),
|
|
@@ -106314,7 +106316,7 @@ const d6 = (t, e) => {
|
|
|
106314
106316
|
task: t,
|
|
106315
106317
|
taskConfig: e
|
|
106316
106318
|
}) => {
|
|
106317
|
-
const { userPrivileges: r } = Zo(), { t: n } =
|
|
106319
|
+
const { userPrivileges: r } = Zo(), { t: n } = q1(), a = Ct(), [l, c] = ye(null), i = Ke(() => e ? e.find((d) => d.taskCode === t.code) : null, [e, t.code]), s = Ke(() => i?.views ? i.views.filter((d) => ho(r, d.requiredPrivileges) ? jz0(d, t, r) : !1) : [], [i, r, t]);
|
|
106318
106320
|
if (s.length === 0)
|
|
106319
106321
|
return /* @__PURE__ */ j(u2, { children: "-" });
|
|
106320
106322
|
if (s.length === 1) {
|
|
@@ -106371,7 +106373,7 @@ const d6 = (t, e) => {
|
|
|
106371
106373
|
code: t.code?.coding?.[0]?.code ?? t.code?.text ?? "",
|
|
106372
106374
|
status: t.status,
|
|
106373
106375
|
completedBy: t.owner?.display,
|
|
106374
|
-
completedOn: t.executionPeriod?.end ?
|
|
106376
|
+
completedOn: t.executionPeriod?.end ? j1(t.executionPeriod.end, e, !0).formattedResult : "-",
|
|
106375
106377
|
partOf: t.partOf?.map((r) => r.reference).filter((r) => !!r) ?? [],
|
|
106376
106378
|
fhirResource: t
|
|
106377
106379
|
}), hH0 = async (t, e, r) => {
|
|
@@ -106404,7 +106406,7 @@ const d6 = (t, e) => {
|
|
|
106404
106406
|
orderReference: n,
|
|
106405
106407
|
showEmptyStateMessage: a = !0
|
|
106406
106408
|
}) => {
|
|
106407
|
-
const { t: l } =
|
|
106409
|
+
const { t: l } = q1(), c = Ct(), i = dc(), s = t, d = s?.showOnlyLeafTasks ?? !1, u = s?.taskTypes, h = o6(
|
|
106408
106410
|
e,
|
|
106409
106411
|
r
|
|
106410
106412
|
), { data: p, isLoading: f, error: v, refetch: w } = d2({
|
|
@@ -106515,7 +106517,7 @@ const d6 = (t, e) => {
|
|
|
106515
106517
|
encounterUuids: r,
|
|
106516
106518
|
visitUuids: n
|
|
106517
106519
|
}) => {
|
|
106518
|
-
const { t: a } =
|
|
106520
|
+
const { t: a } = q1(), l = Ct(), { addNotification: c } = Z0(), i = t?.orderType || "", s = t?.showTasks === !0, d = t?.tasksControlConfig, u = o6(
|
|
106519
106521
|
e,
|
|
106520
106522
|
r
|
|
106521
106523
|
), {
|
|
@@ -106600,7 +106602,7 @@ const d6 = (t, e) => {
|
|
|
106600
106602
|
const F = IM0(A);
|
|
106601
106603
|
return SV(
|
|
106602
106604
|
F,
|
|
106603
|
-
(G) =>
|
|
106605
|
+
(G) => j1(G.orderedDate, a).formattedResult
|
|
106604
106606
|
).sort(
|
|
106605
106607
|
(G, W) => new Date(W.date).getTime() - new Date(G.date).getTime()
|
|
106606
106608
|
).map((G) => ({
|
|
@@ -106631,7 +106633,7 @@ const d6 = (t, e) => {
|
|
|
106631
106633
|
case "orderedBy":
|
|
106632
106634
|
return F.orderedBy;
|
|
106633
106635
|
case "orderedOn":
|
|
106634
|
-
return F.orderedDate ?
|
|
106636
|
+
return F.orderedDate ? j1(F.orderedDate, a, !0).formattedResult : "-";
|
|
106635
106637
|
case "status":
|
|
106636
106638
|
return /* @__PURE__ */ j(
|
|
106637
106639
|
Wa,
|
|
@@ -110497,7 +110499,7 @@ const IGe = (t, e, r) => ({
|
|
|
110497
110499
|
currentStateName: ho2(t),
|
|
110498
110500
|
attributes: po2(t, e)
|
|
110499
110501
|
}), SH0 = ({ config: t }) => {
|
|
110500
|
-
const { t: e } =
|
|
110502
|
+
const { t: e } = q1(), r = Ct(), n = Number(t?.pageSize) || 5, [a, l] = ye(1), [c, i] = ye(n), s = t?.fields ?? [], d = t?.navigationURLByProgram, u = t?.navigationURL, h = Ke(
|
|
110501
110503
|
() => DH0(s),
|
|
110502
110504
|
[s]
|
|
110503
110505
|
), p = Ke(
|
|
@@ -110588,7 +110590,7 @@ const IGe = (t, e, r) => ({
|
|
|
110588
110590
|
]);
|
|
110589
110591
|
const _ = (D, Z) => {
|
|
110590
110592
|
const k = D.attributes[Z];
|
|
110591
|
-
return k ? k instanceof Date ?
|
|
110593
|
+
return k ? k instanceof Date ? j1(k, e).formattedResult : s.find((F) => F.name === Z)?.enableTranslation ? e(
|
|
110592
110594
|
`PROGRAM_ATTRIBUTE_VALUE_${nt(Z)}_${nt(k)}`,
|
|
110593
110595
|
k
|
|
110594
110596
|
) : k : "-";
|
|
@@ -110619,7 +110621,7 @@ const IGe = (t, e, r) => ({
|
|
|
110619
110621
|
{
|
|
110620
110622
|
id: `${D.uuid}-start-date`,
|
|
110621
110623
|
"data-testid": `${D.uuid}-start-date-test-id`,
|
|
110622
|
-
children:
|
|
110624
|
+
children: j1(D.dateEnrolled, e).formattedResult
|
|
110623
110625
|
}
|
|
110624
110626
|
);
|
|
110625
110627
|
case "endDate":
|
|
@@ -110628,7 +110630,7 @@ const IGe = (t, e, r) => ({
|
|
|
110628
110630
|
{
|
|
110629
110631
|
id: `${D.uuid}-end-date`,
|
|
110630
110632
|
"data-testid": `${D.uuid}-end-date-test-id`,
|
|
110631
|
-
children:
|
|
110633
|
+
children: j1(D.dateCompleted, e).formattedResult
|
|
110632
110634
|
}
|
|
110633
110635
|
) : "-";
|
|
110634
110636
|
case "outcome":
|
|
@@ -110804,7 +110806,7 @@ const eb0 = async (t) => (await fo2(t, "completed")).map(XH0), jGe = ({
|
|
|
110804
110806
|
patientUUID: t,
|
|
110805
110807
|
config: e
|
|
110806
110808
|
}) => {
|
|
110807
|
-
const { t: r } =
|
|
110809
|
+
const { t: r } = q1(), { data: n, isLoading: a, isError: l, refetch: c } = d2({
|
|
110808
110810
|
queryKey: ["immunizations", t, "completed"],
|
|
110809
110811
|
queryFn: () => eb0(t),
|
|
110810
110812
|
enabled: !!t
|
|
@@ -110831,7 +110833,7 @@ const eb0 = async (t) => (await fo2(t, "completed")).map(XH0), jGe = ({
|
|
|
110831
110833
|
ariaLabel: h.notes
|
|
110832
110834
|
}
|
|
110833
110835
|
)
|
|
110834
|
-
] }) : p === "administeredOn" ? h.administeredOn ?
|
|
110836
|
+
] }) : p === "administeredOn" ? h.administeredOn ? j1(h.administeredOn, r).formattedResult : "-" : h[p] ?? "-", u = (h) => {
|
|
110835
110837
|
if (!h.hasDetails) return null;
|
|
110836
110838
|
const p = {
|
|
110837
110839
|
route: {
|
|
@@ -110852,7 +110854,7 @@ const eb0 = async (t) => (await fo2(t, "completed")).map(XH0), jGe = ({
|
|
|
110852
110854
|
},
|
|
110853
110855
|
expiryDate: {
|
|
110854
110856
|
label: r("IMMUNIZATION_HISTORY_WIDGET_DETAIL_EXPIRY_DATE"),
|
|
110855
|
-
value:
|
|
110857
|
+
value: j1(h.expiryDate, r).formattedResult
|
|
110856
110858
|
},
|
|
110857
110859
|
recordedBy: {
|
|
110858
110860
|
label: r("IMMUNIZATION_HISTORY_WIDGET_DETAIL_RECORDED_BY"),
|
|
@@ -110913,7 +110915,7 @@ const eb0 = async (t) => (await fo2(t, "completed")).map(XH0), jGe = ({
|
|
|
110913
110915
|
patientUUID: t,
|
|
110914
110916
|
config: e
|
|
110915
110917
|
}) => {
|
|
110916
|
-
const { t: r } =
|
|
110918
|
+
const { t: r } = q1(), { data: n, isLoading: a, isError: l, refetch: c } = d2({
|
|
110917
110919
|
queryKey: ["immunizations", t, "not-done"],
|
|
110918
110920
|
queryFn: () => tb0(t),
|
|
110919
110921
|
enabled: !!t
|
|
@@ -110945,7 +110947,7 @@ const eb0 = async (t) => (await fo2(t, "completed")).map(XH0), jGe = ({
|
|
|
110945
110947
|
ariaLabel: u.notes
|
|
110946
110948
|
}
|
|
110947
110949
|
)
|
|
110948
|
-
] }) : h === "date" ? u.date ?
|
|
110950
|
+
] }) : h === "date" ? u.date ? j1(u.date, r).formattedResult : "-" : h === "recordedOn" ? u.recordedOn ? j1(u.recordedOn, r, !0).formattedResult : "-" : u[h] ?? "-";
|
|
110949
110951
|
return /* @__PURE__ */ j(
|
|
110950
110952
|
"div",
|
|
110951
110953
|
{
|
|
@@ -110987,7 +110989,7 @@ const eb0 = async (t) => (await fo2(t, "completed")).map(XH0), jGe = ({
|
|
|
110987
110989
|
return "IMMUNIZATION_HISTORY_WIDGET_ADD_BUTTON";
|
|
110988
110990
|
}
|
|
110989
110991
|
}, ob0 = ({ config: t }) => {
|
|
110990
|
-
const { t: e } =
|
|
110992
|
+
const { t: e } = q1(), r = Ct(), [n, a] = ye(0), l = t, c = l?.status, i = l?.encounterType, s = l?.startEncounterPrivilege, d = l?.administeredFields, u = l?.notAdministeredFields, h = {
|
|
110991
110993
|
columns: d ? d.filter((m) => BGe.includes(m)) : BGe,
|
|
110992
110994
|
expandedFields: d ? d.filter(
|
|
110993
110995
|
(m) => PGe.includes(m)
|
|
@@ -111169,7 +111171,7 @@ const mb0 = (t) => ["programs", t], wb0 = async (t, e, r) => {
|
|
|
111169
111171
|
programUUID: t,
|
|
111170
111172
|
config: e
|
|
111171
111173
|
}) => {
|
|
111172
|
-
const { t: r } =
|
|
111174
|
+
const { t: r } = q1(), { addNotification: n } = Z0(), [a, l] = ye(!1), { userPrivileges: c } = Zo(), i = ho(
|
|
111173
111175
|
c,
|
|
111174
111176
|
cb0
|
|
111175
111177
|
), s = Ke(
|
|
@@ -111270,7 +111272,7 @@ const mb0 = (t) => ["programs", t], wb0 = async (t, e, r) => {
|
|
|
111270
111272
|
}
|
|
111271
111273
|
), y = u.allowedStates && u.allowedStates.length > 0 && i, m = (A) => {
|
|
111272
111274
|
const M = u?.attributes?.[A];
|
|
111273
|
-
return M ? M instanceof Date ?
|
|
111275
|
+
return M ? M instanceof Date ? j1(M, r).formattedResult : e?.fields?.find((_) => _.name === A)?.enableTranslation ? r(
|
|
111274
111276
|
`PROGRAM_ATTRIBUTE_VALUE_${nt(A)}_${nt(M)}`,
|
|
111275
111277
|
M
|
|
111276
111278
|
) : M : "-";
|
|
@@ -111279,9 +111281,9 @@ const mb0 = (t) => ["programs", t], wb0 = async (t, e, r) => {
|
|
|
111279
111281
|
case "programName":
|
|
111280
111282
|
return u.programName;
|
|
111281
111283
|
case "startDate":
|
|
111282
|
-
return
|
|
111284
|
+
return j1(u.dateEnrolled, r).formattedResult;
|
|
111283
111285
|
case "endDate":
|
|
111284
|
-
return u.dateCompleted ?
|
|
111286
|
+
return u.dateCompleted ? j1(u.dateCompleted, r).formattedResult : "-";
|
|
111285
111287
|
case "outcome":
|
|
111286
111288
|
return u.outcomeName ?? "-";
|
|
111287
111289
|
case "state":
|
|
@@ -111406,11 +111408,11 @@ function Nb0(t, e = Ba2, r) {
|
|
|
111406
111408
|
}
|
|
111407
111409
|
function Ab0(t, e) {
|
|
111408
111410
|
if (t.isActive || !t.endDate)
|
|
111409
|
-
return
|
|
111410
|
-
const r =
|
|
111411
|
+
return j1(t.startDate, e, !0).formattedResult;
|
|
111412
|
+
const r = j1(t.startDate, e).formattedResult;
|
|
111411
111413
|
if (ha2(t.startDate, t.endDate))
|
|
111412
111414
|
return r;
|
|
111413
|
-
const n =
|
|
111415
|
+
const n = j1(t.endDate, e).formattedResult;
|
|
111414
111416
|
return e("VISIT_DATE_RANGE", { start: r, end: n });
|
|
111415
111417
|
}
|
|
111416
111418
|
function Cb0(t, e) {
|
|
@@ -111424,7 +111426,7 @@ function Lb0(t, e) {
|
|
|
111424
111426
|
);
|
|
111425
111427
|
}
|
|
111426
111428
|
const _b0 = ({ config: t }) => {
|
|
111427
|
-
const { t: e } =
|
|
111429
|
+
const { t: e } = q1(), r = Ct(), n = Number(t?.maximumNoOfVisits), a = Number.isInteger(n) && n > 0 ? n : Ba2, l = t?.fields, c = Ke(() => {
|
|
111428
111430
|
const Z = l ?? Eb0;
|
|
111429
111431
|
return [...Mb0.filter(
|
|
111430
111432
|
(k) => !Z.includes(k)
|
|
@@ -113368,7 +113370,7 @@ const OA0 = ({
|
|
|
113368
113370
|
activeActionIndex: n,
|
|
113369
113371
|
onNavigate: a
|
|
113370
113372
|
}) => {
|
|
113371
|
-
const { t: l } =
|
|
113373
|
+
const { t: l } = q1("command-palette"), [c, i] = ye(!1), s = r[n], d = F9.name.getValue(t) ?? "", u = CA0(t.givenName, t.familyName), h = LA0(
|
|
113372
113374
|
t,
|
|
113373
113375
|
e.primaryFields
|
|
113374
113376
|
), p = {
|
|
@@ -113512,7 +113514,7 @@ const SA0 = () => /* @__PURE__ */ Le(
|
|
|
113512
113514
|
]
|
|
113513
113515
|
}
|
|
113514
113516
|
), kA0 = () => {
|
|
113515
|
-
const { t } =
|
|
113517
|
+
const { t } = q1("command-palette"), {
|
|
113516
113518
|
isOpen: e,
|
|
113517
113519
|
setOpen: r,
|
|
113518
113520
|
navItems: n,
|
|
@@ -113852,7 +113854,7 @@ function jA0(t) {
|
|
|
113852
113854
|
name: c,
|
|
113853
113855
|
displayName: i
|
|
113854
113856
|
} = t, s = ({ children: d }) => {
|
|
113855
|
-
const { t: u } =
|
|
113857
|
+
const { t: u } = q1(), { addNotification: h } = Z0(), { data: p, isLoading: f, error: v } = d2({ queryKey: r, queryFn: n }), w = Ke(
|
|
113856
113858
|
() => a(p, f, v),
|
|
113857
113859
|
[p, f, v]
|
|
113858
113860
|
);
|
|
@@ -113967,9 +113969,9 @@ const x32 = "location.uuid", wC0 = "yyyy-MM-dd'T'HH:mm:ss.SSSxx", Kv = ".kind",
|
|
|
113967
113969
|
formatCountry: "formatCountry",
|
|
113968
113970
|
formatSearchResult: "formatSearchResult"
|
|
113969
113971
|
}, EC0 = {
|
|
113970
|
-
[tn.formatDate]: (t, e) =>
|
|
113971
|
-
[tn.formatTime]: (t, e) =>
|
|
113972
|
-
[tn.formatDateTime]: (t, e) =>
|
|
113972
|
+
[tn.formatDate]: (t, e) => j1(t, e).formattedResult,
|
|
113973
|
+
[tn.formatTime]: (t, e) => j1(t, e, !1, Il).formattedResult,
|
|
113974
|
+
[tn.formatDateTime]: (t, e) => j1(t, e, !0).formattedResult,
|
|
113973
113975
|
[tn.formatAge]: (t, e) => n6(t, e),
|
|
113974
113976
|
[tn.formatGender]: a30,
|
|
113975
113977
|
[tn.formatCountry]: l30,
|
|
@@ -114281,7 +114283,7 @@ const uYe = (t, e) => t.filter(
|
|
|
114281
114283
|
cursorPagination: n,
|
|
114282
114284
|
totalCount: a
|
|
114283
114285
|
}) => {
|
|
114284
|
-
const { t: l } =
|
|
114286
|
+
const { t: l } = q1(), { userPrivileges: c } = Zo(), [i, s] = ye([]), [d, u] = ye(null), h = Ke(() => r ? new Set(
|
|
114285
114287
|
r.filter(
|
|
114286
114288
|
(m) => ho(c, m.requiredPrivileges ?? [])
|
|
114287
114289
|
).map((m) => m.key)
|
|
@@ -114369,7 +114371,7 @@ const uYe = (t, e) => t.filter(
|
|
|
114369
114371
|
validationError: n,
|
|
114370
114372
|
rangeOrderError: a
|
|
114371
114373
|
}) => {
|
|
114372
|
-
const { t: l } =
|
|
114374
|
+
const { t: l } = q1();
|
|
114373
114375
|
return t.rangeAllowed ? /* @__PURE__ */ Le(
|
|
114374
114376
|
"div",
|
|
114375
114377
|
{
|
|
@@ -114492,7 +114494,7 @@ const uYe = (t, e) => t.filter(
|
|
|
114492
114494
|
onChange: r,
|
|
114493
114495
|
validationError: n
|
|
114494
114496
|
}) => {
|
|
114495
|
-
const { t: a } =
|
|
114497
|
+
const { t: a } = q1(), [l, c] = ye(null), i = YC0[t.lookup.source], { data: s, isLoading: d, isError: u } = d2({
|
|
114496
114498
|
queryKey: ["lookup", t.lookup.source],
|
|
114497
114499
|
queryFn: i,
|
|
114498
114500
|
enabled: !!i,
|
|
@@ -114544,7 +114546,7 @@ const uYe = (t, e) => t.filter(
|
|
|
114544
114546
|
validationError: n,
|
|
114545
114547
|
rangeOrderError: a
|
|
114546
114548
|
}) => {
|
|
114547
|
-
const { t: l } =
|
|
114549
|
+
const { t: l } = q1();
|
|
114548
114550
|
if (t.rangeAllowed) {
|
|
114549
114551
|
const c = !!n && !e?.from.value, i = !!n && !e?.to?.value || !!a;
|
|
114550
114552
|
return /* @__PURE__ */ Le(
|
|
@@ -114644,7 +114646,7 @@ const uYe = (t, e) => t.filter(
|
|
|
114644
114646
|
onChange: r,
|
|
114645
114647
|
validationError: n
|
|
114646
114648
|
}) => {
|
|
114647
|
-
const { t: a } =
|
|
114649
|
+
const { t: a } = q1(), l = t.options.find((c) => c.value === e?.value) ?? null;
|
|
114648
114650
|
return /* @__PURE__ */ j(
|
|
114649
114651
|
"div",
|
|
114650
114652
|
{
|
|
@@ -114674,7 +114676,7 @@ const uYe = (t, e) => t.filter(
|
|
|
114674
114676
|
onChange: r,
|
|
114675
114677
|
validationError: n
|
|
114676
114678
|
}) => {
|
|
114677
|
-
const { t: a } =
|
|
114679
|
+
const { t: a } = q1();
|
|
114678
114680
|
return /* @__PURE__ */ j("div", { id: "text-criterion-input", "data-testid": "text-criterion-input-test-id", children: /* @__PURE__ */ j(
|
|
114679
114681
|
n00,
|
|
114680
114682
|
{
|
|
@@ -114760,7 +114762,7 @@ const uYe = (t, e) => t.filter(
|
|
|
114760
114762
|
onValueChange: a,
|
|
114761
114763
|
onRemove: l
|
|
114762
114764
|
}) => {
|
|
114763
|
-
const { t: c } =
|
|
114765
|
+
const { t: c } = q1(), i = r ? void 0 : t.validationError ?? void 0;
|
|
114764
114766
|
return /* @__PURE__ */ Le(
|
|
114765
114767
|
"div",
|
|
114766
114768
|
{
|
|
@@ -114818,7 +114820,7 @@ const uYe = (t, e) => t.filter(
|
|
|
114818
114820
|
savedContextKey: a,
|
|
114819
114821
|
onReset: l
|
|
114820
114822
|
}) => {
|
|
114821
|
-
const { t: c } =
|
|
114823
|
+
const { t: c } = q1(), [i, s] = ye(
|
|
114822
114824
|
a ?? t[0].context
|
|
114823
114825
|
), d = t.find((M) => M.context === i), [u, h] = ye(
|
|
114824
114826
|
() => n ?? Fm(d)
|
|
@@ -114967,15 +114969,15 @@ const uYe = (t, e) => t.filter(
|
|
|
114967
114969
|
return e.kind === "lookup" ? t.label ?? t.value : t.value;
|
|
114968
114970
|
}
|
|
114969
114971
|
if (e.kind === "date") {
|
|
114970
|
-
const a =
|
|
114972
|
+
const a = j1(t.from.value).formattedResult;
|
|
114971
114973
|
if (!t.to?.value) return a;
|
|
114972
|
-
const l =
|
|
114974
|
+
const l = j1(t.to.value).formattedResult;
|
|
114973
114975
|
return r("COMMON_SEARCH_CRITERIA_TAG_RANGE", { from: a, to: l });
|
|
114974
114976
|
}
|
|
114975
114977
|
const n = t.from.value;
|
|
114976
114978
|
return t.to?.value ? r("COMMON_SEARCH_CRITERIA_TAG_RANGE", { from: n, to: t.to.value }) : n;
|
|
114977
114979
|
}, aL0 = (t, e, r) => `${r(e.translationKey)}: ${oL0(t.value, e.input, r)}`, lL0 = ({ currentSearchState: t }) => {
|
|
114978
|
-
const { t: e } =
|
|
114980
|
+
const { t: e } = q1(), { context: r, rows: n } = t, a = n.filter(
|
|
114979
114981
|
(l) => l.criterionKey !== null && l.value !== null
|
|
114980
114982
|
).map((l) => {
|
|
114981
114983
|
const c = r.criteria.find(
|
|
@@ -115022,7 +115024,7 @@ const uYe = (t, e) => t.filter(
|
|
|
115022
115024
|
items: hL0,
|
|
115023
115025
|
definitions: pL0
|
|
115024
115026
|
}, mL0 = ({ extensionParams: t }) => {
|
|
115025
|
-
const { t: e } =
|
|
115027
|
+
const { t: e } = q1(), { addNotification: r } = Z0(), n = dc(), a = t?.configUrl, [l, c] = ye(!1), [i] = ye(() => {
|
|
115026
115028
|
try {
|
|
115027
115029
|
return Nc();
|
|
115028
115030
|
} catch {
|
|
@@ -115270,7 +115272,7 @@ const wL0 = [
|
|
|
115270
115272
|
},
|
|
115271
115273
|
{
|
|
115272
115274
|
type: "patientDocuments",
|
|
115273
|
-
component: P0(() => import("./DocumentsTable-
|
|
115275
|
+
component: P0(() => import("./DocumentsTable-cTYcbFbC-gO9nbYh4.js"))
|
|
115274
115276
|
},
|
|
115275
115277
|
{
|
|
115276
115278
|
type: "flowSheet",
|
|
@@ -115278,7 +115280,7 @@ const wL0 = [
|
|
|
115278
115280
|
},
|
|
115279
115281
|
{
|
|
115280
115282
|
type: "forms",
|
|
115281
|
-
component: P0(() => import("./FormsTable-
|
|
115283
|
+
component: P0(() => import("./FormsTable-BkZ7CAhs-B75t4NlN.js"))
|
|
115282
115284
|
},
|
|
115283
115285
|
{
|
|
115284
115286
|
type: "labOrders",
|
|
@@ -115286,7 +115288,7 @@ const wL0 = [
|
|
|
115286
115288
|
},
|
|
115287
115289
|
{
|
|
115288
115290
|
type: "observations",
|
|
115289
|
-
component: P0(() => import("./Observations-
|
|
115291
|
+
component: P0(() => import("./Observations-ByaPCQhx-CndOctkY.js"))
|
|
115290
115292
|
},
|
|
115291
115293
|
{
|
|
115292
115294
|
type: "ordersControl",
|
|
@@ -115393,7 +115395,7 @@ const qXt = (t) => gL0.getInstance().get(t), vL0 = "/bahmni/home/index.html#/cha
|
|
|
115393
115395
|
userAction: xL0,
|
|
115394
115396
|
menu: NL0
|
|
115395
115397
|
}, Wm = "user-global-action-menu", AL0 = (t) => t.split(" ")[0], CL0 = (t, e, r) => t === -1 ? e === 1 ? 0 : r - 1 : (t + e + r) % r, LL0 = uz, _L0 = () => {
|
|
115396
|
-
const { t } =
|
|
115398
|
+
const { t } = q1(), { userPrivileges: e } = Zo(), { addNotification: r } = Z0(), [n, a] = ye(!1), [l, c] = ye(null), i = VL0(), { getActions: s, version: d } = i, u = He(!1), { user: h, loading: p } = uh();
|
|
115397
115399
|
ze(() => {
|
|
115398
115400
|
u.current || (yL0(i), u.current = !0);
|
|
115399
115401
|
}, [i]), ze(() => {
|
|
@@ -211407,7 +211409,7 @@ var p1r = (t, e = !1) => {
|
|
|
211407
211409
|
const e = nf2(() => {
|
|
211408
211410
|
const r = this, [n] = this.#n, [a] = this.#o, [l] = this.#a, [c] = this.#l, [i] = this.#p, [s] = this.#e;
|
|
211409
211411
|
let d;
|
|
211410
|
-
return this.#c ? d = this.#c : (d = tf2(() => import("./LNWAZHJI-
|
|
211412
|
+
return this.#c ? d = this.#c : (d = tf2(() => import("./LNWAZHJI-Ck7o7Ghg.js")), this.#c = d), Vf2(this.#h, this.#r), Qp2(d, ef2({
|
|
211411
211413
|
get queryFlavor() {
|
|
211412
211414
|
return r.#d;
|
|
211413
211415
|
},
|
|
@@ -211505,7 +211507,7 @@ var p1r = (t, e = !1) => {
|
|
|
211505
211507
|
const e = nf2(() => {
|
|
211506
211508
|
const r = this, [n] = this.#n, [a] = this.#o, [l] = this.#a, [c] = this.#l, [i] = this.#p, [s] = this.#e, [d] = this.#c;
|
|
211507
211509
|
let u;
|
|
211508
|
-
return this.#i ? u = this.#i : (u = tf2(() => import("./MWZ6AO7Z-
|
|
211510
|
+
return this.#i ? u = this.#i : (u = tf2(() => import("./MWZ6AO7Z-CpoFA_gI.js")), this.#i = u), Vf2(this.#h, this.#r), Qp2(u, ef2({
|
|
211509
211511
|
get queryFlavor() {
|
|
211510
211512
|
return r.#d;
|
|
211511
211513
|
},
|
|
@@ -211661,7 +211663,7 @@ const CJt = {
|
|
|
211661
211663
|
id: "clinical-config",
|
|
211662
211664
|
name: "Clinical Config",
|
|
211663
211665
|
displayName: "ClinicalConfigProvider"
|
|
211664
|
-
}), FJt = P0(() => import("./ConsultationPage-
|
|
211666
|
+
}), FJt = P0(() => import("./ConsultationPage-CSuJ2AyA.js")), jJt = P0(() => import("./index-B4nadjEE.js")), qJt = [
|
|
211665
211667
|
{
|
|
211666
211668
|
path: ":patientUuid",
|
|
211667
211669
|
component: FJt
|
|
@@ -211912,7 +211914,7 @@ export {
|
|
|
211912
211914
|
Ha2 as e,
|
|
211913
211915
|
ey0 as f,
|
|
211914
211916
|
Mc as g,
|
|
211915
|
-
|
|
211917
|
+
j1 as h,
|
|
211916
211918
|
au as i,
|
|
211917
211919
|
FXt as j,
|
|
211918
211920
|
Zo as k,
|
|
@@ -211925,7 +211927,7 @@ export {
|
|
|
211925
211927
|
OXt as r,
|
|
211926
211928
|
SXt as s,
|
|
211927
211929
|
$Xt as t,
|
|
211928
|
-
|
|
211930
|
+
q1 as u,
|
|
211929
211931
|
uCe as v,
|
|
211930
211932
|
Nn as w,
|
|
211931
211933
|
i00 as x,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsxs as d, jsx as e } from "react/jsx-runtime";
|
|
2
|
-
import { u as r, cR as l, cS as o, cT as c, bg as m, bh as g, cU as b, cV as h, cW as p, aO as u } from "./index-
|
|
2
|
+
import { u as r, cR as l, cS as o, cT as c, bg as m, bh as g, cU as b, cV as h, cW as p, aO as u } from "./index-CFA4g7FG.js";
|
|
3
3
|
import { Suspense as _ } from "react";
|
|
4
4
|
import "@tanstack/react-query";
|
|
5
5
|
const E = "index-module_loading__eyE2k", $ = "index-module_message__95HmH", S = "index-module_panel__8VJh2", s = {
|
package/dist/index.js
CHANGED