@bahmni/services 0.0.1-dev.220 → 0.0.1-dev.221
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/index.js
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { initReactI18next as vi } from "react-i18next";
|
|
2
|
-
import { useTranslation as
|
|
2
|
+
import { useTranslation as Xv } from "react-i18next";
|
|
3
3
|
import { useRef as bn, useCallback as Wr, useEffect as _n } from "react";
|
|
4
4
|
function aa(e, t) {
|
|
5
5
|
return function() {
|
|
6
6
|
return e.apply(t, arguments);
|
|
7
7
|
};
|
|
8
8
|
}
|
|
9
|
-
const { toString: wi } = Object.prototype, { getPrototypeOf:
|
|
9
|
+
const { toString: wi } = Object.prototype, { getPrototypeOf: Dn } = Object, { iterator: Dr, toStringTag: ia } = Symbol, Cr = /* @__PURE__ */ ((e) => (t) => {
|
|
10
10
|
const r = wi.call(t);
|
|
11
11
|
return e[r] || (e[r] = r.slice(8, -1).toLowerCase());
|
|
12
|
-
})(/* @__PURE__ */ Object.create(null)), $e = (e) => (e = e.toLowerCase(), (t) =>
|
|
12
|
+
})(/* @__PURE__ */ Object.create(null)), $e = (e) => (e = e.toLowerCase(), (t) => Cr(t) === e), Lr = (e) => (t) => typeof t === e, { isArray: ct } = Array, ot = Lr("undefined");
|
|
13
13
|
function Rt(e) {
|
|
14
14
|
return e !== null && !ot(e) && e.constructor !== null && !ot(e.constructor) && Ee(e.constructor.isBuffer) && e.constructor.isBuffer(e);
|
|
15
15
|
}
|
|
@@ -19,10 +19,10 @@ function Ei(e) {
|
|
|
19
19
|
return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? t = ArrayBuffer.isView(e) : t = e && e.buffer && ca(e.buffer), t;
|
|
20
20
|
}
|
|
21
21
|
const bi = Lr("string"), Ee = Lr("function"), ua = Lr("number"), Tt = (e) => e !== null && typeof e == "object", _i = (e) => e === !0 || e === !1, vr = (e) => {
|
|
22
|
-
if (
|
|
22
|
+
if (Cr(e) !== "object")
|
|
23
23
|
return !1;
|
|
24
|
-
const t =
|
|
25
|
-
return (t === null || t === Object.prototype || Object.getPrototypeOf(t) === null) && !(ia in e) && !(
|
|
24
|
+
const t = Dn(e);
|
|
25
|
+
return (t === null || t === Object.prototype || Object.getPrototypeOf(t) === null) && !(ia in e) && !(Dr in e);
|
|
26
26
|
}, Si = (e) => {
|
|
27
27
|
if (!Tt(e) || Rt(e))
|
|
28
28
|
return !1;
|
|
@@ -35,11 +35,11 @@ const bi = Lr("string"), Ee = Lr("function"), ua = Lr("number"), Tt = (e) => e !
|
|
|
35
35
|
function Ii() {
|
|
36
36
|
return typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : typeof global < "u" ? global : {};
|
|
37
37
|
}
|
|
38
|
-
const Xn = Ii(), Zn = typeof Xn.FormData < "u" ? Xn.FormData : void 0,
|
|
38
|
+
const Xn = Ii(), Zn = typeof Xn.FormData < "u" ? Xn.FormData : void 0, Di = (e) => {
|
|
39
39
|
let t;
|
|
40
|
-
return e && (Zn && e instanceof Zn || Ee(e.append) && ((t =
|
|
40
|
+
return e && (Zn && e instanceof Zn || Ee(e.append) && ((t = Cr(e)) === "formdata" || // detect form-data instance
|
|
41
41
|
t === "object" && Ee(e.toString) && e.toString() === "[object FormData]"));
|
|
42
|
-
},
|
|
42
|
+
}, Ci = $e("URLSearchParams"), [Li, ki, Ui, xi] = [
|
|
43
43
|
"ReadableStream",
|
|
44
44
|
"Request",
|
|
45
45
|
"Response",
|
|
@@ -116,7 +116,7 @@ const Mi = (e, t, r, { allOwnKeys: n } = {}) => (Ot(
|
|
|
116
116
|
do {
|
|
117
117
|
for (s = Object.getOwnPropertyNames(e), o = s.length; o-- > 0; )
|
|
118
118
|
a = s[o], (!n || n(a, e, t)) && !i[a] && (t[a] = e[a], i[a] = !0);
|
|
119
|
-
e = r !== !1 &&
|
|
119
|
+
e = r !== !1 && Dn(e);
|
|
120
120
|
} while (e && (!r || r(e, t)) && e !== Object.prototype);
|
|
121
121
|
return t;
|
|
122
122
|
}, Bi = (e, t, r) => {
|
|
@@ -132,8 +132,8 @@ const Mi = (e, t, r, { allOwnKeys: n } = {}) => (Ot(
|
|
|
132
132
|
for (; t-- > 0; )
|
|
133
133
|
r[t] = e[t];
|
|
134
134
|
return r;
|
|
135
|
-
}, zi = /* @__PURE__ */ ((e) => (t) => e && t instanceof e)(typeof Uint8Array < "u" &&
|
|
136
|
-
const n = (e && e[
|
|
135
|
+
}, zi = /* @__PURE__ */ ((e) => (t) => e && t instanceof e)(typeof Uint8Array < "u" && Dn(Uint8Array)), Gi = (e, t) => {
|
|
136
|
+
const n = (e && e[Dr]).call(e);
|
|
137
137
|
let s;
|
|
138
138
|
for (; (s = n.next()) && !s.done; ) {
|
|
139
139
|
const o = s.value;
|
|
@@ -178,7 +178,7 @@ const Mi = (e, t, r, { allOwnKeys: n } = {}) => (Ot(
|
|
|
178
178
|
}, Zi = () => {
|
|
179
179
|
}, ec = (e, t) => e != null && Number.isFinite(e = +e) ? e : t;
|
|
180
180
|
function tc(e) {
|
|
181
|
-
return !!(e && Ee(e.append) && e[ia] === "FormData" && e[
|
|
181
|
+
return !!(e && Ee(e.append) && e[ia] === "FormData" && e[Dr]);
|
|
182
182
|
}
|
|
183
183
|
const rc = (e) => {
|
|
184
184
|
const t = new Array(10), r = (n, s) => {
|
|
@@ -207,11 +207,11 @@ const rc = (e) => {
|
|
|
207
207
|
!1
|
|
208
208
|
), (s) => {
|
|
209
209
|
n.push(s), ze.postMessage(r, "*");
|
|
210
|
-
}))(`axios@${Math.random()}`, []) : (r) => setTimeout(r))(typeof setImmediate == "function", Ee(ze.postMessage)), oc = typeof queueMicrotask < "u" ? queueMicrotask.bind(ze) : typeof process < "u" && process.nextTick || pa, ac = (e) => e != null && Ee(e[
|
|
210
|
+
}))(`axios@${Math.random()}`, []) : (r) => setTimeout(r))(typeof setImmediate == "function", Ee(ze.postMessage)), oc = typeof queueMicrotask < "u" ? queueMicrotask.bind(ze) : typeof process < "u" && process.nextTick || pa, ac = (e) => e != null && Ee(e[Dr]), I = {
|
|
211
211
|
isArray: ct,
|
|
212
212
|
isArrayBuffer: ca,
|
|
213
213
|
isBuffer: Rt,
|
|
214
|
-
isFormData:
|
|
214
|
+
isFormData: Di,
|
|
215
215
|
isArrayBufferView: Ei,
|
|
216
216
|
isString: bi,
|
|
217
217
|
isNumber: ua,
|
|
@@ -232,7 +232,7 @@ const rc = (e) => {
|
|
|
232
232
|
isRegExp: Ji,
|
|
233
233
|
isFunction: Ee,
|
|
234
234
|
isStream: Pi,
|
|
235
|
-
isURLSearchParams:
|
|
235
|
+
isURLSearchParams: Ci,
|
|
236
236
|
isTypedArray: zi,
|
|
237
237
|
isFileList: $i,
|
|
238
238
|
forEach: Ot,
|
|
@@ -242,7 +242,7 @@ const rc = (e) => {
|
|
|
242
242
|
stripBOM: Fi,
|
|
243
243
|
inherits: ji,
|
|
244
244
|
toFlatObject: Vi,
|
|
245
|
-
kindOf:
|
|
245
|
+
kindOf: Cr,
|
|
246
246
|
kindOfTest: $e,
|
|
247
247
|
endsWith: Bi,
|
|
248
248
|
toArray: Hi,
|
|
@@ -421,10 +421,10 @@ function ts(e) {
|
|
|
421
421
|
return t[n];
|
|
422
422
|
});
|
|
423
423
|
}
|
|
424
|
-
function
|
|
424
|
+
function Cn(e, t) {
|
|
425
425
|
this._pairs = [], e && kr(e, this, t);
|
|
426
426
|
}
|
|
427
|
-
const ga =
|
|
427
|
+
const ga = Cn.prototype;
|
|
428
428
|
ga.append = function(t, r) {
|
|
429
429
|
this._pairs.push([t, r]);
|
|
430
430
|
};
|
|
@@ -446,7 +446,7 @@ function ya(e, t, r) {
|
|
|
446
446
|
serialize: r
|
|
447
447
|
} : r, o = s && s.serialize;
|
|
448
448
|
let a;
|
|
449
|
-
if (o ? a = o(t, s) : a = I.isURLSearchParams(t) ? t.toString() : new
|
|
449
|
+
if (o ? a = o(t, s) : a = I.isURLSearchParams(t) ? t.toString() : new Cn(t, s).toString(n), a) {
|
|
450
450
|
const i = e.indexOf("#");
|
|
451
451
|
i !== -1 && (e = e.slice(0, i)), e += (e.indexOf("?") === -1 ? "?" : "&") + a;
|
|
452
452
|
}
|
|
@@ -512,7 +512,7 @@ const Ln = {
|
|
|
512
512
|
forcedJSONParsing: !0,
|
|
513
513
|
clarifyTimeoutError: !1,
|
|
514
514
|
legacyInterceptorReqResOrdering: !0
|
|
515
|
-
}, dc = typeof URLSearchParams < "u" ? URLSearchParams :
|
|
515
|
+
}, dc = typeof URLSearchParams < "u" ? URLSearchParams : Cn, fc = typeof FormData < "u" ? FormData : null, pc = typeof Blob < "u" ? Blob : null, hc = {
|
|
516
516
|
isBrowser: !0,
|
|
517
517
|
classes: {
|
|
518
518
|
URLSearchParams: dc,
|
|
@@ -918,7 +918,7 @@ function Ic(e) {
|
|
|
918
918
|
const t = /^([-+\w]{1,25})(:?\/\/|:)/.exec(e);
|
|
919
919
|
return t && t[1] || "";
|
|
920
920
|
}
|
|
921
|
-
function
|
|
921
|
+
function Dc(e, t) {
|
|
922
922
|
e = e || 10;
|
|
923
923
|
const r = new Array(e), n = new Array(e);
|
|
924
924
|
let s = 0, o = 0, a;
|
|
@@ -934,7 +934,7 @@ function Cc(e, t) {
|
|
|
934
934
|
return S ? Math.round(v * 1e3 / S) : void 0;
|
|
935
935
|
};
|
|
936
936
|
}
|
|
937
|
-
function
|
|
937
|
+
function Cc(e, t) {
|
|
938
938
|
let r = 0, n = 1e3 / t, s, o;
|
|
939
939
|
const a = (d, l = Date.now()) => {
|
|
940
940
|
r = l, s = null, o && (clearTimeout(o), o = null), e(...d);
|
|
@@ -948,8 +948,8 @@ function Dc(e, t) {
|
|
|
948
948
|
}
|
|
949
949
|
const Sr = (e, t, r = 3) => {
|
|
950
950
|
let n = 0;
|
|
951
|
-
const s =
|
|
952
|
-
return
|
|
951
|
+
const s = Dc(50, 250);
|
|
952
|
+
return Cc((o) => {
|
|
953
953
|
const a = o.loaded, i = o.lengthComputable ? o.total : void 0, c = a - n, d = s(c), l = a <= i;
|
|
954
954
|
n = a;
|
|
955
955
|
const m = {
|
|
@@ -1358,8 +1358,8 @@ const Sa = (e) => {
|
|
|
1358
1358
|
method: "POST",
|
|
1359
1359
|
body: p,
|
|
1360
1360
|
duplex: "half"
|
|
1361
|
-
}),
|
|
1362
|
-
if (I.isFormData(p) && (
|
|
1361
|
+
}), C;
|
|
1362
|
+
if (I.isFormData(p) && (C = A.headers.get("content-type")) && N.setContentType(C), A.body) {
|
|
1363
1363
|
const [P, w] = ss(
|
|
1364
1364
|
re,
|
|
1365
1365
|
Sr(os(b))
|
|
@@ -1385,8 +1385,8 @@ const Sa = (e) => {
|
|
|
1385
1385
|
["status", "statusText", "headers"].forEach((T) => {
|
|
1386
1386
|
A[T] = Q[T];
|
|
1387
1387
|
});
|
|
1388
|
-
const
|
|
1389
|
-
|
|
1388
|
+
const C = I.toFiniteNumber(Q.headers.get("content-length")), [P, w] = _ && ss(
|
|
1389
|
+
C,
|
|
1390
1390
|
Sr(os(_), !0)
|
|
1391
1391
|
) || [];
|
|
1392
1392
|
Q = new n(
|
|
@@ -1401,8 +1401,8 @@ const Sa = (e) => {
|
|
|
1401
1401
|
Q,
|
|
1402
1402
|
y
|
|
1403
1403
|
);
|
|
1404
|
-
return !ue && G && G(), await new Promise((A,
|
|
1405
|
-
ba(A,
|
|
1404
|
+
return !ue && G && G(), await new Promise((A, C) => {
|
|
1405
|
+
ba(A, C, {
|
|
1406
1406
|
data: U,
|
|
1407
1407
|
headers: be.from(Q.headers),
|
|
1408
1408
|
status: Q.status,
|
|
@@ -1896,22 +1896,22 @@ le.getAdapter = Ta.getAdapter;
|
|
|
1896
1896
|
le.HttpStatusCode = On;
|
|
1897
1897
|
le.default = le;
|
|
1898
1898
|
const {
|
|
1899
|
-
Axios:
|
|
1900
|
-
AxiosError:
|
|
1901
|
-
CanceledError:
|
|
1902
|
-
isCancel:
|
|
1903
|
-
CancelToken:
|
|
1904
|
-
VERSION:
|
|
1905
|
-
all:
|
|
1906
|
-
Cancel:
|
|
1907
|
-
isAxiosError:
|
|
1908
|
-
spread:
|
|
1909
|
-
toFormData:
|
|
1910
|
-
AxiosHeaders:
|
|
1911
|
-
HttpStatusCode:
|
|
1912
|
-
formToJSON:
|
|
1913
|
-
getAdapter:
|
|
1914
|
-
mergeConfig:
|
|
1899
|
+
Axios: Wm,
|
|
1900
|
+
AxiosError: Jm,
|
|
1901
|
+
CanceledError: Qm,
|
|
1902
|
+
isCancel: Xm,
|
|
1903
|
+
CancelToken: Zm,
|
|
1904
|
+
VERSION: eg,
|
|
1905
|
+
all: tg,
|
|
1906
|
+
Cancel: rg,
|
|
1907
|
+
isAxiosError: ng,
|
|
1908
|
+
spread: sg,
|
|
1909
|
+
toFormData: og,
|
|
1910
|
+
AxiosHeaders: ag,
|
|
1911
|
+
HttpStatusCode: ig,
|
|
1912
|
+
formToJSON: cg,
|
|
1913
|
+
getAdapter: ug,
|
|
1914
|
+
mergeConfig: lg
|
|
1915
1915
|
} = le, Zc = (e) => typeof e == "object" && e !== null && "resourceType" in e && e.resourceType === "OperationOutcome", eu = (e) => {
|
|
1916
1916
|
if (!e.issue || !Array.isArray(e.issue))
|
|
1917
1917
|
return null;
|
|
@@ -2116,7 +2116,7 @@ Me.interceptors.response.use(
|
|
|
2116
2116
|
return r.startsWith("ERROR_") || /^[A-Z_]+$/.test(r) ? Promise.reject(new Error(r)) : Promise.reject(`${t}: ${r}`);
|
|
2117
2117
|
}
|
|
2118
2118
|
);
|
|
2119
|
-
const F = async (e) => (await Me.get(e)).data,
|
|
2119
|
+
const F = async (e) => (await Me.get(e)).data, De = async (e, t) => (await Me.post(e, t)).data, dg = async (e, t) => (await Me.put(e, t)).data, fg = async (e, t) => (await Me.patch(e, t)).data, Pa = async (e) => (await Me.delete(e)).data, Y = (e) => typeof e == "string", ft = () => {
|
|
2120
2120
|
let e, t;
|
|
2121
2121
|
const r = new Promise((n, s) => {
|
|
2122
2122
|
e = n, t = s;
|
|
@@ -2390,7 +2390,7 @@ class Es extends xr {
|
|
|
2390
2390
|
return this.data;
|
|
2391
2391
|
}
|
|
2392
2392
|
}
|
|
2393
|
-
var
|
|
2393
|
+
var Da = {
|
|
2394
2394
|
processors: {},
|
|
2395
2395
|
addPostProcessor(e) {
|
|
2396
2396
|
this.processors[e.name] = e;
|
|
@@ -2523,8 +2523,8 @@ class Nr extends xr {
|
|
|
2523
2523
|
ne.push(fe[ue]);
|
|
2524
2524
|
else this.options.saveMissingTo === "all" ? ne = this.languageUtils.toResolveHierarchy(r.lng || this.language) : ne.push(r.lng || this.language);
|
|
2525
2525
|
const Q = (ue, U, A) => {
|
|
2526
|
-
const
|
|
2527
|
-
this.options.missingKeyHandler ? this.options.missingKeyHandler(ue, c, U,
|
|
2526
|
+
const C = h && A !== v ? A : G;
|
|
2527
|
+
this.options.missingKeyHandler ? this.options.missingKeyHandler(ue, c, U, C, re, r) : this.backendConnector?.saveMissing && this.backendConnector.saveMissing(ue, c, U, C, re, r), this.emit("missingKey", ue, c, U, v);
|
|
2528
2528
|
};
|
|
2529
2529
|
this.options.saveMissing && (this.options.saveMissingPlurals && u ? ne.forEach((ue) => {
|
|
2530
2530
|
const U = this.pluralResolver.getSuffixes(ue, r);
|
|
@@ -2575,7 +2575,7 @@ class Nr extends xr {
|
|
|
2575
2575
|
}, n)), n.interpolation && this.interpolator.reset();
|
|
2576
2576
|
}
|
|
2577
2577
|
const i = n.postProcess || this.options.postProcess, c = Y(i) ? [i] : i;
|
|
2578
|
-
return t != null && c?.length && n.applyPostProcessor !== !1 && (t =
|
|
2578
|
+
return t != null && c?.length && n.applyPostProcessor !== !1 && (t = Da.handle(c, t, r, this.options && this.options.postProcessPassResolved ? {
|
|
2579
2579
|
i18nResolved: {
|
|
2580
2580
|
...s,
|
|
2581
2581
|
usedParams: this.getUsedParamsDetails(n)
|
|
@@ -3211,7 +3211,7 @@ const As = () => ({
|
|
|
3211
3211
|
maxReplaces: 1e3,
|
|
3212
3212
|
skipOnVariables: !0
|
|
3213
3213
|
}
|
|
3214
|
-
}), Ns = (e) => (Y(e.ns) && (e.ns = [e.ns]), Y(e.fallbackLng) && (e.fallbackLng = [e.fallbackLng]), Y(e.fallbackNS) && (e.fallbackNS = [e.fallbackNS]), e.supportedLngs?.indexOf?.("cimode") < 0 && (e.supportedLngs = e.supportedLngs.concat(["cimode"])), typeof e.initImmediate == "boolean" && (e.initAsync = e.initImmediate), e),
|
|
3214
|
+
}), Ns = (e) => (Y(e.ns) && (e.ns = [e.ns]), Y(e.fallbackLng) && (e.fallbackLng = [e.fallbackLng]), Y(e.fallbackNS) && (e.fallbackNS = [e.fallbackNS]), e.supportedLngs?.indexOf?.("cimode") < 0 && (e.supportedLngs = e.supportedLngs.concat(["cimode"])), typeof e.initImmediate == "boolean" && (e.initAsync = e.initImmediate), e), Dt = () => {
|
|
3215
3215
|
}, Iu = (e) => {
|
|
3216
3216
|
Object.getOwnPropertyNames(Object.getPrototypeOf(e)).forEach((r) => {
|
|
3217
3217
|
typeof e[r] == "function" && (e[r] = e[r].bind(e));
|
|
@@ -3268,7 +3268,7 @@ class _t extends xr {
|
|
|
3268
3268
|
S.init && S.init(this);
|
|
3269
3269
|
});
|
|
3270
3270
|
}
|
|
3271
|
-
if (this.format = this.options.interpolation.format, n || (n =
|
|
3271
|
+
if (this.format = this.options.interpolation.format, n || (n = Dt), this.options.fallbackLng && !this.services.languageDetector && !this.options.lng) {
|
|
3272
3272
|
const l = this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);
|
|
3273
3273
|
l.length > 0 && l[0] !== "dev" && (this.options.lng = l[0]);
|
|
3274
3274
|
}
|
|
@@ -3291,7 +3291,7 @@ class _t extends xr {
|
|
|
3291
3291
|
return this.options.resources || !this.options.initAsync ? d() : setTimeout(d, 0), c;
|
|
3292
3292
|
}
|
|
3293
3293
|
loadResources(t) {
|
|
3294
|
-
let n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] :
|
|
3294
|
+
let n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : Dt;
|
|
3295
3295
|
const s = Y(t) ? t : this.language;
|
|
3296
3296
|
if (typeof t == "function" && (n = t), !this.options.resources || this.options.partialBundledLanguages) {
|
|
3297
3297
|
if (s?.toLowerCase() === "cimode" && (!this.options.preload || this.options.preload.length === 0)) return n();
|
|
@@ -3309,14 +3309,14 @@ class _t extends xr {
|
|
|
3309
3309
|
}
|
|
3310
3310
|
reloadResources(t, r, n) {
|
|
3311
3311
|
const s = ft();
|
|
3312
|
-
return typeof t == "function" && (n = t, t = void 0), typeof r == "function" && (n = r, r = void 0), t || (t = this.languages), r || (r = this.options.ns), n || (n =
|
|
3312
|
+
return typeof t == "function" && (n = t, t = void 0), typeof r == "function" && (n = r, r = void 0), t || (t = this.languages), r || (r = this.options.ns), n || (n = Dt), this.services.backendConnector.reload(t, r, (o) => {
|
|
3313
3313
|
s.resolve(), n(o);
|
|
3314
3314
|
}), s;
|
|
3315
3315
|
}
|
|
3316
3316
|
use(t) {
|
|
3317
3317
|
if (!t) throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");
|
|
3318
3318
|
if (!t.type) throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");
|
|
3319
|
-
return t.type === "backend" && (this.modules.backend = t), (t.type === "logger" || t.log && t.warn && t.error) && (this.modules.logger = t), t.type === "languageDetector" && (this.modules.languageDetector = t), t.type === "i18nFormat" && (this.modules.i18nFormat = t), t.type === "postProcessor" &&
|
|
3319
|
+
return t.type === "backend" && (this.modules.backend = t), (t.type === "logger" || t.log && t.warn && t.error) && (this.modules.logger = t), t.type === "languageDetector" && (this.modules.languageDetector = t), t.type === "i18nFormat" && (this.modules.i18nFormat = t), t.type === "postProcessor" && Da.addPostProcessor(t), t.type === "formatter" && (this.modules.formatter = t), t.type === "3rdParty" && this.modules.external.push(t), this;
|
|
3320
3320
|
}
|
|
3321
3321
|
setResolvedLanguage(t) {
|
|
3322
3322
|
if (!(!t || !this.languages) && !(["cimode", "dev"].indexOf(t) > -1))
|
|
@@ -3426,7 +3426,7 @@ class _t extends xr {
|
|
|
3426
3426
|
return new _t(t, r);
|
|
3427
3427
|
}
|
|
3428
3428
|
cloneInstance() {
|
|
3429
|
-
let t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, r = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] :
|
|
3429
|
+
let t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, r = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : Dt;
|
|
3430
3430
|
const n = t.forkResourceStore;
|
|
3431
3431
|
n && delete t.forkResourceStore;
|
|
3432
3432
|
const s = {
|
|
@@ -3483,11 +3483,11 @@ ie.hasLoadedNamespace;
|
|
|
3483
3483
|
ie.loadNamespaces;
|
|
3484
3484
|
ie.loadLanguages;
|
|
3485
3485
|
const {
|
|
3486
|
-
slice:
|
|
3487
|
-
forEach:
|
|
3486
|
+
slice: Du,
|
|
3487
|
+
forEach: Cu
|
|
3488
3488
|
} = [];
|
|
3489
3489
|
function Lu(e) {
|
|
3490
|
-
return
|
|
3490
|
+
return Cu.call(Du.call(arguments, 1), (t) => {
|
|
3491
3491
|
if (t)
|
|
3492
3492
|
for (const r in t)
|
|
3493
3493
|
e[r] === void 0 && (e[r] = t[r]);
|
|
@@ -3663,7 +3663,7 @@ var Fu = {
|
|
|
3663
3663
|
}
|
|
3664
3664
|
};
|
|
3665
3665
|
let Xe = null;
|
|
3666
|
-
const
|
|
3666
|
+
const Ds = () => {
|
|
3667
3667
|
if (Xe !== null) return Xe;
|
|
3668
3668
|
try {
|
|
3669
3669
|
if (Xe = typeof window < "u" && window.sessionStorage !== null, !Xe)
|
|
@@ -3681,14 +3681,14 @@ var ju = {
|
|
|
3681
3681
|
let {
|
|
3682
3682
|
lookupSessionStorage: t
|
|
3683
3683
|
} = e;
|
|
3684
|
-
if (t &&
|
|
3684
|
+
if (t && Ds())
|
|
3685
3685
|
return window.sessionStorage.getItem(t) || void 0;
|
|
3686
3686
|
},
|
|
3687
3687
|
cacheUserLanguage(e, t) {
|
|
3688
3688
|
let {
|
|
3689
3689
|
lookupSessionStorage: r
|
|
3690
3690
|
} = t;
|
|
3691
|
-
r &&
|
|
3691
|
+
r && Ds() && window.sessionStorage.setItem(r, e);
|
|
3692
3692
|
}
|
|
3693
3693
|
}, Vu = {
|
|
3694
3694
|
name: "navigator",
|
|
@@ -3739,13 +3739,13 @@ var ju = {
|
|
|
3739
3739
|
return n[r];
|
|
3740
3740
|
}
|
|
3741
3741
|
};
|
|
3742
|
-
let
|
|
3742
|
+
let Ca = !1;
|
|
3743
3743
|
try {
|
|
3744
|
-
document.cookie,
|
|
3744
|
+
document.cookie, Ca = !0;
|
|
3745
3745
|
} catch {
|
|
3746
3746
|
}
|
|
3747
3747
|
const La = ["querystring", "cookie", "localStorage", "sessionStorage", "navigator", "htmlTag"];
|
|
3748
|
-
|
|
3748
|
+
Ca || La.splice(1, 1);
|
|
3749
3749
|
const Gu = () => ({
|
|
3750
3750
|
order: La,
|
|
3751
3751
|
lookupQuerystring: "lng",
|
|
@@ -3790,7 +3790,7 @@ class ka {
|
|
|
3790
3790
|
}
|
|
3791
3791
|
}
|
|
3792
3792
|
ka.type = "languageDetector";
|
|
3793
|
-
const Ku = process.env.PUBLIC_URL ?? "/", ce = "/openmrs/ws/fhir2/R4", W = "/openmrs/ws/rest/v1", Yu = "/openmrs/ws/rest/v2", Ua = "bahmni.user",
|
|
3793
|
+
const Ku = process.env.PUBLIC_URL ?? "/", ce = "/openmrs/ws/fhir2/R4", W = "/openmrs/ws/rest/v1", Yu = "/openmrs/ws/rest/v2", Ua = "bahmni.user", pg = "/bahmni/home/index.html", xa = W + "/session", Wu = "en", qa = "NG_TRANSLATE_LANG_KEY", Ju = (e, t) => Ku + `${e}/locales/locale_${t}.json`, Qu = (e, t) => `/bahmni_config/openmrs/i18n/${e}/locale_${t}.json`, qr = () => localStorage.getItem(qa) ?? Wu, Cs = async (e) => {
|
|
3794
3794
|
try {
|
|
3795
3795
|
const t = await F(e);
|
|
3796
3796
|
return t || (console.error(`Invalid response from ${e}`), {});
|
|
@@ -3799,9 +3799,9 @@ const Ku = process.env.PUBLIC_URL ?? "/", ce = "/openmrs/ws/fhir2/R4", W = "/ope
|
|
|
3799
3799
|
}
|
|
3800
3800
|
}, Ls = async (e, t) => {
|
|
3801
3801
|
let r = {}, n = {};
|
|
3802
|
-
return r = await
|
|
3802
|
+
return r = await Cs(
|
|
3803
3803
|
Ju(e, t)
|
|
3804
|
-
), n = await
|
|
3804
|
+
), n = await Cs(
|
|
3805
3805
|
Qu(e, t)
|
|
3806
3806
|
), {
|
|
3807
3807
|
...r,
|
|
@@ -3814,7 +3814,7 @@ const Ku = process.env.PUBLIC_URL ?? "/", ce = "/openmrs/ws/fhir2/R4", W = "/ope
|
|
|
3814
3814
|
}, e !== "en" && (r.en = {
|
|
3815
3815
|
[t]: await Ls(t, "en")
|
|
3816
3816
|
}), r;
|
|
3817
|
-
},
|
|
3817
|
+
}, hg = (e, t) => {
|
|
3818
3818
|
const r = e.toUpperCase(), n = t.toUpperCase().replace(/\s+/g, "_").replace(/[^A-Z0-9_]/g, "");
|
|
3819
3819
|
return `${r}_${n}`;
|
|
3820
3820
|
}, Zu = (e, t) => {
|
|
@@ -3831,7 +3831,7 @@ const Ku = process.env.PUBLIC_URL ?? "/", ce = "/openmrs/ws/fhir2/R4", W = "/ope
|
|
|
3831
3831
|
labels: n.labels ?? {},
|
|
3832
3832
|
concepts: n.concepts ?? {}
|
|
3833
3833
|
};
|
|
3834
|
-
},
|
|
3834
|
+
}, mg = async (e) => {
|
|
3835
3835
|
const t = qr(), r = await Xu(t, e);
|
|
3836
3836
|
return ie.isInitialized ? (Object.entries(r).forEach(([n, s]) => {
|
|
3837
3837
|
Object.entries(s).forEach(([o, a]) => {
|
|
@@ -3854,7 +3854,7 @@ const Ku = process.env.PUBLIC_URL ?? "/", ce = "/openmrs/ws/fhir2/R4", W = "/ope
|
|
|
3854
3854
|
}
|
|
3855
3855
|
}), ie;
|
|
3856
3856
|
};
|
|
3857
|
-
function
|
|
3857
|
+
function gg() {
|
|
3858
3858
|
const e = bn(null), t = bn(null), r = Wr(async () => {
|
|
3859
3859
|
t.current && (t.current.getTracks().forEach((a) => a.stop()), t.current = null);
|
|
3860
3860
|
const o = await navigator.mediaDevices.getUserMedia({
|
|
@@ -3877,10 +3877,10 @@ function yg() {
|
|
|
3877
3877
|
}, []);
|
|
3878
3878
|
return _n(() => () => n(), [n]), { videoRef: e, start: r, stop: n, capture: s };
|
|
3879
3879
|
}
|
|
3880
|
-
const el = "bahmni.enableAuditLog", Ma = (e) => `${W}/bahmnicore/sql/globalproperty?property=${e}`,
|
|
3880
|
+
const el = "bahmni.enableAuditLog", Ma = (e) => `${W}/bahmnicore/sql/globalproperty?property=${e}`, yg = async (e, t, r) => {
|
|
3881
3881
|
const { exact: n = !0, refetchActiveNow: s = !0 } = r ?? {};
|
|
3882
3882
|
await e.cancelQueries({ queryKey: t, exact: n }), await e.removeQueries({ queryKey: t, exact: n }), await e.invalidateQueries({ queryKey: t, exact: n }), s && await e.refetchQueries({ queryKey: t, exact: n, type: "active" });
|
|
3883
|
-
},
|
|
3883
|
+
}, vg = () => Math.random().toString(36).substring(2, 9), wg = () => {
|
|
3884
3884
|
if (typeof globalThis < "u" && globalThis.crypto?.randomUUID)
|
|
3885
3885
|
return globalThis.crypto.randomUUID();
|
|
3886
3886
|
const e = globalThis.crypto || globalThis.msCrypto;
|
|
@@ -3892,7 +3892,7 @@ const el = "bahmni.enableAuditLog", Ma = (e) => `${W}/bahmnicore/sql/globalprope
|
|
|
3892
3892
|
"Crypto API (crypto.randomUUID or crypto.getRandomValues) is not available. UUID generation requires cryptographically secure random number generation."
|
|
3893
3893
|
);
|
|
3894
3894
|
};
|
|
3895
|
-
function
|
|
3895
|
+
function Eg(e, t = " -") {
|
|
3896
3896
|
return e ? e.toLowerCase().split(new RegExp(`[${t}]+`)).map((n) => n.charAt(0).toUpperCase() + n.slice(1)).join(" ") : "";
|
|
3897
3897
|
}
|
|
3898
3898
|
function Fa(e) {
|
|
@@ -3907,10 +3907,10 @@ function Fa(e) {
|
|
|
3907
3907
|
function tl(e) {
|
|
3908
3908
|
document.cookie = `${e}=; expires=Thu, 01 Jan 1970 00:00:00 UTC; path=/;`;
|
|
3909
3909
|
}
|
|
3910
|
-
function
|
|
3910
|
+
function bg(e, t) {
|
|
3911
3911
|
document.cookie = `${e}=${t}; path=/;`;
|
|
3912
3912
|
}
|
|
3913
|
-
const
|
|
3913
|
+
const _g = (e) => !e || e.trim().length === 0, Sg = (e, t) => {
|
|
3914
3914
|
if (!e || !t || t.length === 0)
|
|
3915
3915
|
return 999;
|
|
3916
3916
|
const r = t.findIndex(
|
|
@@ -3918,7 +3918,7 @@ const Sg = (e) => !e || e.trim().length === 0, Rg = (e, t) => {
|
|
|
3918
3918
|
);
|
|
3919
3919
|
return r === -1 ? 999 : r;
|
|
3920
3920
|
};
|
|
3921
|
-
function
|
|
3921
|
+
function Rg(e, t) {
|
|
3922
3922
|
if (!e || e.length === 0)
|
|
3923
3923
|
return [];
|
|
3924
3924
|
const r = /* @__PURE__ */ new Map();
|
|
@@ -3930,7 +3930,7 @@ function Tg(e, t) {
|
|
|
3930
3930
|
items: s
|
|
3931
3931
|
}));
|
|
3932
3932
|
}
|
|
3933
|
-
function
|
|
3933
|
+
function Tg(e, t, r) {
|
|
3934
3934
|
if (!e || e.length === 0)
|
|
3935
3935
|
return [];
|
|
3936
3936
|
const n = /* @__PURE__ */ new Set(), s = /* @__PURE__ */ new Set();
|
|
@@ -3951,7 +3951,7 @@ function rl(e) {
|
|
|
3951
3951
|
o[n(a[1])] = n(a[2]);
|
|
3952
3952
|
return o;
|
|
3953
3953
|
}
|
|
3954
|
-
function
|
|
3954
|
+
function Og(e, t, r) {
|
|
3955
3955
|
const n = /{{([^}]*)}}/g, s = e.match(n);
|
|
3956
3956
|
let o = e;
|
|
3957
3957
|
const a = r ?? !1, i = a ? rl() : {};
|
|
@@ -3964,7 +3964,7 @@ function Ag(e, t, r) {
|
|
|
3964
3964
|
const nl = (e) => new Promise((t, r) => {
|
|
3965
3965
|
const n = new FileReader();
|
|
3966
3966
|
n.onloadend = () => t(n.result), n.onerror = r, n.readAsDataURL(e);
|
|
3967
|
-
}),
|
|
3967
|
+
}), Ag = (e) => {
|
|
3968
3968
|
if (typeof e == "number" && !isNaN(e))
|
|
3969
3969
|
return "number";
|
|
3970
3970
|
if (typeof e != "string")
|
|
@@ -3972,10 +3972,10 @@ const nl = (e) => new Promise((t, r) => {
|
|
|
3972
3972
|
const t = e.toLowerCase();
|
|
3973
3973
|
return t.endsWith(".pdf") ? "PDF" : [".png", ".jpg", ".jpeg", ".gif", ".bmp", ".svg"].some((s) => t.endsWith(s)) ? "Image" : [".mp4", ".ogg", ".webm", ".mkv", ".flv"].some((s) => t.endsWith(s)) ? "Video" : typeof e == "string" ? "string" : "object";
|
|
3974
3974
|
};
|
|
3975
|
-
function
|
|
3975
|
+
function Ng(e) {
|
|
3976
3976
|
return e.replace(/[\s-]+/g, "_").replace(/([a-z])([A-Z])/g, "$1_$2").replace(/([A-Z])([A-Z][a-z])/g, "$1_$2").toUpperCase();
|
|
3977
3977
|
}
|
|
3978
|
-
function
|
|
3978
|
+
function $g(e) {
|
|
3979
3979
|
return e ? e.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(/^./, (t) => t.toUpperCase()) : "";
|
|
3980
3980
|
}
|
|
3981
3981
|
const sl = (e) => W + `/user?username=${e}&v=custom:(display,username,uuid)`, ja = "bahmni.user.location", ol = `${W}/location?tags=Login Location&v=default`, al = (e) => W + `/user/${e}?v=full`, il = (e) => W + `/bahmni/app/setting?module=${e}`, cl = "default_dateFormat", ul = xa, ll = [
|
|
@@ -3984,7 +3984,7 @@ const sl = (e) => W + `/user?username=${e}&v=custom:(display,username,uuid)`, ja
|
|
|
3984
3984
|
], dl = {
|
|
3985
3985
|
LOGOUT_FAILED: "USER_LOGOUT_FAILED"
|
|
3986
3986
|
};
|
|
3987
|
-
async function
|
|
3987
|
+
async function Pg() {
|
|
3988
3988
|
const e = Fa(Ua);
|
|
3989
3989
|
if (!e)
|
|
3990
3990
|
return null;
|
|
@@ -4008,7 +4008,7 @@ const qn = () => {
|
|
|
4008
4008
|
if (!t.uuid)
|
|
4009
4009
|
throw new Error(ie.t("ERROR_FETCHING_USER_LOCATION_DETAILS"));
|
|
4010
4010
|
return t;
|
|
4011
|
-
},
|
|
4011
|
+
}, Ig = async () => (await F(il("commons"))).find(
|
|
4012
4012
|
(r) => r.property === cl
|
|
4013
4013
|
)?.value ?? null, Dg = async () => {
|
|
4014
4014
|
try {
|
|
@@ -4016,7 +4016,7 @@ const qn = () => {
|
|
|
4016
4016
|
} catch (e) {
|
|
4017
4017
|
return console.error("Failed to fetch available locations:", e), [];
|
|
4018
4018
|
}
|
|
4019
|
-
},
|
|
4019
|
+
}, Cg = async () => {
|
|
4020
4020
|
try {
|
|
4021
4021
|
await Pa(ul), ll.forEach((e) => {
|
|
4022
4022
|
tl(e);
|
|
@@ -4024,8 +4024,8 @@ const qn = () => {
|
|
|
4024
4024
|
} catch (e) {
|
|
4025
4025
|
throw console.error("Logout failed:", e), new Error(ie.t(dl.LOGOUT_FAILED));
|
|
4026
4026
|
}
|
|
4027
|
-
},
|
|
4028
|
-
await
|
|
4027
|
+
}, Lg = async (e, t) => {
|
|
4028
|
+
await De(al(e), {
|
|
4029
4029
|
userProperties: { loginLocation: t.uuid }
|
|
4030
4030
|
});
|
|
4031
4031
|
}, Mn = {
|
|
@@ -4074,7 +4074,7 @@ const qn = () => {
|
|
|
4074
4074
|
}, Va = W + "/idgen/identifiertype", gl = (e) => W + `/bahmni/app/setting?module=${e}`, yl = "bahmni.primaryIdentifierType", vl = W + "/bahmnicore/patientprofile", wl = (e) => W + `/bahmnicore/patientprofile/${e}`, El = (e) => W + `/patientprofile/${e}?v=full`, bl = (e, t, r = 20, n) => {
|
|
4075
4075
|
let s = `/openmrs/module/addresshierarchy/ajax/getPossibleAddressHierarchyEntriesWithParents.form?addressField=${e}&limit=${r}&searchString=${encodeURIComponent(t)}`;
|
|
4076
4076
|
return n && (s += `&parent=${n}`), s;
|
|
4077
|
-
}, _l = "/openmrs/module/addresshierarchy/ajax/getOrderedAddressHierarchyLevels.form", Sl = W + "/relationshiptype?v=custom:(aIsToB,bIsToA,uuid)&limit=150", Rl = 20, Tl = 2,
|
|
4077
|
+
}, _l = "/openmrs/module/addresshierarchy/ajax/getOrderedAddressHierarchyLevels.form", Sl = W + "/relationshiptype?v=custom:(aIsToB,bIsToA,uuid)&limit=150", Rl = 20, Tl = 2, kg = 120, Ug = 50, xg = 15, Ol = /^[a-f0-9-]{36}$/i, Al = (e) => Yu + `/patientImage?patientUuid=${e}`, Nl = W + "/personattributetype?v=custom:(uuid,name,sortWeight,description,format,concept:(uuid,display,answers:(uuid,name)))", $l = async (e) => {
|
|
4078
4078
|
if (!e || e.trim() === "")
|
|
4079
4079
|
throw new Error("Invalid patient UUID: UUID cannot be empty");
|
|
4080
4080
|
if (!Ol.test(e))
|
|
@@ -4085,7 +4085,7 @@ const qn = () => {
|
|
|
4085
4085
|
return null;
|
|
4086
4086
|
const t = e.name[0], r = t.given?.join(" ") ?? "", n = t.family ?? "";
|
|
4087
4087
|
return !r && !n ? null : `${r} ${n}`.trim();
|
|
4088
|
-
},
|
|
4088
|
+
}, Dl = (e) => {
|
|
4089
4089
|
if (!e) return null;
|
|
4090
4090
|
const t = [
|
|
4091
4091
|
...e.line ?? [],
|
|
@@ -4094,8 +4094,8 @@ const qn = () => {
|
|
|
4094
4094
|
// Extracted address extensions
|
|
4095
4095
|
], r = e.city ?? "", n = e.state ?? "", s = e.postalCode ?? "", o = t.filter(Boolean);
|
|
4096
4096
|
return r && o.push(r), n && s ? o.push(`${n} ${s}`) : n ? o.push(n) : s && o.push(s), o.length > 0 ? o.join(", ").trim() : null;
|
|
4097
|
-
},
|
|
4098
|
-
const t = e.address && e.address.length > 0 ?
|
|
4097
|
+
}, Cl = (e) => !e?.system || !e.value ? null : `${e.system}: ${e.value}`, Ll = (e) => {
|
|
4098
|
+
const t = e.address && e.address.length > 0 ? Dl(e.address[0]) : null, r = e.telecom && e.telecom.length > 0 ? Cl(e.telecom[0]) : null, n = e.identifier ?? [], s = /* @__PURE__ */ new Map();
|
|
4099
4099
|
return n.length > 0 && n.forEach((o) => {
|
|
4100
4100
|
!o.type?.text || !o.value || s.set(o.type.text, o.value);
|
|
4101
4101
|
}), {
|
|
@@ -4107,20 +4107,20 @@ const qn = () => {
|
|
|
4107
4107
|
formattedContact: r,
|
|
4108
4108
|
identifiers: s
|
|
4109
4109
|
};
|
|
4110
|
-
},
|
|
4110
|
+
}, qg = async (e) => {
|
|
4111
4111
|
const t = await $l(e);
|
|
4112
4112
|
return Ll(t);
|
|
4113
|
-
},
|
|
4113
|
+
}, Mg = async (e) => {
|
|
4114
4114
|
const t = await fetch(Al(e));
|
|
4115
4115
|
if (!t.ok) return null;
|
|
4116
4116
|
const r = await t.blob();
|
|
4117
4117
|
return await nl(r);
|
|
4118
|
-
},
|
|
4118
|
+
}, Fg = async (e, t) => {
|
|
4119
4119
|
const r = qn();
|
|
4120
4120
|
return await F(
|
|
4121
4121
|
hl(e, r.uuid, t)
|
|
4122
4122
|
);
|
|
4123
|
-
},
|
|
4123
|
+
}, jg = async (e, t, r, n, s) => {
|
|
4124
4124
|
const o = qn();
|
|
4125
4125
|
return await F(
|
|
4126
4126
|
ml(
|
|
@@ -4131,9 +4131,9 @@ const qn = () => {
|
|
|
4131
4131
|
o.uuid
|
|
4132
4132
|
)
|
|
4133
4133
|
);
|
|
4134
|
-
},
|
|
4134
|
+
}, Vg = async () => F(Va), kl = async () => (await F(gl("core"))).find(
|
|
4135
4135
|
(r) => r.property === yl
|
|
4136
|
-
)?.value ?? null,
|
|
4136
|
+
)?.value ?? null, Bg = async () => {
|
|
4137
4137
|
const [e, t] = await Promise.all([
|
|
4138
4138
|
F(Va),
|
|
4139
4139
|
kl()
|
|
@@ -4150,10 +4150,10 @@ const qn = () => {
|
|
|
4150
4150
|
sourcesByPrefix: n,
|
|
4151
4151
|
primaryIdentifierTypeUuid: t
|
|
4152
4152
|
}) : { prefixes: r, sourcesByPrefix: n, primaryIdentifierTypeUuid: t };
|
|
4153
|
-
},
|
|
4153
|
+
}, Hg = async (e) => De(vl, e), zg = async (e, t) => De(
|
|
4154
4154
|
wl(e),
|
|
4155
4155
|
t
|
|
4156
|
-
),
|
|
4156
|
+
), Gg = async () => F(Ma("mrs.genders")), Kg = async (e, t, r = Rl, n) => {
|
|
4157
4157
|
if (!t || t.length < Tl)
|
|
4158
4158
|
return [];
|
|
4159
4159
|
try {
|
|
@@ -4165,7 +4165,7 @@ const qn = () => {
|
|
|
4165
4165
|
`Failed to fetch address hierarchy for field "${e}": ${s instanceof Error ? s.message : "Unknown error"}`
|
|
4166
4166
|
);
|
|
4167
4167
|
}
|
|
4168
|
-
},
|
|
4168
|
+
}, Yg = async () => F(_l), Wg = async (e) => F(El(e)), Jg = async () => {
|
|
4169
4169
|
try {
|
|
4170
4170
|
return (await F(
|
|
4171
4171
|
Sl
|
|
@@ -4179,9 +4179,9 @@ const qn = () => {
|
|
|
4179
4179
|
`Failed to fetch relationship types: ${e instanceof Error ? e.message : "Unknown error"}`
|
|
4180
4180
|
);
|
|
4181
4181
|
}
|
|
4182
|
-
},
|
|
4182
|
+
}, Qg = async () => F(Nl);
|
|
4183
4183
|
var Ul = /* @__PURE__ */ ((e) => (e.BOOLEAN = "java.lang.Boolean", e.BOOLEAN_DATATYPE = "org.openmrs.customdatatype.datatype.BooleanDatatype", e.CONCEPT = "org.openmrs.Concept", e.CODED_CONCEPT = "org.bahmni.module.bahmnicore.customdatatype.datatype.CodedConceptDatatype", e.CONCEPT_DATATYPE = "org.openmrs.customdatatype.datatype.ConceptDatatype", e.STRING = "java.lang.String", e.FREE_TEXT = "org.openmrs.customdatatype.datatype.FreeTextDatatype", e.REGEX_VALIDATED_TEXT = "org.openmrs.customdatatype.datatype.RegexValidatedTextDatatype", e.INTEGER = "java.lang.Integer", e.FLOAT = "java.lang.Float", e.ATTRIBUTABLE_DATE = "org.openmrs.util.AttributableDate", e.DATE_DATATYPE = "org.openmrs.customdatatype.datatype.DateDatatype", e))(Ul || {}), xl = /* @__PURE__ */ ((e) => (e.CHECKBOX = "checkbox", e.DROPDOWN = "dropdown", e.TEXT = "text", e.NUMBER = "number", e.DATE = "date", e))(xl || {});
|
|
4184
|
-
const
|
|
4184
|
+
const Xg = (e) => e === "java.lang.Boolean" || e === "org.openmrs.customdatatype.datatype.BooleanDatatype" ? "checkbox" : e === "org.openmrs.Concept" || e === "org.bahmni.module.bahmnicore.customdatatype.datatype.CodedConceptDatatype" || e === "org.openmrs.customdatatype.datatype.ConceptDatatype" ? "dropdown" : e === "java.lang.Integer" || e === "java.lang.Float" ? "number" : e === "org.openmrs.util.AttributableDate" || e === "org.openmrs.customdatatype.datatype.DateDatatype" ? "date" : "text", Zg = (e) => e === "java.lang.Boolean" || e === "org.openmrs.customdatatype.datatype.BooleanDatatype", ey = (e) => e === "org.openmrs.Concept" || e === "org.bahmni.module.bahmnicore.customdatatype.datatype.CodedConceptDatatype" || e === "org.openmrs.customdatatype.datatype.ConceptDatatype", ty = (e) => e === "java.lang.Integer" || e === "java.lang.Float", ry = (e) => e === "org.openmrs.util.AttributableDate" || e === "org.openmrs.customdatatype.datatype.DateDatatype", ny = (e) => e === "java.lang.String" || e === "org.openmrs.customdatatype.datatype.FreeTextDatatype" || e === "org.openmrs.customdatatype.datatype.RegexValidatedTextDatatype", ql = (e) => {
|
|
4185
4185
|
const t = new CustomEvent("bahmni-audit-log", { detail: e });
|
|
4186
4186
|
window.dispatchEvent(t);
|
|
4187
4187
|
}, Ml = (e) => {
|
|
@@ -4234,10 +4234,10 @@ const Zg = (e) => e === "java.lang.Boolean" || e === "org.openmrs.customdatatype
|
|
|
4234
4234
|
}
|
|
4235
4235
|
}, Fl = W + "/auditlog", jl = {
|
|
4236
4236
|
UNKNOWN_EVENT_TYPE: "AUDIT_LOG_ERROR_UNKNOWN_EVENT_TYPE"
|
|
4237
|
-
}, Vl = () => W + "/bahmnicore/config/bahmniencounter?callerContext=REGISTRATION_CONCEPTS", Bl = W + "/visit", Hl = (e) => W + `/visit?patient=${e}&includeInactive=false&v=custom:(uuid,visitType,startDatetime,stopDatetime)`, zl = (e) => W + `/bahmnicore/visitLocation/${e}`,
|
|
4237
|
+
}, Vl = () => W + "/bahmnicore/config/bahmniencounter?callerContext=REGISTRATION_CONCEPTS", Bl = W + "/visit", Hl = (e) => W + `/visit?patient=${e}&includeInactive=false&v=custom:(uuid,visitType,startDatetime,stopDatetime)`, zl = (e) => W + `/bahmnicore/visitLocation/${e}`, sy = async () => F(Vl()), Gl = async (e) => F(Hl(e)), Kl = async (e) => F(zl(e)), Yl = async (e) => De(Bl, e), oy = async (e) => {
|
|
4238
4238
|
const t = await Gl(e);
|
|
4239
4239
|
return t?.results && t.results.length > 0;
|
|
4240
|
-
},
|
|
4240
|
+
}, ay = async (e, t) => {
|
|
4241
4241
|
const r = await Kl(
|
|
4242
4242
|
qn().uuid
|
|
4243
4243
|
), n = {
|
|
@@ -4754,7 +4754,7 @@ const Td = /^(\d+)(th|st|nd|rd)?/i, Od = /\d+/i, Ad = {
|
|
|
4754
4754
|
narrow: /^[jfmasond]/i,
|
|
4755
4755
|
abbreviated: /^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,
|
|
4756
4756
|
wide: /^(january|february|march|april|may|june|july|august|september|october|november|december)/i
|
|
4757
|
-
},
|
|
4757
|
+
}, Dd = {
|
|
4758
4758
|
narrow: [
|
|
4759
4759
|
/^j/i,
|
|
4760
4760
|
/^f/i,
|
|
@@ -4783,7 +4783,7 @@ const Td = /^(\d+)(th|st|nd|rd)?/i, Od = /\d+/i, Ad = {
|
|
|
4783
4783
|
/^n/i,
|
|
4784
4784
|
/^d/i
|
|
4785
4785
|
]
|
|
4786
|
-
},
|
|
4786
|
+
}, Cd = {
|
|
4787
4787
|
narrow: /^[smtwf]/i,
|
|
4788
4788
|
short: /^(su|mo|tu|we|th|fr|sa)/i,
|
|
4789
4789
|
abbreviated: /^(sun|mon|tue|wed|thu|fri|sat)/i,
|
|
@@ -4827,11 +4827,11 @@ const Td = /^(\d+)(th|st|nd|rd)?/i, Od = /\d+/i, Ad = {
|
|
|
4827
4827
|
month: ht({
|
|
4828
4828
|
matchPatterns: Id,
|
|
4829
4829
|
defaultMatchWidth: "wide",
|
|
4830
|
-
parsePatterns:
|
|
4830
|
+
parsePatterns: Dd,
|
|
4831
4831
|
defaultParseWidth: "any"
|
|
4832
4832
|
}),
|
|
4833
4833
|
day: ht({
|
|
4834
|
-
matchPatterns:
|
|
4834
|
+
matchPatterns: Cd,
|
|
4835
4835
|
defaultMatchWidth: "wide",
|
|
4836
4836
|
parsePatterns: Ld,
|
|
4837
4837
|
defaultParseWidth: "any"
|
|
@@ -5609,21 +5609,21 @@ function Hn(e, t) {
|
|
|
5609
5609
|
}
|
|
5610
5610
|
return de(a + i + c, t?.in);
|
|
5611
5611
|
}
|
|
5612
|
-
const
|
|
5612
|
+
const Ct = {
|
|
5613
5613
|
dateTimeDelimiter: /[T ]/,
|
|
5614
5614
|
timeZoneDelimiter: /[Z ]/i,
|
|
5615
5615
|
timezone: /([Z+-].*)$/
|
|
5616
5616
|
}, af = /^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/, cf = /^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/, uf = /^([+-])(\d{2})(?::?(\d{2}))?$/;
|
|
5617
5617
|
function lf(e) {
|
|
5618
|
-
const t = {}, r = e.split(
|
|
5618
|
+
const t = {}, r = e.split(Ct.dateTimeDelimiter);
|
|
5619
5619
|
let n;
|
|
5620
5620
|
if (r.length > 2)
|
|
5621
5621
|
return t;
|
|
5622
|
-
if (/:/.test(r[0]) ? n = r[0] : (t.date = r[0], n = r[1],
|
|
5622
|
+
if (/:/.test(r[0]) ? n = r[0] : (t.date = r[0], n = r[1], Ct.timeZoneDelimiter.test(t.date) && (t.date = e.split(Ct.timeZoneDelimiter)[0], n = e.substr(
|
|
5623
5623
|
t.date.length,
|
|
5624
5624
|
e.length
|
|
5625
5625
|
))), n) {
|
|
5626
|
-
const s =
|
|
5626
|
+
const s = Ct.timezone.exec(n);
|
|
5627
5627
|
s ? (t.time = n.replace(s[1], ""), t.timezone = s[1]) : t.time = n;
|
|
5628
5628
|
}
|
|
5629
5629
|
return t;
|
|
@@ -5704,7 +5704,7 @@ function Sf(e, t, r) {
|
|
|
5704
5704
|
function Rf(e, t, r) {
|
|
5705
5705
|
return jn(e, -t, r);
|
|
5706
5706
|
}
|
|
5707
|
-
const
|
|
5707
|
+
const iy = {
|
|
5708
5708
|
PROPOSED: "proposed",
|
|
5709
5709
|
PENDING: "pending",
|
|
5710
5710
|
BOOKED: "booked",
|
|
@@ -5715,38 +5715,38 @@ const cy = {
|
|
|
5715
5715
|
CHECKED_IN: "checked-in",
|
|
5716
5716
|
WAITLIST: "waitlist",
|
|
5717
5717
|
ENTERED_IN_ERROR: "entered-in-error"
|
|
5718
|
-
}, Tf = W + "/appointments/search", Qa = W + "/appointments",
|
|
5718
|
+
}, Tf = W + "/appointments/search", Qa = W + "/appointments", cy = "http://fhir.bahmni.org/code-system/appointments", Of = (e) => `${Qa}/${e}`, jr = (e, t, r, n) => {
|
|
5719
5719
|
const s = t === "upcoming", o = s ? "ge" : "le", a = s ? "date" : "-date", i = s ? (/* @__PURE__ */ new Date()).toISOString() : Sf(/* @__PURE__ */ new Date()).toISOString();
|
|
5720
5720
|
let c = `${ce}/Appointment?patient=${e}&date=${o}${i}&_sort=${a}`;
|
|
5721
5721
|
return r !== void 0 && r > 0 && (c += `&_count=${r}`), n !== void 0 && n > 0 && (c += `&_getpagesoffset=${n}`), c;
|
|
5722
|
-
}, Af = (e) => jr(e, "upcoming"), Nf = (e, t) => jr(e, "past", t), $f = (e) => `${Qa}/${e}/status-change`, Pf = W + "/appointmentService/all/full", If = (e) => `${W}/appointmentService?uuid=${e}`,
|
|
5723
|
-
async function
|
|
5722
|
+
}, Af = (e) => jr(e, "upcoming"), Nf = (e, t) => jr(e, "past", t), $f = (e) => `${Qa}/${e}/status-change`, Pf = W + "/appointmentService/all/full", If = (e) => `${W}/appointmentService?uuid=${e}`, Df = (e, t = 10, r = 0) => jr(e, "upcoming", t, r), Cf = (e, t = 10, r = 0) => jr(e, "past", t, r), uy = async (e) => await De(Tf, e);
|
|
5723
|
+
async function ly(e) {
|
|
5724
5724
|
return await F(Af(e));
|
|
5725
5725
|
}
|
|
5726
|
-
async function
|
|
5726
|
+
async function dy(e, t) {
|
|
5727
5727
|
return await F(
|
|
5728
5728
|
Nf(e, t)
|
|
5729
5729
|
);
|
|
5730
5730
|
}
|
|
5731
|
-
const
|
|
5731
|
+
const fy = async (e, t, r) => await De($f(e), {
|
|
5732
5732
|
toStatus: t,
|
|
5733
5733
|
onDate: r
|
|
5734
5734
|
});
|
|
5735
|
-
async function
|
|
5735
|
+
async function py(e) {
|
|
5736
5736
|
return await F(Of(e));
|
|
5737
5737
|
}
|
|
5738
|
-
const
|
|
5738
|
+
const hy = async () => await F(Pf), my = async (e) => {
|
|
5739
5739
|
await Pa(If(e));
|
|
5740
5740
|
};
|
|
5741
|
-
async function
|
|
5741
|
+
async function gy(e, t = 10, r = 1) {
|
|
5742
5742
|
const n = (r - 1) * t, s = await F(
|
|
5743
|
-
|
|
5743
|
+
Df(e, t, n)
|
|
5744
5744
|
);
|
|
5745
5745
|
return { bundle: s, total: s.total ?? s.entry?.length ?? 0 };
|
|
5746
5746
|
}
|
|
5747
|
-
async function
|
|
5747
|
+
async function yy(e, t = 10, r = 1) {
|
|
5748
5748
|
const n = (r - 1) * t, s = await F(
|
|
5749
|
-
|
|
5749
|
+
Cf(e, t, n)
|
|
5750
5750
|
);
|
|
5751
5751
|
return { bundle: s, total: s.total ?? s.entry?.length ?? 0 };
|
|
5752
5752
|
}
|
|
@@ -5757,7 +5757,7 @@ const Xa = "dd/MM/yyyy", Lf = "default_dateFormat", kf = "h:mm a", Te = {
|
|
|
5757
5757
|
INVALID_FORMAT: "DATE_ERROR_INVALID_FORMAT",
|
|
5758
5758
|
NULL_OR_UNDEFINED: "DATE_ERROR_NULL_OR_UNDEFINED"
|
|
5759
5759
|
};
|
|
5760
|
-
function
|
|
5760
|
+
function vy(e) {
|
|
5761
5761
|
if (typeof e != "string" || !/^\d{4}-\d{2}-\d{2}$/.test(e))
|
|
5762
5762
|
return null;
|
|
5763
5763
|
const t = Hn(e);
|
|
@@ -5825,7 +5825,7 @@ function xf() {
|
|
|
5825
5825
|
return Xa;
|
|
5826
5826
|
}
|
|
5827
5827
|
}
|
|
5828
|
-
function
|
|
5828
|
+
function wy(e, t, r = !1, n) {
|
|
5829
5829
|
const s = t ?? ((a) => a);
|
|
5830
5830
|
let o;
|
|
5831
5831
|
try {
|
|
@@ -5835,7 +5835,7 @@ function Ey(e, t, r = !1, n) {
|
|
|
5835
5835
|
}
|
|
5836
5836
|
return r && !n && (o = `${o} ${kf}`), Uf(e, o, s);
|
|
5837
5837
|
}
|
|
5838
|
-
function
|
|
5838
|
+
function Ey(e, t, r) {
|
|
5839
5839
|
if (!e || !$t(e) || t === null || t === void 0 || !r || typeof t != "number")
|
|
5840
5840
|
return;
|
|
5841
5841
|
const n = new Date(e);
|
|
@@ -5850,7 +5850,7 @@ function by(e, t, r) {
|
|
|
5850
5850
|
return;
|
|
5851
5851
|
}
|
|
5852
5852
|
}
|
|
5853
|
-
function
|
|
5853
|
+
function by(e, t) {
|
|
5854
5854
|
if (e == null)
|
|
5855
5855
|
return {
|
|
5856
5856
|
formattedResult: "",
|
|
@@ -5902,11 +5902,11 @@ function _y(e, t) {
|
|
|
5902
5902
|
}
|
|
5903
5903
|
return { formattedResult: c };
|
|
5904
5904
|
}
|
|
5905
|
-
const
|
|
5905
|
+
const _y = () => {
|
|
5906
5906
|
const e = /* @__PURE__ */ new Date();
|
|
5907
5907
|
return e.setHours(0, 0, 0, 0), e;
|
|
5908
5908
|
};
|
|
5909
|
-
function
|
|
5909
|
+
function Sy(e, t) {
|
|
5910
5910
|
const r = typeof e == "string" ? Hn(e) : new Date(e), n = /* @__PURE__ */ new Date(), s = Bn(n, r), o = jn(r, s), a = Vn(n, o), i = Mr(o, a), c = Pn(n, i), d = {
|
|
5911
5911
|
years: "YEARS",
|
|
5912
5912
|
months: "MONTHS",
|
|
@@ -5940,14 +5940,14 @@ const qf = {
|
|
|
5940
5940
|
h: 1 / 24,
|
|
5941
5941
|
min: 1 / 1440,
|
|
5942
5942
|
s: 1 / 86400
|
|
5943
|
-
},
|
|
5943
|
+
}, Ry = (e, t, r) => {
|
|
5944
5944
|
const n = typeof e == "string" ? new Date(e) : e;
|
|
5945
5945
|
if (isNaN(n.getTime()))
|
|
5946
5946
|
throw new Error(`Invalid date: ${e}`);
|
|
5947
5947
|
const s = qf[r] ?? 1, o = t * s;
|
|
5948
5948
|
return za(n, o);
|
|
5949
|
-
},
|
|
5950
|
-
function
|
|
5949
|
+
}, Ty = (e, t, r, n) => e <= n && r <= t;
|
|
5950
|
+
function Oy(e, t, r = !1) {
|
|
5951
5951
|
return !e || !Array.isArray(e) ? [] : e.sort((n, s) => {
|
|
5952
5952
|
const o = new Date(n[t]), a = new Date(s[t]);
|
|
5953
5953
|
if (isNaN(o.getTime()) && isNaN(a.getTime())) return 0;
|
|
@@ -5986,7 +5986,7 @@ const Mf = () => {
|
|
|
5986
5986
|
);
|
|
5987
5987
|
}
|
|
5988
5988
|
};
|
|
5989
|
-
},
|
|
5989
|
+
}, Ay = Mf(), Ff = (e) => ce + `/ValueSet/${e}/$expand`, jf = (e) => ce + `/ValueSet/$expand?filter=${encodeURIComponent(e)}`, Vf = (e, t, r) => W + `/bahmni/terminologies/concepts?limit=${t}&locale=${r}&term=${e}`, Bf = (e) => W + `/concept/${e}`, Hf = (e) => `${W}/concept?s=byFullySpecifiedName&name=${encodeURIComponent(e)}`, zf = "SHORT", Gf = "FULLY_SPECIFIED", Ny = async (e, t = 20) => {
|
|
5990
5990
|
const r = qr(), n = Vf(e, t, r);
|
|
5991
5991
|
return F(n);
|
|
5992
5992
|
}, br = async (e) => {
|
|
@@ -5996,10 +5996,10 @@ const Mf = () => {
|
|
|
5996
5996
|
const t = `${jf(e)}`;
|
|
5997
5997
|
return F(t);
|
|
5998
5998
|
};
|
|
5999
|
-
async function
|
|
5999
|
+
async function $y(e) {
|
|
6000
6000
|
return await F(Bf(e));
|
|
6001
6001
|
}
|
|
6002
|
-
async function
|
|
6002
|
+
async function Py(e) {
|
|
6003
6003
|
const t = Hf(e), r = await F(t);
|
|
6004
6004
|
return !r.results || r.results.length === 0 ? null : r.results[0];
|
|
6005
6005
|
}
|
|
@@ -6035,7 +6035,7 @@ const Wf = (e) => ce + `/AllergyIntolerance?patient=${e}&_count=100&_sort=-_last
|
|
|
6035
6035
|
}), an = (e, t) => {
|
|
6036
6036
|
const r = e.expansion?.contains ?? [];
|
|
6037
6037
|
return Qf(r).map((s) => Xf(s, t));
|
|
6038
|
-
},
|
|
6038
|
+
}, Iy = async (e, t, r) => {
|
|
6039
6039
|
const n = e ?? et.MEDICATION.code, s = t ?? et.FOOD.code, o = r ?? et.ENVIRONMENT.code, [a, i, c] = await Promise.all([
|
|
6040
6040
|
br(n),
|
|
6041
6041
|
br(s),
|
|
@@ -6089,22 +6089,22 @@ function tp(e) {
|
|
|
6089
6089
|
};
|
|
6090
6090
|
});
|
|
6091
6091
|
}
|
|
6092
|
-
async function
|
|
6092
|
+
async function Cy(e) {
|
|
6093
6093
|
const t = await ep(e);
|
|
6094
6094
|
return tp(t);
|
|
6095
6095
|
}
|
|
6096
6096
|
var rp = /* @__PURE__ */ ((e) => (e.Active = "Active", e.Inactive = "Inactive", e))(rp || {}), np = /* @__PURE__ */ ((e) => (e.mild = "mild", e.moderate = "moderate", e.severe = "severe", e))(np || {});
|
|
6097
|
-
const
|
|
6097
|
+
const Ly = "http://fhir.openmrs.org/code-system/encounter-type", ei = "problem-list-item", ky = "http://terminology.hl7.org/CodeSystem/condition-ver-status", ti = "encounter-diagnosis", Uy = "http://terminology.hl7.org/CodeSystem/condition-clinical", xy = "http://terminology.hl7.org/CodeSystem/condition-category", qy = "http://fhir.bahmni.org/ext/lab-order-concept-type", My = "http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation", Fy = "http://fhir.bahmni.org/ext/observation/form-namespace-path", jy = "http://fhir.bahmni.org/ext/observation/obs-value-attachment", Vy = "Numeric", By = "Complex", Hy = "final", zy = "Observation", Gy = /^\d{4}-\d{2}-\d{2}/, sp = /^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}/, Ky = {
|
|
6098
6098
|
ABNORMAL: { code: "A", display: "Abnormal" },
|
|
6099
6099
|
NORMAL: { code: "N", display: "Normal" }
|
|
6100
6100
|
}, op = (e) => ce + `/Condition?category=${ei}&patient=${e}&_count=100&_sort=-_lastUpdated`, ap = (e, t = 10, r = 0) => ce + `/Condition?category=${ei}&patient=${e}&_count=${t}&_getpagesoffset=${r}&_sort=-_lastUpdated`;
|
|
6101
6101
|
async function ip(e) {
|
|
6102
6102
|
return await F(`${op(e)}`);
|
|
6103
6103
|
}
|
|
6104
|
-
async function
|
|
6104
|
+
async function Yy(e) {
|
|
6105
6105
|
return (await ip(e)).entry?.filter((n) => n.resource?.resourceType === "Condition").map((n) => n.resource) ?? [];
|
|
6106
6106
|
}
|
|
6107
|
-
async function
|
|
6107
|
+
async function Wy(e, t = 10, r = 1) {
|
|
6108
6108
|
const n = (r - 1) * t, s = await F(
|
|
6109
6109
|
ap(e, t, n)
|
|
6110
6110
|
);
|
|
@@ -6170,11 +6170,11 @@ function gp(e) {
|
|
|
6170
6170
|
}
|
|
6171
6171
|
return Array.from(t.values());
|
|
6172
6172
|
}
|
|
6173
|
-
async function
|
|
6173
|
+
async function Jy(e) {
|
|
6174
6174
|
const t = await fp(e), r = ri(t);
|
|
6175
6175
|
return gp(r);
|
|
6176
6176
|
}
|
|
6177
|
-
async function
|
|
6177
|
+
async function Qy(e, t = 10, r = 1) {
|
|
6178
6178
|
const n = (r - 1) * t, s = await pp(
|
|
6179
6179
|
e,
|
|
6180
6180
|
t,
|
|
@@ -6275,7 +6275,7 @@ function Pp(e) {
|
|
|
6275
6275
|
function Ip(e) {
|
|
6276
6276
|
return !e || e.length === 0 ? "" : e.map((t) => t.text).filter(Boolean).join(" ");
|
|
6277
6277
|
}
|
|
6278
|
-
function
|
|
6278
|
+
function Dp(e, t, r) {
|
|
6279
6279
|
if (e?.display)
|
|
6280
6280
|
return e.display;
|
|
6281
6281
|
if (e?.reference) {
|
|
@@ -6291,7 +6291,7 @@ function Cp(e, t, r) {
|
|
|
6291
6291
|
);
|
|
6292
6292
|
return n?.code?.text ? n.code.text : e?.reference ? e.reference : "Medication";
|
|
6293
6293
|
}
|
|
6294
|
-
function
|
|
6294
|
+
function Cp(e, t, r) {
|
|
6295
6295
|
if (e?.reference) {
|
|
6296
6296
|
const s = e.reference.split("/").pop();
|
|
6297
6297
|
if (s) {
|
|
@@ -6314,11 +6314,11 @@ function Lp(e) {
|
|
|
6314
6314
|
const s = n.resource;
|
|
6315
6315
|
s.resourceType === "Medication" && r.set(s.id, s);
|
|
6316
6316
|
}), t.map((n) => {
|
|
6317
|
-
const s = n.medicationReference, o = n.requester, a = _p(n), i =
|
|
6317
|
+
const s = n.medicationReference, o = n.requester, a = _p(n), i = Dp(
|
|
6318
6318
|
s,
|
|
6319
6319
|
n,
|
|
6320
6320
|
r
|
|
6321
|
-
), c =
|
|
6321
|
+
), c = Cp(
|
|
6322
6322
|
s,
|
|
6323
6323
|
n,
|
|
6324
6324
|
r
|
|
@@ -6348,7 +6348,7 @@ function Lp(e) {
|
|
|
6348
6348
|
});
|
|
6349
6349
|
}
|
|
6350
6350
|
const Bs = (e) => e.priority === "stat" || e.dosageInstruction?.[0]?.timing?.code?.text === "Immediately" || !1;
|
|
6351
|
-
async function
|
|
6351
|
+
async function Xy(e, t, r, n = !1) {
|
|
6352
6352
|
const s = await Sp(
|
|
6353
6353
|
e,
|
|
6354
6354
|
t,
|
|
@@ -6357,17 +6357,17 @@ async function Zy(e, t, r, n = !1) {
|
|
|
6357
6357
|
);
|
|
6358
6358
|
return Lp(s);
|
|
6359
6359
|
}
|
|
6360
|
-
async function
|
|
6360
|
+
async function Zy() {
|
|
6361
6361
|
return await F(
|
|
6362
6362
|
wp
|
|
6363
6363
|
);
|
|
6364
6364
|
}
|
|
6365
|
-
async function
|
|
6365
|
+
async function ev(e, t = 20) {
|
|
6366
6366
|
return await F(
|
|
6367
6367
|
Ep(e, t)
|
|
6368
6368
|
);
|
|
6369
6369
|
}
|
|
6370
|
-
async function
|
|
6370
|
+
async function tv() {
|
|
6371
6371
|
return await F(bp);
|
|
6372
6372
|
}
|
|
6373
6373
|
const kp = 200, Up = (e, t, r, n, s) => {
|
|
@@ -6401,7 +6401,7 @@ async function Pt(e, t, r, n, s) {
|
|
|
6401
6401
|
return a.entry && (a.entry = xp(a.entry), a.total = a.entry.length), a;
|
|
6402
6402
|
}
|
|
6403
6403
|
const qp = (e) => `${ce}/ImagingStudy/${e}/$fetch-quality-assessment`;
|
|
6404
|
-
async function
|
|
6404
|
+
async function rv(e, t, r, n) {
|
|
6405
6405
|
return await Pt(
|
|
6406
6406
|
t,
|
|
6407
6407
|
e,
|
|
@@ -6409,7 +6409,7 @@ async function nv(e, t, r, n) {
|
|
|
6409
6409
|
n
|
|
6410
6410
|
);
|
|
6411
6411
|
}
|
|
6412
|
-
async function
|
|
6412
|
+
async function nv(e, t, r, n) {
|
|
6413
6413
|
return await Pt(
|
|
6414
6414
|
t,
|
|
6415
6415
|
e,
|
|
@@ -6418,7 +6418,7 @@ async function sv(e, t, r, n) {
|
|
|
6418
6418
|
"ImagingStudy:basedon"
|
|
6419
6419
|
);
|
|
6420
6420
|
}
|
|
6421
|
-
async function
|
|
6421
|
+
async function sv(e, t, r, n) {
|
|
6422
6422
|
return (await Pt(
|
|
6423
6423
|
t,
|
|
6424
6424
|
e,
|
|
@@ -6426,10 +6426,10 @@ async function ov(e, t, r, n) {
|
|
|
6426
6426
|
n
|
|
6427
6427
|
)).entry?.filter((a) => a.resource?.resourceType === "ServiceRequest").map((a) => a.resource) ?? [];
|
|
6428
6428
|
}
|
|
6429
|
-
async function
|
|
6429
|
+
async function ov(e) {
|
|
6430
6430
|
return await F(qp(e));
|
|
6431
6431
|
}
|
|
6432
|
-
async function
|
|
6432
|
+
async function av(e, t, r, n) {
|
|
6433
6433
|
return await Pt(
|
|
6434
6434
|
t,
|
|
6435
6435
|
e,
|
|
@@ -6441,29 +6441,29 @@ const Mp = (e, t) => {
|
|
|
6441
6441
|
const r = `${ce}/DiagnosticReport?patient=${e}`;
|
|
6442
6442
|
return t ? `${r}&based-on=${t}` : r;
|
|
6443
6443
|
}, Fp = (e) => `${ce}/DiagnosticReport/${e}/$fetch-bundle`, jp = (e) => `${ce}/DiagnosticReport/${e}/$update-bundle`;
|
|
6444
|
-
async function
|
|
6444
|
+
async function iv(e, t = []) {
|
|
6445
6445
|
const r = t.length > 0 ? t.join(",") : void 0, n = Mp(e, r);
|
|
6446
6446
|
return await F(n);
|
|
6447
6447
|
}
|
|
6448
|
-
async function
|
|
6448
|
+
async function cv(e) {
|
|
6449
6449
|
const t = Fp(e);
|
|
6450
6450
|
return await F(t);
|
|
6451
6451
|
}
|
|
6452
|
-
async function
|
|
6452
|
+
async function uv(e, t) {
|
|
6453
6453
|
const r = jp(e);
|
|
6454
|
-
return await
|
|
6454
|
+
return await De(r, t);
|
|
6455
6455
|
}
|
|
6456
|
-
const
|
|
6456
|
+
const lv = [
|
|
6457
6457
|
"preliminary",
|
|
6458
6458
|
"final",
|
|
6459
6459
|
"amended",
|
|
6460
6460
|
"corrected",
|
|
6461
6461
|
"appended"
|
|
6462
|
-
],
|
|
6462
|
+
], dv = [
|
|
6463
6463
|
"registered",
|
|
6464
6464
|
"unknown",
|
|
6465
6465
|
"partial"
|
|
6466
|
-
], Vp = "All Orderables", Bp = "/openmrs/ws/rest/v1/ordertype?v=custom:(uuid,display,conceptClasses:(uuid,name))", Hp = "LabSet", zp = "http://fhir.bahmni.org/ext/ValueSet/concept-class",
|
|
6466
|
+
], Vp = "All Orderables", Bp = "/openmrs/ws/rest/v1/ordertype?v=custom:(uuid,display,conceptClasses:(uuid,name))", Hp = "LabSet", zp = "http://fhir.bahmni.org/ext/ValueSet/concept-class", fv = ["orderTypes"], Gp = async () => await Kf(Vp), zn = async () => await F(Bp), Kp = (e) => {
|
|
6467
6467
|
let t = e.display ?? "Unknown investigation";
|
|
6468
6468
|
return ni(e) === Hp && (t += ` (${ie.t("INVESTIGATION_PANEL")})`), t;
|
|
6469
6469
|
}, Yp = (e) => {
|
|
@@ -6495,12 +6495,12 @@ const dv = [
|
|
|
6495
6495
|
});
|
|
6496
6496
|
});
|
|
6497
6497
|
}), r;
|
|
6498
|
-
},
|
|
6498
|
+
}, pv = async () => {
|
|
6499
6499
|
const e = await Gp(), t = await zn();
|
|
6500
6500
|
return Wp(e, Yp(t));
|
|
6501
|
-
},
|
|
6501
|
+
}, hv = async (e) => e ? (await zn()).results.find(
|
|
6502
6502
|
(n) => n.display.toLowerCase() === e.toLowerCase()
|
|
6503
|
-
)?.uuid : void 0,
|
|
6503
|
+
)?.uuid : void 0, mv = async () => (await zn()).results.map((t) => t.display), gv = async (e, t, r) => {
|
|
6504
6504
|
const n = [];
|
|
6505
6505
|
for (const s of e) {
|
|
6506
6506
|
const o = s.uuid;
|
|
@@ -6523,7 +6523,7 @@ const dv = [
|
|
|
6523
6523
|
function Jp(e) {
|
|
6524
6524
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
6525
6525
|
}
|
|
6526
|
-
var Lt = { exports: {} }, un = {},
|
|
6526
|
+
var Lt = { exports: {} }, un = {}, Ce = {}, je = {}, ln = {}, dn = {}, fn = {}, Hs;
|
|
6527
6527
|
function Pr() {
|
|
6528
6528
|
return Hs || (Hs = 1, (function(e) {
|
|
6529
6529
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.regexpCode = e.getEsmExportName = e.getProperty = e.safeStringify = e.stringify = e.strConcat = e.addCodeArg = e.str = e._ = e.nil = e._Code = e.Name = e.IDENTIFIER = e._CodeOrName = void 0;
|
|
@@ -6822,12 +6822,12 @@ function Z() {
|
|
|
6822
6822
|
}
|
|
6823
6823
|
}
|
|
6824
6824
|
class a extends o {
|
|
6825
|
-
constructor(w, T,
|
|
6826
|
-
super(), this.varKind = w, this.name = T, this.rhs =
|
|
6825
|
+
constructor(w, T, D) {
|
|
6826
|
+
super(), this.varKind = w, this.name = T, this.rhs = D;
|
|
6827
6827
|
}
|
|
6828
6828
|
render({ es5: w, _n: T }) {
|
|
6829
|
-
const
|
|
6830
|
-
return `${
|
|
6829
|
+
const D = w ? r.varKinds.var : this.varKind, V = this.rhs === void 0 ? "" : ` = ${this.rhs}`;
|
|
6830
|
+
return `${D} ${this.name}${V};` + T;
|
|
6831
6831
|
}
|
|
6832
6832
|
optimizeNames(w, T) {
|
|
6833
6833
|
if (w[this.name.str])
|
|
@@ -6838,8 +6838,8 @@ function Z() {
|
|
|
6838
6838
|
}
|
|
6839
6839
|
}
|
|
6840
6840
|
class i extends o {
|
|
6841
|
-
constructor(w, T,
|
|
6842
|
-
super(), this.lhs = w, this.rhs = T, this.sideEffects =
|
|
6841
|
+
constructor(w, T, D) {
|
|
6842
|
+
super(), this.lhs = w, this.rhs = T, this.sideEffects = D;
|
|
6843
6843
|
}
|
|
6844
6844
|
render({ _n: w }) {
|
|
6845
6845
|
return `${this.lhs} = ${this.rhs};` + w;
|
|
@@ -6854,8 +6854,8 @@ function Z() {
|
|
|
6854
6854
|
}
|
|
6855
6855
|
}
|
|
6856
6856
|
class c extends i {
|
|
6857
|
-
constructor(w, T,
|
|
6858
|
-
super(w,
|
|
6857
|
+
constructor(w, T, D, V) {
|
|
6858
|
+
super(w, D, V), this.op = T;
|
|
6859
6859
|
}
|
|
6860
6860
|
render({ _n: w }) {
|
|
6861
6861
|
return `${this.lhs} ${this.op}= ${this.rhs};` + w;
|
|
@@ -6910,25 +6910,25 @@ function Z() {
|
|
|
6910
6910
|
super(), this.nodes = w;
|
|
6911
6911
|
}
|
|
6912
6912
|
render(w) {
|
|
6913
|
-
return this.nodes.reduce((T,
|
|
6913
|
+
return this.nodes.reduce((T, D) => T + D.render(w), "");
|
|
6914
6914
|
}
|
|
6915
6915
|
optimizeNodes() {
|
|
6916
6916
|
const { nodes: w } = this;
|
|
6917
6917
|
let T = w.length;
|
|
6918
6918
|
for (; T--; ) {
|
|
6919
|
-
const
|
|
6920
|
-
Array.isArray(
|
|
6919
|
+
const D = w[T].optimizeNodes();
|
|
6920
|
+
Array.isArray(D) ? w.splice(T, 1, ...D) : D ? w[T] = D : w.splice(T, 1);
|
|
6921
6921
|
}
|
|
6922
6922
|
return w.length > 0 ? this : void 0;
|
|
6923
6923
|
}
|
|
6924
6924
|
optimizeNames(w, T) {
|
|
6925
|
-
const { nodes:
|
|
6926
|
-
let V =
|
|
6925
|
+
const { nodes: D } = this;
|
|
6926
|
+
let V = D.length;
|
|
6927
6927
|
for (; V--; ) {
|
|
6928
|
-
const z =
|
|
6929
|
-
z.optimizeNames(w, T) || (re(w, z.names),
|
|
6928
|
+
const z = D[V];
|
|
6929
|
+
z.optimizeNames(w, T) || (re(w, z.names), D.splice(V, 1));
|
|
6930
6930
|
}
|
|
6931
|
-
return
|
|
6931
|
+
return D.length > 0 ? this : void 0;
|
|
6932
6932
|
}
|
|
6933
6933
|
get names() {
|
|
6934
6934
|
return this.nodes.reduce((w, T) => j(w, T.names), {});
|
|
@@ -6959,8 +6959,8 @@ function Z() {
|
|
|
6959
6959
|
return this.nodes;
|
|
6960
6960
|
let T = this.else;
|
|
6961
6961
|
if (T) {
|
|
6962
|
-
const
|
|
6963
|
-
T = this.else = Array.isArray(
|
|
6962
|
+
const D = T.optimizeNodes();
|
|
6963
|
+
T = this.else = Array.isArray(D) ? new f(D) : D;
|
|
6964
6964
|
}
|
|
6965
6965
|
if (T)
|
|
6966
6966
|
return w === !1 ? T instanceof p ? T : T.nodes : this.nodes.length ? this : new p(ne(w), T instanceof p ? [T] : T.nodes);
|
|
@@ -6968,8 +6968,8 @@ function Z() {
|
|
|
6968
6968
|
return this;
|
|
6969
6969
|
}
|
|
6970
6970
|
optimizeNames(w, T) {
|
|
6971
|
-
var
|
|
6972
|
-
if (this.else = (
|
|
6971
|
+
var D;
|
|
6972
|
+
if (this.else = (D = this.else) === null || D === void 0 ? void 0 : D.optimizeNames(w, T), !!(super.optimizeNames(w, T) || this.else))
|
|
6973
6973
|
return this.condition = G(this.condition, w, T), this;
|
|
6974
6974
|
}
|
|
6975
6975
|
get names() {
|
|
@@ -6997,12 +6997,12 @@ function Z() {
|
|
|
6997
6997
|
}
|
|
6998
6998
|
}
|
|
6999
6999
|
class E extends u {
|
|
7000
|
-
constructor(w, T,
|
|
7001
|
-
super(), this.varKind = w, this.name = T, this.from =
|
|
7000
|
+
constructor(w, T, D, V) {
|
|
7001
|
+
super(), this.varKind = w, this.name = T, this.from = D, this.to = V;
|
|
7002
7002
|
}
|
|
7003
7003
|
render(w) {
|
|
7004
|
-
const T = w.es5 ? r.varKinds.var : this.varKind, { name:
|
|
7005
|
-
return `for(${T} ${
|
|
7004
|
+
const T = w.es5 ? r.varKinds.var : this.varKind, { name: D, from: V, to: z } = this;
|
|
7005
|
+
return `for(${T} ${D}=${V}; ${D}<${z}; ${D}++)` + super.render(w);
|
|
7006
7006
|
}
|
|
7007
7007
|
get names() {
|
|
7008
7008
|
const w = B(super.names, this.from);
|
|
@@ -7010,8 +7010,8 @@ function Z() {
|
|
|
7010
7010
|
}
|
|
7011
7011
|
}
|
|
7012
7012
|
class _ extends u {
|
|
7013
|
-
constructor(w, T,
|
|
7014
|
-
super(), this.loop = w, this.varKind = T, this.name =
|
|
7013
|
+
constructor(w, T, D, V) {
|
|
7014
|
+
super(), this.loop = w, this.varKind = T, this.name = D, this.iterable = V;
|
|
7015
7015
|
}
|
|
7016
7016
|
render(w) {
|
|
7017
7017
|
return `for(${this.varKind} ${this.name} ${this.loop} ${this.iterable})` + super.render(w);
|
|
@@ -7025,8 +7025,8 @@ function Z() {
|
|
|
7025
7025
|
}
|
|
7026
7026
|
}
|
|
7027
7027
|
class b extends y {
|
|
7028
|
-
constructor(w, T,
|
|
7029
|
-
super(), this.name = w, this.args = T, this.async =
|
|
7028
|
+
constructor(w, T, D) {
|
|
7029
|
+
super(), this.name = w, this.args = T, this.async = D;
|
|
7030
7030
|
}
|
|
7031
7031
|
render(w) {
|
|
7032
7032
|
return `${this.async ? "async " : ""}function ${this.name}(${this.args})` + super.render(w);
|
|
@@ -7049,8 +7049,8 @@ function Z() {
|
|
|
7049
7049
|
return super.optimizeNodes(), (w = this.catch) === null || w === void 0 || w.optimizeNodes(), (T = this.finally) === null || T === void 0 || T.optimizeNodes(), this;
|
|
7050
7050
|
}
|
|
7051
7051
|
optimizeNames(w, T) {
|
|
7052
|
-
var
|
|
7053
|
-
return super.optimizeNames(w, T), (
|
|
7052
|
+
var D, V;
|
|
7053
|
+
return super.optimizeNames(w, T), (D = this.catch) === null || D === void 0 || D.optimizeNames(w, T), (V = this.finally) === null || V === void 0 || V.optimizeNames(w, T), this;
|
|
7054
7054
|
}
|
|
7055
7055
|
get names() {
|
|
7056
7056
|
const w = super.names;
|
|
@@ -7090,8 +7090,8 @@ function Z() {
|
|
|
7090
7090
|
}
|
|
7091
7091
|
// reserves unique name in the external scope and assigns value to it
|
|
7092
7092
|
scopeValue(w, T) {
|
|
7093
|
-
const
|
|
7094
|
-
return (this._values[
|
|
7093
|
+
const D = this._extScope.value(w, T);
|
|
7094
|
+
return (this._values[D.prefix] || (this._values[D.prefix] = /* @__PURE__ */ new Set())).add(D), D;
|
|
7095
7095
|
}
|
|
7096
7096
|
getScopeValue(w, T) {
|
|
7097
7097
|
return this._extScope.getValue(w, T);
|
|
@@ -7104,25 +7104,25 @@ function Z() {
|
|
|
7104
7104
|
scopeCode() {
|
|
7105
7105
|
return this._extScope.scopeCode(this._values);
|
|
7106
7106
|
}
|
|
7107
|
-
_def(w, T,
|
|
7107
|
+
_def(w, T, D, V) {
|
|
7108
7108
|
const z = this._scope.toName(T);
|
|
7109
|
-
return
|
|
7109
|
+
return D !== void 0 && V && (this._constants[z.str] = D), this._leafNode(new a(w, z, D)), z;
|
|
7110
7110
|
}
|
|
7111
7111
|
// `const` declaration (`var` in es5 mode)
|
|
7112
|
-
const(w, T,
|
|
7113
|
-
return this._def(r.varKinds.const, w, T,
|
|
7112
|
+
const(w, T, D) {
|
|
7113
|
+
return this._def(r.varKinds.const, w, T, D);
|
|
7114
7114
|
}
|
|
7115
7115
|
// `let` declaration with optional assignment (`var` in es5 mode)
|
|
7116
|
-
let(w, T,
|
|
7117
|
-
return this._def(r.varKinds.let, w, T,
|
|
7116
|
+
let(w, T, D) {
|
|
7117
|
+
return this._def(r.varKinds.let, w, T, D);
|
|
7118
7118
|
}
|
|
7119
7119
|
// `var` declaration with optional assignment
|
|
7120
|
-
var(w, T,
|
|
7121
|
-
return this._def(r.varKinds.var, w, T,
|
|
7120
|
+
var(w, T, D) {
|
|
7121
|
+
return this._def(r.varKinds.var, w, T, D);
|
|
7122
7122
|
}
|
|
7123
7123
|
// assignment code
|
|
7124
|
-
assign(w, T,
|
|
7125
|
-
return this._leafNode(new i(w, T,
|
|
7124
|
+
assign(w, T, D) {
|
|
7125
|
+
return this._leafNode(new i(w, T, D));
|
|
7126
7126
|
}
|
|
7127
7127
|
// `+=` code
|
|
7128
7128
|
add(w, T) {
|
|
@@ -7135,17 +7135,17 @@ function Z() {
|
|
|
7135
7135
|
// returns code for object literal for the passed argument list of key-value pairs
|
|
7136
7136
|
object(...w) {
|
|
7137
7137
|
const T = ["{"];
|
|
7138
|
-
for (const [
|
|
7139
|
-
T.length > 1 && T.push(","), T.push(
|
|
7138
|
+
for (const [D, V] of w)
|
|
7139
|
+
T.length > 1 && T.push(","), T.push(D), (D !== V || this.opts.es5) && (T.push(":"), (0, t.addCodeArg)(T, V));
|
|
7140
7140
|
return T.push("}"), new t._Code(T);
|
|
7141
7141
|
}
|
|
7142
7142
|
// `if` clause (or statement if `thenBody` and, optionally, `elseBody` are passed)
|
|
7143
|
-
if(w, T,
|
|
7144
|
-
if (this._blockNode(new p(w)), T &&
|
|
7145
|
-
this.code(T).else().code(
|
|
7143
|
+
if(w, T, D) {
|
|
7144
|
+
if (this._blockNode(new p(w)), T && D)
|
|
7145
|
+
this.code(T).else().code(D).endIf();
|
|
7146
7146
|
else if (T)
|
|
7147
7147
|
this.code(T).endIf();
|
|
7148
|
-
else if (
|
|
7148
|
+
else if (D)
|
|
7149
7149
|
throw new Error('CodeGen: "else" body without "then" body');
|
|
7150
7150
|
return this;
|
|
7151
7151
|
}
|
|
@@ -7169,28 +7169,28 @@ function Z() {
|
|
|
7169
7169
|
return this._for(new h(w), T);
|
|
7170
7170
|
}
|
|
7171
7171
|
// `for` statement for a range of values
|
|
7172
|
-
forRange(w, T,
|
|
7172
|
+
forRange(w, T, D, V, z = this.opts.es5 ? r.varKinds.var : r.varKinds.let) {
|
|
7173
7173
|
const se = this._scope.toName(w);
|
|
7174
|
-
return this._for(new E(z, se, T,
|
|
7174
|
+
return this._for(new E(z, se, T, D), () => V(se));
|
|
7175
7175
|
}
|
|
7176
7176
|
// `for-of` statement (in es5 mode replace with a normal for loop)
|
|
7177
|
-
forOf(w, T,
|
|
7177
|
+
forOf(w, T, D, V = r.varKinds.const) {
|
|
7178
7178
|
const z = this._scope.toName(w);
|
|
7179
7179
|
if (this.opts.es5) {
|
|
7180
7180
|
const se = T instanceof t.Name ? T : this.var("_arr", T);
|
|
7181
7181
|
return this.forRange("_i", 0, (0, t._)`${se}.length`, (ee) => {
|
|
7182
|
-
this.var(z, (0, t._)`${se}[${ee}]`),
|
|
7182
|
+
this.var(z, (0, t._)`${se}[${ee}]`), D(z);
|
|
7183
7183
|
});
|
|
7184
7184
|
}
|
|
7185
|
-
return this._for(new _("of", V, z, T), () =>
|
|
7185
|
+
return this._for(new _("of", V, z, T), () => D(z));
|
|
7186
7186
|
}
|
|
7187
7187
|
// `for-in` statement.
|
|
7188
7188
|
// With option `ownProperties` replaced with a `for-of` loop for object keys
|
|
7189
|
-
forIn(w, T,
|
|
7189
|
+
forIn(w, T, D, V = this.opts.es5 ? r.varKinds.var : r.varKinds.const) {
|
|
7190
7190
|
if (this.opts.ownProperties)
|
|
7191
|
-
return this.forOf(w, (0, t._)`Object.keys(${T})`,
|
|
7191
|
+
return this.forOf(w, (0, t._)`Object.keys(${T})`, D);
|
|
7192
7192
|
const z = this._scope.toName(w);
|
|
7193
|
-
return this._for(new _("in", V, z, T), () =>
|
|
7193
|
+
return this._for(new _("in", V, z, T), () => D(z));
|
|
7194
7194
|
}
|
|
7195
7195
|
// end `for` loop
|
|
7196
7196
|
endFor() {
|
|
@@ -7212,15 +7212,15 @@ function Z() {
|
|
|
7212
7212
|
return this._endBlockNode(R);
|
|
7213
7213
|
}
|
|
7214
7214
|
// `try` statement
|
|
7215
|
-
try(w, T,
|
|
7216
|
-
if (!T && !
|
|
7215
|
+
try(w, T, D) {
|
|
7216
|
+
if (!T && !D)
|
|
7217
7217
|
throw new Error('CodeGen: "try" without "catch" and "finally"');
|
|
7218
7218
|
const V = new N();
|
|
7219
7219
|
if (this._blockNode(V), this.code(w), T) {
|
|
7220
7220
|
const z = this.name("e");
|
|
7221
7221
|
this._currNode = V.catch = new k(z), T(z);
|
|
7222
7222
|
}
|
|
7223
|
-
return
|
|
7223
|
+
return D && (this._currNode = V.finally = new M(), this.code(D)), this._endBlockNode(k, M);
|
|
7224
7224
|
}
|
|
7225
7225
|
// `throw` statement
|
|
7226
7226
|
throw(w) {
|
|
@@ -7235,14 +7235,14 @@ function Z() {
|
|
|
7235
7235
|
const T = this._blockStarts.pop();
|
|
7236
7236
|
if (T === void 0)
|
|
7237
7237
|
throw new Error("CodeGen: not in self-balancing block");
|
|
7238
|
-
const
|
|
7239
|
-
if (
|
|
7240
|
-
throw new Error(`CodeGen: wrong number of nodes: ${
|
|
7238
|
+
const D = this._nodes.length - T;
|
|
7239
|
+
if (D < 0 || w !== void 0 && D !== w)
|
|
7240
|
+
throw new Error(`CodeGen: wrong number of nodes: ${D} vs ${w} expected`);
|
|
7241
7241
|
return this._nodes.length = T, this;
|
|
7242
7242
|
}
|
|
7243
7243
|
// `function` heading (or definition if funcBody is passed)
|
|
7244
|
-
func(w, T = t.nil,
|
|
7245
|
-
return this._blockNode(new b(w, T,
|
|
7244
|
+
func(w, T = t.nil, D, V) {
|
|
7245
|
+
return this._blockNode(new b(w, T, D)), V && this.code(V).endFunc(), this;
|
|
7246
7246
|
}
|
|
7247
7247
|
// end function definition
|
|
7248
7248
|
endFunc() {
|
|
@@ -7259,8 +7259,8 @@ function Z() {
|
|
|
7259
7259
|
this._currNode.nodes.push(w), this._nodes.push(w);
|
|
7260
7260
|
}
|
|
7261
7261
|
_endBlockNode(w, T) {
|
|
7262
|
-
const
|
|
7263
|
-
if (
|
|
7262
|
+
const D = this._currNode;
|
|
7263
|
+
if (D instanceof w || T && D instanceof T)
|
|
7264
7264
|
return this._nodes.pop(), this;
|
|
7265
7265
|
throw new Error(`CodeGen: not in block "${T ? `${w.kind}/${T.kind}` : w.kind}"`);
|
|
7266
7266
|
}
|
|
@@ -7293,11 +7293,11 @@ function Z() {
|
|
|
7293
7293
|
}
|
|
7294
7294
|
function G(P, w, T) {
|
|
7295
7295
|
if (P instanceof t.Name)
|
|
7296
|
-
return
|
|
7296
|
+
return D(P);
|
|
7297
7297
|
if (!V(P))
|
|
7298
7298
|
return P;
|
|
7299
|
-
return new t._Code(P._items.reduce((z, se) => (se instanceof t.Name && (se =
|
|
7300
|
-
function
|
|
7299
|
+
return new t._Code(P._items.reduce((z, se) => (se instanceof t.Name && (se = D(se)), se instanceof t._Code ? z.push(...se._items) : z.push(se), z), []));
|
|
7300
|
+
function D(z) {
|
|
7301
7301
|
const se = T[z.str];
|
|
7302
7302
|
return se === void 0 || w[z.str] !== 1 ? z : (delete w[z.str], se);
|
|
7303
7303
|
}
|
|
@@ -7310,7 +7310,7 @@ function Z() {
|
|
|
7310
7310
|
P[T] = (P[T] || 0) - (w[T] || 0);
|
|
7311
7311
|
}
|
|
7312
7312
|
function ne(P) {
|
|
7313
|
-
return typeof P == "boolean" || typeof P == "number" || P === null ? !P : (0, t._)`!${
|
|
7313
|
+
return typeof P == "boolean" || typeof P == "number" || P === null ? !P : (0, t._)`!${C(P)}`;
|
|
7314
7314
|
}
|
|
7315
7315
|
e.not = ne;
|
|
7316
7316
|
const fe = A(e.operators.AND);
|
|
@@ -7324,9 +7324,9 @@ function Z() {
|
|
|
7324
7324
|
}
|
|
7325
7325
|
e.or = U;
|
|
7326
7326
|
function A(P) {
|
|
7327
|
-
return (w, T) => w === t.nil ? T : T === t.nil ? w : (0, t._)`${
|
|
7327
|
+
return (w, T) => w === t.nil ? T : T === t.nil ? w : (0, t._)`${C(w)} ${P} ${C(T)}`;
|
|
7328
7328
|
}
|
|
7329
|
-
function
|
|
7329
|
+
function C(P) {
|
|
7330
7330
|
return P instanceof t.Name ? P : (0, t._)`(${P})`;
|
|
7331
7331
|
}
|
|
7332
7332
|
})(dn)), dn;
|
|
@@ -8303,8 +8303,8 @@ function Br() {
|
|
|
8303
8303
|
}
|
|
8304
8304
|
var co;
|
|
8305
8305
|
function Hr() {
|
|
8306
|
-
if (co) return
|
|
8307
|
-
co = 1, Object.defineProperty(
|
|
8306
|
+
if (co) return Ce;
|
|
8307
|
+
co = 1, Object.defineProperty(Ce, "__esModule", { value: !0 }), Ce.getData = Ce.KeywordCxt = Ce.validateFunctionCode = void 0;
|
|
8308
8308
|
const e = Qp(), t = Ir(), r = oi(), n = Ir(), s = Xp(), o = Zp(), a = eh(), i = Z(), c = Fe(), d = Br(), l = te(), m = Vr();
|
|
8309
8309
|
function v(O) {
|
|
8310
8310
|
if (_(O) && (R(O), E(O))) {
|
|
@@ -8313,7 +8313,7 @@ function Hr() {
|
|
|
8313
8313
|
}
|
|
8314
8314
|
S(O, () => (0, e.topBoolOrEmptySchema)(O));
|
|
8315
8315
|
}
|
|
8316
|
-
|
|
8316
|
+
Ce.validateFunctionCode = v;
|
|
8317
8317
|
function S({ gen: O, validateName: $, schema: L, schemaEnv: x, opts: H }, X) {
|
|
8318
8318
|
H.code.es5 ? O.func($, (0, i._)`${c.default.data}, ${c.default.valCxt}`, x.$async, () => {
|
|
8319
8319
|
O.code((0, i._)`"use strict"; ${u(L, H)}`), g(O, H), O.code(X);
|
|
@@ -8453,11 +8453,11 @@ function Hr() {
|
|
|
8453
8453
|
const H = L[x];
|
|
8454
8454
|
if (typeof H == "object" && (0, r.shouldUseRule)(O.schema, H)) {
|
|
8455
8455
|
const { type: X } = H.definition;
|
|
8456
|
-
X.length && !X.some((pe) =>
|
|
8456
|
+
X.length && !X.some((pe) => C($, pe)) && T(O, `missing type "${X.join(",")}" for keyword "${x}"`);
|
|
8457
8457
|
}
|
|
8458
8458
|
}
|
|
8459
8459
|
}
|
|
8460
|
-
function
|
|
8460
|
+
function C(O, $) {
|
|
8461
8461
|
return O.includes($) || $ === "number" && O.includes("integer");
|
|
8462
8462
|
}
|
|
8463
8463
|
function P(O, $) {
|
|
@@ -8473,7 +8473,7 @@ function Hr() {
|
|
|
8473
8473
|
const L = O.schemaEnv.baseId + O.errSchemaPath;
|
|
8474
8474
|
$ += ` at "${L}" (strictTypes)`, (0, l.checkStrictMode)(O, $, O.opts.strictTypes);
|
|
8475
8475
|
}
|
|
8476
|
-
class
|
|
8476
|
+
class D {
|
|
8477
8477
|
constructor($, L, x) {
|
|
8478
8478
|
if ((0, o.validateKeywordUsage)($, L, x), this.gen = $.gen, this.allErrors = $.allErrors, this.keyword = x, this.data = $.data, this.schema = $.schema[x], this.$data = L.$data && $.opts.$data && this.schema && this.schema.$data, this.schemaValue = (0, l.schemaRefOrVal)($, this.schema, x, this.$data), this.schemaType = L.schemaType, this.parentSchema = $.schema, this.params = {}, this.it = $, this.def = L, this.$data)
|
|
8479
8479
|
this.schemaCode = $.gen.const("vSchema", ee(this.$data, $));
|
|
@@ -8574,9 +8574,9 @@ function Hr() {
|
|
|
8574
8574
|
return H.if(L, () => this.mergeEvaluated($, i.Name)), !0;
|
|
8575
8575
|
}
|
|
8576
8576
|
}
|
|
8577
|
-
|
|
8577
|
+
Ce.KeywordCxt = D;
|
|
8578
8578
|
function V(O, $, L, x) {
|
|
8579
|
-
const H = new
|
|
8579
|
+
const H = new D(O, L, $);
|
|
8580
8580
|
"code" in L ? L.code(H, x) : H.$data && L.validate ? (0, o.funcKeywordCode)(H, L) : "macro" in L ? (0, o.macroKeywordCode)(H, L) : (L.compile || L.validate) && (0, o.funcKeywordCode)(H, L);
|
|
8581
8581
|
}
|
|
8582
8582
|
const z = /^\/(?:[^~]|~0|~1)*$/, se = /^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;
|
|
@@ -8612,7 +8612,7 @@ function Hr() {
|
|
|
8612
8612
|
return `Cannot access ${we} ${he} levels up, current level is ${$}`;
|
|
8613
8613
|
}
|
|
8614
8614
|
}
|
|
8615
|
-
return
|
|
8615
|
+
return Ce.getData = ee, Ce;
|
|
8616
8616
|
}
|
|
8617
8617
|
var Ut = {}, uo;
|
|
8618
8618
|
function Gn() {
|
|
@@ -9225,10 +9225,10 @@ function hh() {
|
|
|
9225
9225
|
unicode: '"minLength"/"maxLength" account for unicode characters by default.'
|
|
9226
9226
|
}, u = 200;
|
|
9227
9227
|
function h(U) {
|
|
9228
|
-
var A,
|
|
9229
|
-
const lt = U.strict, Yr = (A = U.code) === null || A === void 0 ? void 0 : A.optimize, Jn = Yr === !0 || Yr === void 0 ? 1 : Yr || 0, Qn = (P = (
|
|
9228
|
+
var A, C, P, w, T, D, V, z, se, ee, O, $, L, x, H, X, pe, Ae, ve, we, he, Ye, Se, Gr, Kr;
|
|
9229
|
+
const lt = U.strict, Yr = (A = U.code) === null || A === void 0 ? void 0 : A.optimize, Jn = Yr === !0 || Yr === void 0 ? 1 : Yr || 0, Qn = (P = (C = U.code) === null || C === void 0 ? void 0 : C.regExp) !== null && P !== void 0 ? P : S, yi = (w = U.uriResolver) !== null && w !== void 0 ? w : v.default;
|
|
9230
9230
|
return {
|
|
9231
|
-
strictSchema: (
|
|
9231
|
+
strictSchema: (D = (T = U.strictSchema) !== null && T !== void 0 ? T : lt) !== null && D !== void 0 ? D : !0,
|
|
9232
9232
|
strictNumbers: (z = (V = U.strictNumbers) !== null && V !== void 0 ? V : lt) !== null && z !== void 0 ? z : !0,
|
|
9233
9233
|
strictTypes: (ee = (se = U.strictTypes) !== null && se !== void 0 ? se : lt) !== null && ee !== void 0 ? ee : "log",
|
|
9234
9234
|
strictTuples: ($ = (O = U.strictTuples) !== null && O !== void 0 ? O : lt) !== null && $ !== void 0 ? $ : "log",
|
|
@@ -9251,8 +9251,8 @@ function hh() {
|
|
|
9251
9251
|
class E {
|
|
9252
9252
|
constructor(A = {}) {
|
|
9253
9253
|
this.schemas = {}, this.refs = {}, this.formats = {}, this._compilations = /* @__PURE__ */ new Set(), this._loading = {}, this._cache = /* @__PURE__ */ new Map(), A = this.opts = { ...A, ...h(A) };
|
|
9254
|
-
const { es5:
|
|
9255
|
-
this.scope = new i.ValueScope({ scope: {}, prefixes: g, es5:
|
|
9254
|
+
const { es5: C, lines: P } = this.opts.code;
|
|
9255
|
+
this.scope = new i.ValueScope({ scope: {}, prefixes: g, es5: C, lines: P }), this.logger = j(A.logger);
|
|
9256
9256
|
const w = A.validateFormats;
|
|
9257
9257
|
A.validateFormats = !1, this.RULES = (0, o.getRules)(), _.call(this, f, A, "NOT SUPPORTED"), _.call(this, p, A, "DEPRECATED", "warn"), this._metaOpts = M.call(this), A.formats && N.call(this), this._addVocabularies(), this._addDefaultMetaSchema(), A.keywords && k.call(this, A.keywords), typeof A.meta == "object" && this.addMetaSchema(A.meta), R.call(this), A.validateFormats = w;
|
|
9258
9258
|
}
|
|
@@ -9260,48 +9260,48 @@ function hh() {
|
|
|
9260
9260
|
this.addKeyword("$async");
|
|
9261
9261
|
}
|
|
9262
9262
|
_addDefaultMetaSchema() {
|
|
9263
|
-
const { $data: A, meta:
|
|
9263
|
+
const { $data: A, meta: C, schemaId: P } = this.opts;
|
|
9264
9264
|
let w = m;
|
|
9265
|
-
P === "id" && (w = { ...m }, w.id = w.$id, delete w.$id),
|
|
9265
|
+
P === "id" && (w = { ...m }, w.id = w.$id, delete w.$id), C && A && this.addMetaSchema(w, w[P], !1);
|
|
9266
9266
|
}
|
|
9267
9267
|
defaultMeta() {
|
|
9268
|
-
const { meta: A, schemaId:
|
|
9269
|
-
return this.opts.defaultMeta = typeof A == "object" ? A[
|
|
9268
|
+
const { meta: A, schemaId: C } = this.opts;
|
|
9269
|
+
return this.opts.defaultMeta = typeof A == "object" ? A[C] || A : void 0;
|
|
9270
9270
|
}
|
|
9271
|
-
validate(A,
|
|
9271
|
+
validate(A, C) {
|
|
9272
9272
|
let P;
|
|
9273
9273
|
if (typeof A == "string") {
|
|
9274
9274
|
if (P = this.getSchema(A), !P)
|
|
9275
9275
|
throw new Error(`no schema with key or ref "${A}"`);
|
|
9276
9276
|
} else
|
|
9277
9277
|
P = this.compile(A);
|
|
9278
|
-
const w = P(
|
|
9278
|
+
const w = P(C);
|
|
9279
9279
|
return "$async" in P || (this.errors = P.errors), w;
|
|
9280
9280
|
}
|
|
9281
|
-
compile(A,
|
|
9282
|
-
const P = this._addSchema(A,
|
|
9281
|
+
compile(A, C) {
|
|
9282
|
+
const P = this._addSchema(A, C);
|
|
9283
9283
|
return P.validate || this._compileSchemaEnv(P);
|
|
9284
9284
|
}
|
|
9285
|
-
compileAsync(A,
|
|
9285
|
+
compileAsync(A, C) {
|
|
9286
9286
|
if (typeof this.opts.loadSchema != "function")
|
|
9287
9287
|
throw new Error("options.loadSchema should be a function");
|
|
9288
9288
|
const { loadSchema: P } = this.opts;
|
|
9289
|
-
return w.call(this, A,
|
|
9289
|
+
return w.call(this, A, C);
|
|
9290
9290
|
async function w(ee, O) {
|
|
9291
9291
|
await T.call(this, ee.$schema);
|
|
9292
9292
|
const $ = this._addSchema(ee, O);
|
|
9293
|
-
return $.validate ||
|
|
9293
|
+
return $.validate || D.call(this, $);
|
|
9294
9294
|
}
|
|
9295
9295
|
async function T(ee) {
|
|
9296
9296
|
ee && !this.getSchema(ee) && await w.call(this, { $ref: ee }, !0);
|
|
9297
9297
|
}
|
|
9298
|
-
async function
|
|
9298
|
+
async function D(ee) {
|
|
9299
9299
|
try {
|
|
9300
9300
|
return this._compileSchemaEnv(ee);
|
|
9301
9301
|
} catch (O) {
|
|
9302
9302
|
if (!(O instanceof s.default))
|
|
9303
9303
|
throw O;
|
|
9304
|
-
return V.call(this, O), await z.call(this, O.missingSchema),
|
|
9304
|
+
return V.call(this, O), await z.call(this, O.missingSchema), D.call(this, ee);
|
|
9305
9305
|
}
|
|
9306
9306
|
}
|
|
9307
9307
|
function V({ missingSchema: ee, missingRef: O }) {
|
|
@@ -9310,7 +9310,7 @@ function hh() {
|
|
|
9310
9310
|
}
|
|
9311
9311
|
async function z(ee) {
|
|
9312
9312
|
const O = await se.call(this, ee);
|
|
9313
|
-
this.refs[ee] || await T.call(this, O.$schema), this.refs[ee] || this.addSchema(O, ee,
|
|
9313
|
+
this.refs[ee] || await T.call(this, O.$schema), this.refs[ee] || this.addSchema(O, ee, C);
|
|
9314
9314
|
}
|
|
9315
9315
|
async function se(ee) {
|
|
9316
9316
|
const O = this._loading[ee];
|
|
@@ -9324,27 +9324,27 @@ function hh() {
|
|
|
9324
9324
|
}
|
|
9325
9325
|
}
|
|
9326
9326
|
// Adds schema to the instance
|
|
9327
|
-
addSchema(A,
|
|
9327
|
+
addSchema(A, C, P, w = this.opts.validateSchema) {
|
|
9328
9328
|
if (Array.isArray(A)) {
|
|
9329
|
-
for (const
|
|
9330
|
-
this.addSchema(
|
|
9329
|
+
for (const D of A)
|
|
9330
|
+
this.addSchema(D, void 0, P, w);
|
|
9331
9331
|
return this;
|
|
9332
9332
|
}
|
|
9333
9333
|
let T;
|
|
9334
9334
|
if (typeof A == "object") {
|
|
9335
|
-
const { schemaId:
|
|
9336
|
-
if (T = A[
|
|
9337
|
-
throw new Error(`schema ${
|
|
9335
|
+
const { schemaId: D } = this.opts;
|
|
9336
|
+
if (T = A[D], T !== void 0 && typeof T != "string")
|
|
9337
|
+
throw new Error(`schema ${D} must be string`);
|
|
9338
9338
|
}
|
|
9339
|
-
return
|
|
9339
|
+
return C = (0, c.normalizeId)(C || T), this._checkUnique(C), this.schemas[C] = this._addSchema(A, P, C, w, !0), this;
|
|
9340
9340
|
}
|
|
9341
9341
|
// Add schema that will be used to validate other schemas
|
|
9342
9342
|
// options in META_IGNORE_OPTIONS are alway set to false
|
|
9343
|
-
addMetaSchema(A,
|
|
9344
|
-
return this.addSchema(A,
|
|
9343
|
+
addMetaSchema(A, C, P = this.opts.validateSchema) {
|
|
9344
|
+
return this.addSchema(A, C, !0, P), this;
|
|
9345
9345
|
}
|
|
9346
9346
|
// Validate schema against its meta-schema
|
|
9347
|
-
validateSchema(A,
|
|
9347
|
+
validateSchema(A, C) {
|
|
9348
9348
|
if (typeof A == "boolean")
|
|
9349
9349
|
return !0;
|
|
9350
9350
|
let P;
|
|
@@ -9353,7 +9353,7 @@ function hh() {
|
|
|
9353
9353
|
if (P = P || this.opts.defaultMeta || this.defaultMeta(), !P)
|
|
9354
9354
|
return this.logger.warn("meta-schema not available"), this.errors = null, !0;
|
|
9355
9355
|
const w = this.validate(P, A);
|
|
9356
|
-
if (!w &&
|
|
9356
|
+
if (!w && C) {
|
|
9357
9357
|
const T = "schema is invalid: " + this.errorsText();
|
|
9358
9358
|
if (this.opts.validateSchema === "log")
|
|
9359
9359
|
this.logger.error(T);
|
|
@@ -9365,16 +9365,16 @@ function hh() {
|
|
|
9365
9365
|
// Get compiled schema by `key` or `ref`.
|
|
9366
9366
|
// (`key` that was passed to `addSchema` or full schema reference - `schema.$id` or resolved id)
|
|
9367
9367
|
getSchema(A) {
|
|
9368
|
-
let
|
|
9369
|
-
for (; typeof (
|
|
9370
|
-
A =
|
|
9371
|
-
if (
|
|
9368
|
+
let C;
|
|
9369
|
+
for (; typeof (C = b.call(this, A)) == "string"; )
|
|
9370
|
+
A = C;
|
|
9371
|
+
if (C === void 0) {
|
|
9372
9372
|
const { schemaId: P } = this.opts, w = new a.SchemaEnv({ schema: {}, schemaId: P });
|
|
9373
|
-
if (
|
|
9373
|
+
if (C = a.resolveSchema.call(this, w, A), !C)
|
|
9374
9374
|
return;
|
|
9375
|
-
this.refs[A] =
|
|
9375
|
+
this.refs[A] = C;
|
|
9376
9376
|
}
|
|
9377
|
-
return
|
|
9377
|
+
return C.validate || this._compileSchemaEnv(C);
|
|
9378
9378
|
}
|
|
9379
9379
|
// Remove cached schema(s).
|
|
9380
9380
|
// If no parameter is passed all schemas but meta-schemas are removed.
|
|
@@ -9387,12 +9387,12 @@ function hh() {
|
|
|
9387
9387
|
case "undefined":
|
|
9388
9388
|
return this._removeAllSchemas(this.schemas), this._removeAllSchemas(this.refs), this._cache.clear(), this;
|
|
9389
9389
|
case "string": {
|
|
9390
|
-
const
|
|
9391
|
-
return typeof
|
|
9390
|
+
const C = b.call(this, A);
|
|
9391
|
+
return typeof C == "object" && this._cache.delete(C.schema), delete this.schemas[A], delete this.refs[A], this;
|
|
9392
9392
|
}
|
|
9393
9393
|
case "object": {
|
|
9394
|
-
const
|
|
9395
|
-
this._cache.delete(
|
|
9394
|
+
const C = A;
|
|
9395
|
+
this._cache.delete(C);
|
|
9396
9396
|
let P = A[this.opts.schemaId];
|
|
9397
9397
|
return P && (P = (0, c.normalizeId)(P), delete this.schemas[P], delete this.refs[P]), this;
|
|
9398
9398
|
}
|
|
@@ -9402,79 +9402,79 @@ function hh() {
|
|
|
9402
9402
|
}
|
|
9403
9403
|
// add "vocabulary" - a collection of keywords
|
|
9404
9404
|
addVocabulary(A) {
|
|
9405
|
-
for (const
|
|
9406
|
-
this.addKeyword(
|
|
9405
|
+
for (const C of A)
|
|
9406
|
+
this.addKeyword(C);
|
|
9407
9407
|
return this;
|
|
9408
9408
|
}
|
|
9409
|
-
addKeyword(A,
|
|
9409
|
+
addKeyword(A, C) {
|
|
9410
9410
|
let P;
|
|
9411
9411
|
if (typeof A == "string")
|
|
9412
|
-
P = A, typeof
|
|
9413
|
-
else if (typeof A == "object" &&
|
|
9414
|
-
if (
|
|
9412
|
+
P = A, typeof C == "object" && (this.logger.warn("these parameters are deprecated, see docs for addKeyword"), C.keyword = P);
|
|
9413
|
+
else if (typeof A == "object" && C === void 0) {
|
|
9414
|
+
if (C = A, P = C.keyword, Array.isArray(P) && !P.length)
|
|
9415
9415
|
throw new Error("addKeywords: keyword must be string or non-empty array");
|
|
9416
9416
|
} else
|
|
9417
9417
|
throw new Error("invalid addKeywords parameters");
|
|
9418
|
-
if (G.call(this, P,
|
|
9418
|
+
if (G.call(this, P, C), !C)
|
|
9419
9419
|
return (0, l.eachItem)(P, (T) => re.call(this, T)), this;
|
|
9420
|
-
fe.call(this,
|
|
9420
|
+
fe.call(this, C);
|
|
9421
9421
|
const w = {
|
|
9422
|
-
...
|
|
9423
|
-
type: (0, d.getJSONTypes)(
|
|
9424
|
-
schemaType: (0, d.getJSONTypes)(
|
|
9422
|
+
...C,
|
|
9423
|
+
type: (0, d.getJSONTypes)(C.type),
|
|
9424
|
+
schemaType: (0, d.getJSONTypes)(C.schemaType)
|
|
9425
9425
|
};
|
|
9426
|
-
return (0, l.eachItem)(P, w.type.length === 0 ? (T) => re.call(this, T, w) : (T) => w.type.forEach((
|
|
9426
|
+
return (0, l.eachItem)(P, w.type.length === 0 ? (T) => re.call(this, T, w) : (T) => w.type.forEach((D) => re.call(this, T, w, D))), this;
|
|
9427
9427
|
}
|
|
9428
9428
|
getKeyword(A) {
|
|
9429
|
-
const
|
|
9430
|
-
return typeof
|
|
9429
|
+
const C = this.RULES.all[A];
|
|
9430
|
+
return typeof C == "object" ? C.definition : !!C;
|
|
9431
9431
|
}
|
|
9432
9432
|
// Remove keyword
|
|
9433
9433
|
removeKeyword(A) {
|
|
9434
|
-
const { RULES:
|
|
9435
|
-
delete
|
|
9436
|
-
for (const P of
|
|
9434
|
+
const { RULES: C } = this;
|
|
9435
|
+
delete C.keywords[A], delete C.all[A];
|
|
9436
|
+
for (const P of C.rules) {
|
|
9437
9437
|
const w = P.rules.findIndex((T) => T.keyword === A);
|
|
9438
9438
|
w >= 0 && P.rules.splice(w, 1);
|
|
9439
9439
|
}
|
|
9440
9440
|
return this;
|
|
9441
9441
|
}
|
|
9442
9442
|
// Add format
|
|
9443
|
-
addFormat(A,
|
|
9444
|
-
return typeof
|
|
9443
|
+
addFormat(A, C) {
|
|
9444
|
+
return typeof C == "string" && (C = new RegExp(C)), this.formats[A] = C, this;
|
|
9445
9445
|
}
|
|
9446
|
-
errorsText(A = this.errors, { separator:
|
|
9447
|
-
return !A || A.length === 0 ? "No errors" : A.map((w) => `${P}${w.instancePath} ${w.message}`).reduce((w, T) => w +
|
|
9446
|
+
errorsText(A = this.errors, { separator: C = ", ", dataVar: P = "data" } = {}) {
|
|
9447
|
+
return !A || A.length === 0 ? "No errors" : A.map((w) => `${P}${w.instancePath} ${w.message}`).reduce((w, T) => w + C + T);
|
|
9448
9448
|
}
|
|
9449
|
-
$dataMetaSchema(A,
|
|
9449
|
+
$dataMetaSchema(A, C) {
|
|
9450
9450
|
const P = this.RULES.all;
|
|
9451
9451
|
A = JSON.parse(JSON.stringify(A));
|
|
9452
|
-
for (const w of
|
|
9452
|
+
for (const w of C) {
|
|
9453
9453
|
const T = w.split("/").slice(1);
|
|
9454
|
-
let
|
|
9454
|
+
let D = A;
|
|
9455
9455
|
for (const V of T)
|
|
9456
|
-
|
|
9456
|
+
D = D[V];
|
|
9457
9457
|
for (const V in P) {
|
|
9458
9458
|
const z = P[V];
|
|
9459
9459
|
if (typeof z != "object")
|
|
9460
9460
|
continue;
|
|
9461
|
-
const { $data: se } = z.definition, ee =
|
|
9462
|
-
se && ee && (
|
|
9461
|
+
const { $data: se } = z.definition, ee = D[V];
|
|
9462
|
+
se && ee && (D[V] = ue(ee));
|
|
9463
9463
|
}
|
|
9464
9464
|
}
|
|
9465
9465
|
return A;
|
|
9466
9466
|
}
|
|
9467
|
-
_removeAllSchemas(A,
|
|
9467
|
+
_removeAllSchemas(A, C) {
|
|
9468
9468
|
for (const P in A) {
|
|
9469
9469
|
const w = A[P];
|
|
9470
|
-
(!
|
|
9470
|
+
(!C || C.test(P)) && (typeof w == "string" ? delete A[P] : w && !w.meta && (this._cache.delete(w.schema), delete A[P]));
|
|
9471
9471
|
}
|
|
9472
9472
|
}
|
|
9473
|
-
_addSchema(A,
|
|
9474
|
-
let
|
|
9473
|
+
_addSchema(A, C, P, w = this.opts.validateSchema, T = this.opts.addUsedSchema) {
|
|
9474
|
+
let D;
|
|
9475
9475
|
const { schemaId: V } = this.opts;
|
|
9476
9476
|
if (typeof A == "object")
|
|
9477
|
-
|
|
9477
|
+
D = A[V];
|
|
9478
9478
|
else {
|
|
9479
9479
|
if (this.opts.jtd)
|
|
9480
9480
|
throw new Error("schema must be object");
|
|
@@ -9484,9 +9484,9 @@ function hh() {
|
|
|
9484
9484
|
let z = this._cache.get(A);
|
|
9485
9485
|
if (z !== void 0)
|
|
9486
9486
|
return z;
|
|
9487
|
-
P = (0, c.normalizeId)(
|
|
9487
|
+
P = (0, c.normalizeId)(D || P);
|
|
9488
9488
|
const se = c.getSchemaRefs.call(this, A, P);
|
|
9489
|
-
return z = new a.SchemaEnv({ schema: A, schemaId: V, meta:
|
|
9489
|
+
return z = new a.SchemaEnv({ schema: A, schemaId: V, meta: C, baseId: P, localRefs: se }), this._cache.set(z.schema, z), T && !P.startsWith("#") && (P && this._checkUnique(P), this.refs[P] = z), w && this.validateSchema(A, !0), z;
|
|
9490
9490
|
}
|
|
9491
9491
|
_checkUnique(A) {
|
|
9492
9492
|
if (this.schemas[A] || this.refs[A])
|
|
@@ -9498,20 +9498,20 @@ function hh() {
|
|
|
9498
9498
|
return A.validate;
|
|
9499
9499
|
}
|
|
9500
9500
|
_compileMetaSchema(A) {
|
|
9501
|
-
const
|
|
9501
|
+
const C = this.opts;
|
|
9502
9502
|
this.opts = this._metaOpts;
|
|
9503
9503
|
try {
|
|
9504
9504
|
a.compileSchema.call(this, A);
|
|
9505
9505
|
} finally {
|
|
9506
|
-
this.opts =
|
|
9506
|
+
this.opts = C;
|
|
9507
9507
|
}
|
|
9508
9508
|
}
|
|
9509
9509
|
}
|
|
9510
9510
|
E.ValidationError = n.default, E.MissingRefError = s.default, e.default = E;
|
|
9511
|
-
function _(U, A,
|
|
9511
|
+
function _(U, A, C, P = "error") {
|
|
9512
9512
|
for (const w in U) {
|
|
9513
9513
|
const T = w;
|
|
9514
|
-
T in A && this.logger[P](`${
|
|
9514
|
+
T in A && this.logger[P](`${C}: option ${w}. ${U[T]}`);
|
|
9515
9515
|
}
|
|
9516
9516
|
}
|
|
9517
9517
|
function b(U) {
|
|
@@ -9539,8 +9539,8 @@ function hh() {
|
|
|
9539
9539
|
}
|
|
9540
9540
|
this.logger.warn("keywords option as map is deprecated, pass array");
|
|
9541
9541
|
for (const A in U) {
|
|
9542
|
-
const
|
|
9543
|
-
|
|
9542
|
+
const C = U[A];
|
|
9543
|
+
C.keyword || (C.keyword = A), this.addKeyword(C);
|
|
9544
9544
|
}
|
|
9545
9545
|
}
|
|
9546
9546
|
function M() {
|
|
@@ -9564,23 +9564,23 @@ function hh() {
|
|
|
9564
9564
|
}
|
|
9565
9565
|
const B = /^[a-z_$][a-z0-9_$:-]*$/i;
|
|
9566
9566
|
function G(U, A) {
|
|
9567
|
-
const { RULES:
|
|
9567
|
+
const { RULES: C } = this;
|
|
9568
9568
|
if ((0, l.eachItem)(U, (P) => {
|
|
9569
|
-
if (
|
|
9569
|
+
if (C.keywords[P])
|
|
9570
9570
|
throw new Error(`Keyword ${P} is already defined`);
|
|
9571
9571
|
if (!B.test(P))
|
|
9572
9572
|
throw new Error(`Keyword ${P} has invalid name`);
|
|
9573
9573
|
}), !!A && A.$data && !("code" in A || "validate" in A))
|
|
9574
9574
|
throw new Error('$data keyword must have "code" or "validate" function');
|
|
9575
9575
|
}
|
|
9576
|
-
function re(U, A,
|
|
9576
|
+
function re(U, A, C) {
|
|
9577
9577
|
var P;
|
|
9578
9578
|
const w = A?.post;
|
|
9579
|
-
if (
|
|
9579
|
+
if (C && w)
|
|
9580
9580
|
throw new Error('keyword with "post" flag cannot have "type"');
|
|
9581
9581
|
const { RULES: T } = this;
|
|
9582
|
-
let
|
|
9583
|
-
if (
|
|
9582
|
+
let D = w ? T.post : T.rules.find(({ type: z }) => z === C);
|
|
9583
|
+
if (D || (D = { type: C, rules: [] }, T.rules.push(D)), T.keywords[U] = !0, !A)
|
|
9584
9584
|
return;
|
|
9585
9585
|
const V = {
|
|
9586
9586
|
keyword: U,
|
|
@@ -9590,11 +9590,11 @@ function hh() {
|
|
|
9590
9590
|
schemaType: (0, d.getJSONTypes)(A.schemaType)
|
|
9591
9591
|
}
|
|
9592
9592
|
};
|
|
9593
|
-
A.before ? ne.call(this,
|
|
9593
|
+
A.before ? ne.call(this, D, V, A.before) : D.rules.push(V), T.all[U] = V, (P = A.implements) === null || P === void 0 || P.forEach((z) => this.addKeyword(z));
|
|
9594
9594
|
}
|
|
9595
|
-
function ne(U, A,
|
|
9596
|
-
const P = U.rules.findIndex((w) => w.keyword ===
|
|
9597
|
-
P >= 0 ? U.rules.splice(P, 0, A) : (U.rules.push(A), this.logger.warn(`rule ${
|
|
9595
|
+
function ne(U, A, C) {
|
|
9596
|
+
const P = U.rules.findIndex((w) => w.keyword === C);
|
|
9597
|
+
P >= 0 ? U.rules.splice(P, 0, A) : (U.rules.push(A), this.logger.warn(`rule ${C} is not defined`));
|
|
9598
9598
|
}
|
|
9599
9599
|
function fe(U) {
|
|
9600
9600
|
let { metaSchema: A } = U;
|
|
@@ -9978,10 +9978,10 @@ function Oh() {
|
|
|
9978
9978
|
};
|
|
9979
9979
|
return Qt.default = o, Qt;
|
|
9980
9980
|
}
|
|
9981
|
-
var Zt = {},
|
|
9981
|
+
var Zt = {}, Do;
|
|
9982
9982
|
function Ah() {
|
|
9983
|
-
if (
|
|
9984
|
-
|
|
9983
|
+
if (Do) return Zt;
|
|
9984
|
+
Do = 1, Object.defineProperty(Zt, "__esModule", { value: !0 });
|
|
9985
9985
|
const e = Z(), t = te(), r = Yn(), s = {
|
|
9986
9986
|
keyword: "const",
|
|
9987
9987
|
$data: !0,
|
|
@@ -9996,10 +9996,10 @@ function Ah() {
|
|
|
9996
9996
|
};
|
|
9997
9997
|
return Zt.default = s, Zt;
|
|
9998
9998
|
}
|
|
9999
|
-
var er = {},
|
|
9999
|
+
var er = {}, Co;
|
|
10000
10000
|
function Nh() {
|
|
10001
|
-
if (
|
|
10002
|
-
|
|
10001
|
+
if (Co) return er;
|
|
10002
|
+
Co = 1, Object.defineProperty(er, "__esModule", { value: !0 });
|
|
10003
10003
|
const e = Z(), t = te(), r = Yn(), s = {
|
|
10004
10004
|
keyword: "enum",
|
|
10005
10005
|
schemaType: "array",
|
|
@@ -10172,7 +10172,7 @@ function Ih() {
|
|
|
10172
10172
|
return nr.default = o, nr;
|
|
10173
10173
|
}
|
|
10174
10174
|
var sr = {}, Mo;
|
|
10175
|
-
function
|
|
10175
|
+
function Dh() {
|
|
10176
10176
|
if (Mo) return sr;
|
|
10177
10177
|
Mo = 1, Object.defineProperty(sr, "__esModule", { value: !0 });
|
|
10178
10178
|
const e = Z(), t = te(), n = {
|
|
@@ -10229,7 +10229,7 @@ function Ch() {
|
|
|
10229
10229
|
return sr.default = n, sr;
|
|
10230
10230
|
}
|
|
10231
10231
|
var wn = {}, Fo;
|
|
10232
|
-
function
|
|
10232
|
+
function Ch() {
|
|
10233
10233
|
return Fo || (Fo = 1, (function(e) {
|
|
10234
10234
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.validateSchemaDeps = e.validatePropertyDeps = e.error = void 0;
|
|
10235
10235
|
const t = Z(), r = te(), n = Pe();
|
|
@@ -10641,7 +10641,7 @@ var Qo;
|
|
|
10641
10641
|
function Bh() {
|
|
10642
10642
|
if (Qo) return tr;
|
|
10643
10643
|
Qo = 1, Object.defineProperty(tr, "__esModule", { value: !0 });
|
|
10644
|
-
const e = ii(), t = Ph(), r = ci(), n = Ih(), s =
|
|
10644
|
+
const e = ii(), t = Ph(), r = ci(), n = Ih(), s = Dh(), o = Ch(), a = Lh(), i = ui(), c = kh(), d = Uh(), l = xh(), m = qh(), v = Mh(), S = Fh(), y = jh(), g = Vh();
|
|
10645
10645
|
function f(p = !1) {
|
|
10646
10646
|
const u = [
|
|
10647
10647
|
// any
|
|
@@ -10915,7 +10915,7 @@ var sm = nm();
|
|
|
10915
10915
|
const om = /* @__PURE__ */ Jp(sm), oa = {
|
|
10916
10916
|
CONFIG_NOT_FOUND: "CONFIG_ERROR_NOT_FOUND",
|
|
10917
10917
|
VALIDATION_FAILED: "CONFIG_ERROR_VALIDATION_FAILED"
|
|
10918
|
-
},
|
|
10918
|
+
}, yv = async (e, t) => {
|
|
10919
10919
|
const r = await am(e);
|
|
10920
10920
|
if (!r)
|
|
10921
10921
|
throw new Error(oa.CONFIG_NOT_FOUND);
|
|
@@ -10925,7 +10925,7 @@ const om = /* @__PURE__ */ Jp(sm), oa = {
|
|
|
10925
10925
|
}, am = async (e) => await F(e), im = async (e, t) => new om().compile(t)(e), cm = (e) => W + `/form/${e}?v=custom:(resources:(value))`, um = (e) => {
|
|
10926
10926
|
const t = W + "/bahmniie/form/latestPublishedForms";
|
|
10927
10927
|
return e ? t + `?episodeUuid=${e}` : t;
|
|
10928
|
-
},
|
|
10928
|
+
}, vv = (e) => W + `/user/${e}?v=full`, lm = (e, t, r, n) => W + `/bahmniie/form/translations?formName=${encodeURIComponent(e)}&formUuid=${t}&formVersion=${r}&locale=${n}`, _r = "Bahmni", dm = (e, t, r) => {
|
|
10929
10929
|
let s = W + "/bahmnicore/patient/" + e + "/forms";
|
|
10930
10930
|
return r ? s += `?patientProgramUuid=${r}` : t && (s += `?numberOfVisits=${t}`), s;
|
|
10931
10931
|
}, fm = (e, t) => {
|
|
@@ -10939,15 +10939,15 @@ async function hm(e, t) {
|
|
|
10939
10939
|
const r = fm(e, t);
|
|
10940
10940
|
return await F(r);
|
|
10941
10941
|
}
|
|
10942
|
-
async function
|
|
10942
|
+
async function wv(e, t) {
|
|
10943
10943
|
const r = pm(e, t);
|
|
10944
10944
|
return await F(r);
|
|
10945
10945
|
}
|
|
10946
|
-
async function
|
|
10946
|
+
async function Ev(e, t) {
|
|
10947
10947
|
return (await hm(e, t)).entry?.filter((s) => s.resource?.resourceType === "Observation").map((s) => s.resource) ?? [];
|
|
10948
10948
|
}
|
|
10949
10949
|
const mm = (e) => W + `/provider?user=${e}&v=custom:(uuid,display,person)`;
|
|
10950
|
-
async function
|
|
10950
|
+
async function bv(e) {
|
|
10951
10951
|
const t = await F(
|
|
10952
10952
|
mm(e)
|
|
10953
10953
|
);
|
|
@@ -10963,13 +10963,13 @@ async function wm(e) {
|
|
|
10963
10963
|
async function Em(e) {
|
|
10964
10964
|
return (await wm(e)).find((r) => !r.period?.end) ?? null;
|
|
10965
10965
|
}
|
|
10966
|
-
async function
|
|
10966
|
+
async function _v(e) {
|
|
10967
10967
|
return await F(
|
|
10968
10968
|
ym(e)
|
|
10969
10969
|
);
|
|
10970
10970
|
}
|
|
10971
|
-
const
|
|
10972
|
-
async function
|
|
10971
|
+
const Sv = (e, t) => e?.length === 0 ? !1 : t?.length === 0, bm = ce + "/Encounter", _m = W + "/systemsetting/bahmni.encountersession.duration";
|
|
10972
|
+
async function Sm(e) {
|
|
10973
10973
|
const t = new URLSearchParams();
|
|
10974
10974
|
Object.entries(e).forEach(([s, o]) => {
|
|
10975
10975
|
o && t.append(s, o);
|
|
@@ -10977,7 +10977,7 @@ async function Rm(e) {
|
|
|
10977
10977
|
const r = `${bm}?${t.toString()}`;
|
|
10978
10978
|
return (await F(r)).entry?.map((s) => s.resource).filter((s) => s !== void 0) ?? [];
|
|
10979
10979
|
}
|
|
10980
|
-
async function
|
|
10980
|
+
async function Rm() {
|
|
10981
10981
|
try {
|
|
10982
10982
|
const e = await F(
|
|
10983
10983
|
_m
|
|
@@ -10987,7 +10987,7 @@ async function Tm() {
|
|
|
10987
10987
|
return 30;
|
|
10988
10988
|
}
|
|
10989
10989
|
}
|
|
10990
|
-
async function
|
|
10990
|
+
async function Tm(e, t) {
|
|
10991
10991
|
if (!e.length) return null;
|
|
10992
10992
|
try {
|
|
10993
10993
|
const r = await Em(t);
|
|
@@ -10999,25 +10999,25 @@ async function Om(e, t) {
|
|
|
10999
10999
|
return null;
|
|
11000
11000
|
}
|
|
11001
11001
|
}
|
|
11002
|
-
async function
|
|
11002
|
+
async function Rv(e, t, r, n) {
|
|
11003
11003
|
try {
|
|
11004
11004
|
if (!e) return null;
|
|
11005
|
-
const
|
|
11005
|
+
const s = r ?? await Rm(), a = `ge${new Date(Date.now() - s * 60 * 1e3).toISOString()}`, i = {
|
|
11006
11006
|
patient: e,
|
|
11007
11007
|
_tag: "encounter",
|
|
11008
|
-
_lastUpdated:
|
|
11009
|
-
type:
|
|
11008
|
+
_lastUpdated: a,
|
|
11009
|
+
type: n
|
|
11010
11010
|
};
|
|
11011
|
-
t && (
|
|
11012
|
-
const
|
|
11013
|
-
return
|
|
11011
|
+
t && (i.participant = t);
|
|
11012
|
+
const c = await Sm(i);
|
|
11013
|
+
return c.length === 0 ? null : await Tm(c, e);
|
|
11014
11014
|
} catch {
|
|
11015
11015
|
return null;
|
|
11016
11016
|
}
|
|
11017
11017
|
}
|
|
11018
|
-
const
|
|
11019
|
-
async function
|
|
11020
|
-
const t = e.join(","), r = await F(
|
|
11018
|
+
const Om = (e) => ce + `/EpisodeOfCare?_revinclude=Encounter:episode-of-care&_id=${e}`;
|
|
11019
|
+
async function Tv(e) {
|
|
11020
|
+
const t = e.join(","), r = await F(Om(t));
|
|
11021
11021
|
if (r.total === 0)
|
|
11022
11022
|
throw new Error(
|
|
11023
11023
|
"No episode of care found for the provided UUIDs: " + e.join(", ")
|
|
@@ -11029,13 +11029,13 @@ async function Ov(e) {
|
|
|
11029
11029
|
c && s.add(c);
|
|
11030
11030
|
}), { visitUuids: Array.from(s), encounterUuids: o };
|
|
11031
11031
|
}
|
|
11032
|
-
const En = /* @__PURE__ */ new Map(),
|
|
11032
|
+
const En = /* @__PURE__ */ new Map(), Am = async (e) => {
|
|
11033
11033
|
if (En.has(e))
|
|
11034
11034
|
return En.get(e) ?? null;
|
|
11035
11035
|
const t = await F(Ma(e)), r = t ? String(t) : null;
|
|
11036
11036
|
return En.set(e, r), r;
|
|
11037
|
-
},
|
|
11038
|
-
if (!await
|
|
11037
|
+
}, Nm = async () => await Am(el) === "true", $m = async (e, t, r, n = nt.CLINICAL) => {
|
|
11038
|
+
if (!await Nm())
|
|
11039
11039
|
return { logged: !1 };
|
|
11040
11040
|
const o = $n[t];
|
|
11041
11041
|
if (!o)
|
|
@@ -11051,22 +11051,22 @@ const En = /* @__PURE__ */ new Map(), Nm = async (e) => {
|
|
|
11051
11051
|
message: r ? `${o.message}~${JSON.stringify(r)}` : o.message,
|
|
11052
11052
|
module: n
|
|
11053
11053
|
};
|
|
11054
|
-
return await
|
|
11055
|
-
},
|
|
11056
|
-
await
|
|
11054
|
+
return await De(Fl, a), { logged: !0 };
|
|
11055
|
+
}, Ov = () => Ml(async (t) => {
|
|
11056
|
+
await $m(
|
|
11057
11057
|
t.patientUuid,
|
|
11058
11058
|
t.eventType,
|
|
11059
11059
|
t.messageParams,
|
|
11060
11060
|
t.module
|
|
11061
11061
|
);
|
|
11062
|
-
}),
|
|
11062
|
+
}), Av = async () => {
|
|
11063
11063
|
try {
|
|
11064
11064
|
return (await F(xa)).user.privileges;
|
|
11065
11065
|
} catch (e) {
|
|
11066
11066
|
const { message: t } = Rr(e);
|
|
11067
11067
|
throw new Error(t);
|
|
11068
11068
|
}
|
|
11069
|
-
},
|
|
11069
|
+
}, Nv = (e, t) => {
|
|
11070
11070
|
if (!e || e.length === 0)
|
|
11071
11071
|
return !1;
|
|
11072
11072
|
if (!t || t.length === 0)
|
|
@@ -11075,7 +11075,7 @@ const En = /* @__PURE__ */ new Map(), Nm = async (e) => {
|
|
|
11075
11075
|
return e.some(
|
|
11076
11076
|
(n) => r.includes(n.name)
|
|
11077
11077
|
);
|
|
11078
|
-
},
|
|
11078
|
+
}, Pm = async (e) => {
|
|
11079
11079
|
let t;
|
|
11080
11080
|
e && e.length > 0 && (t = e.join(","));
|
|
11081
11081
|
const r = await fetch(um(t));
|
|
@@ -11085,7 +11085,7 @@ const En = /* @__PURE__ */ new Map(), Nm = async (e) => {
|
|
|
11085
11085
|
);
|
|
11086
11086
|
const n = await r.json();
|
|
11087
11087
|
return Array.isArray(n) ? n : [];
|
|
11088
|
-
},
|
|
11088
|
+
}, Im = (e, t) => {
|
|
11089
11089
|
const r = JSON.parse(e.nameTranslation);
|
|
11090
11090
|
if (Array.isArray(r) && r.length > 0) {
|
|
11091
11091
|
const n = r.find(
|
|
@@ -11096,7 +11096,7 @@ const En = /* @__PURE__ */ new Map(), Nm = async (e) => {
|
|
|
11096
11096
|
}
|
|
11097
11097
|
return e.name;
|
|
11098
11098
|
}, Dm = (e, t) => {
|
|
11099
|
-
const r =
|
|
11099
|
+
const r = Im(e, t);
|
|
11100
11100
|
return {
|
|
11101
11101
|
uuid: e.uuid,
|
|
11102
11102
|
name: r,
|
|
@@ -11106,12 +11106,12 @@ const En = /* @__PURE__ */ new Map(), Nm = async (e) => {
|
|
|
11106
11106
|
editable: n.editable
|
|
11107
11107
|
}))
|
|
11108
11108
|
};
|
|
11109
|
-
},
|
|
11110
|
-
const t = await
|
|
11109
|
+
}, $v = async (e) => {
|
|
11110
|
+
const t = await Pm(e), r = qr();
|
|
11111
11111
|
return t.map(
|
|
11112
11112
|
(n) => Dm(n, r)
|
|
11113
11113
|
);
|
|
11114
|
-
},
|
|
11114
|
+
}, Pv = async (e) => {
|
|
11115
11115
|
const t = await fetch(cm(e));
|
|
11116
11116
|
if (!t.ok)
|
|
11117
11117
|
throw new Error(
|
|
@@ -11145,7 +11145,7 @@ const En = /* @__PURE__ */ new Map(), Nm = async (e) => {
|
|
|
11145
11145
|
schema: n,
|
|
11146
11146
|
translations: d
|
|
11147
11147
|
};
|
|
11148
|
-
},
|
|
11148
|
+
}, Iv = async (e, t, r) => {
|
|
11149
11149
|
let n;
|
|
11150
11150
|
t && t.length > 0 && (n = t.join(","));
|
|
11151
11151
|
const s = dm(e, r, n), o = await F(s);
|
|
@@ -11235,7 +11235,7 @@ function Dv(e, t) {
|
|
|
11235
11235
|
s.interpretation && (a.interpretation = s.interpretation), s.comment && (a.comment = s.comment), r.push(a);
|
|
11236
11236
|
}), r;
|
|
11237
11237
|
}
|
|
11238
|
-
function
|
|
11238
|
+
function Cv(e, t) {
|
|
11239
11239
|
if (!e || e.length === 0)
|
|
11240
11240
|
return {
|
|
11241
11241
|
controls: [],
|
|
@@ -11268,7 +11268,7 @@ function Lv(e, t) {
|
|
|
11268
11268
|
metadata: { formMetadata: t }
|
|
11269
11269
|
};
|
|
11270
11270
|
}
|
|
11271
|
-
function
|
|
11271
|
+
function Lv(e) {
|
|
11272
11272
|
const t = (n) => {
|
|
11273
11273
|
const s = (d) => d == null ? null : typeof d == "string" || typeof d == "number" || typeof d == "boolean" || typeof d == "object" ? d : null, o = n.concept, a = typeof o == "object" && o !== null && "uuid" in o ? o.uuid : o, i = typeof o == "object" && o !== null && "datatype" in o ? o.datatype : void 0, c = {
|
|
11274
11274
|
concept: {
|
|
@@ -11288,11 +11288,11 @@ function kv(e) {
|
|
|
11288
11288
|
};
|
|
11289
11289
|
return (e?.filter((n) => n.uuid && n.voided ? !0 : !(!n.uuid && n.voided || n.value && typeof n.value == "string" && n.value.endsWith("voided"))) ?? []).map(t);
|
|
11290
11290
|
}
|
|
11291
|
-
function
|
|
11291
|
+
function kv(e) {
|
|
11292
11292
|
if (!(!e || typeof e != "object"))
|
|
11293
11293
|
return "toJS" in e && typeof e.toJS == "function" ? e.toJS() : e;
|
|
11294
11294
|
}
|
|
11295
|
-
function
|
|
11295
|
+
function Uv(e, t) {
|
|
11296
11296
|
!e || !Array.isArray(e.children) || e.children.forEach((r) => {
|
|
11297
11297
|
r && typeof r == "object" && pi(
|
|
11298
11298
|
r,
|
|
@@ -11322,7 +11322,7 @@ function pi(e, t) {
|
|
|
11322
11322
|
);
|
|
11323
11323
|
});
|
|
11324
11324
|
}
|
|
11325
|
-
const
|
|
11325
|
+
const Cm = W + "/bahmnicore/diseaseSummaryData?", xv = async (e, t, r, n) => {
|
|
11326
11326
|
const s = new URLSearchParams({
|
|
11327
11327
|
groupBy: n,
|
|
11328
11328
|
latestCount: t.toString(),
|
|
@@ -11331,17 +11331,17 @@ const Lm = W + "/bahmnicore/diseaseSummaryData?", qv = async (e, t, r, n) => {
|
|
|
11331
11331
|
r.forEach((a) => {
|
|
11332
11332
|
s.append("obsConcepts", a);
|
|
11333
11333
|
});
|
|
11334
|
-
const o =
|
|
11334
|
+
const o = Cm + s.toString();
|
|
11335
11335
|
return F(o);
|
|
11336
|
-
}, Wn = "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)",
|
|
11336
|
+
}, Wn = "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)", Lm = (e) => `${W}/bahmniprogramenrollment?patient=${e}&v=${Wn}`, km = (e, t = 15, r = 0) => `${W}/bahmniprogramenrollment?patient=${e}&v=${Wn}&limit=${t}&startIndex=${r}&totalCount=true`, hi = (e) => `${W}/bahmniprogramenrollment/${e}`, Um = (e) => `${hi(e)}?v=${Wn}`, qv = async (e) => await F(Lm(e)), Mv = async (e, t = 15, r = 1) => {
|
|
11337
11337
|
const n = (r - 1) * t, s = await F(
|
|
11338
|
-
|
|
11338
|
+
km(e, t, n)
|
|
11339
11339
|
);
|
|
11340
11340
|
return {
|
|
11341
11341
|
programs: s.results,
|
|
11342
11342
|
total: s.totalCount
|
|
11343
11343
|
};
|
|
11344
|
-
},
|
|
11344
|
+
}, Fv = async (e) => await F(Um(e)), jv = async (e, t) => {
|
|
11345
11345
|
const r = {
|
|
11346
11346
|
uuid: e,
|
|
11347
11347
|
states: [
|
|
@@ -11350,12 +11350,12 @@ const Lm = W + "/bahmnicore/diseaseSummaryData?", qv = async (e, t, r, n) => {
|
|
|
11350
11350
|
}
|
|
11351
11351
|
]
|
|
11352
11352
|
};
|
|
11353
|
-
return await
|
|
11353
|
+
return await De(
|
|
11354
11354
|
hi(e),
|
|
11355
11355
|
r
|
|
11356
11356
|
);
|
|
11357
11357
|
};
|
|
11358
|
-
function
|
|
11358
|
+
function Vv(e) {
|
|
11359
11359
|
if (e.states.length === 0)
|
|
11360
11360
|
return null;
|
|
11361
11361
|
let t;
|
|
@@ -11371,7 +11371,7 @@ function Bv(e) {
|
|
|
11371
11371
|
t = e.states.find((r) => r.endDate === null);
|
|
11372
11372
|
return t ? Yf(t.state.concept.names) ?? t.state.concept.display : null;
|
|
11373
11373
|
}
|
|
11374
|
-
function
|
|
11374
|
+
function Bv(e, t) {
|
|
11375
11375
|
if (t.length === 0)
|
|
11376
11376
|
return {};
|
|
11377
11377
|
const r = {};
|
|
@@ -11383,12 +11383,12 @@ function Hv(e, t) {
|
|
|
11383
11383
|
}
|
|
11384
11384
|
return r;
|
|
11385
11385
|
}
|
|
11386
|
-
const In = "consultation:saved",
|
|
11386
|
+
const In = "consultation:saved", Hv = (e) => {
|
|
11387
11387
|
const t = new CustomEvent(In, {
|
|
11388
11388
|
detail: e
|
|
11389
11389
|
});
|
|
11390
11390
|
window.dispatchEvent(t);
|
|
11391
|
-
},
|
|
11391
|
+
}, zv = (e, t = []) => {
|
|
11392
11392
|
const r = bn(e);
|
|
11393
11393
|
_n(() => {
|
|
11394
11394
|
r.current = e;
|
|
@@ -11420,17 +11420,17 @@ function gi(e) {
|
|
|
11420
11420
|
};
|
|
11421
11421
|
});
|
|
11422
11422
|
}
|
|
11423
|
-
async function
|
|
11423
|
+
async function xm(e, t) {
|
|
11424
11424
|
const r = mi(e, t);
|
|
11425
11425
|
return F(r);
|
|
11426
11426
|
}
|
|
11427
|
-
async function
|
|
11428
|
-
const n = ((await
|
|
11427
|
+
async function Gv(e, t) {
|
|
11428
|
+
const n = ((await xm(e, t)).entry ?? []).filter(
|
|
11429
11429
|
(s) => !!s.resource
|
|
11430
11430
|
);
|
|
11431
11431
|
return gi(n);
|
|
11432
11432
|
}
|
|
11433
|
-
async function
|
|
11433
|
+
async function Kv(e, t, r = 10, n = 1) {
|
|
11434
11434
|
const s = (n - 1) * r, o = mi(
|
|
11435
11435
|
e,
|
|
11436
11436
|
t,
|
|
@@ -11444,20 +11444,20 @@ async function Yv(e, t, r = 10, n = 1) {
|
|
|
11444
11444
|
total: a.total ?? i.length
|
|
11445
11445
|
};
|
|
11446
11446
|
}
|
|
11447
|
-
const
|
|
11448
|
-
let r = `${
|
|
11447
|
+
const qm = ce + "/Immunization", Mm = (e, t) => {
|
|
11448
|
+
let r = `${qm}?patient=${e}&_sort=-_lastUpdated&_count=100`;
|
|
11449
11449
|
return t && (r += `&status=${t}`), r;
|
|
11450
11450
|
};
|
|
11451
|
-
async function
|
|
11452
|
-
return (await
|
|
11451
|
+
async function Yv(e, t) {
|
|
11452
|
+
return (await Fm(e, t)).entry?.filter((n) => n.resource?.resourceType === "Immunization").map((n) => n.resource) ?? [];
|
|
11453
11453
|
}
|
|
11454
|
-
async function
|
|
11454
|
+
async function Fm(e, t) {
|
|
11455
11455
|
return F(
|
|
11456
|
-
|
|
11456
|
+
Mm(e, t)
|
|
11457
11457
|
);
|
|
11458
11458
|
}
|
|
11459
|
-
const
|
|
11460
|
-
async function
|
|
11459
|
+
const jm = W + "/bahmnicore/visitDocument/uploadDocument", Vm = "application";
|
|
11460
|
+
async function Bm(e) {
|
|
11461
11461
|
return new Promise((t, r) => {
|
|
11462
11462
|
const n = new FileReader();
|
|
11463
11463
|
n.onload = () => {
|
|
@@ -11470,7 +11470,7 @@ async function Hm(e) {
|
|
|
11470
11470
|
let a = o, i = "";
|
|
11471
11471
|
const c = o.lastIndexOf(".");
|
|
11472
11472
|
c !== -1 && (a = o.substring(0, c), i = o.substring(c + 1).toLowerCase());
|
|
11473
|
-
const d = e.type ? e.type.split("/")[0] :
|
|
11473
|
+
const d = e.type ? e.type.split("/")[0] : Vm;
|
|
11474
11474
|
t({
|
|
11475
11475
|
content: s,
|
|
11476
11476
|
fileName: a,
|
|
@@ -11482,8 +11482,8 @@ async function Hm(e) {
|
|
|
11482
11482
|
}, n.readAsDataURL(e);
|
|
11483
11483
|
});
|
|
11484
11484
|
}
|
|
11485
|
-
async function
|
|
11486
|
-
const n = await
|
|
11485
|
+
async function Wv(e, t, r) {
|
|
11486
|
+
const n = await Bm(e), s = {
|
|
11487
11487
|
content: n.content,
|
|
11488
11488
|
encounterTypeName: t,
|
|
11489
11489
|
fileName: n.fileName,
|
|
@@ -11491,194 +11491,194 @@ async function Jv(e, t, r) {
|
|
|
11491
11491
|
format: n.format,
|
|
11492
11492
|
patientUuid: r
|
|
11493
11493
|
};
|
|
11494
|
-
return
|
|
11494
|
+
return De(jm, s);
|
|
11495
11495
|
}
|
|
11496
11496
|
export {
|
|
11497
|
-
|
|
11498
|
-
|
|
11497
|
+
cy as APPOINTMENT_IDENTIFIER_SYSTEM,
|
|
11498
|
+
iy as APPOINTMENT_STATUSES,
|
|
11499
11499
|
$n as AUDIT_LOG_EVENT_DETAILS,
|
|
11500
11500
|
np as AllergySeverity,
|
|
11501
11501
|
rp as AllergyStatus,
|
|
11502
11502
|
Ul as AttributeFormat,
|
|
11503
11503
|
xl as AttributeInputType,
|
|
11504
|
-
|
|
11505
|
-
|
|
11506
|
-
|
|
11504
|
+
pg as BAHMNI_HOME_PATH,
|
|
11505
|
+
By as CONCEPT_DATATYPE_COMPLEX,
|
|
11506
|
+
Vy as CONCEPT_DATATYPE_NUMERIC,
|
|
11507
11507
|
In as CONSULTATION_SAVED_EVENT,
|
|
11508
11508
|
sp as DATETIME_REGEX_PATTERN,
|
|
11509
|
-
|
|
11509
|
+
Gy as DATE_REGEX_PATTERN,
|
|
11510
11510
|
Xa as DEFAULT_DATE_FORMAT,
|
|
11511
11511
|
Lf as DEFAULT_DATE_FORMAT_STORAGE_KEY,
|
|
11512
11512
|
kf as DEFAULT_TIME_FORMAT,
|
|
11513
11513
|
qf as DURATION_UNIT_TO_DAYS,
|
|
11514
|
-
|
|
11515
|
-
|
|
11516
|
-
|
|
11517
|
-
|
|
11518
|
-
|
|
11519
|
-
|
|
11520
|
-
|
|
11521
|
-
|
|
11514
|
+
Ly as FHIR_ENCOUNTER_TYPE_CODE_SYSTEM,
|
|
11515
|
+
qy as FHIR_LAB_ORDER_CONCEPT_TYPE_EXTENSION_URL,
|
|
11516
|
+
Fy as FHIR_OBSERVATION_FORM_NAMESPACE_PATH_URL,
|
|
11517
|
+
My as FHIR_OBSERVATION_INTERPRETATION_SYSTEM,
|
|
11518
|
+
Hy as FHIR_OBSERVATION_STATUS_FINAL,
|
|
11519
|
+
jy as FHIR_OBSERVATION_VALUE_ATTACHMENT_URL,
|
|
11520
|
+
zy as FHIR_RESOURCE_TYPE_OBSERVATION,
|
|
11521
|
+
xy as HL7_CONDITION_CATEGORY_CODE_SYSTEM,
|
|
11522
11522
|
ei as HL7_CONDITION_CATEGORY_CONDITION_CODE,
|
|
11523
11523
|
ti as HL7_CONDITION_CATEGORY_DIAGNOSIS_CODE,
|
|
11524
|
-
|
|
11525
|
-
|
|
11526
|
-
|
|
11527
|
-
|
|
11528
|
-
|
|
11529
|
-
|
|
11524
|
+
Uy as HL7_CONDITION_CLINICAL_STATUS_CODE_SYSTEM,
|
|
11525
|
+
ky as HL7_CONDITION_VERIFICATION_STATUS_CODE_SYSTEM,
|
|
11526
|
+
Ky as INTERPRETATION_TO_CODE,
|
|
11527
|
+
Ug as MAX_NAME_LENGTH,
|
|
11528
|
+
kg as MAX_PATIENT_AGE_YEARS,
|
|
11529
|
+
xg as MAX_PHONE_NUMBER_LENGTH,
|
|
11530
11530
|
Ue as MedicationStatus,
|
|
11531
11531
|
ce as OPENMRS_FHIR_R4,
|
|
11532
11532
|
W as OPENMRS_REST_V1,
|
|
11533
|
-
|
|
11534
|
-
|
|
11535
|
-
|
|
11536
|
-
|
|
11537
|
-
|
|
11538
|
-
|
|
11539
|
-
|
|
11540
|
-
|
|
11541
|
-
|
|
11542
|
-
|
|
11543
|
-
|
|
11544
|
-
|
|
11545
|
-
|
|
11546
|
-
|
|
11533
|
+
fv as ORDER_TYPE_QUERY_KEY,
|
|
11534
|
+
dv as PENDING_REPORT_STATUSES,
|
|
11535
|
+
lv as PROCESSED_REPORT_STATUSES,
|
|
11536
|
+
vv as USER_PINNED_PREFERENCE_URL,
|
|
11537
|
+
vy as calculateAge,
|
|
11538
|
+
Ry as calculateEndDate,
|
|
11539
|
+
Ey as calculateOnsetDate,
|
|
11540
|
+
Ng as camelToScreamingSnakeCase,
|
|
11541
|
+
Eg as capitalize,
|
|
11542
|
+
oy as checkIfActiveVisitExists,
|
|
11543
|
+
kv as convertImmutableToPlainObject,
|
|
11544
|
+
$g as convertToSentenceCase,
|
|
11545
|
+
Hg as createPatient,
|
|
11546
|
+
ay as createVisitForPatient,
|
|
11547
11547
|
Pa as del,
|
|
11548
|
-
|
|
11548
|
+
my as deleteAppointmentService,
|
|
11549
11549
|
tl as deleteCookie,
|
|
11550
11550
|
ql as dispatchAuditEvent,
|
|
11551
|
-
|
|
11552
|
-
|
|
11553
|
-
|
|
11554
|
-
|
|
11555
|
-
|
|
11556
|
-
|
|
11557
|
-
|
|
11558
|
-
|
|
11559
|
-
|
|
11551
|
+
Hv as dispatchConsultationSaved,
|
|
11552
|
+
Ty as doDateRangesOverlap,
|
|
11553
|
+
Bv as extractAttributes,
|
|
11554
|
+
Uv as extractNotesFromFormData,
|
|
11555
|
+
Iy as fetchAndFormatAllergenConcepts,
|
|
11556
|
+
Pv as fetchFormMetadata,
|
|
11557
|
+
Zy as fetchMedicationOrdersMetadata,
|
|
11558
|
+
$v as fetchObservationForms,
|
|
11559
|
+
ov as fetchQualityAssessment,
|
|
11560
11560
|
Dy as fetchReactionConcepts,
|
|
11561
|
-
|
|
11562
|
-
|
|
11563
|
-
|
|
11564
|
-
|
|
11565
|
-
|
|
11566
|
-
|
|
11567
|
-
|
|
11561
|
+
Tg as filterReplacementEntries,
|
|
11562
|
+
Rv as findActiveEncounterInSession,
|
|
11563
|
+
by as formatDateDistance,
|
|
11564
|
+
wy as formatDateTime,
|
|
11565
|
+
Og as formatUrl,
|
|
11566
|
+
vg as generateId,
|
|
11567
|
+
wg as generateUUID,
|
|
11568
11568
|
F as get,
|
|
11569
11569
|
Em as getActiveVisit,
|
|
11570
11570
|
Gl as getActiveVisitByPatient,
|
|
11571
|
-
|
|
11572
|
-
|
|
11571
|
+
Kg as getAddressHierarchyEntries,
|
|
11572
|
+
hy as getAllAppointmentServices,
|
|
11573
11573
|
ep as getAllergies,
|
|
11574
|
-
|
|
11574
|
+
py as getAppointmentById,
|
|
11575
11575
|
Dg as getAvailableLocations,
|
|
11576
|
-
|
|
11577
|
-
|
|
11578
|
-
|
|
11579
|
-
|
|
11580
|
-
|
|
11576
|
+
hv as getCategoryUuidFromOrderTypes,
|
|
11577
|
+
$y as getConceptById,
|
|
11578
|
+
Wy as getConditionPage,
|
|
11579
|
+
Yy as getConditions,
|
|
11580
|
+
yv as getConfig,
|
|
11581
11581
|
Fa as getCookieByName,
|
|
11582
|
-
|
|
11583
|
-
|
|
11584
|
-
|
|
11585
|
-
|
|
11586
|
-
|
|
11587
|
-
|
|
11588
|
-
|
|
11589
|
-
|
|
11590
|
-
|
|
11591
|
-
|
|
11592
|
-
|
|
11593
|
-
|
|
11594
|
-
|
|
11595
|
-
|
|
11596
|
-
|
|
11597
|
-
|
|
11582
|
+
bv as getCurrentProvider,
|
|
11583
|
+
Vv as getCurrentStateName,
|
|
11584
|
+
Pg as getCurrentUser,
|
|
11585
|
+
Av as getCurrentUserPrivileges,
|
|
11586
|
+
Ig as getDefaultDateFormat,
|
|
11587
|
+
Qy as getDiagnosesPage,
|
|
11588
|
+
cv as getDiagnosticReportBundle,
|
|
11589
|
+
iv as getDiagnosticReports,
|
|
11590
|
+
Kv as getDocumentReferencePage,
|
|
11591
|
+
xm as getDocumentReferences,
|
|
11592
|
+
Tv as getEncountersAndVisitsForEOC,
|
|
11593
|
+
gv as getExistingServiceRequestsForAllCategories,
|
|
11594
|
+
pv as getFlattenedInvestigations,
|
|
11595
|
+
Sy as getFormattedAge,
|
|
11596
|
+
Cy as getFormattedAllergies,
|
|
11597
|
+
Gv as getFormattedDocumentReferences,
|
|
11598
11598
|
Rr as getFormattedError,
|
|
11599
|
-
|
|
11600
|
-
|
|
11601
|
-
|
|
11602
|
-
|
|
11603
|
-
|
|
11604
|
-
|
|
11605
|
-
|
|
11606
|
-
|
|
11599
|
+
qg as getFormattedPatientById,
|
|
11600
|
+
Gg as getGenders,
|
|
11601
|
+
Bg as getIdentifierData,
|
|
11602
|
+
Vg as getIdentifierTypes,
|
|
11603
|
+
Xg as getInputTypeForFormat,
|
|
11604
|
+
av as getLabInvestigationsBundle,
|
|
11605
|
+
_v as getObservationsBundleByEncounterUuid,
|
|
11606
|
+
mv as getOrderTypeNames,
|
|
11607
11607
|
zn as getOrderTypes,
|
|
11608
|
-
|
|
11609
|
-
|
|
11610
|
-
|
|
11608
|
+
Yg as getOrderedAddressHierarchyLevels,
|
|
11609
|
+
dy as getPastAppointments,
|
|
11610
|
+
yy as getPastAppointmentsPage,
|
|
11611
11611
|
$l as getPatientById,
|
|
11612
|
-
|
|
11613
|
-
|
|
11614
|
-
|
|
11615
|
-
|
|
11612
|
+
Jy as getPatientDiagnoses,
|
|
11613
|
+
Iv as getPatientFormData,
|
|
11614
|
+
Mg as getPatientImageAsDataUrl,
|
|
11615
|
+
Yv as getPatientImmunizations,
|
|
11616
11616
|
Sp as getPatientMedicationBundle,
|
|
11617
|
-
|
|
11618
|
-
|
|
11617
|
+
Xy as getPatientMedications,
|
|
11618
|
+
Ev as getPatientObservations,
|
|
11619
11619
|
hm as getPatientObservationsBundle,
|
|
11620
|
-
|
|
11621
|
-
|
|
11622
|
-
|
|
11623
|
-
|
|
11624
|
-
|
|
11625
|
-
|
|
11626
|
-
|
|
11627
|
-
|
|
11620
|
+
wv as getPatientObservationsWithEncounterBundle,
|
|
11621
|
+
Wg as getPatientProfile,
|
|
11622
|
+
qv as getPatientPrograms,
|
|
11623
|
+
Mv as getPatientProgramsPage,
|
|
11624
|
+
rv as getPatientRadiologyInvestigationBundle,
|
|
11625
|
+
nv as getPatientRadiologyInvestigationBundleWithImagingStudy,
|
|
11626
|
+
sv as getPatientRadiologyInvestigations,
|
|
11627
|
+
Qg as getPersonAttributeTypes,
|
|
11628
11628
|
kl as getPrimaryIdentifierType,
|
|
11629
|
-
|
|
11630
|
-
|
|
11631
|
-
|
|
11629
|
+
Sg as getPriorityByOrder,
|
|
11630
|
+
Fv as getProgramByUUID,
|
|
11631
|
+
Jg as getRelationshipTypes,
|
|
11632
11632
|
Pt as getServiceRequests,
|
|
11633
|
-
|
|
11634
|
-
|
|
11635
|
-
|
|
11633
|
+
_y as getTodayDate,
|
|
11634
|
+
ly as getUpcomingAppointments,
|
|
11635
|
+
gy as getUpcomingAppointmentsPage,
|
|
11636
11636
|
qn as getUserLoginLocation,
|
|
11637
11637
|
qr as getUserPreferredLocale,
|
|
11638
|
-
|
|
11639
|
-
|
|
11640
|
-
|
|
11641
|
-
|
|
11642
|
-
|
|
11643
|
-
|
|
11644
|
-
|
|
11645
|
-
|
|
11646
|
-
|
|
11647
|
-
|
|
11648
|
-
|
|
11649
|
-
|
|
11650
|
-
|
|
11651
|
-
|
|
11652
|
-
|
|
11653
|
-
|
|
11654
|
-
|
|
11655
|
-
|
|
11638
|
+
tv as getVaccinations,
|
|
11639
|
+
Ag as getValueType,
|
|
11640
|
+
sy as getVisitTypes,
|
|
11641
|
+
xv as getVitalFlowSheetData,
|
|
11642
|
+
Rg as groupByDate,
|
|
11643
|
+
Nv as hasPrivilege,
|
|
11644
|
+
mg as initAppI18n,
|
|
11645
|
+
Ov as initializeAuditListener,
|
|
11646
|
+
Zg as isBooleanFormat,
|
|
11647
|
+
ey as isConceptFormat,
|
|
11648
|
+
ry as isDateFormat,
|
|
11649
|
+
ty as isNumberFormat,
|
|
11650
|
+
_g as isStringEmpty,
|
|
11651
|
+
ny as isTextFormat,
|
|
11652
|
+
$m as logAuditEvent,
|
|
11653
|
+
Cg as logout,
|
|
11654
|
+
hg as normalizeTranslationKey,
|
|
11655
|
+
Ay as notificationService,
|
|
11656
11656
|
rl as parseQueryParams,
|
|
11657
|
-
|
|
11658
|
-
|
|
11659
|
-
|
|
11660
|
-
|
|
11661
|
-
|
|
11662
|
-
|
|
11663
|
-
|
|
11664
|
-
|
|
11657
|
+
fg as patch,
|
|
11658
|
+
De as post,
|
|
11659
|
+
dg as put,
|
|
11660
|
+
yg as refreshQueries,
|
|
11661
|
+
Lg as saveUserLocation,
|
|
11662
|
+
uy as searchAppointmentsByAttribute,
|
|
11663
|
+
Py as searchConceptByName,
|
|
11664
|
+
Ny as searchConcepts,
|
|
11665
11665
|
br as searchFHIRConcepts,
|
|
11666
11666
|
Kf as searchFHIRConceptsByName,
|
|
11667
|
-
|
|
11668
|
-
|
|
11669
|
-
|
|
11670
|
-
|
|
11671
|
-
|
|
11672
|
-
|
|
11673
|
-
|
|
11667
|
+
ev as searchMedications,
|
|
11668
|
+
jg as searchPatientByCustomAttribute,
|
|
11669
|
+
Fg as searchPatientByNameOrId,
|
|
11670
|
+
bg as setCookie,
|
|
11671
|
+
Sv as shouldEnableEncounterFilter,
|
|
11672
|
+
Oy as sortByDate,
|
|
11673
|
+
Lv as transformContainerObservationsToForm2Observations,
|
|
11674
11674
|
Dv as transformFormDataToObservations,
|
|
11675
|
-
|
|
11676
|
-
|
|
11677
|
-
|
|
11678
|
-
|
|
11679
|
-
|
|
11680
|
-
|
|
11681
|
-
|
|
11682
|
-
|
|
11683
|
-
|
|
11675
|
+
Cv as transformObservationsToFormData,
|
|
11676
|
+
fy as updateAppointmentStatus,
|
|
11677
|
+
uv as updateDiagnosticReportBundle,
|
|
11678
|
+
zg as updatePatient,
|
|
11679
|
+
jv as updateProgramState,
|
|
11680
|
+
Wv as uploadDocument,
|
|
11681
|
+
gg as useCamera,
|
|
11682
|
+
zv as useSubscribeConsultationSaved,
|
|
11683
|
+
Xv as useTranslation
|
|
11684
11684
|
};
|