@bahmni/services 0.0.1-dev.184 → 0.0.1-dev.187
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/appointmentService/__mocks__/mocks.d.ts +7 -0
- package/dist/appointmentService/__mocks__/mocks.d.ts.map +1 -0
- package/dist/{AppointmentService/appointmmetService.d.ts → appointmentService/appointmentService.d.ts} +7 -1
- package/dist/appointmentService/appointmentService.d.ts.map +1 -0
- package/dist/{AppointmentService → appointmentService}/constants.d.ts +1 -0
- package/dist/{AppointmentService → appointmentService}/constants.d.ts.map +1 -1
- package/dist/{AppointmentService → appointmentService}/index.d.ts +2 -1
- package/dist/appointmentService/index.d.ts.map +1 -0
- package/dist/appointmentService/models.d.ts +30 -0
- package/dist/appointmentService/models.d.ts.map +1 -0
- package/dist/constants/app.d.ts +1 -1
- package/dist/constants/app.d.ts.map +1 -1
- package/dist/index.d.ts +1 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +558 -557
- package/dist/orderRequestService/constants.d.ts.map +1 -1
- package/package.json +1 -1
- package/dist/AppointmentService/_mocks_/mockData.d.ts +0 -7
- package/dist/AppointmentService/_mocks_/mockData.d.ts.map +0 -1
- package/dist/AppointmentService/appointmmetService.d.ts.map +0 -1
- package/dist/AppointmentService/index.d.ts.map +0 -1
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { initReactI18next as wi } from "react-i18next";
|
|
2
|
-
import { useTranslation as
|
|
2
|
+
import { useTranslation as tb } from "react-i18next";
|
|
3
3
|
import { useRef as bn, useCallback as Jr, useEffect as En } from "react";
|
|
4
4
|
function co(e, t) {
|
|
5
5
|
return function() {
|
|
@@ -1276,7 +1276,7 @@ const To = (e) => {
|
|
|
1276
1276
|
} = To(v), q = t || fetch;
|
|
1277
1277
|
R = R ? (R + "").toLowerCase() : "text";
|
|
1278
1278
|
let j = Mc([u, m && m.toAbortSignal()], b), V = null;
|
|
1279
|
-
const
|
|
1279
|
+
const W = j && j.unsubscribe && (() => {
|
|
1280
1280
|
j.unsubscribe();
|
|
1281
1281
|
});
|
|
1282
1282
|
let re;
|
|
@@ -1308,7 +1308,7 @@ const To = (e) => {
|
|
|
1308
1308
|
V = a && new r(g, me);
|
|
1309
1309
|
let J = await (a ? q(V, U) : q(g, me));
|
|
1310
1310
|
const ie = d && (R === "stream" || R === "response");
|
|
1311
|
-
if (d && (_ || ie &&
|
|
1311
|
+
if (d && (_ || ie && W)) {
|
|
1312
1312
|
const A = {};
|
|
1313
1313
|
["status", "statusText", "headers"].forEach((T) => {
|
|
1314
1314
|
A[T] = J[T];
|
|
@@ -1319,14 +1319,14 @@ const To = (e) => {
|
|
|
1319
1319
|
) || [];
|
|
1320
1320
|
J = new n(
|
|
1321
1321
|
ss(J.body, as, N, () => {
|
|
1322
|
-
w && w(),
|
|
1322
|
+
w && w(), W && W();
|
|
1323
1323
|
}),
|
|
1324
1324
|
A
|
|
1325
1325
|
);
|
|
1326
1326
|
}
|
|
1327
1327
|
R = R || "text";
|
|
1328
1328
|
let M = await p[D.findKey(p, R) || "text"](J, v);
|
|
1329
|
-
return !ie &&
|
|
1329
|
+
return !ie && W && W(), await new Promise((A, C) => {
|
|
1330
1330
|
So(A, C, {
|
|
1331
1331
|
data: M,
|
|
1332
1332
|
headers: Re.from(J.headers),
|
|
@@ -1337,7 +1337,7 @@ const To = (e) => {
|
|
|
1337
1337
|
});
|
|
1338
1338
|
});
|
|
1339
1339
|
} catch (ne) {
|
|
1340
|
-
throw
|
|
1340
|
+
throw W && W(), ne && ne.name === "TypeError" && /Load failed|fetch/i.test(ne.message) ? Object.assign(
|
|
1341
1341
|
new G("Network Error", G.ERR_NETWORK, v, V, ne && ne.response),
|
|
1342
1342
|
{
|
|
1343
1343
|
cause: ne.cause || ne
|
|
@@ -1797,22 +1797,22 @@ ce.getAdapter = Ao.getAdapter;
|
|
|
1797
1797
|
ce.HttpStatusCode = Tn;
|
|
1798
1798
|
ce.default = ce;
|
|
1799
1799
|
const {
|
|
1800
|
-
Axios:
|
|
1801
|
-
AxiosError:
|
|
1802
|
-
CanceledError:
|
|
1803
|
-
isCancel:
|
|
1804
|
-
CancelToken:
|
|
1805
|
-
VERSION:
|
|
1806
|
-
all:
|
|
1807
|
-
Cancel:
|
|
1808
|
-
isAxiosError:
|
|
1809
|
-
spread:
|
|
1810
|
-
toFormData:
|
|
1811
|
-
AxiosHeaders:
|
|
1812
|
-
HttpStatusCode:
|
|
1813
|
-
formToJSON:
|
|
1814
|
-
getAdapter:
|
|
1815
|
-
mergeConfig:
|
|
1800
|
+
Axios: cy,
|
|
1801
|
+
AxiosError: uy,
|
|
1802
|
+
CanceledError: ly,
|
|
1803
|
+
isCancel: dy,
|
|
1804
|
+
CancelToken: fy,
|
|
1805
|
+
VERSION: hy,
|
|
1806
|
+
all: my,
|
|
1807
|
+
Cancel: py,
|
|
1808
|
+
isAxiosError: gy,
|
|
1809
|
+
spread: yy,
|
|
1810
|
+
toFormData: vy,
|
|
1811
|
+
AxiosHeaders: wy,
|
|
1812
|
+
HttpStatusCode: by,
|
|
1813
|
+
formToJSON: Ey,
|
|
1814
|
+
getAdapter: _y,
|
|
1815
|
+
mergeConfig: Sy
|
|
1816
1816
|
} = ce, Kc = (e) => typeof e == "object" && e !== null && "resourceType" in e && e.resourceType === "OperationOutcome", Jc = (e) => {
|
|
1817
1817
|
if (!e.issue || !Array.isArray(e.issue))
|
|
1818
1818
|
return null;
|
|
@@ -2017,7 +2017,7 @@ Fe.interceptors.response.use(
|
|
|
2017
2017
|
return r.startsWith("ERROR_") || /^[A-Z_]+$/.test(r) ? Promise.reject(new Error(r)) : Promise.reject(`${t}: ${r}`);
|
|
2018
2018
|
}
|
|
2019
2019
|
);
|
|
2020
|
-
const
|
|
2020
|
+
const z = async (e) => (await Fe.get(e)).data, Ve = async (e, t) => (await Fe.post(e, t)).data, Ry = async (e, t) => (await Fe.put(e, t)).data, Ty = async (e, t) => (await Fe.patch(e, t)).data, Oy = async (e) => (await Fe.delete(e)).data, Y = (e) => typeof e == "string", pt = () => {
|
|
2021
2021
|
let e, t;
|
|
2022
2022
|
const r = new Promise((n, s) => {
|
|
2023
2023
|
e = n, t = s;
|
|
@@ -2387,19 +2387,19 @@ class Nr extends Ur {
|
|
|
2387
2387
|
}
|
|
2388
2388
|
if (a) {
|
|
2389
2389
|
const q = Array.isArray(P), j = q ? [] : {}, V = q ? v : S;
|
|
2390
|
-
for (const
|
|
2391
|
-
if (Object.prototype.hasOwnProperty.call(P,
|
|
2392
|
-
const re = `${V}${a}${
|
|
2393
|
-
m && !y ? j[
|
|
2390
|
+
for (const W in P)
|
|
2391
|
+
if (Object.prototype.hasOwnProperty.call(P, W)) {
|
|
2392
|
+
const re = `${V}${a}${W}`;
|
|
2393
|
+
m && !y ? j[W] = this.translate(re, {
|
|
2394
2394
|
...r,
|
|
2395
|
-
defaultValue: ws(R) ? R[
|
|
2395
|
+
defaultValue: ws(R) ? R[W] : void 0,
|
|
2396
2396
|
joinArrays: !1,
|
|
2397
2397
|
ns: i
|
|
2398
|
-
}) : j[
|
|
2398
|
+
}) : j[W] = this.translate(re, {
|
|
2399
2399
|
...r,
|
|
2400
2400
|
joinArrays: !1,
|
|
2401
2401
|
ns: i
|
|
2402
|
-
}), j[
|
|
2402
|
+
}), j[W] === re && (j[W] = P[W]);
|
|
2403
2403
|
}
|
|
2404
2404
|
y = j;
|
|
2405
2405
|
}
|
|
@@ -2408,7 +2408,7 @@ class Nr extends Ur {
|
|
|
2408
2408
|
else {
|
|
2409
2409
|
let q = !1, j = !1;
|
|
2410
2410
|
!this.isValidLookup(y) && m && (q = !0, y = R), this.isValidLookup(y) || (j = !0, y = o);
|
|
2411
|
-
const
|
|
2411
|
+
const W = (r.missingKeyNoValueFallbackToKey || this.options.missingKeyNoValueFallbackToKey) && j ? void 0 : y, re = m && R !== y && this.options.updateMissing;
|
|
2412
2412
|
if (j || q || re) {
|
|
2413
2413
|
if (this.logger.log(re ? "updateKey" : "missingKey", l, c, o, re ? R : y), a) {
|
|
2414
2414
|
const ie = this.resolve(o, {
|
|
@@ -2424,7 +2424,7 @@ class Nr extends Ur {
|
|
|
2424
2424
|
ne.push(me[ie]);
|
|
2425
2425
|
else this.options.saveMissingTo === "all" ? ne = this.languageUtils.toResolveHierarchy(r.lng || this.language) : ne.push(r.lng || this.language);
|
|
2426
2426
|
const J = (ie, M, A) => {
|
|
2427
|
-
const C = m && A !== y ? A :
|
|
2427
|
+
const C = m && A !== y ? A : W;
|
|
2428
2428
|
this.options.missingKeyHandler ? this.options.missingKeyHandler(ie, c, M, C, re, r) : this.backendConnector?.saveMissing && this.backendConnector.saveMissing(ie, c, M, C, re, r), this.emit("missingKey", ie, c, M, y);
|
|
2429
2429
|
};
|
|
2430
2430
|
this.options.saveMissing && (this.options.saveMissingPlurals && u ? ne.forEach((ie) => {
|
|
@@ -3691,9 +3691,9 @@ class Mo {
|
|
|
3691
3691
|
}
|
|
3692
3692
|
}
|
|
3693
3693
|
Mo.type = "languageDetector";
|
|
3694
|
-
const Hu = process.env.PUBLIC_URL ?? "/",
|
|
3694
|
+
const Hu = process.env.PUBLIC_URL ?? "/", le = "/openmrs/ws/fhir2/R4", ee = "/openmrs/ws/rest/v1", Bu = "/openmrs/ws/rest/v2", zu = "bahmni.user", Ay = "/bahmni/home/index.html", Wu = ee + "/bahmnicore/whoami", Gu = "en", xo = "NG_TRANSLATE_LANG_KEY", Yu = (e, t) => Hu + `${e}/locales/locale_${t}.json`, Ku = (e, t) => `/bahmni_config/openmrs/i18n/${e}/locale_${t}.json`, Nt = () => localStorage.getItem(xo) ?? Gu, Ns = async (e) => {
|
|
3695
3695
|
try {
|
|
3696
|
-
const t = await
|
|
3696
|
+
const t = await z(e);
|
|
3697
3697
|
return t || (console.error(`Invalid response from ${e}`), {});
|
|
3698
3698
|
} catch (t) {
|
|
3699
3699
|
return console.error(`Failed to load translations from ${e}:`, t), {};
|
|
@@ -3715,7 +3715,7 @@ const Hu = process.env.PUBLIC_URL ?? "/", ee = "/openmrs/ws/rest/v1", le = "/ope
|
|
|
3715
3715
|
}, e !== "en" && (r.en = {
|
|
3716
3716
|
[t]: await Ds(t, "en")
|
|
3717
3717
|
}), r;
|
|
3718
|
-
},
|
|
3718
|
+
}, Py = (e, t) => {
|
|
3719
3719
|
const r = e.toUpperCase(), n = t.toUpperCase().replace(/\s+/g, "_").replace(/[^A-Z0-9_]/g, "");
|
|
3720
3720
|
return `${r}_${n}`;
|
|
3721
3721
|
}, Xu = (e, t) => {
|
|
@@ -3732,7 +3732,7 @@ const Hu = process.env.PUBLIC_URL ?? "/", ee = "/openmrs/ws/rest/v1", le = "/ope
|
|
|
3732
3732
|
labels: n.labels ?? {},
|
|
3733
3733
|
concepts: n.concepts ?? {}
|
|
3734
3734
|
};
|
|
3735
|
-
},
|
|
3735
|
+
}, $y = async (e) => {
|
|
3736
3736
|
const t = Nt(), r = await Ju(t, e);
|
|
3737
3737
|
return await ue.use(Mo).use(wi).init({
|
|
3738
3738
|
fallbackLng: "en",
|
|
@@ -3751,7 +3751,7 @@ const Hu = process.env.PUBLIC_URL ?? "/", ee = "/openmrs/ws/rest/v1", le = "/ope
|
|
|
3751
3751
|
}
|
|
3752
3752
|
}), ue;
|
|
3753
3753
|
};
|
|
3754
|
-
function
|
|
3754
|
+
function Ny() {
|
|
3755
3755
|
const e = bn(null), t = bn(null), r = Jr(async () => {
|
|
3756
3756
|
t.current && (t.current.getTracks().forEach((o) => o.stop()), t.current = null);
|
|
3757
3757
|
const a = await navigator.mediaDevices.getUserMedia({
|
|
@@ -6436,7 +6436,7 @@ const js = {
|
|
|
6436
6436
|
weekStartsOn: 1,
|
|
6437
6437
|
firstWeekContainsDate: 4
|
|
6438
6438
|
}
|
|
6439
|
-
}, oh = "dd/MM/yyyy",
|
|
6439
|
+
}, oh = "dd/MM/yyyy", Dy = "MMMM dd, yyyy", Iy = "do MMM, yyyy", ih = "dd/MM/yyyy HH:mm", Cy = "yyyy-MM-dd", Ly = "d/m/Y", Pe = {
|
|
6440
6440
|
PARSE_ERROR: "DATE_ERROR_PARSE",
|
|
6441
6441
|
FORMAT_ERROR: "DATE_ERROR_FORMAT",
|
|
6442
6442
|
EMPTY_OR_INVALID: "DATE_ERROR_EMPTY_OR_INVALID",
|
|
@@ -6516,13 +6516,13 @@ function ei(e, t, r) {
|
|
|
6516
6516
|
const s = ch();
|
|
6517
6517
|
return { formattedResult: td(n, t, { locale: s }) };
|
|
6518
6518
|
}
|
|
6519
|
-
function
|
|
6519
|
+
function ky(e, t) {
|
|
6520
6520
|
return ei(e, ih, t);
|
|
6521
6521
|
}
|
|
6522
|
-
function
|
|
6522
|
+
function My(e, t, r = oh) {
|
|
6523
6523
|
return ei(e, r, t);
|
|
6524
6524
|
}
|
|
6525
|
-
function
|
|
6525
|
+
function xy(e, t, r) {
|
|
6526
6526
|
if (!e || !Dt(e) || t === null || t === void 0 || !r || typeof t != "number")
|
|
6527
6527
|
return;
|
|
6528
6528
|
const n = new Date(e);
|
|
@@ -6537,7 +6537,7 @@ function My(e, t, r) {
|
|
|
6537
6537
|
return;
|
|
6538
6538
|
}
|
|
6539
6539
|
}
|
|
6540
|
-
function
|
|
6540
|
+
function qy(e, t) {
|
|
6541
6541
|
if (e == null)
|
|
6542
6542
|
return {
|
|
6543
6543
|
formattedResult: "",
|
|
@@ -6589,11 +6589,11 @@ function xy(e, t) {
|
|
|
6589
6589
|
}
|
|
6590
6590
|
return { formattedResult: c };
|
|
6591
6591
|
}
|
|
6592
|
-
const
|
|
6592
|
+
const Uy = () => {
|
|
6593
6593
|
const e = /* @__PURE__ */ new Date();
|
|
6594
6594
|
return e.setHours(0, 0, 0, 0), e;
|
|
6595
6595
|
};
|
|
6596
|
-
function
|
|
6596
|
+
function jy(e, t) {
|
|
6597
6597
|
const r = new Date(e), s = new Intl.DateTimeFormat("en-US", {
|
|
6598
6598
|
day: "2-digit",
|
|
6599
6599
|
month: "short",
|
|
@@ -6609,7 +6609,7 @@ function Uy(e, t) {
|
|
|
6609
6609
|
}
|
|
6610
6610
|
return c;
|
|
6611
6611
|
}
|
|
6612
|
-
function
|
|
6612
|
+
function Fy(e, t) {
|
|
6613
6613
|
const r = new Date(e), n = /* @__PURE__ */ new Date(), s = Fn(n, r), a = Un(r, s), o = jn(n, a), i = jr(a, o), c = Pn(n, i);
|
|
6614
6614
|
if (s === 0 && o < 3) {
|
|
6615
6615
|
const p = Pn(n, r);
|
|
@@ -6632,14 +6632,14 @@ const lh = {
|
|
|
6632
6632
|
h: 1 / 24,
|
|
6633
6633
|
min: 1 / 1440,
|
|
6634
6634
|
s: 1 / 86400
|
|
6635
|
-
},
|
|
6635
|
+
}, Vy = (e, t, r) => {
|
|
6636
6636
|
const n = typeof e == "string" ? new Date(e) : e;
|
|
6637
6637
|
if (isNaN(n.getTime()))
|
|
6638
6638
|
throw new Error(`Invalid date: ${e}`);
|
|
6639
6639
|
const s = lh[r] ?? 1, a = t * s;
|
|
6640
6640
|
return Fo(n, a);
|
|
6641
|
-
},
|
|
6642
|
-
function
|
|
6641
|
+
}, Hy = (e, t, r, n) => e <= n && r <= t;
|
|
6642
|
+
function By(e, t, r = !1) {
|
|
6643
6643
|
return !e || !Array.isArray(e) ? [] : e.sort((n, s) => {
|
|
6644
6644
|
const a = new Date(n[t]), o = new Date(s[t]);
|
|
6645
6645
|
if (isNaN(a.getTime()) && isNaN(o.getTime())) return 0;
|
|
@@ -6649,11 +6649,11 @@ function Hy(e, t, r = !1) {
|
|
|
6649
6649
|
return r ? i : -i;
|
|
6650
6650
|
});
|
|
6651
6651
|
}
|
|
6652
|
-
const
|
|
6652
|
+
const zy = async (e, t, r) => {
|
|
6653
6653
|
const { exact: n = !0, refetchActiveNow: s = !0 } = r ?? {};
|
|
6654
6654
|
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" });
|
|
6655
|
-
},
|
|
6656
|
-
function
|
|
6655
|
+
}, Wy = () => Math.random().toString(36).substring(2, 9);
|
|
6656
|
+
function Gy(e, t = " -") {
|
|
6657
6657
|
return e ? e.toLowerCase().split(new RegExp(`[${t}]+`)).map((n) => n.charAt(0).toUpperCase() + n.slice(1)).join(" ") : "";
|
|
6658
6658
|
}
|
|
6659
6659
|
function ti(e) {
|
|
@@ -6665,7 +6665,7 @@ function ti(e) {
|
|
|
6665
6665
|
}
|
|
6666
6666
|
return "";
|
|
6667
6667
|
}
|
|
6668
|
-
const
|
|
6668
|
+
const Yy = (e) => !e || e.trim().length === 0, Ky = (e, t) => {
|
|
6669
6669
|
if (!e || !t || t.length === 0)
|
|
6670
6670
|
return 999;
|
|
6671
6671
|
const r = t.findIndex(
|
|
@@ -6673,7 +6673,7 @@ const Gy = (e) => !e || e.trim().length === 0, Yy = (e, t) => {
|
|
|
6673
6673
|
);
|
|
6674
6674
|
return r === -1 ? 999 : r;
|
|
6675
6675
|
};
|
|
6676
|
-
function
|
|
6676
|
+
function Jy(e, t) {
|
|
6677
6677
|
if (!e || e.length === 0)
|
|
6678
6678
|
return [];
|
|
6679
6679
|
const r = /* @__PURE__ */ new Map();
|
|
@@ -6685,7 +6685,7 @@ function Ky(e, t) {
|
|
|
6685
6685
|
items: s
|
|
6686
6686
|
}));
|
|
6687
6687
|
}
|
|
6688
|
-
function
|
|
6688
|
+
function Xy(e, t, r) {
|
|
6689
6689
|
if (!e || e.length === 0)
|
|
6690
6690
|
return [];
|
|
6691
6691
|
const n = /* @__PURE__ */ new Set(), s = /* @__PURE__ */ new Set();
|
|
@@ -6706,7 +6706,7 @@ function dh(e) {
|
|
|
6706
6706
|
a[n(o[1])] = n(o[2]);
|
|
6707
6707
|
return a;
|
|
6708
6708
|
}
|
|
6709
|
-
function
|
|
6709
|
+
function Qy(e, t, r) {
|
|
6710
6710
|
const n = /{{([^}]*)}}/g, s = e.match(n);
|
|
6711
6711
|
let a = e;
|
|
6712
6712
|
const o = r ?? !1, i = o ? dh() : {};
|
|
@@ -6719,7 +6719,7 @@ function Xy(e, t, r) {
|
|
|
6719
6719
|
const fh = (e) => new Promise((t, r) => {
|
|
6720
6720
|
const n = new FileReader();
|
|
6721
6721
|
n.onloadend = () => t(n.result), n.onerror = r, n.readAsDataURL(e);
|
|
6722
|
-
}),
|
|
6722
|
+
}), Zy = (e) => {
|
|
6723
6723
|
if (typeof e == "number" && !isNaN(e))
|
|
6724
6724
|
return "number";
|
|
6725
6725
|
if (typeof e != "string")
|
|
@@ -6727,14 +6727,14 @@ const fh = (e) => new Promise((t, r) => {
|
|
|
6727
6727
|
const t = e.toLowerCase();
|
|
6728
6728
|
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";
|
|
6729
6729
|
};
|
|
6730
|
-
function
|
|
6730
|
+
function ev(e) {
|
|
6731
6731
|
return e.replace(/[\s-]+/g, "_").replace(/([a-z])([A-Z])/g, "$1_$2").replace(/([A-Z])([A-Z][a-z])/g, "$1_$2").toUpperCase();
|
|
6732
6732
|
}
|
|
6733
|
-
function
|
|
6733
|
+
function tv(e) {
|
|
6734
6734
|
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()) : "";
|
|
6735
6735
|
}
|
|
6736
6736
|
const hh = (e) => ee + `/user?username=${e}&v=custom:(username,uuid)`, mh = "bahmni.user.location";
|
|
6737
|
-
async function
|
|
6737
|
+
async function rv() {
|
|
6738
6738
|
const e = ti(zu);
|
|
6739
6739
|
if (!e)
|
|
6740
6740
|
return null;
|
|
@@ -6742,7 +6742,7 @@ async function tv() {
|
|
|
6742
6742
|
const t = decodeURIComponent(e).replace(
|
|
6743
6743
|
/^"(.*)"$/,
|
|
6744
6744
|
"$1"
|
|
6745
|
-
), r = await
|
|
6745
|
+
), r = await z(hh(t));
|
|
6746
6746
|
return !r.results || r.results.length === 0 ? null : r.results[0];
|
|
6747
6747
|
} catch {
|
|
6748
6748
|
throw new Error(ue.t("ERROR_FETCHING_USER_DETAILS"));
|
|
@@ -6804,12 +6804,12 @@ const Vn = () => {
|
|
|
6804
6804
|
}, ri = ee + "/idgen/identifiertype", wh = (e) => ee + `/bahmni/app/setting?module=${e}`, bh = "bahmni.primaryIdentifierType", Eh = ee + "/bahmnicore/patientprofile", _h = (e) => ee + `/bahmnicore/patientprofile/${e}`, Sh = (e) => ee + `/patientprofile/${e}?v=full`, Rh = (e, t, r = 20, n) => {
|
|
6805
6805
|
let s = `/openmrs/module/addresshierarchy/ajax/getPossibleAddressHierarchyEntriesWithParents.form?addressField=${e}&limit=${r}&searchString=${encodeURIComponent(t)}`;
|
|
6806
6806
|
return n && (s += `&parent=${n}`), s;
|
|
6807
|
-
}, Th = "/openmrs/module/addresshierarchy/ajax/getOrderedAddressHierarchyLevels.form", Oh = ee + "/relationshiptype?v=custom:(aIsToB,bIsToA,uuid)&limit=150", Ah = 20, Ph = 2,
|
|
6807
|
+
}, Th = "/openmrs/module/addresshierarchy/ajax/getOrderedAddressHierarchyLevels.form", Oh = ee + "/relationshiptype?v=custom:(aIsToB,bIsToA,uuid)&limit=150", Ah = 20, Ph = 2, nv = 120, sv = 50, av = 15, $h = /^[a-f0-9-]{36}$/i, Nh = (e) => Bu + `/patientImage?patientUuid=${e}`, Dh = ee + "/personattributetype?v=custom:(uuid,name,sortWeight,description,format,concept:(uuid,display,answers:(uuid,name)))", Ih = async (e) => {
|
|
6808
6808
|
if (!e || e.trim() === "")
|
|
6809
6809
|
throw new Error("Invalid patient UUID: UUID cannot be empty");
|
|
6810
6810
|
if (!$h.test(e))
|
|
6811
6811
|
throw new Error(`Invalid patient UUID format: ${e}`);
|
|
6812
|
-
return
|
|
6812
|
+
return z(gh(e));
|
|
6813
6813
|
}, Ch = (e) => !e.extension || !Array.isArray(e.extension) ? [] : e.extension.flatMap((t) => t.extension && Array.isArray(t.extension) ? t.extension.filter((r) => r.valueString).map((r) => r.valueString) : []), Lh = (e) => {
|
|
6814
6814
|
if (!e.name || e.name.length === 0)
|
|
6815
6815
|
return null;
|
|
@@ -6840,22 +6840,22 @@ const Vn = () => {
|
|
|
6840
6840
|
identifiers: s,
|
|
6841
6841
|
age: a
|
|
6842
6842
|
};
|
|
6843
|
-
},
|
|
6843
|
+
}, ov = async (e) => {
|
|
6844
6844
|
const t = await Ih(e);
|
|
6845
6845
|
return xh(t);
|
|
6846
|
-
},
|
|
6846
|
+
}, iv = async (e) => {
|
|
6847
6847
|
const t = await fetch(Nh(e));
|
|
6848
6848
|
if (!t.ok) return null;
|
|
6849
6849
|
const r = await t.blob();
|
|
6850
6850
|
return await fh(r);
|
|
6851
|
-
},
|
|
6851
|
+
}, cv = async (e, t) => {
|
|
6852
6852
|
const r = Vn();
|
|
6853
|
-
return await
|
|
6853
|
+
return await z(
|
|
6854
6854
|
yh(e, r.uuid, t)
|
|
6855
6855
|
);
|
|
6856
|
-
},
|
|
6856
|
+
}, uv = async (e, t, r, n, s) => {
|
|
6857
6857
|
const a = Vn();
|
|
6858
|
-
return await
|
|
6858
|
+
return await z(
|
|
6859
6859
|
vh(
|
|
6860
6860
|
e,
|
|
6861
6861
|
t,
|
|
@@ -6864,11 +6864,11 @@ const Vn = () => {
|
|
|
6864
6864
|
a.uuid
|
|
6865
6865
|
)
|
|
6866
6866
|
);
|
|
6867
|
-
},
|
|
6867
|
+
}, lv = async () => z(ri), qh = async () => (await z(wh("core"))).find(
|
|
6868
6868
|
(r) => r.property === bh
|
|
6869
|
-
)?.value ?? null,
|
|
6869
|
+
)?.value ?? null, dv = async () => {
|
|
6870
6870
|
const [e, t] = await Promise.all([
|
|
6871
|
-
|
|
6871
|
+
z(ri),
|
|
6872
6872
|
qh()
|
|
6873
6873
|
]), r = [], n = /* @__PURE__ */ new Map();
|
|
6874
6874
|
if (!t)
|
|
@@ -6883,14 +6883,14 @@ const Vn = () => {
|
|
|
6883
6883
|
sourcesByPrefix: n,
|
|
6884
6884
|
primaryIdentifierTypeUuid: t
|
|
6885
6885
|
}) : { prefixes: r, sourcesByPrefix: n, primaryIdentifierTypeUuid: t };
|
|
6886
|
-
},
|
|
6886
|
+
}, fv = async (e) => Ve(Eh, e), hv = async (e, t) => Ve(
|
|
6887
6887
|
_h(e),
|
|
6888
6888
|
t
|
|
6889
|
-
),
|
|
6889
|
+
), mv = async () => z(qo("mrs.genders")), pv = async (e, t, r = Ah, n) => {
|
|
6890
6890
|
if (!t || t.length < Ph)
|
|
6891
6891
|
return [];
|
|
6892
6892
|
try {
|
|
6893
|
-
return await
|
|
6893
|
+
return await z(
|
|
6894
6894
|
Rh(e, t, r, n)
|
|
6895
6895
|
);
|
|
6896
6896
|
} catch (s) {
|
|
@@ -6898,9 +6898,9 @@ const Vn = () => {
|
|
|
6898
6898
|
`Failed to fetch address hierarchy for field "${e}": ${s instanceof Error ? s.message : "Unknown error"}`
|
|
6899
6899
|
);
|
|
6900
6900
|
}
|
|
6901
|
-
},
|
|
6901
|
+
}, gv = async () => z(Th), yv = async (e) => z(Sh(e)), vv = async () => {
|
|
6902
6902
|
try {
|
|
6903
|
-
return (await
|
|
6903
|
+
return (await z(
|
|
6904
6904
|
Oh
|
|
6905
6905
|
)).results.map((t) => ({
|
|
6906
6906
|
uuid: t.uuid,
|
|
@@ -6912,9 +6912,9 @@ const Vn = () => {
|
|
|
6912
6912
|
`Failed to fetch relationship types: ${e instanceof Error ? e.message : "Unknown error"}`
|
|
6913
6913
|
);
|
|
6914
6914
|
}
|
|
6915
|
-
},
|
|
6915
|
+
}, wv = async () => z(Dh);
|
|
6916
6916
|
var Uh = /* @__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))(Uh || {}), jh = /* @__PURE__ */ ((e) => (e.CHECKBOX = "checkbox", e.DROPDOWN = "dropdown", e.TEXT = "text", e.NUMBER = "number", e.DATE = "date", e))(jh || {});
|
|
6917
|
-
const
|
|
6917
|
+
const bv = (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", Ev = (e) => e === "java.lang.Boolean" || e === "org.openmrs.customdatatype.datatype.BooleanDatatype", _v = (e) => e === "org.openmrs.Concept" || e === "org.bahmni.module.bahmnicore.customdatatype.datatype.CodedConceptDatatype" || e === "org.openmrs.customdatatype.datatype.ConceptDatatype", Sv = (e) => e === "java.lang.Integer" || e === "java.lang.Float", Rv = (e) => e === "org.openmrs.util.AttributableDate" || e === "org.openmrs.customdatatype.datatype.DateDatatype", Tv = (e) => e === "java.lang.String" || e === "org.openmrs.customdatatype.datatype.FreeTextDatatype" || e === "org.openmrs.customdatatype.datatype.RegexValidatedTextDatatype", Fh = (e) => {
|
|
6918
6918
|
const t = new CustomEvent("bahmni-audit-log", { detail: e });
|
|
6919
6919
|
window.dispatchEvent(t);
|
|
6920
6920
|
}, Vh = (e) => {
|
|
@@ -6967,10 +6967,10 @@ const wv = (e) => e === "java.lang.Boolean" || e === "org.openmrs.customdatatype
|
|
|
6967
6967
|
}
|
|
6968
6968
|
}, Hh = ee + "/auditlog", Bh = {
|
|
6969
6969
|
UNKNOWN_EVENT_TYPE: "AUDIT_LOG_ERROR_UNKNOWN_EVENT_TYPE"
|
|
6970
|
-
}, zh = () => ee + "/bahmnicore/config/bahmniencounter?callerContext=REGISTRATION_CONCEPTS", Wh = ee + "/visit", Gh = (e) => ee + `/visit?patient=${e}&includeInactive=false&v=custom:(uuid,visitType,startDatetime,stopDatetime)`, Yh = (e) => ee + `/bahmnicore/visitLocation/${e}`,
|
|
6970
|
+
}, zh = () => ee + "/bahmnicore/config/bahmniencounter?callerContext=REGISTRATION_CONCEPTS", Wh = ee + "/visit", Gh = (e) => ee + `/visit?patient=${e}&includeInactive=false&v=custom:(uuid,visitType,startDatetime,stopDatetime)`, Yh = (e) => ee + `/bahmnicore/visitLocation/${e}`, Ov = async () => z(zh()), Kh = async (e) => z(Gh(e)), Jh = async (e) => z(Yh(e)), Xh = async (e) => Ve(Wh, e), Av = async (e) => {
|
|
6971
6971
|
const t = await Kh(e);
|
|
6972
6972
|
return t?.results && t.results.length > 0;
|
|
6973
|
-
},
|
|
6973
|
+
}, Pv = async (e, t) => {
|
|
6974
6974
|
const r = await Jh(
|
|
6975
6975
|
Vn().uuid
|
|
6976
6976
|
), n = {
|
|
@@ -6984,7 +6984,7 @@ const wv = (e) => e === "java.lang.Boolean" || e === "org.openmrs.customdatatype
|
|
|
6984
6984
|
messageParams: { visitType: t.name },
|
|
6985
6985
|
module: Nn.OPEN_VISIT.module
|
|
6986
6986
|
}), s;
|
|
6987
|
-
},
|
|
6987
|
+
}, $v = {
|
|
6988
6988
|
PROPOSED: "proposed",
|
|
6989
6989
|
PENDING: "pending",
|
|
6990
6990
|
BOOKED: "booked",
|
|
@@ -6995,27 +6995,27 @@ const wv = (e) => e === "java.lang.Boolean" || e === "org.openmrs.customdatatype
|
|
|
6995
6995
|
CHECKED_IN: "checked-in",
|
|
6996
6996
|
WAITLIST: "waitlist",
|
|
6997
6997
|
ENTERED_IN_ERROR: "entered-in-error"
|
|
6998
|
-
}, Qh = ee + "/appointments/search", ni = ee + "/appointments",
|
|
6998
|
+
}, Qh = ee + "/appointments/search", ni = ee + "/appointments", Nv = "http://fhir.bahmni.org/code-system/appointments", Zh = (e) => `${ni}/${e}`, si = (e, t, r) => {
|
|
6999
6999
|
const n = t === "upcoming", s = n ? "ge" : "le", a = n ? "date" : "-date", o = n ? (/* @__PURE__ */ new Date()).toISOString() : bd(/* @__PURE__ */ new Date()).toISOString();
|
|
7000
7000
|
let i = `${le}/Appointment?patient=${e}&date=${s}${o}&_sort=${a}`;
|
|
7001
7001
|
return r !== void 0 && r > 0 && (i += `&_count=${r}`), i;
|
|
7002
|
-
}, em = (e) => si(e, "upcoming"), tm = (e, t) => si(e, "past", t), rm = (e) => `${ni}/${e}/status-change`,
|
|
7003
|
-
async function
|
|
7004
|
-
return await
|
|
7002
|
+
}, em = (e) => si(e, "upcoming"), tm = (e, t) => si(e, "past", t), rm = (e) => `${ni}/${e}/status-change`, nm = ee + "/appointmentService/all/full", Dv = async (e) => await Ve(Qh, e);
|
|
7003
|
+
async function Iv(e) {
|
|
7004
|
+
return await z(em(e));
|
|
7005
7005
|
}
|
|
7006
|
-
async function
|
|
7007
|
-
return await
|
|
7006
|
+
async function Cv(e, t) {
|
|
7007
|
+
return await z(
|
|
7008
7008
|
tm(e, t)
|
|
7009
7009
|
);
|
|
7010
7010
|
}
|
|
7011
|
-
const
|
|
7011
|
+
const Lv = async (e, t, r) => await Ve(rm(e), {
|
|
7012
7012
|
toStatus: t,
|
|
7013
7013
|
onDate: r
|
|
7014
7014
|
});
|
|
7015
|
-
async function
|
|
7016
|
-
return await
|
|
7015
|
+
async function kv(e) {
|
|
7016
|
+
return await z(Zh(e));
|
|
7017
7017
|
}
|
|
7018
|
-
const nm = () => {
|
|
7018
|
+
const Mv = async () => await z(nm), sm = () => {
|
|
7019
7019
|
let e = null;
|
|
7020
7020
|
return {
|
|
7021
7021
|
// Method to register the callback
|
|
@@ -7044,34 +7044,34 @@ const nm = () => {
|
|
|
7044
7044
|
);
|
|
7045
7045
|
}
|
|
7046
7046
|
};
|
|
7047
|
-
},
|
|
7048
|
-
const r = Nt(), n =
|
|
7049
|
-
return
|
|
7047
|
+
}, xv = sm(), am = (e) => le + `/ValueSet/${e}/$expand`, om = (e) => le + `/ValueSet/$expand?filter=${encodeURIComponent(e)}`, im = (e, t, r) => ee + `/bahmni/terminologies/concepts?limit=${t}&locale=${r}&term=${e}`, cm = (e) => ee + `/concept/${e}`, um = (e) => `${ee}/concept?s=byFullySpecifiedName&name=${encodeURIComponent(e)}`, lm = "SHORT", dm = "FULLY_SPECIFIED", qv = async (e, t = 20) => {
|
|
7048
|
+
const r = Nt(), n = im(e, t, r);
|
|
7049
|
+
return z(n);
|
|
7050
7050
|
}, Sr = async (e) => {
|
|
7051
|
-
const t =
|
|
7052
|
-
return
|
|
7053
|
-
},
|
|
7054
|
-
const t = `${
|
|
7055
|
-
return
|
|
7051
|
+
const t = am(e);
|
|
7052
|
+
return z(t);
|
|
7053
|
+
}, fm = async (e) => {
|
|
7054
|
+
const t = `${om(e)}`;
|
|
7055
|
+
return z(t);
|
|
7056
7056
|
};
|
|
7057
|
-
async function
|
|
7058
|
-
return await
|
|
7057
|
+
async function Uv(e) {
|
|
7058
|
+
return await z(cm(e));
|
|
7059
7059
|
}
|
|
7060
|
-
async function
|
|
7061
|
-
const t =
|
|
7060
|
+
async function jv(e) {
|
|
7061
|
+
const t = um(e), r = await z(t);
|
|
7062
7062
|
return !r.results || r.results.length === 0 ? null : r.results[0];
|
|
7063
7063
|
}
|
|
7064
|
-
function
|
|
7064
|
+
function hm(e) {
|
|
7065
7065
|
if (!e?.length) return null;
|
|
7066
7066
|
let t = null;
|
|
7067
7067
|
for (const r of e) {
|
|
7068
|
-
if (r.conceptNameType ===
|
|
7068
|
+
if (r.conceptNameType === lm)
|
|
7069
7069
|
return r.name;
|
|
7070
|
-
r.conceptNameType ===
|
|
7070
|
+
r.conceptNameType === dm && (t = r.name);
|
|
7071
7071
|
}
|
|
7072
7072
|
return t ?? e[0].name ?? null;
|
|
7073
7073
|
}
|
|
7074
|
-
const
|
|
7074
|
+
const mm = (e) => le + `/AllergyIntolerance?patient=${e}&_count=100&_sort=-_lastUpdated`, nt = {
|
|
7075
7075
|
FOOD: {
|
|
7076
7076
|
code: "162553AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
|
|
7077
7077
|
display: "food"
|
|
@@ -7084,16 +7084,16 @@ const hm = (e) => le + `/AllergyIntolerance?patient=${e}&_count=100&_sort=-_last
|
|
|
7084
7084
|
code: "162554AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
|
|
7085
7085
|
display: "environment"
|
|
7086
7086
|
}
|
|
7087
|
-
},
|
|
7087
|
+
}, pm = {
|
|
7088
7088
|
code: "162555AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
|
|
7089
|
-
},
|
|
7089
|
+
}, gm = (e) => e.filter((t) => t.inactive !== !0), ym = (e, t) => ({
|
|
7090
7090
|
uuid: e.code ?? "",
|
|
7091
7091
|
display: e.display ?? "",
|
|
7092
7092
|
type: t
|
|
7093
7093
|
}), an = (e, t) => {
|
|
7094
7094
|
const r = e.expansion?.contains ?? [];
|
|
7095
|
-
return
|
|
7096
|
-
},
|
|
7095
|
+
return gm(r).map((s) => ym(s, t));
|
|
7096
|
+
}, Fv = async (e, t, r) => {
|
|
7097
7097
|
const n = e ?? nt.MEDICATION.code, s = t ?? nt.FOOD.code, a = r ?? nt.ENVIRONMENT.code, [o, i, c] = await Promise.all([
|
|
7098
7098
|
Sr(n),
|
|
7099
7099
|
Sr(s),
|
|
@@ -7113,19 +7113,19 @@ const hm = (e) => le + `/AllergyIntolerance?patient=${e}&_count=100&_sort=-_last
|
|
|
7113
7113
|
nt.ENVIRONMENT.display
|
|
7114
7114
|
)
|
|
7115
7115
|
];
|
|
7116
|
-
},
|
|
7117
|
-
const t = e ??
|
|
7116
|
+
}, Vv = async (e) => {
|
|
7117
|
+
const t = e ?? pm.code;
|
|
7118
7118
|
return (await Sr(t)).compose?.include[0]?.concept ?? [];
|
|
7119
7119
|
};
|
|
7120
|
-
async function ym(e) {
|
|
7121
|
-
return await W(`${hm(e)}`);
|
|
7122
|
-
}
|
|
7123
7120
|
async function vm(e) {
|
|
7124
|
-
return
|
|
7121
|
+
return await z(`${mm(e)}`);
|
|
7122
|
+
}
|
|
7123
|
+
async function wm(e) {
|
|
7124
|
+
return (await vm(e)).entry?.map(
|
|
7125
7125
|
(r) => r.resource
|
|
7126
7126
|
) ?? [];
|
|
7127
7127
|
}
|
|
7128
|
-
function
|
|
7128
|
+
function bm(e) {
|
|
7129
7129
|
return e.map((t) => {
|
|
7130
7130
|
const r = t.clinicalStatus?.coding?.[0]?.display ?? "Unknown", n = t.reaction?.[0]?.severity ?? "Unknown";
|
|
7131
7131
|
return {
|
|
@@ -7147,22 +7147,22 @@ function wm(e) {
|
|
|
7147
7147
|
};
|
|
7148
7148
|
});
|
|
7149
7149
|
}
|
|
7150
|
-
async function
|
|
7151
|
-
const t = await
|
|
7152
|
-
return
|
|
7150
|
+
async function Hv(e) {
|
|
7151
|
+
const t = await wm(e);
|
|
7152
|
+
return bm(t);
|
|
7153
7153
|
}
|
|
7154
|
-
var
|
|
7155
|
-
const
|
|
7154
|
+
var Em = /* @__PURE__ */ ((e) => (e.Active = "Active", e.Inactive = "Inactive", e))(Em || {}), _m = /* @__PURE__ */ ((e) => (e.mild = "mild", e.moderate = "moderate", e.severe = "severe", e))(_m || {});
|
|
7155
|
+
const Bv = "http://fhir.openmrs.org/code-system/encounter-type", Sm = "problem-list-item", zv = "http://terminology.hl7.org/CodeSystem/condition-ver-status", Rm = "encounter-diagnosis", Wv = "http://terminology.hl7.org/CodeSystem/condition-clinical", Gv = "http://terminology.hl7.org/CodeSystem/condition-category", Yv = "http://fhir.bahmni.org/ext/lab-order-concept-type", Kv = "http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation", Jv = "http://fhir.bahmni.org/ext/observation/form-namespace-path", Xv = "http://fhir.bahmni.org/ext/observation/obs-value-attachment", Qv = "Numeric", Zv = "Complex", ew = "final", tw = "Observation", rw = /^\d{4}-\d{2}-\d{2}/, Tm = /^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}/, nw = {
|
|
7156
7156
|
ABNORMAL: { code: "A", display: "Abnormal" },
|
|
7157
7157
|
NORMAL: { code: "N", display: "Normal" }
|
|
7158
|
-
},
|
|
7159
|
-
async function
|
|
7160
|
-
return await
|
|
7158
|
+
}, Om = (e) => le + `/Condition?category=${Sm}&patient=${e}&_count=100&_sort=-_lastUpdated`;
|
|
7159
|
+
async function Am(e) {
|
|
7160
|
+
return await z(`${Om(e)}`);
|
|
7161
7161
|
}
|
|
7162
|
-
async function
|
|
7163
|
-
return (await
|
|
7162
|
+
async function sw(e) {
|
|
7163
|
+
return (await Am(e)).entry?.filter((n) => n.resource?.resourceType === "Condition").map((n) => n.resource) ?? [];
|
|
7164
7164
|
}
|
|
7165
|
-
const
|
|
7165
|
+
const Pm = (e) => le + `/Condition?category=${Rm}&patient=${e}&_count=100&_sort=-_lastUpdated`, on = [
|
|
7166
7166
|
{
|
|
7167
7167
|
code: "confirmed",
|
|
7168
7168
|
display: "CERTAINITY_CONFIRMED",
|
|
@@ -7173,26 +7173,26 @@ const Am = (e) => le + `/Condition?category=${Sm}&patient=${e}&_count=100&_sort=
|
|
|
7173
7173
|
display: "CERTAINITY_PROVISIONAL",
|
|
7174
7174
|
system: "http://terminology.hl7.org/CodeSystem/condition-ver-status"
|
|
7175
7175
|
}
|
|
7176
|
-
],
|
|
7177
|
-
async function
|
|
7178
|
-
const t =
|
|
7179
|
-
return await
|
|
7176
|
+
], $m = "confirmed", Nm = "provisional";
|
|
7177
|
+
async function Dm(e) {
|
|
7178
|
+
const t = Pm(e);
|
|
7179
|
+
return await z(t);
|
|
7180
7180
|
}
|
|
7181
|
-
const
|
|
7181
|
+
const Im = (e) => {
|
|
7182
7182
|
switch (e.verificationStatus?.coding?.[0]?.code) {
|
|
7183
|
-
case Pm:
|
|
7184
|
-
return on[0];
|
|
7185
7183
|
case $m:
|
|
7184
|
+
return on[0];
|
|
7185
|
+
case Nm:
|
|
7186
7186
|
return on[1];
|
|
7187
7187
|
default:
|
|
7188
7188
|
return on[1];
|
|
7189
7189
|
}
|
|
7190
|
-
},
|
|
7191
|
-
function
|
|
7190
|
+
}, Cm = (e) => !!(e.id && e.code && e.recordedDate);
|
|
7191
|
+
function Lm(e) {
|
|
7192
7192
|
return (e.entry?.filter((r) => r.resource?.resourceType === "Condition").map((r) => r.resource) ?? []).map((r) => {
|
|
7193
|
-
if (!
|
|
7193
|
+
if (!Cm(r))
|
|
7194
7194
|
throw new Error("Incomplete diagnosis data");
|
|
7195
|
-
const n =
|
|
7195
|
+
const n = Im(r), s = r.recordedDate;
|
|
7196
7196
|
return {
|
|
7197
7197
|
id: r.id,
|
|
7198
7198
|
display: r.code?.text ?? "",
|
|
@@ -7202,7 +7202,7 @@ function Cm(e) {
|
|
|
7202
7202
|
};
|
|
7203
7203
|
});
|
|
7204
7204
|
}
|
|
7205
|
-
function
|
|
7205
|
+
function km(e) {
|
|
7206
7206
|
const t = /* @__PURE__ */ new Map();
|
|
7207
7207
|
for (const r of e) {
|
|
7208
7208
|
const n = r.display.toLowerCase().trim(), s = t.get(n);
|
|
@@ -7215,9 +7215,9 @@ function Lm(e) {
|
|
|
7215
7215
|
}
|
|
7216
7216
|
return Array.from(t.values());
|
|
7217
7217
|
}
|
|
7218
|
-
async function
|
|
7219
|
-
const t = await
|
|
7220
|
-
return
|
|
7218
|
+
async function aw(e) {
|
|
7219
|
+
const t = await Dm(e), r = Lm(t);
|
|
7220
|
+
return km(r);
|
|
7221
7221
|
}
|
|
7222
7222
|
var qe = /* @__PURE__ */ ((e) => (e.Active = "active", e.OnHold = "on-hold", e.Completed = "completed", e.Stopped = "stopped", e.Cancelled = "cancelled", e.EnteredInError = "entered-in-error", e.Draft = "draft", e.Unknown = "unknown", e))(qe || {});
|
|
7223
7223
|
const _t = {
|
|
@@ -7228,13 +7228,13 @@ const _t = {
|
|
|
7228
7228
|
// Trade-off: Larger payload but avoids redundant API calls
|
|
7229
7229
|
// Use only when medication details are needed immediately
|
|
7230
7230
|
INCLUDE_MEDICATION: "_include=MedicationRequest:medication"
|
|
7231
|
-
},
|
|
7231
|
+
}, Mm = (e, t, r) => {
|
|
7232
7232
|
let s = `${le + "/MedicationRequest?" + _t.SORT + "&" + _t.COUNT}&patient=${e}`;
|
|
7233
7233
|
return t && (s += `&code=${t}`), r && (s += `&encounter=${r}`), s;
|
|
7234
|
-
},
|
|
7234
|
+
}, xm = (e, t, r) => {
|
|
7235
7235
|
let s = `${le + "/MedicationRequest?" + _t.SORT + "&" + _t.COUNT + "&" + _t.INCLUDE_MEDICATION}&patient=${e}`;
|
|
7236
7236
|
return t && (s += `&code=${t}`), r && (s += `&encounter=${r}`), s;
|
|
7237
|
-
},
|
|
7237
|
+
}, qm = ee + "/bahmnicore/config/drugOrders", Um = (e, t) => le + `/Medication?name=${encodeURIComponent(e)}&_count=${t}&_sort=-_lastUpdated`, jm = le + "/Medication?code=http://hl7.org/fhir/sid/cvx|&_count=100", Fm = (e) => {
|
|
7238
7238
|
switch (e.status) {
|
|
7239
7239
|
case "active":
|
|
7240
7240
|
return qe.Active;
|
|
@@ -7254,36 +7254,36 @@ const _t = {
|
|
|
7254
7254
|
return qe.Unknown;
|
|
7255
7255
|
}
|
|
7256
7256
|
};
|
|
7257
|
-
async function
|
|
7257
|
+
async function Vm(e, t, r, n = !1) {
|
|
7258
7258
|
let s;
|
|
7259
7259
|
r && r.length > 0 && (s = r.join(","));
|
|
7260
7260
|
let a;
|
|
7261
7261
|
t && t.length > 0 && (a = t.join(","));
|
|
7262
|
-
const i = (n ?
|
|
7263
|
-
return await
|
|
7262
|
+
const i = (n ? xm : Mm)(e, a, s);
|
|
7263
|
+
return await z(i);
|
|
7264
7264
|
}
|
|
7265
|
-
function
|
|
7265
|
+
function Hm(e) {
|
|
7266
7266
|
const t = e?.[0]?.doseAndRate?.[0]?.doseQuantity;
|
|
7267
7267
|
return {
|
|
7268
7268
|
value: t?.value ?? 0,
|
|
7269
7269
|
unit: t?.unit ?? ""
|
|
7270
7270
|
};
|
|
7271
7271
|
}
|
|
7272
|
-
function
|
|
7272
|
+
function Bm(e) {
|
|
7273
7273
|
return e?.[0]?.timing?.code?.coding?.[0]?.display ?? "";
|
|
7274
7274
|
}
|
|
7275
|
-
function
|
|
7275
|
+
function zm(e) {
|
|
7276
7276
|
const t = e?.[0]?.route;
|
|
7277
7277
|
return t && Array.isArray(t.coding) && t.coding[0]?.display ? t.coding[0].display : "";
|
|
7278
7278
|
}
|
|
7279
|
-
function
|
|
7279
|
+
function Wm(e) {
|
|
7280
7280
|
const t = e?.[0]?.timing?.repeat, r = t?.durationUnit;
|
|
7281
7281
|
return {
|
|
7282
7282
|
duration: t?.duration ?? 0,
|
|
7283
7283
|
durationUnit: r ?? ""
|
|
7284
7284
|
};
|
|
7285
7285
|
}
|
|
7286
|
-
function
|
|
7286
|
+
function Gm(e) {
|
|
7287
7287
|
try {
|
|
7288
7288
|
const t = e?.[0]?.text;
|
|
7289
7289
|
return t ? JSON.parse(t).additionalInstructions ?? "" : "";
|
|
@@ -7291,7 +7291,7 @@ function Wm(e) {
|
|
|
7291
7291
|
return "";
|
|
7292
7292
|
}
|
|
7293
7293
|
}
|
|
7294
|
-
function
|
|
7294
|
+
function Ym(e) {
|
|
7295
7295
|
try {
|
|
7296
7296
|
const t = e?.[0]?.text;
|
|
7297
7297
|
return t ? JSON.parse(t).instructions ?? "" : "";
|
|
@@ -7299,17 +7299,17 @@ function Gm(e) {
|
|
|
7299
7299
|
return "";
|
|
7300
7300
|
}
|
|
7301
7301
|
}
|
|
7302
|
-
function
|
|
7302
|
+
function Km(e) {
|
|
7303
7303
|
const t = e?.quantity;
|
|
7304
7304
|
return {
|
|
7305
7305
|
value: t?.value ?? 0,
|
|
7306
7306
|
unit: t?.unit ?? ""
|
|
7307
7307
|
};
|
|
7308
7308
|
}
|
|
7309
|
-
function
|
|
7309
|
+
function Jm(e) {
|
|
7310
7310
|
return !e || e.length === 0 ? "" : e.map((t) => t.text).filter(Boolean).join(" ");
|
|
7311
7311
|
}
|
|
7312
|
-
function
|
|
7312
|
+
function Xm(e, t, r) {
|
|
7313
7313
|
if (e?.display)
|
|
7314
7314
|
return e.display;
|
|
7315
7315
|
if (e?.reference) {
|
|
@@ -7325,7 +7325,7 @@ function Jm(e, t, r) {
|
|
|
7325
7325
|
);
|
|
7326
7326
|
return n?.code?.text ? n.code.text : e?.reference ? e.reference : "Medication";
|
|
7327
7327
|
}
|
|
7328
|
-
function
|
|
7328
|
+
function Qm(e, t, r) {
|
|
7329
7329
|
if (e?.reference) {
|
|
7330
7330
|
const s = e.reference.split("/").pop();
|
|
7331
7331
|
if (s) {
|
|
@@ -7339,7 +7339,7 @@ function Xm(e, t, r) {
|
|
|
7339
7339
|
);
|
|
7340
7340
|
return n?.form ? n.form.text ?? n.form.coding?.[0]?.display ?? "" : "";
|
|
7341
7341
|
}
|
|
7342
|
-
function
|
|
7342
|
+
function Zm(e) {
|
|
7343
7343
|
const t = e.entry?.filter((n) => {
|
|
7344
7344
|
const s = n.resource;
|
|
7345
7345
|
return s?.resourceType === "MedicationRequest" && !!s?.id;
|
|
@@ -7348,11 +7348,11 @@ function Qm(e) {
|
|
|
7348
7348
|
const s = n.resource;
|
|
7349
7349
|
s.resourceType === "Medication" && r.set(s.id, s);
|
|
7350
7350
|
}), t.map((n) => {
|
|
7351
|
-
const s = n.medicationReference, a = n.requester, o =
|
|
7351
|
+
const s = n.medicationReference, a = n.requester, o = Fm(n), i = Xm(
|
|
7352
7352
|
s,
|
|
7353
7353
|
n,
|
|
7354
7354
|
r
|
|
7355
|
-
), c =
|
|
7355
|
+
), c = Qm(
|
|
7356
7356
|
s,
|
|
7357
7357
|
n,
|
|
7358
7358
|
r
|
|
@@ -7360,55 +7360,55 @@ function Qm(e) {
|
|
|
7360
7360
|
return {
|
|
7361
7361
|
id: n.id,
|
|
7362
7362
|
name: i,
|
|
7363
|
-
dose:
|
|
7363
|
+
dose: Hm(n.dosageInstruction),
|
|
7364
7364
|
asNeeded: n.dosageInstruction?.[0]?.asNeededBoolean ?? !1,
|
|
7365
|
-
frequency:
|
|
7366
|
-
route:
|
|
7367
|
-
duration:
|
|
7365
|
+
frequency: Bm(n.dosageInstruction),
|
|
7366
|
+
route: zm(n.dosageInstruction),
|
|
7367
|
+
duration: Wm(n.dosageInstruction),
|
|
7368
7368
|
status: o,
|
|
7369
7369
|
priority: n.priority ?? "",
|
|
7370
7370
|
isImmediate: Ws(n),
|
|
7371
|
-
quantity:
|
|
7371
|
+
quantity: Km(n.dispenseRequest),
|
|
7372
7372
|
startDate: Ws(n) ? n.authoredOn : n.dosageInstruction?.[0]?.timing?.event?.[0] ?? "",
|
|
7373
7373
|
orderDate: n.authoredOn,
|
|
7374
7374
|
orderedBy: a?.display ?? "Unknown",
|
|
7375
|
-
instructions:
|
|
7376
|
-
additionalInstructions:
|
|
7375
|
+
instructions: Ym(n.dosageInstruction),
|
|
7376
|
+
additionalInstructions: Gm(
|
|
7377
7377
|
n.dosageInstruction
|
|
7378
7378
|
),
|
|
7379
|
-
note:
|
|
7379
|
+
note: Jm(n.note),
|
|
7380
7380
|
doseForm: c
|
|
7381
7381
|
};
|
|
7382
7382
|
});
|
|
7383
7383
|
}
|
|
7384
7384
|
const Ws = (e) => e.priority === "stat" || e.dosageInstruction?.[0]?.timing?.code?.text === "Immediately" || !1;
|
|
7385
|
-
async function
|
|
7386
|
-
const s = await
|
|
7385
|
+
async function ow(e, t, r, n = !1) {
|
|
7386
|
+
const s = await Vm(
|
|
7387
7387
|
e,
|
|
7388
7388
|
t,
|
|
7389
7389
|
r,
|
|
7390
7390
|
n
|
|
7391
7391
|
);
|
|
7392
|
-
return
|
|
7392
|
+
return Zm(s);
|
|
7393
7393
|
}
|
|
7394
|
-
async function
|
|
7395
|
-
return await
|
|
7396
|
-
|
|
7394
|
+
async function iw() {
|
|
7395
|
+
return await z(
|
|
7396
|
+
qm
|
|
7397
7397
|
);
|
|
7398
7398
|
}
|
|
7399
|
-
async function
|
|
7400
|
-
return await
|
|
7401
|
-
|
|
7399
|
+
async function cw(e, t = 20) {
|
|
7400
|
+
return await z(
|
|
7401
|
+
Um(e, t)
|
|
7402
7402
|
);
|
|
7403
7403
|
}
|
|
7404
|
-
async function
|
|
7405
|
-
return await
|
|
7404
|
+
async function uw() {
|
|
7405
|
+
return await z(jm);
|
|
7406
7406
|
}
|
|
7407
|
-
const
|
|
7408
|
-
let o = `${le + "/ServiceRequest?
|
|
7407
|
+
const ep = (e, t, r, n, s) => {
|
|
7408
|
+
let o = `${le + "/ServiceRequest?_sort=-_lastUpdated"}&category=${e}&patient=${t}`;
|
|
7409
7409
|
return s && (o += `&_revinclude=${s}`), r ? o += `&encounter=${r}` : n && (o += `&numberOfVisits=${n}`), o;
|
|
7410
7410
|
};
|
|
7411
|
-
function
|
|
7411
|
+
function tp(e) {
|
|
7412
7412
|
if (!e || e.length === 0)
|
|
7413
7413
|
return [];
|
|
7414
7414
|
const t = /* @__PURE__ */ new Set();
|
|
@@ -7423,8 +7423,8 @@ function ep(e) {
|
|
|
7423
7423
|
async function It(e, t, r, n, s) {
|
|
7424
7424
|
let a;
|
|
7425
7425
|
r && r.length > 0 && (a = r.join(","));
|
|
7426
|
-
const o = await
|
|
7427
|
-
|
|
7426
|
+
const o = await z(
|
|
7427
|
+
ep(
|
|
7428
7428
|
e,
|
|
7429
7429
|
t,
|
|
7430
7430
|
a,
|
|
@@ -7432,9 +7432,9 @@ async function It(e, t, r, n, s) {
|
|
|
7432
7432
|
s
|
|
7433
7433
|
)
|
|
7434
7434
|
);
|
|
7435
|
-
return o.entry && (o.entry =
|
|
7435
|
+
return o.entry && (o.entry = tp(o.entry), o.total = o.entry.length), o;
|
|
7436
7436
|
}
|
|
7437
|
-
async function
|
|
7437
|
+
async function lw(e, t, r, n) {
|
|
7438
7438
|
return await It(
|
|
7439
7439
|
t,
|
|
7440
7440
|
e,
|
|
@@ -7442,7 +7442,7 @@ async function cw(e, t, r, n) {
|
|
|
7442
7442
|
n
|
|
7443
7443
|
);
|
|
7444
7444
|
}
|
|
7445
|
-
async function
|
|
7445
|
+
async function dw(e, t, r, n) {
|
|
7446
7446
|
return await It(
|
|
7447
7447
|
t,
|
|
7448
7448
|
e,
|
|
@@ -7451,7 +7451,7 @@ async function uw(e, t, r, n) {
|
|
|
7451
7451
|
"ImagingStudy:basedon"
|
|
7452
7452
|
);
|
|
7453
7453
|
}
|
|
7454
|
-
async function
|
|
7454
|
+
async function fw(e, t, r, n) {
|
|
7455
7455
|
return (await It(
|
|
7456
7456
|
t,
|
|
7457
7457
|
e,
|
|
@@ -7459,7 +7459,7 @@ async function lw(e, t, r, n) {
|
|
|
7459
7459
|
n
|
|
7460
7460
|
)).entry?.filter((o) => o.resource?.resourceType === "ServiceRequest").map((o) => o.resource) ?? [];
|
|
7461
7461
|
}
|
|
7462
|
-
async function
|
|
7462
|
+
async function hw(e, t, r, n) {
|
|
7463
7463
|
return await It(
|
|
7464
7464
|
t,
|
|
7465
7465
|
e,
|
|
@@ -7467,36 +7467,36 @@ async function dw(e, t, r, n) {
|
|
|
7467
7467
|
n
|
|
7468
7468
|
);
|
|
7469
7469
|
}
|
|
7470
|
-
const
|
|
7470
|
+
const rp = (e, t) => {
|
|
7471
7471
|
const r = `${le}/DiagnosticReport?patient=${e}`;
|
|
7472
7472
|
return t ? `${r}&based-on=${t}` : r;
|
|
7473
|
-
},
|
|
7474
|
-
async function
|
|
7475
|
-
const r = t.length > 0 ? t.join(",") : void 0, n =
|
|
7476
|
-
return await
|
|
7473
|
+
}, np = (e) => `${le}/DiagnosticReport/${e}/$fetch-bundle`, sp = (e) => `${le}/DiagnosticReport/${e}/$update-bundle`;
|
|
7474
|
+
async function mw(e, t = []) {
|
|
7475
|
+
const r = t.length > 0 ? t.join(",") : void 0, n = rp(e, r);
|
|
7476
|
+
return await z(n);
|
|
7477
7477
|
}
|
|
7478
|
-
async function
|
|
7479
|
-
const t =
|
|
7480
|
-
return await
|
|
7478
|
+
async function pw(e) {
|
|
7479
|
+
const t = np(e);
|
|
7480
|
+
return await z(t);
|
|
7481
7481
|
}
|
|
7482
|
-
async function
|
|
7483
|
-
const r =
|
|
7482
|
+
async function gw(e, t) {
|
|
7483
|
+
const r = sp(e);
|
|
7484
7484
|
return await Ve(r, t);
|
|
7485
7485
|
}
|
|
7486
|
-
const
|
|
7486
|
+
const yw = [
|
|
7487
7487
|
"preliminary",
|
|
7488
7488
|
"final",
|
|
7489
7489
|
"amended",
|
|
7490
7490
|
"corrected",
|
|
7491
7491
|
"appended"
|
|
7492
|
-
],
|
|
7492
|
+
], vw = [
|
|
7493
7493
|
"registered",
|
|
7494
7494
|
"unknown",
|
|
7495
7495
|
"partial"
|
|
7496
|
-
],
|
|
7496
|
+
], ap = "All Orderables", op = "/openmrs/ws/rest/v1/ordertype?v=custom:(uuid,display,conceptClasses:(uuid,name))", ip = "LabSet", cp = "http://fhir.bahmni.org/ext/ValueSet/concept-class", ww = ["orderTypes"], up = async () => await fm(ap), Bn = async () => await z(op), lp = (e) => {
|
|
7497
7497
|
let t = e.display ?? "Unknown investigation";
|
|
7498
|
-
return ai(e) ===
|
|
7499
|
-
},
|
|
7498
|
+
return ai(e) === ip && (t += ` (${ue.t("INVESTIGATION_PANEL")})`), t;
|
|
7499
|
+
}, dp = (e) => {
|
|
7500
7500
|
const t = /* @__PURE__ */ new Map();
|
|
7501
7501
|
return e.results.forEach((r) => {
|
|
7502
7502
|
r.conceptClasses.forEach((n) => {
|
|
@@ -7505,10 +7505,10 @@ const pw = [
|
|
|
7505
7505
|
}), t;
|
|
7506
7506
|
}, ai = (e) => {
|
|
7507
7507
|
const t = e.extension?.find(
|
|
7508
|
-
(r) => r.url ===
|
|
7508
|
+
(r) => r.url === cp
|
|
7509
7509
|
);
|
|
7510
7510
|
return t ? t.valueString ?? "" : "";
|
|
7511
|
-
},
|
|
7511
|
+
}, fp = (e, t) => {
|
|
7512
7512
|
const r = [];
|
|
7513
7513
|
return !e.expansion?.contains || e.expansion.contains.length === 0 || t.size === 0 || e.expansion.contains.forEach((n) => {
|
|
7514
7514
|
n.contains?.forEach((s) => {
|
|
@@ -7518,19 +7518,19 @@ const pw = [
|
|
|
7518
7518
|
return;
|
|
7519
7519
|
r.filter((l) => l.code === a.code && l.categoryCode === i.uuid).length > 0 || r.push({
|
|
7520
7520
|
code: a.code ?? "",
|
|
7521
|
-
display:
|
|
7521
|
+
display: lp(a),
|
|
7522
7522
|
category: i.display,
|
|
7523
7523
|
categoryCode: i.uuid
|
|
7524
7524
|
});
|
|
7525
7525
|
});
|
|
7526
7526
|
});
|
|
7527
7527
|
}), r;
|
|
7528
|
-
},
|
|
7529
|
-
const e = await
|
|
7530
|
-
return
|
|
7531
|
-
},
|
|
7528
|
+
}, bw = async () => {
|
|
7529
|
+
const e = await up(), t = await Bn();
|
|
7530
|
+
return fp(e, dp(t));
|
|
7531
|
+
}, Ew = async (e) => e ? (await Bn()).results.find(
|
|
7532
7532
|
(n) => n.display.toLowerCase() === e.toLowerCase()
|
|
7533
|
-
)?.uuid : void 0,
|
|
7533
|
+
)?.uuid : void 0, _w = async () => (await Bn()).results.map((t) => t.display), Sw = async (e, t, r) => {
|
|
7534
7534
|
const n = [];
|
|
7535
7535
|
for (const s of e) {
|
|
7536
7536
|
const a = s.uuid;
|
|
@@ -7550,7 +7550,7 @@ const pw = [
|
|
|
7550
7550
|
}
|
|
7551
7551
|
return n;
|
|
7552
7552
|
};
|
|
7553
|
-
function
|
|
7553
|
+
function hp(e) {
|
|
7554
7554
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
7555
7555
|
}
|
|
7556
7556
|
var Mt = { exports: {} }, cn = {}, ke = {}, Be = {}, un = {}, ln = {}, dn = {}, Gs;
|
|
@@ -7861,7 +7861,7 @@ function Q() {
|
|
|
7861
7861
|
}
|
|
7862
7862
|
optimizeNames(w, T) {
|
|
7863
7863
|
if (w[this.name.str])
|
|
7864
|
-
return this.rhs && (this.rhs =
|
|
7864
|
+
return this.rhs && (this.rhs = W(this.rhs, w, T)), this;
|
|
7865
7865
|
}
|
|
7866
7866
|
get names() {
|
|
7867
7867
|
return this.rhs instanceof t._CodeOrName ? this.rhs.names : {};
|
|
@@ -7876,7 +7876,7 @@ function Q() {
|
|
|
7876
7876
|
}
|
|
7877
7877
|
optimizeNames(w, T) {
|
|
7878
7878
|
if (!(this.lhs instanceof t.Name && !w[this.lhs.str] && !this.sideEffects))
|
|
7879
|
-
return this.rhs =
|
|
7879
|
+
return this.rhs = W(this.rhs, w, T), this;
|
|
7880
7880
|
}
|
|
7881
7881
|
get names() {
|
|
7882
7882
|
const w = this.lhs instanceof t.Name ? {} : { ...this.lhs.names };
|
|
@@ -7929,7 +7929,7 @@ function Q() {
|
|
|
7929
7929
|
return `${this.code}` ? this : void 0;
|
|
7930
7930
|
}
|
|
7931
7931
|
optimizeNames(w, T) {
|
|
7932
|
-
return this.code =
|
|
7932
|
+
return this.code = W(this.code, w, T), this;
|
|
7933
7933
|
}
|
|
7934
7934
|
get names() {
|
|
7935
7935
|
return this.code instanceof t._CodeOrName ? this.code.names : {};
|
|
@@ -8000,7 +8000,7 @@ function Q() {
|
|
|
8000
8000
|
optimizeNames(w, T) {
|
|
8001
8001
|
var I;
|
|
8002
8002
|
if (this.else = (I = this.else) === null || I === void 0 ? void 0 : I.optimizeNames(w, T), !!(super.optimizeNames(w, T) || this.else))
|
|
8003
|
-
return this.condition =
|
|
8003
|
+
return this.condition = W(this.condition, w, T), this;
|
|
8004
8004
|
}
|
|
8005
8005
|
get names() {
|
|
8006
8006
|
const w = super.names;
|
|
@@ -8020,7 +8020,7 @@ function Q() {
|
|
|
8020
8020
|
}
|
|
8021
8021
|
optimizeNames(w, T) {
|
|
8022
8022
|
if (super.optimizeNames(w, T))
|
|
8023
|
-
return this.iteration =
|
|
8023
|
+
return this.iteration = W(this.iteration, w, T), this;
|
|
8024
8024
|
}
|
|
8025
8025
|
get names() {
|
|
8026
8026
|
return j(super.names, this.iteration.names);
|
|
@@ -8048,7 +8048,7 @@ function Q() {
|
|
|
8048
8048
|
}
|
|
8049
8049
|
optimizeNames(w, T) {
|
|
8050
8050
|
if (super.optimizeNames(w, T))
|
|
8051
|
-
return this.iterable =
|
|
8051
|
+
return this.iterable = W(this.iterable, w, T), this;
|
|
8052
8052
|
}
|
|
8053
8053
|
get names() {
|
|
8054
8054
|
return j(super.names, this.iterable.names);
|
|
@@ -8321,7 +8321,7 @@ function Q() {
|
|
|
8321
8321
|
function V(N, w) {
|
|
8322
8322
|
return w instanceof t._CodeOrName ? j(N, w.names) : N;
|
|
8323
8323
|
}
|
|
8324
|
-
function
|
|
8324
|
+
function W(N, w, T) {
|
|
8325
8325
|
if (N instanceof t.Name)
|
|
8326
8326
|
return I(N);
|
|
8327
8327
|
if (!F(N))
|
|
@@ -8614,7 +8614,7 @@ function Hr() {
|
|
|
8614
8614
|
})(un)), un;
|
|
8615
8615
|
}
|
|
8616
8616
|
var ea;
|
|
8617
|
-
function
|
|
8617
|
+
function mp() {
|
|
8618
8618
|
if (ea) return Be;
|
|
8619
8619
|
ea = 1, Object.defineProperty(Be, "__esModule", { value: !0 }), Be.boolOrEmptySchema = Be.topBoolOrEmptySchema = void 0;
|
|
8620
8620
|
const e = Hr(), t = Q(), r = He(), n = {
|
|
@@ -8839,7 +8839,7 @@ function Cr() {
|
|
|
8839
8839
|
return ye;
|
|
8840
8840
|
}
|
|
8841
8841
|
var yt = {}, sa;
|
|
8842
|
-
function
|
|
8842
|
+
function pp() {
|
|
8843
8843
|
if (sa) return yt;
|
|
8844
8844
|
sa = 1, Object.defineProperty(yt, "__esModule", { value: !0 }), yt.assignDefaults = void 0;
|
|
8845
8845
|
const e = Q(), t = te();
|
|
@@ -8923,8 +8923,8 @@ function Ce() {
|
|
|
8923
8923
|
[r.default.rootData, r.default.rootData]
|
|
8924
8924
|
];
|
|
8925
8925
|
P.opts.dynamicRef && V.push([r.default.dynamicAnchors, r.default.dynamicAnchors]);
|
|
8926
|
-
const
|
|
8927
|
-
return U !== e.nil ? (0, e._)`${k}.call(${U}, ${
|
|
8926
|
+
const W = (0, e._)`${j}, ${b.object(...V)}`;
|
|
8927
|
+
return U !== e.nil ? (0, e._)`${k}.call(${U}, ${W})` : (0, e._)`${k}(${W})`;
|
|
8928
8928
|
}
|
|
8929
8929
|
ae.callValidateCode = S;
|
|
8930
8930
|
const v = (0, e._)`new RegExp`;
|
|
@@ -8975,7 +8975,7 @@ function Ce() {
|
|
|
8975
8975
|
return ae.validateUnion = h, ae;
|
|
8976
8976
|
}
|
|
8977
8977
|
var oa;
|
|
8978
|
-
function
|
|
8978
|
+
function gp() {
|
|
8979
8979
|
if (oa) return De;
|
|
8980
8980
|
oa = 1, Object.defineProperty(De, "__esModule", { value: !0 }), De.validateKeywordUsage = De.validSchemaType = De.funcKeywordCode = De.macroKeywordCode = void 0;
|
|
8981
8981
|
const e = Q(), t = He(), r = Ce(), n = Hr();
|
|
@@ -9008,19 +9008,19 @@ function pp() {
|
|
|
9008
9008
|
}
|
|
9009
9009
|
function k() {
|
|
9010
9010
|
const V = g.let("ruleErrs", null);
|
|
9011
|
-
return g.try(() => q((0, e._)`await `), (
|
|
9011
|
+
return g.try(() => q((0, e._)`await `), (W) => g.assign(R, !1).if((0, e._)`${W} instanceof ${b.ValidationError}`, () => g.assign(V, (0, e._)`${W}.errors`), () => g.throw(W))), V;
|
|
9012
9012
|
}
|
|
9013
9013
|
function U() {
|
|
9014
9014
|
const V = (0, e._)`${E}.errors`;
|
|
9015
9015
|
return g.assign(V, null), q(e.nil), V;
|
|
9016
9016
|
}
|
|
9017
9017
|
function q(V = S.async ? (0, e._)`await ` : e.nil) {
|
|
9018
|
-
const
|
|
9019
|
-
g.assign(R, (0, e._)`${V}${(0, r.callValidateCode)(y, E,
|
|
9018
|
+
const W = b.opts.passContext ? t.default.this : t.default.self, re = !("compile" in S && !m || S.schema === !1);
|
|
9019
|
+
g.assign(R, (0, e._)`${V}${(0, r.callValidateCode)(y, E, W, re)}`, S.modifying);
|
|
9020
9020
|
}
|
|
9021
9021
|
function j(V) {
|
|
9022
|
-
var
|
|
9023
|
-
g.if((0, e.not)((
|
|
9022
|
+
var W;
|
|
9023
|
+
g.if((0, e.not)((W = S.valid) !== null && W !== void 0 ? W : R), V);
|
|
9024
9024
|
}
|
|
9025
9025
|
}
|
|
9026
9026
|
De.funcKeywordCode = a;
|
|
@@ -9064,7 +9064,7 @@ function pp() {
|
|
|
9064
9064
|
return De.validateKeywordUsage = p, De;
|
|
9065
9065
|
}
|
|
9066
9066
|
var xe = {}, ia;
|
|
9067
|
-
function
|
|
9067
|
+
function yp() {
|
|
9068
9068
|
if (ia) return xe;
|
|
9069
9069
|
ia = 1, Object.defineProperty(xe, "__esModule", { value: !0 }), xe.extendSubschemaMode = xe.extendSubschemaData = xe.getSubschema = void 0;
|
|
9070
9070
|
const e = Q(), t = te();
|
|
@@ -9148,7 +9148,7 @@ function ci() {
|
|
|
9148
9148
|
}), hn;
|
|
9149
9149
|
}
|
|
9150
9150
|
var mn = { exports: {} }, ua;
|
|
9151
|
-
function
|
|
9151
|
+
function vp() {
|
|
9152
9152
|
if (ua) return mn.exports;
|
|
9153
9153
|
ua = 1;
|
|
9154
9154
|
var e = mn.exports = function(n, s, a) {
|
|
@@ -9226,7 +9226,7 @@ var la;
|
|
|
9226
9226
|
function Br() {
|
|
9227
9227
|
if (la) return we;
|
|
9228
9228
|
la = 1, Object.defineProperty(we, "__esModule", { value: !0 }), we.getSchemaRefs = we.resolveUrl = we.normalizeId = we._getFullPath = we.getFullPath = we.inlineRef = void 0;
|
|
9229
|
-
const e = te(), t = ci(), r =
|
|
9229
|
+
const e = te(), t = ci(), r = vp(), n = /* @__PURE__ */ new Set([
|
|
9230
9230
|
"type",
|
|
9231
9231
|
"format",
|
|
9232
9232
|
"pattern",
|
|
@@ -9302,7 +9302,7 @@ function Br() {
|
|
|
9302
9302
|
return r(g, { allKeys: !0 }, (U, q, j, V) => {
|
|
9303
9303
|
if (V === void 0)
|
|
9304
9304
|
return;
|
|
9305
|
-
const
|
|
9305
|
+
const W = _ + q;
|
|
9306
9306
|
let re = b[V];
|
|
9307
9307
|
typeof U[h] == "string" && (re = ne.call(this, U[h])), me.call(this, U.$anchor), me.call(this, U.$dynamicAnchor), b[q] = re;
|
|
9308
9308
|
function ne(J) {
|
|
@@ -9311,7 +9311,7 @@ function Br() {
|
|
|
9311
9311
|
throw k(J);
|
|
9312
9312
|
R.add(J);
|
|
9313
9313
|
let M = this.refs[J];
|
|
9314
|
-
return typeof M == "string" && (M = this.refs[M]), typeof M == "object" ? P(U, M.schema, J) : J !== p(
|
|
9314
|
+
return typeof M == "string" && (M = this.refs[M]), typeof M == "object" ? P(U, M.schema, J) : J !== p(W) && (J[0] === "#" ? (P(U, E[J], J), E[J] = U) : this.refs[J] = W), J;
|
|
9315
9315
|
}
|
|
9316
9316
|
function me(J) {
|
|
9317
9317
|
if (typeof J == "string") {
|
|
@@ -9335,7 +9335,7 @@ var da;
|
|
|
9335
9335
|
function zr() {
|
|
9336
9336
|
if (da) return ke;
|
|
9337
9337
|
da = 1, Object.defineProperty(ke, "__esModule", { value: !0 }), ke.getData = ke.KeywordCxt = ke.validateFunctionCode = void 0;
|
|
9338
|
-
const e =
|
|
9338
|
+
const e = mp(), t = Cr(), r = ii(), n = Cr(), s = pp(), a = gp(), o = yp(), i = Q(), c = He(), l = Br(), d = te(), p = Hr();
|
|
9339
9339
|
function y(O) {
|
|
9340
9340
|
if (_(O) && (R(O), b(O))) {
|
|
9341
9341
|
f(O);
|
|
@@ -9362,7 +9362,7 @@ function zr() {
|
|
|
9362
9362
|
function f(O) {
|
|
9363
9363
|
const { schema: $, opts: L, gen: x } = O;
|
|
9364
9364
|
S(O, () => {
|
|
9365
|
-
L.$comment && $.$comment && V(O), U(O), x.let(c.default.vErrors, null), x.let(c.default.errors, 0), L.unevaluated && h(O), P(O),
|
|
9365
|
+
L.$comment && $.$comment && V(O), U(O), x.let(c.default.vErrors, null), x.let(c.default.errors, 0), L.unevaluated && h(O), P(O), W(O);
|
|
9366
9366
|
});
|
|
9367
9367
|
}
|
|
9368
9368
|
function h(O) {
|
|
@@ -9431,7 +9431,7 @@ function zr() {
|
|
|
9431
9431
|
O.code((0, i._)`${c.default.self}.opts.$comment(${X}, ${pe}, ${Ne}.schema)`);
|
|
9432
9432
|
}
|
|
9433
9433
|
}
|
|
9434
|
-
function
|
|
9434
|
+
function W(O) {
|
|
9435
9435
|
const { gen: $, schemaEnv: L, validateName: x, ValidationError: H, opts: X } = O;
|
|
9436
9436
|
L.$async ? $.if((0, i._)`${c.default.errors} === 0`, () => $.return(c.default.data), () => $.throw((0, i._)`new ${H}(${c.default.vErrors})`)) : ($.assign((0, i._)`${x}.errors`, c.default.vErrors), X.unevaluated && re(O), $.return((0, i._)`${c.default.errors} === 0`));
|
|
9437
9437
|
}
|
|
@@ -9725,11 +9725,11 @@ function Wn() {
|
|
|
9725
9725
|
U = `${E.scopeRefs(r.default.scope)}return ${q}`, this.opts.code.process && (U = this.opts.code.process(U, f));
|
|
9726
9726
|
const V = new Function(`${r.default.self}`, `${r.default.scope}`, U)(this, this.scope.get());
|
|
9727
9727
|
if (this.scope.value(P, { ref: V }), V.errors = null, V.schema = f.schema, V.schemaEnv = f, f.$async && (V.$async = !0), this.opts.code.source === !0 && (V.source = { validateName: P, validateCode: q, scopeValues: E._values }), this.opts.unevaluated) {
|
|
9728
|
-
const { props:
|
|
9728
|
+
const { props: W, items: re } = k;
|
|
9729
9729
|
V.evaluated = {
|
|
9730
|
-
props:
|
|
9730
|
+
props: W instanceof e.Name ? void 0 : W,
|
|
9731
9731
|
items: re instanceof e.Name ? void 0 : re,
|
|
9732
|
-
dynamicProps:
|
|
9732
|
+
dynamicProps: W instanceof e.Name,
|
|
9733
9733
|
dynamicItems: re instanceof e.Name
|
|
9734
9734
|
}, V.source && (V.source.evaluated = (0, e.stringify)(V.evaluated));
|
|
9735
9735
|
}
|
|
@@ -9825,16 +9825,16 @@ function Wn() {
|
|
|
9825
9825
|
}
|
|
9826
9826
|
return Te;
|
|
9827
9827
|
}
|
|
9828
|
-
const
|
|
9829
|
-
$id:
|
|
9830
|
-
description:
|
|
9831
|
-
type:
|
|
9832
|
-
required:
|
|
9833
|
-
properties:
|
|
9834
|
-
additionalProperties:
|
|
9828
|
+
const wp = "https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#", bp = "Meta-schema for $data reference (JSON AnySchema extension proposal)", Ep = "object", _p = ["$data"], Sp = { $data: { type: "string", anyOf: [{ format: "relative-json-pointer" }, { format: "json-pointer" }] } }, Rp = !1, Tp = {
|
|
9829
|
+
$id: wp,
|
|
9830
|
+
description: bp,
|
|
9831
|
+
type: Ep,
|
|
9832
|
+
required: _p,
|
|
9833
|
+
properties: Sp,
|
|
9834
|
+
additionalProperties: Rp
|
|
9835
9835
|
};
|
|
9836
9836
|
var jt = {}, vt = { exports: {} }, pn, pa;
|
|
9837
|
-
function
|
|
9837
|
+
function Op() {
|
|
9838
9838
|
return pa || (pa = 1, pn = {
|
|
9839
9839
|
HEX: {
|
|
9840
9840
|
0: 0,
|
|
@@ -9863,10 +9863,10 @@ function Tp() {
|
|
|
9863
9863
|
}), pn;
|
|
9864
9864
|
}
|
|
9865
9865
|
var gn, ga;
|
|
9866
|
-
function
|
|
9866
|
+
function Ap() {
|
|
9867
9867
|
if (ga) return gn;
|
|
9868
9868
|
ga = 1;
|
|
9869
|
-
const { HEX: e } =
|
|
9869
|
+
const { HEX: e } = Op(), t = /^(?:(?:25[0-5]|2[0-4]\d|1\d{2}|[1-9]\d|\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d{2}|[1-9]\d|\d)$/u;
|
|
9870
9870
|
function r(g) {
|
|
9871
9871
|
if (i(g, ".") < 3)
|
|
9872
9872
|
return { host: g, isIPV4: !1 };
|
|
@@ -9998,7 +9998,7 @@ function Op() {
|
|
|
9998
9998
|
}, gn;
|
|
9999
9999
|
}
|
|
10000
10000
|
var yn, ya;
|
|
10001
|
-
function
|
|
10001
|
+
function Pp() {
|
|
10002
10002
|
if (ya) return yn;
|
|
10003
10003
|
ya = 1;
|
|
10004
10004
|
const e = /^[\da-f]{8}-[\da-f]{4}-[\da-f]{4}-[\da-f]{4}-[\da-f]{12}$/iu, t = /([\da-z][\d\-a-z]{0,31}):((?:[\w!$'()*+,\-.:;=@]|%[\da-f]{2})+)/iu;
|
|
@@ -10090,10 +10090,10 @@ function Ap() {
|
|
|
10090
10090
|
return yn = h, yn;
|
|
10091
10091
|
}
|
|
10092
10092
|
var va;
|
|
10093
|
-
function
|
|
10093
|
+
function $p() {
|
|
10094
10094
|
if (va) return vt.exports;
|
|
10095
10095
|
va = 1;
|
|
10096
|
-
const { normalizeIPv6: e, normalizeIPv4: t, removeDotSegments: r, recomposeAuthority: n, normalizeComponentEncoding: s } =
|
|
10096
|
+
const { normalizeIPv6: e, normalizeIPv4: t, removeDotSegments: r, recomposeAuthority: n, normalizeComponentEncoding: s } = Ap(), a = Pp();
|
|
10097
10097
|
function o(f, h) {
|
|
10098
10098
|
return typeof f == "string" ? f = d(v(f, h), h) : typeof f == "object" && (f = v(d(f, h), h)), f;
|
|
10099
10099
|
}
|
|
@@ -10189,14 +10189,14 @@ function Pp() {
|
|
|
10189
10189
|
return vt.exports = g, vt.exports.default = g, vt.exports.fastUri = g, vt.exports;
|
|
10190
10190
|
}
|
|
10191
10191
|
var wa;
|
|
10192
|
-
function
|
|
10192
|
+
function Np() {
|
|
10193
10193
|
if (wa) return jt;
|
|
10194
10194
|
wa = 1, Object.defineProperty(jt, "__esModule", { value: !0 });
|
|
10195
|
-
const e =
|
|
10195
|
+
const e = $p();
|
|
10196
10196
|
return e.code = 'require("ajv/dist/runtime/uri").default', jt.default = e, jt;
|
|
10197
10197
|
}
|
|
10198
10198
|
var ba;
|
|
10199
|
-
function
|
|
10199
|
+
function Dp() {
|
|
10200
10200
|
return ba || (ba = 1, (function(e) {
|
|
10201
10201
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.CodeGen = e.Name = e.nil = e.stringify = e.str = e._ = e.KeywordCxt = void 0;
|
|
10202
10202
|
var t = zr();
|
|
@@ -10217,7 +10217,7 @@ function Np() {
|
|
|
10217
10217
|
} }), Object.defineProperty(e, "CodeGen", { enumerable: !0, get: function() {
|
|
10218
10218
|
return r.CodeGen;
|
|
10219
10219
|
} });
|
|
10220
|
-
const n = zn(), s = Wr(), a = oi(), o = Wn(), i = Q(), c = Br(), l = Cr(), d = te(), p =
|
|
10220
|
+
const n = zn(), s = Wr(), a = oi(), o = Wn(), i = Q(), c = Br(), l = Cr(), d = te(), p = Tp, y = Np(), S = (M, A) => new RegExp(M, A);
|
|
10221
10221
|
S.code = "new RegExp";
|
|
10222
10222
|
const v = ["removeAdditional", "useDefaults", "coerceTypes"], g = /* @__PURE__ */ new Set([
|
|
10223
10223
|
"validate",
|
|
@@ -10445,7 +10445,7 @@ function Np() {
|
|
|
10445
10445
|
throw new Error("addKeywords: keyword must be string or non-empty array");
|
|
10446
10446
|
} else
|
|
10447
10447
|
throw new Error("invalid addKeywords parameters");
|
|
10448
|
-
if (
|
|
10448
|
+
if (W.call(this, N, C), !C)
|
|
10449
10449
|
return (0, d.eachItem)(N, (T) => re.call(this, T)), this;
|
|
10450
10450
|
me.call(this, C);
|
|
10451
10451
|
const w = {
|
|
@@ -10593,7 +10593,7 @@ function Np() {
|
|
|
10593
10593
|
throw new Error("logger must implement log, warn and error methods");
|
|
10594
10594
|
}
|
|
10595
10595
|
const V = /^[a-z_$][a-z0-9_$:-]*$/i;
|
|
10596
|
-
function
|
|
10596
|
+
function W(M, A) {
|
|
10597
10597
|
const { RULES: C } = this;
|
|
10598
10598
|
if ((0, d.eachItem)(M, (N) => {
|
|
10599
10599
|
if (C.keywords[N])
|
|
@@ -10639,7 +10639,7 @@ function Np() {
|
|
|
10639
10639
|
})(cn)), cn;
|
|
10640
10640
|
}
|
|
10641
10641
|
var Ft = {}, Vt = {}, Ht = {}, Ea;
|
|
10642
|
-
function
|
|
10642
|
+
function Ip() {
|
|
10643
10643
|
if (Ea) return Ht;
|
|
10644
10644
|
Ea = 1, Object.defineProperty(Ht, "__esModule", { value: !0 });
|
|
10645
10645
|
const e = {
|
|
@@ -10651,7 +10651,7 @@ function Dp() {
|
|
|
10651
10651
|
return Ht.default = e, Ht;
|
|
10652
10652
|
}
|
|
10653
10653
|
var je = {}, _a;
|
|
10654
|
-
function
|
|
10654
|
+
function Cp() {
|
|
10655
10655
|
if (_a) return je;
|
|
10656
10656
|
_a = 1, Object.defineProperty(je, "__esModule", { value: !0 }), je.callRef = je.getValidate = void 0;
|
|
10657
10657
|
const e = Wr(), t = Ce(), r = Q(), n = He(), s = Wn(), a = te(), o = {
|
|
@@ -10738,10 +10738,10 @@ function Ip() {
|
|
|
10738
10738
|
return je.callRef = c, je.default = o, je;
|
|
10739
10739
|
}
|
|
10740
10740
|
var Sa;
|
|
10741
|
-
function
|
|
10741
|
+
function Lp() {
|
|
10742
10742
|
if (Sa) return Vt;
|
|
10743
10743
|
Sa = 1, Object.defineProperty(Vt, "__esModule", { value: !0 });
|
|
10744
|
-
const e =
|
|
10744
|
+
const e = Ip(), t = Cp(), r = [
|
|
10745
10745
|
"$schema",
|
|
10746
10746
|
"$id",
|
|
10747
10747
|
"$defs",
|
|
@@ -10754,7 +10754,7 @@ function Cp() {
|
|
|
10754
10754
|
return Vt.default = r, Vt;
|
|
10755
10755
|
}
|
|
10756
10756
|
var Bt = {}, zt = {}, Ra;
|
|
10757
|
-
function
|
|
10757
|
+
function kp() {
|
|
10758
10758
|
if (Ra) return zt;
|
|
10759
10759
|
Ra = 1, Object.defineProperty(zt, "__esModule", { value: !0 });
|
|
10760
10760
|
const e = Q(), t = e.operators, r = {
|
|
@@ -10779,7 +10779,7 @@ function Lp() {
|
|
|
10779
10779
|
return zt.default = s, zt;
|
|
10780
10780
|
}
|
|
10781
10781
|
var Wt = {}, Ta;
|
|
10782
|
-
function
|
|
10782
|
+
function Mp() {
|
|
10783
10783
|
if (Ta) return Wt;
|
|
10784
10784
|
Ta = 1, Object.defineProperty(Wt, "__esModule", { value: !0 });
|
|
10785
10785
|
const e = Q(), r = {
|
|
@@ -10799,7 +10799,7 @@ function kp() {
|
|
|
10799
10799
|
return Wt.default = r, Wt;
|
|
10800
10800
|
}
|
|
10801
10801
|
var Gt = {}, Yt = {}, Oa;
|
|
10802
|
-
function
|
|
10802
|
+
function xp() {
|
|
10803
10803
|
if (Oa) return Yt;
|
|
10804
10804
|
Oa = 1, Object.defineProperty(Yt, "__esModule", { value: !0 });
|
|
10805
10805
|
function e(t) {
|
|
@@ -10812,10 +10812,10 @@ function Mp() {
|
|
|
10812
10812
|
return Yt.default = e, e.code = 'require("ajv/dist/runtime/ucs2length").default', Yt;
|
|
10813
10813
|
}
|
|
10814
10814
|
var Aa;
|
|
10815
|
-
function
|
|
10815
|
+
function qp() {
|
|
10816
10816
|
if (Aa) return Gt;
|
|
10817
10817
|
Aa = 1, Object.defineProperty(Gt, "__esModule", { value: !0 });
|
|
10818
|
-
const e = Q(), t = te(), r =
|
|
10818
|
+
const e = Q(), t = te(), r = xp(), s = {
|
|
10819
10819
|
keyword: ["maxLength", "minLength"],
|
|
10820
10820
|
type: "string",
|
|
10821
10821
|
schemaType: "number",
|
|
@@ -10835,7 +10835,7 @@ function xp() {
|
|
|
10835
10835
|
return Gt.default = s, Gt;
|
|
10836
10836
|
}
|
|
10837
10837
|
var Kt = {}, Pa;
|
|
10838
|
-
function
|
|
10838
|
+
function Up() {
|
|
10839
10839
|
if (Pa) return Kt;
|
|
10840
10840
|
Pa = 1, Object.defineProperty(Kt, "__esModule", { value: !0 });
|
|
10841
10841
|
const e = Ce(), t = Q(), n = {
|
|
@@ -10855,7 +10855,7 @@ function qp() {
|
|
|
10855
10855
|
return Kt.default = n, Kt;
|
|
10856
10856
|
}
|
|
10857
10857
|
var Jt = {}, $a;
|
|
10858
|
-
function
|
|
10858
|
+
function jp() {
|
|
10859
10859
|
if ($a) return Jt;
|
|
10860
10860
|
$a = 1, Object.defineProperty(Jt, "__esModule", { value: !0 });
|
|
10861
10861
|
const e = Q(), r = {
|
|
@@ -10878,7 +10878,7 @@ function Up() {
|
|
|
10878
10878
|
return Jt.default = r, Jt;
|
|
10879
10879
|
}
|
|
10880
10880
|
var Xt = {}, Na;
|
|
10881
|
-
function
|
|
10881
|
+
function Fp() {
|
|
10882
10882
|
if (Na) return Xt;
|
|
10883
10883
|
Na = 1, Object.defineProperty(Xt, "__esModule", { value: !0 });
|
|
10884
10884
|
const e = Ce(), t = Q(), r = te(), s = {
|
|
@@ -10935,7 +10935,7 @@ function jp() {
|
|
|
10935
10935
|
return Xt.default = s, Xt;
|
|
10936
10936
|
}
|
|
10937
10937
|
var Qt = {}, Da;
|
|
10938
|
-
function
|
|
10938
|
+
function Vp() {
|
|
10939
10939
|
if (Da) return Qt;
|
|
10940
10940
|
Da = 1, Object.defineProperty(Qt, "__esModule", { value: !0 });
|
|
10941
10941
|
const e = Q(), r = {
|
|
@@ -10965,7 +10965,7 @@ function Gn() {
|
|
|
10965
10965
|
return e.code = 'require("ajv/dist/runtime/equal").default', er.default = e, er;
|
|
10966
10966
|
}
|
|
10967
10967
|
var Ca;
|
|
10968
|
-
function
|
|
10968
|
+
function Hp() {
|
|
10969
10969
|
if (Ca) return Zt;
|
|
10970
10970
|
Ca = 1, Object.defineProperty(Zt, "__esModule", { value: !0 });
|
|
10971
10971
|
const e = Cr(), t = Q(), r = te(), n = Gn(), a = {
|
|
@@ -11009,7 +11009,7 @@ function Vp() {
|
|
|
11009
11009
|
return Zt.default = a, Zt;
|
|
11010
11010
|
}
|
|
11011
11011
|
var tr = {}, La;
|
|
11012
|
-
function
|
|
11012
|
+
function Bp() {
|
|
11013
11013
|
if (La) return tr;
|
|
11014
11014
|
La = 1, Object.defineProperty(tr, "__esModule", { value: !0 });
|
|
11015
11015
|
const e = Q(), t = te(), r = Gn(), s = {
|
|
@@ -11027,7 +11027,7 @@ function Hp() {
|
|
|
11027
11027
|
return tr.default = s, tr;
|
|
11028
11028
|
}
|
|
11029
11029
|
var rr = {}, ka;
|
|
11030
|
-
function
|
|
11030
|
+
function zp() {
|
|
11031
11031
|
if (ka) return rr;
|
|
11032
11032
|
ka = 1, Object.defineProperty(rr, "__esModule", { value: !0 });
|
|
11033
11033
|
const e = Q(), t = te(), r = Gn(), s = {
|
|
@@ -11067,10 +11067,10 @@ function Bp() {
|
|
|
11067
11067
|
return rr.default = s, rr;
|
|
11068
11068
|
}
|
|
11069
11069
|
var Ma;
|
|
11070
|
-
function
|
|
11070
|
+
function Wp() {
|
|
11071
11071
|
if (Ma) return Bt;
|
|
11072
11072
|
Ma = 1, Object.defineProperty(Bt, "__esModule", { value: !0 });
|
|
11073
|
-
const e =
|
|
11073
|
+
const e = kp(), t = Mp(), r = qp(), n = Up(), s = jp(), a = Fp(), o = Vp(), i = Hp(), c = Bp(), l = zp(), d = [
|
|
11074
11074
|
// number
|
|
11075
11075
|
e.default,
|
|
11076
11076
|
t.default,
|
|
@@ -11169,7 +11169,7 @@ function li() {
|
|
|
11169
11169
|
return at.validateTuple = s, at.default = n, at;
|
|
11170
11170
|
}
|
|
11171
11171
|
var Ua;
|
|
11172
|
-
function
|
|
11172
|
+
function Gp() {
|
|
11173
11173
|
if (Ua) return sr;
|
|
11174
11174
|
Ua = 1, Object.defineProperty(sr, "__esModule", { value: !0 });
|
|
11175
11175
|
const e = li(), t = {
|
|
@@ -11182,7 +11182,7 @@ function Wp() {
|
|
|
11182
11182
|
return sr.default = t, sr;
|
|
11183
11183
|
}
|
|
11184
11184
|
var ar = {}, ja;
|
|
11185
|
-
function
|
|
11185
|
+
function Yp() {
|
|
11186
11186
|
if (ja) return ar;
|
|
11187
11187
|
ja = 1, Object.defineProperty(ar, "__esModule", { value: !0 });
|
|
11188
11188
|
const e = Q(), t = te(), r = Ce(), n = ui(), a = {
|
|
@@ -11202,7 +11202,7 @@ function Gp() {
|
|
|
11202
11202
|
return ar.default = a, ar;
|
|
11203
11203
|
}
|
|
11204
11204
|
var or = {}, Fa;
|
|
11205
|
-
function
|
|
11205
|
+
function Kp() {
|
|
11206
11206
|
if (Fa) return or;
|
|
11207
11207
|
Fa = 1, Object.defineProperty(or, "__esModule", { value: !0 });
|
|
11208
11208
|
const e = Q(), t = te(), n = {
|
|
@@ -11259,7 +11259,7 @@ function Yp() {
|
|
|
11259
11259
|
return or.default = n, or;
|
|
11260
11260
|
}
|
|
11261
11261
|
var vn = {}, Va;
|
|
11262
|
-
function
|
|
11262
|
+
function Jp() {
|
|
11263
11263
|
return Va || (Va = 1, (function(e) {
|
|
11264
11264
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.validateSchemaDeps = e.validatePropertyDeps = e.error = void 0;
|
|
11265
11265
|
const t = Q(), r = te(), n = Ce();
|
|
@@ -11332,7 +11332,7 @@ function Kp() {
|
|
|
11332
11332
|
})(vn)), vn;
|
|
11333
11333
|
}
|
|
11334
11334
|
var ir = {}, Ha;
|
|
11335
|
-
function
|
|
11335
|
+
function Xp() {
|
|
11336
11336
|
if (Ha) return ir;
|
|
11337
11337
|
Ha = 1, Object.defineProperty(ir, "__esModule", { value: !0 });
|
|
11338
11338
|
const e = Q(), t = te(), n = {
|
|
@@ -11435,7 +11435,7 @@ function di() {
|
|
|
11435
11435
|
return cr.default = a, cr;
|
|
11436
11436
|
}
|
|
11437
11437
|
var ur = {}, za;
|
|
11438
|
-
function
|
|
11438
|
+
function Qp() {
|
|
11439
11439
|
if (za) return ur;
|
|
11440
11440
|
za = 1, Object.defineProperty(ur, "__esModule", { value: !0 });
|
|
11441
11441
|
const e = zr(), t = Ce(), r = te(), n = di(), s = {
|
|
@@ -11470,7 +11470,7 @@ function Xp() {
|
|
|
11470
11470
|
return ur.default = s, ur;
|
|
11471
11471
|
}
|
|
11472
11472
|
var lr = {}, Wa;
|
|
11473
|
-
function
|
|
11473
|
+
function Zp() {
|
|
11474
11474
|
if (Wa) return lr;
|
|
11475
11475
|
Wa = 1, Object.defineProperty(lr, "__esModule", { value: !0 });
|
|
11476
11476
|
const e = Ce(), t = Q(), r = te(), n = te(), s = {
|
|
@@ -11511,7 +11511,7 @@ function Qp() {
|
|
|
11511
11511
|
return lr.default = s, lr;
|
|
11512
11512
|
}
|
|
11513
11513
|
var dr = {}, Ga;
|
|
11514
|
-
function
|
|
11514
|
+
function eg() {
|
|
11515
11515
|
if (Ga) return dr;
|
|
11516
11516
|
Ga = 1, Object.defineProperty(dr, "__esModule", { value: !0 });
|
|
11517
11517
|
const e = te(), t = {
|
|
@@ -11537,7 +11537,7 @@ function Zp() {
|
|
|
11537
11537
|
return dr.default = t, dr;
|
|
11538
11538
|
}
|
|
11539
11539
|
var fr = {}, Ya;
|
|
11540
|
-
function
|
|
11540
|
+
function tg() {
|
|
11541
11541
|
if (Ya) return fr;
|
|
11542
11542
|
Ya = 1, Object.defineProperty(fr, "__esModule", { value: !0 });
|
|
11543
11543
|
const t = {
|
|
@@ -11550,7 +11550,7 @@ function eg() {
|
|
|
11550
11550
|
return fr.default = t, fr;
|
|
11551
11551
|
}
|
|
11552
11552
|
var hr = {}, Ka;
|
|
11553
|
-
function
|
|
11553
|
+
function rg() {
|
|
11554
11554
|
if (Ka) return hr;
|
|
11555
11555
|
Ka = 1, Object.defineProperty(hr, "__esModule", { value: !0 });
|
|
11556
11556
|
const e = Q(), t = te(), n = {
|
|
@@ -11586,7 +11586,7 @@ function tg() {
|
|
|
11586
11586
|
return hr.default = n, hr;
|
|
11587
11587
|
}
|
|
11588
11588
|
var mr = {}, Ja;
|
|
11589
|
-
function
|
|
11589
|
+
function ng() {
|
|
11590
11590
|
if (Ja) return mr;
|
|
11591
11591
|
Ja = 1, Object.defineProperty(mr, "__esModule", { value: !0 });
|
|
11592
11592
|
const e = te(), t = {
|
|
@@ -11608,7 +11608,7 @@ function rg() {
|
|
|
11608
11608
|
return mr.default = t, mr;
|
|
11609
11609
|
}
|
|
11610
11610
|
var pr = {}, Xa;
|
|
11611
|
-
function
|
|
11611
|
+
function sg() {
|
|
11612
11612
|
if (Xa) return pr;
|
|
11613
11613
|
Xa = 1, Object.defineProperty(pr, "__esModule", { value: !0 });
|
|
11614
11614
|
const e = Q(), t = te(), n = {
|
|
@@ -11655,7 +11655,7 @@ function ng() {
|
|
|
11655
11655
|
return pr.default = n, pr;
|
|
11656
11656
|
}
|
|
11657
11657
|
var gr = {}, Qa;
|
|
11658
|
-
function
|
|
11658
|
+
function ag() {
|
|
11659
11659
|
if (Qa) return gr;
|
|
11660
11660
|
Qa = 1, Object.defineProperty(gr, "__esModule", { value: !0 });
|
|
11661
11661
|
const e = te(), t = {
|
|
@@ -11668,10 +11668,10 @@ function sg() {
|
|
|
11668
11668
|
return gr.default = t, gr;
|
|
11669
11669
|
}
|
|
11670
11670
|
var Za;
|
|
11671
|
-
function
|
|
11671
|
+
function og() {
|
|
11672
11672
|
if (Za) return nr;
|
|
11673
11673
|
Za = 1, Object.defineProperty(nr, "__esModule", { value: !0 });
|
|
11674
|
-
const e = ui(), t =
|
|
11674
|
+
const e = ui(), t = Gp(), r = li(), n = Yp(), s = Kp(), a = Jp(), o = Xp(), i = di(), c = Qp(), l = Zp(), d = eg(), p = tg(), y = rg(), S = ng(), v = sg(), g = ag();
|
|
11675
11675
|
function f(h = !1) {
|
|
11676
11676
|
const u = [
|
|
11677
11677
|
// any
|
|
@@ -11693,7 +11693,7 @@ function ag() {
|
|
|
11693
11693
|
return nr.default = f, nr;
|
|
11694
11694
|
}
|
|
11695
11695
|
var yr = {}, vr = {}, eo;
|
|
11696
|
-
function
|
|
11696
|
+
function ig() {
|
|
11697
11697
|
if (eo) return vr;
|
|
11698
11698
|
eo = 1, Object.defineProperty(vr, "__esModule", { value: !0 });
|
|
11699
11699
|
const e = Q(), r = {
|
|
@@ -11762,14 +11762,14 @@ function og() {
|
|
|
11762
11762
|
return vr.default = r, vr;
|
|
11763
11763
|
}
|
|
11764
11764
|
var to;
|
|
11765
|
-
function
|
|
11765
|
+
function cg() {
|
|
11766
11766
|
if (to) return yr;
|
|
11767
11767
|
to = 1, Object.defineProperty(yr, "__esModule", { value: !0 });
|
|
11768
|
-
const t = [
|
|
11768
|
+
const t = [ig().default];
|
|
11769
11769
|
return yr.default = t, yr;
|
|
11770
11770
|
}
|
|
11771
11771
|
var We = {}, ro;
|
|
11772
|
-
function
|
|
11772
|
+
function ug() {
|
|
11773
11773
|
return ro || (ro = 1, Object.defineProperty(We, "__esModule", { value: !0 }), We.contentVocabulary = We.metadataVocabulary = void 0, We.metadataVocabulary = [
|
|
11774
11774
|
"title",
|
|
11775
11775
|
"description",
|
|
@@ -11785,10 +11785,10 @@ function cg() {
|
|
|
11785
11785
|
]), We;
|
|
11786
11786
|
}
|
|
11787
11787
|
var no;
|
|
11788
|
-
function
|
|
11788
|
+
function lg() {
|
|
11789
11789
|
if (no) return Ft;
|
|
11790
11790
|
no = 1, Object.defineProperty(Ft, "__esModule", { value: !0 });
|
|
11791
|
-
const e =
|
|
11791
|
+
const e = Lp(), t = Wp(), r = og(), n = cg(), s = ug(), a = [
|
|
11792
11792
|
e.default,
|
|
11793
11793
|
t.default,
|
|
11794
11794
|
(0, r.default)(),
|
|
@@ -11799,7 +11799,7 @@ function ug() {
|
|
|
11799
11799
|
return Ft.default = a, Ft;
|
|
11800
11800
|
}
|
|
11801
11801
|
var wr = {}, wt = {}, so;
|
|
11802
|
-
function
|
|
11802
|
+
function dg() {
|
|
11803
11803
|
if (so) return wt;
|
|
11804
11804
|
so = 1, Object.defineProperty(wt, "__esModule", { value: !0 }), wt.DiscrError = void 0;
|
|
11805
11805
|
var e;
|
|
@@ -11808,10 +11808,10 @@ function lg() {
|
|
|
11808
11808
|
})(e || (wt.DiscrError = e = {})), wt;
|
|
11809
11809
|
}
|
|
11810
11810
|
var ao;
|
|
11811
|
-
function
|
|
11811
|
+
function fg() {
|
|
11812
11812
|
if (ao) return wr;
|
|
11813
11813
|
ao = 1, Object.defineProperty(wr, "__esModule", { value: !0 });
|
|
11814
|
-
const e = Q(), t =
|
|
11814
|
+
const e = Q(), t = dg(), r = Wn(), n = Wr(), s = te(), o = {
|
|
11815
11815
|
keyword: "discriminator",
|
|
11816
11816
|
type: "object",
|
|
11817
11817
|
schemaType: "object",
|
|
@@ -11850,9 +11850,9 @@ function dg() {
|
|
|
11850
11850
|
for (let q = 0; q < S.length; q++) {
|
|
11851
11851
|
let j = S[q];
|
|
11852
11852
|
if (j?.$ref && !(0, s.schemaHasRulesButRef)(j, y.self.RULES)) {
|
|
11853
|
-
const
|
|
11854
|
-
if (j = r.resolveRef.call(y.self, y.schemaEnv.root, y.baseId,
|
|
11855
|
-
throw new n.default(y.opts.uriResolver, y.baseId,
|
|
11853
|
+
const W = j.$ref;
|
|
11854
|
+
if (j = r.resolveRef.call(y.self, y.schemaEnv.root, y.baseId, W), j instanceof r.SchemaEnv && (j = j.schema), j === void 0)
|
|
11855
|
+
throw new n.default(y.opts.uriResolver, y.baseId, W);
|
|
11856
11856
|
}
|
|
11857
11857
|
const V = (b = j?.properties) === null || b === void 0 ? void 0 : b[v];
|
|
11858
11858
|
if (typeof V != "object")
|
|
@@ -11884,20 +11884,20 @@ function dg() {
|
|
|
11884
11884
|
};
|
|
11885
11885
|
return wr.default = o, wr;
|
|
11886
11886
|
}
|
|
11887
|
-
const
|
|
11888
|
-
$schema:
|
|
11889
|
-
$id:
|
|
11890
|
-
title:
|
|
11891
|
-
definitions:
|
|
11892
|
-
type:
|
|
11893
|
-
properties:
|
|
11887
|
+
const hg = "http://json-schema.org/draft-07/schema#", mg = "http://json-schema.org/draft-07/schema#", pg = "Core schema meta-schema", gg = { schemaArray: { type: "array", minItems: 1, items: { $ref: "#" } }, nonNegativeInteger: { type: "integer", minimum: 0 }, nonNegativeIntegerDefault0: { allOf: [{ $ref: "#/definitions/nonNegativeInteger" }, { default: 0 }] }, simpleTypes: { enum: ["array", "boolean", "integer", "null", "number", "object", "string"] }, stringArray: { type: "array", items: { type: "string" }, uniqueItems: !0, default: [] } }, yg = ["object", "boolean"], vg = { $id: { type: "string", format: "uri-reference" }, $schema: { type: "string", format: "uri" }, $ref: { type: "string", format: "uri-reference" }, $comment: { type: "string" }, title: { type: "string" }, description: { type: "string" }, default: !0, readOnly: { type: "boolean", default: !1 }, examples: { type: "array", items: !0 }, multipleOf: { type: "number", exclusiveMinimum: 0 }, maximum: { type: "number" }, exclusiveMaximum: { type: "number" }, minimum: { type: "number" }, exclusiveMinimum: { type: "number" }, maxLength: { $ref: "#/definitions/nonNegativeInteger" }, minLength: { $ref: "#/definitions/nonNegativeIntegerDefault0" }, pattern: { type: "string", format: "regex" }, additionalItems: { $ref: "#" }, items: { anyOf: [{ $ref: "#" }, { $ref: "#/definitions/schemaArray" }], default: !0 }, maxItems: { $ref: "#/definitions/nonNegativeInteger" }, minItems: { $ref: "#/definitions/nonNegativeIntegerDefault0" }, uniqueItems: { type: "boolean", default: !1 }, contains: { $ref: "#" }, maxProperties: { $ref: "#/definitions/nonNegativeInteger" }, minProperties: { $ref: "#/definitions/nonNegativeIntegerDefault0" }, required: { $ref: "#/definitions/stringArray" }, additionalProperties: { $ref: "#" }, definitions: { type: "object", additionalProperties: { $ref: "#" }, default: {} }, properties: { type: "object", additionalProperties: { $ref: "#" }, default: {} }, patternProperties: { type: "object", additionalProperties: { $ref: "#" }, propertyNames: { format: "regex" }, default: {} }, dependencies: { type: "object", additionalProperties: { anyOf: [{ $ref: "#" }, { $ref: "#/definitions/stringArray" }] } }, propertyNames: { $ref: "#" }, const: !0, enum: { type: "array", items: !0, minItems: 1, uniqueItems: !0 }, type: { anyOf: [{ $ref: "#/definitions/simpleTypes" }, { type: "array", items: { $ref: "#/definitions/simpleTypes" }, minItems: 1, uniqueItems: !0 }] }, format: { type: "string" }, contentMediaType: { type: "string" }, contentEncoding: { type: "string" }, if: { $ref: "#" }, then: { $ref: "#" }, else: { $ref: "#" }, allOf: { $ref: "#/definitions/schemaArray" }, anyOf: { $ref: "#/definitions/schemaArray" }, oneOf: { $ref: "#/definitions/schemaArray" }, not: { $ref: "#" } }, wg = {
|
|
11888
|
+
$schema: hg,
|
|
11889
|
+
$id: mg,
|
|
11890
|
+
title: pg,
|
|
11891
|
+
definitions: gg,
|
|
11892
|
+
type: yg,
|
|
11893
|
+
properties: vg,
|
|
11894
11894
|
default: !0
|
|
11895
11895
|
};
|
|
11896
11896
|
var oo;
|
|
11897
|
-
function
|
|
11897
|
+
function bg() {
|
|
11898
11898
|
return oo || (oo = 1, (function(e, t) {
|
|
11899
11899
|
Object.defineProperty(t, "__esModule", { value: !0 }), t.MissingRefError = t.ValidationError = t.CodeGen = t.Name = t.nil = t.stringify = t.str = t._ = t.KeywordCxt = t.Ajv = void 0;
|
|
11900
|
-
const r =
|
|
11900
|
+
const r = Dp(), n = lg(), s = fg(), a = wg, o = ["/properties"], i = "http://json-schema.org/draft-07/schema";
|
|
11901
11901
|
class c extends r.default {
|
|
11902
11902
|
_addVocabularies() {
|
|
11903
11903
|
super._addVocabularies(), n.default.forEach((v) => this.addVocabulary(v)), this.opts.discriminator && this.addKeyword(s.default);
|
|
@@ -11941,84 +11941,84 @@ function wg() {
|
|
|
11941
11941
|
} });
|
|
11942
11942
|
})(Mt, Mt.exports)), Mt.exports;
|
|
11943
11943
|
}
|
|
11944
|
-
var
|
|
11945
|
-
const
|
|
11944
|
+
var Eg = bg();
|
|
11945
|
+
const _g = /* @__PURE__ */ hp(Eg), io = {
|
|
11946
11946
|
CONFIG_NOT_FOUND: "CONFIG_ERROR_NOT_FOUND",
|
|
11947
11947
|
VALIDATION_FAILED: "CONFIG_ERROR_VALIDATION_FAILED"
|
|
11948
|
-
},
|
|
11949
|
-
const r = await
|
|
11948
|
+
}, Rw = async (e, t) => {
|
|
11949
|
+
const r = await Sg(e);
|
|
11950
11950
|
if (!r)
|
|
11951
11951
|
throw new Error(io.CONFIG_NOT_FOUND);
|
|
11952
|
-
if (!await
|
|
11952
|
+
if (!await Rg(r, t))
|
|
11953
11953
|
throw new Error(io.VALIDATION_FAILED);
|
|
11954
11954
|
return r;
|
|
11955
|
-
},
|
|
11955
|
+
}, Sg = async (e) => await z(e), Rg = async (e, t) => new _g().compile(t)(e), Tg = (e) => ee + `/form/${e}?v=custom:(resources:(value))`, Og = (e) => {
|
|
11956
11956
|
const t = ee + "/bahmniie/form/latestPublishedForms";
|
|
11957
11957
|
return e ? t + `?episodeUuid=${e}` : t;
|
|
11958
|
-
},
|
|
11958
|
+
}, Tw = (e) => ee + `/user/${e}?v=full`, Ag = (e, t, r, n) => ee + `/bahmniie/form/translations?formName=${encodeURIComponent(e)}&formUuid=${t}&formVersion=${r}&locale=${n}`, Rr = "Bahmni", Pg = (e, t, r) => {
|
|
11959
11959
|
let s = ee + "/bahmnicore/patient/" + e + "/forms";
|
|
11960
11960
|
return r ? s += `?patientProgramUuid=${r}` : t && (s += `?numberOfVisits=${t}`), s;
|
|
11961
|
-
},
|
|
11961
|
+
}, $g = (e, t) => {
|
|
11962
11962
|
const r = t.join(",");
|
|
11963
11963
|
return `${le}/Observation?patient=${e}&code=${r}&_include=Observation:has-member&_sort=-_lastUpdated`;
|
|
11964
|
-
},
|
|
11964
|
+
}, Ng = (e, t) => {
|
|
11965
11965
|
const r = t.join(",");
|
|
11966
11966
|
return `${le}/Observation?patient=${e}&code=${r}&_include=Observation:has-member&_include=Observation:encounter&_sort=-_lastUpdated`;
|
|
11967
11967
|
};
|
|
11968
|
-
async function
|
|
11969
|
-
const r = Pg(e, t);
|
|
11970
|
-
return await W(r);
|
|
11971
|
-
}
|
|
11972
|
-
async function Rw(e, t) {
|
|
11968
|
+
async function Dg(e, t) {
|
|
11973
11969
|
const r = $g(e, t);
|
|
11974
|
-
return await
|
|
11970
|
+
return await z(r);
|
|
11971
|
+
}
|
|
11972
|
+
async function Ow(e, t) {
|
|
11973
|
+
const r = Ng(e, t);
|
|
11974
|
+
return await z(r);
|
|
11975
11975
|
}
|
|
11976
|
-
async function
|
|
11977
|
-
return (await
|
|
11976
|
+
async function Aw(e, t) {
|
|
11977
|
+
return (await Dg(e, t)).entry?.filter((s) => s.resource?.resourceType === "Observation").map((s) => s.resource) ?? [];
|
|
11978
11978
|
}
|
|
11979
|
-
const
|
|
11980
|
-
async function
|
|
11981
|
-
const t = await
|
|
11982
|
-
|
|
11979
|
+
const Ig = (e) => ee + `/provider?user=${e}&v=custom:(uuid,display,person)`;
|
|
11980
|
+
async function Pw(e) {
|
|
11981
|
+
const t = await z(
|
|
11982
|
+
Ig(e)
|
|
11983
11983
|
);
|
|
11984
11984
|
return !t.results || t.results.length === 0 ? null : t.results[0];
|
|
11985
11985
|
}
|
|
11986
|
-
const
|
|
11987
|
-
async function Lg(e) {
|
|
11988
|
-
return await W(Ig(e));
|
|
11989
|
-
}
|
|
11986
|
+
const Cg = (e) => le + `/Encounter?subject:Patient=${e}&_tag=visit`, Lg = (e) => `${le}/Observation?encounter=${e}`;
|
|
11990
11987
|
async function kg(e) {
|
|
11991
|
-
return
|
|
11988
|
+
return await z(Cg(e));
|
|
11992
11989
|
}
|
|
11993
11990
|
async function Mg(e) {
|
|
11994
|
-
return (await kg(e)).
|
|
11991
|
+
return (await kg(e)).entry?.map((r) => r.resource).filter((r) => r !== void 0) ?? [];
|
|
11992
|
+
}
|
|
11993
|
+
async function xg(e) {
|
|
11994
|
+
return (await Mg(e)).find((r) => !r.period?.end) ?? null;
|
|
11995
11995
|
}
|
|
11996
|
-
async function
|
|
11997
|
-
return await
|
|
11996
|
+
async function $w(e) {
|
|
11997
|
+
return await z(Lg(e));
|
|
11998
11998
|
}
|
|
11999
|
-
const
|
|
12000
|
-
async function
|
|
11999
|
+
const Nw = (e, t) => e?.length === 0 ? !1 : t?.length === 0, qg = le + "/Encounter", Ug = ee + "/systemsetting/bahmni.encountersession.duration", jg = "d34fe3ab-5e07-11ef-8f7c-0242ac120002";
|
|
12000
|
+
async function Fg(e) {
|
|
12001
12001
|
const t = new URLSearchParams();
|
|
12002
12002
|
Object.entries(e).forEach(([s, a]) => {
|
|
12003
12003
|
a && t.append(s, a);
|
|
12004
12004
|
});
|
|
12005
|
-
const r = `${
|
|
12006
|
-
return (await
|
|
12005
|
+
const r = `${qg}?${t.toString()}`;
|
|
12006
|
+
return (await z(r)).entry?.map((s) => s.resource).filter((s) => s !== void 0) ?? [];
|
|
12007
12007
|
}
|
|
12008
|
-
async function
|
|
12008
|
+
async function Vg() {
|
|
12009
12009
|
try {
|
|
12010
|
-
const e = await
|
|
12011
|
-
|
|
12010
|
+
const e = await z(
|
|
12011
|
+
Ug
|
|
12012
12012
|
), t = Number(e.value);
|
|
12013
12013
|
return !isNaN(t) && t > 0 ? t : 60;
|
|
12014
12014
|
} catch {
|
|
12015
12015
|
return 30;
|
|
12016
12016
|
}
|
|
12017
12017
|
}
|
|
12018
|
-
async function
|
|
12018
|
+
async function Hg(e, t) {
|
|
12019
12019
|
if (!e.length) return null;
|
|
12020
12020
|
try {
|
|
12021
|
-
const r = await
|
|
12021
|
+
const r = await xg(t);
|
|
12022
12022
|
return r ? e.find((n) => {
|
|
12023
12023
|
const s = n.partOf?.reference?.split("/")[1];
|
|
12024
12024
|
return r.id === s;
|
|
@@ -12027,25 +12027,25 @@ async function Vg(e, t) {
|
|
|
12027
12027
|
return null;
|
|
12028
12028
|
}
|
|
12029
12029
|
}
|
|
12030
|
-
async function
|
|
12030
|
+
async function Dw(e, t, r) {
|
|
12031
12031
|
try {
|
|
12032
12032
|
if (!e) return null;
|
|
12033
|
-
const n = r ?? await
|
|
12033
|
+
const n = r ?? await Vg(), a = `ge${new Date(Date.now() - n * 60 * 1e3).toISOString()}`, o = {
|
|
12034
12034
|
patient: e,
|
|
12035
12035
|
_tag: "encounter",
|
|
12036
12036
|
_lastUpdated: a,
|
|
12037
|
-
type:
|
|
12037
|
+
type: jg
|
|
12038
12038
|
};
|
|
12039
12039
|
t && (o.participant = t);
|
|
12040
|
-
const i = await
|
|
12041
|
-
return i.length === 0 ? null : await
|
|
12040
|
+
const i = await Fg(o);
|
|
12041
|
+
return i.length === 0 ? null : await Hg(i, e);
|
|
12042
12042
|
} catch {
|
|
12043
12043
|
return null;
|
|
12044
12044
|
}
|
|
12045
12045
|
}
|
|
12046
|
-
const
|
|
12047
|
-
async function
|
|
12048
|
-
const t = e.join(","), r = await
|
|
12046
|
+
const Bg = (e) => le + `/EpisodeOfCare?_revinclude=Encounter:episode-of-care&_id=${e}`;
|
|
12047
|
+
async function Iw(e) {
|
|
12048
|
+
const t = e.join(","), r = await z(Bg(t));
|
|
12049
12049
|
if (r.total === 0)
|
|
12050
12050
|
throw new Error(
|
|
12051
12051
|
"No episode of care found for the provided UUIDs: " + e.join(", ")
|
|
@@ -12057,13 +12057,13 @@ async function Nw(e) {
|
|
|
12057
12057
|
c && s.add(c);
|
|
12058
12058
|
}), { visitUuids: Array.from(s), encounterUuids: a };
|
|
12059
12059
|
}
|
|
12060
|
-
const wn = /* @__PURE__ */ new Map(),
|
|
12060
|
+
const wn = /* @__PURE__ */ new Map(), zg = async (e) => {
|
|
12061
12061
|
if (wn.has(e))
|
|
12062
12062
|
return wn.get(e) ?? null;
|
|
12063
|
-
const t = await
|
|
12063
|
+
const t = await z(qo(e)), r = t ? String(t) : null;
|
|
12064
12064
|
return wn.set(e, r), r;
|
|
12065
|
-
},
|
|
12066
|
-
if (!await
|
|
12065
|
+
}, Wg = async () => await zg(Qu) === "true", Gg = async (e, t, r, n = ot.CLINICAL) => {
|
|
12066
|
+
if (!await Wg())
|
|
12067
12067
|
return { logged: !1 };
|
|
12068
12068
|
const a = Nn[t];
|
|
12069
12069
|
if (!a)
|
|
@@ -12080,31 +12080,31 @@ const wn = /* @__PURE__ */ new Map(), Bg = async (e) => {
|
|
|
12080
12080
|
module: n
|
|
12081
12081
|
};
|
|
12082
12082
|
return await Ve(Hh, o), { logged: !0 };
|
|
12083
|
-
},
|
|
12084
|
-
await
|
|
12083
|
+
}, Cw = () => Vh(async (t) => {
|
|
12084
|
+
await Gg(
|
|
12085
12085
|
t.patientUuid,
|
|
12086
12086
|
t.eventType,
|
|
12087
12087
|
t.messageParams,
|
|
12088
12088
|
t.module
|
|
12089
12089
|
);
|
|
12090
|
-
}),
|
|
12090
|
+
}), Lw = async () => {
|
|
12091
12091
|
try {
|
|
12092
|
-
return await
|
|
12092
|
+
return await z(Wu);
|
|
12093
12093
|
} catch (e) {
|
|
12094
12094
|
const { message: t } = Or(e);
|
|
12095
12095
|
throw new Error(t);
|
|
12096
12096
|
}
|
|
12097
|
-
},
|
|
12097
|
+
}, kw = (e, t) => !e || e.length === 0 ? !1 : e.some((r) => r.name === t), Yg = async (e) => {
|
|
12098
12098
|
let t;
|
|
12099
12099
|
e && e.length > 0 && (t = e.join(","));
|
|
12100
|
-
const r = await fetch(
|
|
12100
|
+
const r = await fetch(Og(t));
|
|
12101
12101
|
if (!r.ok)
|
|
12102
12102
|
throw new Error(
|
|
12103
12103
|
`HTTP error! status for latestPublishedForms: ${r.status}`
|
|
12104
12104
|
);
|
|
12105
12105
|
const n = await r.json();
|
|
12106
12106
|
return Array.isArray(n) ? n : [];
|
|
12107
|
-
},
|
|
12107
|
+
}, Kg = (e, t) => {
|
|
12108
12108
|
const r = JSON.parse(e.nameTranslation);
|
|
12109
12109
|
if (Array.isArray(r) && r.length > 0) {
|
|
12110
12110
|
const n = r.find(
|
|
@@ -12114,8 +12114,8 @@ const wn = /* @__PURE__ */ new Map(), Bg = async (e) => {
|
|
|
12114
12114
|
return n.display;
|
|
12115
12115
|
}
|
|
12116
12116
|
return e.name;
|
|
12117
|
-
},
|
|
12118
|
-
const r =
|
|
12117
|
+
}, Jg = (e, t) => {
|
|
12118
|
+
const r = Kg(e, t);
|
|
12119
12119
|
return {
|
|
12120
12120
|
uuid: e.uuid,
|
|
12121
12121
|
name: r,
|
|
@@ -12125,13 +12125,13 @@ const wn = /* @__PURE__ */ new Map(), Bg = async (e) => {
|
|
|
12125
12125
|
editable: n.editable
|
|
12126
12126
|
}))
|
|
12127
12127
|
};
|
|
12128
|
-
},
|
|
12129
|
-
const t = await
|
|
12128
|
+
}, Mw = async (e) => {
|
|
12129
|
+
const t = await Yg(e), r = Nt();
|
|
12130
12130
|
return t.map(
|
|
12131
|
-
(n) =>
|
|
12131
|
+
(n) => Jg(n, r)
|
|
12132
12132
|
);
|
|
12133
|
-
},
|
|
12134
|
-
const t = await fetch(
|
|
12133
|
+
}, xw = async (e) => {
|
|
12134
|
+
const t = await fetch(Tg(e));
|
|
12135
12135
|
if (!t.ok)
|
|
12136
12136
|
throw new Error(
|
|
12137
12137
|
`Failed to fetch form metadata for ${e}: ${t.status}`
|
|
@@ -12142,7 +12142,7 @@ const wn = /* @__PURE__ */ new Map(), Bg = async (e) => {
|
|
|
12142
12142
|
const n = JSON.parse(r.resources[0].value), s = Nt(), a = r.name ?? n.name, o = r.uuid ?? n.uuid, i = r.version ?? n.version ?? "1", c = r.published ?? !1;
|
|
12143
12143
|
let l = { labels: {}, concepts: {} };
|
|
12144
12144
|
if (n && typeof n == "object" && "translationsUrl" in n && typeof n.translationsUrl == "string") {
|
|
12145
|
-
const d =
|
|
12145
|
+
const d = Ag(
|
|
12146
12146
|
a,
|
|
12147
12147
|
o,
|
|
12148
12148
|
i,
|
|
@@ -12164,10 +12164,10 @@ const wn = /* @__PURE__ */ new Map(), Bg = async (e) => {
|
|
|
12164
12164
|
schema: n,
|
|
12165
12165
|
translations: l
|
|
12166
12166
|
};
|
|
12167
|
-
},
|
|
12167
|
+
}, qw = async (e, t, r) => {
|
|
12168
12168
|
let n;
|
|
12169
12169
|
t && t.length > 0 && (n = t.join(","));
|
|
12170
|
-
const s =
|
|
12170
|
+
const s = Pg(e, r, n), a = await z(s);
|
|
12171
12171
|
return Array.isArray(a) ? a : [];
|
|
12172
12172
|
};
|
|
12173
12173
|
function fi(e) {
|
|
@@ -12209,7 +12209,7 @@ function mi(e, t) {
|
|
|
12209
12209
|
};
|
|
12210
12210
|
return n(r.controls);
|
|
12211
12211
|
}
|
|
12212
|
-
function
|
|
12212
|
+
function Uw(e, t) {
|
|
12213
12213
|
if (!e.controls || e.controls.length === 0)
|
|
12214
12214
|
return [];
|
|
12215
12215
|
const r = [], n = (/* @__PURE__ */ new Date()).toISOString();
|
|
@@ -12254,7 +12254,7 @@ function xw(e, t) {
|
|
|
12254
12254
|
s.interpretation && (o.interpretation = s.interpretation), s.comment && (o.comment = s.comment), r.push(o);
|
|
12255
12255
|
}), r;
|
|
12256
12256
|
}
|
|
12257
|
-
function
|
|
12257
|
+
function jw(e, t) {
|
|
12258
12258
|
if (!e || e.length === 0)
|
|
12259
12259
|
return {
|
|
12260
12260
|
controls: [],
|
|
@@ -12270,7 +12270,7 @@ function qw(e, t) {
|
|
|
12270
12270
|
), a.type = "multiselect";
|
|
12271
12271
|
} else {
|
|
12272
12272
|
let a = n.value;
|
|
12273
|
-
if (typeof n.value == "string" &&
|
|
12273
|
+
if (typeof n.value == "string" && Tm.test(n.value)) {
|
|
12274
12274
|
const i = new Date(n.value);
|
|
12275
12275
|
isNaN(i.getTime()) || (a = i);
|
|
12276
12276
|
}
|
|
@@ -12287,7 +12287,7 @@ function qw(e, t) {
|
|
|
12287
12287
|
metadata: { formMetadata: t }
|
|
12288
12288
|
};
|
|
12289
12289
|
}
|
|
12290
|
-
function
|
|
12290
|
+
function Fw(e) {
|
|
12291
12291
|
const t = (n) => {
|
|
12292
12292
|
const s = (l) => l == null ? null : typeof l == "string" || typeof l == "number" || typeof l == "boolean" || typeof l == "object" ? l : null, a = n.concept, o = typeof a == "object" && a !== null && "uuid" in a ? a.uuid : a, i = typeof a == "object" && a !== null && "datatype" in a ? a.datatype : void 0, c = {
|
|
12293
12293
|
concept: {
|
|
@@ -12307,11 +12307,11 @@ function Uw(e) {
|
|
|
12307
12307
|
};
|
|
12308
12308
|
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);
|
|
12309
12309
|
}
|
|
12310
|
-
function
|
|
12310
|
+
function Vw(e) {
|
|
12311
12311
|
if (!(!e || typeof e != "object"))
|
|
12312
12312
|
return "toJS" in e && typeof e.toJS == "function" ? e.toJS() : e;
|
|
12313
12313
|
}
|
|
12314
|
-
function
|
|
12314
|
+
function Hw(e, t) {
|
|
12315
12315
|
!e || !Array.isArray(e.children) || e.children.forEach((r) => {
|
|
12316
12316
|
r && typeof r == "object" && pi(
|
|
12317
12317
|
r,
|
|
@@ -12341,7 +12341,7 @@ function pi(e, t) {
|
|
|
12341
12341
|
);
|
|
12342
12342
|
});
|
|
12343
12343
|
}
|
|
12344
|
-
const
|
|
12344
|
+
const Xg = ee + "/bahmnicore/diseaseSummaryData?", Bw = async (e, t, r, n) => {
|
|
12345
12345
|
const s = new URLSearchParams({
|
|
12346
12346
|
groupBy: n,
|
|
12347
12347
|
latestCount: t.toString(),
|
|
@@ -12350,9 +12350,9 @@ const Jg = ee + "/bahmnicore/diseaseSummaryData?", Vw = async (e, t, r, n) => {
|
|
|
12350
12350
|
r.forEach((o) => {
|
|
12351
12351
|
s.append("obsConcepts", o);
|
|
12352
12352
|
});
|
|
12353
|
-
const a =
|
|
12354
|
-
return
|
|
12355
|
-
}, gi = "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)",
|
|
12353
|
+
const a = Xg + s.toString();
|
|
12354
|
+
return z(a);
|
|
12355
|
+
}, gi = "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)", Qg = (e) => `${ee}/bahmniprogramenrollment?patient=${e}&v=${gi}`, yi = (e) => `${ee}/bahmniprogramenrollment/${e}`, Zg = (e) => `${yi(e)}?v=${gi}`, zw = async (e) => await z(Qg(e)), Ww = async (e) => await z(Zg(e)), Gw = async (e, t) => {
|
|
12356
12356
|
const r = {
|
|
12357
12357
|
uuid: e,
|
|
12358
12358
|
states: [
|
|
@@ -12366,7 +12366,7 @@ const Jg = ee + "/bahmnicore/diseaseSummaryData?", Vw = async (e, t, r, n) => {
|
|
|
12366
12366
|
r
|
|
12367
12367
|
);
|
|
12368
12368
|
};
|
|
12369
|
-
function
|
|
12369
|
+
function Yw(e) {
|
|
12370
12370
|
if (e.states.length === 0)
|
|
12371
12371
|
return null;
|
|
12372
12372
|
let t;
|
|
@@ -12380,9 +12380,9 @@ function Ww(e) {
|
|
|
12380
12380
|
t = n[n.length - 1];
|
|
12381
12381
|
} else
|
|
12382
12382
|
t = e.states.find((r) => r.endDate === null);
|
|
12383
|
-
return t ?
|
|
12383
|
+
return t ? hm(t.state.concept.names) ?? t.state.concept.display : null;
|
|
12384
12384
|
}
|
|
12385
|
-
function
|
|
12385
|
+
function Kw(e, t) {
|
|
12386
12386
|
if (t.length === 0)
|
|
12387
12387
|
return {};
|
|
12388
12388
|
const r = {};
|
|
@@ -12394,12 +12394,12 @@ function Gw(e, t) {
|
|
|
12394
12394
|
}
|
|
12395
12395
|
return r;
|
|
12396
12396
|
}
|
|
12397
|
-
const Dn = "consultation:saved",
|
|
12397
|
+
const Dn = "consultation:saved", Jw = (e) => {
|
|
12398
12398
|
const t = new CustomEvent(Dn, {
|
|
12399
12399
|
detail: e
|
|
12400
12400
|
});
|
|
12401
12401
|
window.dispatchEvent(t);
|
|
12402
|
-
},
|
|
12402
|
+
}, Xw = (e, t = []) => {
|
|
12403
12403
|
const r = bn(e);
|
|
12404
12404
|
En(() => {
|
|
12405
12405
|
r.current = e;
|
|
@@ -12412,7 +12412,7 @@ const Dn = "consultation:saved", Yw = (e) => {
|
|
|
12412
12412
|
window.removeEventListener(Dn, n);
|
|
12413
12413
|
};
|
|
12414
12414
|
}, t);
|
|
12415
|
-
},
|
|
12415
|
+
}, ey = (e, t) => {
|
|
12416
12416
|
const r = `${le}/DocumentReference?patient=${e}&_sort=-date&_count=100`;
|
|
12417
12417
|
if (t && t.length > 0) {
|
|
12418
12418
|
const n = t.join(",");
|
|
@@ -12420,7 +12420,7 @@ const Dn = "consultation:saved", Yw = (e) => {
|
|
|
12420
12420
|
}
|
|
12421
12421
|
return r;
|
|
12422
12422
|
};
|
|
12423
|
-
function
|
|
12423
|
+
function ty(e) {
|
|
12424
12424
|
return e.filter((t) => t.resource?.resourceType === "DocumentReference").map((t) => {
|
|
12425
12425
|
const r = t.resource, n = r.content?.[0]?.attachment, s = r.masterIdentifier?.value ?? r.id ?? "";
|
|
12426
12426
|
return {
|
|
@@ -12434,189 +12434,190 @@ function ey(e) {
|
|
|
12434
12434
|
};
|
|
12435
12435
|
});
|
|
12436
12436
|
}
|
|
12437
|
-
async function
|
|
12438
|
-
const r =
|
|
12439
|
-
return
|
|
12437
|
+
async function ry(e, t) {
|
|
12438
|
+
const r = ey(e, t);
|
|
12439
|
+
return z(r);
|
|
12440
12440
|
}
|
|
12441
|
-
async function
|
|
12442
|
-
const n = ((await
|
|
12441
|
+
async function Qw(e, t) {
|
|
12442
|
+
const n = ((await ry(e, t)).entry ?? []).filter(
|
|
12443
12443
|
(s) => !!s.resource
|
|
12444
12444
|
);
|
|
12445
|
-
return
|
|
12445
|
+
return ty(n);
|
|
12446
12446
|
}
|
|
12447
12447
|
export {
|
|
12448
|
-
|
|
12449
|
-
|
|
12448
|
+
Nv as APPOINTMENT_IDENTIFIER_SYSTEM,
|
|
12449
|
+
$v as APPOINTMENT_STATUSES,
|
|
12450
12450
|
Nn as AUDIT_LOG_EVENT_DETAILS,
|
|
12451
|
-
|
|
12452
|
-
|
|
12451
|
+
_m as AllergySeverity,
|
|
12452
|
+
Em as AllergyStatus,
|
|
12453
12453
|
Uh as AttributeFormat,
|
|
12454
12454
|
jh as AttributeInputType,
|
|
12455
|
-
|
|
12456
|
-
|
|
12457
|
-
|
|
12455
|
+
Ay as BAHMNI_HOME_PATH,
|
|
12456
|
+
Zv as CONCEPT_DATATYPE_COMPLEX,
|
|
12457
|
+
Qv as CONCEPT_DATATYPE_NUMERIC,
|
|
12458
12458
|
Dn as CONSULTATION_SAVED_EVENT,
|
|
12459
|
-
|
|
12459
|
+
Tm as DATETIME_REGEX_PATTERN,
|
|
12460
12460
|
oh as DATE_FORMAT,
|
|
12461
|
-
|
|
12462
|
-
|
|
12461
|
+
Ly as DATE_PICKER_INPUT_FORMAT,
|
|
12462
|
+
rw as DATE_REGEX_PATTERN,
|
|
12463
12463
|
ih as DATE_TIME_FORMAT,
|
|
12464
12464
|
lh as DURATION_UNIT_TO_DAYS,
|
|
12465
|
-
|
|
12466
|
-
|
|
12467
|
-
|
|
12468
|
-
|
|
12469
|
-
|
|
12470
|
-
|
|
12471
|
-
|
|
12472
|
-
|
|
12473
|
-
|
|
12474
|
-
|
|
12475
|
-
|
|
12476
|
-
|
|
12477
|
-
|
|
12478
|
-
|
|
12479
|
-
|
|
12480
|
-
|
|
12481
|
-
|
|
12482
|
-
|
|
12465
|
+
Bv as FHIR_ENCOUNTER_TYPE_CODE_SYSTEM,
|
|
12466
|
+
Yv as FHIR_LAB_ORDER_CONCEPT_TYPE_EXTENSION_URL,
|
|
12467
|
+
Jv as FHIR_OBSERVATION_FORM_NAMESPACE_PATH_URL,
|
|
12468
|
+
Kv as FHIR_OBSERVATION_INTERPRETATION_SYSTEM,
|
|
12469
|
+
ew as FHIR_OBSERVATION_STATUS_FINAL,
|
|
12470
|
+
Xv as FHIR_OBSERVATION_VALUE_ATTACHMENT_URL,
|
|
12471
|
+
tw as FHIR_RESOURCE_TYPE_OBSERVATION,
|
|
12472
|
+
Dy as FULL_MONTH_DATE_FORMAT,
|
|
12473
|
+
Gv as HL7_CONDITION_CATEGORY_CODE_SYSTEM,
|
|
12474
|
+
Sm as HL7_CONDITION_CATEGORY_CONDITION_CODE,
|
|
12475
|
+
Rm as HL7_CONDITION_CATEGORY_DIAGNOSIS_CODE,
|
|
12476
|
+
Wv as HL7_CONDITION_CLINICAL_STATUS_CODE_SYSTEM,
|
|
12477
|
+
zv as HL7_CONDITION_VERIFICATION_STATUS_CODE_SYSTEM,
|
|
12478
|
+
nw as INTERPRETATION_TO_CODE,
|
|
12479
|
+
Cy as ISO_DATE_FORMAT,
|
|
12480
|
+
sv as MAX_NAME_LENGTH,
|
|
12481
|
+
nv as MAX_PATIENT_AGE_YEARS,
|
|
12482
|
+
av as MAX_PHONE_NUMBER_LENGTH,
|
|
12483
12483
|
qe as MedicationStatus,
|
|
12484
12484
|
le as OPENMRS_FHIR_R4,
|
|
12485
12485
|
ee as OPENMRS_REST_V1,
|
|
12486
|
-
|
|
12487
|
-
|
|
12488
|
-
|
|
12489
|
-
|
|
12490
|
-
|
|
12486
|
+
ww as ORDER_TYPE_QUERY_KEY,
|
|
12487
|
+
vw as PENDING_REPORT_STATUSES,
|
|
12488
|
+
yw as PROCESSED_REPORT_STATUSES,
|
|
12489
|
+
Iy as REGISTRATION_DATE_FORMAT,
|
|
12490
|
+
Tw as USER_PINNED_PREFERENCE_URL,
|
|
12491
12491
|
uh as calculateAge,
|
|
12492
|
-
|
|
12493
|
-
|
|
12494
|
-
|
|
12495
|
-
|
|
12496
|
-
|
|
12497
|
-
|
|
12498
|
-
|
|
12499
|
-
|
|
12500
|
-
|
|
12501
|
-
|
|
12502
|
-
|
|
12492
|
+
Fy as calculateAgeinYearsAndMonths,
|
|
12493
|
+
Vy as calculateEndDate,
|
|
12494
|
+
xy as calculateOnsetDate,
|
|
12495
|
+
ev as camelToScreamingSnakeCase,
|
|
12496
|
+
Gy as capitalize,
|
|
12497
|
+
Av as checkIfActiveVisitExists,
|
|
12498
|
+
Vw as convertImmutableToPlainObject,
|
|
12499
|
+
tv as convertToSentenceCase,
|
|
12500
|
+
fv as createPatient,
|
|
12501
|
+
Pv as createVisitForPatient,
|
|
12502
|
+
Oy as del,
|
|
12503
12503
|
Fh as dispatchAuditEvent,
|
|
12504
|
-
|
|
12505
|
-
|
|
12506
|
-
|
|
12507
|
-
|
|
12508
|
-
|
|
12509
|
-
|
|
12510
|
-
|
|
12511
|
-
|
|
12512
|
-
|
|
12513
|
-
|
|
12514
|
-
|
|
12515
|
-
|
|
12516
|
-
|
|
12517
|
-
|
|
12518
|
-
|
|
12519
|
-
|
|
12520
|
-
|
|
12521
|
-
|
|
12522
|
-
|
|
12504
|
+
Jw as dispatchConsultationSaved,
|
|
12505
|
+
Hy as doDateRangesOverlap,
|
|
12506
|
+
Kw as extractAttributes,
|
|
12507
|
+
Hw as extractNotesFromFormData,
|
|
12508
|
+
Fv as fetchAndFormatAllergenConcepts,
|
|
12509
|
+
xw as fetchFormMetadata,
|
|
12510
|
+
iw as fetchMedicationOrdersMetadata,
|
|
12511
|
+
Mw as fetchObservationForms,
|
|
12512
|
+
Vv as fetchReactionConcepts,
|
|
12513
|
+
Xy as filterReplacementEntries,
|
|
12514
|
+
Dw as findActiveEncounterInSession,
|
|
12515
|
+
My as formatDate,
|
|
12516
|
+
jy as formatDateAndTime,
|
|
12517
|
+
qy as formatDateDistance,
|
|
12518
|
+
ky as formatDateTime,
|
|
12519
|
+
Qy as formatUrl,
|
|
12520
|
+
Wy as generateId,
|
|
12521
|
+
z as get,
|
|
12522
|
+
xg as getActiveVisit,
|
|
12523
12523
|
Kh as getActiveVisitByPatient,
|
|
12524
|
-
|
|
12525
|
-
|
|
12526
|
-
|
|
12527
|
-
|
|
12528
|
-
|
|
12529
|
-
|
|
12530
|
-
|
|
12524
|
+
pv as getAddressHierarchyEntries,
|
|
12525
|
+
Mv as getAllAppointmentServices,
|
|
12526
|
+
wm as getAllergies,
|
|
12527
|
+
kv as getAppointmentById,
|
|
12528
|
+
Ew as getCategoryUuidFromOrderTypes,
|
|
12529
|
+
Uv as getConceptById,
|
|
12530
|
+
sw as getConditions,
|
|
12531
|
+
Rw as getConfig,
|
|
12531
12532
|
ti as getCookieByName,
|
|
12532
|
-
|
|
12533
|
-
|
|
12534
|
-
|
|
12535
|
-
|
|
12536
|
-
|
|
12537
|
-
|
|
12538
|
-
|
|
12539
|
-
|
|
12540
|
-
|
|
12541
|
-
|
|
12542
|
-
|
|
12543
|
-
|
|
12533
|
+
Pw as getCurrentProvider,
|
|
12534
|
+
Yw as getCurrentStateName,
|
|
12535
|
+
rv as getCurrentUser,
|
|
12536
|
+
Lw as getCurrentUserPrivileges,
|
|
12537
|
+
pw as getDiagnosticReportBundle,
|
|
12538
|
+
mw as getDiagnosticReports,
|
|
12539
|
+
ry as getDocumentReferences,
|
|
12540
|
+
Iw as getEncountersAndVisitsForEOC,
|
|
12541
|
+
Sw as getExistingServiceRequestsForAllCategories,
|
|
12542
|
+
bw as getFlattenedInvestigations,
|
|
12543
|
+
Hv as getFormattedAllergies,
|
|
12544
|
+
Qw as getFormattedDocumentReferences,
|
|
12544
12545
|
Or as getFormattedError,
|
|
12545
|
-
|
|
12546
|
-
|
|
12547
|
-
|
|
12548
|
-
|
|
12549
|
-
|
|
12550
|
-
|
|
12551
|
-
|
|
12552
|
-
|
|
12546
|
+
ov as getFormattedPatientById,
|
|
12547
|
+
mv as getGenders,
|
|
12548
|
+
dv as getIdentifierData,
|
|
12549
|
+
lv as getIdentifierTypes,
|
|
12550
|
+
bv as getInputTypeForFormat,
|
|
12551
|
+
hw as getLabInvestigationsBundle,
|
|
12552
|
+
$w as getObservationsBundleByEncounterUuid,
|
|
12553
|
+
_w as getOrderTypeNames,
|
|
12553
12554
|
Bn as getOrderTypes,
|
|
12554
|
-
|
|
12555
|
-
|
|
12555
|
+
gv as getOrderedAddressHierarchyLevels,
|
|
12556
|
+
Cv as getPastAppointments,
|
|
12556
12557
|
Ih as getPatientById,
|
|
12557
|
-
|
|
12558
|
-
|
|
12559
|
-
|
|
12560
|
-
|
|
12561
|
-
|
|
12562
|
-
|
|
12563
|
-
|
|
12564
|
-
|
|
12565
|
-
|
|
12566
|
-
|
|
12567
|
-
|
|
12568
|
-
|
|
12569
|
-
|
|
12570
|
-
|
|
12558
|
+
aw as getPatientDiagnoses,
|
|
12559
|
+
qw as getPatientFormData,
|
|
12560
|
+
iv as getPatientImageAsDataUrl,
|
|
12561
|
+
Vm as getPatientMedicationBundle,
|
|
12562
|
+
ow as getPatientMedications,
|
|
12563
|
+
Aw as getPatientObservations,
|
|
12564
|
+
Dg as getPatientObservationsBundle,
|
|
12565
|
+
Ow as getPatientObservationsWithEncounterBundle,
|
|
12566
|
+
yv as getPatientProfile,
|
|
12567
|
+
zw as getPatientPrograms,
|
|
12568
|
+
lw as getPatientRadiologyInvestigationBundle,
|
|
12569
|
+
dw as getPatientRadiologyInvestigationBundleWithImagingStudy,
|
|
12570
|
+
fw as getPatientRadiologyInvestigations,
|
|
12571
|
+
wv as getPersonAttributeTypes,
|
|
12571
12572
|
qh as getPrimaryIdentifierType,
|
|
12572
|
-
|
|
12573
|
-
|
|
12574
|
-
|
|
12573
|
+
Ky as getPriorityByOrder,
|
|
12574
|
+
Ww as getProgramByUUID,
|
|
12575
|
+
vv as getRelationshipTypes,
|
|
12575
12576
|
It as getServiceRequests,
|
|
12576
|
-
|
|
12577
|
-
|
|
12577
|
+
Uy as getTodayDate,
|
|
12578
|
+
Iv as getUpcomingAppointments,
|
|
12578
12579
|
Vn as getUserLoginLocation,
|
|
12579
12580
|
Nt as getUserPreferredLocale,
|
|
12580
|
-
|
|
12581
|
-
|
|
12582
|
-
|
|
12583
|
-
|
|
12584
|
-
|
|
12585
|
-
|
|
12586
|
-
|
|
12587
|
-
|
|
12588
|
-
|
|
12589
|
-
|
|
12590
|
-
|
|
12591
|
-
|
|
12592
|
-
|
|
12593
|
-
|
|
12594
|
-
|
|
12595
|
-
|
|
12596
|
-
|
|
12581
|
+
uw as getVaccinations,
|
|
12582
|
+
Zy as getValueType,
|
|
12583
|
+
Ov as getVisitTypes,
|
|
12584
|
+
Bw as getVitalFlowSheetData,
|
|
12585
|
+
Jy as groupByDate,
|
|
12586
|
+
kw as hasPrivilege,
|
|
12587
|
+
$y as initAppI18n,
|
|
12588
|
+
Cw as initializeAuditListener,
|
|
12589
|
+
Ev as isBooleanFormat,
|
|
12590
|
+
_v as isConceptFormat,
|
|
12591
|
+
Rv as isDateFormat,
|
|
12592
|
+
Sv as isNumberFormat,
|
|
12593
|
+
Yy as isStringEmpty,
|
|
12594
|
+
Tv as isTextFormat,
|
|
12595
|
+
Gg as logAuditEvent,
|
|
12596
|
+
Py as normalizeTranslationKey,
|
|
12597
|
+
xv as notificationService,
|
|
12597
12598
|
dh as parseQueryParams,
|
|
12598
|
-
|
|
12599
|
+
Ty as patch,
|
|
12599
12600
|
Ve as post,
|
|
12600
|
-
|
|
12601
|
-
|
|
12602
|
-
|
|
12603
|
-
|
|
12604
|
-
|
|
12601
|
+
Ry as put,
|
|
12602
|
+
zy as refreshQueries,
|
|
12603
|
+
Dv as searchAppointmentsByAttribute,
|
|
12604
|
+
jv as searchConceptByName,
|
|
12605
|
+
qv as searchConcepts,
|
|
12605
12606
|
Sr as searchFHIRConcepts,
|
|
12606
|
-
|
|
12607
|
-
|
|
12608
|
-
|
|
12609
|
-
|
|
12610
|
-
|
|
12611
|
-
|
|
12612
|
-
|
|
12613
|
-
|
|
12614
|
-
|
|
12615
|
-
|
|
12616
|
-
|
|
12617
|
-
|
|
12618
|
-
|
|
12619
|
-
|
|
12620
|
-
|
|
12621
|
-
|
|
12607
|
+
fm as searchFHIRConceptsByName,
|
|
12608
|
+
cw as searchMedications,
|
|
12609
|
+
uv as searchPatientByCustomAttribute,
|
|
12610
|
+
cv as searchPatientByNameOrId,
|
|
12611
|
+
Nw as shouldEnableEncounterFilter,
|
|
12612
|
+
By as sortByDate,
|
|
12613
|
+
Fw as transformContainerObservationsToForm2Observations,
|
|
12614
|
+
Uw as transformFormDataToObservations,
|
|
12615
|
+
jw as transformObservationsToFormData,
|
|
12616
|
+
Lv as updateAppointmentStatus,
|
|
12617
|
+
gw as updateDiagnosticReportBundle,
|
|
12618
|
+
hv as updatePatient,
|
|
12619
|
+
Gw as updateProgramState,
|
|
12620
|
+
Ny as useCamera,
|
|
12621
|
+
Xw as useSubscribeConsultationSaved,
|
|
12622
|
+
tb as useTranslation
|
|
12622
12623
|
};
|