@bahmni/services 0.0.1-dev.193 → 0.0.1-dev.195
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/date/constants.d.ts +1 -0
- package/dist/date/constants.d.ts.map +1 -1
- package/dist/date/date.d.ts.map +1 -1
- package/dist/date/index.d.ts +1 -1
- package/dist/date/index.d.ts.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +490 -489
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { initReactI18next as oi } from "react-i18next";
|
|
2
|
-
import { useTranslation as
|
|
2
|
+
import { useTranslation as lv } from "react-i18next";
|
|
3
3
|
import { useRef as wn, useCallback as Yr, useEffect as En } from "react";
|
|
4
4
|
function ra(e, t) {
|
|
5
5
|
return function() {
|
|
@@ -1797,22 +1797,22 @@ ce.getAdapter = Ea.getAdapter;
|
|
|
1797
1797
|
ce.HttpStatusCode = Rn;
|
|
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: bm,
|
|
1801
|
+
AxiosError: _m,
|
|
1802
|
+
CanceledError: Sm,
|
|
1803
|
+
isCancel: Rm,
|
|
1804
|
+
CancelToken: Tm,
|
|
1805
|
+
VERSION: Om,
|
|
1806
|
+
all: Am,
|
|
1807
|
+
Cancel: Nm,
|
|
1808
|
+
isAxiosError: $m,
|
|
1809
|
+
spread: Pm,
|
|
1810
|
+
toFormData: Im,
|
|
1811
|
+
AxiosHeaders: Dm,
|
|
1812
|
+
HttpStatusCode: Cm,
|
|
1813
|
+
formToJSON: Lm,
|
|
1814
|
+
getAdapter: km,
|
|
1815
|
+
mergeConfig: xm
|
|
1816
1816
|
} = ce, kc = (e) => typeof e == "object" && e !== null && "resourceType" in e && e.resourceType === "OperationOutcome", xc = (e) => {
|
|
1817
1817
|
if (!e.issue || !Array.isArray(e.issue))
|
|
1818
1818
|
return null;
|
|
@@ -2017,7 +2017,7 @@ qe.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 z = async (e) => (await qe.get(e)).data, Me = async (e, t) => (await qe.post(e, t)).data,
|
|
2020
|
+
const z = async (e) => (await qe.get(e)).data, Me = async (e, t) => (await qe.post(e, t)).data, Um = async (e, t) => (await qe.put(e, t)).data, qm = async (e, t) => (await qe.patch(e, t)).data, Mm = async (e) => (await qe.delete(e)).data, Y = (e) => typeof e == "string", ft = () => {
|
|
2021
2021
|
let e, t;
|
|
2022
2022
|
const r = new Promise((n, s) => {
|
|
2023
2023
|
e = n, t = s;
|
|
@@ -3691,7 +3691,7 @@ class $a {
|
|
|
3691
3691
|
}
|
|
3692
3692
|
}
|
|
3693
3693
|
$a.type = "languageDetector";
|
|
3694
|
-
const $u = process.env.PUBLIC_URL ?? "/", le = "/openmrs/ws/fhir2/R4", Z = "/openmrs/ws/rest/v1", Pu = "/openmrs/ws/rest/v2", Iu = "bahmni.user",
|
|
3694
|
+
const $u = process.env.PUBLIC_URL ?? "/", le = "/openmrs/ws/fhir2/R4", Z = "/openmrs/ws/rest/v1", Pu = "/openmrs/ws/rest/v2", Iu = "bahmni.user", jm = "/bahmni/home/index.html", Du = Z + "/session", Cu = "en", Pa = "NG_TRANSLATE_LANG_KEY", Lu = (e, t) => $u + `${e}/locales/locale_${t}.json`, ku = (e, t) => `/bahmni_config/openmrs/i18n/${e}/locale_${t}.json`, qr = () => localStorage.getItem(Pa) ?? Cu, $s = async (e) => {
|
|
3695
3695
|
try {
|
|
3696
3696
|
const t = await z(e);
|
|
3697
3697
|
return t || (console.error(`Invalid response from ${e}`), {});
|
|
@@ -3715,7 +3715,7 @@ const $u = process.env.PUBLIC_URL ?? "/", le = "/openmrs/ws/fhir2/R4", Z = "/ope
|
|
|
3715
3715
|
}, e !== "en" && (r.en = {
|
|
3716
3716
|
[t]: await Ps(t, "en")
|
|
3717
3717
|
}), r;
|
|
3718
|
-
},
|
|
3718
|
+
}, Fm = (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
|
}, Uu = (e, t) => {
|
|
@@ -3732,7 +3732,7 @@ const $u = process.env.PUBLIC_URL ?? "/", le = "/openmrs/ws/fhir2/R4", Z = "/ope
|
|
|
3732
3732
|
labels: n.labels ?? {},
|
|
3733
3733
|
concepts: n.concepts ?? {}
|
|
3734
3734
|
};
|
|
3735
|
-
},
|
|
3735
|
+
}, Vm = async (e) => {
|
|
3736
3736
|
const t = qr(), r = await xu(t, e);
|
|
3737
3737
|
return await ue.use($a).use(oi).init({
|
|
3738
3738
|
fallbackLng: "en",
|
|
@@ -3751,7 +3751,7 @@ const $u = process.env.PUBLIC_URL ?? "/", le = "/openmrs/ws/fhir2/R4", Z = "/ope
|
|
|
3751
3751
|
}
|
|
3752
3752
|
}), ue;
|
|
3753
3753
|
};
|
|
3754
|
-
function
|
|
3754
|
+
function Hm() {
|
|
3755
3755
|
const e = wn(null), t = wn(null), r = Yr(async () => {
|
|
3756
3756
|
t.current && (t.current.getTracks().forEach((a) => a.stop()), t.current = null);
|
|
3757
3757
|
const o = await navigator.mediaDevices.getUserMedia({
|
|
@@ -3774,11 +3774,11 @@ function Vm() {
|
|
|
3774
3774
|
}, []);
|
|
3775
3775
|
return En(() => () => n(), [n]), { videoRef: e, start: r, stop: n, capture: s };
|
|
3776
3776
|
}
|
|
3777
|
-
const qu = "bahmni.enableAuditLog", Ia = (e) => `${Z}/bahmnicore/sql/globalproperty?property=${e}`,
|
|
3777
|
+
const qu = "bahmni.enableAuditLog", Ia = (e) => `${Z}/bahmnicore/sql/globalproperty?property=${e}`, Bm = async (e, t, r) => {
|
|
3778
3778
|
const { exact: n = !0, refetchActiveNow: s = !0 } = r ?? {};
|
|
3779
3779
|
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" });
|
|
3780
|
-
},
|
|
3781
|
-
function
|
|
3780
|
+
}, zm = () => Math.random().toString(36).substring(2, 9);
|
|
3781
|
+
function Gm(e, t = " -") {
|
|
3782
3782
|
return e ? e.toLowerCase().split(new RegExp(`[${t}]+`)).map((n) => n.charAt(0).toUpperCase() + n.slice(1)).join(" ") : "";
|
|
3783
3783
|
}
|
|
3784
3784
|
function Da(e) {
|
|
@@ -3790,7 +3790,7 @@ function Da(e) {
|
|
|
3790
3790
|
}
|
|
3791
3791
|
return "";
|
|
3792
3792
|
}
|
|
3793
|
-
const
|
|
3793
|
+
const Km = (e) => !e || e.trim().length === 0, Ym = (e, t) => {
|
|
3794
3794
|
if (!e || !t || t.length === 0)
|
|
3795
3795
|
return 999;
|
|
3796
3796
|
const r = t.findIndex(
|
|
@@ -3798,7 +3798,7 @@ const Gm = (e) => !e || e.trim().length === 0, Km = (e, t) => {
|
|
|
3798
3798
|
);
|
|
3799
3799
|
return r === -1 ? 999 : r;
|
|
3800
3800
|
};
|
|
3801
|
-
function
|
|
3801
|
+
function Wm(e, t) {
|
|
3802
3802
|
if (!e || e.length === 0)
|
|
3803
3803
|
return [];
|
|
3804
3804
|
const r = /* @__PURE__ */ new Map();
|
|
@@ -3810,7 +3810,7 @@ function Ym(e, t) {
|
|
|
3810
3810
|
items: s
|
|
3811
3811
|
}));
|
|
3812
3812
|
}
|
|
3813
|
-
function
|
|
3813
|
+
function Jm(e, t, r) {
|
|
3814
3814
|
if (!e || e.length === 0)
|
|
3815
3815
|
return [];
|
|
3816
3816
|
const n = /* @__PURE__ */ new Set(), s = /* @__PURE__ */ new Set();
|
|
@@ -3831,7 +3831,7 @@ function Mu(e) {
|
|
|
3831
3831
|
o[n(a[1])] = n(a[2]);
|
|
3832
3832
|
return o;
|
|
3833
3833
|
}
|
|
3834
|
-
function
|
|
3834
|
+
function Qm(e, t, r) {
|
|
3835
3835
|
const n = /{{([^}]*)}}/g, s = e.match(n);
|
|
3836
3836
|
let o = e;
|
|
3837
3837
|
const a = r ?? !1, i = a ? Mu() : {};
|
|
@@ -3844,7 +3844,7 @@ function Jm(e, t, r) {
|
|
|
3844
3844
|
const ju = (e) => new Promise((t, r) => {
|
|
3845
3845
|
const n = new FileReader();
|
|
3846
3846
|
n.onloadend = () => t(n.result), n.onerror = r, n.readAsDataURL(e);
|
|
3847
|
-
}),
|
|
3847
|
+
}), Xm = (e) => {
|
|
3848
3848
|
if (typeof e == "number" && !isNaN(e))
|
|
3849
3849
|
return "number";
|
|
3850
3850
|
if (typeof e != "string")
|
|
@@ -3852,14 +3852,14 @@ const ju = (e) => new Promise((t, r) => {
|
|
|
3852
3852
|
const t = e.toLowerCase();
|
|
3853
3853
|
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";
|
|
3854
3854
|
};
|
|
3855
|
-
function
|
|
3855
|
+
function Zm(e) {
|
|
3856
3856
|
return e.replace(/[\s-]+/g, "_").replace(/([a-z])([A-Z])/g, "$1_$2").replace(/([A-Z])([A-Z][a-z])/g, "$1_$2").toUpperCase();
|
|
3857
3857
|
}
|
|
3858
|
-
function
|
|
3858
|
+
function eg(e) {
|
|
3859
3859
|
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()) : "";
|
|
3860
3860
|
}
|
|
3861
3861
|
const Fu = (e) => Z + `/user?username=${e}&v=custom:(username,uuid)`, Vu = "bahmni.user.location", Hu = (e) => Z + `/bahmni/app/setting?module=${e}`, Bu = "default_dateFormat";
|
|
3862
|
-
async function
|
|
3862
|
+
async function tg() {
|
|
3863
3863
|
const e = Da(Iu);
|
|
3864
3864
|
if (!e)
|
|
3865
3865
|
return null;
|
|
@@ -3883,7 +3883,7 @@ const xn = () => {
|
|
|
3883
3883
|
if (!t.name || !t.uuid)
|
|
3884
3884
|
throw new Error(ue.t("ERROR_FETCHING_USER_LOCATION_DETAILS"));
|
|
3885
3885
|
return t;
|
|
3886
|
-
},
|
|
3886
|
+
}, rg = async () => (await z(Hu("commons"))).find(
|
|
3887
3887
|
(r) => r.property === Bu
|
|
3888
3888
|
)?.value ?? null, Un = {
|
|
3889
3889
|
person: {
|
|
@@ -3931,7 +3931,7 @@ const xn = () => {
|
|
|
3931
3931
|
}, Ca = Z + "/idgen/identifiertype", Wu = (e) => Z + `/bahmni/app/setting?module=${e}`, Ju = "bahmni.primaryIdentifierType", Qu = Z + "/bahmnicore/patientprofile", Xu = (e) => Z + `/bahmnicore/patientprofile/${e}`, Zu = (e) => Z + `/patientprofile/${e}?v=full`, el = (e, t, r = 20, n) => {
|
|
3932
3932
|
let s = `/openmrs/module/addresshierarchy/ajax/getPossibleAddressHierarchyEntriesWithParents.form?addressField=${e}&limit=${r}&searchString=${encodeURIComponent(t)}`;
|
|
3933
3933
|
return n && (s += `&parent=${n}`), s;
|
|
3934
|
-
}, tl = "/openmrs/module/addresshierarchy/ajax/getOrderedAddressHierarchyLevels.form", rl = Z + "/relationshiptype?v=custom:(aIsToB,bIsToA,uuid)&limit=150", nl = 20, sl = 2,
|
|
3934
|
+
}, tl = "/openmrs/module/addresshierarchy/ajax/getOrderedAddressHierarchyLevels.form", rl = Z + "/relationshiptype?v=custom:(aIsToB,bIsToA,uuid)&limit=150", nl = 20, sl = 2, ng = 120, sg = 50, og = 15, ol = /^[a-f0-9-]{36}$/i, al = (e) => Pu + `/patientImage?patientUuid=${e}`, il = Z + "/personattributetype?v=custom:(uuid,name,sortWeight,description,format,concept:(uuid,display,answers:(uuid,name)))", cl = async (e) => {
|
|
3935
3935
|
if (!e || e.trim() === "")
|
|
3936
3936
|
throw new Error("Invalid patient UUID: UUID cannot be empty");
|
|
3937
3937
|
if (!ol.test(e))
|
|
@@ -3964,20 +3964,20 @@ const xn = () => {
|
|
|
3964
3964
|
formattedContact: r,
|
|
3965
3965
|
identifiers: s
|
|
3966
3966
|
};
|
|
3967
|
-
},
|
|
3967
|
+
}, ag = async (e) => {
|
|
3968
3968
|
const t = await cl(e);
|
|
3969
3969
|
return hl(t);
|
|
3970
|
-
},
|
|
3970
|
+
}, ig = async (e) => {
|
|
3971
3971
|
const t = await fetch(al(e));
|
|
3972
3972
|
if (!t.ok) return null;
|
|
3973
3973
|
const r = await t.blob();
|
|
3974
3974
|
return await ju(r);
|
|
3975
|
-
},
|
|
3975
|
+
}, cg = async (e, t) => {
|
|
3976
3976
|
const r = xn();
|
|
3977
3977
|
return await z(
|
|
3978
3978
|
Ku(e, r.uuid, t)
|
|
3979
3979
|
);
|
|
3980
|
-
},
|
|
3980
|
+
}, ug = async (e, t, r, n, s) => {
|
|
3981
3981
|
const o = xn();
|
|
3982
3982
|
return await z(
|
|
3983
3983
|
Yu(
|
|
@@ -3988,9 +3988,9 @@ const xn = () => {
|
|
|
3988
3988
|
o.uuid
|
|
3989
3989
|
)
|
|
3990
3990
|
);
|
|
3991
|
-
},
|
|
3991
|
+
}, lg = async () => z(Ca), pl = async () => (await z(Wu("core"))).find(
|
|
3992
3992
|
(r) => r.property === Ju
|
|
3993
|
-
)?.value ?? null,
|
|
3993
|
+
)?.value ?? null, dg = async () => {
|
|
3994
3994
|
const [e, t] = await Promise.all([
|
|
3995
3995
|
z(Ca),
|
|
3996
3996
|
pl()
|
|
@@ -4007,10 +4007,10 @@ const xn = () => {
|
|
|
4007
4007
|
sourcesByPrefix: n,
|
|
4008
4008
|
primaryIdentifierTypeUuid: t
|
|
4009
4009
|
}) : { prefixes: r, sourcesByPrefix: n, primaryIdentifierTypeUuid: t };
|
|
4010
|
-
},
|
|
4010
|
+
}, fg = async (e) => Me(Qu, e), hg = async (e, t) => Me(
|
|
4011
4011
|
Xu(e),
|
|
4012
4012
|
t
|
|
4013
|
-
),
|
|
4013
|
+
), pg = async () => z(Ia("mrs.genders")), mg = async (e, t, r = nl, n) => {
|
|
4014
4014
|
if (!t || t.length < sl)
|
|
4015
4015
|
return [];
|
|
4016
4016
|
try {
|
|
@@ -4022,7 +4022,7 @@ const xn = () => {
|
|
|
4022
4022
|
`Failed to fetch address hierarchy for field "${e}": ${s instanceof Error ? s.message : "Unknown error"}`
|
|
4023
4023
|
);
|
|
4024
4024
|
}
|
|
4025
|
-
},
|
|
4025
|
+
}, gg = async () => z(tl), yg = async (e) => z(Zu(e)), vg = async () => {
|
|
4026
4026
|
try {
|
|
4027
4027
|
return (await z(
|
|
4028
4028
|
rl
|
|
@@ -4036,9 +4036,9 @@ const xn = () => {
|
|
|
4036
4036
|
`Failed to fetch relationship types: ${e instanceof Error ? e.message : "Unknown error"}`
|
|
4037
4037
|
);
|
|
4038
4038
|
}
|
|
4039
|
-
},
|
|
4039
|
+
}, wg = async () => z(il);
|
|
4040
4040
|
var ml = /* @__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))(ml || {}), gl = /* @__PURE__ */ ((e) => (e.CHECKBOX = "checkbox", e.DROPDOWN = "dropdown", e.TEXT = "text", e.NUMBER = "number", e.DATE = "date", e))(gl || {});
|
|
4041
|
-
const
|
|
4041
|
+
const Eg = (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", bg = (e) => e === "java.lang.Boolean" || e === "org.openmrs.customdatatype.datatype.BooleanDatatype", _g = (e) => e === "org.openmrs.Concept" || e === "org.bahmni.module.bahmnicore.customdatatype.datatype.CodedConceptDatatype" || e === "org.openmrs.customdatatype.datatype.ConceptDatatype", Sg = (e) => e === "java.lang.Integer" || e === "java.lang.Float", Rg = (e) => e === "org.openmrs.util.AttributableDate" || e === "org.openmrs.customdatatype.datatype.DateDatatype", Tg = (e) => e === "java.lang.String" || e === "org.openmrs.customdatatype.datatype.FreeTextDatatype" || e === "org.openmrs.customdatatype.datatype.RegexValidatedTextDatatype", yl = (e) => {
|
|
4042
4042
|
const t = new CustomEvent("bahmni-audit-log", { detail: e });
|
|
4043
4043
|
window.dispatchEvent(t);
|
|
4044
4044
|
}, vl = (e) => {
|
|
@@ -4091,10 +4091,10 @@ const wg = (e) => e === "java.lang.Boolean" || e === "org.openmrs.customdatatype
|
|
|
4091
4091
|
}
|
|
4092
4092
|
}, wl = Z + "/auditlog", El = {
|
|
4093
4093
|
UNKNOWN_EVENT_TYPE: "AUDIT_LOG_ERROR_UNKNOWN_EVENT_TYPE"
|
|
4094
|
-
}, bl = () => Z + "/bahmnicore/config/bahmniencounter?callerContext=REGISTRATION_CONCEPTS", _l = Z + "/visit", Sl = (e) => Z + `/visit?patient=${e}&includeInactive=false&v=custom:(uuid,visitType,startDatetime,stopDatetime)`, Rl = (e) => Z + `/bahmnicore/visitLocation/${e}`,
|
|
4094
|
+
}, bl = () => Z + "/bahmnicore/config/bahmniencounter?callerContext=REGISTRATION_CONCEPTS", _l = Z + "/visit", Sl = (e) => Z + `/visit?patient=${e}&includeInactive=false&v=custom:(uuid,visitType,startDatetime,stopDatetime)`, Rl = (e) => Z + `/bahmnicore/visitLocation/${e}`, Og = async () => z(bl()), Tl = async (e) => z(Sl(e)), Ol = async (e) => z(Rl(e)), Al = async (e) => Me(_l, e), Ag = async (e) => {
|
|
4095
4095
|
const t = await Tl(e);
|
|
4096
4096
|
return t?.results && t.results.length > 0;
|
|
4097
|
-
},
|
|
4097
|
+
}, Ng = async (e, t) => {
|
|
4098
4098
|
const r = await Ol(
|
|
4099
4099
|
xn().uuid
|
|
4100
4100
|
), n = {
|
|
@@ -5561,7 +5561,7 @@ function tf(e, t, r) {
|
|
|
5561
5561
|
function rf(e, t, r) {
|
|
5562
5562
|
return Mn(e, -t, r);
|
|
5563
5563
|
}
|
|
5564
|
-
const
|
|
5564
|
+
const $g = {
|
|
5565
5565
|
PROPOSED: "proposed",
|
|
5566
5566
|
PENDING: "pending",
|
|
5567
5567
|
BOOKED: "booked",
|
|
@@ -5572,34 +5572,34 @@ const Ng = {
|
|
|
5572
5572
|
CHECKED_IN: "checked-in",
|
|
5573
5573
|
WAITLIST: "waitlist",
|
|
5574
5574
|
ENTERED_IN_ERROR: "entered-in-error"
|
|
5575
|
-
}, nf = Z + "/appointments/search", Va = Z + "/appointments",
|
|
5575
|
+
}, nf = Z + "/appointments/search", Va = Z + "/appointments", Pg = "http://fhir.bahmni.org/code-system/appointments", sf = (e) => `${Va}/${e}`, Ha = (e, t, r) => {
|
|
5576
5576
|
const n = t === "upcoming", s = n ? "ge" : "le", o = n ? "date" : "-date", a = n ? (/* @__PURE__ */ new Date()).toISOString() : tf(/* @__PURE__ */ new Date()).toISOString();
|
|
5577
5577
|
let i = `${le}/Appointment?patient=${e}&date=${s}${a}&_sort=${o}`;
|
|
5578
5578
|
return r !== void 0 && r > 0 && (i += `&_count=${r}`), i;
|
|
5579
|
-
}, of = (e) => Ha(e, "upcoming"), af = (e, t) => Ha(e, "past", t), cf = (e) => `${Va}/${e}/status-change`, uf = Z + "/appointmentService/all/full",
|
|
5580
|
-
async function
|
|
5579
|
+
}, of = (e) => Ha(e, "upcoming"), af = (e, t) => Ha(e, "past", t), cf = (e) => `${Va}/${e}/status-change`, uf = Z + "/appointmentService/all/full", Ig = async (e) => await Me(nf, e);
|
|
5580
|
+
async function Dg(e) {
|
|
5581
5581
|
return await z(of(e));
|
|
5582
5582
|
}
|
|
5583
|
-
async function
|
|
5583
|
+
async function Cg(e, t) {
|
|
5584
5584
|
return await z(
|
|
5585
5585
|
af(e, t)
|
|
5586
5586
|
);
|
|
5587
5587
|
}
|
|
5588
|
-
const
|
|
5588
|
+
const Lg = async (e, t, r) => await Me(cf(e), {
|
|
5589
5589
|
toStatus: t,
|
|
5590
5590
|
onDate: r
|
|
5591
5591
|
});
|
|
5592
|
-
async function
|
|
5592
|
+
async function kg(e) {
|
|
5593
5593
|
return await z(sf(e));
|
|
5594
5594
|
}
|
|
5595
|
-
const
|
|
5595
|
+
const xg = async () => await z(uf), lf = "dd/MM/yyyy", df = "default_dateFormat", ff = "P", hf = "h:mm a", Te = {
|
|
5596
5596
|
PARSE_ERROR: "DATE_ERROR_PARSE",
|
|
5597
5597
|
FORMAT_ERROR: "DATE_ERROR_FORMAT",
|
|
5598
5598
|
EMPTY_OR_INVALID: "DATE_ERROR_EMPTY_OR_INVALID",
|
|
5599
5599
|
INVALID_FORMAT: "DATE_ERROR_INVALID_FORMAT",
|
|
5600
5600
|
NULL_OR_UNDEFINED: "DATE_ERROR_NULL_OR_UNDEFINED"
|
|
5601
5601
|
};
|
|
5602
|
-
function
|
|
5602
|
+
function Ug(e) {
|
|
5603
5603
|
if (typeof e != "string" || !/^\d{4}-\d{2}-\d{2}$/.test(e))
|
|
5604
5604
|
return null;
|
|
5605
5605
|
const t = Vn(e);
|
|
@@ -5627,7 +5627,7 @@ function Ba(e, t) {
|
|
|
5627
5627
|
}
|
|
5628
5628
|
};
|
|
5629
5629
|
}
|
|
5630
|
-
function
|
|
5630
|
+
function pf(e, t, r) {
|
|
5631
5631
|
if (e == null)
|
|
5632
5632
|
return {
|
|
5633
5633
|
formattedResult: "",
|
|
@@ -5655,7 +5655,7 @@ function hf(e, t, r) {
|
|
|
5655
5655
|
}
|
|
5656
5656
|
} : { formattedResult: xd(n, t) };
|
|
5657
5657
|
}
|
|
5658
|
-
function
|
|
5658
|
+
function qg(e, t, r = !1, n) {
|
|
5659
5659
|
const s = t ?? ((a) => a);
|
|
5660
5660
|
let o;
|
|
5661
5661
|
try {
|
|
@@ -5663,9 +5663,9 @@ function Ug(e, t, r = !1, n) {
|
|
|
5663
5663
|
} catch {
|
|
5664
5664
|
o = lf;
|
|
5665
5665
|
}
|
|
5666
|
-
return r && !n && (o = `${o}
|
|
5666
|
+
return r && !n && (o = `${o} ${hf}`), pf(e, o, s);
|
|
5667
5667
|
}
|
|
5668
|
-
function
|
|
5668
|
+
function Mg(e, t, r) {
|
|
5669
5669
|
if (!e || !$t(e) || t === null || t === void 0 || !r || typeof t != "number")
|
|
5670
5670
|
return;
|
|
5671
5671
|
const n = new Date(e);
|
|
@@ -5680,7 +5680,7 @@ function qg(e, t, r) {
|
|
|
5680
5680
|
return;
|
|
5681
5681
|
}
|
|
5682
5682
|
}
|
|
5683
|
-
function
|
|
5683
|
+
function jg(e, t) {
|
|
5684
5684
|
if (e == null)
|
|
5685
5685
|
return {
|
|
5686
5686
|
formattedResult: "",
|
|
@@ -5732,11 +5732,11 @@ function Mg(e, t) {
|
|
|
5732
5732
|
}
|
|
5733
5733
|
return { formattedResult: c };
|
|
5734
5734
|
}
|
|
5735
|
-
const
|
|
5735
|
+
const Fg = () => {
|
|
5736
5736
|
const e = /* @__PURE__ */ new Date();
|
|
5737
5737
|
return e.setHours(0, 0, 0, 0), e;
|
|
5738
5738
|
};
|
|
5739
|
-
function
|
|
5739
|
+
function Vg(e, t) {
|
|
5740
5740
|
const r = typeof e == "string" ? Vn(e) : new Date(e), n = /* @__PURE__ */ new Date(), s = Fn(n, r), o = Mn(r, s), a = jn(n, o), i = Mr(o, a), c = Nn(n, i), d = {
|
|
5741
5741
|
years: "YEARS",
|
|
5742
5742
|
months: "MONTHS",
|
|
@@ -5762,7 +5762,7 @@ function Fg(e, t) {
|
|
|
5762
5762
|
return `${v}${h}`;
|
|
5763
5763
|
}).join(" ");
|
|
5764
5764
|
}
|
|
5765
|
-
const
|
|
5765
|
+
const mf = {
|
|
5766
5766
|
d: 1,
|
|
5767
5767
|
wk: 7,
|
|
5768
5768
|
mo: 30,
|
|
@@ -5770,14 +5770,14 @@ const pf = {
|
|
|
5770
5770
|
h: 1 / 24,
|
|
5771
5771
|
min: 1 / 1440,
|
|
5772
5772
|
s: 1 / 86400
|
|
5773
|
-
},
|
|
5773
|
+
}, Hg = (e, t, r) => {
|
|
5774
5774
|
const n = typeof e == "string" ? new Date(e) : e;
|
|
5775
5775
|
if (isNaN(n.getTime()))
|
|
5776
5776
|
throw new Error(`Invalid date: ${e}`);
|
|
5777
|
-
const s =
|
|
5777
|
+
const s = mf[r] ?? 1, o = t * s;
|
|
5778
5778
|
return xa(n, o);
|
|
5779
|
-
},
|
|
5780
|
-
function
|
|
5779
|
+
}, Bg = (e, t, r, n) => e <= n && r <= t;
|
|
5780
|
+
function zg(e, t, r = !1) {
|
|
5781
5781
|
return !e || !Array.isArray(e) ? [] : e.sort((n, s) => {
|
|
5782
5782
|
const o = new Date(n[t]), a = new Date(s[t]);
|
|
5783
5783
|
if (isNaN(o.getTime()) && isNaN(a.getTime())) return 0;
|
|
@@ -5787,7 +5787,7 @@ function Bg(e, t, r = !1) {
|
|
|
5787
5787
|
return r ? i : -i;
|
|
5788
5788
|
});
|
|
5789
5789
|
}
|
|
5790
|
-
const
|
|
5790
|
+
const gf = () => {
|
|
5791
5791
|
let e = null;
|
|
5792
5792
|
return {
|
|
5793
5793
|
// Method to register the callback
|
|
@@ -5816,34 +5816,34 @@ const mf = () => {
|
|
|
5816
5816
|
);
|
|
5817
5817
|
}
|
|
5818
5818
|
};
|
|
5819
|
-
},
|
|
5820
|
-
const r = qr(), n =
|
|
5819
|
+
}, Gg = gf(), yf = (e) => le + `/ValueSet/${e}/$expand`, vf = (e) => le + `/ValueSet/$expand?filter=${encodeURIComponent(e)}`, wf = (e, t, r) => Z + `/bahmni/terminologies/concepts?limit=${t}&locale=${r}&term=${e}`, Ef = (e) => Z + `/concept/${e}`, bf = (e) => `${Z}/concept?s=byFullySpecifiedName&name=${encodeURIComponent(e)}`, _f = "SHORT", Sf = "FULLY_SPECIFIED", Kg = async (e, t = 20) => {
|
|
5820
|
+
const r = qr(), n = wf(e, t, r);
|
|
5821
5821
|
return z(n);
|
|
5822
5822
|
}, br = async (e) => {
|
|
5823
|
-
const t =
|
|
5823
|
+
const t = yf(e);
|
|
5824
5824
|
return z(t);
|
|
5825
|
-
},
|
|
5826
|
-
const t = `${
|
|
5825
|
+
}, Rf = async (e) => {
|
|
5826
|
+
const t = `${vf(e)}`;
|
|
5827
5827
|
return z(t);
|
|
5828
5828
|
};
|
|
5829
|
-
async function Kg(e) {
|
|
5830
|
-
return await z(wf(e));
|
|
5831
|
-
}
|
|
5832
5829
|
async function Yg(e) {
|
|
5833
|
-
|
|
5830
|
+
return await z(Ef(e));
|
|
5831
|
+
}
|
|
5832
|
+
async function Wg(e) {
|
|
5833
|
+
const t = bf(e), r = await z(t);
|
|
5834
5834
|
return !r.results || r.results.length === 0 ? null : r.results[0];
|
|
5835
5835
|
}
|
|
5836
|
-
function
|
|
5836
|
+
function Tf(e) {
|
|
5837
5837
|
if (!e?.length) return null;
|
|
5838
5838
|
let t = null;
|
|
5839
5839
|
for (const r of e) {
|
|
5840
|
-
if (r.conceptNameType ===
|
|
5840
|
+
if (r.conceptNameType === _f)
|
|
5841
5841
|
return r.name;
|
|
5842
|
-
r.conceptNameType ===
|
|
5842
|
+
r.conceptNameType === Sf && (t = r.name);
|
|
5843
5843
|
}
|
|
5844
5844
|
return t ?? e[0].name ?? null;
|
|
5845
5845
|
}
|
|
5846
|
-
const
|
|
5846
|
+
const Of = (e) => le + `/AllergyIntolerance?patient=${e}&_count=100&_sort=-_lastUpdated`, et = {
|
|
5847
5847
|
FOOD: {
|
|
5848
5848
|
code: "162553AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
|
|
5849
5849
|
display: "food"
|
|
@@ -5856,16 +5856,16 @@ const Tf = (e) => le + `/AllergyIntolerance?patient=${e}&_count=100&_sort=-_last
|
|
|
5856
5856
|
code: "162554AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
|
|
5857
5857
|
display: "environment"
|
|
5858
5858
|
}
|
|
5859
|
-
},
|
|
5859
|
+
}, Af = {
|
|
5860
5860
|
code: "162555AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
|
|
5861
|
-
},
|
|
5861
|
+
}, Nf = (e) => e.filter((t) => t.inactive !== !0), $f = (e, t) => ({
|
|
5862
5862
|
uuid: e.code ?? "",
|
|
5863
5863
|
display: e.display ?? "",
|
|
5864
5864
|
type: t
|
|
5865
5865
|
}), sn = (e, t) => {
|
|
5866
5866
|
const r = e.expansion?.contains ?? [];
|
|
5867
|
-
return
|
|
5868
|
-
},
|
|
5867
|
+
return Nf(r).map((s) => $f(s, t));
|
|
5868
|
+
}, Jg = async (e, t, r) => {
|
|
5869
5869
|
const n = e ?? et.MEDICATION.code, s = t ?? et.FOOD.code, o = r ?? et.ENVIRONMENT.code, [a, i, c] = await Promise.all([
|
|
5870
5870
|
br(n),
|
|
5871
5871
|
br(s),
|
|
@@ -5885,19 +5885,19 @@ const Tf = (e) => le + `/AllergyIntolerance?patient=${e}&_count=100&_sort=-_last
|
|
|
5885
5885
|
et.ENVIRONMENT.display
|
|
5886
5886
|
)
|
|
5887
5887
|
];
|
|
5888
|
-
},
|
|
5889
|
-
const t = e ??
|
|
5888
|
+
}, Qg = async (e) => {
|
|
5889
|
+
const t = e ?? Af.code;
|
|
5890
5890
|
return (await br(t)).compose?.include[0]?.concept ?? [];
|
|
5891
5891
|
};
|
|
5892
|
-
async function $f(e) {
|
|
5893
|
-
return await z(`${Tf(e)}`);
|
|
5894
|
-
}
|
|
5895
5892
|
async function Pf(e) {
|
|
5896
|
-
return
|
|
5893
|
+
return await z(`${Of(e)}`);
|
|
5894
|
+
}
|
|
5895
|
+
async function If(e) {
|
|
5896
|
+
return (await Pf(e)).entry?.map(
|
|
5897
5897
|
(r) => r.resource
|
|
5898
5898
|
) ?? [];
|
|
5899
5899
|
}
|
|
5900
|
-
function
|
|
5900
|
+
function Df(e) {
|
|
5901
5901
|
return e.map((t) => {
|
|
5902
5902
|
const r = t.clinicalStatus?.coding?.[0]?.display ?? "Unknown", n = t.reaction?.[0]?.severity ?? "Unknown";
|
|
5903
5903
|
return {
|
|
@@ -5919,22 +5919,22 @@ function If(e) {
|
|
|
5919
5919
|
};
|
|
5920
5920
|
});
|
|
5921
5921
|
}
|
|
5922
|
-
async function
|
|
5923
|
-
const t = await
|
|
5924
|
-
return
|
|
5922
|
+
async function Xg(e) {
|
|
5923
|
+
const t = await If(e);
|
|
5924
|
+
return Df(t);
|
|
5925
5925
|
}
|
|
5926
|
-
var
|
|
5927
|
-
const
|
|
5926
|
+
var Cf = /* @__PURE__ */ ((e) => (e.Active = "Active", e.Inactive = "Inactive", e))(Cf || {}), Lf = /* @__PURE__ */ ((e) => (e.mild = "mild", e.moderate = "moderate", e.severe = "severe", e))(Lf || {});
|
|
5927
|
+
const Zg = "http://fhir.openmrs.org/code-system/encounter-type", kf = "problem-list-item", ey = "http://terminology.hl7.org/CodeSystem/condition-ver-status", xf = "encounter-diagnosis", ty = "http://terminology.hl7.org/CodeSystem/condition-clinical", ry = "http://terminology.hl7.org/CodeSystem/condition-category", ny = "http://fhir.bahmni.org/ext/lab-order-concept-type", sy = "http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation", oy = "http://fhir.bahmni.org/ext/observation/form-namespace-path", ay = "http://fhir.bahmni.org/ext/observation/obs-value-attachment", iy = "Numeric", cy = "Complex", uy = "final", ly = "Observation", dy = /^\d{4}-\d{2}-\d{2}/, Uf = /^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}/, fy = {
|
|
5928
5928
|
ABNORMAL: { code: "A", display: "Abnormal" },
|
|
5929
5929
|
NORMAL: { code: "N", display: "Normal" }
|
|
5930
|
-
},
|
|
5931
|
-
async function
|
|
5932
|
-
return await z(`${
|
|
5930
|
+
}, qf = (e) => le + `/Condition?category=${kf}&patient=${e}&_count=100&_sort=-_lastUpdated`;
|
|
5931
|
+
async function Mf(e) {
|
|
5932
|
+
return await z(`${qf(e)}`);
|
|
5933
5933
|
}
|
|
5934
|
-
async function
|
|
5935
|
-
return (await
|
|
5934
|
+
async function hy(e) {
|
|
5935
|
+
return (await Mf(e)).entry?.filter((n) => n.resource?.resourceType === "Condition").map((n) => n.resource) ?? [];
|
|
5936
5936
|
}
|
|
5937
|
-
const
|
|
5937
|
+
const jf = (e) => le + `/Condition?category=${xf}&patient=${e}&_count=100&_sort=-_lastUpdated`, on = [
|
|
5938
5938
|
{
|
|
5939
5939
|
code: "confirmed",
|
|
5940
5940
|
display: "CERTAINITY_CONFIRMED",
|
|
@@ -5945,26 +5945,26 @@ const Mf = (e) => le + `/Condition?category=${kf}&patient=${e}&_count=100&_sort=
|
|
|
5945
5945
|
display: "CERTAINITY_PROVISIONAL",
|
|
5946
5946
|
system: "http://terminology.hl7.org/CodeSystem/condition-ver-status"
|
|
5947
5947
|
}
|
|
5948
|
-
],
|
|
5949
|
-
async function
|
|
5950
|
-
const t =
|
|
5948
|
+
], Ff = "confirmed", Vf = "provisional";
|
|
5949
|
+
async function Hf(e) {
|
|
5950
|
+
const t = jf(e);
|
|
5951
5951
|
return await z(t);
|
|
5952
5952
|
}
|
|
5953
|
-
const
|
|
5953
|
+
const Bf = (e) => {
|
|
5954
5954
|
switch (e.verificationStatus?.coding?.[0]?.code) {
|
|
5955
|
-
case jf:
|
|
5956
|
-
return on[0];
|
|
5957
5955
|
case Ff:
|
|
5956
|
+
return on[0];
|
|
5957
|
+
case Vf:
|
|
5958
5958
|
return on[1];
|
|
5959
5959
|
default:
|
|
5960
5960
|
return on[1];
|
|
5961
5961
|
}
|
|
5962
|
-
},
|
|
5963
|
-
function
|
|
5962
|
+
}, zf = (e) => !!(e.id && e.code && e.recordedDate);
|
|
5963
|
+
function Gf(e) {
|
|
5964
5964
|
return (e.entry?.filter((r) => r.resource?.resourceType === "Condition").map((r) => r.resource) ?? []).map((r) => {
|
|
5965
|
-
if (!
|
|
5965
|
+
if (!zf(r))
|
|
5966
5966
|
throw new Error("Incomplete diagnosis data");
|
|
5967
|
-
const n =
|
|
5967
|
+
const n = Bf(r), s = r.recordedDate;
|
|
5968
5968
|
return {
|
|
5969
5969
|
id: r.id,
|
|
5970
5970
|
display: r.code?.text ?? "",
|
|
@@ -5974,7 +5974,7 @@ function zf(e) {
|
|
|
5974
5974
|
};
|
|
5975
5975
|
});
|
|
5976
5976
|
}
|
|
5977
|
-
function
|
|
5977
|
+
function Kf(e) {
|
|
5978
5978
|
const t = /* @__PURE__ */ new Map();
|
|
5979
5979
|
for (const r of e) {
|
|
5980
5980
|
const n = r.display.toLowerCase().trim(), s = t.get(n);
|
|
@@ -5987,9 +5987,9 @@ function Gf(e) {
|
|
|
5987
5987
|
}
|
|
5988
5988
|
return Array.from(t.values());
|
|
5989
5989
|
}
|
|
5990
|
-
async function
|
|
5991
|
-
const t = await
|
|
5992
|
-
return
|
|
5990
|
+
async function py(e) {
|
|
5991
|
+
const t = await Hf(e), r = Gf(t);
|
|
5992
|
+
return Kf(r);
|
|
5993
5993
|
}
|
|
5994
5994
|
var ke = /* @__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))(ke || {});
|
|
5995
5995
|
const bt = {
|
|
@@ -6000,13 +6000,13 @@ const bt = {
|
|
|
6000
6000
|
// Trade-off: Larger payload but avoids redundant API calls
|
|
6001
6001
|
// Use only when medication details are needed immediately
|
|
6002
6002
|
INCLUDE_MEDICATION: "_include=MedicationRequest:medication"
|
|
6003
|
-
},
|
|
6003
|
+
}, Yf = (e, t, r) => {
|
|
6004
6004
|
let s = `${le + "/MedicationRequest?" + bt.SORT + "&" + bt.COUNT}&patient=${e}`;
|
|
6005
6005
|
return t && (s += `&code=${t}`), r && (s += `&encounter=${r}`), s;
|
|
6006
|
-
},
|
|
6006
|
+
}, Wf = (e, t, r) => {
|
|
6007
6007
|
let s = `${le + "/MedicationRequest?" + bt.SORT + "&" + bt.COUNT + "&" + bt.INCLUDE_MEDICATION}&patient=${e}`;
|
|
6008
6008
|
return t && (s += `&code=${t}`), r && (s += `&encounter=${r}`), s;
|
|
6009
|
-
},
|
|
6009
|
+
}, Jf = Z + "/bahmnicore/config/drugOrders", Qf = (e, t) => le + `/Medication?name=${encodeURIComponent(e)}&_count=${t}&_sort=-_lastUpdated`, Xf = le + "/Medication?code=http://hl7.org/fhir/sid/cvx|&_count=100", Zf = (e) => {
|
|
6010
6010
|
switch (e.status) {
|
|
6011
6011
|
case "active":
|
|
6012
6012
|
return ke.Active;
|
|
@@ -6026,36 +6026,36 @@ const bt = {
|
|
|
6026
6026
|
return ke.Unknown;
|
|
6027
6027
|
}
|
|
6028
6028
|
};
|
|
6029
|
-
async function
|
|
6029
|
+
async function eh(e, t, r, n = !1) {
|
|
6030
6030
|
let s;
|
|
6031
6031
|
r && r.length > 0 && (s = r.join(","));
|
|
6032
6032
|
let o;
|
|
6033
6033
|
t && t.length > 0 && (o = t.join(","));
|
|
6034
|
-
const i = (n ?
|
|
6034
|
+
const i = (n ? Wf : Yf)(e, o, s);
|
|
6035
6035
|
return await z(i);
|
|
6036
6036
|
}
|
|
6037
|
-
function
|
|
6037
|
+
function th(e) {
|
|
6038
6038
|
const t = e?.[0]?.doseAndRate?.[0]?.doseQuantity;
|
|
6039
6039
|
return {
|
|
6040
6040
|
value: t?.value ?? 0,
|
|
6041
6041
|
unit: t?.unit ?? ""
|
|
6042
6042
|
};
|
|
6043
6043
|
}
|
|
6044
|
-
function
|
|
6044
|
+
function rh(e) {
|
|
6045
6045
|
return e?.[0]?.timing?.code?.coding?.[0]?.display ?? "";
|
|
6046
6046
|
}
|
|
6047
|
-
function
|
|
6047
|
+
function nh(e) {
|
|
6048
6048
|
const t = e?.[0]?.route;
|
|
6049
6049
|
return t && Array.isArray(t.coding) && t.coding[0]?.display ? t.coding[0].display : "";
|
|
6050
6050
|
}
|
|
6051
|
-
function
|
|
6051
|
+
function sh(e) {
|
|
6052
6052
|
const t = e?.[0]?.timing?.repeat, r = t?.durationUnit;
|
|
6053
6053
|
return {
|
|
6054
6054
|
duration: t?.duration ?? 0,
|
|
6055
6055
|
durationUnit: r ?? ""
|
|
6056
6056
|
};
|
|
6057
6057
|
}
|
|
6058
|
-
function
|
|
6058
|
+
function oh(e) {
|
|
6059
6059
|
try {
|
|
6060
6060
|
const t = e?.[0]?.text;
|
|
6061
6061
|
return t ? JSON.parse(t).additionalInstructions ?? "" : "";
|
|
@@ -6063,7 +6063,7 @@ function sh(e) {
|
|
|
6063
6063
|
return "";
|
|
6064
6064
|
}
|
|
6065
6065
|
}
|
|
6066
|
-
function
|
|
6066
|
+
function ah(e) {
|
|
6067
6067
|
try {
|
|
6068
6068
|
const t = e?.[0]?.text;
|
|
6069
6069
|
return t ? JSON.parse(t).instructions ?? "" : "";
|
|
@@ -6071,17 +6071,17 @@ function oh(e) {
|
|
|
6071
6071
|
return "";
|
|
6072
6072
|
}
|
|
6073
6073
|
}
|
|
6074
|
-
function
|
|
6074
|
+
function ih(e) {
|
|
6075
6075
|
const t = e?.quantity;
|
|
6076
6076
|
return {
|
|
6077
6077
|
value: t?.value ?? 0,
|
|
6078
6078
|
unit: t?.unit ?? ""
|
|
6079
6079
|
};
|
|
6080
6080
|
}
|
|
6081
|
-
function
|
|
6081
|
+
function ch(e) {
|
|
6082
6082
|
return !e || e.length === 0 ? "" : e.map((t) => t.text).filter(Boolean).join(" ");
|
|
6083
6083
|
}
|
|
6084
|
-
function
|
|
6084
|
+
function uh(e, t, r) {
|
|
6085
6085
|
if (e?.display)
|
|
6086
6086
|
return e.display;
|
|
6087
6087
|
if (e?.reference) {
|
|
@@ -6097,7 +6097,7 @@ function ch(e, t, r) {
|
|
|
6097
6097
|
);
|
|
6098
6098
|
return n?.code?.text ? n.code.text : e?.reference ? e.reference : "Medication";
|
|
6099
6099
|
}
|
|
6100
|
-
function
|
|
6100
|
+
function lh(e, t, r) {
|
|
6101
6101
|
if (e?.reference) {
|
|
6102
6102
|
const s = e.reference.split("/").pop();
|
|
6103
6103
|
if (s) {
|
|
@@ -6111,7 +6111,7 @@ function uh(e, t, r) {
|
|
|
6111
6111
|
);
|
|
6112
6112
|
return n?.form ? n.form.text ?? n.form.coding?.[0]?.display ?? "" : "";
|
|
6113
6113
|
}
|
|
6114
|
-
function
|
|
6114
|
+
function dh(e) {
|
|
6115
6115
|
const t = e.entry?.filter((n) => {
|
|
6116
6116
|
const s = n.resource;
|
|
6117
6117
|
return s?.resourceType === "MedicationRequest" && !!s?.id;
|
|
@@ -6120,11 +6120,11 @@ function lh(e) {
|
|
|
6120
6120
|
const s = n.resource;
|
|
6121
6121
|
s.resourceType === "Medication" && r.set(s.id, s);
|
|
6122
6122
|
}), t.map((n) => {
|
|
6123
|
-
const s = n.medicationReference, o = n.requester, a =
|
|
6123
|
+
const s = n.medicationReference, o = n.requester, a = Zf(n), i = uh(
|
|
6124
6124
|
s,
|
|
6125
6125
|
n,
|
|
6126
6126
|
r
|
|
6127
|
-
), c =
|
|
6127
|
+
), c = lh(
|
|
6128
6128
|
s,
|
|
6129
6129
|
n,
|
|
6130
6130
|
r
|
|
@@ -6132,55 +6132,55 @@ function lh(e) {
|
|
|
6132
6132
|
return {
|
|
6133
6133
|
id: n.id,
|
|
6134
6134
|
name: i,
|
|
6135
|
-
dose:
|
|
6135
|
+
dose: th(n.dosageInstruction),
|
|
6136
6136
|
asNeeded: n.dosageInstruction?.[0]?.asNeededBoolean ?? !1,
|
|
6137
|
-
frequency:
|
|
6138
|
-
route:
|
|
6139
|
-
duration:
|
|
6137
|
+
frequency: rh(n.dosageInstruction),
|
|
6138
|
+
route: nh(n.dosageInstruction),
|
|
6139
|
+
duration: sh(n.dosageInstruction),
|
|
6140
6140
|
status: a,
|
|
6141
6141
|
priority: n.priority ?? "",
|
|
6142
6142
|
isImmediate: Ms(n),
|
|
6143
|
-
quantity:
|
|
6143
|
+
quantity: ih(n.dispenseRequest),
|
|
6144
6144
|
startDate: Ms(n) ? n.authoredOn : n.dosageInstruction?.[0]?.timing?.event?.[0] ?? "",
|
|
6145
6145
|
orderDate: n.authoredOn,
|
|
6146
6146
|
orderedBy: o?.display ?? "Unknown",
|
|
6147
|
-
instructions:
|
|
6148
|
-
additionalInstructions:
|
|
6147
|
+
instructions: ah(n.dosageInstruction),
|
|
6148
|
+
additionalInstructions: oh(
|
|
6149
6149
|
n.dosageInstruction
|
|
6150
6150
|
),
|
|
6151
|
-
note:
|
|
6151
|
+
note: ch(n.note),
|
|
6152
6152
|
doseForm: c
|
|
6153
6153
|
};
|
|
6154
6154
|
});
|
|
6155
6155
|
}
|
|
6156
6156
|
const Ms = (e) => e.priority === "stat" || e.dosageInstruction?.[0]?.timing?.code?.text === "Immediately" || !1;
|
|
6157
|
-
async function
|
|
6158
|
-
const s = await
|
|
6157
|
+
async function my(e, t, r, n = !1) {
|
|
6158
|
+
const s = await eh(
|
|
6159
6159
|
e,
|
|
6160
6160
|
t,
|
|
6161
6161
|
r,
|
|
6162
6162
|
n
|
|
6163
6163
|
);
|
|
6164
|
-
return
|
|
6164
|
+
return dh(s);
|
|
6165
6165
|
}
|
|
6166
|
-
async function
|
|
6166
|
+
async function gy() {
|
|
6167
6167
|
return await z(
|
|
6168
|
-
|
|
6168
|
+
Jf
|
|
6169
6169
|
);
|
|
6170
6170
|
}
|
|
6171
|
-
async function
|
|
6171
|
+
async function yy(e, t = 20) {
|
|
6172
6172
|
return await z(
|
|
6173
|
-
|
|
6173
|
+
Qf(e, t)
|
|
6174
6174
|
);
|
|
6175
6175
|
}
|
|
6176
|
-
async function
|
|
6177
|
-
return await z(
|
|
6176
|
+
async function vy() {
|
|
6177
|
+
return await z(Xf);
|
|
6178
6178
|
}
|
|
6179
|
-
const
|
|
6180
|
-
let a = `${le + `/ServiceRequest?_count=${
|
|
6179
|
+
const fh = 200, hh = (e, t, r, n, s) => {
|
|
6180
|
+
let a = `${le + `/ServiceRequest?_count=${fh}&_sort=-_lastUpdated`}&category=${e}&patient=${t}`;
|
|
6181
6181
|
return s && (a += `&_revinclude=${s}`), r ? a += `&encounter=${r}` : n && (a += `&numberOfVisits=${n}`), a;
|
|
6182
6182
|
};
|
|
6183
|
-
function
|
|
6183
|
+
function ph(e) {
|
|
6184
6184
|
if (!e || e.length === 0)
|
|
6185
6185
|
return [];
|
|
6186
6186
|
const t = /* @__PURE__ */ new Set();
|
|
@@ -6196,7 +6196,7 @@ async function Pt(e, t, r, n, s) {
|
|
|
6196
6196
|
let o;
|
|
6197
6197
|
r && r.length > 0 && (o = r.join(","));
|
|
6198
6198
|
const a = await z(
|
|
6199
|
-
|
|
6199
|
+
hh(
|
|
6200
6200
|
e,
|
|
6201
6201
|
t,
|
|
6202
6202
|
o,
|
|
@@ -6204,9 +6204,9 @@ async function Pt(e, t, r, n, s) {
|
|
|
6204
6204
|
s
|
|
6205
6205
|
)
|
|
6206
6206
|
);
|
|
6207
|
-
return a.entry && (a.entry =
|
|
6207
|
+
return a.entry && (a.entry = ph(a.entry), a.total = a.entry.length), a;
|
|
6208
6208
|
}
|
|
6209
|
-
async function
|
|
6209
|
+
async function wy(e, t, r, n) {
|
|
6210
6210
|
return await Pt(
|
|
6211
6211
|
t,
|
|
6212
6212
|
e,
|
|
@@ -6214,7 +6214,7 @@ async function vy(e, t, r, n) {
|
|
|
6214
6214
|
n
|
|
6215
6215
|
);
|
|
6216
6216
|
}
|
|
6217
|
-
async function
|
|
6217
|
+
async function Ey(e, t, r, n) {
|
|
6218
6218
|
return await Pt(
|
|
6219
6219
|
t,
|
|
6220
6220
|
e,
|
|
@@ -6223,7 +6223,7 @@ async function wy(e, t, r, n) {
|
|
|
6223
6223
|
"ImagingStudy:basedon"
|
|
6224
6224
|
);
|
|
6225
6225
|
}
|
|
6226
|
-
async function
|
|
6226
|
+
async function by(e, t, r, n) {
|
|
6227
6227
|
return (await Pt(
|
|
6228
6228
|
t,
|
|
6229
6229
|
e,
|
|
@@ -6231,7 +6231,7 @@ async function Ey(e, t, r, n) {
|
|
|
6231
6231
|
n
|
|
6232
6232
|
)).entry?.filter((a) => a.resource?.resourceType === "ServiceRequest").map((a) => a.resource) ?? [];
|
|
6233
6233
|
}
|
|
6234
|
-
async function
|
|
6234
|
+
async function _y(e, t, r, n) {
|
|
6235
6235
|
return await Pt(
|
|
6236
6236
|
t,
|
|
6237
6237
|
e,
|
|
@@ -6239,36 +6239,36 @@ async function by(e, t, r, n) {
|
|
|
6239
6239
|
n
|
|
6240
6240
|
);
|
|
6241
6241
|
}
|
|
6242
|
-
const
|
|
6242
|
+
const mh = (e, t) => {
|
|
6243
6243
|
const r = `${le}/DiagnosticReport?patient=${e}`;
|
|
6244
6244
|
return t ? `${r}&based-on=${t}` : r;
|
|
6245
|
-
},
|
|
6246
|
-
async function
|
|
6247
|
-
const r = t.length > 0 ? t.join(",") : void 0, n =
|
|
6245
|
+
}, gh = (e) => `${le}/DiagnosticReport/${e}/$fetch-bundle`, yh = (e) => `${le}/DiagnosticReport/${e}/$update-bundle`;
|
|
6246
|
+
async function Sy(e, t = []) {
|
|
6247
|
+
const r = t.length > 0 ? t.join(",") : void 0, n = mh(e, r);
|
|
6248
6248
|
return await z(n);
|
|
6249
6249
|
}
|
|
6250
|
-
async function
|
|
6251
|
-
const t =
|
|
6250
|
+
async function Ry(e) {
|
|
6251
|
+
const t = gh(e);
|
|
6252
6252
|
return await z(t);
|
|
6253
6253
|
}
|
|
6254
|
-
async function
|
|
6255
|
-
const r =
|
|
6254
|
+
async function Ty(e, t) {
|
|
6255
|
+
const r = yh(e);
|
|
6256
6256
|
return await Me(r, t);
|
|
6257
6257
|
}
|
|
6258
|
-
const
|
|
6258
|
+
const Oy = [
|
|
6259
6259
|
"preliminary",
|
|
6260
6260
|
"final",
|
|
6261
6261
|
"amended",
|
|
6262
6262
|
"corrected",
|
|
6263
6263
|
"appended"
|
|
6264
|
-
],
|
|
6264
|
+
], Ay = [
|
|
6265
6265
|
"registered",
|
|
6266
6266
|
"unknown",
|
|
6267
6267
|
"partial"
|
|
6268
|
-
],
|
|
6268
|
+
], vh = "All Orderables", wh = "/openmrs/ws/rest/v1/ordertype?v=custom:(uuid,display,conceptClasses:(uuid,name))", Eh = "LabSet", bh = "http://fhir.bahmni.org/ext/ValueSet/concept-class", Ny = ["orderTypes"], _h = async () => await Rf(vh), Hn = async () => await z(wh), Sh = (e) => {
|
|
6269
6269
|
let t = e.display ?? "Unknown investigation";
|
|
6270
|
-
return za(e) ===
|
|
6271
|
-
},
|
|
6270
|
+
return za(e) === Eh && (t += ` (${ue.t("INVESTIGATION_PANEL")})`), t;
|
|
6271
|
+
}, Rh = (e) => {
|
|
6272
6272
|
const t = /* @__PURE__ */ new Map();
|
|
6273
6273
|
return e.results.forEach((r) => {
|
|
6274
6274
|
r.conceptClasses.forEach((n) => {
|
|
@@ -6277,10 +6277,10 @@ const Ty = [
|
|
|
6277
6277
|
}), t;
|
|
6278
6278
|
}, za = (e) => {
|
|
6279
6279
|
const t = e.extension?.find(
|
|
6280
|
-
(r) => r.url ===
|
|
6280
|
+
(r) => r.url === bh
|
|
6281
6281
|
);
|
|
6282
6282
|
return t ? t.valueString ?? "" : "";
|
|
6283
|
-
},
|
|
6283
|
+
}, Th = (e, t) => {
|
|
6284
6284
|
const r = [];
|
|
6285
6285
|
return !e.expansion?.contains || e.expansion.contains.length === 0 || t.size === 0 || e.expansion.contains.forEach((n) => {
|
|
6286
6286
|
n.contains?.forEach((s) => {
|
|
@@ -6290,19 +6290,19 @@ const Ty = [
|
|
|
6290
6290
|
return;
|
|
6291
6291
|
r.filter((d) => d.code === o.code && d.categoryCode === i.uuid).length > 0 || r.push({
|
|
6292
6292
|
code: o.code ?? "",
|
|
6293
|
-
display:
|
|
6293
|
+
display: Sh(o),
|
|
6294
6294
|
category: i.display,
|
|
6295
6295
|
categoryCode: i.uuid
|
|
6296
6296
|
});
|
|
6297
6297
|
});
|
|
6298
6298
|
});
|
|
6299
6299
|
}), r;
|
|
6300
|
-
},
|
|
6301
|
-
const e = await
|
|
6302
|
-
return
|
|
6303
|
-
},
|
|
6300
|
+
}, $y = async () => {
|
|
6301
|
+
const e = await _h(), t = await Hn();
|
|
6302
|
+
return Th(e, Rh(t));
|
|
6303
|
+
}, Py = async (e) => e ? (await Hn()).results.find(
|
|
6304
6304
|
(n) => n.display.toLowerCase() === e.toLowerCase()
|
|
6305
|
-
)?.uuid : void 0,
|
|
6305
|
+
)?.uuid : void 0, Iy = async () => (await Hn()).results.map((t) => t.display), Dy = async (e, t, r) => {
|
|
6306
6306
|
const n = [];
|
|
6307
6307
|
for (const s of e) {
|
|
6308
6308
|
const o = s.uuid;
|
|
@@ -6322,7 +6322,7 @@ const Ty = [
|
|
|
6322
6322
|
}
|
|
6323
6323
|
return n;
|
|
6324
6324
|
};
|
|
6325
|
-
function
|
|
6325
|
+
function Oh(e) {
|
|
6326
6326
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
6327
6327
|
}
|
|
6328
6328
|
var Lt = { exports: {} }, an = {}, De = {}, Fe = {}, cn = {}, un = {}, ln = {}, js;
|
|
@@ -7386,7 +7386,7 @@ function Fr() {
|
|
|
7386
7386
|
})(cn)), cn;
|
|
7387
7387
|
}
|
|
7388
7388
|
var Ks;
|
|
7389
|
-
function
|
|
7389
|
+
function Ah() {
|
|
7390
7390
|
if (Ks) return Fe;
|
|
7391
7391
|
Ks = 1, Object.defineProperty(Fe, "__esModule", { value: !0 }), Fe.boolOrEmptySchema = Fe.topBoolOrEmptySchema = void 0;
|
|
7392
7392
|
const e = Fr(), t = X(), r = je(), n = {
|
|
@@ -7611,7 +7611,7 @@ function Ir() {
|
|
|
7611
7611
|
return me;
|
|
7612
7612
|
}
|
|
7613
7613
|
var gt = {}, Qs;
|
|
7614
|
-
function
|
|
7614
|
+
function Nh() {
|
|
7615
7615
|
if (Qs) return gt;
|
|
7616
7616
|
Qs = 1, Object.defineProperty(gt, "__esModule", { value: !0 }), gt.assignDefaults = void 0;
|
|
7617
7617
|
const e = X(), t = te();
|
|
@@ -7747,7 +7747,7 @@ function Pe() {
|
|
|
7747
7747
|
return oe.validateUnion = h, oe;
|
|
7748
7748
|
}
|
|
7749
7749
|
var Zs;
|
|
7750
|
-
function
|
|
7750
|
+
function $h() {
|
|
7751
7751
|
if (Zs) return Ne;
|
|
7752
7752
|
Zs = 1, Object.defineProperty(Ne, "__esModule", { value: !0 }), Ne.validateKeywordUsage = Ne.validSchemaType = Ne.funcKeywordCode = Ne.macroKeywordCode = void 0;
|
|
7753
7753
|
const e = X(), t = je(), r = Pe(), n = Fr();
|
|
@@ -7836,7 +7836,7 @@ function Nh() {
|
|
|
7836
7836
|
return Ne.validateKeywordUsage = m, Ne;
|
|
7837
7837
|
}
|
|
7838
7838
|
var Le = {}, eo;
|
|
7839
|
-
function
|
|
7839
|
+
function Ph() {
|
|
7840
7840
|
if (eo) return Le;
|
|
7841
7841
|
eo = 1, Object.defineProperty(Le, "__esModule", { value: !0 }), Le.extendSubschemaMode = Le.extendSubschemaData = Le.getSubschema = void 0;
|
|
7842
7842
|
const e = X(), t = te();
|
|
@@ -7920,7 +7920,7 @@ function Ya() {
|
|
|
7920
7920
|
}), fn;
|
|
7921
7921
|
}
|
|
7922
7922
|
var hn = { exports: {} }, ro;
|
|
7923
|
-
function
|
|
7923
|
+
function Ih() {
|
|
7924
7924
|
if (ro) return hn.exports;
|
|
7925
7925
|
ro = 1;
|
|
7926
7926
|
var e = hn.exports = function(n, s, o) {
|
|
@@ -7998,7 +7998,7 @@ var no;
|
|
|
7998
7998
|
function Vr() {
|
|
7999
7999
|
if (no) return ye;
|
|
8000
8000
|
no = 1, Object.defineProperty(ye, "__esModule", { value: !0 }), ye.getSchemaRefs = ye.resolveUrl = ye.normalizeId = ye._getFullPath = ye.getFullPath = ye.inlineRef = void 0;
|
|
8001
|
-
const e = te(), t = Ya(), r =
|
|
8001
|
+
const e = te(), t = Ya(), r = Ih(), n = /* @__PURE__ */ new Set([
|
|
8002
8002
|
"type",
|
|
8003
8003
|
"format",
|
|
8004
8004
|
"pattern",
|
|
@@ -8107,7 +8107,7 @@ var so;
|
|
|
8107
8107
|
function Hr() {
|
|
8108
8108
|
if (so) return De;
|
|
8109
8109
|
so = 1, Object.defineProperty(De, "__esModule", { value: !0 }), De.getData = De.KeywordCxt = De.validateFunctionCode = void 0;
|
|
8110
|
-
const e =
|
|
8110
|
+
const e = Ah(), t = Ir(), r = Ka(), n = Ir(), s = Nh(), o = $h(), a = Ph(), i = X(), c = je(), d = Vr(), l = te(), m = Fr();
|
|
8111
8111
|
function y(O) {
|
|
8112
8112
|
if (_(O) && (R(O), E(O))) {
|
|
8113
8113
|
f(O);
|
|
@@ -8597,16 +8597,16 @@ function zn() {
|
|
|
8597
8597
|
}
|
|
8598
8598
|
return _e;
|
|
8599
8599
|
}
|
|
8600
|
-
const
|
|
8601
|
-
$id:
|
|
8602
|
-
description:
|
|
8603
|
-
type:
|
|
8604
|
-
required:
|
|
8605
|
-
properties:
|
|
8606
|
-
additionalProperties:
|
|
8600
|
+
const Dh = "https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#", Ch = "Meta-schema for $data reference (JSON AnySchema extension proposal)", Lh = "object", kh = ["$data"], xh = { $data: { type: "string", anyOf: [{ format: "relative-json-pointer" }, { format: "json-pointer" }] } }, Uh = !1, qh = {
|
|
8601
|
+
$id: Dh,
|
|
8602
|
+
description: Ch,
|
|
8603
|
+
type: Lh,
|
|
8604
|
+
required: kh,
|
|
8605
|
+
properties: xh,
|
|
8606
|
+
additionalProperties: Uh
|
|
8607
8607
|
};
|
|
8608
8608
|
var qt = {}, yt = { exports: {} }, pn, co;
|
|
8609
|
-
function
|
|
8609
|
+
function Mh() {
|
|
8610
8610
|
return co || (co = 1, pn = {
|
|
8611
8611
|
HEX: {
|
|
8612
8612
|
0: 0,
|
|
@@ -8635,10 +8635,10 @@ function qh() {
|
|
|
8635
8635
|
}), pn;
|
|
8636
8636
|
}
|
|
8637
8637
|
var mn, uo;
|
|
8638
|
-
function
|
|
8638
|
+
function jh() {
|
|
8639
8639
|
if (uo) return mn;
|
|
8640
8640
|
uo = 1;
|
|
8641
|
-
const { HEX: e } =
|
|
8641
|
+
const { HEX: e } = Mh(), 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;
|
|
8642
8642
|
function r(g) {
|
|
8643
8643
|
if (i(g, ".") < 3)
|
|
8644
8644
|
return { host: g, isIPV4: !1 };
|
|
@@ -8770,7 +8770,7 @@ function Mh() {
|
|
|
8770
8770
|
}, mn;
|
|
8771
8771
|
}
|
|
8772
8772
|
var gn, lo;
|
|
8773
|
-
function
|
|
8773
|
+
function Fh() {
|
|
8774
8774
|
if (lo) return gn;
|
|
8775
8775
|
lo = 1;
|
|
8776
8776
|
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;
|
|
@@ -8862,10 +8862,10 @@ function jh() {
|
|
|
8862
8862
|
return gn = h, gn;
|
|
8863
8863
|
}
|
|
8864
8864
|
var fo;
|
|
8865
|
-
function
|
|
8865
|
+
function Vh() {
|
|
8866
8866
|
if (fo) return yt.exports;
|
|
8867
8867
|
fo = 1;
|
|
8868
|
-
const { normalizeIPv6: e, normalizeIPv4: t, removeDotSegments: r, recomposeAuthority: n, normalizeComponentEncoding: s } =
|
|
8868
|
+
const { normalizeIPv6: e, normalizeIPv4: t, removeDotSegments: r, recomposeAuthority: n, normalizeComponentEncoding: s } = jh(), o = Fh();
|
|
8869
8869
|
function a(f, h) {
|
|
8870
8870
|
return typeof f == "string" ? f = l(v(f, h), h) : typeof f == "object" && (f = v(l(f, h), h)), f;
|
|
8871
8871
|
}
|
|
@@ -8961,14 +8961,14 @@ function Fh() {
|
|
|
8961
8961
|
return yt.exports = g, yt.exports.default = g, yt.exports.fastUri = g, yt.exports;
|
|
8962
8962
|
}
|
|
8963
8963
|
var ho;
|
|
8964
|
-
function
|
|
8964
|
+
function Hh() {
|
|
8965
8965
|
if (ho) return qt;
|
|
8966
8966
|
ho = 1, Object.defineProperty(qt, "__esModule", { value: !0 });
|
|
8967
|
-
const e =
|
|
8967
|
+
const e = Vh();
|
|
8968
8968
|
return e.code = 'require("ajv/dist/runtime/uri").default', qt.default = e, qt;
|
|
8969
8969
|
}
|
|
8970
8970
|
var po;
|
|
8971
|
-
function
|
|
8971
|
+
function Bh() {
|
|
8972
8972
|
return po || (po = 1, (function(e) {
|
|
8973
8973
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.CodeGen = e.Name = e.nil = e.stringify = e.str = e._ = e.KeywordCxt = void 0;
|
|
8974
8974
|
var t = Hr();
|
|
@@ -8989,7 +8989,7 @@ function Hh() {
|
|
|
8989
8989
|
} }), Object.defineProperty(e, "CodeGen", { enumerable: !0, get: function() {
|
|
8990
8990
|
return r.CodeGen;
|
|
8991
8991
|
} });
|
|
8992
|
-
const n = Bn(), s = Br(), o = Ga(), a = zn(), i = X(), c = Vr(), d = Ir(), l = te(), m =
|
|
8992
|
+
const n = Bn(), s = Br(), o = Ga(), a = zn(), i = X(), c = Vr(), d = Ir(), l = te(), m = qh, y = Hh(), S = (x, A) => new RegExp(x, A);
|
|
8993
8993
|
S.code = "new RegExp";
|
|
8994
8994
|
const v = ["removeAdditional", "useDefaults", "coerceTypes"], g = /* @__PURE__ */ new Set([
|
|
8995
8995
|
"validate",
|
|
@@ -9411,7 +9411,7 @@ function Hh() {
|
|
|
9411
9411
|
})(an)), an;
|
|
9412
9412
|
}
|
|
9413
9413
|
var Mt = {}, jt = {}, Ft = {}, mo;
|
|
9414
|
-
function
|
|
9414
|
+
function zh() {
|
|
9415
9415
|
if (mo) return Ft;
|
|
9416
9416
|
mo = 1, Object.defineProperty(Ft, "__esModule", { value: !0 });
|
|
9417
9417
|
const e = {
|
|
@@ -9423,7 +9423,7 @@ function Bh() {
|
|
|
9423
9423
|
return Ft.default = e, Ft;
|
|
9424
9424
|
}
|
|
9425
9425
|
var Ue = {}, go;
|
|
9426
|
-
function
|
|
9426
|
+
function Gh() {
|
|
9427
9427
|
if (go) return Ue;
|
|
9428
9428
|
go = 1, Object.defineProperty(Ue, "__esModule", { value: !0 }), Ue.callRef = Ue.getValidate = void 0;
|
|
9429
9429
|
const e = Br(), t = Pe(), r = X(), n = je(), s = zn(), o = te(), a = {
|
|
@@ -9510,10 +9510,10 @@ function zh() {
|
|
|
9510
9510
|
return Ue.callRef = c, Ue.default = a, Ue;
|
|
9511
9511
|
}
|
|
9512
9512
|
var yo;
|
|
9513
|
-
function
|
|
9513
|
+
function Kh() {
|
|
9514
9514
|
if (yo) return jt;
|
|
9515
9515
|
yo = 1, Object.defineProperty(jt, "__esModule", { value: !0 });
|
|
9516
|
-
const e =
|
|
9516
|
+
const e = zh(), t = Gh(), r = [
|
|
9517
9517
|
"$schema",
|
|
9518
9518
|
"$id",
|
|
9519
9519
|
"$defs",
|
|
@@ -9526,7 +9526,7 @@ function Gh() {
|
|
|
9526
9526
|
return jt.default = r, jt;
|
|
9527
9527
|
}
|
|
9528
9528
|
var Vt = {}, Ht = {}, vo;
|
|
9529
|
-
function
|
|
9529
|
+
function Yh() {
|
|
9530
9530
|
if (vo) return Ht;
|
|
9531
9531
|
vo = 1, Object.defineProperty(Ht, "__esModule", { value: !0 });
|
|
9532
9532
|
const e = X(), t = e.operators, r = {
|
|
@@ -9551,7 +9551,7 @@ function Kh() {
|
|
|
9551
9551
|
return Ht.default = s, Ht;
|
|
9552
9552
|
}
|
|
9553
9553
|
var Bt = {}, wo;
|
|
9554
|
-
function
|
|
9554
|
+
function Wh() {
|
|
9555
9555
|
if (wo) return Bt;
|
|
9556
9556
|
wo = 1, Object.defineProperty(Bt, "__esModule", { value: !0 });
|
|
9557
9557
|
const e = X(), r = {
|
|
@@ -9571,7 +9571,7 @@ function Yh() {
|
|
|
9571
9571
|
return Bt.default = r, Bt;
|
|
9572
9572
|
}
|
|
9573
9573
|
var zt = {}, Gt = {}, Eo;
|
|
9574
|
-
function
|
|
9574
|
+
function Jh() {
|
|
9575
9575
|
if (Eo) return Gt;
|
|
9576
9576
|
Eo = 1, Object.defineProperty(Gt, "__esModule", { value: !0 });
|
|
9577
9577
|
function e(t) {
|
|
@@ -9584,10 +9584,10 @@ function Wh() {
|
|
|
9584
9584
|
return Gt.default = e, e.code = 'require("ajv/dist/runtime/ucs2length").default', Gt;
|
|
9585
9585
|
}
|
|
9586
9586
|
var bo;
|
|
9587
|
-
function
|
|
9587
|
+
function Qh() {
|
|
9588
9588
|
if (bo) return zt;
|
|
9589
9589
|
bo = 1, Object.defineProperty(zt, "__esModule", { value: !0 });
|
|
9590
|
-
const e = X(), t = te(), r =
|
|
9590
|
+
const e = X(), t = te(), r = Jh(), s = {
|
|
9591
9591
|
keyword: ["maxLength", "minLength"],
|
|
9592
9592
|
type: "string",
|
|
9593
9593
|
schemaType: "number",
|
|
@@ -9607,7 +9607,7 @@ function Jh() {
|
|
|
9607
9607
|
return zt.default = s, zt;
|
|
9608
9608
|
}
|
|
9609
9609
|
var Kt = {}, _o;
|
|
9610
|
-
function
|
|
9610
|
+
function Xh() {
|
|
9611
9611
|
if (_o) return Kt;
|
|
9612
9612
|
_o = 1, Object.defineProperty(Kt, "__esModule", { value: !0 });
|
|
9613
9613
|
const e = Pe(), t = X(), n = {
|
|
@@ -9627,7 +9627,7 @@ function Qh() {
|
|
|
9627
9627
|
return Kt.default = n, Kt;
|
|
9628
9628
|
}
|
|
9629
9629
|
var Yt = {}, So;
|
|
9630
|
-
function
|
|
9630
|
+
function Zh() {
|
|
9631
9631
|
if (So) return Yt;
|
|
9632
9632
|
So = 1, Object.defineProperty(Yt, "__esModule", { value: !0 });
|
|
9633
9633
|
const e = X(), r = {
|
|
@@ -9650,7 +9650,7 @@ function Xh() {
|
|
|
9650
9650
|
return Yt.default = r, Yt;
|
|
9651
9651
|
}
|
|
9652
9652
|
var Wt = {}, Ro;
|
|
9653
|
-
function
|
|
9653
|
+
function ep() {
|
|
9654
9654
|
if (Ro) return Wt;
|
|
9655
9655
|
Ro = 1, Object.defineProperty(Wt, "__esModule", { value: !0 });
|
|
9656
9656
|
const e = Pe(), t = X(), r = te(), s = {
|
|
@@ -9707,7 +9707,7 @@ function Zh() {
|
|
|
9707
9707
|
return Wt.default = s, Wt;
|
|
9708
9708
|
}
|
|
9709
9709
|
var Jt = {}, To;
|
|
9710
|
-
function
|
|
9710
|
+
function tp() {
|
|
9711
9711
|
if (To) return Jt;
|
|
9712
9712
|
To = 1, Object.defineProperty(Jt, "__esModule", { value: !0 });
|
|
9713
9713
|
const e = X(), r = {
|
|
@@ -9737,7 +9737,7 @@ function Gn() {
|
|
|
9737
9737
|
return e.code = 'require("ajv/dist/runtime/equal").default', Xt.default = e, Xt;
|
|
9738
9738
|
}
|
|
9739
9739
|
var Ao;
|
|
9740
|
-
function
|
|
9740
|
+
function rp() {
|
|
9741
9741
|
if (Ao) return Qt;
|
|
9742
9742
|
Ao = 1, Object.defineProperty(Qt, "__esModule", { value: !0 });
|
|
9743
9743
|
const e = Ir(), t = X(), r = te(), n = Gn(), o = {
|
|
@@ -9781,7 +9781,7 @@ function tp() {
|
|
|
9781
9781
|
return Qt.default = o, Qt;
|
|
9782
9782
|
}
|
|
9783
9783
|
var Zt = {}, No;
|
|
9784
|
-
function
|
|
9784
|
+
function np() {
|
|
9785
9785
|
if (No) return Zt;
|
|
9786
9786
|
No = 1, Object.defineProperty(Zt, "__esModule", { value: !0 });
|
|
9787
9787
|
const e = X(), t = te(), r = Gn(), s = {
|
|
@@ -9799,7 +9799,7 @@ function rp() {
|
|
|
9799
9799
|
return Zt.default = s, Zt;
|
|
9800
9800
|
}
|
|
9801
9801
|
var er = {}, $o;
|
|
9802
|
-
function
|
|
9802
|
+
function sp() {
|
|
9803
9803
|
if ($o) return er;
|
|
9804
9804
|
$o = 1, Object.defineProperty(er, "__esModule", { value: !0 });
|
|
9805
9805
|
const e = X(), t = te(), r = Gn(), s = {
|
|
@@ -9839,10 +9839,10 @@ function np() {
|
|
|
9839
9839
|
return er.default = s, er;
|
|
9840
9840
|
}
|
|
9841
9841
|
var Po;
|
|
9842
|
-
function
|
|
9842
|
+
function op() {
|
|
9843
9843
|
if (Po) return Vt;
|
|
9844
9844
|
Po = 1, Object.defineProperty(Vt, "__esModule", { value: !0 });
|
|
9845
|
-
const e =
|
|
9845
|
+
const e = Yh(), t = Wh(), r = Qh(), n = Xh(), s = Zh(), o = ep(), a = tp(), i = rp(), c = np(), d = sp(), l = [
|
|
9846
9846
|
// number
|
|
9847
9847
|
e.default,
|
|
9848
9848
|
t.default,
|
|
@@ -9941,7 +9941,7 @@ function Ja() {
|
|
|
9941
9941
|
return rt.validateTuple = s, rt.default = n, rt;
|
|
9942
9942
|
}
|
|
9943
9943
|
var Co;
|
|
9944
|
-
function
|
|
9944
|
+
function ap() {
|
|
9945
9945
|
if (Co) return rr;
|
|
9946
9946
|
Co = 1, Object.defineProperty(rr, "__esModule", { value: !0 });
|
|
9947
9947
|
const e = Ja(), t = {
|
|
@@ -9954,7 +9954,7 @@ function op() {
|
|
|
9954
9954
|
return rr.default = t, rr;
|
|
9955
9955
|
}
|
|
9956
9956
|
var nr = {}, Lo;
|
|
9957
|
-
function
|
|
9957
|
+
function ip() {
|
|
9958
9958
|
if (Lo) return nr;
|
|
9959
9959
|
Lo = 1, Object.defineProperty(nr, "__esModule", { value: !0 });
|
|
9960
9960
|
const e = X(), t = te(), r = Pe(), n = Wa(), o = {
|
|
@@ -9974,7 +9974,7 @@ function ap() {
|
|
|
9974
9974
|
return nr.default = o, nr;
|
|
9975
9975
|
}
|
|
9976
9976
|
var sr = {}, ko;
|
|
9977
|
-
function
|
|
9977
|
+
function cp() {
|
|
9978
9978
|
if (ko) return sr;
|
|
9979
9979
|
ko = 1, Object.defineProperty(sr, "__esModule", { value: !0 });
|
|
9980
9980
|
const e = X(), t = te(), n = {
|
|
@@ -10031,7 +10031,7 @@ function ip() {
|
|
|
10031
10031
|
return sr.default = n, sr;
|
|
10032
10032
|
}
|
|
10033
10033
|
var yn = {}, xo;
|
|
10034
|
-
function
|
|
10034
|
+
function up() {
|
|
10035
10035
|
return xo || (xo = 1, (function(e) {
|
|
10036
10036
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.validateSchemaDeps = e.validatePropertyDeps = e.error = void 0;
|
|
10037
10037
|
const t = X(), r = te(), n = Pe();
|
|
@@ -10104,7 +10104,7 @@ function cp() {
|
|
|
10104
10104
|
})(yn)), yn;
|
|
10105
10105
|
}
|
|
10106
10106
|
var or = {}, Uo;
|
|
10107
|
-
function
|
|
10107
|
+
function lp() {
|
|
10108
10108
|
if (Uo) return or;
|
|
10109
10109
|
Uo = 1, Object.defineProperty(or, "__esModule", { value: !0 });
|
|
10110
10110
|
const e = X(), t = te(), n = {
|
|
@@ -10207,7 +10207,7 @@ function Qa() {
|
|
|
10207
10207
|
return ar.default = o, ar;
|
|
10208
10208
|
}
|
|
10209
10209
|
var ir = {}, Mo;
|
|
10210
|
-
function
|
|
10210
|
+
function dp() {
|
|
10211
10211
|
if (Mo) return ir;
|
|
10212
10212
|
Mo = 1, Object.defineProperty(ir, "__esModule", { value: !0 });
|
|
10213
10213
|
const e = Hr(), t = Pe(), r = te(), n = Qa(), s = {
|
|
@@ -10242,7 +10242,7 @@ function lp() {
|
|
|
10242
10242
|
return ir.default = s, ir;
|
|
10243
10243
|
}
|
|
10244
10244
|
var cr = {}, jo;
|
|
10245
|
-
function
|
|
10245
|
+
function fp() {
|
|
10246
10246
|
if (jo) return cr;
|
|
10247
10247
|
jo = 1, Object.defineProperty(cr, "__esModule", { value: !0 });
|
|
10248
10248
|
const e = Pe(), t = X(), r = te(), n = te(), s = {
|
|
@@ -10283,7 +10283,7 @@ function dp() {
|
|
|
10283
10283
|
return cr.default = s, cr;
|
|
10284
10284
|
}
|
|
10285
10285
|
var ur = {}, Fo;
|
|
10286
|
-
function
|
|
10286
|
+
function hp() {
|
|
10287
10287
|
if (Fo) return ur;
|
|
10288
10288
|
Fo = 1, Object.defineProperty(ur, "__esModule", { value: !0 });
|
|
10289
10289
|
const e = te(), t = {
|
|
@@ -10309,7 +10309,7 @@ function fp() {
|
|
|
10309
10309
|
return ur.default = t, ur;
|
|
10310
10310
|
}
|
|
10311
10311
|
var lr = {}, Vo;
|
|
10312
|
-
function
|
|
10312
|
+
function pp() {
|
|
10313
10313
|
if (Vo) return lr;
|
|
10314
10314
|
Vo = 1, Object.defineProperty(lr, "__esModule", { value: !0 });
|
|
10315
10315
|
const t = {
|
|
@@ -10322,7 +10322,7 @@ function hp() {
|
|
|
10322
10322
|
return lr.default = t, lr;
|
|
10323
10323
|
}
|
|
10324
10324
|
var dr = {}, Ho;
|
|
10325
|
-
function
|
|
10325
|
+
function mp() {
|
|
10326
10326
|
if (Ho) return dr;
|
|
10327
10327
|
Ho = 1, Object.defineProperty(dr, "__esModule", { value: !0 });
|
|
10328
10328
|
const e = X(), t = te(), n = {
|
|
@@ -10358,7 +10358,7 @@ function pp() {
|
|
|
10358
10358
|
return dr.default = n, dr;
|
|
10359
10359
|
}
|
|
10360
10360
|
var fr = {}, Bo;
|
|
10361
|
-
function
|
|
10361
|
+
function gp() {
|
|
10362
10362
|
if (Bo) return fr;
|
|
10363
10363
|
Bo = 1, Object.defineProperty(fr, "__esModule", { value: !0 });
|
|
10364
10364
|
const e = te(), t = {
|
|
@@ -10380,7 +10380,7 @@ function mp() {
|
|
|
10380
10380
|
return fr.default = t, fr;
|
|
10381
10381
|
}
|
|
10382
10382
|
var hr = {}, zo;
|
|
10383
|
-
function
|
|
10383
|
+
function yp() {
|
|
10384
10384
|
if (zo) return hr;
|
|
10385
10385
|
zo = 1, Object.defineProperty(hr, "__esModule", { value: !0 });
|
|
10386
10386
|
const e = X(), t = te(), n = {
|
|
@@ -10427,7 +10427,7 @@ function gp() {
|
|
|
10427
10427
|
return hr.default = n, hr;
|
|
10428
10428
|
}
|
|
10429
10429
|
var pr = {}, Go;
|
|
10430
|
-
function
|
|
10430
|
+
function vp() {
|
|
10431
10431
|
if (Go) return pr;
|
|
10432
10432
|
Go = 1, Object.defineProperty(pr, "__esModule", { value: !0 });
|
|
10433
10433
|
const e = te(), t = {
|
|
@@ -10440,10 +10440,10 @@ function yp() {
|
|
|
10440
10440
|
return pr.default = t, pr;
|
|
10441
10441
|
}
|
|
10442
10442
|
var Ko;
|
|
10443
|
-
function
|
|
10443
|
+
function wp() {
|
|
10444
10444
|
if (Ko) return tr;
|
|
10445
10445
|
Ko = 1, Object.defineProperty(tr, "__esModule", { value: !0 });
|
|
10446
|
-
const e = Wa(), t =
|
|
10446
|
+
const e = Wa(), t = ap(), r = Ja(), n = ip(), s = cp(), o = up(), a = lp(), i = Qa(), c = dp(), d = fp(), l = hp(), m = pp(), y = mp(), S = gp(), v = yp(), g = vp();
|
|
10447
10447
|
function f(h = !1) {
|
|
10448
10448
|
const u = [
|
|
10449
10449
|
// any
|
|
@@ -10465,7 +10465,7 @@ function vp() {
|
|
|
10465
10465
|
return tr.default = f, tr;
|
|
10466
10466
|
}
|
|
10467
10467
|
var mr = {}, gr = {}, Yo;
|
|
10468
|
-
function
|
|
10468
|
+
function Ep() {
|
|
10469
10469
|
if (Yo) return gr;
|
|
10470
10470
|
Yo = 1, Object.defineProperty(gr, "__esModule", { value: !0 });
|
|
10471
10471
|
const e = X(), r = {
|
|
@@ -10534,14 +10534,14 @@ function wp() {
|
|
|
10534
10534
|
return gr.default = r, gr;
|
|
10535
10535
|
}
|
|
10536
10536
|
var Wo;
|
|
10537
|
-
function
|
|
10537
|
+
function bp() {
|
|
10538
10538
|
if (Wo) return mr;
|
|
10539
10539
|
Wo = 1, Object.defineProperty(mr, "__esModule", { value: !0 });
|
|
10540
|
-
const t = [
|
|
10540
|
+
const t = [Ep().default];
|
|
10541
10541
|
return mr.default = t, mr;
|
|
10542
10542
|
}
|
|
10543
10543
|
var He = {}, Jo;
|
|
10544
|
-
function
|
|
10544
|
+
function _p() {
|
|
10545
10545
|
return Jo || (Jo = 1, Object.defineProperty(He, "__esModule", { value: !0 }), He.contentVocabulary = He.metadataVocabulary = void 0, He.metadataVocabulary = [
|
|
10546
10546
|
"title",
|
|
10547
10547
|
"description",
|
|
@@ -10557,10 +10557,10 @@ function bp() {
|
|
|
10557
10557
|
]), He;
|
|
10558
10558
|
}
|
|
10559
10559
|
var Qo;
|
|
10560
|
-
function
|
|
10560
|
+
function Sp() {
|
|
10561
10561
|
if (Qo) return Mt;
|
|
10562
10562
|
Qo = 1, Object.defineProperty(Mt, "__esModule", { value: !0 });
|
|
10563
|
-
const e =
|
|
10563
|
+
const e = Kh(), t = op(), r = wp(), n = bp(), s = _p(), o = [
|
|
10564
10564
|
e.default,
|
|
10565
10565
|
t.default,
|
|
10566
10566
|
(0, r.default)(),
|
|
@@ -10571,7 +10571,7 @@ function _p() {
|
|
|
10571
10571
|
return Mt.default = o, Mt;
|
|
10572
10572
|
}
|
|
10573
10573
|
var yr = {}, vt = {}, Xo;
|
|
10574
|
-
function
|
|
10574
|
+
function Rp() {
|
|
10575
10575
|
if (Xo) return vt;
|
|
10576
10576
|
Xo = 1, Object.defineProperty(vt, "__esModule", { value: !0 }), vt.DiscrError = void 0;
|
|
10577
10577
|
var e;
|
|
@@ -10580,10 +10580,10 @@ function Sp() {
|
|
|
10580
10580
|
})(e || (vt.DiscrError = e = {})), vt;
|
|
10581
10581
|
}
|
|
10582
10582
|
var Zo;
|
|
10583
|
-
function
|
|
10583
|
+
function Tp() {
|
|
10584
10584
|
if (Zo) return yr;
|
|
10585
10585
|
Zo = 1, Object.defineProperty(yr, "__esModule", { value: !0 });
|
|
10586
|
-
const e = X(), t =
|
|
10586
|
+
const e = X(), t = Rp(), r = zn(), n = Br(), s = te(), a = {
|
|
10587
10587
|
keyword: "discriminator",
|
|
10588
10588
|
type: "object",
|
|
10589
10589
|
schemaType: "object",
|
|
@@ -10656,20 +10656,20 @@ function Rp() {
|
|
|
10656
10656
|
};
|
|
10657
10657
|
return yr.default = a, yr;
|
|
10658
10658
|
}
|
|
10659
|
-
const
|
|
10660
|
-
$schema:
|
|
10661
|
-
$id:
|
|
10662
|
-
title:
|
|
10663
|
-
definitions:
|
|
10664
|
-
type:
|
|
10665
|
-
properties:
|
|
10659
|
+
const Op = "http://json-schema.org/draft-07/schema#", Ap = "http://json-schema.org/draft-07/schema#", Np = "Core schema meta-schema", $p = { 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: [] } }, Pp = ["object", "boolean"], Ip = { $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: "#" } }, Dp = {
|
|
10660
|
+
$schema: Op,
|
|
10661
|
+
$id: Ap,
|
|
10662
|
+
title: Np,
|
|
10663
|
+
definitions: $p,
|
|
10664
|
+
type: Pp,
|
|
10665
|
+
properties: Ip,
|
|
10666
10666
|
default: !0
|
|
10667
10667
|
};
|
|
10668
10668
|
var ea;
|
|
10669
|
-
function
|
|
10669
|
+
function Cp() {
|
|
10670
10670
|
return ea || (ea = 1, (function(e, t) {
|
|
10671
10671
|
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;
|
|
10672
|
-
const r =
|
|
10672
|
+
const r = Bh(), n = Sp(), s = Tp(), o = Dp, a = ["/properties"], i = "http://json-schema.org/draft-07/schema";
|
|
10673
10673
|
class c extends r.default {
|
|
10674
10674
|
_addVocabularies() {
|
|
10675
10675
|
super._addVocabularies(), n.default.forEach((v) => this.addVocabulary(v)), this.opts.discriminator && this.addKeyword(s.default);
|
|
@@ -10713,86 +10713,86 @@ function Dp() {
|
|
|
10713
10713
|
} });
|
|
10714
10714
|
})(Lt, Lt.exports)), Lt.exports;
|
|
10715
10715
|
}
|
|
10716
|
-
var
|
|
10717
|
-
const
|
|
10716
|
+
var Lp = Cp();
|
|
10717
|
+
const kp = /* @__PURE__ */ Oh(Lp), ta = {
|
|
10718
10718
|
CONFIG_NOT_FOUND: "CONFIG_ERROR_NOT_FOUND",
|
|
10719
10719
|
VALIDATION_FAILED: "CONFIG_ERROR_VALIDATION_FAILED"
|
|
10720
|
-
},
|
|
10721
|
-
const r = await
|
|
10720
|
+
}, Cy = async (e, t) => {
|
|
10721
|
+
const r = await xp(e);
|
|
10722
10722
|
if (!r)
|
|
10723
10723
|
throw new Error(ta.CONFIG_NOT_FOUND);
|
|
10724
|
-
if (!await
|
|
10724
|
+
if (!await Up(r, t))
|
|
10725
10725
|
throw new Error(ta.VALIDATION_FAILED);
|
|
10726
10726
|
return r;
|
|
10727
|
-
},
|
|
10727
|
+
}, xp = async (e) => await z(e), Up = async (e, t) => new kp().compile(t)(e), qp = (e) => Z + `/form/${e}?v=custom:(resources:(value))`, Mp = (e) => {
|
|
10728
10728
|
const t = Z + "/bahmniie/form/latestPublishedForms";
|
|
10729
10729
|
return e ? t + `?episodeUuid=${e}` : t;
|
|
10730
|
-
},
|
|
10730
|
+
}, Ly = (e) => Z + `/user/${e}?v=full`, jp = (e, t, r, n) => Z + `/bahmniie/form/translations?formName=${encodeURIComponent(e)}&formUuid=${t}&formVersion=${r}&locale=${n}`, _r = "Bahmni", Fp = (e, t, r) => {
|
|
10731
10731
|
let s = Z + "/bahmnicore/patient/" + e + "/forms";
|
|
10732
10732
|
return r ? s += `?patientProgramUuid=${r}` : t && (s += `?numberOfVisits=${t}`), s;
|
|
10733
|
-
},
|
|
10733
|
+
}, Vp = (e, t) => {
|
|
10734
10734
|
const r = t.join(",");
|
|
10735
10735
|
return `${le}/Observation?patient=${e}&code=${r}&_include=Observation:has-member&_sort=-_lastUpdated`;
|
|
10736
|
-
},
|
|
10736
|
+
}, Hp = (e, t) => {
|
|
10737
10737
|
const r = t.join(",");
|
|
10738
10738
|
return `${le}/Observation?patient=${e}&code=${r}&_include=Observation:has-member&_include=Observation:encounter&_sort=-_lastUpdated`;
|
|
10739
10739
|
};
|
|
10740
|
-
async function
|
|
10741
|
-
const r = Fp(e, t);
|
|
10742
|
-
return await z(r);
|
|
10743
|
-
}
|
|
10744
|
-
async function Ly(e, t) {
|
|
10740
|
+
async function Bp(e, t) {
|
|
10745
10741
|
const r = Vp(e, t);
|
|
10746
10742
|
return await z(r);
|
|
10747
10743
|
}
|
|
10748
10744
|
async function ky(e, t) {
|
|
10749
|
-
|
|
10745
|
+
const r = Hp(e, t);
|
|
10746
|
+
return await z(r);
|
|
10750
10747
|
}
|
|
10751
|
-
|
|
10752
|
-
|
|
10748
|
+
async function xy(e, t) {
|
|
10749
|
+
return (await Bp(e, t)).entry?.filter((s) => s.resource?.resourceType === "Observation").map((s) => s.resource) ?? [];
|
|
10750
|
+
}
|
|
10751
|
+
const zp = (e) => Z + `/provider?user=${e}&v=custom:(uuid,display,person)`;
|
|
10752
|
+
async function Uy(e) {
|
|
10753
10753
|
const t = await z(
|
|
10754
|
-
|
|
10754
|
+
zp(e)
|
|
10755
10755
|
);
|
|
10756
10756
|
return !t.results || t.results.length === 0 ? null : t.results[0];
|
|
10757
10757
|
}
|
|
10758
|
-
const
|
|
10759
|
-
async function Kp(e) {
|
|
10760
|
-
return await z(zp(e));
|
|
10761
|
-
}
|
|
10758
|
+
const Gp = (e) => le + `/Encounter?subject:Patient=${e}&_tag=visit`, Kp = (e) => `${le}/Observation/$fetch-all?encounter=${e}`;
|
|
10762
10759
|
async function Yp(e) {
|
|
10763
|
-
return
|
|
10760
|
+
return await z(Gp(e));
|
|
10764
10761
|
}
|
|
10765
10762
|
async function Wp(e) {
|
|
10766
|
-
return (await Yp(e)).
|
|
10763
|
+
return (await Yp(e)).entry?.map((r) => r.resource).filter((r) => r !== void 0) ?? [];
|
|
10767
10764
|
}
|
|
10768
|
-
async function
|
|
10765
|
+
async function Jp(e) {
|
|
10766
|
+
return (await Wp(e)).find((r) => !r.period?.end) ?? null;
|
|
10767
|
+
}
|
|
10768
|
+
async function qy(e) {
|
|
10769
10769
|
return await z(
|
|
10770
|
-
|
|
10770
|
+
Kp(e)
|
|
10771
10771
|
);
|
|
10772
10772
|
}
|
|
10773
|
-
const
|
|
10774
|
-
async function
|
|
10773
|
+
const My = (e, t) => e?.length === 0 ? !1 : t?.length === 0, Qp = le + "/Encounter", Xp = Z + "/systemsetting/bahmni.encountersession.duration", Zp = "d34fe3ab-5e07-11ef-8f7c-0242ac120002";
|
|
10774
|
+
async function em(e) {
|
|
10775
10775
|
const t = new URLSearchParams();
|
|
10776
10776
|
Object.entries(e).forEach(([s, o]) => {
|
|
10777
10777
|
o && t.append(s, o);
|
|
10778
10778
|
});
|
|
10779
|
-
const r = `${
|
|
10779
|
+
const r = `${Qp}?${t.toString()}`;
|
|
10780
10780
|
return (await z(r)).entry?.map((s) => s.resource).filter((s) => s !== void 0) ?? [];
|
|
10781
10781
|
}
|
|
10782
|
-
async function
|
|
10782
|
+
async function tm() {
|
|
10783
10783
|
try {
|
|
10784
10784
|
const e = await z(
|
|
10785
|
-
|
|
10785
|
+
Xp
|
|
10786
10786
|
), t = Number(e.value);
|
|
10787
10787
|
return !isNaN(t) && t > 0 ? t : 60;
|
|
10788
10788
|
} catch {
|
|
10789
10789
|
return 30;
|
|
10790
10790
|
}
|
|
10791
10791
|
}
|
|
10792
|
-
async function
|
|
10792
|
+
async function rm(e, t) {
|
|
10793
10793
|
if (!e.length) return null;
|
|
10794
10794
|
try {
|
|
10795
|
-
const r = await
|
|
10795
|
+
const r = await Jp(t);
|
|
10796
10796
|
return r ? e.find((n) => {
|
|
10797
10797
|
const s = n.partOf?.reference?.split("/")[1];
|
|
10798
10798
|
return r.id === s;
|
|
@@ -10801,25 +10801,25 @@ async function tm(e, t) {
|
|
|
10801
10801
|
return null;
|
|
10802
10802
|
}
|
|
10803
10803
|
}
|
|
10804
|
-
async function
|
|
10804
|
+
async function jy(e, t, r) {
|
|
10805
10805
|
try {
|
|
10806
10806
|
if (!e) return null;
|
|
10807
|
-
const n = r ?? await
|
|
10807
|
+
const n = r ?? await tm(), o = `ge${new Date(Date.now() - n * 60 * 1e3).toISOString()}`, a = {
|
|
10808
10808
|
patient: e,
|
|
10809
10809
|
_tag: "encounter",
|
|
10810
10810
|
_lastUpdated: o,
|
|
10811
|
-
type:
|
|
10811
|
+
type: Zp
|
|
10812
10812
|
};
|
|
10813
10813
|
t && (a.participant = t);
|
|
10814
|
-
const i = await
|
|
10815
|
-
return i.length === 0 ? null : await
|
|
10814
|
+
const i = await em(a);
|
|
10815
|
+
return i.length === 0 ? null : await rm(i, e);
|
|
10816
10816
|
} catch {
|
|
10817
10817
|
return null;
|
|
10818
10818
|
}
|
|
10819
10819
|
}
|
|
10820
|
-
const
|
|
10821
|
-
async function
|
|
10822
|
-
const t = e.join(","), r = await z(
|
|
10820
|
+
const nm = (e) => le + `/EpisodeOfCare?_revinclude=Encounter:episode-of-care&_id=${e}`;
|
|
10821
|
+
async function Fy(e) {
|
|
10822
|
+
const t = e.join(","), r = await z(nm(t));
|
|
10823
10823
|
if (r.total === 0)
|
|
10824
10824
|
throw new Error(
|
|
10825
10825
|
"No episode of care found for the provided UUIDs: " + e.join(", ")
|
|
@@ -10831,13 +10831,13 @@ async function jy(e) {
|
|
|
10831
10831
|
c && s.add(c);
|
|
10832
10832
|
}), { visitUuids: Array.from(s), encounterUuids: o };
|
|
10833
10833
|
}
|
|
10834
|
-
const vn = /* @__PURE__ */ new Map(),
|
|
10834
|
+
const vn = /* @__PURE__ */ new Map(), sm = async (e) => {
|
|
10835
10835
|
if (vn.has(e))
|
|
10836
10836
|
return vn.get(e) ?? null;
|
|
10837
10837
|
const t = await z(Ia(e)), r = t ? String(t) : null;
|
|
10838
10838
|
return vn.set(e, r), r;
|
|
10839
|
-
},
|
|
10840
|
-
if (!await
|
|
10839
|
+
}, om = async () => await sm(qu) === "true", am = async (e, t, r, n = nt.CLINICAL) => {
|
|
10840
|
+
if (!await om())
|
|
10841
10841
|
return { logged: !1 };
|
|
10842
10842
|
const o = An[t];
|
|
10843
10843
|
if (!o)
|
|
@@ -10854,21 +10854,21 @@ const vn = /* @__PURE__ */ new Map(), nm = async (e) => {
|
|
|
10854
10854
|
module: n
|
|
10855
10855
|
};
|
|
10856
10856
|
return await Me(wl, a), { logged: !0 };
|
|
10857
|
-
},
|
|
10858
|
-
await
|
|
10857
|
+
}, Vy = () => vl(async (t) => {
|
|
10858
|
+
await am(
|
|
10859
10859
|
t.patientUuid,
|
|
10860
10860
|
t.eventType,
|
|
10861
10861
|
t.messageParams,
|
|
10862
10862
|
t.module
|
|
10863
10863
|
);
|
|
10864
|
-
}),
|
|
10864
|
+
}), Hy = async () => {
|
|
10865
10865
|
try {
|
|
10866
10866
|
return (await z(Du)).user.privileges;
|
|
10867
10867
|
} catch (e) {
|
|
10868
10868
|
const { message: t } = Rr(e);
|
|
10869
10869
|
throw new Error(t);
|
|
10870
10870
|
}
|
|
10871
|
-
},
|
|
10871
|
+
}, By = (e, t) => {
|
|
10872
10872
|
if (!e || e.length === 0)
|
|
10873
10873
|
return !1;
|
|
10874
10874
|
if (!t || t.length === 0)
|
|
@@ -10877,17 +10877,17 @@ const vn = /* @__PURE__ */ new Map(), nm = async (e) => {
|
|
|
10877
10877
|
return e.some(
|
|
10878
10878
|
(n) => r.includes(n.name)
|
|
10879
10879
|
);
|
|
10880
|
-
},
|
|
10880
|
+
}, im = async (e) => {
|
|
10881
10881
|
let t;
|
|
10882
10882
|
e && e.length > 0 && (t = e.join(","));
|
|
10883
|
-
const r = await fetch(
|
|
10883
|
+
const r = await fetch(Mp(t));
|
|
10884
10884
|
if (!r.ok)
|
|
10885
10885
|
throw new Error(
|
|
10886
10886
|
`HTTP error! status for latestPublishedForms: ${r.status}`
|
|
10887
10887
|
);
|
|
10888
10888
|
const n = await r.json();
|
|
10889
10889
|
return Array.isArray(n) ? n : [];
|
|
10890
|
-
},
|
|
10890
|
+
}, cm = (e, t) => {
|
|
10891
10891
|
const r = JSON.parse(e.nameTranslation);
|
|
10892
10892
|
if (Array.isArray(r) && r.length > 0) {
|
|
10893
10893
|
const n = r.find(
|
|
@@ -10897,8 +10897,8 @@ const vn = /* @__PURE__ */ new Map(), nm = async (e) => {
|
|
|
10897
10897
|
return n.display;
|
|
10898
10898
|
}
|
|
10899
10899
|
return e.name;
|
|
10900
|
-
},
|
|
10901
|
-
const r =
|
|
10900
|
+
}, um = (e, t) => {
|
|
10901
|
+
const r = cm(e, t);
|
|
10902
10902
|
return {
|
|
10903
10903
|
uuid: e.uuid,
|
|
10904
10904
|
name: r,
|
|
@@ -10908,13 +10908,13 @@ const vn = /* @__PURE__ */ new Map(), nm = async (e) => {
|
|
|
10908
10908
|
editable: n.editable
|
|
10909
10909
|
}))
|
|
10910
10910
|
};
|
|
10911
|
-
},
|
|
10912
|
-
const t = await
|
|
10911
|
+
}, zy = async (e) => {
|
|
10912
|
+
const t = await im(e), r = qr();
|
|
10913
10913
|
return t.map(
|
|
10914
|
-
(n) =>
|
|
10914
|
+
(n) => um(n, r)
|
|
10915
10915
|
);
|
|
10916
|
-
},
|
|
10917
|
-
const t = await fetch(
|
|
10916
|
+
}, Gy = async (e) => {
|
|
10917
|
+
const t = await fetch(qp(e));
|
|
10918
10918
|
if (!t.ok)
|
|
10919
10919
|
throw new Error(
|
|
10920
10920
|
`Failed to fetch form metadata for ${e}: ${t.status}`
|
|
@@ -10925,7 +10925,7 @@ const vn = /* @__PURE__ */ new Map(), nm = async (e) => {
|
|
|
10925
10925
|
const n = JSON.parse(r.resources[0].value), s = qr(), o = r.name ?? n.name, a = r.uuid ?? n.uuid, i = r.version ?? n.version ?? "1", c = r.published ?? !1;
|
|
10926
10926
|
let d = { labels: {}, concepts: {} };
|
|
10927
10927
|
if (n && typeof n == "object" && "translationsUrl" in n && typeof n.translationsUrl == "string") {
|
|
10928
|
-
const l =
|
|
10928
|
+
const l = jp(
|
|
10929
10929
|
o,
|
|
10930
10930
|
a,
|
|
10931
10931
|
i,
|
|
@@ -10947,10 +10947,10 @@ const vn = /* @__PURE__ */ new Map(), nm = async (e) => {
|
|
|
10947
10947
|
schema: n,
|
|
10948
10948
|
translations: d
|
|
10949
10949
|
};
|
|
10950
|
-
},
|
|
10950
|
+
}, Ky = async (e, t, r) => {
|
|
10951
10951
|
let n;
|
|
10952
10952
|
t && t.length > 0 && (n = t.join(","));
|
|
10953
|
-
const s =
|
|
10953
|
+
const s = Fp(e, r, n), o = await z(s);
|
|
10954
10954
|
return Array.isArray(o) ? o : [];
|
|
10955
10955
|
};
|
|
10956
10956
|
function Xa(e) {
|
|
@@ -10992,7 +10992,7 @@ function ei(e, t) {
|
|
|
10992
10992
|
};
|
|
10993
10993
|
return n(r.controls);
|
|
10994
10994
|
}
|
|
10995
|
-
function
|
|
10995
|
+
function Yy(e, t) {
|
|
10996
10996
|
if (!e.controls || e.controls.length === 0)
|
|
10997
10997
|
return [];
|
|
10998
10998
|
const r = [], n = (/* @__PURE__ */ new Date()).toISOString();
|
|
@@ -11037,7 +11037,7 @@ function Ky(e, t) {
|
|
|
11037
11037
|
s.interpretation && (a.interpretation = s.interpretation), s.comment && (a.comment = s.comment), r.push(a);
|
|
11038
11038
|
}), r;
|
|
11039
11039
|
}
|
|
11040
|
-
function
|
|
11040
|
+
function Wy(e, t) {
|
|
11041
11041
|
if (!e || e.length === 0)
|
|
11042
11042
|
return {
|
|
11043
11043
|
controls: [],
|
|
@@ -11053,7 +11053,7 @@ function Yy(e, t) {
|
|
|
11053
11053
|
), o.type = "multiselect";
|
|
11054
11054
|
} else {
|
|
11055
11055
|
let o = n.value;
|
|
11056
|
-
if (typeof n.value == "string" &&
|
|
11056
|
+
if (typeof n.value == "string" && Uf.test(n.value)) {
|
|
11057
11057
|
const i = new Date(n.value);
|
|
11058
11058
|
isNaN(i.getTime()) || (o = i);
|
|
11059
11059
|
}
|
|
@@ -11070,7 +11070,7 @@ function Yy(e, t) {
|
|
|
11070
11070
|
metadata: { formMetadata: t }
|
|
11071
11071
|
};
|
|
11072
11072
|
}
|
|
11073
|
-
function
|
|
11073
|
+
function Jy(e) {
|
|
11074
11074
|
const t = (n) => {
|
|
11075
11075
|
const s = (d) => d == null ? null : typeof d == "string" || typeof d == "number" || typeof d == "boolean" || typeof d == "object" ? d : null, o = n.concept, a = typeof o == "object" && o !== null && "uuid" in o ? o.uuid : o, i = typeof o == "object" && o !== null && "datatype" in o ? o.datatype : void 0, c = {
|
|
11076
11076
|
concept: {
|
|
@@ -11090,11 +11090,11 @@ function Wy(e) {
|
|
|
11090
11090
|
};
|
|
11091
11091
|
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);
|
|
11092
11092
|
}
|
|
11093
|
-
function
|
|
11093
|
+
function Qy(e) {
|
|
11094
11094
|
if (!(!e || typeof e != "object"))
|
|
11095
11095
|
return "toJS" in e && typeof e.toJS == "function" ? e.toJS() : e;
|
|
11096
11096
|
}
|
|
11097
|
-
function
|
|
11097
|
+
function Xy(e, t) {
|
|
11098
11098
|
!e || !Array.isArray(e.children) || e.children.forEach((r) => {
|
|
11099
11099
|
r && typeof r == "object" && ti(
|
|
11100
11100
|
r,
|
|
@@ -11124,7 +11124,7 @@ function ti(e, t) {
|
|
|
11124
11124
|
);
|
|
11125
11125
|
});
|
|
11126
11126
|
}
|
|
11127
|
-
const
|
|
11127
|
+
const lm = Z + "/bahmnicore/diseaseSummaryData?", Zy = async (e, t, r, n) => {
|
|
11128
11128
|
const s = new URLSearchParams({
|
|
11129
11129
|
groupBy: n,
|
|
11130
11130
|
latestCount: t.toString(),
|
|
@@ -11133,9 +11133,9 @@ const um = Z + "/bahmnicore/diseaseSummaryData?", Xy = async (e, t, r, n) => {
|
|
|
11133
11133
|
r.forEach((a) => {
|
|
11134
11134
|
s.append("obsConcepts", a);
|
|
11135
11135
|
});
|
|
11136
|
-
const o =
|
|
11136
|
+
const o = lm + s.toString();
|
|
11137
11137
|
return z(o);
|
|
11138
|
-
}, ri = "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)",
|
|
11138
|
+
}, ri = "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)", dm = (e) => `${Z}/bahmniprogramenrollment?patient=${e}&v=${ri}`, ni = (e) => `${Z}/bahmniprogramenrollment/${e}`, fm = (e) => `${ni(e)}?v=${ri}`, ev = async (e) => await z(dm(e)), tv = async (e) => await z(fm(e)), rv = async (e, t) => {
|
|
11139
11139
|
const r = {
|
|
11140
11140
|
uuid: e,
|
|
11141
11141
|
states: [
|
|
@@ -11149,7 +11149,7 @@ const um = Z + "/bahmnicore/diseaseSummaryData?", Xy = async (e, t, r, n) => {
|
|
|
11149
11149
|
r
|
|
11150
11150
|
);
|
|
11151
11151
|
};
|
|
11152
|
-
function
|
|
11152
|
+
function nv(e) {
|
|
11153
11153
|
if (e.states.length === 0)
|
|
11154
11154
|
return null;
|
|
11155
11155
|
let t;
|
|
@@ -11163,9 +11163,9 @@ function rv(e) {
|
|
|
11163
11163
|
t = n[n.length - 1];
|
|
11164
11164
|
} else
|
|
11165
11165
|
t = e.states.find((r) => r.endDate === null);
|
|
11166
|
-
return t ?
|
|
11166
|
+
return t ? Tf(t.state.concept.names) ?? t.state.concept.display : null;
|
|
11167
11167
|
}
|
|
11168
|
-
function
|
|
11168
|
+
function sv(e, t) {
|
|
11169
11169
|
if (t.length === 0)
|
|
11170
11170
|
return {};
|
|
11171
11171
|
const r = {};
|
|
@@ -11177,12 +11177,12 @@ function nv(e, t) {
|
|
|
11177
11177
|
}
|
|
11178
11178
|
return r;
|
|
11179
11179
|
}
|
|
11180
|
-
const $n = "consultation:saved",
|
|
11180
|
+
const $n = "consultation:saved", ov = (e) => {
|
|
11181
11181
|
const t = new CustomEvent($n, {
|
|
11182
11182
|
detail: e
|
|
11183
11183
|
});
|
|
11184
11184
|
window.dispatchEvent(t);
|
|
11185
|
-
},
|
|
11185
|
+
}, av = (e, t = []) => {
|
|
11186
11186
|
const r = wn(e);
|
|
11187
11187
|
En(() => {
|
|
11188
11188
|
r.current = e;
|
|
@@ -11195,7 +11195,7 @@ const $n = "consultation:saved", sv = (e) => {
|
|
|
11195
11195
|
window.removeEventListener($n, n);
|
|
11196
11196
|
};
|
|
11197
11197
|
}, t);
|
|
11198
|
-
},
|
|
11198
|
+
}, hm = (e, t) => {
|
|
11199
11199
|
const r = `${le}/DocumentReference?patient=${e}&_sort=-date&_count=100`;
|
|
11200
11200
|
if (t && t.length > 0) {
|
|
11201
11201
|
const n = t.join(",");
|
|
@@ -11203,7 +11203,7 @@ const $n = "consultation:saved", sv = (e) => {
|
|
|
11203
11203
|
}
|
|
11204
11204
|
return r;
|
|
11205
11205
|
};
|
|
11206
|
-
function
|
|
11206
|
+
function pm(e) {
|
|
11207
11207
|
return e.filter((t) => t.resource?.resourceType === "DocumentReference").map((t) => {
|
|
11208
11208
|
const r = t.resource, n = r.masterIdentifier?.value ?? r.id ?? "", s = (r.content ?? []).map((a) => a.attachment).filter((a) => !!a).map((a) => ({ url: a.url ?? "", contentType: a.contentType })), o = s[0];
|
|
11209
11209
|
return {
|
|
@@ -11218,185 +11218,186 @@ function hm(e) {
|
|
|
11218
11218
|
};
|
|
11219
11219
|
});
|
|
11220
11220
|
}
|
|
11221
|
-
async function
|
|
11222
|
-
const r =
|
|
11221
|
+
async function mm(e, t) {
|
|
11222
|
+
const r = hm(e, t);
|
|
11223
11223
|
return z(r);
|
|
11224
11224
|
}
|
|
11225
|
-
async function
|
|
11226
|
-
const n = ((await
|
|
11225
|
+
async function iv(e, t) {
|
|
11226
|
+
const n = ((await mm(e, t)).entry ?? []).filter(
|
|
11227
11227
|
(s) => !!s.resource
|
|
11228
11228
|
);
|
|
11229
|
-
return
|
|
11229
|
+
return pm(n);
|
|
11230
11230
|
}
|
|
11231
11231
|
export {
|
|
11232
|
-
|
|
11233
|
-
|
|
11232
|
+
Pg as APPOINTMENT_IDENTIFIER_SYSTEM,
|
|
11233
|
+
$g as APPOINTMENT_STATUSES,
|
|
11234
11234
|
An as AUDIT_LOG_EVENT_DETAILS,
|
|
11235
|
-
|
|
11236
|
-
|
|
11235
|
+
Lf as AllergySeverity,
|
|
11236
|
+
Cf as AllergyStatus,
|
|
11237
11237
|
ml as AttributeFormat,
|
|
11238
11238
|
gl as AttributeInputType,
|
|
11239
|
-
|
|
11240
|
-
|
|
11241
|
-
|
|
11239
|
+
jm as BAHMNI_HOME_PATH,
|
|
11240
|
+
cy as CONCEPT_DATATYPE_COMPLEX,
|
|
11241
|
+
iy as CONCEPT_DATATYPE_NUMERIC,
|
|
11242
11242
|
$n as CONSULTATION_SAVED_EVENT,
|
|
11243
|
-
|
|
11244
|
-
|
|
11243
|
+
Uf as DATETIME_REGEX_PATTERN,
|
|
11244
|
+
dy as DATE_REGEX_PATTERN,
|
|
11245
11245
|
lf as DEFAULT_DATE_FORMAT,
|
|
11246
11246
|
df as DEFAULT_DATE_FORMAT_STORAGE_KEY,
|
|
11247
|
-
|
|
11248
|
-
|
|
11249
|
-
|
|
11250
|
-
|
|
11251
|
-
|
|
11252
|
-
|
|
11253
|
-
|
|
11254
|
-
|
|
11255
|
-
|
|
11256
|
-
|
|
11257
|
-
kf as
|
|
11258
|
-
|
|
11259
|
-
|
|
11260
|
-
|
|
11261
|
-
|
|
11262
|
-
|
|
11263
|
-
|
|
11247
|
+
hf as DEFAULT_TIME_FORMAT,
|
|
11248
|
+
mf as DURATION_UNIT_TO_DAYS,
|
|
11249
|
+
Zg as FHIR_ENCOUNTER_TYPE_CODE_SYSTEM,
|
|
11250
|
+
ny as FHIR_LAB_ORDER_CONCEPT_TYPE_EXTENSION_URL,
|
|
11251
|
+
oy as FHIR_OBSERVATION_FORM_NAMESPACE_PATH_URL,
|
|
11252
|
+
sy as FHIR_OBSERVATION_INTERPRETATION_SYSTEM,
|
|
11253
|
+
uy as FHIR_OBSERVATION_STATUS_FINAL,
|
|
11254
|
+
ay as FHIR_OBSERVATION_VALUE_ATTACHMENT_URL,
|
|
11255
|
+
ly as FHIR_RESOURCE_TYPE_OBSERVATION,
|
|
11256
|
+
ry as HL7_CONDITION_CATEGORY_CODE_SYSTEM,
|
|
11257
|
+
kf as HL7_CONDITION_CATEGORY_CONDITION_CODE,
|
|
11258
|
+
xf as HL7_CONDITION_CATEGORY_DIAGNOSIS_CODE,
|
|
11259
|
+
ty as HL7_CONDITION_CLINICAL_STATUS_CODE_SYSTEM,
|
|
11260
|
+
ey as HL7_CONDITION_VERIFICATION_STATUS_CODE_SYSTEM,
|
|
11261
|
+
fy as INTERPRETATION_TO_CODE,
|
|
11262
|
+
sg as MAX_NAME_LENGTH,
|
|
11263
|
+
ng as MAX_PATIENT_AGE_YEARS,
|
|
11264
|
+
og as MAX_PHONE_NUMBER_LENGTH,
|
|
11264
11265
|
ke as MedicationStatus,
|
|
11265
11266
|
le as OPENMRS_FHIR_R4,
|
|
11266
11267
|
Z as OPENMRS_REST_V1,
|
|
11267
|
-
|
|
11268
|
-
|
|
11269
|
-
|
|
11270
|
-
|
|
11271
|
-
|
|
11272
|
-
|
|
11273
|
-
|
|
11274
|
-
|
|
11275
|
-
|
|
11276
|
-
|
|
11277
|
-
|
|
11278
|
-
|
|
11279
|
-
|
|
11280
|
-
|
|
11281
|
-
|
|
11268
|
+
Ny as ORDER_TYPE_QUERY_KEY,
|
|
11269
|
+
Ay as PENDING_REPORT_STATUSES,
|
|
11270
|
+
Oy as PROCESSED_REPORT_STATUSES,
|
|
11271
|
+
Ly as USER_PINNED_PREFERENCE_URL,
|
|
11272
|
+
Ug as calculateAge,
|
|
11273
|
+
Hg as calculateEndDate,
|
|
11274
|
+
Mg as calculateOnsetDate,
|
|
11275
|
+
Zm as camelToScreamingSnakeCase,
|
|
11276
|
+
Gm as capitalize,
|
|
11277
|
+
Ag as checkIfActiveVisitExists,
|
|
11278
|
+
Qy as convertImmutableToPlainObject,
|
|
11279
|
+
eg as convertToSentenceCase,
|
|
11280
|
+
fg as createPatient,
|
|
11281
|
+
Ng as createVisitForPatient,
|
|
11282
|
+
Mm as del,
|
|
11282
11283
|
yl as dispatchAuditEvent,
|
|
11283
|
-
|
|
11284
|
-
|
|
11285
|
-
|
|
11286
|
-
|
|
11287
|
-
|
|
11288
|
-
|
|
11289
|
-
|
|
11290
|
-
|
|
11291
|
-
|
|
11292
|
-
|
|
11293
|
-
|
|
11294
|
-
|
|
11295
|
-
|
|
11296
|
-
|
|
11297
|
-
|
|
11284
|
+
ov as dispatchConsultationSaved,
|
|
11285
|
+
Bg as doDateRangesOverlap,
|
|
11286
|
+
sv as extractAttributes,
|
|
11287
|
+
Xy as extractNotesFromFormData,
|
|
11288
|
+
Jg as fetchAndFormatAllergenConcepts,
|
|
11289
|
+
Gy as fetchFormMetadata,
|
|
11290
|
+
gy as fetchMedicationOrdersMetadata,
|
|
11291
|
+
zy as fetchObservationForms,
|
|
11292
|
+
Qg as fetchReactionConcepts,
|
|
11293
|
+
Jm as filterReplacementEntries,
|
|
11294
|
+
jy as findActiveEncounterInSession,
|
|
11295
|
+
jg as formatDateDistance,
|
|
11296
|
+
qg as formatDateTime,
|
|
11297
|
+
Qm as formatUrl,
|
|
11298
|
+
zm as generateId,
|
|
11298
11299
|
z as get,
|
|
11299
|
-
|
|
11300
|
+
Jp as getActiveVisit,
|
|
11300
11301
|
Tl as getActiveVisitByPatient,
|
|
11301
|
-
|
|
11302
|
-
|
|
11303
|
-
|
|
11304
|
-
|
|
11305
|
-
|
|
11306
|
-
|
|
11307
|
-
|
|
11308
|
-
|
|
11302
|
+
mg as getAddressHierarchyEntries,
|
|
11303
|
+
xg as getAllAppointmentServices,
|
|
11304
|
+
If as getAllergies,
|
|
11305
|
+
kg as getAppointmentById,
|
|
11306
|
+
Py as getCategoryUuidFromOrderTypes,
|
|
11307
|
+
Yg as getConceptById,
|
|
11308
|
+
hy as getConditions,
|
|
11309
|
+
Cy as getConfig,
|
|
11309
11310
|
Da as getCookieByName,
|
|
11310
|
-
|
|
11311
|
-
|
|
11312
|
-
|
|
11313
|
-
|
|
11314
|
-
|
|
11315
|
-
|
|
11316
|
-
|
|
11317
|
-
|
|
11318
|
-
|
|
11319
|
-
|
|
11320
|
-
|
|
11321
|
-
|
|
11322
|
-
|
|
11323
|
-
|
|
11311
|
+
Uy as getCurrentProvider,
|
|
11312
|
+
nv as getCurrentStateName,
|
|
11313
|
+
tg as getCurrentUser,
|
|
11314
|
+
Hy as getCurrentUserPrivileges,
|
|
11315
|
+
rg as getDefaultDateFormat,
|
|
11316
|
+
Ry as getDiagnosticReportBundle,
|
|
11317
|
+
Sy as getDiagnosticReports,
|
|
11318
|
+
mm as getDocumentReferences,
|
|
11319
|
+
Fy as getEncountersAndVisitsForEOC,
|
|
11320
|
+
Dy as getExistingServiceRequestsForAllCategories,
|
|
11321
|
+
$y as getFlattenedInvestigations,
|
|
11322
|
+
Vg as getFormattedAge,
|
|
11323
|
+
Xg as getFormattedAllergies,
|
|
11324
|
+
iv as getFormattedDocumentReferences,
|
|
11324
11325
|
Rr as getFormattedError,
|
|
11325
|
-
|
|
11326
|
-
|
|
11327
|
-
|
|
11328
|
-
|
|
11329
|
-
|
|
11330
|
-
|
|
11331
|
-
|
|
11332
|
-
|
|
11326
|
+
ag as getFormattedPatientById,
|
|
11327
|
+
pg as getGenders,
|
|
11328
|
+
dg as getIdentifierData,
|
|
11329
|
+
lg as getIdentifierTypes,
|
|
11330
|
+
Eg as getInputTypeForFormat,
|
|
11331
|
+
_y as getLabInvestigationsBundle,
|
|
11332
|
+
qy as getObservationsBundleByEncounterUuid,
|
|
11333
|
+
Iy as getOrderTypeNames,
|
|
11333
11334
|
Hn as getOrderTypes,
|
|
11334
|
-
|
|
11335
|
-
|
|
11335
|
+
gg as getOrderedAddressHierarchyLevels,
|
|
11336
|
+
Cg as getPastAppointments,
|
|
11336
11337
|
cl as getPatientById,
|
|
11337
|
-
|
|
11338
|
-
|
|
11339
|
-
|
|
11340
|
-
|
|
11341
|
-
|
|
11342
|
-
|
|
11343
|
-
|
|
11344
|
-
|
|
11345
|
-
|
|
11346
|
-
|
|
11347
|
-
|
|
11348
|
-
|
|
11349
|
-
|
|
11350
|
-
|
|
11338
|
+
py as getPatientDiagnoses,
|
|
11339
|
+
Ky as getPatientFormData,
|
|
11340
|
+
ig as getPatientImageAsDataUrl,
|
|
11341
|
+
eh as getPatientMedicationBundle,
|
|
11342
|
+
my as getPatientMedications,
|
|
11343
|
+
xy as getPatientObservations,
|
|
11344
|
+
Bp as getPatientObservationsBundle,
|
|
11345
|
+
ky as getPatientObservationsWithEncounterBundle,
|
|
11346
|
+
yg as getPatientProfile,
|
|
11347
|
+
ev as getPatientPrograms,
|
|
11348
|
+
wy as getPatientRadiologyInvestigationBundle,
|
|
11349
|
+
Ey as getPatientRadiologyInvestigationBundleWithImagingStudy,
|
|
11350
|
+
by as getPatientRadiologyInvestigations,
|
|
11351
|
+
wg as getPersonAttributeTypes,
|
|
11351
11352
|
pl as getPrimaryIdentifierType,
|
|
11352
|
-
|
|
11353
|
-
|
|
11354
|
-
|
|
11353
|
+
Ym as getPriorityByOrder,
|
|
11354
|
+
tv as getProgramByUUID,
|
|
11355
|
+
vg as getRelationshipTypes,
|
|
11355
11356
|
Pt as getServiceRequests,
|
|
11356
|
-
|
|
11357
|
-
|
|
11357
|
+
Fg as getTodayDate,
|
|
11358
|
+
Dg as getUpcomingAppointments,
|
|
11358
11359
|
xn as getUserLoginLocation,
|
|
11359
11360
|
qr as getUserPreferredLocale,
|
|
11360
|
-
|
|
11361
|
-
|
|
11362
|
-
|
|
11363
|
-
|
|
11364
|
-
|
|
11365
|
-
|
|
11366
|
-
|
|
11367
|
-
|
|
11368
|
-
|
|
11369
|
-
|
|
11370
|
-
|
|
11371
|
-
|
|
11372
|
-
|
|
11373
|
-
|
|
11374
|
-
|
|
11375
|
-
|
|
11376
|
-
|
|
11361
|
+
vy as getVaccinations,
|
|
11362
|
+
Xm as getValueType,
|
|
11363
|
+
Og as getVisitTypes,
|
|
11364
|
+
Zy as getVitalFlowSheetData,
|
|
11365
|
+
Wm as groupByDate,
|
|
11366
|
+
By as hasPrivilege,
|
|
11367
|
+
Vm as initAppI18n,
|
|
11368
|
+
Vy as initializeAuditListener,
|
|
11369
|
+
bg as isBooleanFormat,
|
|
11370
|
+
_g as isConceptFormat,
|
|
11371
|
+
Rg as isDateFormat,
|
|
11372
|
+
Sg as isNumberFormat,
|
|
11373
|
+
Km as isStringEmpty,
|
|
11374
|
+
Tg as isTextFormat,
|
|
11375
|
+
am as logAuditEvent,
|
|
11376
|
+
Fm as normalizeTranslationKey,
|
|
11377
|
+
Gg as notificationService,
|
|
11377
11378
|
Mu as parseQueryParams,
|
|
11378
|
-
|
|
11379
|
+
qm as patch,
|
|
11379
11380
|
Me as post,
|
|
11380
|
-
|
|
11381
|
-
|
|
11382
|
-
|
|
11383
|
-
|
|
11384
|
-
|
|
11381
|
+
Um as put,
|
|
11382
|
+
Bm as refreshQueries,
|
|
11383
|
+
Ig as searchAppointmentsByAttribute,
|
|
11384
|
+
Wg as searchConceptByName,
|
|
11385
|
+
Kg as searchConcepts,
|
|
11385
11386
|
br as searchFHIRConcepts,
|
|
11386
|
-
|
|
11387
|
-
|
|
11388
|
-
|
|
11389
|
-
|
|
11390
|
-
|
|
11391
|
-
|
|
11392
|
-
|
|
11393
|
-
|
|
11394
|
-
|
|
11395
|
-
|
|
11396
|
-
|
|
11397
|
-
|
|
11398
|
-
|
|
11399
|
-
|
|
11400
|
-
|
|
11401
|
-
|
|
11387
|
+
Rf as searchFHIRConceptsByName,
|
|
11388
|
+
yy as searchMedications,
|
|
11389
|
+
ug as searchPatientByCustomAttribute,
|
|
11390
|
+
cg as searchPatientByNameOrId,
|
|
11391
|
+
My as shouldEnableEncounterFilter,
|
|
11392
|
+
zg as sortByDate,
|
|
11393
|
+
Jy as transformContainerObservationsToForm2Observations,
|
|
11394
|
+
Yy as transformFormDataToObservations,
|
|
11395
|
+
Wy as transformObservationsToFormData,
|
|
11396
|
+
Lg as updateAppointmentStatus,
|
|
11397
|
+
Ty as updateDiagnosticReportBundle,
|
|
11398
|
+
hg as updatePatient,
|
|
11399
|
+
rv as updateProgramState,
|
|
11400
|
+
Hm as useCamera,
|
|
11401
|
+
av as useSubscribeConsultationSaved,
|
|
11402
|
+
lv as useTranslation
|
|
11402
11403
|
};
|