@bahmni/services 0.0.1-dev.423 → 0.0.1-dev.425
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/documentReferenceService/documentWriteService.d.ts +2 -4
- package/dist/documentReferenceService/documentWriteService.d.ts.map +1 -1
- package/dist/documentReferenceService/index.d.ts +2 -2
- package/dist/documentReferenceService/index.d.ts.map +1 -1
- package/dist/documentReferenceService/models.d.ts +18 -8
- package/dist/documentReferenceService/models.d.ts.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +708 -690
- package/dist/moduleService/moduleService.d.ts +1 -1
- package/dist/moduleService/moduleService.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { initReactI18next as kc } from "react-i18next";
|
|
2
|
-
import { useTranslation as
|
|
3
|
-
import { useRef as qt, useCallback as Sn, useEffect as
|
|
2
|
+
import { useTranslation as _v } from "react-i18next";
|
|
3
|
+
import { useRef as qt, useCallback as Sn, useEffect as ot, useSyncExternalStore as Mc } from "react";
|
|
4
4
|
function oi(t, e) {
|
|
5
5
|
return function() {
|
|
6
6
|
return t.apply(e, arguments);
|
|
@@ -20,7 +20,7 @@ const { toString: Uc } = Object.prototype, { getPrototypeOf: wt } = Object, { it
|
|
|
20
20
|
}, Fc = (t, e) => t != null && jt(t, e) ? t[e] : void 0, fs = /* @__PURE__ */ ((t) => (e) => {
|
|
21
21
|
const r = Uc.call(e);
|
|
22
22
|
return t[r] || (t[r] = r.slice(8, -1).toLowerCase());
|
|
23
|
-
})(/* @__PURE__ */ Object.create(null)), ke = (t) => (t = t.toLowerCase(), (e) => fs(e) === t),
|
|
23
|
+
})(/* @__PURE__ */ Object.create(null)), ke = (t) => (t = t.toLowerCase(), (e) => fs(e) === t), rn = (t) => (e) => typeof e === t, { isArray: at } = Array, Et = rn("undefined");
|
|
24
24
|
function Tt(t) {
|
|
25
25
|
return t !== null && !Et(t) && t.constructor !== null && !Et(t.constructor) && Ie(t.constructor.isBuffer) && t.constructor.isBuffer(t);
|
|
26
26
|
}
|
|
@@ -29,7 +29,7 @@ function qc(t) {
|
|
|
29
29
|
let e;
|
|
30
30
|
return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? e = ArrayBuffer.isView(t) : e = t && t.buffer && ii(t.buffer), e;
|
|
31
31
|
}
|
|
32
|
-
const jc =
|
|
32
|
+
const jc = rn("string"), Ie = rn("function"), ci = rn("number"), St = (t) => t !== null && typeof t == "object", Vc = (t) => t === !0 || t === !1, Fr = (t) => {
|
|
33
33
|
if (!St(t))
|
|
34
34
|
return !1;
|
|
35
35
|
const e = wt(t);
|
|
@@ -67,7 +67,7 @@ function Yt(t, e, { allOwnKeys: r = !1 } = {}) {
|
|
|
67
67
|
if (t === null || typeof t > "u")
|
|
68
68
|
return;
|
|
69
69
|
let n, s;
|
|
70
|
-
if (typeof t != "object" && (t = [t]),
|
|
70
|
+
if (typeof t != "object" && (t = [t]), at(t))
|
|
71
71
|
for (n = 0, s = t.length; n < s; n++)
|
|
72
72
|
e.call(null, t[n], n, t);
|
|
73
73
|
else {
|
|
@@ -96,11 +96,11 @@ function Jn(...t) {
|
|
|
96
96
|
if (a === "__proto__" || a === "constructor" || a === "prototype")
|
|
97
97
|
return;
|
|
98
98
|
const i = e && typeof a == "string" && ui(n, a) || a, c = Br(n, i) ? n[i] : void 0;
|
|
99
|
-
Fr(c) && Fr(o) ? n[i] = Jn(c, o) : Fr(o) ? n[i] = Jn({}, o) :
|
|
99
|
+
Fr(c) && Fr(o) ? n[i] = Jn(c, o) : Fr(o) ? n[i] = Jn({}, o) : at(o) ? n[i] = o.slice() : (!r || !Et(o)) && (n[i] = o);
|
|
100
100
|
};
|
|
101
101
|
for (let o = 0, a = t.length; o < a; o++) {
|
|
102
102
|
const i = t[o];
|
|
103
|
-
if (!i || Tt(i) || (Yt(i, s), typeof i != "object" ||
|
|
103
|
+
if (!i || Tt(i) || (Yt(i, s), typeof i != "object" || at(i)))
|
|
104
104
|
continue;
|
|
105
105
|
const c = Object.getOwnPropertySymbols(i);
|
|
106
106
|
for (let u = 0; u < c.length; u++) {
|
|
@@ -157,7 +157,7 @@ const ou = (t, e, r, { allOwnKeys: n } = {}) => (Yt(
|
|
|
157
157
|
return n !== -1 && n === r;
|
|
158
158
|
}, lu = (t) => {
|
|
159
159
|
if (!t) return null;
|
|
160
|
-
if (
|
|
160
|
+
if (at(t)) return t;
|
|
161
161
|
let e = t.length;
|
|
162
162
|
if (!ci(e)) return null;
|
|
163
163
|
const r = new Array(e);
|
|
@@ -206,7 +206,7 @@ const ou = (t, e, r, { allOwnKeys: n } = {}) => (Yt(
|
|
|
206
206
|
r[o] = !0;
|
|
207
207
|
});
|
|
208
208
|
};
|
|
209
|
-
return
|
|
209
|
+
return at(t) ? n(t) : n(String(t).split(e)), r;
|
|
210
210
|
}, _u = () => {
|
|
211
211
|
}, bu = (t, e) => t != null && Number.isFinite(t = +t) ? t : e;
|
|
212
212
|
function vu(t) {
|
|
@@ -221,7 +221,7 @@ const Tu = (t) => {
|
|
|
221
221
|
return n;
|
|
222
222
|
if (!("toJSON" in n)) {
|
|
223
223
|
e.add(n);
|
|
224
|
-
const s =
|
|
224
|
+
const s = at(n) ? [] : {};
|
|
225
225
|
return Yt(n, (o, a) => {
|
|
226
226
|
const i = r(o);
|
|
227
227
|
!Et(i) && (s[a] = i);
|
|
@@ -240,7 +240,7 @@ const Tu = (t) => {
|
|
|
240
240
|
), (s) => {
|
|
241
241
|
n.push(s), rt.postMessage(r, "*");
|
|
242
242
|
}))(`axios@${Math.random()}`, []) : (r) => setTimeout(r))(typeof setImmediate == "function", Ie(rt.postMessage)), Ou = typeof queueMicrotask < "u" ? queueMicrotask.bind(rt) : typeof process < "u" && process.nextTick || fi, hi = (t) => t != null && Ie(t[zt]), Au = (t) => t != null && jt(t, zt) && hi(t), D = {
|
|
243
|
-
isArray:
|
|
243
|
+
isArray: at,
|
|
244
244
|
isArrayBuffer: ii,
|
|
245
245
|
isBuffer: Tt,
|
|
246
246
|
isFormData: Xc,
|
|
@@ -664,7 +664,7 @@ function Hu(t) {
|
|
|
664
664
|
const Bu = D.toFlatObject(D, {}, null, function(e) {
|
|
665
665
|
return /^is[A-Z]/.test(e);
|
|
666
666
|
});
|
|
667
|
-
function
|
|
667
|
+
function nn(t, e, r) {
|
|
668
668
|
if (!D.isObject(t))
|
|
669
669
|
throw new TypeError("target must be an object");
|
|
670
670
|
e = e || new FormData(), r = D.toFlatObject(
|
|
@@ -768,7 +768,7 @@ function Ks(t) {
|
|
|
768
768
|
});
|
|
769
769
|
}
|
|
770
770
|
function ps(t, e) {
|
|
771
|
-
this._pairs = [], t &&
|
|
771
|
+
this._pairs = [], t && nn(t, this, e);
|
|
772
772
|
}
|
|
773
773
|
const wi = ps.prototype;
|
|
774
774
|
wi.append = function(e, r) {
|
|
@@ -880,7 +880,7 @@ self instanceof WorkerGlobalScope && typeof self.importScripts == "function", Xu
|
|
|
880
880
|
...Wu
|
|
881
881
|
};
|
|
882
882
|
function el(t, e) {
|
|
883
|
-
return
|
|
883
|
+
return nn(t, new Oe.classes.URLSearchParams(), {
|
|
884
884
|
visitor: function(r, n, s, o) {
|
|
885
885
|
return Oe.isNode && D.isBuffer(r) ? (this.append(n, r.toString("base64")), !1) : o.defaultVisitor.apply(this, arguments);
|
|
886
886
|
},
|
|
@@ -927,7 +927,7 @@ function bi(t) {
|
|
|
927
927
|
}
|
|
928
928
|
return null;
|
|
929
929
|
}
|
|
930
|
-
const
|
|
930
|
+
const ct = (t, e) => t != null && D.hasOwnProp(t, e) ? t[e] : void 0;
|
|
931
931
|
function nl(t, e, r) {
|
|
932
932
|
if (D.isString(t))
|
|
933
933
|
try {
|
|
@@ -954,12 +954,12 @@ const Gt = {
|
|
|
954
954
|
return r.setContentType("application/x-www-form-urlencoded;charset=utf-8", !1), e.toString();
|
|
955
955
|
let i;
|
|
956
956
|
if (o) {
|
|
957
|
-
const c =
|
|
957
|
+
const c = ct(this, "formSerializer");
|
|
958
958
|
if (n.indexOf("application/x-www-form-urlencoded") > -1)
|
|
959
959
|
return el(e, c).toString();
|
|
960
960
|
if ((i = D.isFileList(e)) || n.indexOf("multipart/form-data") > -1) {
|
|
961
|
-
const u =
|
|
962
|
-
return
|
|
961
|
+
const u = ct(this, "env"), l = u && u.FormData;
|
|
962
|
+
return nn(
|
|
963
963
|
i ? { "files[]": e } : e,
|
|
964
964
|
l && new l(),
|
|
965
965
|
c
|
|
@@ -971,16 +971,16 @@ const Gt = {
|
|
|
971
971
|
],
|
|
972
972
|
transformResponse: [
|
|
973
973
|
function(e) {
|
|
974
|
-
const r =
|
|
974
|
+
const r = ct(this, "transitional") || Gt.transitional, n = r && r.forcedJSONParsing, s = ct(this, "responseType"), o = s === "json";
|
|
975
975
|
if (D.isResponse(e) || D.isReadableStream(e))
|
|
976
976
|
return e;
|
|
977
977
|
if (e && D.isString(e) && (n && !s || o)) {
|
|
978
978
|
const i = !(r && r.silentJSONParsing) && o;
|
|
979
979
|
try {
|
|
980
|
-
return JSON.parse(e,
|
|
980
|
+
return JSON.parse(e, ct(this, "parseReviver"));
|
|
981
981
|
} catch (c) {
|
|
982
982
|
if (i)
|
|
983
|
-
throw c.name === "SyntaxError" ? z.from(c, z.ERR_BAD_RESPONSE, this, null,
|
|
983
|
+
throw c.name === "SyntaxError" ? z.from(c, z.ERR_BAD_RESPONSE, this, null, ct(this, "response")) : c;
|
|
984
984
|
}
|
|
985
985
|
}
|
|
986
986
|
return e;
|
|
@@ -1180,7 +1180,7 @@ function Si(t, e, r, n) {
|
|
|
1180
1180
|
return t && (s || r === !1) ? (Zs(t, n), ll(t, e)) : e;
|
|
1181
1181
|
}
|
|
1182
1182
|
const eo = (t) => t instanceof Pe ? { ...t } : t;
|
|
1183
|
-
function
|
|
1183
|
+
function it(t, e) {
|
|
1184
1184
|
t = t || {}, e = e || {};
|
|
1185
1185
|
const r = /* @__PURE__ */ Object.create(null);
|
|
1186
1186
|
Object.defineProperty(r, "hasOwnProperty", {
|
|
@@ -1282,7 +1282,7 @@ const yl = (t) => encodeURIComponent(t).replace(
|
|
|
1282
1282
|
(e, r) => String.fromCharCode(parseInt(r, 16))
|
|
1283
1283
|
);
|
|
1284
1284
|
function Ri(t) {
|
|
1285
|
-
const e =
|
|
1285
|
+
const e = it({}, t), r = (w) => D.hasOwnProp(e, w) ? e[w] : void 0, n = r("data");
|
|
1286
1286
|
let s = r("withXSRFToken");
|
|
1287
1287
|
const o = r("xsrfHeaderName"), a = r("xsrfCookieName");
|
|
1288
1288
|
let i = r("headers");
|
|
@@ -1598,7 +1598,7 @@ const ys = "1.18.1", ro = 64 * 1024, { isFunction: Xt } = D, Ol = (t) => encodeU
|
|
|
1598
1598
|
maxContentLength: G,
|
|
1599
1599
|
maxBodyLength: Z
|
|
1600
1600
|
} = Ri(p);
|
|
1601
|
-
const pe = D.isNumber(G) && G > -1,
|
|
1601
|
+
const pe = D.isNumber(G) && G > -1, ge = D.isNumber(Z) && Z > -1, re = (I) => D.hasOwnProp(p, I) ? p[I] : void 0;
|
|
1602
1602
|
let ae = s || fetch;
|
|
1603
1603
|
j = j ? (j + "").toLowerCase() : "text";
|
|
1604
1604
|
let _ = _l(
|
|
@@ -1619,18 +1619,18 @@ const ys = "1.18.1", ro = 64 * 1024, { isFunction: Xt } = D, Ol = (t) => encodeU
|
|
|
1619
1619
|
let I;
|
|
1620
1620
|
const k = re("auth");
|
|
1621
1621
|
if (k) {
|
|
1622
|
-
const F = D.getSafeProp(k, "username") || "",
|
|
1622
|
+
const F = D.getSafeProp(k, "username") || "", ne = D.getSafeProp(k, "password") || "";
|
|
1623
1623
|
I = {
|
|
1624
1624
|
username: F,
|
|
1625
|
-
password:
|
|
1625
|
+
password: ne
|
|
1626
1626
|
};
|
|
1627
1627
|
}
|
|
1628
1628
|
if (Al(h)) {
|
|
1629
1629
|
const F = new URL(h, Oe.origin);
|
|
1630
1630
|
if (!I && (F.username || F.password)) {
|
|
1631
|
-
const
|
|
1631
|
+
const ne = no(F.username), ue = no(F.password);
|
|
1632
1632
|
I = {
|
|
1633
|
-
username:
|
|
1633
|
+
username: ne,
|
|
1634
1634
|
password: ue
|
|
1635
1635
|
};
|
|
1636
1636
|
}
|
|
@@ -1646,18 +1646,18 @@ const ys = "1.18.1", ro = 64 * 1024, { isFunction: Xt } = D, Ol = (t) => encodeU
|
|
|
1646
1646
|
p,
|
|
1647
1647
|
g
|
|
1648
1648
|
);
|
|
1649
|
-
if (
|
|
1649
|
+
if (ge && b !== "get" && b !== "head") {
|
|
1650
1650
|
const F = await P(A);
|
|
1651
1651
|
if (typeof F == "number" && isFinite(F) && (E = F, F > Z))
|
|
1652
1652
|
throw R();
|
|
1653
1653
|
}
|
|
1654
|
-
const B =
|
|
1654
|
+
const B = ge && (D.isReadableStream(A) || D.isStream(A)), J = (F, ne, ue) => to(
|
|
1655
1655
|
F,
|
|
1656
1656
|
ro,
|
|
1657
1657
|
(le) => {
|
|
1658
|
-
if (
|
|
1658
|
+
if (ge && le > Z)
|
|
1659
1659
|
throw d = R();
|
|
1660
|
-
|
|
1660
|
+
ne && ne(le);
|
|
1661
1661
|
},
|
|
1662
1662
|
ue
|
|
1663
1663
|
);
|
|
@@ -1667,8 +1667,8 @@ const ys = "1.18.1", ro = 64 * 1024, { isFunction: Xt } = D, Ol = (t) => encodeU
|
|
|
1667
1667
|
method: "POST",
|
|
1668
1668
|
body: A,
|
|
1669
1669
|
duplex: "half"
|
|
1670
|
-
}),
|
|
1671
|
-
if (D.isFormData(A) && (
|
|
1670
|
+
}), ne;
|
|
1671
|
+
if (D.isFormData(A) && (ne = F.headers.get("content-type")) && q.setContentType(ne), F.body) {
|
|
1672
1672
|
const [ue, le] = M && Qs(
|
|
1673
1673
|
E,
|
|
1674
1674
|
zr(Xs(M))
|
|
@@ -1720,8 +1720,8 @@ const ys = "1.18.1", ro = 64 * 1024, { isFunction: Xt } = D, Ol = (t) => encodeU
|
|
|
1720
1720
|
["status", "statusText", "headers"].forEach(($e) => {
|
|
1721
1721
|
F[$e] = C[$e];
|
|
1722
1722
|
});
|
|
1723
|
-
const
|
|
1724
|
-
|
|
1723
|
+
const ne = D.toFiniteNumber(L.getContentLength()), [ue, le] = x && Qs(
|
|
1724
|
+
ne,
|
|
1725
1725
|
zr(Xs(x), !0)
|
|
1726
1726
|
) || [];
|
|
1727
1727
|
let Te = 0;
|
|
@@ -1757,8 +1757,8 @@ const ys = "1.18.1", ro = 64 * 1024, { isFunction: Xt } = D, Ol = (t) => encodeU
|
|
|
1757
1757
|
g
|
|
1758
1758
|
);
|
|
1759
1759
|
}
|
|
1760
|
-
return !U && v && v(), await new Promise((F,
|
|
1761
|
-
Ti(F,
|
|
1760
|
+
return !U && v && v(), await new Promise((F, ne) => {
|
|
1761
|
+
Ti(F, ne, {
|
|
1762
1762
|
data: H,
|
|
1763
1763
|
headers: Pe.from(C.headers),
|
|
1764
1764
|
status: C.status,
|
|
@@ -1900,14 +1900,14 @@ function ao(t) {
|
|
|
1900
1900
|
}
|
|
1901
1901
|
);
|
|
1902
1902
|
}
|
|
1903
|
-
const
|
|
1903
|
+
const sn = {};
|
|
1904
1904
|
["object", "boolean", "number", "function", "string", "symbol"].forEach((t, e) => {
|
|
1905
|
-
|
|
1905
|
+
sn[t] = function(n) {
|
|
1906
1906
|
return typeof n === t || "a" + (e < 1 ? "n " : " ") + t;
|
|
1907
1907
|
};
|
|
1908
1908
|
});
|
|
1909
1909
|
const io = {};
|
|
1910
|
-
|
|
1910
|
+
sn.transitional = function(e, r, n) {
|
|
1911
1911
|
function s(o, a) {
|
|
1912
1912
|
return "[Axios v" + ys + "] Transitional option '" + o + "'" + a + (n ? ". " + n : "");
|
|
1913
1913
|
}
|
|
@@ -1925,7 +1925,7 @@ on.transitional = function(e, r, n) {
|
|
|
1925
1925
|
)), e ? e(o, a, i) : !0;
|
|
1926
1926
|
};
|
|
1927
1927
|
};
|
|
1928
|
-
|
|
1928
|
+
sn.spelling = function(e) {
|
|
1929
1929
|
return (r, n) => (console.warn(`${n} is likely a misspelling of ${e}`), !0);
|
|
1930
1930
|
};
|
|
1931
1931
|
function $l(t, e, r) {
|
|
@@ -1950,9 +1950,9 @@ function $l(t, e, r) {
|
|
|
1950
1950
|
}
|
|
1951
1951
|
const jr = {
|
|
1952
1952
|
assertOptions: $l,
|
|
1953
|
-
validators:
|
|
1953
|
+
validators: sn
|
|
1954
1954
|
}, Ae = jr.validators;
|
|
1955
|
-
let
|
|
1955
|
+
let st = class {
|
|
1956
1956
|
constructor(e) {
|
|
1957
1957
|
this.defaults = e || {}, this.interceptors = {
|
|
1958
1958
|
request: new Ws(),
|
|
@@ -1998,7 +1998,7 @@ let nt = class {
|
|
|
1998
1998
|
}
|
|
1999
1999
|
}
|
|
2000
2000
|
_request(e, r) {
|
|
2001
|
-
typeof e == "string" ? (r = r || {}, r.url = e) : r = e || {}, r =
|
|
2001
|
+
typeof e == "string" ? (r = r || {}, r.url = e) : r = e || {}, r = it(this.defaults, r);
|
|
2002
2002
|
const { transitional: n, paramsSerializer: s, headers: o } = r;
|
|
2003
2003
|
n !== void 0 && jr.assertOptions(
|
|
2004
2004
|
n,
|
|
@@ -2073,15 +2073,15 @@ let nt = class {
|
|
|
2073
2073
|
return l;
|
|
2074
2074
|
}
|
|
2075
2075
|
getUri(e) {
|
|
2076
|
-
e =
|
|
2076
|
+
e = it(this.defaults, e);
|
|
2077
2077
|
const r = Si(e.baseURL, e.url, e.allowAbsoluteUrls, e);
|
|
2078
2078
|
return Ei(r, e.params, e.paramsSerializer);
|
|
2079
2079
|
}
|
|
2080
2080
|
};
|
|
2081
2081
|
D.forEach(["delete", "get", "head", "options"], function(e) {
|
|
2082
|
-
|
|
2082
|
+
st.prototype[e] = function(r, n) {
|
|
2083
2083
|
return this.request(
|
|
2084
|
-
|
|
2084
|
+
it(n || {}, {
|
|
2085
2085
|
method: e,
|
|
2086
2086
|
url: r,
|
|
2087
2087
|
data: n && D.hasOwnProp(n, "data") ? n.data : void 0
|
|
@@ -2093,7 +2093,7 @@ D.forEach(["post", "put", "patch", "query"], function(e) {
|
|
|
2093
2093
|
function r(n) {
|
|
2094
2094
|
return function(o, a, i) {
|
|
2095
2095
|
return this.request(
|
|
2096
|
-
|
|
2096
|
+
it(i || {}, {
|
|
2097
2097
|
method: e,
|
|
2098
2098
|
headers: n ? {
|
|
2099
2099
|
"Content-Type": "multipart/form-data"
|
|
@@ -2104,7 +2104,7 @@ D.forEach(["post", "put", "patch", "query"], function(e) {
|
|
|
2104
2104
|
);
|
|
2105
2105
|
};
|
|
2106
2106
|
}
|
|
2107
|
-
|
|
2107
|
+
st.prototype[e] = r(), e !== "query" && (st.prototype[e + "Form"] = r(!0));
|
|
2108
2108
|
});
|
|
2109
2109
|
let Cl = class Pi {
|
|
2110
2110
|
constructor(e) {
|
|
@@ -2262,18 +2262,18 @@ Object.entries(Zn).forEach(([t, e]) => {
|
|
|
2262
2262
|
Zn[e] = t;
|
|
2263
2263
|
});
|
|
2264
2264
|
function Ni(t) {
|
|
2265
|
-
const e = new
|
|
2266
|
-
return D.extend(r,
|
|
2267
|
-
return Ni(
|
|
2265
|
+
const e = new st(t), r = oi(st.prototype.request, e);
|
|
2266
|
+
return D.extend(r, st.prototype, e, { allOwnKeys: !0 }), D.extend(r, e, null, { allOwnKeys: !0 }), r.create = function(s) {
|
|
2267
|
+
return Ni(it(t, s));
|
|
2268
2268
|
}, r;
|
|
2269
2269
|
}
|
|
2270
2270
|
const me = Ni(Gt);
|
|
2271
|
-
me.Axios =
|
|
2271
|
+
me.Axios = st;
|
|
2272
2272
|
me.CanceledError = Kt;
|
|
2273
2273
|
me.CancelToken = Cl;
|
|
2274
2274
|
me.isCancel = vi;
|
|
2275
2275
|
me.VERSION = ys;
|
|
2276
|
-
me.toFormData =
|
|
2276
|
+
me.toFormData = nn;
|
|
2277
2277
|
me.AxiosError = z;
|
|
2278
2278
|
me.Cancel = me.CanceledError;
|
|
2279
2279
|
me.all = function(e) {
|
|
@@ -2281,30 +2281,30 @@ me.all = function(e) {
|
|
|
2281
2281
|
};
|
|
2282
2282
|
me.spread = xl;
|
|
2283
2283
|
me.isAxiosError = Ll;
|
|
2284
|
-
me.mergeConfig =
|
|
2284
|
+
me.mergeConfig = it;
|
|
2285
2285
|
me.AxiosHeaders = Pe;
|
|
2286
2286
|
me.formToJSON = (t) => bi(D.isHTMLForm(t) ? new FormData(t) : t);
|
|
2287
2287
|
me.getAdapter = Ai.getAdapter;
|
|
2288
2288
|
me.HttpStatusCode = Zn;
|
|
2289
2289
|
me.default = me;
|
|
2290
2290
|
const {
|
|
2291
|
-
Axios:
|
|
2292
|
-
AxiosError:
|
|
2293
|
-
CanceledError:
|
|
2294
|
-
isCancel:
|
|
2295
|
-
CancelToken:
|
|
2296
|
-
VERSION:
|
|
2297
|
-
all:
|
|
2298
|
-
Cancel:
|
|
2299
|
-
isAxiosError:
|
|
2300
|
-
spread:
|
|
2301
|
-
toFormData:
|
|
2302
|
-
AxiosHeaders:
|
|
2303
|
-
HttpStatusCode:
|
|
2304
|
-
formToJSON:
|
|
2305
|
-
getAdapter:
|
|
2306
|
-
mergeConfig:
|
|
2307
|
-
create:
|
|
2291
|
+
Axios: gE,
|
|
2292
|
+
AxiosError: yE,
|
|
2293
|
+
CanceledError: wE,
|
|
2294
|
+
isCancel: EE,
|
|
2295
|
+
CancelToken: _E,
|
|
2296
|
+
VERSION: bE,
|
|
2297
|
+
all: vE,
|
|
2298
|
+
Cancel: TE,
|
|
2299
|
+
isAxiosError: SE,
|
|
2300
|
+
spread: RE,
|
|
2301
|
+
toFormData: OE,
|
|
2302
|
+
AxiosHeaders: AE,
|
|
2303
|
+
HttpStatusCode: PE,
|
|
2304
|
+
formToJSON: NE,
|
|
2305
|
+
getAdapter: IE,
|
|
2306
|
+
mergeConfig: DE,
|
|
2307
|
+
create: $E
|
|
2308
2308
|
} = me, kl = (t) => typeof t == "object" && t !== null && "resourceType" in t && t.resourceType === "OperationOutcome", Ml = (t) => {
|
|
2309
2309
|
if (!t.issue || !Array.isArray(t.issue))
|
|
2310
2310
|
return null;
|
|
@@ -2369,14 +2369,14 @@ const {
|
|
|
2369
2369
|
} else t instanceof Error ? r = t.message : r = "An unknown error occurred";
|
|
2370
2370
|
return { title: e, message: r };
|
|
2371
2371
|
}, Di = "/bahmni/home/index.html#/login", Vl = ["blob"];
|
|
2372
|
-
var
|
|
2373
|
-
return
|
|
2372
|
+
var yt = function() {
|
|
2373
|
+
return yt = Object.assign || function(t) {
|
|
2374
2374
|
for (var e, r = 1, n = arguments.length; r < n; r++) {
|
|
2375
2375
|
e = arguments[r];
|
|
2376
2376
|
for (var s in e) Object.prototype.hasOwnProperty.call(e, s) && (t[s] = e[s]);
|
|
2377
2377
|
}
|
|
2378
2378
|
return t;
|
|
2379
|
-
},
|
|
2379
|
+
}, yt.apply(this, arguments);
|
|
2380
2380
|
}, Hl = "~", Bl = "~~";
|
|
2381
2381
|
function Es(t, e) {
|
|
2382
2382
|
for (var r = {}, n = {}, s = t.split(Bl), o = !1, a = 0; s.length > a; a++) {
|
|
@@ -2386,7 +2386,7 @@ function Es(t, e) {
|
|
|
2386
2386
|
}
|
|
2387
2387
|
o = !0;
|
|
2388
2388
|
}
|
|
2389
|
-
return e ? { entities:
|
|
2389
|
+
return e ? { entities: yt(yt({}, r), e.entities), characters: yt(yt({}, n), e.characters) } : { entities: r, characters: n };
|
|
2390
2390
|
}
|
|
2391
2391
|
var Nn = {
|
|
2392
2392
|
xml: /&(?:#\d+|#[xX][\da-fA-F]+|[0-9a-zA-Z]+);?/g,
|
|
@@ -2481,10 +2481,10 @@ function Xl(t, e) {
|
|
|
2481
2481
|
return Ql(f, c, u, l);
|
|
2482
2482
|
});
|
|
2483
2483
|
}
|
|
2484
|
-
const Zl = process.env.PUBLIC_URL ?? "/",
|
|
2484
|
+
const Zl = process.env.PUBLIC_URL ?? "/", se = "/openmrs/ws/fhir2/R4", W = "/openmrs/ws/rest/v1", _s = "bahmni.user", Ci = "bahmni.user.location", fo = [
|
|
2485
2485
|
_s,
|
|
2486
2486
|
Ci
|
|
2487
|
-
], ed = "/bahmni-v2",
|
|
2487
|
+
], ed = "/bahmni-v2", CE = ed + "/home", on = W + "/session", bs = `${W}/bahmnicore/template/api`, es = (t) => {
|
|
2488
2488
|
if (typeof t == "string")
|
|
2489
2489
|
return Xl(t);
|
|
2490
2490
|
if (Array.isArray(t))
|
|
@@ -2530,7 +2530,7 @@ Ke.interceptors.response.use(
|
|
|
2530
2530
|
throw new Error(e);
|
|
2531
2531
|
}
|
|
2532
2532
|
);
|
|
2533
|
-
const V = async (t, e) => (await Ke.get(t, e)).data,
|
|
2533
|
+
const V = async (t, e) => (await Ke.get(t, e)).data, we = async (t, e) => (await Ke.post(t, e)).data, xi = async (t, e) => (await Ke.put(t, e)).data, xE = async (t, e) => (await Ke.patch(t, e)).data, vs = async (t, e) => (await Ke.delete(t, e)).data, X = (t) => typeof t == "string", It = () => {
|
|
2534
2534
|
let t, e;
|
|
2535
2535
|
const r = new Promise((n, s) => {
|
|
2536
2536
|
t = n, e = s;
|
|
@@ -2585,7 +2585,7 @@ const V = async (t, e) => (await Ke.get(t, e)).data, ge = async (t, e) => (await
|
|
|
2585
2585
|
for (const n in e)
|
|
2586
2586
|
n !== "__proto__" && n !== "constructor" && (n in t ? X(t[n]) || t[n] instanceof String || X(e[n]) || e[n] instanceof String ? r && (t[n] = e[n]) : Li(t[n], e[n], r) : t[n] = e[n]);
|
|
2587
2587
|
return t;
|
|
2588
|
-
},
|
|
2588
|
+
}, ut = (t) => t.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g, "\\$&");
|
|
2589
2589
|
var cd = {
|
|
2590
2590
|
"&": "&",
|
|
2591
2591
|
"<": "<",
|
|
@@ -2697,7 +2697,7 @@ class Jr {
|
|
|
2697
2697
|
}
|
|
2698
2698
|
}
|
|
2699
2699
|
var qe = new Jr();
|
|
2700
|
-
class
|
|
2700
|
+
class an {
|
|
2701
2701
|
constructor() {
|
|
2702
2702
|
this.observers = {};
|
|
2703
2703
|
}
|
|
@@ -2731,7 +2731,7 @@ class cn {
|
|
|
2731
2731
|
});
|
|
2732
2732
|
}
|
|
2733
2733
|
}
|
|
2734
|
-
class yo extends
|
|
2734
|
+
class yo extends an {
|
|
2735
2735
|
constructor(e) {
|
|
2736
2736
|
let r = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {
|
|
2737
2737
|
ns: ["translation"],
|
|
@@ -2816,7 +2816,7 @@ var ki = {
|
|
|
2816
2816
|
}
|
|
2817
2817
|
};
|
|
2818
2818
|
const wo = {}, Eo = (t) => !X(t) && typeof t != "boolean" && typeof t != "number";
|
|
2819
|
-
class Qr extends
|
|
2819
|
+
class Qr extends an {
|
|
2820
2820
|
constructor(e) {
|
|
2821
2821
|
let r = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
2822
2822
|
super(), sd(["resourceStore", "languageUtils", "pluralResolver", "interpolator", "backendConnector", "i18nFormat", "utils"], e, this), this.options = r, this.options.keySeparator === void 0 && (this.options.keySeparator = "."), this.logger = qe.create("translator");
|
|
@@ -2931,10 +2931,10 @@ class Qr extends cn {
|
|
|
2931
2931
|
ae && ae.res && this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.");
|
|
2932
2932
|
}
|
|
2933
2933
|
let pe = [];
|
|
2934
|
-
const
|
|
2935
|
-
if (this.options.saveMissingTo === "fallback" &&
|
|
2936
|
-
for (let ae = 0; ae <
|
|
2937
|
-
pe.push(
|
|
2934
|
+
const ge = this.languageUtils.getFallbackCodes(this.options.fallbackLng, r.lng || this.language);
|
|
2935
|
+
if (this.options.saveMissingTo === "fallback" && ge && ge[0])
|
|
2936
|
+
for (let ae = 0; ae < ge.length; ae++)
|
|
2937
|
+
pe.push(ge[ae]);
|
|
2938
2938
|
else this.options.saveMissingTo === "all" ? pe = this.languageUtils.toResolveHierarchy(r.lng || this.language) : pe.push(r.lng || this.language);
|
|
2939
2939
|
const re = (ae, _, g) => {
|
|
2940
2940
|
const v = b && g !== w ? g : G;
|
|
@@ -3225,7 +3225,7 @@ class gd {
|
|
|
3225
3225
|
maxReplaces: p,
|
|
3226
3226
|
alwaysFormat: h
|
|
3227
3227
|
} = e.interpolation;
|
|
3228
|
-
this.escape = r !== void 0 ? r : ud, this.escapeValue = n !== void 0 ? n : !0, this.useRawValueToEscape = s !== void 0 ? s : !1, this.prefix = o ?
|
|
3228
|
+
this.escape = r !== void 0 ? r : ud, this.escapeValue = n !== void 0 ? n : !0, this.useRawValueToEscape = s !== void 0 ? s : !1, this.prefix = o ? ut(o) : a || "{{", this.suffix = i ? ut(i) : c || "}}", this.formatSeparator = u || ",", this.unescapePrefix = l ? "" : f || "-", this.unescapeSuffix = this.unescapePrefix ? "" : l || "", this.nestingPrefix = w ? ut(w) : S || ut("$t("), this.nestingSuffix = O ? ut(O) : P || ut(")"), this.nestingOptionsSeparator = m || ",", this.maxReplaces = p || 1e3, this.alwaysFormat = h !== void 0 ? h : !1, this.resetRegExp();
|
|
3229
3229
|
}
|
|
3230
3230
|
reset() {
|
|
3231
3231
|
this.options && this.init(this.options);
|
|
@@ -3338,7 +3338,7 @@ const yd = (t) => {
|
|
|
3338
3338
|
formatName: e,
|
|
3339
3339
|
formatOptions: r
|
|
3340
3340
|
};
|
|
3341
|
-
},
|
|
3341
|
+
}, lt = (t) => {
|
|
3342
3342
|
const e = {};
|
|
3343
3343
|
return (r, n, s) => {
|
|
3344
3344
|
let o = s;
|
|
@@ -3355,32 +3355,32 @@ class wd {
|
|
|
3355
3355
|
constructor() {
|
|
3356
3356
|
let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
3357
3357
|
this.logger = qe.create("formatter"), this.options = e, this.formats = {
|
|
3358
|
-
number:
|
|
3358
|
+
number: lt((r, n) => {
|
|
3359
3359
|
const s = new Intl.NumberFormat(r, {
|
|
3360
3360
|
...n
|
|
3361
3361
|
});
|
|
3362
3362
|
return (o) => s.format(o);
|
|
3363
3363
|
}),
|
|
3364
|
-
currency:
|
|
3364
|
+
currency: lt((r, n) => {
|
|
3365
3365
|
const s = new Intl.NumberFormat(r, {
|
|
3366
3366
|
...n,
|
|
3367
3367
|
style: "currency"
|
|
3368
3368
|
});
|
|
3369
3369
|
return (o) => s.format(o);
|
|
3370
3370
|
}),
|
|
3371
|
-
datetime:
|
|
3371
|
+
datetime: lt((r, n) => {
|
|
3372
3372
|
const s = new Intl.DateTimeFormat(r, {
|
|
3373
3373
|
...n
|
|
3374
3374
|
});
|
|
3375
3375
|
return (o) => s.format(o);
|
|
3376
3376
|
}),
|
|
3377
|
-
relativetime:
|
|
3377
|
+
relativetime: lt((r, n) => {
|
|
3378
3378
|
const s = new Intl.RelativeTimeFormat(r, {
|
|
3379
3379
|
...n
|
|
3380
3380
|
});
|
|
3381
3381
|
return (o) => s.format(o, n.range || "day");
|
|
3382
3382
|
}),
|
|
3383
|
-
list:
|
|
3383
|
+
list: lt((r, n) => {
|
|
3384
3384
|
const s = new Intl.ListFormat(r, {
|
|
3385
3385
|
...n
|
|
3386
3386
|
});
|
|
@@ -3398,7 +3398,7 @@ class wd {
|
|
|
3398
3398
|
this.formats[e.toLowerCase().trim()] = r;
|
|
3399
3399
|
}
|
|
3400
3400
|
addCached(e, r) {
|
|
3401
|
-
this.formats[e.toLowerCase().trim()] =
|
|
3401
|
+
this.formats[e.toLowerCase().trim()] = lt(r);
|
|
3402
3402
|
}
|
|
3403
3403
|
format(e, r, n) {
|
|
3404
3404
|
let s = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : {};
|
|
@@ -3434,7 +3434,7 @@ class wd {
|
|
|
3434
3434
|
const Ed = (t, e) => {
|
|
3435
3435
|
t.pending[e] !== void 0 && (delete t.pending[e], t.pendingCount--);
|
|
3436
3436
|
};
|
|
3437
|
-
class _d extends
|
|
3437
|
+
class _d extends an {
|
|
3438
3438
|
constructor(e, r, n) {
|
|
3439
3439
|
let s = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : {};
|
|
3440
3440
|
super(), this.backend = e, this.store = r, this.services = n, this.languageUtils = n.languageUtils, this.options = s, this.logger = qe.create("backendConnector"), this.waitingReads = [], this.maxParallelReads = s.maxParallelReads || 10, this.readingCalls = 0, this.maxRetries = s.maxRetries >= 0 ? s.maxRetries : 5, this.retryTimeout = s.retryTimeout >= 1 ? s.retryTimeout : 350, this.state = {}, this.queue = [], this.backend?.init?.(n, s.backend, s);
|
|
@@ -3631,7 +3631,7 @@ const So = () => ({
|
|
|
3631
3631
|
typeof t[r] == "function" && (t[r] = t[r].bind(t));
|
|
3632
3632
|
});
|
|
3633
3633
|
};
|
|
3634
|
-
class Vt extends
|
|
3634
|
+
class Vt extends an {
|
|
3635
3635
|
constructor() {
|
|
3636
3636
|
let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, r = arguments.length > 1 ? arguments[1] : void 0;
|
|
3637
3637
|
if (super(), this.options = Ro(e), this.services = {}, this.logger = qe, this.modules = {
|
|
@@ -4045,18 +4045,18 @@ var Ad = {
|
|
|
4045
4045
|
return n;
|
|
4046
4046
|
}
|
|
4047
4047
|
};
|
|
4048
|
-
let
|
|
4048
|
+
let dt = null;
|
|
4049
4049
|
const Po = () => {
|
|
4050
|
-
if (
|
|
4050
|
+
if (dt !== null) return dt;
|
|
4051
4051
|
try {
|
|
4052
|
-
if (
|
|
4052
|
+
if (dt = typeof window < "u" && window.localStorage !== null, !dt)
|
|
4053
4053
|
return !1;
|
|
4054
4054
|
const t = "i18next.translate.boo";
|
|
4055
4055
|
window.localStorage.setItem(t, "foo"), window.localStorage.removeItem(t);
|
|
4056
4056
|
} catch {
|
|
4057
|
-
|
|
4057
|
+
dt = !1;
|
|
4058
4058
|
}
|
|
4059
|
-
return
|
|
4059
|
+
return dt;
|
|
4060
4060
|
};
|
|
4061
4061
|
var Id = {
|
|
4062
4062
|
name: "localStorage",
|
|
@@ -4076,18 +4076,18 @@ var Id = {
|
|
|
4076
4076
|
r && Po() && window.localStorage.setItem(r, t);
|
|
4077
4077
|
}
|
|
4078
4078
|
};
|
|
4079
|
-
let
|
|
4079
|
+
let ft = null;
|
|
4080
4080
|
const No = () => {
|
|
4081
|
-
if (
|
|
4081
|
+
if (ft !== null) return ft;
|
|
4082
4082
|
try {
|
|
4083
|
-
if (
|
|
4083
|
+
if (ft = typeof window < "u" && window.sessionStorage !== null, !ft)
|
|
4084
4084
|
return !1;
|
|
4085
4085
|
const t = "i18next.translate.boo";
|
|
4086
4086
|
window.sessionStorage.setItem(t, "foo"), window.sessionStorage.removeItem(t);
|
|
4087
4087
|
} catch {
|
|
4088
|
-
|
|
4088
|
+
ft = !1;
|
|
4089
4089
|
}
|
|
4090
|
-
return
|
|
4090
|
+
return ft;
|
|
4091
4091
|
};
|
|
4092
4092
|
var Dd = {
|
|
4093
4093
|
name: "sessionStorage",
|
|
@@ -4204,7 +4204,7 @@ class Fi {
|
|
|
4204
4204
|
}
|
|
4205
4205
|
}
|
|
4206
4206
|
Fi.type = "languageDetector";
|
|
4207
|
-
const Md = "en", qi = "NG_TRANSLATE_LANG_KEY", Ud = (t, e) => Zl + `${t}/locales/locale_${e}.json`, Fd = (t, e) => `/bahmni_config/openmrs/i18n/${t}/locale_${e}.json`,
|
|
4207
|
+
const Md = "en", qi = "NG_TRANSLATE_LANG_KEY", Ud = (t, e) => Zl + `${t}/locales/locale_${e}.json`, Fd = (t, e) => `/bahmni_config/openmrs/i18n/${t}/locale_${e}.json`, cn = () => localStorage.getItem(qi) ?? Md, Io = async (t) => {
|
|
4208
4208
|
try {
|
|
4209
4209
|
const e = await V(t);
|
|
4210
4210
|
return e || (console.error(`Invalid response from ${t}`), {});
|
|
@@ -4228,7 +4228,7 @@ const Md = "en", qi = "NG_TRANSLATE_LANG_KEY", Ud = (t, e) => Zl + `${t}/locales
|
|
|
4228
4228
|
}, t !== "en" && (r.en = {
|
|
4229
4229
|
[e]: await Do(e, "en")
|
|
4230
4230
|
}), r;
|
|
4231
|
-
},
|
|
4231
|
+
}, LE = (t, e) => {
|
|
4232
4232
|
const r = t.toUpperCase(), n = e.toUpperCase().replace(/\s+/g, "_").replace(/[^A-Z0-9_]/g, "");
|
|
4233
4233
|
return `${r}_${n}`;
|
|
4234
4234
|
}, jd = (t, e) => {
|
|
@@ -4245,8 +4245,8 @@ const Md = "en", qi = "NG_TRANSLATE_LANG_KEY", Ud = (t, e) => Zl + `${t}/locales
|
|
|
4245
4245
|
labels: n.labels ?? {},
|
|
4246
4246
|
concepts: n.concepts ?? {}
|
|
4247
4247
|
};
|
|
4248
|
-
},
|
|
4249
|
-
const e =
|
|
4248
|
+
}, kE = async (t) => {
|
|
4249
|
+
const e = cn(), r = await qd(e, t);
|
|
4250
4250
|
return de.isInitialized ? (Object.entries(r).forEach(([n, s]) => {
|
|
4251
4251
|
Object.entries(s).forEach(([o, a]) => {
|
|
4252
4252
|
de.addResourceBundle(n, o, a, !0, !0);
|
|
@@ -4268,7 +4268,7 @@ const Md = "en", qi = "NG_TRANSLATE_LANG_KEY", Ud = (t, e) => Zl + `${t}/locales
|
|
|
4268
4268
|
}
|
|
4269
4269
|
}), de;
|
|
4270
4270
|
};
|
|
4271
|
-
function
|
|
4271
|
+
function ME() {
|
|
4272
4272
|
const t = qt(null), e = qt(null), r = Sn(async () => {
|
|
4273
4273
|
e.current && (e.current.getTracks().forEach((a) => a.stop()), e.current = null);
|
|
4274
4274
|
const o = await navigator.mediaDevices.getUserMedia({
|
|
@@ -4306,15 +4306,15 @@ function kE() {
|
|
|
4306
4306
|
},
|
|
4307
4307
|
[]
|
|
4308
4308
|
);
|
|
4309
|
-
return
|
|
4309
|
+
return ot(() => () => n(), [n]), { videoRef: t, start: r, stop: n, capture: s };
|
|
4310
4310
|
}
|
|
4311
|
-
const Vd = "bahmni.enableAuditLog", Ts = (t) => `${W}/bahmnicore/sql/globalproperty?property=${t}`, Hd = "http://hl7.org/fhir/StructureDefinition/patient-birthTime", ji = "http://fhir.openmrs.org/code-system/encounter-type", Ss = "http://terminology.hl7.org/CodeSystem/v3-ActCode", Rs = "http://fhir.openmrs.org/ext/encounter-tag", Os = "problem-list-item",
|
|
4311
|
+
const Vd = "bahmni.enableAuditLog", Ts = (t) => `${W}/bahmnicore/sql/globalproperty?property=${t}`, Hd = "http://hl7.org/fhir/StructureDefinition/patient-birthTime", ji = "http://fhir.openmrs.org/code-system/encounter-type", Ss = "http://terminology.hl7.org/CodeSystem/v3-ActCode", Rs = "http://fhir.openmrs.org/ext/encounter-tag", Os = "problem-list-item", UE = "http://terminology.hl7.org/CodeSystem/condition-ver-status", Vi = "encounter-diagnosis", Bd = "http://terminology.hl7.org/CodeSystem/condition-clinical", zd = "http://terminology.hl7.org/CodeSystem/condition-category", FE = "http://fhir.bahmni.org/ext/lab-order-concept-type", qE = "http://fhir.bahmni.org/ext/medicationRequest/note-category", jE = "http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation", VE = "http://fhir.bahmni.org/ext/observation/form-namespace-path", HE = "http://fhir.bahmni.org/ext/observation/obs-value-attachment", BE = "Numeric", zE = "Complex", YE = "final", GE = "Observation", KE = /^\d{4}-\d{2}-\d{2}/, WE = /^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}/, JE = {
|
|
4312
4312
|
ABNORMAL: { code: "A", display: "Abnormal" },
|
|
4313
4313
|
NORMAL: { code: "N", display: "Normal" }
|
|
4314
|
-
},
|
|
4314
|
+
}, QE = async (t, e, r) => {
|
|
4315
4315
|
const { exact: n = !0, refetchActiveNow: s = !0 } = r ?? {};
|
|
4316
4316
|
await t.cancelQueries({ queryKey: e, exact: n }), await t.removeQueries({ queryKey: e, exact: n }), await t.invalidateQueries({ queryKey: e, exact: n }), s && await t.refetchQueries({ queryKey: e, exact: n, type: "active" });
|
|
4317
|
-
},
|
|
4317
|
+
}, XE = () => Math.random().toString(36).substring(2, 9), un = () => {
|
|
4318
4318
|
if (typeof globalThis < "u" && globalThis.crypto?.randomUUID)
|
|
4319
4319
|
return globalThis.crypto.randomUUID();
|
|
4320
4320
|
const t = globalThis.crypto || globalThis.msCrypto;
|
|
@@ -4326,7 +4326,7 @@ const Vd = "bahmni.enableAuditLog", Ts = (t) => `${W}/bahmnicore/sql/globalprope
|
|
|
4326
4326
|
"Crypto API (crypto.randomUUID or crypto.getRandomValues) is not available. UUID generation requires cryptographically secure random number generation."
|
|
4327
4327
|
);
|
|
4328
4328
|
};
|
|
4329
|
-
function
|
|
4329
|
+
function ZE(t, e = " -") {
|
|
4330
4330
|
return t ? t.toLowerCase().split(new RegExp(`[${e}]+`)).map((n) => n.charAt(0).toUpperCase() + n.slice(1)).join(" ") : "";
|
|
4331
4331
|
}
|
|
4332
4332
|
function As(t) {
|
|
@@ -4344,10 +4344,10 @@ function Ps(t) {
|
|
|
4344
4344
|
function $o(t, e = "/") {
|
|
4345
4345
|
document.cookie = `${t}=; expires=Thu, 01 Jan 1970 00:00:00 UTC; path=${e};`;
|
|
4346
4346
|
}
|
|
4347
|
-
function
|
|
4347
|
+
function e0(t, e) {
|
|
4348
4348
|
document.cookie = `${t}=${e}; path=/;`;
|
|
4349
4349
|
}
|
|
4350
|
-
const
|
|
4350
|
+
const t0 = (t) => !t || t.trim().length === 0, r0 = (t, e) => {
|
|
4351
4351
|
if (!t || !e || e.length === 0)
|
|
4352
4352
|
return 999;
|
|
4353
4353
|
const r = e.findIndex(
|
|
@@ -4355,7 +4355,7 @@ const e0 = (t) => !t || t.trim().length === 0, t0 = (t, e) => {
|
|
|
4355
4355
|
);
|
|
4356
4356
|
return r === -1 ? 999 : r;
|
|
4357
4357
|
};
|
|
4358
|
-
function
|
|
4358
|
+
function n0(t, e) {
|
|
4359
4359
|
if (!t || t.length === 0)
|
|
4360
4360
|
return [];
|
|
4361
4361
|
const r = /* @__PURE__ */ new Map();
|
|
@@ -4367,7 +4367,7 @@ function r0(t, e) {
|
|
|
4367
4367
|
items: s
|
|
4368
4368
|
}));
|
|
4369
4369
|
}
|
|
4370
|
-
function
|
|
4370
|
+
function s0(t, e, r) {
|
|
4371
4371
|
if (!t || t.length === 0)
|
|
4372
4372
|
return [];
|
|
4373
4373
|
const n = /* @__PURE__ */ new Set(), s = /* @__PURE__ */ new Set();
|
|
@@ -4388,7 +4388,7 @@ function Yd(t) {
|
|
|
4388
4388
|
o[n(a[1])] = n(a[2]);
|
|
4389
4389
|
return o;
|
|
4390
4390
|
}
|
|
4391
|
-
function
|
|
4391
|
+
function o0(t, e, r) {
|
|
4392
4392
|
const n = /{{([^}]*)}}/g, s = t.match(n);
|
|
4393
4393
|
let o = t;
|
|
4394
4394
|
const a = r ?? !1, i = a ? Yd() : {};
|
|
@@ -4401,7 +4401,7 @@ function s0(t, e, r) {
|
|
|
4401
4401
|
const Gd = (t) => new Promise((e, r) => {
|
|
4402
4402
|
const n = new FileReader();
|
|
4403
4403
|
n.onloadend = () => e(n.result), n.onerror = r, n.readAsDataURL(t);
|
|
4404
|
-
}),
|
|
4404
|
+
}), a0 = (t) => {
|
|
4405
4405
|
if (typeof t == "number" && !isNaN(t))
|
|
4406
4406
|
return "number";
|
|
4407
4407
|
if (typeof t != "string")
|
|
@@ -4412,20 +4412,20 @@ const Gd = (t) => new Promise((e, r) => {
|
|
|
4412
4412
|
function Hi(t) {
|
|
4413
4413
|
return t.replace(/[\s-]+/g, "_").replace(/([a-z])([A-Z])/g, "$1_$2").replace(/([A-Z])([A-Z][a-z])/g, "$1_$2").toUpperCase();
|
|
4414
4414
|
}
|
|
4415
|
-
function
|
|
4415
|
+
function i0(t, e, r, n, s) {
|
|
4416
4416
|
const o = (a) => ({
|
|
4417
4417
|
...n(a),
|
|
4418
4418
|
disabled: !0
|
|
4419
4419
|
});
|
|
4420
4420
|
return t ? [o(s.loading)] : e ? [o(s.error)] : r.length ? r : [o(s.empty)];
|
|
4421
4421
|
}
|
|
4422
|
-
function
|
|
4422
|
+
function c0(t) {
|
|
4423
4423
|
return t ? t.replaceAll(/[_-]/g, " ").replaceAll(/([a-z])([A-Z])/g, "$1 $2").replaceAll(/([A-Z])([A-Z][a-z])/g, "$1 $2").replaceAll(/([a-z])(\d)/gi, "$1 $2").replaceAll(/(\d)([a-z])/gi, "$1 $2").replaceAll(/\s+/g, " ").trim().toLowerCase().replace(/^./, (e) => e.toUpperCase()) : "";
|
|
4424
4424
|
}
|
|
4425
|
-
const
|
|
4425
|
+
const u0 = (t, e) => {
|
|
4426
4426
|
const r = t.trim();
|
|
4427
4427
|
return r ? e(`GENDER_${Hi(r)}`) : null;
|
|
4428
|
-
},
|
|
4428
|
+
}, l0 = (t, e) => {
|
|
4429
4429
|
const r = t.trim();
|
|
4430
4430
|
if (!r) return null;
|
|
4431
4431
|
const n = `COUNTRY_CODE_${Hi(r)}`, s = e(n);
|
|
@@ -4437,8 +4437,8 @@ const c0 = (t, e) => {
|
|
|
4437
4437
|
} catch {
|
|
4438
4438
|
return r;
|
|
4439
4439
|
}
|
|
4440
|
-
}, Kd = (t) => W + `/user?username=${t}&v=custom:(display,username,uuid)`, Wd = `${W}/location?tags=Login Location&v=default`, Jd = (t) => W + `/user/${t}?v=full`, Qd = (t) => W + `/bahmni/app/setting?module=${t}`, Xd = "default_dateFormat", Zd =
|
|
4441
|
-
async function
|
|
4440
|
+
}, Kd = (t) => W + `/user?username=${t}&v=custom:(display,username,uuid)`, Wd = `${W}/location?tags=Login Location&v=default`, Jd = (t) => W + `/user/${t}?v=full`, Qd = (t) => W + `/bahmni/app/setting?module=${t}`, Xd = "default_dateFormat", Zd = on;
|
|
4441
|
+
async function d0() {
|
|
4442
4442
|
const t = As(_s);
|
|
4443
4443
|
if (!t)
|
|
4444
4444
|
return null;
|
|
@@ -4459,14 +4459,14 @@ const Rt = () => {
|
|
|
4459
4459
|
if (!e.uuid)
|
|
4460
4460
|
throw new Error(de.t("ERROR_FETCHING_USER_LOCATION_DETAILS"));
|
|
4461
4461
|
return e;
|
|
4462
|
-
},
|
|
4462
|
+
}, f0 = async () => (await V(Qd("commons"))).find(
|
|
4463
4463
|
(r) => r.property === Xd
|
|
4464
|
-
)?.value ?? null,
|
|
4465
|
-
await
|
|
4464
|
+
)?.value ?? null, h0 = async () => (await V(Wd)).results ?? [], p0 = async (t, e) => {
|
|
4465
|
+
await we(Jd(t), {
|
|
4466
4466
|
userProperties: { loginLocation: e.uuid }
|
|
4467
4467
|
});
|
|
4468
|
-
},
|
|
4469
|
-
await
|
|
4468
|
+
}, m0 = async (t) => {
|
|
4469
|
+
await we(Zd, { sessionLocation: t });
|
|
4470
4470
|
}, Ns = {
|
|
4471
4471
|
person: {
|
|
4472
4472
|
searchParam: "customAttribute",
|
|
@@ -4485,7 +4485,7 @@ const Rt = () => {
|
|
|
4485
4485
|
t.append(n.resultParam, s);
|
|
4486
4486
|
});
|
|
4487
4487
|
});
|
|
4488
|
-
}, Bi = (t) =>
|
|
4488
|
+
}, Bi = (t) => se + `/Patient/${t}`, tf = (t, e, r) => {
|
|
4489
4489
|
const n = new URLSearchParams({
|
|
4490
4490
|
filterOnAllIdentifiers: "false",
|
|
4491
4491
|
identifier: t,
|
|
@@ -4510,10 +4510,10 @@ const Rt = () => {
|
|
|
4510
4510
|
return i && (a.set(i.searchParam, o), r.forEach((c) => {
|
|
4511
4511
|
a.append(i.searchFieldParam, c);
|
|
4512
4512
|
})), ef(a, n), W + `/bahmni/search/patient?${a.toString()}`;
|
|
4513
|
-
}, zi = W + "/idgen/identifiertype", nf = (t) => W + `/bahmni/app/setting?module=${t}`, sf = "bahmni.primaryIdentifierType", of = W + "/bahmnicore/patientprofile", af = (t) => W + `/bahmnicore/patientprofile/${t}`, cf =
|
|
4513
|
+
}, zi = W + "/idgen/identifiertype", nf = (t) => W + `/bahmni/app/setting?module=${t}`, sf = "bahmni.primaryIdentifierType", of = W + "/bahmnicore/patientprofile", af = (t) => W + `/bahmnicore/patientprofile/${t}`, cf = se + "/Patient", uf = (t) => W + `/idgen/identifiersource/${t}/identifier`, lf = (t) => W + `/patientprofile/${t}?v=full`, df = (t, e, r = 20, n) => {
|
|
4514
4514
|
let s = `/openmrs/module/addresshierarchy/ajax/getPossibleAddressHierarchyEntriesWithParents.form?addressField=${t}&limit=${r}&searchString=${encodeURIComponent(e)}`;
|
|
4515
4515
|
return n && (s += `&parent=${n}`), s;
|
|
4516
|
-
}, ff = "/openmrs/module/addresshierarchy/ajax/getOrderedAddressHierarchyLevels.form", hf = W + "/relationshiptype?v=custom:(aIsToB,bIsToA,uuid)&limit=150", pf = 20, mf = 2,
|
|
4516
|
+
}, ff = "/openmrs/module/addresshierarchy/ajax/getOrderedAddressHierarchyLevels.form", hf = W + "/relationshiptype?v=custom:(aIsToB,bIsToA,uuid)&limit=150", pf = 20, mf = 2, g0 = 120, y0 = 50, w0 = 15, gf = /^[a-f0-9-]{36}$/i, yf = W + "/personattributetype?v=custom:(uuid,name,sortWeight,description,format,concept:(uuid,display,answers:(uuid,name)))", wf = "fhir2Extension.telecomAttributeTypeMap", Is = se + "/RelatedPerson", Ef = (t) => `${Is}?patient=Patient/${t}`, _f = (t) => `${Is}/${t}`, E0 = (t) => t === "male" ? "M" : t === "female" ? "F" : t === "other" ? "O" : "U", bf = async (t) => {
|
|
4517
4517
|
if (!t || t.trim() === "" || !gf.test(t))
|
|
4518
4518
|
throw new Error(Ii);
|
|
4519
4519
|
return V(Bi(t));
|
|
@@ -4551,22 +4551,22 @@ const Rt = () => {
|
|
|
4551
4551
|
identifier: o,
|
|
4552
4552
|
photoUrl: t.photo?.[0]?.url
|
|
4553
4553
|
};
|
|
4554
|
-
},
|
|
4554
|
+
}, _0 = async (t) => {
|
|
4555
4555
|
const e = await bf(t);
|
|
4556
4556
|
return Of(e);
|
|
4557
|
-
},
|
|
4557
|
+
}, b0 = async (t) => {
|
|
4558
4558
|
if (!t.startsWith("/"))
|
|
4559
4559
|
throw new Error("Photo URL must be a relative path");
|
|
4560
4560
|
const e = await V(t, {
|
|
4561
4561
|
responseType: "blob"
|
|
4562
4562
|
});
|
|
4563
4563
|
return await Gd(e);
|
|
4564
|
-
},
|
|
4564
|
+
}, v0 = async (t, e) => {
|
|
4565
4565
|
const r = Rt();
|
|
4566
4566
|
return await V(
|
|
4567
4567
|
tf(t, r.uuid, e)
|
|
4568
4568
|
);
|
|
4569
|
-
},
|
|
4569
|
+
}, T0 = async (t, e, r, n, s) => {
|
|
4570
4570
|
const o = Rt();
|
|
4571
4571
|
return await V(
|
|
4572
4572
|
rf(
|
|
@@ -4577,9 +4577,9 @@ const Rt = () => {
|
|
|
4577
4577
|
o.uuid
|
|
4578
4578
|
)
|
|
4579
4579
|
);
|
|
4580
|
-
},
|
|
4580
|
+
}, S0 = async () => V(zi), Af = async () => (await V(nf("core"))).find(
|
|
4581
4581
|
(r) => r.property === sf
|
|
4582
|
-
)?.value ?? null,
|
|
4582
|
+
)?.value ?? null, R0 = async () => {
|
|
4583
4583
|
const [t, e] = await Promise.all([
|
|
4584
4584
|
V(zi),
|
|
4585
4585
|
Af()
|
|
@@ -4607,10 +4607,10 @@ const Rt = () => {
|
|
|
4607
4607
|
primaryIdentifierTypeUuid: e,
|
|
4608
4608
|
primaryIdentifierTypeName: null
|
|
4609
4609
|
};
|
|
4610
|
-
},
|
|
4610
|
+
}, O0 = async (t) => we(of, t), A0 = async (t, e) => we(
|
|
4611
4611
|
af(t),
|
|
4612
4612
|
e
|
|
4613
|
-
),
|
|
4613
|
+
), P0 = (t) => we(cf, t), N0 = (t) => we(uf(t), {}), I0 = (t, e) => xi(Bi(t), e), D0 = async () => V(Ts("mrs.genders")), $0 = async (t, e, r = pf, n) => {
|
|
4614
4614
|
if (!e || e.length < mf)
|
|
4615
4615
|
return [];
|
|
4616
4616
|
try {
|
|
@@ -4622,7 +4622,7 @@ const Rt = () => {
|
|
|
4622
4622
|
`Failed to fetch address hierarchy for field "${t}": ${s instanceof Error ? s.message : "Unknown error"}`
|
|
4623
4623
|
);
|
|
4624
4624
|
}
|
|
4625
|
-
},
|
|
4625
|
+
}, C0 = async () => V(ff), x0 = async (t) => V(lf(t)), L0 = async () => {
|
|
4626
4626
|
try {
|
|
4627
4627
|
return (await V(
|
|
4628
4628
|
hf
|
|
@@ -4636,7 +4636,7 @@ const Rt = () => {
|
|
|
4636
4636
|
`Failed to fetch relationship types: ${t instanceof Error ? t.message : "Unknown error"}`
|
|
4637
4637
|
);
|
|
4638
4638
|
}
|
|
4639
|
-
},
|
|
4639
|
+
}, k0 = async () => V(yf), Pf = (t) => t ? t.split(";").map((e) => e.trim()).filter(Boolean).reduce((e, r) => {
|
|
4640
4640
|
const [n, s, o, a] = r.split(":");
|
|
4641
4641
|
return !n?.trim() || !s?.trim() || e.push({
|
|
4642
4642
|
attributeTypeUuid: n.trim(),
|
|
@@ -4644,14 +4644,14 @@ const Rt = () => {
|
|
|
4644
4644
|
use: o?.trim() ? o.trim().toLowerCase() : void 0,
|
|
4645
4645
|
rank: a?.trim() && !isNaN(Number(a.trim())) ? Number(a.trim()) : void 0
|
|
4646
4646
|
}), e;
|
|
4647
|
-
}, []) : [],
|
|
4647
|
+
}, []) : [], M0 = async () => {
|
|
4648
4648
|
const t = await V(
|
|
4649
4649
|
Ts(wf)
|
|
4650
4650
|
);
|
|
4651
4651
|
return Pf(t ? String(t) : null);
|
|
4652
|
-
},
|
|
4652
|
+
}, U0 = async (t) => V(Ef(t)), F0 = async (t) => we(Is, t), q0 = async (t) => vs(_f(t));
|
|
4653
4653
|
var Nf = /* @__PURE__ */ ((t) => (t.BOOLEAN = "java.lang.Boolean", t.BOOLEAN_DATATYPE = "org.openmrs.customdatatype.datatype.BooleanDatatype", t.CONCEPT = "org.openmrs.Concept", t.CODED_CONCEPT = "org.bahmni.module.bahmnicore.customdatatype.datatype.CodedConceptDatatype", t.CONCEPT_DATATYPE = "org.openmrs.customdatatype.datatype.ConceptDatatype", t.STRING = "java.lang.String", t.FREE_TEXT = "org.openmrs.customdatatype.datatype.FreeTextDatatype", t.REGEX_VALIDATED_TEXT = "org.openmrs.customdatatype.datatype.RegexValidatedTextDatatype", t.INTEGER = "java.lang.Integer", t.FLOAT = "java.lang.Float", t.ATTRIBUTABLE_DATE = "org.openmrs.util.AttributableDate", t.DATE_DATATYPE = "org.openmrs.customdatatype.datatype.DateDatatype", t))(Nf || {}), If = /* @__PURE__ */ ((t) => (t.CHECKBOX = "checkbox", t.DROPDOWN = "dropdown", t.TEXT = "text", t.NUMBER = "number", t.DATE = "date", t))(If || {});
|
|
4654
|
-
const
|
|
4654
|
+
const j0 = (t) => t === "java.lang.Boolean" || t === "org.openmrs.customdatatype.datatype.BooleanDatatype" ? "checkbox" : t === "org.openmrs.Concept" || t === "org.bahmni.module.bahmnicore.customdatatype.datatype.CodedConceptDatatype" || t === "org.openmrs.customdatatype.datatype.ConceptDatatype" ? "dropdown" : t === "java.lang.Integer" || t === "java.lang.Float" ? "number" : t === "org.openmrs.util.AttributableDate" || t === "org.openmrs.customdatatype.datatype.DateDatatype" ? "date" : "text", V0 = (t) => t === "java.lang.Boolean" || t === "org.openmrs.customdatatype.datatype.BooleanDatatype", H0 = (t) => t === "org.openmrs.Concept" || t === "org.bahmni.module.bahmnicore.customdatatype.datatype.CodedConceptDatatype" || t === "org.openmrs.customdatatype.datatype.ConceptDatatype", B0 = (t) => t === "java.lang.Integer" || t === "java.lang.Float", z0 = (t) => t === "org.openmrs.util.AttributableDate" || t === "org.openmrs.customdatatype.datatype.DateDatatype", Y0 = (t) => t === "java.lang.String" || t === "org.openmrs.customdatatype.datatype.FreeTextDatatype" || t === "org.openmrs.customdatatype.datatype.RegexValidatedTextDatatype", Df = (t) => {
|
|
4655
4655
|
const e = new CustomEvent("bahmni-audit-log", { detail: t });
|
|
4656
4656
|
window.dispatchEvent(e);
|
|
4657
4657
|
}, $f = (t) => {
|
|
@@ -4772,10 +4772,10 @@ const q0 = (t) => t === "java.lang.Boolean" || t === "org.openmrs.customdatatype
|
|
|
4772
4772
|
...n && {
|
|
4773
4773
|
episodeOfCare: [{ reference: `EpisodeOfCare/${n}` }]
|
|
4774
4774
|
}
|
|
4775
|
-
}),
|
|
4775
|
+
}), G0 = async () => V(kf()), jf = async (t) => V(Uf(t)), Yi = async (t) => V(Ff(t)), Vf = async (t) => we(Mf, t), K0 = async (t) => {
|
|
4776
4776
|
const e = await jf(t);
|
|
4777
4777
|
return e?.results && e.results.length > 0;
|
|
4778
|
-
},
|
|
4778
|
+
}, W0 = async (t, e) => {
|
|
4779
4779
|
const r = await Yi(
|
|
4780
4780
|
Rt().uuid
|
|
4781
4781
|
), n = {
|
|
@@ -4790,7 +4790,7 @@ const q0 = (t) => t === "java.lang.Boolean" || t === "org.openmrs.customdatatype
|
|
|
4790
4790
|
module: rs.OPEN_VISIT.module
|
|
4791
4791
|
}), s;
|
|
4792
4792
|
}, Hf = "/openmrs/ws/fhir2/R4/Encounter";
|
|
4793
|
-
async function
|
|
4793
|
+
async function J0(t, e, r, n, s) {
|
|
4794
4794
|
const o = qf(
|
|
4795
4795
|
t,
|
|
4796
4796
|
e,
|
|
@@ -4798,7 +4798,7 @@ async function W0(t, e, r, n, s) {
|
|
|
4798
4798
|
n,
|
|
4799
4799
|
s
|
|
4800
4800
|
);
|
|
4801
|
-
return
|
|
4801
|
+
return we(Hf, o);
|
|
4802
4802
|
}
|
|
4803
4803
|
const Gi = 6048e5, Bf = 864e5, ln = 6e4, Ds = 36e5, zf = 1e3, Co = /* @__PURE__ */ Symbol.for("constructDateFrom");
|
|
4804
4804
|
function ve(t, e) {
|
|
@@ -4844,7 +4844,7 @@ function Ki(t, e) {
|
|
|
4844
4844
|
const i = vt(a);
|
|
4845
4845
|
return r.getTime() >= o.getTime() ? n + 1 : r.getTime() >= i.getTime() ? n : n - 1;
|
|
4846
4846
|
}
|
|
4847
|
-
function
|
|
4847
|
+
function Xr(t) {
|
|
4848
4848
|
const e = ie(t), r = new Date(
|
|
4849
4849
|
Date.UTC(
|
|
4850
4850
|
e.getFullYear(),
|
|
@@ -4874,7 +4874,7 @@ function Wi(t, e, r) {
|
|
|
4874
4874
|
r?.in,
|
|
4875
4875
|
t,
|
|
4876
4876
|
e
|
|
4877
|
-
), o = xo(n), a = xo(s), i = +o -
|
|
4877
|
+
), o = xo(n), a = xo(s), i = +o - Xr(o), c = +a - Xr(a);
|
|
4878
4878
|
return Math.round((i - c) / Bf);
|
|
4879
4879
|
}
|
|
4880
4880
|
function Gf(t, e) {
|
|
@@ -5484,7 +5484,7 @@ const ze = {
|
|
|
5484
5484
|
);
|
|
5485
5485
|
return he(s, e.length);
|
|
5486
5486
|
}
|
|
5487
|
-
},
|
|
5487
|
+
}, ht = {
|
|
5488
5488
|
midnight: "midnight",
|
|
5489
5489
|
noon: "noon",
|
|
5490
5490
|
morning: "morning",
|
|
@@ -5855,7 +5855,7 @@ const ze = {
|
|
|
5855
5855
|
b: function(t, e, r) {
|
|
5856
5856
|
const n = t.getHours();
|
|
5857
5857
|
let s;
|
|
5858
|
-
switch (n === 12 ? s =
|
|
5858
|
+
switch (n === 12 ? s = ht.noon : n === 0 ? s = ht.midnight : s = n / 12 >= 1 ? "pm" : "am", e) {
|
|
5859
5859
|
case "b":
|
|
5860
5860
|
case "bb":
|
|
5861
5861
|
return r.dayPeriod(s, {
|
|
@@ -5883,7 +5883,7 @@ const ze = {
|
|
|
5883
5883
|
B: function(t, e, r) {
|
|
5884
5884
|
const n = t.getHours();
|
|
5885
5885
|
let s;
|
|
5886
|
-
switch (n >= 17 ? s =
|
|
5886
|
+
switch (n >= 17 ? s = ht.evening : n >= 12 ? s = ht.afternoon : n >= 4 ? s = ht.morning : s = ht.night, e) {
|
|
5887
5887
|
case "B":
|
|
5888
5888
|
case "BB":
|
|
5889
5889
|
case "BBB":
|
|
@@ -6263,7 +6263,7 @@ function be(t, e) {
|
|
|
6263
6263
|
rest: t.rest
|
|
6264
6264
|
};
|
|
6265
6265
|
}
|
|
6266
|
-
function
|
|
6266
|
+
function ye(t, e) {
|
|
6267
6267
|
const r = e.match(t);
|
|
6268
6268
|
return r ? {
|
|
6269
6269
|
value: parseInt(r[0], 10),
|
|
@@ -6286,34 +6286,34 @@ function Fe(t, e) {
|
|
|
6286
6286
|
};
|
|
6287
6287
|
}
|
|
6288
6288
|
function sc(t) {
|
|
6289
|
-
return
|
|
6289
|
+
return ye(_e.anyDigitsSigned, t);
|
|
6290
6290
|
}
|
|
6291
6291
|
function Ee(t, e) {
|
|
6292
6292
|
switch (t) {
|
|
6293
6293
|
case 1:
|
|
6294
|
-
return
|
|
6294
|
+
return ye(_e.singleDigit, e);
|
|
6295
6295
|
case 2:
|
|
6296
|
-
return
|
|
6296
|
+
return ye(_e.twoDigits, e);
|
|
6297
6297
|
case 3:
|
|
6298
|
-
return
|
|
6298
|
+
return ye(_e.threeDigits, e);
|
|
6299
6299
|
case 4:
|
|
6300
|
-
return
|
|
6300
|
+
return ye(_e.fourDigits, e);
|
|
6301
6301
|
default:
|
|
6302
|
-
return
|
|
6302
|
+
return ye(new RegExp("^\\d{1," + t + "}"), e);
|
|
6303
6303
|
}
|
|
6304
6304
|
}
|
|
6305
|
-
function
|
|
6305
|
+
function Zr(t, e) {
|
|
6306
6306
|
switch (t) {
|
|
6307
6307
|
case 1:
|
|
6308
|
-
return
|
|
6308
|
+
return ye(_e.singleDigitSigned, e);
|
|
6309
6309
|
case 2:
|
|
6310
|
-
return
|
|
6310
|
+
return ye(_e.twoDigitsSigned, e);
|
|
6311
6311
|
case 3:
|
|
6312
|
-
return
|
|
6312
|
+
return ye(_e.threeDigitsSigned, e);
|
|
6313
6313
|
case 4:
|
|
6314
|
-
return
|
|
6314
|
+
return ye(_e.fourDigitsSigned, e);
|
|
6315
6315
|
default:
|
|
6316
|
-
return
|
|
6316
|
+
return ye(new RegExp("^-?\\d{1," + t + "}"), e);
|
|
6317
6317
|
}
|
|
6318
6318
|
}
|
|
6319
6319
|
function Cs(t) {
|
|
@@ -6441,7 +6441,7 @@ class rp extends ce {
|
|
|
6441
6441
|
class np extends ce {
|
|
6442
6442
|
priority = 130;
|
|
6443
6443
|
parse(e, r) {
|
|
6444
|
-
return
|
|
6444
|
+
return Zr(r === "R" ? 4 : r.length, e);
|
|
6445
6445
|
}
|
|
6446
6446
|
set(e, r, n) {
|
|
6447
6447
|
const s = ve(e, 0);
|
|
@@ -6468,7 +6468,7 @@ class np extends ce {
|
|
|
6468
6468
|
class sp extends ce {
|
|
6469
6469
|
priority = 130;
|
|
6470
6470
|
parse(e, r) {
|
|
6471
|
-
return
|
|
6471
|
+
return Zr(r === "u" ? 4 : r.length, e);
|
|
6472
6472
|
}
|
|
6473
6473
|
set(e, r, n) {
|
|
6474
6474
|
return e.setFullYear(n, 0, 1), e.setHours(0, 0, 0, 0), e;
|
|
@@ -6622,7 +6622,7 @@ class ip extends ce {
|
|
|
6622
6622
|
// 1, 2, ..., 12
|
|
6623
6623
|
case "M":
|
|
6624
6624
|
return be(
|
|
6625
|
-
|
|
6625
|
+
ye(_e.month, e),
|
|
6626
6626
|
s
|
|
6627
6627
|
);
|
|
6628
6628
|
// 01, 02, ..., 12
|
|
@@ -6670,7 +6670,7 @@ class cp extends ce {
|
|
|
6670
6670
|
// 1, 2, ..., 12
|
|
6671
6671
|
case "L":
|
|
6672
6672
|
return be(
|
|
6673
|
-
|
|
6673
|
+
ye(_e.month, e),
|
|
6674
6674
|
s
|
|
6675
6675
|
);
|
|
6676
6676
|
// 01, 02, ..., 12
|
|
@@ -6734,7 +6734,7 @@ class lp extends ce {
|
|
|
6734
6734
|
parse(e, r, n) {
|
|
6735
6735
|
switch (r) {
|
|
6736
6736
|
case "w":
|
|
6737
|
-
return
|
|
6737
|
+
return ye(_e.week, e);
|
|
6738
6738
|
case "wo":
|
|
6739
6739
|
return n.ordinalNumber(e, { unit: "week" });
|
|
6740
6740
|
default:
|
|
@@ -6772,7 +6772,7 @@ class fp extends ce {
|
|
|
6772
6772
|
parse(e, r, n) {
|
|
6773
6773
|
switch (r) {
|
|
6774
6774
|
case "I":
|
|
6775
|
-
return
|
|
6775
|
+
return ye(_e.week, e);
|
|
6776
6776
|
case "Io":
|
|
6777
6777
|
return n.ordinalNumber(e, { unit: "week" });
|
|
6778
6778
|
default:
|
|
@@ -6822,7 +6822,7 @@ class mp extends ce {
|
|
|
6822
6822
|
parse(e, r, n) {
|
|
6823
6823
|
switch (r) {
|
|
6824
6824
|
case "d":
|
|
6825
|
-
return
|
|
6825
|
+
return ye(_e.date, e);
|
|
6826
6826
|
case "do":
|
|
6827
6827
|
return n.ordinalNumber(e, { unit: "date" });
|
|
6828
6828
|
default:
|
|
@@ -6858,7 +6858,7 @@ class gp extends ce {
|
|
|
6858
6858
|
switch (r) {
|
|
6859
6859
|
case "D":
|
|
6860
6860
|
case "DD":
|
|
6861
|
-
return
|
|
6861
|
+
return ye(_e.dayOfYear, e);
|
|
6862
6862
|
case "Do":
|
|
6863
6863
|
return n.ordinalNumber(e, { unit: "date" });
|
|
6864
6864
|
default:
|
|
@@ -7273,7 +7273,7 @@ class Rp extends ce {
|
|
|
7273
7273
|
parse(e, r, n) {
|
|
7274
7274
|
switch (r) {
|
|
7275
7275
|
case "h":
|
|
7276
|
-
return
|
|
7276
|
+
return ye(_e.hour12h, e);
|
|
7277
7277
|
case "ho":
|
|
7278
7278
|
return n.ordinalNumber(e, { unit: "hour" });
|
|
7279
7279
|
default:
|
|
@@ -7294,7 +7294,7 @@ class Op extends ce {
|
|
|
7294
7294
|
parse(e, r, n) {
|
|
7295
7295
|
switch (r) {
|
|
7296
7296
|
case "H":
|
|
7297
|
-
return
|
|
7297
|
+
return ye(_e.hour23h, e);
|
|
7298
7298
|
case "Ho":
|
|
7299
7299
|
return n.ordinalNumber(e, { unit: "hour" });
|
|
7300
7300
|
default:
|
|
@@ -7314,7 +7314,7 @@ class Ap extends ce {
|
|
|
7314
7314
|
parse(e, r, n) {
|
|
7315
7315
|
switch (r) {
|
|
7316
7316
|
case "K":
|
|
7317
|
-
return
|
|
7317
|
+
return ye(_e.hour11h, e);
|
|
7318
7318
|
case "Ko":
|
|
7319
7319
|
return n.ordinalNumber(e, { unit: "hour" });
|
|
7320
7320
|
default:
|
|
@@ -7334,7 +7334,7 @@ class Pp extends ce {
|
|
|
7334
7334
|
parse(e, r, n) {
|
|
7335
7335
|
switch (r) {
|
|
7336
7336
|
case "k":
|
|
7337
|
-
return
|
|
7337
|
+
return ye(_e.hour24h, e);
|
|
7338
7338
|
case "ko":
|
|
7339
7339
|
return n.ordinalNumber(e, { unit: "hour" });
|
|
7340
7340
|
default:
|
|
@@ -7355,7 +7355,7 @@ class Np extends ce {
|
|
|
7355
7355
|
parse(e, r, n) {
|
|
7356
7356
|
switch (r) {
|
|
7357
7357
|
case "m":
|
|
7358
|
-
return
|
|
7358
|
+
return ye(_e.minute, e);
|
|
7359
7359
|
case "mo":
|
|
7360
7360
|
return n.ordinalNumber(e, { unit: "minute" });
|
|
7361
7361
|
default:
|
|
@@ -7375,7 +7375,7 @@ class Ip extends ce {
|
|
|
7375
7375
|
parse(e, r, n) {
|
|
7376
7376
|
switch (r) {
|
|
7377
7377
|
case "s":
|
|
7378
|
-
return
|
|
7378
|
+
return ye(_e.second, e);
|
|
7379
7379
|
case "so":
|
|
7380
7380
|
return n.ordinalNumber(e, { unit: "second" });
|
|
7381
7381
|
default:
|
|
@@ -7429,7 +7429,7 @@ class $p extends ce {
|
|
|
7429
7429
|
set(e, r, n) {
|
|
7430
7430
|
return r.timestampIsSet ? e : ve(
|
|
7431
7431
|
e,
|
|
7432
|
-
e.getTime() -
|
|
7432
|
+
e.getTime() - Xr(e) - n
|
|
7433
7433
|
);
|
|
7434
7434
|
}
|
|
7435
7435
|
incompatibleTokens = ["t", "T", "x"];
|
|
@@ -7462,7 +7462,7 @@ class Cp extends ce {
|
|
|
7462
7462
|
set(e, r, n) {
|
|
7463
7463
|
return r.timestampIsSet ? e : ve(
|
|
7464
7464
|
e,
|
|
7465
|
-
e.getTime() -
|
|
7465
|
+
e.getTime() - Xr(e) - n
|
|
7466
7466
|
);
|
|
7467
7467
|
}
|
|
7468
7468
|
incompatibleTokens = ["t", "T", "X"];
|
|
@@ -7724,7 +7724,7 @@ function um(t, e, r) {
|
|
|
7724
7724
|
function lm(t, e, r) {
|
|
7725
7725
|
return fn(t, -e, r);
|
|
7726
7726
|
}
|
|
7727
|
-
const
|
|
7727
|
+
const Q0 = {
|
|
7728
7728
|
PROPOSED: "proposed",
|
|
7729
7729
|
PENDING: "pending",
|
|
7730
7730
|
BOOKED: "booked",
|
|
@@ -7735,51 +7735,51 @@ const J0 = {
|
|
|
7735
7735
|
CHECKED_IN: "checked-in",
|
|
7736
7736
|
WAITLIST: "waitlist",
|
|
7737
7737
|
ENTERED_IN_ERROR: "entered-in-error"
|
|
7738
|
-
}, dm = W + "/appointments/search", cc = W + "/appointments",
|
|
7738
|
+
}, dm = W + "/appointments/search", cc = W + "/appointments", X0 = "http://fhir.bahmni.org/code-system/appointments", fm = (t) => `${cc}/${t}`, mn = (t, e, r, n) => {
|
|
7739
7739
|
const s = e === "upcoming", o = s ? "ge" : "le", a = s ? "date" : "-date", i = s ? (/* @__PURE__ */ new Date()).toISOString() : um(/* @__PURE__ */ new Date()).toISOString();
|
|
7740
|
-
let c = `${
|
|
7740
|
+
let c = `${se}/Appointment?patient=${t}&date=${o}${i}&_sort=${a}`;
|
|
7741
7741
|
return r !== void 0 && r > 0 && (c += `&_count=${r}`), n !== void 0 && n > 0 && (c += `&_getpagesoffset=${n}`), c;
|
|
7742
|
-
}, hm = (t) => mn(t, "upcoming"), pm = (t, e) => mn(t, "past", e), mm = (t) => `${cc}/${t}/status-change`, gm = W + "/appointmentService/all/full", ym = (t) => `${W}/appointmentService?uuid=${t}`, wm = (t, e = 10, r = 0) => mn(t, "upcoming", e, r), Em = (t, e = 10, r = 0) => mn(t, "past", e, r), uc = W + "/appointmentUnavailability",
|
|
7743
|
-
async function
|
|
7742
|
+
}, hm = (t) => mn(t, "upcoming"), pm = (t, e) => mn(t, "past", e), mm = (t) => `${cc}/${t}/status-change`, gm = W + "/appointmentService/all/full", ym = (t) => `${W}/appointmentService?uuid=${t}`, wm = (t, e = 10, r = 0) => mn(t, "upcoming", e, r), Em = (t, e = 10, r = 0) => mn(t, "past", e, r), uc = W + "/appointmentUnavailability", Z0 = async (t) => await we(dm, t);
|
|
7743
|
+
async function e_(t) {
|
|
7744
7744
|
return await V(hm(t));
|
|
7745
7745
|
}
|
|
7746
|
-
async function
|
|
7746
|
+
async function t_(t, e) {
|
|
7747
7747
|
return await V(
|
|
7748
7748
|
pm(t, e)
|
|
7749
7749
|
);
|
|
7750
7750
|
}
|
|
7751
|
-
const
|
|
7751
|
+
const r_ = async (t, e, r) => await we(mm(t), {
|
|
7752
7752
|
toStatus: e,
|
|
7753
7753
|
onDate: r
|
|
7754
|
-
}),
|
|
7755
|
-
async function
|
|
7754
|
+
}), n_ = async (t, e) => we(t, { appointmentUuid: e });
|
|
7755
|
+
async function s_(t) {
|
|
7756
7756
|
return await V(fm(t));
|
|
7757
7757
|
}
|
|
7758
|
-
const
|
|
7758
|
+
const o_ = async () => await V(gm), a_ = async (t) => {
|
|
7759
7759
|
await vs(ym(t));
|
|
7760
7760
|
};
|
|
7761
|
-
async function
|
|
7761
|
+
async function i_(t, e = 10, r = 1) {
|
|
7762
7762
|
const n = (r - 1) * e, s = await V(
|
|
7763
7763
|
wm(t, e, n)
|
|
7764
7764
|
);
|
|
7765
7765
|
return { bundle: s, total: s.total ?? s.entry?.length ?? 0 };
|
|
7766
7766
|
}
|
|
7767
|
-
async function
|
|
7767
|
+
async function c_(t, e = 10, r = 1) {
|
|
7768
7768
|
const n = (r - 1) * e, s = await V(
|
|
7769
7769
|
Em(t, e, n)
|
|
7770
7770
|
);
|
|
7771
7771
|
return { bundle: s, total: s.total ?? s.entry?.length ?? 0 };
|
|
7772
7772
|
}
|
|
7773
|
-
const
|
|
7774
|
-
await
|
|
7775
|
-
}, lc = "dd/MM/yyyy", _m = "default_dateFormat", bm = "h:mm a",
|
|
7773
|
+
const u_ = async () => await V(uc), l_ = async (t) => {
|
|
7774
|
+
await we(uc, t);
|
|
7775
|
+
}, lc = "dd/MM/yyyy", _m = "default_dateFormat", bm = "h:mm a", d_ = "yyyy-MM-dd", xe = {
|
|
7776
7776
|
PARSE_ERROR: "DATE_ERROR_PARSE",
|
|
7777
7777
|
FORMAT_ERROR: "DATE_ERROR_FORMAT",
|
|
7778
7778
|
EMPTY_OR_INVALID: "DATE_ERROR_EMPTY_OR_INVALID",
|
|
7779
7779
|
INVALID_FORMAT: "DATE_ERROR_INVALID_FORMAT",
|
|
7780
7780
|
NULL_OR_UNDEFINED: "DATE_ERROR_NULL_OR_UNDEFINED"
|
|
7781
7781
|
};
|
|
7782
|
-
function
|
|
7782
|
+
function f_(t) {
|
|
7783
7783
|
if (!t) return null;
|
|
7784
7784
|
const e = Jt(t);
|
|
7785
7785
|
if (!We(e)) return null;
|
|
@@ -7788,7 +7788,7 @@ function d_(t) {
|
|
|
7788
7788
|
const n = Ht(r, e), s = pn(r, e), o = fn(e, s), a = hn(r, o), i = Wt(o, a), c = Ht(r, i), u = `${s}y ${a}m ${c}d`;
|
|
7789
7789
|
return { year: s, month: a, day: c, ageInDays: n, ageText: u };
|
|
7790
7790
|
}
|
|
7791
|
-
function
|
|
7791
|
+
function h_(t) {
|
|
7792
7792
|
if (typeof t != "string" || !/^\d{4}-\d{2}-\d{2}$/.test(t))
|
|
7793
7793
|
return null;
|
|
7794
7794
|
const e = Jt(t);
|
|
@@ -7856,7 +7856,7 @@ function Tm() {
|
|
|
7856
7856
|
return lc;
|
|
7857
7857
|
}
|
|
7858
7858
|
}
|
|
7859
|
-
function
|
|
7859
|
+
function p_(t, e, r = !1, n) {
|
|
7860
7860
|
const s = e ?? ((a) => a);
|
|
7861
7861
|
let o;
|
|
7862
7862
|
try {
|
|
@@ -7866,7 +7866,7 @@ function h_(t, e, r = !1, n) {
|
|
|
7866
7866
|
}
|
|
7867
7867
|
return r && !n && (o = `${o} ${bm}`), vm(t, o, s);
|
|
7868
7868
|
}
|
|
7869
|
-
function
|
|
7869
|
+
function m_(t, e, r) {
|
|
7870
7870
|
if (!t || !We(t) || e === null || e === void 0 || !r || typeof e != "number")
|
|
7871
7871
|
return;
|
|
7872
7872
|
const n = new Date(t);
|
|
@@ -7881,7 +7881,7 @@ function p_(t, e, r) {
|
|
|
7881
7881
|
return;
|
|
7882
7882
|
}
|
|
7883
7883
|
}
|
|
7884
|
-
function
|
|
7884
|
+
function g_(t, e) {
|
|
7885
7885
|
if (t == null)
|
|
7886
7886
|
return {
|
|
7887
7887
|
formattedResult: "",
|
|
@@ -7933,11 +7933,11 @@ function m_(t, e) {
|
|
|
7933
7933
|
}
|
|
7934
7934
|
return { formattedResult: c };
|
|
7935
7935
|
}
|
|
7936
|
-
const
|
|
7936
|
+
const y_ = () => {
|
|
7937
7937
|
const t = /* @__PURE__ */ new Date();
|
|
7938
7938
|
return t.setHours(0, 0, 0, 0), t;
|
|
7939
7939
|
};
|
|
7940
|
-
function
|
|
7940
|
+
function w_(t, e) {
|
|
7941
7941
|
const r = typeof t == "string" ? Jt(t) : new Date(t), n = /* @__PURE__ */ new Date(), s = pn(n, r), o = fn(r, s), a = hn(n, o), i = Wt(o, a), c = Ht(n, i), u = {
|
|
7942
7942
|
years: "YEARS",
|
|
7943
7943
|
months: "MONTHS",
|
|
@@ -7971,14 +7971,14 @@ const Sm = {
|
|
|
7971
7971
|
h: 1 / 24,
|
|
7972
7972
|
min: 1 / 1440,
|
|
7973
7973
|
s: 1 / 86400
|
|
7974
|
-
},
|
|
7974
|
+
}, E_ = (t, e, r) => {
|
|
7975
7975
|
const n = typeof t == "string" ? new Date(t) : t;
|
|
7976
7976
|
if (isNaN(n.getTime()))
|
|
7977
7977
|
throw new Error(`Invalid date: ${t}`);
|
|
7978
7978
|
const s = Sm[r] ?? 1, o = e * s;
|
|
7979
7979
|
return dn(n, o);
|
|
7980
|
-
},
|
|
7981
|
-
function
|
|
7980
|
+
}, __ = (t, e, r, n) => t <= n && r <= e;
|
|
7981
|
+
function b_(t, e, r = !1) {
|
|
7982
7982
|
return !t || !Array.isArray(t) ? [] : t.sort((n, s) => {
|
|
7983
7983
|
const o = new Date(n[e]), a = new Date(s[e]);
|
|
7984
7984
|
if (isNaN(o.getTime()) && isNaN(a.getTime())) return 0;
|
|
@@ -7993,7 +7993,7 @@ function Rm(t) {
|
|
|
7993
7993
|
const e = Hp(t, "hh:mm aa", /* @__PURE__ */ new Date());
|
|
7994
7994
|
return We(e) ? rc(e, "HH:mm") : "";
|
|
7995
7995
|
}
|
|
7996
|
-
function
|
|
7996
|
+
function v_(t) {
|
|
7997
7997
|
const e = Rm(t);
|
|
7998
7998
|
if (!e) return null;
|
|
7999
7999
|
const [r, n] = e.split(":").map(Number);
|
|
@@ -8028,11 +8028,11 @@ const Om = (t) => /^\d{4}-\d{2}-\d{2}T/.test(t), Am = () => {
|
|
|
8028
8028
|
);
|
|
8029
8029
|
}
|
|
8030
8030
|
};
|
|
8031
|
-
},
|
|
8031
|
+
}, T_ = Am(), Pm = (t) => se + `/ValueSet/${t}/$expand`, Nm = (t) => se + `/ValueSet/$expand?filter=${encodeURIComponent(t)}`, Im = (t, e, r) => W + `/bahmni/terminologies/concepts?limit=${e}&locale=${r}&term=${t}`, Dm = (t) => W + `/concept/${t}`, $m = (t, e) => {
|
|
8032
8032
|
const r = `${W}/concept?s=byFullySpecifiedName&name=${encodeURIComponent(t)}`;
|
|
8033
8033
|
return e ? `${r}&v=${encodeURIComponent(e)}` : r;
|
|
8034
|
-
}, Cm = "SHORT", xm = "FULLY_SPECIFIED",
|
|
8035
|
-
const r =
|
|
8034
|
+
}, Cm = "SHORT", xm = "FULLY_SPECIFIED", S_ = async (t, e = 20) => {
|
|
8035
|
+
const r = cn(), n = Im(t, e, r);
|
|
8036
8036
|
return V(n);
|
|
8037
8037
|
}, Vr = async (t) => {
|
|
8038
8038
|
const e = Pm(t);
|
|
@@ -8041,7 +8041,7 @@ const Om = (t) => /^\d{4}-\d{2}-\d{2}T/.test(t), Am = () => {
|
|
|
8041
8041
|
const e = `${Nm(t)}`;
|
|
8042
8042
|
return V(e);
|
|
8043
8043
|
};
|
|
8044
|
-
async function
|
|
8044
|
+
async function R_(t) {
|
|
8045
8045
|
return await V(Dm(t));
|
|
8046
8046
|
}
|
|
8047
8047
|
async function km(t, e) {
|
|
@@ -8058,7 +8058,7 @@ function Mm(t) {
|
|
|
8058
8058
|
}
|
|
8059
8059
|
return e ?? t[0].name ?? null;
|
|
8060
8060
|
}
|
|
8061
|
-
const Um = (t) =>
|
|
8061
|
+
const Um = (t) => se + `/AllergyIntolerance?patient=${t}&_count=100&_sort=-_lastUpdated`, pt = {
|
|
8062
8062
|
FOOD: {
|
|
8063
8063
|
code: "162553AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
|
|
8064
8064
|
display: "food"
|
|
@@ -8080,8 +8080,8 @@ const Um = (t) => ne + `/AllergyIntolerance?patient=${t}&_count=100&_sort=-_last
|
|
|
8080
8080
|
}), Ln = (t, e) => {
|
|
8081
8081
|
const r = t.expansion?.contains ?? [];
|
|
8082
8082
|
return qm(r).map((s) => jm(s, e));
|
|
8083
|
-
},
|
|
8084
|
-
const n = t ??
|
|
8083
|
+
}, O_ = async (t, e, r) => {
|
|
8084
|
+
const n = t ?? pt.MEDICATION.code, s = e ?? pt.FOOD.code, o = r ?? pt.ENVIRONMENT.code, [a, i, c] = await Promise.all([
|
|
8085
8085
|
Vr(n),
|
|
8086
8086
|
Vr(s),
|
|
8087
8087
|
Vr(o)
|
|
@@ -8089,18 +8089,18 @@ const Um = (t) => ne + `/AllergyIntolerance?patient=${t}&_count=100&_sort=-_last
|
|
|
8089
8089
|
return [
|
|
8090
8090
|
...Ln(
|
|
8091
8091
|
a,
|
|
8092
|
-
|
|
8092
|
+
pt.MEDICATION.display
|
|
8093
8093
|
),
|
|
8094
8094
|
...Ln(
|
|
8095
8095
|
i,
|
|
8096
|
-
|
|
8096
|
+
pt.FOOD.display
|
|
8097
8097
|
),
|
|
8098
8098
|
...Ln(
|
|
8099
8099
|
c,
|
|
8100
|
-
|
|
8100
|
+
pt.ENVIRONMENT.display
|
|
8101
8101
|
)
|
|
8102
8102
|
];
|
|
8103
|
-
},
|
|
8103
|
+
}, A_ = async (t) => {
|
|
8104
8104
|
const e = t ?? Fm.code;
|
|
8105
8105
|
return (await Vr(e)).compose?.include[0]?.concept ?? [];
|
|
8106
8106
|
};
|
|
@@ -8140,12 +8140,12 @@ function Bm(t) {
|
|
|
8140
8140
|
};
|
|
8141
8141
|
});
|
|
8142
8142
|
}
|
|
8143
|
-
async function
|
|
8143
|
+
async function P_(t) {
|
|
8144
8144
|
const e = await Hm(t);
|
|
8145
8145
|
return Bm(e);
|
|
8146
8146
|
}
|
|
8147
8147
|
var zm = /* @__PURE__ */ ((t) => (t.Active = "Active", t.Inactive = "Inactive", t))(zm || {}), Ym = /* @__PURE__ */ ((t) => (t.mild = "mild", t.moderate = "moderate", t.severe = "severe", t))(Ym || {});
|
|
8148
|
-
function
|
|
8148
|
+
function N_(t) {
|
|
8149
8149
|
const e = t.code?.coding?.[0]?.code ?? t.id ?? "", r = t.reaction?.[0]?.severity, n = /* @__PURE__ */ new Set(), s = [];
|
|
8150
8150
|
for (const o of t.reaction ?? [])
|
|
8151
8151
|
for (const a of o.manifestation ?? [])
|
|
@@ -8167,17 +8167,17 @@ function P_(t) {
|
|
|
8167
8167
|
const os = (t) => ({
|
|
8168
8168
|
resourceType: "EncounterBundle",
|
|
8169
8169
|
type: "transaction",
|
|
8170
|
-
id:
|
|
8170
|
+
id: un(),
|
|
8171
8171
|
timestamp: (/* @__PURE__ */ new Date()).toISOString(),
|
|
8172
8172
|
entry: t
|
|
8173
|
-
}),
|
|
8173
|
+
}), nt = (t, e, r, n) => ({
|
|
8174
8174
|
fullUrl: t,
|
|
8175
8175
|
resource: e,
|
|
8176
8176
|
request: {
|
|
8177
8177
|
method: r,
|
|
8178
8178
|
url: n ?? e.resourceType
|
|
8179
8179
|
}
|
|
8180
|
-
}), as = `${
|
|
8180
|
+
}), as = `${se}/EncounterBundle`, Gm = (t) => `${W}/encountertype?q=${encodeURIComponent(t)}&v=custom:(uuid,name)`, Km = (t, e) => se + `/Encounter?subject:Patient=${t}&_tag=visit&_sort=-_lastUpdated` + (e ? `&location=${e}` : ""), Wm = (t, e = 100, r = 0) => se + `/Encounter?subject:Patient=${t}&_sort=-_lastUpdated&_count=${e}&_getpagesoffset=${r}`, fc = se + "/Encounter";
|
|
8181
8181
|
function Jm({
|
|
8182
8182
|
type: t,
|
|
8183
8183
|
partOf: e,
|
|
@@ -8231,7 +8231,7 @@ async function Qm(t, e) {
|
|
|
8231
8231
|
async function Xm(t, e) {
|
|
8232
8232
|
return (await Qm(t, e)).entry?.map((n) => n.resource).filter((n) => n !== void 0) ?? [];
|
|
8233
8233
|
}
|
|
8234
|
-
async function
|
|
8234
|
+
async function I_(t) {
|
|
8235
8235
|
const r = [];
|
|
8236
8236
|
let n = 0;
|
|
8237
8237
|
for (; ; ) {
|
|
@@ -8252,33 +8252,33 @@ async function Zm(t) {
|
|
|
8252
8252
|
async function gn(t, e) {
|
|
8253
8253
|
return (await Xm(t, e)).find((n) => !n.period?.end) ?? null;
|
|
8254
8254
|
}
|
|
8255
|
-
async function
|
|
8255
|
+
async function D_(t, e) {
|
|
8256
8256
|
return await V(
|
|
8257
8257
|
`/openmrs/ws/fhir2/R4/Encounter/${t}`,
|
|
8258
8258
|
e
|
|
8259
8259
|
);
|
|
8260
8260
|
}
|
|
8261
8261
|
async function eg(t) {
|
|
8262
|
-
return await
|
|
8262
|
+
return await we(fc, t);
|
|
8263
8263
|
}
|
|
8264
|
-
async function
|
|
8264
|
+
async function $_(t, e) {
|
|
8265
8265
|
return await xi(`${fc}/${t}`, e);
|
|
8266
8266
|
}
|
|
8267
|
-
async function
|
|
8267
|
+
async function C_(t) {
|
|
8268
8268
|
const e = Rt().uuid, n = (await Yi(e)).uuid;
|
|
8269
8269
|
return gn(t, n);
|
|
8270
8270
|
}
|
|
8271
|
-
const
|
|
8272
|
-
const s =
|
|
8271
|
+
const x_ = (t, e) => t?.length === 0 ? !1 : e?.length === 0, tg = (t) => se + `/Condition?category=${Os}&patient=${t}&_count=100&_sort=-_lastUpdated`, rg = (t, e = 10, r = 0, n) => {
|
|
8272
|
+
const s = se + `/Condition?category=${Os}&patient=${t}&_count=${e}&_getpagesoffset=${r}&_sort=-_lastUpdated`;
|
|
8273
8273
|
return n ? `${s}&clinical-status=${n}` : s;
|
|
8274
8274
|
};
|
|
8275
8275
|
async function ng(t) {
|
|
8276
8276
|
return await V(`${tg(t)}`);
|
|
8277
8277
|
}
|
|
8278
|
-
async function
|
|
8278
|
+
async function L_(t) {
|
|
8279
8279
|
return (await ng(t)).entry?.filter((n) => n.resource?.resourceType === "Condition").map((n) => n.resource) ?? [];
|
|
8280
8280
|
}
|
|
8281
|
-
async function
|
|
8281
|
+
async function k_(t, e = 10, r = 1, n) {
|
|
8282
8282
|
const s = (r - 1) * e, o = await V(
|
|
8283
8283
|
rg(t, e, s, n)
|
|
8284
8284
|
);
|
|
@@ -8303,7 +8303,7 @@ function qo(t, e, r, n) {
|
|
|
8303
8303
|
practitionerUUIDs: n ? [n] : void 0
|
|
8304
8304
|
});
|
|
8305
8305
|
}
|
|
8306
|
-
async function
|
|
8306
|
+
async function M_(t, e, r = !1, n, s, o) {
|
|
8307
8307
|
const a = {
|
|
8308
8308
|
...t,
|
|
8309
8309
|
category: [
|
|
@@ -8347,20 +8347,20 @@ async function k_(t, e, r = !1, n, s, o) {
|
|
|
8347
8347
|
...a,
|
|
8348
8348
|
encounter: { reference: `Encounter/${e.id}` }
|
|
8349
8349
|
}, S = [
|
|
8350
|
-
|
|
8350
|
+
nt(
|
|
8351
8351
|
`Encounter/${e.id}`,
|
|
8352
8352
|
f,
|
|
8353
8353
|
"PUT",
|
|
8354
8354
|
`Encounter/${e.id}`
|
|
8355
8355
|
),
|
|
8356
|
-
|
|
8356
|
+
nt(
|
|
8357
8357
|
`Condition/${t.id}`,
|
|
8358
8358
|
w,
|
|
8359
8359
|
"PUT",
|
|
8360
8360
|
`Condition/${t.id}`
|
|
8361
8361
|
)
|
|
8362
8362
|
];
|
|
8363
|
-
return await
|
|
8363
|
+
return await we(as, os(S)), f;
|
|
8364
8364
|
}
|
|
8365
8365
|
let i, c, u;
|
|
8366
8366
|
if (!r && e)
|
|
@@ -8395,26 +8395,26 @@ async function k_(t, e, r = !1, n, s, o) {
|
|
|
8395
8395
|
...a,
|
|
8396
8396
|
encounter: { reference: `Encounter/${f.id}` }
|
|
8397
8397
|
}, S = [
|
|
8398
|
-
|
|
8398
|
+
nt(
|
|
8399
8399
|
`Encounter/${f.id}`,
|
|
8400
8400
|
f,
|
|
8401
8401
|
"PUT",
|
|
8402
8402
|
`Encounter/${f.id}`
|
|
8403
8403
|
),
|
|
8404
|
-
|
|
8404
|
+
nt(
|
|
8405
8405
|
`Condition/${t.id}`,
|
|
8406
8406
|
w,
|
|
8407
8407
|
"PUT",
|
|
8408
8408
|
`Condition/${t.id}`
|
|
8409
8409
|
)
|
|
8410
8410
|
];
|
|
8411
|
-
return await
|
|
8411
|
+
return await we(as, os(S)), f;
|
|
8412
8412
|
}
|
|
8413
8413
|
throw new Error(
|
|
8414
8414
|
"Unable to mark condition as inactive: no encounter context available"
|
|
8415
8415
|
);
|
|
8416
8416
|
}
|
|
8417
|
-
const sg = (t) =>
|
|
8417
|
+
const sg = (t) => se + `/Condition?category=${Vi}&patient=${t}&_count=100&_sort=-_lastUpdated`, og = (t, e = 10, r = 0) => se + `/Condition?category=${Vi}&patient=${t}&_count=${e}&_getpagesoffset=${r}&_sort=-_lastUpdated`, kn = [
|
|
8418
8418
|
{
|
|
8419
8419
|
code: "confirmed",
|
|
8420
8420
|
display: "CERTAINITY_CONFIRMED",
|
|
@@ -8471,11 +8471,11 @@ function fg(t) {
|
|
|
8471
8471
|
}
|
|
8472
8472
|
return Array.from(e.values());
|
|
8473
8473
|
}
|
|
8474
|
-
async function
|
|
8474
|
+
async function U_(t) {
|
|
8475
8475
|
const e = await cg(t), r = hc(e);
|
|
8476
8476
|
return fg(r);
|
|
8477
8477
|
}
|
|
8478
|
-
async function
|
|
8478
|
+
async function F_(t, e = 10, r = 1) {
|
|
8479
8479
|
const n = (r - 1) * e, s = await ug(
|
|
8480
8480
|
t,
|
|
8481
8481
|
e,
|
|
@@ -8496,12 +8496,12 @@ const Ft = {
|
|
|
8496
8496
|
// Use only when medication details are needed immediately
|
|
8497
8497
|
INCLUDE_MEDICATION: "_include=MedicationRequest:medication"
|
|
8498
8498
|
}, hg = (t, e, r) => {
|
|
8499
|
-
let s = `${
|
|
8499
|
+
let s = `${se + "/MedicationRequest?" + Ft.SORT + "&" + Ft.COUNT}&patient=${t}`;
|
|
8500
8500
|
return e && (s += `&code=${e}`), r && (s += `&encounter=${r}`), s;
|
|
8501
8501
|
}, pg = (t, e, r) => {
|
|
8502
|
-
let s = `${
|
|
8502
|
+
let s = `${se + "/MedicationRequest?" + Ft.SORT + "&" + Ft.COUNT + "&" + Ft.INCLUDE_MEDICATION}&patient=${t}`;
|
|
8503
8503
|
return e && (s += `&code=${e}`), r && (s += `&encounter=${r}`), s;
|
|
8504
|
-
}, mg = W + "/bahmnicore/config/drugOrders", gg = (t, e) =>
|
|
8504
|
+
}, mg = W + "/bahmnicore/config/drugOrders", gg = (t, e) => se + `/Medication?name=${encodeURIComponent(t)}&_count=${e}&_sort=-_lastUpdated`, yg = se + "/Medication?code=http://hl7.org/fhir/sid/cvx|&_count=100", q_ = "medication", wg = (t) => {
|
|
8505
8505
|
switch (t.status) {
|
|
8506
8506
|
case "active":
|
|
8507
8507
|
return Be.Active;
|
|
@@ -8669,7 +8669,7 @@ function $g(t) {
|
|
|
8669
8669
|
});
|
|
8670
8670
|
}
|
|
8671
8671
|
const jo = (t) => t.priority === "stat";
|
|
8672
|
-
async function
|
|
8672
|
+
async function j_(t, e, r, n = !1) {
|
|
8673
8673
|
const s = await Eg(
|
|
8674
8674
|
t,
|
|
8675
8675
|
e,
|
|
@@ -8678,25 +8678,25 @@ async function q_(t, e, r, n = !1) {
|
|
|
8678
8678
|
);
|
|
8679
8679
|
return $g(s);
|
|
8680
8680
|
}
|
|
8681
|
-
async function
|
|
8681
|
+
async function V_() {
|
|
8682
8682
|
return await V(
|
|
8683
8683
|
mg
|
|
8684
8684
|
);
|
|
8685
8685
|
}
|
|
8686
|
-
async function
|
|
8686
|
+
async function H_(t, e = 20) {
|
|
8687
8687
|
return await V(
|
|
8688
8688
|
gg(t, e)
|
|
8689
8689
|
);
|
|
8690
8690
|
}
|
|
8691
|
-
async function
|
|
8691
|
+
async function B_() {
|
|
8692
8692
|
return await V(yg);
|
|
8693
8693
|
}
|
|
8694
|
-
const Cg = (t) => `${
|
|
8695
|
-
async function
|
|
8694
|
+
const Cg = (t) => `${se}/Medication/${t}`;
|
|
8695
|
+
async function z_(t) {
|
|
8696
8696
|
return await V(Cg(t));
|
|
8697
8697
|
}
|
|
8698
8698
|
const xg = 200, Lg = (t, e, r, n, s) => {
|
|
8699
|
-
let a = `${
|
|
8699
|
+
let a = `${se + `/ServiceRequest?_count=${xg}&_sort=-_lastUpdated`}&category=${t}&patient=${e}`;
|
|
8700
8700
|
return s && (a += `&_revinclude=${s}`), r ? a += `&encounter=${r}` : n && (a += `&numberOfVisits=${n}`), a;
|
|
8701
8701
|
};
|
|
8702
8702
|
async function Qt(t, e, r, n, s) {
|
|
@@ -8711,8 +8711,8 @@ async function Qt(t, e, r, n, s) {
|
|
|
8711
8711
|
)
|
|
8712
8712
|
);
|
|
8713
8713
|
}
|
|
8714
|
-
const kg = (t) => `${
|
|
8715
|
-
async function
|
|
8714
|
+
const kg = (t) => `${se}/ImagingStudy/${t}/$fetch-quality-assessment`;
|
|
8715
|
+
async function Y_(t, e, r, n) {
|
|
8716
8716
|
return await Qt(
|
|
8717
8717
|
e,
|
|
8718
8718
|
t,
|
|
@@ -8720,7 +8720,7 @@ async function z_(t, e, r, n) {
|
|
|
8720
8720
|
n
|
|
8721
8721
|
);
|
|
8722
8722
|
}
|
|
8723
|
-
async function
|
|
8723
|
+
async function G_(t, e, r, n) {
|
|
8724
8724
|
return await Qt(
|
|
8725
8725
|
e,
|
|
8726
8726
|
t,
|
|
@@ -8729,7 +8729,7 @@ async function Y_(t, e, r, n) {
|
|
|
8729
8729
|
"ImagingStudy:basedon"
|
|
8730
8730
|
);
|
|
8731
8731
|
}
|
|
8732
|
-
async function
|
|
8732
|
+
async function K_(t, e, r, n) {
|
|
8733
8733
|
return (await Qt(
|
|
8734
8734
|
e,
|
|
8735
8735
|
t,
|
|
@@ -8737,10 +8737,10 @@ async function G_(t, e, r, n) {
|
|
|
8737
8737
|
n
|
|
8738
8738
|
)).entry?.filter((a) => a.resource?.resourceType === "ServiceRequest").map((a) => a.resource) ?? [];
|
|
8739
8739
|
}
|
|
8740
|
-
async function
|
|
8740
|
+
async function W_(t) {
|
|
8741
8741
|
return await V(kg(t));
|
|
8742
8742
|
}
|
|
8743
|
-
async function
|
|
8743
|
+
async function J_(t, e, r, n) {
|
|
8744
8744
|
return await Qt(
|
|
8745
8745
|
e,
|
|
8746
8746
|
t,
|
|
@@ -8749,32 +8749,32 @@ async function W_(t, e, r, n) {
|
|
|
8749
8749
|
);
|
|
8750
8750
|
}
|
|
8751
8751
|
const Mg = (t, e) => {
|
|
8752
|
-
const r = `${
|
|
8752
|
+
const r = `${se}/DiagnosticReport?patient=${t}`;
|
|
8753
8753
|
return e ? `${r}&based-on=${e}` : r;
|
|
8754
|
-
}, Ug = (t) => `${
|
|
8755
|
-
async function
|
|
8754
|
+
}, Ug = (t) => `${se}/DiagnosticReport/${t}/$fetch-bundle`, Fg = (t) => `${se}/DiagnosticReport/${t}/$update-bundle`;
|
|
8755
|
+
async function Q_(t, e = []) {
|
|
8756
8756
|
const r = e.length > 0 ? e.join(",") : void 0, n = Mg(t, r);
|
|
8757
8757
|
return await V(n);
|
|
8758
8758
|
}
|
|
8759
|
-
async function
|
|
8759
|
+
async function X_(t) {
|
|
8760
8760
|
const e = Ug(t);
|
|
8761
8761
|
return await V(e);
|
|
8762
8762
|
}
|
|
8763
|
-
async function
|
|
8763
|
+
async function Z_(t, e) {
|
|
8764
8764
|
const r = Fg(t);
|
|
8765
|
-
return await
|
|
8765
|
+
return await we(r, e);
|
|
8766
8766
|
}
|
|
8767
|
-
const
|
|
8767
|
+
const eb = [
|
|
8768
8768
|
"preliminary",
|
|
8769
8769
|
"final",
|
|
8770
8770
|
"amended",
|
|
8771
8771
|
"corrected",
|
|
8772
8772
|
"appended"
|
|
8773
|
-
],
|
|
8773
|
+
], tb = [
|
|
8774
8774
|
"registered",
|
|
8775
8775
|
"unknown",
|
|
8776
8776
|
"partial"
|
|
8777
|
-
], qg = "All Orderables", jg = "/openmrs/ws/rest/v1/ordertype?v=custom:(uuid,display,conceptClasses:(uuid,name))", Vg = "LabSet", Hg = "http://fhir.bahmni.org/ext/ValueSet/concept-class",
|
|
8777
|
+
], qg = "All Orderables", jg = "/openmrs/ws/rest/v1/ordertype?v=custom:(uuid,display,conceptClasses:(uuid,name))", Vg = "LabSet", Hg = "http://fhir.bahmni.org/ext/ValueSet/concept-class", rb = ["orderTypes"], Bg = async () => await Lm(qg), Ls = async () => await V(jg), zg = (t) => {
|
|
8778
8778
|
let e = t.display ?? "Unknown investigation";
|
|
8779
8779
|
return mc(t) === Vg && (e += ` (${de.t("INVESTIGATION_PANEL")})`), e;
|
|
8780
8780
|
}, Yg = (t) => {
|
|
@@ -8806,12 +8806,12 @@ const Z_ = [
|
|
|
8806
8806
|
});
|
|
8807
8807
|
});
|
|
8808
8808
|
}), r;
|
|
8809
|
-
},
|
|
8809
|
+
}, nb = async () => {
|
|
8810
8810
|
const t = await Bg(), e = await Ls();
|
|
8811
8811
|
return Gg(t, Yg(e));
|
|
8812
|
-
},
|
|
8812
|
+
}, sb = async (t) => t ? (await Ls()).results.find(
|
|
8813
8813
|
(n) => n.display.toLowerCase() === t.toLowerCase()
|
|
8814
|
-
)?.uuid ?? null : null,
|
|
8814
|
+
)?.uuid ?? null : null, ob = async () => (await Ls()).results.map((e) => e.display), ab = async (t, e, r) => {
|
|
8815
8815
|
const n = [];
|
|
8816
8816
|
for (const s of t) {
|
|
8817
8817
|
const o = s.uuid;
|
|
@@ -8835,7 +8835,7 @@ function Kg(t) {
|
|
|
8835
8835
|
return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
|
|
8836
8836
|
}
|
|
8837
8837
|
var tr = { exports: {} }, Mn = {}, je = {}, Qe = {}, Un = {}, Fn = {}, qn = {}, Vo;
|
|
8838
|
-
function
|
|
8838
|
+
function en() {
|
|
8839
8839
|
return Vo || (Vo = 1, (function(t) {
|
|
8840
8840
|
Object.defineProperty(t, "__esModule", { value: !0 }), t.regexpCode = t.getEsmExportName = t.getProperty = t.safeStringify = t.stringify = t.strConcat = t.addCodeArg = t.str = t._ = t.nil = t._Code = t.Name = t.IDENTIFIER = t._CodeOrName = void 0;
|
|
8841
8841
|
class e {
|
|
@@ -8961,7 +8961,7 @@ var jn = {}, Ho;
|
|
|
8961
8961
|
function Bo() {
|
|
8962
8962
|
return Ho || (Ho = 1, (function(t) {
|
|
8963
8963
|
Object.defineProperty(t, "__esModule", { value: !0 }), t.ValueScope = t.ValueScopeName = t.Scope = t.varKinds = t.UsedValueState = void 0;
|
|
8964
|
-
const e =
|
|
8964
|
+
const e = en();
|
|
8965
8965
|
class r extends Error {
|
|
8966
8966
|
constructor(u) {
|
|
8967
8967
|
super(`CodeGen: "code" for ${u} not defined`), this.value = u.value;
|
|
@@ -9084,8 +9084,8 @@ var zo;
|
|
|
9084
9084
|
function te() {
|
|
9085
9085
|
return zo || (zo = 1, (function(t) {
|
|
9086
9086
|
Object.defineProperty(t, "__esModule", { value: !0 }), t.or = t.and = t.not = t.CodeGen = t.operators = t.varKinds = t.ValueScopeName = t.ValueScope = t.Scope = t.Name = t.regexpCode = t.stringify = t.getProperty = t.nil = t.strConcat = t.str = t._ = void 0;
|
|
9087
|
-
const e =
|
|
9088
|
-
var n =
|
|
9087
|
+
const e = en(), r = Bo();
|
|
9088
|
+
var n = en();
|
|
9089
9089
|
Object.defineProperty(t, "_", { enumerable: !0, get: function() {
|
|
9090
9090
|
return n._;
|
|
9091
9091
|
} }), Object.defineProperty(t, "str", { enumerable: !0, get: function() {
|
|
@@ -9624,9 +9624,9 @@ function te() {
|
|
|
9624
9624
|
return typeof E == "boolean" || typeof E == "number" || E === null ? !E : (0, e._)`!${v(E)}`;
|
|
9625
9625
|
}
|
|
9626
9626
|
t.not = pe;
|
|
9627
|
-
const
|
|
9627
|
+
const ge = g(t.operators.AND);
|
|
9628
9628
|
function re(...E) {
|
|
9629
|
-
return E.reduce(
|
|
9629
|
+
return E.reduce(ge);
|
|
9630
9630
|
}
|
|
9631
9631
|
t.and = re;
|
|
9632
9632
|
const ae = g(t.operators.OR);
|
|
@@ -9646,7 +9646,7 @@ var ee = {}, Yo;
|
|
|
9646
9646
|
function oe() {
|
|
9647
9647
|
if (Yo) return ee;
|
|
9648
9648
|
Yo = 1, Object.defineProperty(ee, "__esModule", { value: !0 }), ee.checkStrictMode = ee.getErrorPath = ee.Type = ee.useFunc = ee.setEvaluated = ee.evaluatedPropsToName = ee.mergeEvaluated = ee.eachItem = ee.unescapeJsonPointer = ee.escapeJsonPointer = ee.escapeFragment = ee.unescapeFragment = ee.schemaRefOrVal = ee.schemaHasRulesButRef = ee.schemaHasRules = ee.checkUnknownRules = ee.alwaysValidSchema = ee.toHash = void 0;
|
|
9649
|
-
const t = te(), e =
|
|
9649
|
+
const t = te(), e = en();
|
|
9650
9650
|
function r(y) {
|
|
9651
9651
|
const T = {};
|
|
9652
9652
|
for (const N of y)
|
|
@@ -9972,7 +9972,7 @@ function yc() {
|
|
|
9972
9972
|
return Ve.shouldUseRule = r, Ve;
|
|
9973
9973
|
}
|
|
9974
9974
|
var Xo;
|
|
9975
|
-
function
|
|
9975
|
+
function tn() {
|
|
9976
9976
|
if (Xo) return Re;
|
|
9977
9977
|
Xo = 1, Object.defineProperty(Re, "__esModule", { value: !0 }), Re.reportTypeError = Re.checkDataTypes = Re.checkDataType = Re.coerceAndCheckDataType = Re.getJSONTypes = Re.getSchemaTypes = Re.DataType = void 0;
|
|
9978
9978
|
const t = gc(), e = yc(), r = yn(), n = te(), s = oe();
|
|
@@ -10585,7 +10585,7 @@ function wn() {
|
|
|
10585
10585
|
return;
|
|
10586
10586
|
const G = y + q;
|
|
10587
10587
|
let Z = A[K];
|
|
10588
|
-
typeof j[p] == "string" && (Z = pe.call(this, j[p])),
|
|
10588
|
+
typeof j[p] == "string" && (Z = pe.call(this, j[p])), ge.call(this, j.$anchor), ge.call(this, j.$dynamicAnchor), A[q] = Z;
|
|
10589
10589
|
function pe(re) {
|
|
10590
10590
|
const ae = this.opts.uriResolver.resolve;
|
|
10591
10591
|
if (re = f(Z ? ae(Z, re) : re), N.has(re))
|
|
@@ -10594,7 +10594,7 @@ function wn() {
|
|
|
10594
10594
|
let _ = this.refs[re];
|
|
10595
10595
|
return typeof _ == "string" && (_ = this.refs[_]), typeof _ == "object" ? x(j, _.schema, re) : re !== f(G) && (re[0] === "#" ? (x(j, T[re], re), T[re] = j) : this.refs[re] = G), re;
|
|
10596
10596
|
}
|
|
10597
|
-
function
|
|
10597
|
+
function ge(re) {
|
|
10598
10598
|
if (typeof re == "string") {
|
|
10599
10599
|
if (!S.test(re))
|
|
10600
10600
|
throw new Error(`invalid anchor "${re}"`);
|
|
@@ -10616,7 +10616,7 @@ var aa;
|
|
|
10616
10616
|
function En() {
|
|
10617
10617
|
if (aa) return je;
|
|
10618
10618
|
aa = 1, Object.defineProperty(je, "__esModule", { value: !0 }), je.getData = je.KeywordCxt = je.validateFunctionCode = void 0;
|
|
10619
|
-
const t = Wg(), e =
|
|
10619
|
+
const t = Wg(), e = tn(), r = yc(), n = tn(), s = Jg(), o = Qg(), a = Xg(), i = te(), c = Je(), u = wn(), l = oe(), f = yn();
|
|
10620
10620
|
function w($) {
|
|
10621
10621
|
if (y($) && (N($), A($))) {
|
|
10622
10622
|
m($);
|
|
@@ -10708,8 +10708,8 @@ function En() {
|
|
|
10708
10708
|
if (H.$comment === !0)
|
|
10709
10709
|
$.code((0, i._)`${c.default.self}.logger.log(${F})`);
|
|
10710
10710
|
else if (typeof H.$comment == "function") {
|
|
10711
|
-
const
|
|
10712
|
-
$.code((0, i._)`${c.default.self}.opts.$comment(${F}, ${
|
|
10711
|
+
const ne = (0, i.str)`${U}/$comment`, ue = $.scopeValue("root", { ref: C.root });
|
|
10712
|
+
$.code((0, i._)`${c.default.self}.opts.$comment(${F}, ${ne}, ${ue}.schema)`);
|
|
10713
10713
|
}
|
|
10714
10714
|
}
|
|
10715
10715
|
function G($) {
|
|
@@ -10720,7 +10720,7 @@ function En() {
|
|
|
10720
10720
|
L instanceof i.Name && $.assign((0, i._)`${C}.props`, L), U instanceof i.Name && $.assign((0, i._)`${C}.items`, U);
|
|
10721
10721
|
}
|
|
10722
10722
|
function pe($, C, L, U) {
|
|
10723
|
-
const { gen: H, schema: F, data:
|
|
10723
|
+
const { gen: H, schema: F, data: ne, allErrors: ue, opts: le, self: Te } = $, { RULES: Se } = Te;
|
|
10724
10724
|
if (F.$ref && (le.ignoreKeywordsWithRef || !(0, l.schemaHasRulesButRef)(F, Se))) {
|
|
10725
10725
|
H.block(() => k($, "$ref", Se.all.$ref.definition));
|
|
10726
10726
|
return;
|
|
@@ -10731,10 +10731,10 @@ function En() {
|
|
|
10731
10731
|
$e(Se.post);
|
|
10732
10732
|
});
|
|
10733
10733
|
function $e(Ce) {
|
|
10734
|
-
(0, r.shouldUseGroup)(F, Ce) && (Ce.type ? (H.if((0, n.checkDataType)(Ce.type,
|
|
10734
|
+
(0, r.shouldUseGroup)(F, Ce) && (Ce.type ? (H.if((0, n.checkDataType)(Ce.type, ne, le.strictNumbers)), ge($, Ce), C.length === 1 && C[0] === Ce.type && L && (H.else(), (0, n.reportTypeError)($)), H.endIf()) : ge($, Ce), ue || H.if((0, i._)`${c.default.errors} === ${U || 0}`));
|
|
10735
10735
|
}
|
|
10736
10736
|
}
|
|
10737
|
-
function
|
|
10737
|
+
function ge($, C) {
|
|
10738
10738
|
const { gen: L, schema: U, opts: { useDefaults: H } } = $;
|
|
10739
10739
|
H && (0, s.assignDefaults)($, C.type), L.block(() => {
|
|
10740
10740
|
for (const F of C.rules)
|
|
@@ -10764,7 +10764,7 @@ function En() {
|
|
|
10764
10764
|
const H = L[U];
|
|
10765
10765
|
if (typeof H == "object" && (0, r.shouldUseRule)($.schema, H)) {
|
|
10766
10766
|
const { type: F } = H.definition;
|
|
10767
|
-
F.length && !F.some((
|
|
10767
|
+
F.length && !F.some((ne) => v(C, ne)) && R($, `missing type "${F.join(",")}" for keyword "${U}"`);
|
|
10768
10768
|
}
|
|
10769
10769
|
}
|
|
10770
10770
|
}
|
|
@@ -10846,13 +10846,13 @@ function En() {
|
|
|
10846
10846
|
check$data(C = i.nil, L = i.nil) {
|
|
10847
10847
|
if (!this.$data)
|
|
10848
10848
|
return;
|
|
10849
|
-
const { gen: U, schemaCode: H, schemaType: F, def:
|
|
10850
|
-
U.if((0, i.or)((0, i._)`${H} === undefined`, L)), C !== i.nil && U.assign(C, !0), (F.length ||
|
|
10849
|
+
const { gen: U, schemaCode: H, schemaType: F, def: ne } = this;
|
|
10850
|
+
U.if((0, i.or)((0, i._)`${H} === undefined`, L)), C !== i.nil && U.assign(C, !0), (F.length || ne.validateSchema) && (U.elseIf(this.invalid$data()), this.$dataError(), C !== i.nil && U.assign(C, !1)), U.else();
|
|
10851
10851
|
}
|
|
10852
10852
|
invalid$data() {
|
|
10853
10853
|
const { gen: C, schemaCode: L, schemaType: U, def: H, it: F } = this;
|
|
10854
|
-
return (0, i.or)(
|
|
10855
|
-
function
|
|
10854
|
+
return (0, i.or)(ne(), ue());
|
|
10855
|
+
function ne() {
|
|
10856
10856
|
if (U.length) {
|
|
10857
10857
|
if (!(L instanceof i.Name))
|
|
10858
10858
|
throw new Error("ajv implementation error");
|
|
@@ -10914,11 +10914,11 @@ function En() {
|
|
|
10914
10914
|
if (F = L[C - Se], !H)
|
|
10915
10915
|
return F;
|
|
10916
10916
|
}
|
|
10917
|
-
let
|
|
10917
|
+
let ne = F;
|
|
10918
10918
|
const ue = H.split("/");
|
|
10919
10919
|
for (const Te of ue)
|
|
10920
|
-
Te && (F = (0, i._)`${F}${(0, i.getProperty)((0, l.unescapeJsonPointer)(Te))}`,
|
|
10921
|
-
return
|
|
10920
|
+
Te && (F = (0, i._)`${F}${(0, i.getProperty)((0, l.unescapeJsonPointer)(Te))}`, ne = (0, i._)`${ne} && ${F}`);
|
|
10921
|
+
return ne;
|
|
10922
10922
|
function le(Te, Se) {
|
|
10923
10923
|
return `Cannot access ${Te} ${Se} levels up, current level is ${C}`;
|
|
10924
10924
|
}
|
|
@@ -11395,7 +11395,7 @@ function Ec() {
|
|
|
11395
11395
|
function pe(_) {
|
|
11396
11396
|
return _ >= 48 && _ <= 57 || _ >= 65 && _ <= 90 || _ >= 97 && _ <= 122 || _ === 42 || _ === 43 || _ === 45 || _ === 46 || _ === 47 || _ === 64 || _ === 95;
|
|
11397
11397
|
}
|
|
11398
|
-
function
|
|
11398
|
+
function ge(_) {
|
|
11399
11399
|
let g = "";
|
|
11400
11400
|
for (let v = 0; v < _.length; v++) {
|
|
11401
11401
|
const E = _[v];
|
|
@@ -11463,7 +11463,7 @@ function Ec() {
|
|
|
11463
11463
|
normalizePercentEncoding: M,
|
|
11464
11464
|
normalizePathEncoding: j,
|
|
11465
11465
|
serializePathEncoding: q,
|
|
11466
|
-
normalizeQueryFragmentEncoding:
|
|
11466
|
+
normalizeQueryFragmentEncoding: ge,
|
|
11467
11467
|
encodeUserinfo: K,
|
|
11468
11468
|
encodeQuery: G,
|
|
11469
11469
|
encodeFragment: Z,
|
|
@@ -11655,8 +11655,8 @@ function cy() {
|
|
|
11655
11655
|
} = G(g, E);
|
|
11656
11656
|
if (R || $ || I || C || k || L || B || U || J || H)
|
|
11657
11657
|
throw new Error(d.error || Q.error || "URI is malformed.");
|
|
11658
|
-
const F = b(d, Q, E, !0),
|
|
11659
|
-
K(F, v || {},
|
|
11658
|
+
const F = b(d, Q, E, !0), ne = S(v && v.scheme || F.scheme), ue = F.host, le = ue !== void 0 && ue !== "" && (l(ue) || t(ue).isIPV6);
|
|
11659
|
+
K(F, v || {}, ne, le);
|
|
11660
11660
|
const Te = ue && ue.indexOf("%") !== -1 && !new RegExp("\\P{ASCII}", "u").test(ue);
|
|
11661
11661
|
if (F.error && !Te)
|
|
11662
11662
|
throw new Error(F.error);
|
|
@@ -11761,8 +11761,8 @@ function cy() {
|
|
|
11761
11761
|
const U = M(E, L);
|
|
11762
11762
|
if (U !== void 0 && (E.error = E.error || U, d = !0), E.host)
|
|
11763
11763
|
if (l(E.host) === !1) {
|
|
11764
|
-
const
|
|
11765
|
-
Q = le.isIPV6 || le.isIPVFuture === !0, B = ue && (!
|
|
11764
|
+
const ne = q(E.host), ue = E.host.indexOf("[") !== -1 || E.host.indexOf("]") !== -1, le = t(E.host);
|
|
11765
|
+
Q = le.isIPV6 || le.isIPVFuture === !0, B = ue && (!ne || le.error === !0), E.host = Q ? le.host : le.host.toLowerCase(), B && (E.error = E.error || "URI host is malformed.", d = !0);
|
|
11766
11766
|
} else
|
|
11767
11767
|
Q = !0;
|
|
11768
11768
|
E.scheme === void 0 && E.userinfo === void 0 && E.host === void 0 && E.port === void 0 && E.query === void 0 && !E.path ? E.reference = "same-document" : E.scheme === void 0 ? E.reference = "relative" : E.fragment === void 0 ? E.reference = "absolute" : E.reference = "uri", v.reference && v.reference !== "suffix" && v.reference !== E.reference && (E.error = E.error || "URI is not a " + v.reference + " reference.");
|
|
@@ -11783,9 +11783,9 @@ function cy() {
|
|
|
11783
11783
|
return G(_, g).parsed;
|
|
11784
11784
|
}
|
|
11785
11785
|
function pe(_, g) {
|
|
11786
|
-
return
|
|
11786
|
+
return ge(_, g).normalized;
|
|
11787
11787
|
}
|
|
11788
|
-
function
|
|
11788
|
+
function ge(_, g) {
|
|
11789
11789
|
const { parsed: v, malformedAuthorityOrPort: E, malformedPercentEncoding: d, malformedSchemeSpecific: R, malformedHost: I, malformedScheme: k } = G(_, g);
|
|
11790
11790
|
return {
|
|
11791
11791
|
normalized: E || d || R || I || k ? _ : y(v, g),
|
|
@@ -11805,7 +11805,7 @@ function cy() {
|
|
|
11805
11805
|
} catch {
|
|
11806
11806
|
return;
|
|
11807
11807
|
}
|
|
11808
|
-
const { normalized: E, malformedAuthorityOrPort: d, malformedPercentEncoding: R, malformedSchemeSpecific: I, malformedHost: k, malformedScheme: B } =
|
|
11808
|
+
const { normalized: E, malformedAuthorityOrPort: d, malformedPercentEncoding: R, malformedSchemeSpecific: I, malformedHost: k, malformedScheme: B } = ge(v, g);
|
|
11809
11809
|
return d || R || I || k || B ? void 0 : E;
|
|
11810
11810
|
}
|
|
11811
11811
|
const ae = {
|
|
@@ -11848,7 +11848,7 @@ function ly() {
|
|
|
11848
11848
|
} }), Object.defineProperty(t, "CodeGen", { enumerable: !0, get: function() {
|
|
11849
11849
|
return r.CodeGen;
|
|
11850
11850
|
} });
|
|
11851
|
-
const n = ks(), s = _n(), o = gc(), a = Ms(), i = te(), c = wn(), u =
|
|
11851
|
+
const n = ks(), s = _n(), o = gc(), a = Ms(), i = te(), c = wn(), u = tn(), l = oe(), f = ay, w = uy(), S = (_, g) => new RegExp(_, g);
|
|
11852
11852
|
S.code = "new RegExp";
|
|
11853
11853
|
const O = ["removeAdditional", "useDefaults", "coerceTypes"], P = /* @__PURE__ */ new Set([
|
|
11854
11854
|
"validate",
|
|
@@ -11886,7 +11886,7 @@ function ly() {
|
|
|
11886
11886
|
unicode: '"minLength"/"maxLength" account for unicode characters by default.'
|
|
11887
11887
|
}, h = 200;
|
|
11888
11888
|
function b(_) {
|
|
11889
|
-
var g, v, E, d, R, I, k, B, J, Q, $, C, L, U, H, F,
|
|
11889
|
+
var g, v, E, d, R, I, k, B, J, Q, $, C, L, U, H, F, ne, ue, le, Te, Se, $e, Ce, bn, vn;
|
|
11890
11890
|
const Pt = _.strict, Tn = (g = _.code) === null || g === void 0 ? void 0 : g.optimize, Hs = Tn === !0 || Tn === void 0 ? 1 : Tn || 0, Bs = (E = (v = _.code) === null || v === void 0 ? void 0 : v.regExp) !== null && E !== void 0 ? E : S, Lc = (d = _.uriResolver) !== null && d !== void 0 ? d : w.default;
|
|
11891
11891
|
return {
|
|
11892
11892
|
strictSchema: (I = (R = _.strictSchema) !== null && R !== void 0 ? R : Pt) !== null && I !== void 0 ? I : !0,
|
|
@@ -11897,7 +11897,7 @@ function ly() {
|
|
|
11897
11897
|
code: _.code ? { ..._.code, optimize: Hs, regExp: Bs } : { optimize: Hs, regExp: Bs },
|
|
11898
11898
|
loopRequired: (H = _.loopRequired) !== null && H !== void 0 ? H : h,
|
|
11899
11899
|
loopEnum: (F = _.loopEnum) !== null && F !== void 0 ? F : h,
|
|
11900
|
-
meta: (
|
|
11900
|
+
meta: (ne = _.meta) !== null && ne !== void 0 ? ne : !0,
|
|
11901
11901
|
messages: (ue = _.messages) !== null && ue !== void 0 ? ue : !0,
|
|
11902
11902
|
inlineRefs: (le = _.inlineRefs) !== null && le !== void 0 ? le : !0,
|
|
11903
11903
|
schemaId: (Te = _.schemaId) !== null && Te !== void 0 ? Te : "$id",
|
|
@@ -12078,7 +12078,7 @@ function ly() {
|
|
|
12078
12078
|
throw new Error("invalid addKeywords parameters");
|
|
12079
12079
|
if (G.call(this, E, v), !v)
|
|
12080
12080
|
return (0, l.eachItem)(E, (R) => Z.call(this, R)), this;
|
|
12081
|
-
|
|
12081
|
+
ge.call(this, v);
|
|
12082
12082
|
const d = {
|
|
12083
12083
|
...v,
|
|
12084
12084
|
type: (0, u.getJSONTypes)(v.type),
|
|
@@ -12257,7 +12257,7 @@ function ly() {
|
|
|
12257
12257
|
const E = _.rules.findIndex((d) => d.keyword === v);
|
|
12258
12258
|
E >= 0 ? _.rules.splice(E, 0, g) : (_.rules.push(g), this.logger.warn(`rule ${v} is not defined`));
|
|
12259
12259
|
}
|
|
12260
|
-
function
|
|
12260
|
+
function ge(_) {
|
|
12261
12261
|
let { metaSchema: g } = _;
|
|
12262
12262
|
g !== void 0 && (_.$data && this.opts.$data && (g = ae(g)), _.validateSchema = this.compile(g, !0));
|
|
12263
12263
|
}
|
|
@@ -12599,7 +12599,7 @@ var Aa;
|
|
|
12599
12599
|
function vy() {
|
|
12600
12600
|
if (Aa) return wr;
|
|
12601
12601
|
Aa = 1, Object.defineProperty(wr, "__esModule", { value: !0 });
|
|
12602
|
-
const t =
|
|
12602
|
+
const t = tn(), e = te(), r = oe(), n = Us(), o = {
|
|
12603
12603
|
keyword: "uniqueItems",
|
|
12604
12604
|
type: "array",
|
|
12605
12605
|
schemaType: "boolean",
|
|
@@ -12722,10 +12722,10 @@ function Ry() {
|
|
|
12722
12722
|
];
|
|
12723
12723
|
return ur.default = l, ur;
|
|
12724
12724
|
}
|
|
12725
|
-
var vr = {},
|
|
12725
|
+
var vr = {}, mt = {}, Da;
|
|
12726
12726
|
function _c() {
|
|
12727
|
-
if (Da) return
|
|
12728
|
-
Da = 1, Object.defineProperty(
|
|
12727
|
+
if (Da) return mt;
|
|
12728
|
+
Da = 1, Object.defineProperty(mt, "__esModule", { value: !0 }), mt.validateAdditionalItems = void 0;
|
|
12729
12729
|
const t = te(), e = oe(), n = {
|
|
12730
12730
|
keyword: "additionalItems",
|
|
12731
12731
|
type: "array",
|
|
@@ -12760,12 +12760,12 @@ function _c() {
|
|
|
12760
12760
|
});
|
|
12761
12761
|
}
|
|
12762
12762
|
}
|
|
12763
|
-
return
|
|
12763
|
+
return mt.validateAdditionalItems = s, mt.default = n, mt;
|
|
12764
12764
|
}
|
|
12765
|
-
var Tr = {},
|
|
12765
|
+
var Tr = {}, gt = {}, $a;
|
|
12766
12766
|
function bc() {
|
|
12767
|
-
if ($a) return
|
|
12768
|
-
$a = 1, Object.defineProperty(
|
|
12767
|
+
if ($a) return gt;
|
|
12768
|
+
$a = 1, Object.defineProperty(gt, "__esModule", { value: !0 }), gt.validateTuple = void 0;
|
|
12769
12769
|
const t = te(), e = oe(), r = Me(), n = {
|
|
12770
12770
|
keyword: "items",
|
|
12771
12771
|
type: "array",
|
|
@@ -12797,7 +12797,7 @@ function bc() {
|
|
|
12797
12797
|
}
|
|
12798
12798
|
}
|
|
12799
12799
|
}
|
|
12800
|
-
return
|
|
12800
|
+
return gt.validateTuple = s, gt.default = n, gt;
|
|
12801
12801
|
}
|
|
12802
12802
|
var Ca;
|
|
12803
12803
|
function Oy() {
|
|
@@ -13576,7 +13576,7 @@ var ew = Zy();
|
|
|
13576
13576
|
const tw = /* @__PURE__ */ Kg(ew), ti = {
|
|
13577
13577
|
CONFIG_NOT_FOUND: "CONFIG_ERROR_NOT_FOUND",
|
|
13578
13578
|
VALIDATION_FAILED: "CONFIG_ERROR_VALIDATION_FAILED"
|
|
13579
|
-
},
|
|
13579
|
+
}, ib = async (t, e) => {
|
|
13580
13580
|
const r = await rw(t);
|
|
13581
13581
|
if (!r)
|
|
13582
13582
|
throw new Error(ti.CONFIG_NOT_FOUND);
|
|
@@ -13585,7 +13585,7 @@ const tw = /* @__PURE__ */ Kg(ew), ti = {
|
|
|
13585
13585
|
return r;
|
|
13586
13586
|
}, rw = async (t) => await V(t), nw = async (t, e) => new tw().compile(e)(t), sw = 1e4, ow = async () => {
|
|
13587
13587
|
try {
|
|
13588
|
-
await vs(
|
|
13588
|
+
await vs(on, { timeout: sw });
|
|
13589
13589
|
} catch (t) {
|
|
13590
13590
|
throw Ul(t) === "unauthorized" && fo.forEach((e) => $o(e)), t;
|
|
13591
13591
|
}
|
|
@@ -13599,39 +13599,39 @@ const aw = async () => {
|
|
|
13599
13599
|
const e = Ps(t);
|
|
13600
13600
|
let r;
|
|
13601
13601
|
try {
|
|
13602
|
-
r = await V(
|
|
13602
|
+
r = await V(on);
|
|
13603
13603
|
} catch {
|
|
13604
13604
|
return;
|
|
13605
13605
|
}
|
|
13606
13606
|
const n = r.user?.username;
|
|
13607
13607
|
n && n.toLowerCase() !== e.toLowerCase() && await ow();
|
|
13608
|
-
},
|
|
13608
|
+
}, cb = async () => (Gn ??= aw().finally(() => {
|
|
13609
13609
|
Gn = null;
|
|
13610
13610
|
}), Gn), iw = (t) => W + `/form/${t}?v=custom:(uuid,name,version,published,resources:(value))`, cw = (t) => {
|
|
13611
13611
|
const e = W + "/bahmniie/form/latestPublishedForms";
|
|
13612
13612
|
return t ? e + `?episodeUuid=${t}` : e;
|
|
13613
|
-
},
|
|
13613
|
+
}, ub = (t) => W + `/user/${t}?v=full`, uw = (t, e, r, n) => W + `/bahmniie/form/translations?formName=${encodeURIComponent(t)}&formUuid=${e}&formVersion=${r}&locale=${n}`, Hr = "Bahmni", lw = (t) => W + `/form?q=${encodeURIComponent(t)}&v=custom:(uuid,name,version,published,auditInfo:(dateCreated))`, dw = (t, e, r) => {
|
|
13614
13614
|
let s = W + "/bahmnicore/patient/" + t + "/forms";
|
|
13615
13615
|
return r ? s += `?patientProgramUuid=${r}` : e && (s += `?numberOfVisits=${e}`), s;
|
|
13616
13616
|
}, Tc = (t, e, r, n, s) => {
|
|
13617
|
-
let o = `${
|
|
13617
|
+
let o = `${se}/Observation?patient=${t}&_sort=-_lastUpdated&_count=100`;
|
|
13618
13618
|
if (e && e.length > 0) {
|
|
13619
13619
|
const a = e.join(",");
|
|
13620
13620
|
o += `&code=${a}`, n && (o += "&_include=Observation:has-member&_include=Observation:encounter");
|
|
13621
13621
|
}
|
|
13622
13622
|
return r && (o += `&based-on=${r}`), s && s.length > 0 && (o += `&encounter=${s.join(",")}`), o;
|
|
13623
13623
|
}, fw = (t, e, r, n) => {
|
|
13624
|
-
let s = `${
|
|
13624
|
+
let s = `${se}/Observation/$last-n?patient=${t}&_sort=-_lastUpdated&_count=100&_include=Observation:has-member`;
|
|
13625
13625
|
return e && e.length > 0 && (s += `&code=${e.join(",")}`, n && (s += "&_include=Observation:encounter")), r && r.length > 0 && (s += `&encounter=${r.join(",")}`), s;
|
|
13626
13626
|
}, hw = (t, e) => {
|
|
13627
|
-
let r = `${
|
|
13627
|
+
let r = `${se}/Observation/$fetch-all?encounter=${t}`;
|
|
13628
13628
|
return e && (r += `&based-on=${e}`), r;
|
|
13629
13629
|
};
|
|
13630
13630
|
async function pw(t, e, r) {
|
|
13631
13631
|
const n = Tc(t, e, r);
|
|
13632
13632
|
return await V(n);
|
|
13633
13633
|
}
|
|
13634
|
-
async function
|
|
13634
|
+
async function lb(t, e, r) {
|
|
13635
13635
|
const n = Tc(
|
|
13636
13636
|
t,
|
|
13637
13637
|
e,
|
|
@@ -13641,7 +13641,7 @@ async function ub(t, e, r) {
|
|
|
13641
13641
|
);
|
|
13642
13642
|
return await V(n);
|
|
13643
13643
|
}
|
|
13644
|
-
async function
|
|
13644
|
+
async function db(t, e, r, n) {
|
|
13645
13645
|
const s = fw(
|
|
13646
13646
|
t,
|
|
13647
13647
|
e,
|
|
@@ -13650,19 +13650,19 @@ async function lb(t, e, r, n) {
|
|
|
13650
13650
|
);
|
|
13651
13651
|
return await V(s);
|
|
13652
13652
|
}
|
|
13653
|
-
async function
|
|
13653
|
+
async function fb(t, e, r) {
|
|
13654
13654
|
return (await pw(
|
|
13655
13655
|
t,
|
|
13656
13656
|
e,
|
|
13657
13657
|
r
|
|
13658
13658
|
)).entry?.filter((o) => o.resource?.resourceType === "Observation").map((o) => o.resource) ?? [];
|
|
13659
13659
|
}
|
|
13660
|
-
async function
|
|
13660
|
+
async function hb(t, e) {
|
|
13661
13661
|
return await V(
|
|
13662
13662
|
hw(t, e)
|
|
13663
13663
|
);
|
|
13664
13664
|
}
|
|
13665
|
-
const mw = (t) => t.split("/").pop() ?? "",
|
|
13665
|
+
const mw = (t) => t.split("/").pop() ?? "", pb = (t, e) => {
|
|
13666
13666
|
const r = /* @__PURE__ */ new Map(), n = e.entry?.filter((o) => o.resource?.resourceType === "Encounter").map((o) => o.resource) ?? [], s = /* @__PURE__ */ new Map();
|
|
13667
13667
|
return n.forEach((o) => {
|
|
13668
13668
|
o.id && s.set(o.id, o);
|
|
@@ -13686,13 +13686,13 @@ const mw = (t) => t.split("/").pop() ?? "", hb = (t, e) => {
|
|
|
13686
13686
|
(o, a) => a.encounterDateTime - o.encounterDateTime
|
|
13687
13687
|
);
|
|
13688
13688
|
}, Sc = (t) => W + `/provider?user=${t}&v=custom:(uuid,display,person,attributes)`, gw = W + "/provider?v=custom:(uuid,display,person,attributes)";
|
|
13689
|
-
async function
|
|
13689
|
+
async function mb(t) {
|
|
13690
13690
|
const e = await V(
|
|
13691
13691
|
Sc(t)
|
|
13692
13692
|
);
|
|
13693
13693
|
return !e.results || e.results.length === 0 ? null : e.results[0];
|
|
13694
13694
|
}
|
|
13695
|
-
async function
|
|
13695
|
+
async function gb() {
|
|
13696
13696
|
const t = [];
|
|
13697
13697
|
let e = gw;
|
|
13698
13698
|
for (; e; ) {
|
|
@@ -13701,7 +13701,7 @@ async function mb() {
|
|
|
13701
13701
|
}
|
|
13702
13702
|
return t;
|
|
13703
13703
|
}
|
|
13704
|
-
async function
|
|
13704
|
+
async function yb(t) {
|
|
13705
13705
|
const e = await V(Sc(t));
|
|
13706
13706
|
if (!e.results || e.results.length === 0)
|
|
13707
13707
|
return [];
|
|
@@ -13710,7 +13710,7 @@ async function gb(t) {
|
|
|
13710
13710
|
(n) => !n.voided && n.attributeType.display === "Login Locations"
|
|
13711
13711
|
).map((n) => n.value) : [];
|
|
13712
13712
|
}
|
|
13713
|
-
const yw =
|
|
13713
|
+
const yw = se + "/Encounter", ww = W + "/systemsetting/bahmni.encountersession.duration", wb = {
|
|
13714
13714
|
MATCHED: "ENCOUNTER_MATCH_REASON_MATCHED",
|
|
13715
13715
|
NO_ACTIVE_VISIT: "ENCOUNTER_MATCH_REASON_NO_ACTIVE_VISIT",
|
|
13716
13716
|
NO_ACTIVE_ENCOUNTER: "ENCOUNTER_MATCH_REASON_NO_ACTIVE_ENCOUNTER",
|
|
@@ -13748,7 +13748,7 @@ async function Ew(t, e, r) {
|
|
|
13748
13748
|
return null;
|
|
13749
13749
|
}
|
|
13750
13750
|
}
|
|
13751
|
-
async function
|
|
13751
|
+
async function Eb(t, e, r, n, s) {
|
|
13752
13752
|
try {
|
|
13753
13753
|
if (!t) return null;
|
|
13754
13754
|
const o = r ?? await Rc(), i = `ge${new Date(Date.now() - o * 60 * 1e3).toISOString()}`, c = {
|
|
@@ -13789,7 +13789,7 @@ function Kn(t) {
|
|
|
13789
13789
|
return new Date(r.period?.start ?? 0).getTime() - n;
|
|
13790
13790
|
});
|
|
13791
13791
|
}
|
|
13792
|
-
async function
|
|
13792
|
+
async function _b(t, e, r, n) {
|
|
13793
13793
|
try {
|
|
13794
13794
|
const s = await gn(t);
|
|
13795
13795
|
if (!s?.id)
|
|
@@ -13854,7 +13854,7 @@ async function Eb(t, e, r, n) {
|
|
|
13854
13854
|
};
|
|
13855
13855
|
}
|
|
13856
13856
|
}
|
|
13857
|
-
function
|
|
13857
|
+
function bb(t) {
|
|
13858
13858
|
return t.matched || t.reasons.includes("LOCATION_MISMATCH") && !t.reasons.includes("SESSION_EXPIRED") && !t.reasons.includes("PROVIDER_MISMATCH");
|
|
13859
13859
|
}
|
|
13860
13860
|
const Oc = {
|
|
@@ -13880,7 +13880,7 @@ function bw(t) {
|
|
|
13880
13880
|
function vw() {
|
|
13881
13881
|
return Bt;
|
|
13882
13882
|
}
|
|
13883
|
-
function
|
|
13883
|
+
function vb(t) {
|
|
13884
13884
|
const e = t.reasons.some(
|
|
13885
13885
|
(r) => _w.includes(r)
|
|
13886
13886
|
);
|
|
@@ -13891,20 +13891,20 @@ function bb(t) {
|
|
|
13891
13891
|
isLoading: !1
|
|
13892
13892
|
}, qs();
|
|
13893
13893
|
}
|
|
13894
|
-
function
|
|
13894
|
+
function Tb(t) {
|
|
13895
13895
|
Bt = { ...Bt, isLoading: t }, qs();
|
|
13896
13896
|
}
|
|
13897
|
-
function
|
|
13897
|
+
function Sb() {
|
|
13898
13898
|
Bt = { ...Oc }, qs();
|
|
13899
13899
|
}
|
|
13900
|
-
function
|
|
13900
|
+
function Rb() {
|
|
13901
13901
|
return Mc(
|
|
13902
13902
|
bw,
|
|
13903
13903
|
vw
|
|
13904
13904
|
);
|
|
13905
13905
|
}
|
|
13906
|
-
const Tw = (t) =>
|
|
13907
|
-
async function
|
|
13906
|
+
const Tw = (t) => se + `/EpisodeOfCare?_revinclude=Encounter:episode-of-care&_id=${t}`, Sw = (t) => se + `/EpisodeOfCare/${t}`;
|
|
13907
|
+
async function Ob(t) {
|
|
13908
13908
|
const e = t.join(","), r = await V(Tw(e));
|
|
13909
13909
|
if (r.total === 0)
|
|
13910
13910
|
throw new Error(
|
|
@@ -13917,7 +13917,7 @@ async function Rb(t) {
|
|
|
13917
13917
|
c && s.add(c);
|
|
13918
13918
|
}), { visitUuids: Array.from(s), encounterUuids: o };
|
|
13919
13919
|
}
|
|
13920
|
-
async function
|
|
13920
|
+
async function Ab(t) {
|
|
13921
13921
|
return await V(`${Sw(t)}`);
|
|
13922
13922
|
}
|
|
13923
13923
|
const Wn = /* @__PURE__ */ new Map(), Rw = async (t) => {
|
|
@@ -13942,17 +13942,17 @@ const Wn = /* @__PURE__ */ new Map(), Rw = async (t) => {
|
|
|
13942
13942
|
message: r ? `${de.t(o.message)}~${JSON.stringify(r)}` : de.t(o.message),
|
|
13943
13943
|
module: n
|
|
13944
13944
|
};
|
|
13945
|
-
return await
|
|
13946
|
-
},
|
|
13945
|
+
return await we(Cf, a), { logged: !0 };
|
|
13946
|
+
}, Pb = () => $f(async (e) => {
|
|
13947
13947
|
await Aw(
|
|
13948
13948
|
e.patientUuid,
|
|
13949
13949
|
e.eventType,
|
|
13950
13950
|
e.messageParams,
|
|
13951
13951
|
e.module
|
|
13952
13952
|
);
|
|
13953
|
-
}),
|
|
13953
|
+
}), Nb = async () => {
|
|
13954
13954
|
try {
|
|
13955
|
-
const t = await V(
|
|
13955
|
+
const t = await V(on);
|
|
13956
13956
|
return t.user ? t.user.privileges : null;
|
|
13957
13957
|
} catch (t) {
|
|
13958
13958
|
const { message: e } = Gr(t);
|
|
@@ -13998,12 +13998,12 @@ const Wn = /* @__PURE__ */ new Map(), Rw = async (t) => {
|
|
|
13998
13998
|
editable: n.editable
|
|
13999
13999
|
}))
|
|
14000
14000
|
};
|
|
14001
|
-
},
|
|
14002
|
-
const e = await Nw(t), r =
|
|
14001
|
+
}, Ib = async (t) => {
|
|
14002
|
+
const e = await Nw(t), r = cn();
|
|
14003
14003
|
return e.map(
|
|
14004
14004
|
(n) => Dw(n, r)
|
|
14005
14005
|
);
|
|
14006
|
-
},
|
|
14006
|
+
}, Db = async (t) => {
|
|
14007
14007
|
const e = await fetch(iw(t));
|
|
14008
14008
|
if (!e.ok)
|
|
14009
14009
|
throw new Error(
|
|
@@ -14012,7 +14012,7 @@ const Wn = /* @__PURE__ */ new Map(), Rw = async (t) => {
|
|
|
14012
14012
|
const r = await e.json();
|
|
14013
14013
|
if (!r.resources || r.resources.length === 0)
|
|
14014
14014
|
throw new Error(`No resources found for form ${t}`);
|
|
14015
|
-
const n = JSON.parse(r.resources[0].value), s =
|
|
14015
|
+
const n = JSON.parse(r.resources[0].value), s = cn(), o = r.name ?? n.name, a = r.uuid ?? n.uuid, i = r.version ?? n.version ?? "1", c = r.published ?? !1;
|
|
14016
14016
|
let u = { labels: {}, concepts: {} };
|
|
14017
14017
|
if (n && typeof n == "object" && "translationsUrl" in n && typeof n.translationsUrl == "string") {
|
|
14018
14018
|
const l = uw(
|
|
@@ -14037,7 +14037,7 @@ const Wn = /* @__PURE__ */ new Map(), Rw = async (t) => {
|
|
|
14037
14037
|
schema: n,
|
|
14038
14038
|
translations: u
|
|
14039
14039
|
};
|
|
14040
|
-
},
|
|
14040
|
+
}, $b = async (t, e, r) => {
|
|
14041
14041
|
const n = await fetch(lw(t));
|
|
14042
14042
|
if (!n.ok) return null;
|
|
14043
14043
|
const s = await n.json(), a = (Array.isArray(s.results) ? s.results : []).filter(
|
|
@@ -14059,13 +14059,13 @@ const Wn = /* @__PURE__ */ new Map(), Rw = async (t) => {
|
|
|
14059
14059
|
(u) => new Date(u.auditInfo.dateCreated).getTime() <= r
|
|
14060
14060
|
);
|
|
14061
14061
|
return c.length === 0 ? i[0].uuid : c.at(-1).uuid;
|
|
14062
|
-
},
|
|
14062
|
+
}, Cb = async (t, e, r) => {
|
|
14063
14063
|
let n;
|
|
14064
14064
|
e && e.length > 0 && (n = e.join(","));
|
|
14065
14065
|
const s = dw(t, r, n), o = await V(s);
|
|
14066
14066
|
return Array.isArray(o) ? o : [];
|
|
14067
14067
|
};
|
|
14068
|
-
function
|
|
14068
|
+
function xb(t) {
|
|
14069
14069
|
const e = (c) => String(c).padStart(2, "0"), r = t.getFullYear(), n = e(t.getMonth() + 1), s = e(t.getDate()), o = e(t.getHours()), a = e(t.getMinutes()), i = e(t.getSeconds());
|
|
14070
14070
|
return `${r}-${n}-${s} ${o}:${a}:${i}`;
|
|
14071
14071
|
}
|
|
@@ -14108,7 +14108,7 @@ function js(t, e) {
|
|
|
14108
14108
|
};
|
|
14109
14109
|
return n(r.controls);
|
|
14110
14110
|
}
|
|
14111
|
-
function
|
|
14111
|
+
function Lb(t, e) {
|
|
14112
14112
|
if (!t.controls || t.controls.length === 0)
|
|
14113
14113
|
return [];
|
|
14114
14114
|
const r = [], n = (/* @__PURE__ */ new Date()).toISOString();
|
|
@@ -14153,7 +14153,7 @@ function xb(t, e) {
|
|
|
14153
14153
|
s.interpretation && (a.interpretation = s.interpretation), s.comment && (a.comment = s.comment), r.push(a);
|
|
14154
14154
|
}), r;
|
|
14155
14155
|
}
|
|
14156
|
-
function
|
|
14156
|
+
function kb(t, e) {
|
|
14157
14157
|
if (!t || t.length === 0)
|
|
14158
14158
|
return {
|
|
14159
14159
|
controls: [],
|
|
@@ -14184,7 +14184,7 @@ function Lb(t, e) {
|
|
|
14184
14184
|
function $w(t) {
|
|
14185
14185
|
return t == null ? null : typeof t == "string" || typeof t == "number" || typeof t == "boolean" || typeof t == "object" ? t : null;
|
|
14186
14186
|
}
|
|
14187
|
-
function
|
|
14187
|
+
function Mb(t, e) {
|
|
14188
14188
|
const r = (s) => {
|
|
14189
14189
|
const o = s.concept, a = typeof o == "object" && o !== null && "uuid" in o ? o.uuid : o, i = (e && js(e, a)) ?? (typeof o == "object" && o !== null && "datatype" in o ? o.datatype : void 0), c = {
|
|
14190
14190
|
concept: {
|
|
@@ -14200,11 +14200,11 @@ function kb(t, e) {
|
|
|
14200
14200
|
};
|
|
14201
14201
|
return (t?.filter((s) => s.uuid && s.voided ? !0 : !(!s.uuid && s.voided || s.value && typeof s.value == "string" && s.value.endsWith("voided"))) ?? []).map(r);
|
|
14202
14202
|
}
|
|
14203
|
-
function
|
|
14203
|
+
function Ub(t) {
|
|
14204
14204
|
if (!(!t || typeof t != "object"))
|
|
14205
14205
|
return "toJS" in t && typeof t.toJS == "function" ? t.toJS() : t;
|
|
14206
14206
|
}
|
|
14207
|
-
function
|
|
14207
|
+
function Fb(t, e) {
|
|
14208
14208
|
!t || !Array.isArray(t.children) || t.children.forEach((r) => {
|
|
14209
14209
|
r && typeof r == "object" && Nc(
|
|
14210
14210
|
r,
|
|
@@ -14234,7 +14234,7 @@ function Nc(t, e) {
|
|
|
14234
14234
|
);
|
|
14235
14235
|
});
|
|
14236
14236
|
}
|
|
14237
|
-
const Cw = W + "/bahmnicore/diseaseSummaryData?",
|
|
14237
|
+
const Cw = W + "/bahmnicore/diseaseSummaryData?", qb = async (t, e, r, n) => {
|
|
14238
14238
|
const s = new URLSearchParams({
|
|
14239
14239
|
groupBy: n,
|
|
14240
14240
|
latestCount: e.toString(),
|
|
@@ -14245,7 +14245,7 @@ const Cw = W + "/bahmnicore/diseaseSummaryData?", Fb = async (t, e, r, n) => {
|
|
|
14245
14245
|
});
|
|
14246
14246
|
const o = Cw + s.toString();
|
|
14247
14247
|
return V(o);
|
|
14248
|
-
}, Vs = "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)", xw = `${W}/program`, Lw = (t) => `${W}/bahmniprogramenrollment?patient=${t}&v=${Vs}`, kw = (t, e = 15, r = 0) => `${W}/bahmniprogramenrollment?patient=${t}&v=${Vs}&limit=${e}&startIndex=${r}&totalCount=true`, Ic = (t) => `${W}/bahmniprogramenrollment/${t}`, Mw = (t) => `${Ic(t)}?v=${Vs}`,
|
|
14248
|
+
}, Vs = "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)", xw = `${W}/program`, Lw = (t) => `${W}/bahmniprogramenrollment?patient=${t}&v=${Vs}`, kw = (t, e = 15, r = 0) => `${W}/bahmniprogramenrollment?patient=${t}&v=${Vs}&limit=${e}&startIndex=${r}&totalCount=true`, Ic = (t) => `${W}/bahmniprogramenrollment/${t}`, Mw = (t) => `${Ic(t)}?v=${Vs}`, jb = async (t) => await V(Lw(t)), Vb = async (t, e = 15, r = 1) => {
|
|
14249
14249
|
const n = (r - 1) * e, s = await V(
|
|
14250
14250
|
kw(t, e, n)
|
|
14251
14251
|
);
|
|
@@ -14253,7 +14253,7 @@ const Cw = W + "/bahmnicore/diseaseSummaryData?", Fb = async (t, e, r, n) => {
|
|
|
14253
14253
|
programs: s.results,
|
|
14254
14254
|
total: s.totalCount
|
|
14255
14255
|
};
|
|
14256
|
-
},
|
|
14256
|
+
}, Hb = async (t) => await V(Mw(t)), Bb = async (t, e) => {
|
|
14257
14257
|
const r = {
|
|
14258
14258
|
uuid: t,
|
|
14259
14259
|
states: [
|
|
@@ -14262,12 +14262,12 @@ const Cw = W + "/bahmnicore/diseaseSummaryData?", Fb = async (t, e, r, n) => {
|
|
|
14262
14262
|
}
|
|
14263
14263
|
]
|
|
14264
14264
|
};
|
|
14265
|
-
return await
|
|
14265
|
+
return await we(
|
|
14266
14266
|
Ic(t),
|
|
14267
14267
|
r
|
|
14268
14268
|
);
|
|
14269
14269
|
};
|
|
14270
|
-
function
|
|
14270
|
+
function zb(t) {
|
|
14271
14271
|
if (t.states.length === 0)
|
|
14272
14272
|
return null;
|
|
14273
14273
|
let e;
|
|
@@ -14283,7 +14283,7 @@ function Bb(t) {
|
|
|
14283
14283
|
e = t.states.find((r) => r.endDate === null);
|
|
14284
14284
|
return e ? Mm(e.state.concept.names) ?? e.state.concept.display : null;
|
|
14285
14285
|
}
|
|
14286
|
-
function
|
|
14286
|
+
function Yb(t, e) {
|
|
14287
14287
|
if (e.length === 0)
|
|
14288
14288
|
return {};
|
|
14289
14289
|
const r = {};
|
|
@@ -14295,16 +14295,16 @@ function zb(t, e) {
|
|
|
14295
14295
|
}
|
|
14296
14296
|
return r;
|
|
14297
14297
|
}
|
|
14298
|
-
const
|
|
14298
|
+
const Gb = async () => (await V(xw)).results, us = "consultation:saved", Kb = (t) => {
|
|
14299
14299
|
const e = new CustomEvent(us, {
|
|
14300
14300
|
detail: t
|
|
14301
14301
|
});
|
|
14302
14302
|
window.dispatchEvent(e);
|
|
14303
|
-
},
|
|
14303
|
+
}, Wb = (t, e = []) => {
|
|
14304
14304
|
const r = qt(t);
|
|
14305
|
-
|
|
14305
|
+
ot(() => {
|
|
14306
14306
|
r.current = t;
|
|
14307
|
-
}, [t]),
|
|
14307
|
+
}, [t]), ot(() => {
|
|
14308
14308
|
const n = (s) => {
|
|
14309
14309
|
const o = s;
|
|
14310
14310
|
r.current(o.detail);
|
|
@@ -14313,21 +14313,21 @@ const Yb = async () => (await V(xw)).results, us = "consultation:saved", Gb = (t
|
|
|
14313
14313
|
window.removeEventListener(us, n);
|
|
14314
14314
|
};
|
|
14315
14315
|
}, e);
|
|
14316
|
-
}, ls = "cdss:check", ds = "cdss:results",
|
|
14316
|
+
}, ls = "cdss:check", ds = "cdss:results", Jb = (t) => {
|
|
14317
14317
|
const e = new CustomEvent(ls, {
|
|
14318
14318
|
detail: t
|
|
14319
14319
|
});
|
|
14320
14320
|
globalThis.dispatchEvent(e);
|
|
14321
|
-
},
|
|
14321
|
+
}, Qb = (t) => {
|
|
14322
14322
|
const e = new CustomEvent(ds, {
|
|
14323
14323
|
detail: t
|
|
14324
14324
|
});
|
|
14325
14325
|
globalThis.dispatchEvent(e);
|
|
14326
|
-
},
|
|
14326
|
+
}, Xb = (t) => {
|
|
14327
14327
|
const e = qt(t);
|
|
14328
|
-
|
|
14328
|
+
ot(() => {
|
|
14329
14329
|
e.current = t;
|
|
14330
|
-
}, [t]),
|
|
14330
|
+
}, [t]), ot(() => {
|
|
14331
14331
|
const r = (n) => {
|
|
14332
14332
|
const s = n;
|
|
14333
14333
|
e.current(s.detail);
|
|
@@ -14336,11 +14336,11 @@ const Yb = async () => (await V(xw)).results, us = "consultation:saved", Gb = (t
|
|
|
14336
14336
|
globalThis.removeEventListener(ls, r);
|
|
14337
14337
|
};
|
|
14338
14338
|
}, []);
|
|
14339
|
-
},
|
|
14339
|
+
}, Zb = (t) => {
|
|
14340
14340
|
const e = qt(t);
|
|
14341
|
-
|
|
14341
|
+
ot(() => {
|
|
14342
14342
|
e.current = t;
|
|
14343
|
-
}, [t]),
|
|
14343
|
+
}, [t]), ot(() => {
|
|
14344
14344
|
const r = (n) => {
|
|
14345
14345
|
const s = n;
|
|
14346
14346
|
e.current(s.detail);
|
|
@@ -14349,17 +14349,17 @@ const Yb = async () => (await V(xw)).results, us = "consultation:saved", Gb = (t
|
|
|
14349
14349
|
globalThis.removeEventListener(ds, r);
|
|
14350
14350
|
};
|
|
14351
14351
|
}, []);
|
|
14352
|
-
}, Uw =
|
|
14353
|
-
const s = `${
|
|
14352
|
+
}, Uw = "bahmni.documentUpload.maxFileSizeInMB", Fw = `${W}/systemsetting?q=${Uw}&v=custom:(property,value)`, Dc = (t, e, r = 100, n = 0) => {
|
|
14353
|
+
const s = `${se}/DocumentReference?patient=${t}&_sort=-_lastUpdated&_count=${r}&_getpagesoffset=${n}`;
|
|
14354
14354
|
return e && e.length > 0 ? `${s}&encounter=${encodeURIComponent(e.join(","))}` : s;
|
|
14355
14355
|
};
|
|
14356
|
-
async function
|
|
14356
|
+
async function ev() {
|
|
14357
14357
|
const t = await V(
|
|
14358
|
-
|
|
14358
|
+
Fw
|
|
14359
14359
|
), e = Number(t.results?.[0]?.value);
|
|
14360
14360
|
return Number.isFinite(e) && e > 0 ? e : void 0;
|
|
14361
14361
|
}
|
|
14362
|
-
async function
|
|
14362
|
+
async function tv(t) {
|
|
14363
14363
|
return ((await km(t, "custom:(setMembers:(uuid,display))"))?.setMembers ?? []).map((n) => ({
|
|
14364
14364
|
id: n.uuid,
|
|
14365
14365
|
label: n.display ?? ""
|
|
@@ -14382,17 +14382,17 @@ function $c(t) {
|
|
|
14382
14382
|
};
|
|
14383
14383
|
});
|
|
14384
14384
|
}
|
|
14385
|
-
async function
|
|
14385
|
+
async function qw(t, e) {
|
|
14386
14386
|
const r = Dc(t, e);
|
|
14387
14387
|
return V(r);
|
|
14388
14388
|
}
|
|
14389
|
-
async function
|
|
14390
|
-
const n = ((await
|
|
14389
|
+
async function rv(t, e) {
|
|
14390
|
+
const n = ((await qw(t, e)).entry ?? []).filter(
|
|
14391
14391
|
(s) => !!s.resource
|
|
14392
14392
|
);
|
|
14393
14393
|
return $c(n);
|
|
14394
14394
|
}
|
|
14395
|
-
async function
|
|
14395
|
+
async function nv(t, e, r = 10, n = 1) {
|
|
14396
14396
|
const s = (n - 1) * r, o = Dc(
|
|
14397
14397
|
t,
|
|
14398
14398
|
e,
|
|
@@ -14406,31 +14406,31 @@ async function rv(t, e, r = 10, n = 1) {
|
|
|
14406
14406
|
total: a.total ?? i.length
|
|
14407
14407
|
};
|
|
14408
14408
|
}
|
|
14409
|
-
function
|
|
14410
|
-
const
|
|
14409
|
+
function jw(t, e, r) {
|
|
14410
|
+
const n = {
|
|
14411
14411
|
resourceType: "DocumentReference",
|
|
14412
14412
|
status: "current",
|
|
14413
14413
|
docStatus: "final",
|
|
14414
|
-
subject: { reference: `Patient/${t
|
|
14414
|
+
subject: { reference: `Patient/${t}` },
|
|
14415
14415
|
content: [
|
|
14416
14416
|
{
|
|
14417
14417
|
attachment: {
|
|
14418
|
-
contentType:
|
|
14419
|
-
url:
|
|
14420
|
-
title:
|
|
14418
|
+
contentType: e.contentType,
|
|
14419
|
+
url: e.url,
|
|
14420
|
+
title: e.title
|
|
14421
14421
|
}
|
|
14422
14422
|
}
|
|
14423
14423
|
],
|
|
14424
|
-
context: { encounter: [{ reference:
|
|
14424
|
+
context: { encounter: [{ reference: r }] }
|
|
14425
14425
|
};
|
|
14426
|
-
return
|
|
14427
|
-
coding: [{ code:
|
|
14428
|
-
}),
|
|
14426
|
+
return e.typeCode && (n.type = {
|
|
14427
|
+
coding: [{ code: e.typeCode, display: e.typeDisplay }]
|
|
14428
|
+
}), e.description && (n.description = e.description), e.authorPractitionerUuid && (n.author = [
|
|
14429
14429
|
{
|
|
14430
|
-
reference: `Practitioner/${
|
|
14430
|
+
reference: `Practitioner/${e.authorPractitionerUuid}`,
|
|
14431
14431
|
type: "Practitioner"
|
|
14432
14432
|
}
|
|
14433
|
-
]),
|
|
14433
|
+
]), n;
|
|
14434
14434
|
}
|
|
14435
14435
|
const si = (t) => {
|
|
14436
14436
|
if (!t)
|
|
@@ -14498,58 +14498,77 @@ function Hw({
|
|
|
14498
14498
|
}
|
|
14499
14499
|
]), i;
|
|
14500
14500
|
}
|
|
14501
|
-
async function
|
|
14502
|
-
|
|
14501
|
+
async function sv({
|
|
14502
|
+
patientUuid: t,
|
|
14503
|
+
target: e,
|
|
14504
|
+
documents: r
|
|
14505
|
+
}) {
|
|
14506
|
+
if (r.length === 0)
|
|
14507
|
+
return [];
|
|
14508
|
+
const n = "encounterUuid" in e ? Bw(t, e, r) : zw(
|
|
14503
14509
|
t,
|
|
14504
|
-
|
|
14510
|
+
e.createEncounterInVisit,
|
|
14511
|
+
r
|
|
14505
14512
|
);
|
|
14506
|
-
return
|
|
14513
|
+
return we(as, os(n));
|
|
14507
14514
|
}
|
|
14508
|
-
|
|
14509
|
-
|
|
14510
|
-
|
|
14511
|
-
|
|
14512
|
-
|
|
14513
|
-
|
|
14514
|
-
|
|
14515
|
-
|
|
14516
|
-
"saveDocument requires either encounterUuid or createEncounterInVisit"
|
|
14517
|
-
);
|
|
14518
|
-
const { visitUuid: e, encounterTypeUuid: r, encounterTypeDisplay: n, visitPeriod: s } = t.createEncounterInVisit, o = `urn:uuid:${Xr()}`, a = Hw({
|
|
14519
|
-
patientUuid: t.patientUuid,
|
|
14520
|
-
visitUuid: e,
|
|
14521
|
-
encounterTypeUuid: r,
|
|
14522
|
-
locationUuid: Rt().uuid,
|
|
14523
|
-
encounterTypeDisplay: n,
|
|
14524
|
-
authorPractitionerUuid: t.authorPractitionerUuid,
|
|
14525
|
-
visitPeriod: s
|
|
14526
|
-
}), i = Cc(t, o), c = os([
|
|
14527
|
-
yt(o, a, "POST"),
|
|
14528
|
-
yt(`urn:uuid:${Xr()}`, i, "POST")
|
|
14529
|
-
]);
|
|
14530
|
-
return ge(as, c);
|
|
14515
|
+
function Cc(t, e, r) {
|
|
14516
|
+
return e.map(
|
|
14517
|
+
(n) => nt(
|
|
14518
|
+
`urn:uuid:${un()}`,
|
|
14519
|
+
jw(t, n, r),
|
|
14520
|
+
"POST"
|
|
14521
|
+
)
|
|
14522
|
+
);
|
|
14531
14523
|
}
|
|
14532
|
-
|
|
14533
|
-
|
|
14534
|
-
return
|
|
14524
|
+
function Bw(t, e, r) {
|
|
14525
|
+
const n = `Encounter/${e.encounterUuid}`;
|
|
14526
|
+
return [
|
|
14527
|
+
nt(
|
|
14528
|
+
n,
|
|
14529
|
+
{ ...e.existingEncounter, id: e.encounterUuid },
|
|
14530
|
+
"PUT",
|
|
14531
|
+
n
|
|
14532
|
+
),
|
|
14533
|
+
...Cc(t, r, n)
|
|
14534
|
+
];
|
|
14535
|
+
}
|
|
14536
|
+
function zw(t, e, r) {
|
|
14537
|
+
const { visitUuid: n, encounterTypeUuid: s, encounterTypeDisplay: o, visitPeriod: a } = e, i = `urn:uuid:${un()}`, c = Hw({
|
|
14538
|
+
patientUuid: t,
|
|
14539
|
+
visitUuid: n,
|
|
14540
|
+
encounterTypeUuid: s,
|
|
14541
|
+
locationUuid: Rt().uuid,
|
|
14542
|
+
encounterTypeDisplay: o,
|
|
14543
|
+
authorPractitionerUuid: r[0]?.authorPractitionerUuid,
|
|
14544
|
+
visitPeriod: a
|
|
14545
|
+
});
|
|
14546
|
+
return [
|
|
14547
|
+
nt(i, c, "POST"),
|
|
14548
|
+
...Cc(t, r, i)
|
|
14549
|
+
];
|
|
14535
14550
|
}
|
|
14551
|
+
const Yw = (t) => `${W}/location?operator=ALL&s=byTags&tags=${encodeURIComponent(t)}&v=custom:(uuid,display,childLocations:(uuid,display,retired))`, Gw = (t) => `${se}/Location?_tag=${encodeURIComponent(t)}`;
|
|
14536
14552
|
async function ov(t) {
|
|
14537
|
-
return await V(Yw(t));
|
|
14553
|
+
return (await V(Yw(t))).results ?? [];
|
|
14554
|
+
}
|
|
14555
|
+
async function av(t) {
|
|
14556
|
+
return await V(Gw(t));
|
|
14538
14557
|
}
|
|
14539
|
-
const
|
|
14540
|
-
let r = `${
|
|
14558
|
+
const Kw = se + "/Immunization", Ww = (t, e) => {
|
|
14559
|
+
let r = `${Kw}?patient=${t}&_sort=-date&_count=100`;
|
|
14541
14560
|
return e && (r += `&status=${e}`), r;
|
|
14542
14561
|
};
|
|
14543
|
-
async function
|
|
14544
|
-
return (await
|
|
14562
|
+
async function iv(t, e) {
|
|
14563
|
+
return (await Jw(t, e)).entry?.filter((n) => n.resource?.resourceType === "Immunization").map((n) => n.resource) ?? [];
|
|
14545
14564
|
}
|
|
14546
|
-
async function
|
|
14565
|
+
async function Jw(t, e) {
|
|
14547
14566
|
return V(
|
|
14548
|
-
|
|
14567
|
+
Ww(t, e)
|
|
14549
14568
|
);
|
|
14550
14569
|
}
|
|
14551
|
-
const
|
|
14552
|
-
async function
|
|
14570
|
+
const Qw = W + "/bahmnicore/visitDocument/uploadDocument", Xw = "application";
|
|
14571
|
+
async function Zw(t) {
|
|
14553
14572
|
return new Promise((e, r) => {
|
|
14554
14573
|
const n = new FileReader();
|
|
14555
14574
|
n.onload = () => {
|
|
@@ -14562,7 +14581,7 @@ async function Xw(t) {
|
|
|
14562
14581
|
let a = o, i = "";
|
|
14563
14582
|
const c = o.lastIndexOf(".");
|
|
14564
14583
|
c !== -1 && (a = o.substring(0, c), i = o.substring(c + 1).toLowerCase());
|
|
14565
|
-
const u = t.type ? t.type.split("/")[0] :
|
|
14584
|
+
const u = t.type ? t.type.split("/")[0] : Xw;
|
|
14566
14585
|
e({
|
|
14567
14586
|
content: s,
|
|
14568
14587
|
fileName: a,
|
|
@@ -14574,8 +14593,8 @@ async function Xw(t) {
|
|
|
14574
14593
|
}, n.readAsDataURL(t);
|
|
14575
14594
|
});
|
|
14576
14595
|
}
|
|
14577
|
-
async function
|
|
14578
|
-
const n = await
|
|
14596
|
+
async function cv(t, e, r) {
|
|
14597
|
+
const n = await Zw(t), s = {
|
|
14579
14598
|
content: n.content,
|
|
14580
14599
|
encounterTypeName: e,
|
|
14581
14600
|
fileName: n.fileName,
|
|
@@ -14583,29 +14602,29 @@ async function iv(t, e, r) {
|
|
|
14583
14602
|
format: n.format,
|
|
14584
14603
|
patientUuid: r
|
|
14585
14604
|
};
|
|
14586
|
-
return
|
|
14605
|
+
return we(Qw, s);
|
|
14587
14606
|
}
|
|
14588
|
-
const
|
|
14607
|
+
const eE = "/bahmni_config/openmrs/apps", xc = "org.bahmni.home.dashboard", tE = (t) => Array.isArray(t) ? t : Object.values(t), rE = async (t = "home") => {
|
|
14589
14608
|
try {
|
|
14590
|
-
const e = `${
|
|
14609
|
+
const e = `${eE}/${t}/v2/extension.json`, r = await fetch(e);
|
|
14591
14610
|
if (!r.ok)
|
|
14592
14611
|
throw new Error(`Failed to load base extensions: ${r.status}`);
|
|
14593
|
-
return
|
|
14612
|
+
return tE(await r.json());
|
|
14594
14613
|
} catch (e) {
|
|
14595
14614
|
throw console.error("Error fetching module extensions:", e), e;
|
|
14596
14615
|
}
|
|
14597
|
-
},
|
|
14616
|
+
}, nE = (t, e = xc, r = "link") => t.filter((n) => {
|
|
14598
14617
|
const s = n.extensionPointId === e, o = r === "all" || n.type === r;
|
|
14599
14618
|
return s && o;
|
|
14600
|
-
}),
|
|
14619
|
+
}), sE = (t, e) => e === void 0 ? t : t.filter((r) => r.requiredPrivilege ? e.includes(r.requiredPrivilege) : !0), oE = (t) => {
|
|
14601
14620
|
const e = navigator.onLine;
|
|
14602
14621
|
return t.filter((r) => !(r.exclusiveOnlineModule && !e || r.exclusiveOfflineModule && e));
|
|
14603
|
-
},
|
|
14604
|
-
const
|
|
14605
|
-
return
|
|
14606
|
-
},
|
|
14607
|
-
|
|
14608
|
-
),
|
|
14622
|
+
}, aE = (t) => [...t].sort((e, r) => (e.order ?? 0) - (r.order ?? 0)), uv = async (t = xc, e, r = "home") => {
|
|
14623
|
+
const n = await rE(r), s = nE(n, t), o = sE(s, e), a = oE(o);
|
|
14624
|
+
return aE(a);
|
|
14625
|
+
}, iE = (t, e) => W + `/availableStocks?productUuid=${t}&locationUuid=${e}`, lv = async (t, e) => await V(
|
|
14626
|
+
iE(t, e)
|
|
14627
|
+
), cE = (t, e, r) => {
|
|
14609
14628
|
const n = t.find((o) => o.server === e);
|
|
14610
14629
|
if (!n)
|
|
14611
14630
|
throw new Error(`CDSS server "${e}" not found in configuration`);
|
|
@@ -14617,7 +14636,7 @@ const Zw = "/bahmni_config/openmrs/apps", xc = "org.bahmni.home.dashboard", eE =
|
|
|
14617
14636
|
`CDSS service "${r}" not found in server "${e}"`
|
|
14618
14637
|
);
|
|
14619
14638
|
return { serverConfig: n, serviceConfig: s };
|
|
14620
|
-
},
|
|
14639
|
+
}, uE = (t, e) => {
|
|
14621
14640
|
if (!e || e.length === 0)
|
|
14622
14641
|
return {};
|
|
14623
14642
|
const r = {};
|
|
@@ -14631,13 +14650,13 @@ const Zw = "/bahmni_config/openmrs/apps", xc = "org.bahmni.home.dashboard", eE =
|
|
|
14631
14650
|
entry: s
|
|
14632
14651
|
});
|
|
14633
14652
|
}), r;
|
|
14634
|
-
},
|
|
14635
|
-
const s =
|
|
14653
|
+
}, dv = async (t, e, r, n) => {
|
|
14654
|
+
const s = cE(t, e.server, e.service), { serverConfig: o, serviceConfig: a } = s, i = uE(
|
|
14636
14655
|
n,
|
|
14637
14656
|
a.contextResourceMap
|
|
14638
14657
|
), c = `${o.url}/${a.name}`, u = {
|
|
14639
14658
|
hook: a.name,
|
|
14640
|
-
hookInstance:
|
|
14659
|
+
hookInstance: un(),
|
|
14641
14660
|
context: {
|
|
14642
14661
|
...i,
|
|
14643
14662
|
patientId: r.patientId,
|
|
@@ -14645,11 +14664,11 @@ const Zw = "/bahmni_config/openmrs/apps", xc = "org.bahmni.home.dashboard", eE =
|
|
|
14645
14664
|
...r.episodeId && { episodeId: r.episodeId }
|
|
14646
14665
|
}
|
|
14647
14666
|
};
|
|
14648
|
-
return a.prefetch && (u.prefetch = a.prefetch), (await
|
|
14667
|
+
return a.prefetch && (u.prefetch = a.prefetch), (await we(
|
|
14649
14668
|
c,
|
|
14650
14669
|
u
|
|
14651
14670
|
)).cards || [];
|
|
14652
|
-
},
|
|
14671
|
+
}, fv = (t, e) => {
|
|
14653
14672
|
const r = [];
|
|
14654
14673
|
return t.forEach((n) => {
|
|
14655
14674
|
!n.suggestions || n.suggestions.length === 0 || n.suggestions.forEach((s) => {
|
|
@@ -14666,53 +14685,53 @@ const Zw = "/bahmni_config/openmrs/apps", xc = "org.bahmni.home.dashboard", eE =
|
|
|
14666
14685
|
});
|
|
14667
14686
|
}), r;
|
|
14668
14687
|
};
|
|
14669
|
-
async function
|
|
14688
|
+
async function hv() {
|
|
14670
14689
|
return V(`${bs}/templates`);
|
|
14671
14690
|
}
|
|
14672
|
-
async function
|
|
14673
|
-
return (await
|
|
14691
|
+
async function pv(t) {
|
|
14692
|
+
return (await we(
|
|
14674
14693
|
`${bs}/render`,
|
|
14675
14694
|
t
|
|
14676
14695
|
)).html;
|
|
14677
14696
|
}
|
|
14678
|
-
const
|
|
14679
|
-
let s =
|
|
14697
|
+
const lE = (t, e, r) => {
|
|
14698
|
+
let s = se + "/Task?_sort=-_lastUpdated";
|
|
14680
14699
|
return t && (s += `&subject=${t}`), e && (s += `&based-on=${e}`), r && r.length > 0 && (s += `&encounter=${r.join(",")}`), s;
|
|
14681
14700
|
};
|
|
14682
|
-
async function
|
|
14701
|
+
async function mv(t, e, r) {
|
|
14683
14702
|
return V(
|
|
14684
|
-
|
|
14703
|
+
lE(t, e, r)
|
|
14685
14704
|
);
|
|
14686
14705
|
}
|
|
14687
|
-
const
|
|
14706
|
+
const gv = (t) => {
|
|
14688
14707
|
const e = /* @__PURE__ */ new Map();
|
|
14689
14708
|
for (const r of t) {
|
|
14690
14709
|
const n = e.get(r.extensionPointId) ?? [];
|
|
14691
14710
|
n.push(r), e.set(r.extensionPointId, n);
|
|
14692
14711
|
}
|
|
14693
14712
|
return e;
|
|
14694
|
-
},
|
|
14713
|
+
}, yv = (t, e) => t.filter(
|
|
14695
14714
|
(r) => !r.requiredPrivileges || r.requiredPrivileges.length === 0 || Pw(e, r.requiredPrivileges)
|
|
14696
14715
|
);
|
|
14697
14716
|
export {
|
|
14698
|
-
|
|
14699
|
-
|
|
14717
|
+
X0 as APPOINTMENT_IDENTIFIER_SYSTEM,
|
|
14718
|
+
Q0 as APPOINTMENT_STATUSES,
|
|
14700
14719
|
rs as AUDIT_LOG_EVENT_DETAILS,
|
|
14701
14720
|
Ym as AllergySeverity,
|
|
14702
14721
|
zm as AllergyStatus,
|
|
14703
14722
|
Nf as AttributeFormat,
|
|
14704
14723
|
If as AttributeInputType,
|
|
14705
14724
|
ed as BAHMNI_APP_BASE_PATH,
|
|
14706
|
-
|
|
14725
|
+
CE as BAHMNI_HOME_PATH,
|
|
14707
14726
|
Ci as BAHMNI_USER_LOCATION_COOKIE,
|
|
14708
14727
|
Hd as BIRTH_TIME_EXT_URL,
|
|
14709
14728
|
ls as CDSS_CHECK_EVENT,
|
|
14710
14729
|
ds as CDSS_RESULTS_EVENT,
|
|
14711
|
-
|
|
14712
|
-
|
|
14730
|
+
zE as CONCEPT_DATATYPE_COMPLEX,
|
|
14731
|
+
BE as CONCEPT_DATATYPE_NUMERIC,
|
|
14713
14732
|
us as CONSULTATION_SAVED_EVENT,
|
|
14714
|
-
|
|
14715
|
-
|
|
14733
|
+
WE as DATETIME_REGEX_PATTERN,
|
|
14734
|
+
KE as DATE_REGEX_PATTERN,
|
|
14716
14735
|
lc as DEFAULT_DATE_FORMAT,
|
|
14717
14736
|
_m as DEFAULT_DATE_FORMAT_STORAGE_KEY,
|
|
14718
14737
|
bm as DEFAULT_TIME_FORMAT,
|
|
@@ -14721,257 +14740,256 @@ export {
|
|
|
14721
14740
|
Ss as FHIR_ENCOUNTER_CLASS_CODE_SYSTEM,
|
|
14722
14741
|
Rs as FHIR_ENCOUNTER_TAG_SYSTEM,
|
|
14723
14742
|
ji as FHIR_ENCOUNTER_TYPE_CODE_SYSTEM,
|
|
14724
|
-
|
|
14725
|
-
|
|
14726
|
-
|
|
14727
|
-
|
|
14728
|
-
|
|
14729
|
-
|
|
14730
|
-
|
|
14743
|
+
qE as FHIR_EXT_MEDICATION_REQUEST_NOTE_CATEGORY,
|
|
14744
|
+
FE as FHIR_LAB_ORDER_CONCEPT_TYPE_EXTENSION_URL,
|
|
14745
|
+
VE as FHIR_OBSERVATION_FORM_NAMESPACE_PATH_URL,
|
|
14746
|
+
jE as FHIR_OBSERVATION_INTERPRETATION_SYSTEM,
|
|
14747
|
+
YE as FHIR_OBSERVATION_STATUS_FINAL,
|
|
14748
|
+
HE as FHIR_OBSERVATION_VALUE_ATTACHMENT_URL,
|
|
14749
|
+
GE as FHIR_RESOURCE_TYPE_OBSERVATION,
|
|
14731
14750
|
zd as HL7_CONDITION_CATEGORY_CODE_SYSTEM,
|
|
14732
14751
|
Os as HL7_CONDITION_CATEGORY_CONDITION_CODE,
|
|
14733
14752
|
Vi as HL7_CONDITION_CATEGORY_DIAGNOSIS_CODE,
|
|
14734
14753
|
Bd as HL7_CONDITION_CLINICAL_STATUS_CODE_SYSTEM,
|
|
14735
|
-
|
|
14736
|
-
|
|
14737
|
-
|
|
14754
|
+
UE as HL7_CONDITION_VERIFICATION_STATUS_CODE_SYSTEM,
|
|
14755
|
+
JE as INTERPRETATION_TO_CODE,
|
|
14756
|
+
d_ as ISO_DATE_FORMAT,
|
|
14738
14757
|
Di as LOGIN_PATH,
|
|
14739
|
-
|
|
14740
|
-
|
|
14741
|
-
|
|
14742
|
-
|
|
14743
|
-
|
|
14758
|
+
wb as MATCH_REASON_MESSAGES,
|
|
14759
|
+
y0 as MAX_NAME_LENGTH,
|
|
14760
|
+
g0 as MAX_PATIENT_AGE_YEARS,
|
|
14761
|
+
w0 as MAX_PHONE_NUMBER_LENGTH,
|
|
14762
|
+
q_ as MEDICATIONS_INPUT_CONTROL_KEY,
|
|
14744
14763
|
et as MODULE_LABELS,
|
|
14745
14764
|
Be as MedicationStatus,
|
|
14746
|
-
|
|
14765
|
+
se as OPENMRS_FHIR_R4,
|
|
14747
14766
|
W as OPENMRS_REST_V1,
|
|
14748
|
-
|
|
14767
|
+
rb as ORDER_TYPE_QUERY_KEY,
|
|
14749
14768
|
Ii as PATIENT_NOT_FOUND_ERROR_KEY,
|
|
14750
|
-
|
|
14751
|
-
|
|
14752
|
-
|
|
14769
|
+
tb as PENDING_REPORT_STATUSES,
|
|
14770
|
+
eb as PROCESSED_REPORT_STATUSES,
|
|
14771
|
+
ub as USER_PINNED_PREFERENCE_URL,
|
|
14753
14772
|
Jm as buildEncounterResource,
|
|
14754
|
-
|
|
14755
|
-
|
|
14756
|
-
|
|
14773
|
+
h_ as calculateAge,
|
|
14774
|
+
E_ as calculateEndDate,
|
|
14775
|
+
m_ as calculateOnsetDate,
|
|
14757
14776
|
Hi as camelToScreamingSnakeCase,
|
|
14758
|
-
|
|
14759
|
-
|
|
14760
|
-
|
|
14761
|
-
|
|
14762
|
-
|
|
14763
|
-
|
|
14777
|
+
bb as canResumeOwnInSessionEncounter,
|
|
14778
|
+
ZE as capitalize,
|
|
14779
|
+
K0 as checkIfActiveVisitExists,
|
|
14780
|
+
n_ as checkInAppointment,
|
|
14781
|
+
f_ as computeAgeDetails,
|
|
14782
|
+
Ub as convertImmutableToPlainObject,
|
|
14764
14783
|
Rm as convertTo24HourFormat,
|
|
14765
|
-
|
|
14766
|
-
|
|
14767
|
-
|
|
14768
|
-
Bw as createDocumentReference,
|
|
14784
|
+
c0 as convertToSentenceCase,
|
|
14785
|
+
l_ as createAppointmentUnavailability,
|
|
14786
|
+
nt as createBundleEntry,
|
|
14769
14787
|
os as createEncounterBundle,
|
|
14770
14788
|
eg as createFhirEncounter,
|
|
14771
|
-
|
|
14772
|
-
|
|
14773
|
-
|
|
14774
|
-
|
|
14775
|
-
|
|
14789
|
+
P0 as createFhirPatient,
|
|
14790
|
+
O0 as createPatient,
|
|
14791
|
+
F0 as createRelatedPerson,
|
|
14792
|
+
W0 as createVisitForPatient,
|
|
14793
|
+
J0 as createVisitWithFhirR4,
|
|
14776
14794
|
vs as del,
|
|
14777
|
-
|
|
14795
|
+
a_ as deleteAppointmentService,
|
|
14778
14796
|
$o as deleteCookie,
|
|
14779
|
-
|
|
14797
|
+
q0 as deleteRelatedPerson,
|
|
14780
14798
|
Df as dispatchAuditEvent,
|
|
14781
|
-
|
|
14782
|
-
|
|
14783
|
-
|
|
14784
|
-
|
|
14785
|
-
|
|
14786
|
-
|
|
14787
|
-
|
|
14788
|
-
|
|
14789
|
-
|
|
14790
|
-
|
|
14791
|
-
|
|
14792
|
-
|
|
14793
|
-
|
|
14794
|
-
|
|
14795
|
-
|
|
14796
|
-
|
|
14797
|
-
|
|
14798
|
-
|
|
14799
|
-
|
|
14800
|
-
|
|
14801
|
-
|
|
14802
|
-
|
|
14803
|
-
|
|
14804
|
-
|
|
14805
|
-
|
|
14806
|
-
|
|
14807
|
-
|
|
14808
|
-
|
|
14809
|
-
|
|
14810
|
-
|
|
14811
|
-
|
|
14799
|
+
Jb as dispatchCDSSCheck,
|
|
14800
|
+
Qb as dispatchCDSSResults,
|
|
14801
|
+
Kb as dispatchConsultationSaved,
|
|
14802
|
+
__ as doDateRangesOverlap,
|
|
14803
|
+
Yb as extractAttributes,
|
|
14804
|
+
Fb as extractNotesFromFormData,
|
|
14805
|
+
gb as fetchAllProviders,
|
|
14806
|
+
O_ as fetchAndFormatAllergenConcepts,
|
|
14807
|
+
Db as fetchFormMetadata,
|
|
14808
|
+
$b as fetchFormUuidByObservationDate,
|
|
14809
|
+
V_ as fetchMedicationOrdersMetadata,
|
|
14810
|
+
rE as fetchModuleExtensions,
|
|
14811
|
+
Ib as fetchObservationForms,
|
|
14812
|
+
b0 as fetchPatientPhotoFromUrl,
|
|
14813
|
+
W_ as fetchQualityAssessment,
|
|
14814
|
+
A_ as fetchReactionConcepts,
|
|
14815
|
+
oE as filterByOnlineStatus,
|
|
14816
|
+
sE as filterByPrivilege,
|
|
14817
|
+
fv as filterCdsCardsForItems,
|
|
14818
|
+
yv as filterExtensionsByPrivileges,
|
|
14819
|
+
s0 as filterReplacementEntries,
|
|
14820
|
+
Eb as findActiveEncounterInSession,
|
|
14821
|
+
l0 as formatCountry,
|
|
14822
|
+
g_ as formatDateDistance,
|
|
14823
|
+
xb as formatDateForControl,
|
|
14824
|
+
p_ as formatDateTime,
|
|
14825
|
+
u0 as formatGender,
|
|
14826
|
+
o0 as formatUrl,
|
|
14827
|
+
XE as generateId,
|
|
14828
|
+
N0 as generateIdentifier,
|
|
14829
|
+
un as generateUUID,
|
|
14812
14830
|
V as get,
|
|
14813
14831
|
gn as getActiveVisit,
|
|
14814
|
-
|
|
14832
|
+
C_ as getActiveVisitAtLoginLocation,
|
|
14815
14833
|
jf as getActiveVisitByPatient,
|
|
14816
|
-
|
|
14817
|
-
|
|
14818
|
-
|
|
14834
|
+
$0 as getAddressHierarchyEntries,
|
|
14835
|
+
o_ as getAllAppointmentServices,
|
|
14836
|
+
Gb as getAllPrograms,
|
|
14819
14837
|
Hm as getAllergies,
|
|
14820
|
-
|
|
14821
|
-
|
|
14822
|
-
|
|
14823
|
-
|
|
14824
|
-
|
|
14825
|
-
|
|
14826
|
-
|
|
14827
|
-
|
|
14828
|
-
|
|
14838
|
+
s_ as getAppointmentById,
|
|
14839
|
+
u_ as getAppointmentUnavailabilities,
|
|
14840
|
+
h0 as getAvailableLocations,
|
|
14841
|
+
lv as getAvailableStocks,
|
|
14842
|
+
sb as getCategoryUuidFromOrderTypes,
|
|
14843
|
+
R_ as getConceptById,
|
|
14844
|
+
k_ as getConditionPage,
|
|
14845
|
+
L_ as getConditions,
|
|
14846
|
+
ib as getConfig,
|
|
14829
14847
|
As as getCookieByName,
|
|
14830
|
-
|
|
14831
|
-
|
|
14832
|
-
|
|
14833
|
-
|
|
14834
|
-
|
|
14835
|
-
|
|
14836
|
-
|
|
14837
|
-
|
|
14838
|
-
|
|
14839
|
-
|
|
14840
|
-
|
|
14841
|
-
|
|
14842
|
-
|
|
14848
|
+
mb as getCurrentProvider,
|
|
14849
|
+
zb as getCurrentStateName,
|
|
14850
|
+
d0 as getCurrentUser,
|
|
14851
|
+
Nb as getCurrentUserPrivileges,
|
|
14852
|
+
f0 as getDefaultDateFormat,
|
|
14853
|
+
F_ as getDiagnosesPage,
|
|
14854
|
+
X_ as getDiagnosticReportBundle,
|
|
14855
|
+
Q_ as getDiagnosticReports,
|
|
14856
|
+
nv as getDocumentReferencePage,
|
|
14857
|
+
qw as getDocumentReferences,
|
|
14858
|
+
tv as getDocumentTypes,
|
|
14859
|
+
ev as getDocumentUploadMaxSizeMb,
|
|
14860
|
+
D_ as getEncounterByUuid,
|
|
14843
14861
|
Rc as getEncounterSessionDuration,
|
|
14844
14862
|
vw as getEncounterSessionSnapshot,
|
|
14845
14863
|
Zm as getEncounterTypeByName,
|
|
14846
|
-
|
|
14847
|
-
|
|
14864
|
+
Ob as getEncountersAndVisitsForEOC,
|
|
14865
|
+
Ab as getEpisodeOfCare,
|
|
14848
14866
|
Ul as getErrorKind,
|
|
14849
|
-
|
|
14850
|
-
|
|
14851
|
-
|
|
14852
|
-
|
|
14853
|
-
|
|
14854
|
-
|
|
14855
|
-
|
|
14867
|
+
ab as getExistingServiceRequestsForAllCategories,
|
|
14868
|
+
nE as getExtensionsByPoint,
|
|
14869
|
+
av as getFHIRLocationsByTag,
|
|
14870
|
+
nb as getFlattenedInvestigations,
|
|
14871
|
+
w_ as getFormattedAge,
|
|
14872
|
+
P_ as getFormattedAllergies,
|
|
14873
|
+
rv as getFormattedDocumentReferences,
|
|
14856
14874
|
Gr as getFormattedError,
|
|
14857
|
-
|
|
14858
|
-
|
|
14859
|
-
|
|
14860
|
-
|
|
14861
|
-
|
|
14862
|
-
|
|
14863
|
-
|
|
14864
|
-
|
|
14865
|
-
|
|
14866
|
-
|
|
14875
|
+
_0 as getFormattedPatientById,
|
|
14876
|
+
D0 as getGenders,
|
|
14877
|
+
R0 as getIdentifierData,
|
|
14878
|
+
S0 as getIdentifierTypes,
|
|
14879
|
+
j0 as getInputTypeForFormat,
|
|
14880
|
+
J_ as getLabInvestigationsBundle,
|
|
14881
|
+
ov as getLocationByTag,
|
|
14882
|
+
z_ as getMedicationByUuid,
|
|
14883
|
+
hb as getObservationsBundleByEncounterUuid,
|
|
14884
|
+
ob as getOrderTypeNames,
|
|
14867
14885
|
Ls as getOrderTypes,
|
|
14868
|
-
|
|
14869
|
-
|
|
14870
|
-
|
|
14886
|
+
C0 as getOrderedAddressHierarchyLevels,
|
|
14887
|
+
t_ as getPastAppointments,
|
|
14888
|
+
c_ as getPastAppointmentsPage,
|
|
14871
14889
|
bf as getPatientById,
|
|
14872
|
-
|
|
14873
|
-
|
|
14874
|
-
|
|
14875
|
-
|
|
14876
|
-
|
|
14890
|
+
U_ as getPatientDiagnoses,
|
|
14891
|
+
I_ as getPatientEncounters,
|
|
14892
|
+
Cb as getPatientFormData,
|
|
14893
|
+
iv as getPatientImmunizations,
|
|
14894
|
+
db as getPatientLatestObservations,
|
|
14877
14895
|
Eg as getPatientMedicationBundle,
|
|
14878
|
-
|
|
14879
|
-
|
|
14896
|
+
j_ as getPatientMedications,
|
|
14897
|
+
fb as getPatientObservations,
|
|
14880
14898
|
pw as getPatientObservationsBundle,
|
|
14881
|
-
|
|
14882
|
-
|
|
14883
|
-
|
|
14884
|
-
|
|
14885
|
-
|
|
14886
|
-
|
|
14887
|
-
|
|
14888
|
-
|
|
14899
|
+
lb as getPatientObservationsWithEncounterBundle,
|
|
14900
|
+
x0 as getPatientProfile,
|
|
14901
|
+
jb as getPatientPrograms,
|
|
14902
|
+
Vb as getPatientProgramsPage,
|
|
14903
|
+
Y_ as getPatientRadiologyInvestigationBundle,
|
|
14904
|
+
G_ as getPatientRadiologyInvestigationBundleWithImagingStudy,
|
|
14905
|
+
K_ as getPatientRadiologyInvestigations,
|
|
14906
|
+
k0 as getPersonAttributeTypes,
|
|
14889
14907
|
Af as getPrimaryIdentifierType,
|
|
14890
|
-
|
|
14891
|
-
|
|
14892
|
-
|
|
14893
|
-
|
|
14894
|
-
|
|
14908
|
+
r0 as getPriorityByOrder,
|
|
14909
|
+
Hb as getProgramByUUID,
|
|
14910
|
+
yb as getProviderLoginLocations,
|
|
14911
|
+
U0 as getRelatedPersonsByPatient,
|
|
14912
|
+
L0 as getRelationshipTypes,
|
|
14895
14913
|
Qt as getServiceRequests,
|
|
14896
|
-
|
|
14897
|
-
|
|
14898
|
-
|
|
14899
|
-
|
|
14900
|
-
|
|
14901
|
-
|
|
14902
|
-
|
|
14914
|
+
mv as getTasks,
|
|
14915
|
+
M0 as getTelecomAttributeTypeMap,
|
|
14916
|
+
hv as getTemplates,
|
|
14917
|
+
v_ as getTimeInMinutes,
|
|
14918
|
+
y_ as getTodayDate,
|
|
14919
|
+
e_ as getUpcomingAppointments,
|
|
14920
|
+
i_ as getUpcomingAppointmentsPage,
|
|
14903
14921
|
Rt as getUserLoginLocation,
|
|
14904
|
-
|
|
14905
|
-
|
|
14906
|
-
|
|
14907
|
-
|
|
14922
|
+
cn as getUserPreferredLocale,
|
|
14923
|
+
B_ as getVaccinations,
|
|
14924
|
+
a0 as getValueType,
|
|
14925
|
+
uv as getVisibleModules,
|
|
14908
14926
|
Yi as getVisitLocationUUID,
|
|
14909
|
-
|
|
14927
|
+
G0 as getVisitTypes,
|
|
14910
14928
|
Xm as getVisits,
|
|
14911
|
-
|
|
14912
|
-
|
|
14913
|
-
|
|
14914
|
-
|
|
14929
|
+
qb as getVitalFlowSheetData,
|
|
14930
|
+
n0 as groupByDate,
|
|
14931
|
+
gv as groupExtensionsByPoint,
|
|
14932
|
+
pb as groupObservationsByEncounter,
|
|
14915
14933
|
Pw as hasPrivilege,
|
|
14916
|
-
|
|
14917
|
-
|
|
14918
|
-
|
|
14919
|
-
|
|
14920
|
-
|
|
14921
|
-
|
|
14922
|
-
|
|
14923
|
-
|
|
14924
|
-
|
|
14934
|
+
kE as initAppI18n,
|
|
14935
|
+
Pb as initializeAuditListener,
|
|
14936
|
+
dv as invokeCDSSRule,
|
|
14937
|
+
V0 as isBooleanFormat,
|
|
14938
|
+
H0 as isConceptFormat,
|
|
14939
|
+
z0 as isDateFormat,
|
|
14940
|
+
B0 as isNumberFormat,
|
|
14941
|
+
t0 as isStringEmpty,
|
|
14942
|
+
Y0 as isTextFormat,
|
|
14925
14943
|
Aw as logAuditEvent,
|
|
14926
14944
|
ow as logout,
|
|
14927
|
-
|
|
14928
|
-
|
|
14929
|
-
|
|
14930
|
-
|
|
14931
|
-
|
|
14945
|
+
N_ as mapAllergyToInputEntry,
|
|
14946
|
+
E0 as mapGenderFromFhir,
|
|
14947
|
+
M_ as markConditionAsInactive,
|
|
14948
|
+
LE as normalizeTranslationKey,
|
|
14949
|
+
T_ as notificationService,
|
|
14932
14950
|
Yd as parseQueryParams,
|
|
14933
|
-
|
|
14934
|
-
|
|
14951
|
+
xE as patch,
|
|
14952
|
+
we as post,
|
|
14935
14953
|
xi as put,
|
|
14936
|
-
|
|
14937
|
-
|
|
14938
|
-
|
|
14939
|
-
|
|
14940
|
-
|
|
14941
|
-
|
|
14942
|
-
|
|
14943
|
-
|
|
14954
|
+
QE as refreshQueries,
|
|
14955
|
+
pv as renderAsHtml,
|
|
14956
|
+
Sb as resetEncounterSession,
|
|
14957
|
+
i0 as resolveComboBoxItems,
|
|
14958
|
+
_b as resolveEncounterMatchDecision,
|
|
14959
|
+
sv as saveDocuments,
|
|
14960
|
+
p0 as saveUserLocation,
|
|
14961
|
+
Z0 as searchAppointmentsByAttribute,
|
|
14944
14962
|
km as searchConceptByName,
|
|
14945
|
-
|
|
14963
|
+
S_ as searchConcepts,
|
|
14946
14964
|
is as searchEncounters,
|
|
14947
14965
|
Vr as searchFHIRConcepts,
|
|
14948
14966
|
Lm as searchFHIRConceptsByName,
|
|
14949
|
-
|
|
14950
|
-
|
|
14951
|
-
|
|
14952
|
-
|
|
14953
|
-
|
|
14954
|
-
|
|
14955
|
-
|
|
14956
|
-
|
|
14957
|
-
|
|
14967
|
+
H_ as searchMedications,
|
|
14968
|
+
T0 as searchPatientByCustomAttribute,
|
|
14969
|
+
v0 as searchPatientByNameOrId,
|
|
14970
|
+
e0 as setCookie,
|
|
14971
|
+
vb as setEncounterSessionDecision,
|
|
14972
|
+
Tb as setEncounterSessionLoading,
|
|
14973
|
+
x_ as shouldEnableEncounterFilter,
|
|
14974
|
+
b_ as sortByDate,
|
|
14975
|
+
aE as sortByOrder,
|
|
14958
14976
|
bw as subscribeEncounterSession,
|
|
14959
|
-
|
|
14960
|
-
|
|
14961
|
-
|
|
14962
|
-
|
|
14963
|
-
|
|
14964
|
-
|
|
14965
|
-
|
|
14966
|
-
|
|
14967
|
-
|
|
14968
|
-
|
|
14969
|
-
|
|
14970
|
-
|
|
14971
|
-
|
|
14972
|
-
|
|
14973
|
-
|
|
14974
|
-
|
|
14975
|
-
|
|
14976
|
-
|
|
14977
|
+
Mb as transformContainerObservationsToForm2Observations,
|
|
14978
|
+
Lb as transformFormDataToObservations,
|
|
14979
|
+
kb as transformObservationsToFormData,
|
|
14980
|
+
r_ as updateAppointmentStatus,
|
|
14981
|
+
Z_ as updateDiagnosticReportBundle,
|
|
14982
|
+
$_ as updateFhirEncounter,
|
|
14983
|
+
I0 as updateFhirPatient,
|
|
14984
|
+
A0 as updatePatient,
|
|
14985
|
+
Bb as updateProgramState,
|
|
14986
|
+
m0 as updateSessionLocation,
|
|
14987
|
+
cv as uploadDocument,
|
|
14988
|
+
Xb as useCDSSCheckListener,
|
|
14989
|
+
Zb as useCDSSResultsListener,
|
|
14990
|
+
ME as useCamera,
|
|
14991
|
+
Rb as useEncounterSessionStore,
|
|
14992
|
+
Wb as useSubscribeConsultationSaved,
|
|
14993
|
+
_v as useTranslation,
|
|
14994
|
+
cb as validateSessionUser
|
|
14977
14995
|
};
|