@bahmni/services 0.0.1-dev.316 → 0.0.1-dev.318
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/appointmentService/appointmentService.d.ts +1 -0
- package/dist/appointmentService/appointmentService.d.ts.map +1 -1
- package/dist/appointmentService/index.d.ts +2 -2
- package/dist/appointmentService/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 +275 -274
- package/dist/patientService/models.d.ts +10 -3
- package/dist/patientService/models.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { initReactI18next as nc } from "react-i18next";
|
|
2
|
-
import { useTranslation as
|
|
2
|
+
import { useTranslation as V_ } from "react-i18next";
|
|
3
3
|
import { useRef as xt, useCallback as yn, useEffect as rt, useSyncExternalStore as sc } from "react";
|
|
4
4
|
function Da(t, e) {
|
|
5
5
|
return function() {
|
|
@@ -2310,7 +2310,7 @@ Ge.interceptors.response.use(
|
|
|
2310
2310
|
return r.startsWith("ERROR_") || /^[A-Z_]+$/.test(r) ? Promise.reject(new Error(r)) : Promise.reject(`${e}: ${r}`);
|
|
2311
2311
|
}
|
|
2312
2312
|
);
|
|
2313
|
-
const H = async (t, e) => (await Ge.get(t, e)).data,
|
|
2313
|
+
const H = async (t, e) => (await Ge.get(t, e)).data, Ee = async (t, e) => (await Ge.post(t, e)).data, ds = async (t, e) => (await Ge.put(t, e)).data, gw = async (t, e) => (await Ge.patch(t, e)).data, ti = async (t) => (await Ge.delete(t)).data, W = (t) => typeof t == "string", St = () => {
|
|
2314
2314
|
let t, e;
|
|
2315
2315
|
const r = new Promise((n, s) => {
|
|
2316
2316
|
t = n, e = s;
|
|
@@ -4240,11 +4240,11 @@ const fs = () => {
|
|
|
4240
4240
|
throw console.error("Logout failed:", t), new Error(le.t(dd.LOGOUT_FAILED));
|
|
4241
4241
|
}
|
|
4242
4242
|
}, Xw = async (t, e) => {
|
|
4243
|
-
await
|
|
4243
|
+
await Ee(od(t), {
|
|
4244
4244
|
userProperties: { loginLocation: e.uuid }
|
|
4245
4245
|
});
|
|
4246
4246
|
}, Zw = async (t) => {
|
|
4247
|
-
await
|
|
4247
|
+
await Ee(ud, { sessionLocation: t });
|
|
4248
4248
|
}, ps = {
|
|
4249
4249
|
person: {
|
|
4250
4250
|
searchParam: "customAttribute",
|
|
@@ -4387,10 +4387,10 @@ const fs = () => {
|
|
|
4387
4387
|
primaryIdentifierTypeUuid: e,
|
|
4388
4388
|
primaryIdentifierTypeName: null
|
|
4389
4389
|
};
|
|
4390
|
-
}, lE = async (t) =>
|
|
4390
|
+
}, lE = async (t) => Ee(yd, t), dE = async (t, e) => Ee(
|
|
4391
4391
|
wd(t),
|
|
4392
4392
|
e
|
|
4393
|
-
), fE = (t) =>
|
|
4393
|
+
), fE = (t) => Ee(Ed, t), pE = (t) => Ee(bd(t), {}), hE = (t, e) => ds(pi(t), e), mE = async () => H(ci("mrs.genders")), gE = async (t, e, r = Sd, n) => {
|
|
4394
4394
|
if (!e || e.length < Od)
|
|
4395
4395
|
return [];
|
|
4396
4396
|
try {
|
|
@@ -4480,7 +4480,7 @@ const _E = (t) => t === "java.lang.Boolean" || t === "org.openmrs.customdatatype
|
|
|
4480
4480
|
}
|
|
4481
4481
|
}, Fd = K + "/auditlog", jd = {
|
|
4482
4482
|
UNKNOWN_EVENT_TYPE: "AUDIT_LOG_ERROR_UNKNOWN_EVENT_TYPE"
|
|
4483
|
-
}, Vd = () => K + "/bahmnicore/config/bahmniencounter?callerContext=REGISTRATION_CONCEPTS", Hd = K + "/visit", Bd = (t) => K + `/visit?patient=${t}&includeInactive=false&v=custom:(uuid,visitType,startDatetime,stopDatetime)`, zd = (t) => K + `/bahmnicore/visitLocation/${t}`, AE = async () => H(Vd()), Yd = async (t) => H(Bd(t)), Gd = async (t) => H(zd(t)), Kd = async (t) =>
|
|
4483
|
+
}, Vd = () => K + "/bahmnicore/config/bahmniencounter?callerContext=REGISTRATION_CONCEPTS", Hd = K + "/visit", Bd = (t) => K + `/visit?patient=${t}&includeInactive=false&v=custom:(uuid,visitType,startDatetime,stopDatetime)`, zd = (t) => K + `/bahmnicore/visitLocation/${t}`, AE = async () => H(Vd()), Yd = async (t) => H(Bd(t)), Gd = async (t) => H(zd(t)), Kd = async (t) => Ee(Hd, t), NE = async (t) => {
|
|
4484
4484
|
const e = await Yd(t);
|
|
4485
4485
|
return e?.results && e.results.length > 0;
|
|
4486
4486
|
}, PE = async (t, e) => {
|
|
@@ -7429,7 +7429,7 @@ const IE = {
|
|
|
7429
7429
|
const s = e === "upcoming", o = s ? "ge" : "le", a = s ? "date" : "-date", i = s ? (/* @__PURE__ */ new Date()).toISOString() : hh(/* @__PURE__ */ new Date()).toISOString();
|
|
7430
7430
|
let c = `${oe}/Appointment?patient=${t}&date=${o}${i}&_sort=${a}`;
|
|
7431
7431
|
return r !== void 0 && r > 0 && (c += `&_count=${r}`), n !== void 0 && n > 0 && (c += `&_getpagesoffset=${n}`), c;
|
|
7432
|
-
}, wh = (t) => un(t, "upcoming"), Eh = (t, e) => un(t, "past", e), bh = (t) => `${Ii}/${t}/status-change`, _h = K + "/appointmentService/all/full", vh = (t) => `${K}/appointmentService?uuid=${t}`, Th = (t, e = 10, r = 0) => un(t, "upcoming", e, r), Rh = (t, e = 10, r = 0) => un(t, "past", e, r), $i = K + "/appointmentUnavailability", DE = async (t) => await
|
|
7432
|
+
}, wh = (t) => un(t, "upcoming"), Eh = (t, e) => un(t, "past", e), bh = (t) => `${Ii}/${t}/status-change`, _h = K + "/appointmentService/all/full", vh = (t) => `${K}/appointmentService?uuid=${t}`, Th = (t, e = 10, r = 0) => un(t, "upcoming", e, r), Rh = (t, e = 10, r = 0) => un(t, "past", e, r), $i = K + "/appointmentUnavailability", DE = async (t) => await Ee(gh, t);
|
|
7433
7433
|
async function CE(t) {
|
|
7434
7434
|
return await H(wh(t));
|
|
7435
7435
|
}
|
|
@@ -7438,38 +7438,38 @@ async function LE(t, e) {
|
|
|
7438
7438
|
Eh(t, e)
|
|
7439
7439
|
);
|
|
7440
7440
|
}
|
|
7441
|
-
const xE = async (t, e, r) => await
|
|
7441
|
+
const xE = async (t, e, r) => await Ee(bh(t), {
|
|
7442
7442
|
toStatus: e,
|
|
7443
7443
|
onDate: r
|
|
7444
|
-
});
|
|
7445
|
-
async function
|
|
7444
|
+
}), kE = async (t, e) => Ee(t, { appointmentUuid: e });
|
|
7445
|
+
async function ME(t) {
|
|
7446
7446
|
return await H(yh(t));
|
|
7447
7447
|
}
|
|
7448
|
-
const
|
|
7448
|
+
const UE = async () => await H(_h), qE = async (t) => {
|
|
7449
7449
|
await ti(vh(t));
|
|
7450
7450
|
};
|
|
7451
|
-
async function
|
|
7451
|
+
async function FE(t, e = 10, r = 1) {
|
|
7452
7452
|
const n = (r - 1) * e, s = await H(
|
|
7453
7453
|
Th(t, e, n)
|
|
7454
7454
|
);
|
|
7455
7455
|
return { bundle: s, total: s.total ?? s.entry?.length ?? 0 };
|
|
7456
7456
|
}
|
|
7457
|
-
async function
|
|
7457
|
+
async function jE(t, e = 10, r = 1) {
|
|
7458
7458
|
const n = (r - 1) * e, s = await H(
|
|
7459
7459
|
Rh(t, e, n)
|
|
7460
7460
|
);
|
|
7461
7461
|
return { bundle: s, total: s.total ?? s.entry?.length ?? 0 };
|
|
7462
7462
|
}
|
|
7463
|
-
const
|
|
7464
|
-
await
|
|
7465
|
-
}, Di = "dd/MM/yyyy", Sh = "default_dateFormat", Oh = "h:mm a",
|
|
7463
|
+
const VE = async () => await H($i), HE = async (t) => {
|
|
7464
|
+
await Ee($i, t);
|
|
7465
|
+
}, Di = "dd/MM/yyyy", Sh = "default_dateFormat", Oh = "h:mm a", BE = "yyyy-MM-dd", De = {
|
|
7466
7466
|
PARSE_ERROR: "DATE_ERROR_PARSE",
|
|
7467
7467
|
FORMAT_ERROR: "DATE_ERROR_FORMAT",
|
|
7468
7468
|
EMPTY_OR_INVALID: "DATE_ERROR_EMPTY_OR_INVALID",
|
|
7469
7469
|
INVALID_FORMAT: "DATE_ERROR_INVALID_FORMAT",
|
|
7470
7470
|
NULL_OR_UNDEFINED: "DATE_ERROR_NULL_OR_UNDEFINED"
|
|
7471
7471
|
};
|
|
7472
|
-
function
|
|
7472
|
+
function zE(t) {
|
|
7473
7473
|
if (!t) return null;
|
|
7474
7474
|
const e = cn(t);
|
|
7475
7475
|
if (!st(e)) return null;
|
|
@@ -7478,7 +7478,7 @@ function BE(t) {
|
|
|
7478
7478
|
const n = Mt(r, e), s = an(r, e), o = sn(e, s), a = on(r, o), i = Bt(o, a), c = Mt(r, i), u = `${s}y ${a}m ${c}d`;
|
|
7479
7479
|
return { year: s, month: a, day: c, ageInDays: n, ageText: u };
|
|
7480
7480
|
}
|
|
7481
|
-
function
|
|
7481
|
+
function YE(t) {
|
|
7482
7482
|
if (typeof t != "string" || !/^\d{4}-\d{2}-\d{2}$/.test(t))
|
|
7483
7483
|
return null;
|
|
7484
7484
|
const e = cn(t);
|
|
@@ -7546,7 +7546,7 @@ function Nh() {
|
|
|
7546
7546
|
return Di;
|
|
7547
7547
|
}
|
|
7548
7548
|
}
|
|
7549
|
-
function
|
|
7549
|
+
function GE(t, e, r = !1, n) {
|
|
7550
7550
|
const s = e ?? ((a) => a);
|
|
7551
7551
|
let o;
|
|
7552
7552
|
try {
|
|
@@ -7556,7 +7556,7 @@ function YE(t, e, r = !1, n) {
|
|
|
7556
7556
|
}
|
|
7557
7557
|
return r && !n && (o = `${o} ${Oh}`), Ah(t, o, s);
|
|
7558
7558
|
}
|
|
7559
|
-
function
|
|
7559
|
+
function KE(t, e, r) {
|
|
7560
7560
|
if (!t || !st(t) || e === null || e === void 0 || !r || typeof e != "number")
|
|
7561
7561
|
return;
|
|
7562
7562
|
const n = new Date(t);
|
|
@@ -7571,7 +7571,7 @@ function GE(t, e, r) {
|
|
|
7571
7571
|
return;
|
|
7572
7572
|
}
|
|
7573
7573
|
}
|
|
7574
|
-
function
|
|
7574
|
+
function WE(t, e) {
|
|
7575
7575
|
if (t == null)
|
|
7576
7576
|
return {
|
|
7577
7577
|
formattedResult: "",
|
|
@@ -7623,11 +7623,11 @@ function KE(t, e) {
|
|
|
7623
7623
|
}
|
|
7624
7624
|
return { formattedResult: c };
|
|
7625
7625
|
}
|
|
7626
|
-
const
|
|
7626
|
+
const JE = () => {
|
|
7627
7627
|
const t = /* @__PURE__ */ new Date();
|
|
7628
7628
|
return t.setHours(0, 0, 0, 0), t;
|
|
7629
7629
|
};
|
|
7630
|
-
function
|
|
7630
|
+
function QE(t, e) {
|
|
7631
7631
|
const r = typeof t == "string" ? cn(t) : new Date(t), n = /* @__PURE__ */ new Date(), s = an(n, r), o = sn(r, s), a = on(n, o), i = Bt(o, a), c = Mt(n, i), u = {
|
|
7632
7632
|
years: "YEARS",
|
|
7633
7633
|
months: "MONTHS",
|
|
@@ -7661,14 +7661,14 @@ const Ph = {
|
|
|
7661
7661
|
h: 1 / 24,
|
|
7662
7662
|
min: 1 / 1440,
|
|
7663
7663
|
s: 1 / 86400
|
|
7664
|
-
},
|
|
7664
|
+
}, XE = (t, e, r) => {
|
|
7665
7665
|
const n = typeof t == "string" ? new Date(t) : t;
|
|
7666
7666
|
if (isNaN(n.getTime()))
|
|
7667
7667
|
throw new Error(`Invalid date: ${t}`);
|
|
7668
7668
|
const s = Ph[r] ?? 1, o = e * s;
|
|
7669
7669
|
return nn(n, o);
|
|
7670
|
-
},
|
|
7671
|
-
function
|
|
7670
|
+
}, ZE = (t, e, r, n) => t <= n && r <= e;
|
|
7671
|
+
function eb(t, e, r = !1) {
|
|
7672
7672
|
return !t || !Array.isArray(t) ? [] : t.sort((n, s) => {
|
|
7673
7673
|
const o = new Date(n[e]), a = new Date(s[e]);
|
|
7674
7674
|
if (isNaN(o.getTime()) && isNaN(a.getTime())) return 0;
|
|
@@ -7683,7 +7683,7 @@ function Ih(t) {
|
|
|
7683
7683
|
const e = Wp(t, "hh:mm aa", /* @__PURE__ */ new Date());
|
|
7684
7684
|
return st(e) ? Ri(e, "HH:mm") : "";
|
|
7685
7685
|
}
|
|
7686
|
-
function
|
|
7686
|
+
function tb(t) {
|
|
7687
7687
|
const e = Ih(t);
|
|
7688
7688
|
if (!e) return null;
|
|
7689
7689
|
const [r, n] = e.split(":").map(Number);
|
|
@@ -7718,7 +7718,7 @@ const $h = () => {
|
|
|
7718
7718
|
);
|
|
7719
7719
|
}
|
|
7720
7720
|
};
|
|
7721
|
-
},
|
|
7721
|
+
}, rb = $h(), Dh = (t) => oe + `/ValueSet/${t}/$expand`, Ch = (t) => oe + `/ValueSet/$expand?filter=${encodeURIComponent(t)}`, Lh = (t, e, r) => K + `/bahmni/terminologies/concepts?limit=${e}&locale=${r}&term=${t}`, xh = (t) => K + `/concept/${t}`, kh = (t) => `${K}/concept?s=byFullySpecifiedName&name=${encodeURIComponent(t)}`, Mh = "SHORT", Uh = "FULLY_SPECIFIED", nb = async (t, e = 20) => {
|
|
7722
7722
|
const r = tn(), n = Lh(t, e, r);
|
|
7723
7723
|
return H(n);
|
|
7724
7724
|
}, kr = async (t) => {
|
|
@@ -7728,10 +7728,10 @@ const $h = () => {
|
|
|
7728
7728
|
const e = `${Ch(t)}`;
|
|
7729
7729
|
return H(e);
|
|
7730
7730
|
};
|
|
7731
|
-
async function
|
|
7731
|
+
async function sb(t) {
|
|
7732
7732
|
return await H(xh(t));
|
|
7733
7733
|
}
|
|
7734
|
-
async function
|
|
7734
|
+
async function ob(t) {
|
|
7735
7735
|
const e = kh(t), r = await H(e);
|
|
7736
7736
|
return !r.results || r.results.length === 0 ? null : r.results[0];
|
|
7737
7737
|
}
|
|
@@ -7767,7 +7767,7 @@ const jh = (t) => oe + `/AllergyIntolerance?patient=${t}&_count=100&_sort=-_last
|
|
|
7767
7767
|
}), Nn = (t, e) => {
|
|
7768
7768
|
const r = t.expansion?.contains ?? [];
|
|
7769
7769
|
return Hh(r).map((s) => Bh(s, e));
|
|
7770
|
-
},
|
|
7770
|
+
}, ab = async (t, e, r) => {
|
|
7771
7771
|
const n = t ?? ft.MEDICATION.code, s = e ?? ft.FOOD.code, o = r ?? ft.ENVIRONMENT.code, [a, i, c] = await Promise.all([
|
|
7772
7772
|
kr(n),
|
|
7773
7773
|
kr(s),
|
|
@@ -7787,7 +7787,7 @@ const jh = (t) => oe + `/AllergyIntolerance?patient=${t}&_count=100&_sort=-_last
|
|
|
7787
7787
|
ft.ENVIRONMENT.display
|
|
7788
7788
|
)
|
|
7789
7789
|
];
|
|
7790
|
-
},
|
|
7790
|
+
}, ib = async (t) => {
|
|
7791
7791
|
const e = t ?? Vh.code;
|
|
7792
7792
|
return (await kr(e)).compose?.include[0]?.concept ?? [];
|
|
7793
7793
|
};
|
|
@@ -7827,12 +7827,12 @@ function Gh(t) {
|
|
|
7827
7827
|
};
|
|
7828
7828
|
});
|
|
7829
7829
|
}
|
|
7830
|
-
async function
|
|
7830
|
+
async function cb(t) {
|
|
7831
7831
|
const e = await Yh(t);
|
|
7832
7832
|
return Gh(e);
|
|
7833
7833
|
}
|
|
7834
7834
|
var Kh = /* @__PURE__ */ ((t) => (t.Active = "Active", t.Inactive = "Inactive", t))(Kh || {}), Wh = /* @__PURE__ */ ((t) => (t.mild = "mild", t.moderate = "moderate", t.severe = "severe", t))(Wh || {});
|
|
7835
|
-
function
|
|
7835
|
+
function ub(t) {
|
|
7836
7836
|
const e = t.code?.coding?.[0]?.code ?? t.id ?? "", r = t.reaction?.[0]?.severity, n = /* @__PURE__ */ new Set(), s = [];
|
|
7837
7837
|
for (const o of t.reaction ?? [])
|
|
7838
7838
|
for (const a of o.manifestation ?? [])
|
|
@@ -7858,10 +7858,10 @@ const Jh = oe + "/Condition", Qh = (t) => oe + `/Condition?category=${ui}&patien
|
|
|
7858
7858
|
async function Zh(t) {
|
|
7859
7859
|
return await H(`${Qh(t)}`);
|
|
7860
7860
|
}
|
|
7861
|
-
async function
|
|
7861
|
+
async function lb(t) {
|
|
7862
7862
|
return (await Zh(t)).entry?.filter((n) => n.resource?.resourceType === "Condition").map((n) => n.resource) ?? [];
|
|
7863
7863
|
}
|
|
7864
|
-
async function
|
|
7864
|
+
async function db(t, e = 10, r = 1, n) {
|
|
7865
7865
|
const s = (r - 1) * e, o = await H(
|
|
7866
7866
|
Xh(t, e, s, n)
|
|
7867
7867
|
);
|
|
@@ -7870,7 +7870,7 @@ async function lb(t, e = 10, r = 1, n) {
|
|
|
7870
7870
|
total: o.total
|
|
7871
7871
|
};
|
|
7872
7872
|
}
|
|
7873
|
-
async function
|
|
7873
|
+
async function fb(t) {
|
|
7874
7874
|
const e = {
|
|
7875
7875
|
...t,
|
|
7876
7876
|
clinicalStatus: {
|
|
@@ -7946,11 +7946,11 @@ function cm(t) {
|
|
|
7946
7946
|
}
|
|
7947
7947
|
return Array.from(e.values());
|
|
7948
7948
|
}
|
|
7949
|
-
async function
|
|
7949
|
+
async function pb(t) {
|
|
7950
7950
|
const e = await sm(t), r = Li(e);
|
|
7951
7951
|
return cm(r);
|
|
7952
7952
|
}
|
|
7953
|
-
async function
|
|
7953
|
+
async function hb(t, e = 10, r = 1) {
|
|
7954
7954
|
const n = (r - 1) * e, s = await om(
|
|
7955
7955
|
t,
|
|
7956
7956
|
e,
|
|
@@ -7976,7 +7976,7 @@ const Lt = {
|
|
|
7976
7976
|
}, lm = (t, e, r) => {
|
|
7977
7977
|
let s = `${oe + "/MedicationRequest?" + Lt.SORT + "&" + Lt.COUNT + "&" + Lt.INCLUDE_MEDICATION}&patient=${t}`;
|
|
7978
7978
|
return e && (s += `&code=${e}`), r && (s += `&encounter=${r}`), s;
|
|
7979
|
-
}, dm = K + "/bahmnicore/config/drugOrders", fm = (t, e) => oe + `/Medication?name=${encodeURIComponent(t)}&_count=${e}&_sort=-_lastUpdated`, pm = oe + "/Medication?code=http://hl7.org/fhir/sid/cvx|&_count=100",
|
|
7979
|
+
}, dm = K + "/bahmnicore/config/drugOrders", fm = (t, e) => oe + `/Medication?name=${encodeURIComponent(t)}&_count=${e}&_sort=-_lastUpdated`, pm = oe + "/Medication?code=http://hl7.org/fhir/sid/cvx|&_count=100", mb = "medication", hm = (t) => {
|
|
7980
7980
|
switch (t.status) {
|
|
7981
7981
|
case "active":
|
|
7982
7982
|
return He.Active;
|
|
@@ -8133,7 +8133,7 @@ function Om(t) {
|
|
|
8133
8133
|
});
|
|
8134
8134
|
}
|
|
8135
8135
|
const mo = (t) => t.priority === "stat";
|
|
8136
|
-
async function
|
|
8136
|
+
async function gb(t, e, r, n = !1) {
|
|
8137
8137
|
const s = await mm(
|
|
8138
8138
|
t,
|
|
8139
8139
|
e,
|
|
@@ -8142,21 +8142,21 @@ async function mb(t, e, r, n = !1) {
|
|
|
8142
8142
|
);
|
|
8143
8143
|
return Om(s);
|
|
8144
8144
|
}
|
|
8145
|
-
async function
|
|
8145
|
+
async function yb() {
|
|
8146
8146
|
return await H(
|
|
8147
8147
|
dm
|
|
8148
8148
|
);
|
|
8149
8149
|
}
|
|
8150
|
-
async function
|
|
8150
|
+
async function wb(t, e = 20) {
|
|
8151
8151
|
return await H(
|
|
8152
8152
|
fm(t, e)
|
|
8153
8153
|
);
|
|
8154
8154
|
}
|
|
8155
|
-
async function
|
|
8155
|
+
async function Eb() {
|
|
8156
8156
|
return await H(pm);
|
|
8157
8157
|
}
|
|
8158
8158
|
const Am = (t) => `${oe}/Medication/${t}`;
|
|
8159
|
-
async function
|
|
8159
|
+
async function bb(t) {
|
|
8160
8160
|
return await H(Am(t));
|
|
8161
8161
|
}
|
|
8162
8162
|
const Nm = 200, Pm = (t, e, r, n, s) => {
|
|
@@ -8176,7 +8176,7 @@ async function zt(t, e, r, n, s) {
|
|
|
8176
8176
|
);
|
|
8177
8177
|
}
|
|
8178
8178
|
const Im = (t) => `${oe}/ImagingStudy/${t}/$fetch-quality-assessment`;
|
|
8179
|
-
async function
|
|
8179
|
+
async function _b(t, e, r, n) {
|
|
8180
8180
|
return await zt(
|
|
8181
8181
|
e,
|
|
8182
8182
|
t,
|
|
@@ -8184,7 +8184,7 @@ async function bb(t, e, r, n) {
|
|
|
8184
8184
|
n
|
|
8185
8185
|
);
|
|
8186
8186
|
}
|
|
8187
|
-
async function
|
|
8187
|
+
async function vb(t, e, r, n) {
|
|
8188
8188
|
return await zt(
|
|
8189
8189
|
e,
|
|
8190
8190
|
t,
|
|
@@ -8193,7 +8193,7 @@ async function _b(t, e, r, n) {
|
|
|
8193
8193
|
"ImagingStudy:basedon"
|
|
8194
8194
|
);
|
|
8195
8195
|
}
|
|
8196
|
-
async function
|
|
8196
|
+
async function Tb(t, e, r, n) {
|
|
8197
8197
|
return (await zt(
|
|
8198
8198
|
e,
|
|
8199
8199
|
t,
|
|
@@ -8201,10 +8201,10 @@ async function vb(t, e, r, n) {
|
|
|
8201
8201
|
n
|
|
8202
8202
|
)).entry?.filter((a) => a.resource?.resourceType === "ServiceRequest").map((a) => a.resource) ?? [];
|
|
8203
8203
|
}
|
|
8204
|
-
async function
|
|
8204
|
+
async function Rb(t) {
|
|
8205
8205
|
return await H(Im(t));
|
|
8206
8206
|
}
|
|
8207
|
-
async function
|
|
8207
|
+
async function Sb(t, e, r, n) {
|
|
8208
8208
|
return await zt(
|
|
8209
8209
|
e,
|
|
8210
8210
|
t,
|
|
@@ -8216,29 +8216,29 @@ const $m = (t, e) => {
|
|
|
8216
8216
|
const r = `${oe}/DiagnosticReport?patient=${t}`;
|
|
8217
8217
|
return e ? `${r}&based-on=${e}` : r;
|
|
8218
8218
|
}, Dm = (t) => `${oe}/DiagnosticReport/${t}/$fetch-bundle`, Cm = (t) => `${oe}/DiagnosticReport/${t}/$update-bundle`;
|
|
8219
|
-
async function
|
|
8219
|
+
async function Ob(t, e = []) {
|
|
8220
8220
|
const r = e.length > 0 ? e.join(",") : void 0, n = $m(t, r);
|
|
8221
8221
|
return await H(n);
|
|
8222
8222
|
}
|
|
8223
|
-
async function
|
|
8223
|
+
async function Ab(t) {
|
|
8224
8224
|
const e = Dm(t);
|
|
8225
8225
|
return await H(e);
|
|
8226
8226
|
}
|
|
8227
|
-
async function
|
|
8227
|
+
async function Nb(t, e) {
|
|
8228
8228
|
const r = Cm(t);
|
|
8229
|
-
return await
|
|
8229
|
+
return await Ee(r, e);
|
|
8230
8230
|
}
|
|
8231
|
-
const
|
|
8231
|
+
const Pb = [
|
|
8232
8232
|
"preliminary",
|
|
8233
8233
|
"final",
|
|
8234
8234
|
"amended",
|
|
8235
8235
|
"corrected",
|
|
8236
8236
|
"appended"
|
|
8237
|
-
],
|
|
8237
|
+
], Ib = [
|
|
8238
8238
|
"registered",
|
|
8239
8239
|
"unknown",
|
|
8240
8240
|
"partial"
|
|
8241
|
-
], Lm = "All Orderables", xm = "/openmrs/ws/rest/v1/ordertype?v=custom:(uuid,display,conceptClasses:(uuid,name))", km = "LabSet", Mm = "http://fhir.bahmni.org/ext/ValueSet/concept-class",
|
|
8241
|
+
], Lm = "All Orderables", xm = "/openmrs/ws/rest/v1/ordertype?v=custom:(uuid,display,conceptClasses:(uuid,name))", km = "LabSet", Mm = "http://fhir.bahmni.org/ext/ValueSet/concept-class", $b = ["orderTypes"], Um = async () => await qh(Lm), ws = async () => await H(xm), qm = (t) => {
|
|
8242
8242
|
let e = t.display ?? "Unknown investigation";
|
|
8243
8243
|
return xi(t) === km && (e += ` (${le.t("INVESTIGATION_PANEL")})`), e;
|
|
8244
8244
|
}, Fm = (t) => {
|
|
@@ -8270,12 +8270,12 @@ const Nb = [
|
|
|
8270
8270
|
});
|
|
8271
8271
|
});
|
|
8272
8272
|
}), r;
|
|
8273
|
-
},
|
|
8273
|
+
}, Db = async () => {
|
|
8274
8274
|
const t = await Um(), e = await ws();
|
|
8275
8275
|
return jm(t, Fm(e));
|
|
8276
|
-
},
|
|
8276
|
+
}, Cb = async (t) => t ? (await ws()).results.find(
|
|
8277
8277
|
(n) => n.display.toLowerCase() === t.toLowerCase()
|
|
8278
|
-
)?.uuid ?? null : null,
|
|
8278
|
+
)?.uuid ?? null : null, Lb = async () => (await ws()).results.map((e) => e.display), xb = async (t, e, r) => {
|
|
8279
8279
|
const n = [];
|
|
8280
8280
|
for (const s of t) {
|
|
8281
8281
|
const o = s.uuid;
|
|
@@ -9390,7 +9390,7 @@ function Hm() {
|
|
|
9390
9390
|
}
|
|
9391
9391
|
return We;
|
|
9392
9392
|
}
|
|
9393
|
-
var
|
|
9393
|
+
var ve = {}, Je = {}, Ro;
|
|
9394
9394
|
function ki() {
|
|
9395
9395
|
if (Ro) return Je;
|
|
9396
9396
|
Ro = 1, Object.defineProperty(Je, "__esModule", { value: !0 }), Je.getRules = Je.isJSONType = void 0;
|
|
@@ -9437,13 +9437,13 @@ function Mi() {
|
|
|
9437
9437
|
}
|
|
9438
9438
|
var Oo;
|
|
9439
9439
|
function Gr() {
|
|
9440
|
-
if (Oo) return
|
|
9441
|
-
Oo = 1, Object.defineProperty(
|
|
9440
|
+
if (Oo) return ve;
|
|
9441
|
+
Oo = 1, Object.defineProperty(ve, "__esModule", { value: !0 }), ve.reportTypeError = ve.checkDataTypes = ve.checkDataType = ve.coerceAndCheckDataType = ve.getJSONTypes = ve.getSchemaTypes = ve.DataType = void 0;
|
|
9442
9442
|
const t = ki(), e = Mi(), r = ln(), n = te(), s = se();
|
|
9443
9443
|
var o;
|
|
9444
9444
|
(function(p) {
|
|
9445
9445
|
p[p.Correct = 0] = "Correct", p[p.Wrong = 1] = "Wrong";
|
|
9446
|
-
})(o || (
|
|
9446
|
+
})(o || (ve.DataType = o = {}));
|
|
9447
9447
|
function a(p) {
|
|
9448
9448
|
const b = i(p.type);
|
|
9449
9449
|
if (b.includes("null")) {
|
|
@@ -9456,14 +9456,14 @@ function Gr() {
|
|
|
9456
9456
|
}
|
|
9457
9457
|
return b;
|
|
9458
9458
|
}
|
|
9459
|
-
|
|
9459
|
+
ve.getSchemaTypes = a;
|
|
9460
9460
|
function i(p) {
|
|
9461
9461
|
const b = Array.isArray(p) ? p : p ? [p] : [];
|
|
9462
9462
|
if (b.every(t.isJSONType))
|
|
9463
9463
|
return b;
|
|
9464
9464
|
throw new Error("type must be JSONType or JSONType[]: " + b.join(","));
|
|
9465
9465
|
}
|
|
9466
|
-
|
|
9466
|
+
ve.getJSONTypes = i;
|
|
9467
9467
|
function c(p, b) {
|
|
9468
9468
|
const { gen: S, data: d, opts: m } = p, w = l(b, m.coerceTypes), T = b.length > 0 && !(w.length === 0 && b.length === 1 && (0, e.schemaHasRulesForType)(p, b[0]));
|
|
9469
9469
|
if (T) {
|
|
@@ -9474,7 +9474,7 @@ function Gr() {
|
|
|
9474
9474
|
}
|
|
9475
9475
|
return T;
|
|
9476
9476
|
}
|
|
9477
|
-
|
|
9477
|
+
ve.coerceAndCheckDataType = c;
|
|
9478
9478
|
const u = /* @__PURE__ */ new Set(["string", "number", "integer", "boolean", "null"]);
|
|
9479
9479
|
function l(p, b) {
|
|
9480
9480
|
return b ? p.filter((S) => u.has(S) || b === "array" && S === "array") : [];
|
|
@@ -9541,7 +9541,7 @@ function Gr() {
|
|
|
9541
9541
|
return (0, n.and)((0, n._)`typeof ${b} == "number"`, I, S ? (0, n._)`isFinite(${b})` : n.nil);
|
|
9542
9542
|
}
|
|
9543
9543
|
}
|
|
9544
|
-
|
|
9544
|
+
ve.checkDataType = v;
|
|
9545
9545
|
function R(p, b, S, d) {
|
|
9546
9546
|
if (p.length === 1)
|
|
9547
9547
|
return v(p[0], b, S, d);
|
|
@@ -9557,7 +9557,7 @@ function Gr() {
|
|
|
9557
9557
|
m = (0, n.and)(m, v(T, b, S, d));
|
|
9558
9558
|
return m;
|
|
9559
9559
|
}
|
|
9560
|
-
|
|
9560
|
+
ve.checkDataTypes = R;
|
|
9561
9561
|
const _ = {
|
|
9562
9562
|
message: ({ schema: p }) => `must be ${p}`,
|
|
9563
9563
|
params: ({ schema: p, schemaValue: b }) => typeof p == "string" ? (0, n._)`{type: ${p}}` : (0, n._)`{type: ${b}}`
|
|
@@ -9566,7 +9566,7 @@ function Gr() {
|
|
|
9566
9566
|
const b = g(p);
|
|
9567
9567
|
(0, r.reportError)(b, _);
|
|
9568
9568
|
}
|
|
9569
|
-
|
|
9569
|
+
ve.reportTypeError = f;
|
|
9570
9570
|
function g(p) {
|
|
9571
9571
|
const { gen: b, data: S, schema: d } = p, m = (0, s.schemaRefOrVal)(p, d, "type");
|
|
9572
9572
|
return {
|
|
@@ -9581,7 +9581,7 @@ function Gr() {
|
|
|
9581
9581
|
it: p
|
|
9582
9582
|
};
|
|
9583
9583
|
}
|
|
9584
|
-
return
|
|
9584
|
+
return ve;
|
|
9585
9585
|
}
|
|
9586
9586
|
var Pt = {}, Ao;
|
|
9587
9587
|
function Bm() {
|
|
@@ -10172,8 +10172,8 @@ function fn() {
|
|
|
10172
10172
|
if (G.$comment === !0)
|
|
10173
10173
|
A.code((0, i._)`${c.default.self}.logger.log(${ee})`);
|
|
10174
10174
|
else if (typeof G.$comment == "function") {
|
|
10175
|
-
const
|
|
10176
|
-
A.code((0, i._)`${c.default.self}.opts.$comment(${ee}, ${
|
|
10175
|
+
const be = (0, i.str)`${F}/$comment`, Ce = A.scopeValue("root", { ref: C.root });
|
|
10176
|
+
A.code((0, i._)`${c.default.self}.opts.$comment(${ee}, ${be}, ${Ce}.schema)`);
|
|
10177
10177
|
}
|
|
10178
10178
|
}
|
|
10179
10179
|
function V(A) {
|
|
@@ -10184,18 +10184,18 @@ function fn() {
|
|
|
10184
10184
|
M instanceof i.Name && A.assign((0, i._)`${C}.props`, M), F instanceof i.Name && A.assign((0, i._)`${C}.items`, F);
|
|
10185
10185
|
}
|
|
10186
10186
|
function ne(A, C, M, F) {
|
|
10187
|
-
const { gen: G, schema: ee, data:
|
|
10188
|
-
if (ee.$ref && (Oe.ignoreKeywordsWithRef || !(0, l.schemaHasRulesButRef)(ee,
|
|
10189
|
-
G.block(() => z(A, "$ref",
|
|
10187
|
+
const { gen: G, schema: ee, data: be, allErrors: Ce, opts: Oe, self: Ae } = A, { RULES: _e } = Ae;
|
|
10188
|
+
if (ee.$ref && (Oe.ignoreKeywordsWithRef || !(0, l.schemaHasRulesButRef)(ee, _e))) {
|
|
10189
|
+
G.block(() => z(A, "$ref", _e.all.$ref.definition));
|
|
10190
10190
|
return;
|
|
10191
10191
|
}
|
|
10192
10192
|
Oe.jtd || re(A, C), G.block(() => {
|
|
10193
|
-
for (const Ie of
|
|
10193
|
+
for (const Ie of _e.rules)
|
|
10194
10194
|
ot(Ie);
|
|
10195
|
-
ot(
|
|
10195
|
+
ot(_e.post);
|
|
10196
10196
|
});
|
|
10197
10197
|
function ot(Ie) {
|
|
10198
|
-
(0, r.shouldUseGroup)(ee, Ie) && (Ie.type ? (G.if((0, n.checkDataType)(Ie.type,
|
|
10198
|
+
(0, r.shouldUseGroup)(ee, Ie) && (Ie.type ? (G.if((0, n.checkDataType)(Ie.type, be, Oe.strictNumbers)), we(A, Ie), C.length === 1 && C[0] === Ie.type && M && (G.else(), (0, n.reportTypeError)(A)), G.endIf()) : we(A, Ie), Ce || G.if((0, i._)`${c.default.errors} === ${F || 0}`));
|
|
10199
10199
|
}
|
|
10200
10200
|
}
|
|
10201
10201
|
function we(A, C) {
|
|
@@ -10228,7 +10228,7 @@ function fn() {
|
|
|
10228
10228
|
const G = M[F];
|
|
10229
10229
|
if (typeof G == "object" && (0, r.shouldUseRule)(A.schema, G)) {
|
|
10230
10230
|
const { type: ee } = G.definition;
|
|
10231
|
-
ee.length && !ee.some((
|
|
10231
|
+
ee.length && !ee.some((be) => U(C, be)) && O(A, `missing type "${ee.join(",")}" for keyword "${F}"`);
|
|
10232
10232
|
}
|
|
10233
10233
|
}
|
|
10234
10234
|
}
|
|
@@ -10310,13 +10310,13 @@ function fn() {
|
|
|
10310
10310
|
check$data(C = i.nil, M = i.nil) {
|
|
10311
10311
|
if (!this.$data)
|
|
10312
10312
|
return;
|
|
10313
|
-
const { gen: F, schemaCode: G, schemaType: ee, def:
|
|
10314
|
-
F.if((0, i.or)((0, i._)`${G} === undefined`, M)), C !== i.nil && F.assign(C, !0), (ee.length ||
|
|
10313
|
+
const { gen: F, schemaCode: G, schemaType: ee, def: be } = this;
|
|
10314
|
+
F.if((0, i.or)((0, i._)`${G} === undefined`, M)), C !== i.nil && F.assign(C, !0), (ee.length || be.validateSchema) && (F.elseIf(this.invalid$data()), this.$dataError(), C !== i.nil && F.assign(C, !1)), F.else();
|
|
10315
10315
|
}
|
|
10316
10316
|
invalid$data() {
|
|
10317
10317
|
const { gen: C, schemaCode: M, schemaType: F, def: G, it: ee } = this;
|
|
10318
|
-
return (0, i.or)(
|
|
10319
|
-
function
|
|
10318
|
+
return (0, i.or)(be(), Ce());
|
|
10319
|
+
function be() {
|
|
10320
10320
|
if (F.length) {
|
|
10321
10321
|
if (!(M instanceof i.Name))
|
|
10322
10322
|
throw new Error("ajv implementation error");
|
|
@@ -10367,24 +10367,24 @@ function fn() {
|
|
|
10367
10367
|
const Ae = Z.exec(A);
|
|
10368
10368
|
if (!Ae)
|
|
10369
10369
|
throw new Error(`Invalid JSON-pointer: ${A}`);
|
|
10370
|
-
const
|
|
10370
|
+
const _e = +Ae[1];
|
|
10371
10371
|
if (G = Ae[2], G === "#") {
|
|
10372
|
-
if (
|
|
10373
|
-
throw new Error(Oe("property/index",
|
|
10374
|
-
return F[C -
|
|
10372
|
+
if (_e >= C)
|
|
10373
|
+
throw new Error(Oe("property/index", _e));
|
|
10374
|
+
return F[C - _e];
|
|
10375
10375
|
}
|
|
10376
|
-
if (
|
|
10377
|
-
throw new Error(Oe("data",
|
|
10378
|
-
if (ee = M[C -
|
|
10376
|
+
if (_e > C)
|
|
10377
|
+
throw new Error(Oe("data", _e));
|
|
10378
|
+
if (ee = M[C - _e], !G)
|
|
10379
10379
|
return ee;
|
|
10380
10380
|
}
|
|
10381
|
-
let
|
|
10381
|
+
let be = ee;
|
|
10382
10382
|
const Ce = G.split("/");
|
|
10383
10383
|
for (const Ae of Ce)
|
|
10384
|
-
Ae && (ee = (0, i._)`${ee}${(0, i.getProperty)((0, l.unescapeJsonPointer)(Ae))}`,
|
|
10385
|
-
return
|
|
10386
|
-
function Oe(Ae,
|
|
10387
|
-
return `Cannot access ${Ae} ${
|
|
10384
|
+
Ae && (ee = (0, i._)`${ee}${(0, i.getProperty)((0, l.unescapeJsonPointer)(Ae))}`, be = (0, i._)`${be} && ${ee}`);
|
|
10385
|
+
return be;
|
|
10386
|
+
function Oe(Ae, _e) {
|
|
10387
|
+
return `Cannot access ${Ae} ${_e} levels up, current level is ${C}`;
|
|
10388
10388
|
}
|
|
10389
10389
|
}
|
|
10390
10390
|
return Fe.getData = Q, Fe;
|
|
@@ -11133,7 +11133,7 @@ function sg() {
|
|
|
11133
11133
|
unicode: '"minLength"/"maxLength" account for unicode characters by default.'
|
|
11134
11134
|
}, p = 200;
|
|
11135
11135
|
function b(q) {
|
|
11136
|
-
var P, U, D, E, O, x, z, j, Z, Q, A, C, M, F, G, ee,
|
|
11136
|
+
var P, U, D, E, O, x, z, j, Z, Q, A, C, M, F, G, ee, be, Ce, Oe, Ae, _e, ot, Ie, hn, mn;
|
|
11137
11137
|
const Tt = q.strict, gn = (P = q.code) === null || P === void 0 ? void 0 : P.optimize, Ss = gn === !0 || gn === void 0 ? 1 : gn || 0, Os = (D = (U = q.code) === null || U === void 0 ? void 0 : U.regExp) !== null && D !== void 0 ? D : v, rc = (E = q.uriResolver) !== null && E !== void 0 ? E : y.default;
|
|
11138
11138
|
return {
|
|
11139
11139
|
strictSchema: (x = (O = q.strictSchema) !== null && O !== void 0 ? O : Tt) !== null && x !== void 0 ? x : !0,
|
|
@@ -11144,11 +11144,11 @@ function sg() {
|
|
|
11144
11144
|
code: q.code ? { ...q.code, optimize: Ss, regExp: Os } : { optimize: Ss, regExp: Os },
|
|
11145
11145
|
loopRequired: (G = q.loopRequired) !== null && G !== void 0 ? G : p,
|
|
11146
11146
|
loopEnum: (ee = q.loopEnum) !== null && ee !== void 0 ? ee : p,
|
|
11147
|
-
meta: (
|
|
11147
|
+
meta: (be = q.meta) !== null && be !== void 0 ? be : !0,
|
|
11148
11148
|
messages: (Ce = q.messages) !== null && Ce !== void 0 ? Ce : !0,
|
|
11149
11149
|
inlineRefs: (Oe = q.inlineRefs) !== null && Oe !== void 0 ? Oe : !0,
|
|
11150
11150
|
schemaId: (Ae = q.schemaId) !== null && Ae !== void 0 ? Ae : "$id",
|
|
11151
|
-
addUsedSchema: (
|
|
11151
|
+
addUsedSchema: (_e = q.addUsedSchema) !== null && _e !== void 0 ? _e : !0,
|
|
11152
11152
|
validateSchema: (ot = q.validateSchema) !== null && ot !== void 0 ? ot : !0,
|
|
11153
11153
|
validateFormats: (Ie = q.validateFormats) !== null && Ie !== void 0 ? Ie : !0,
|
|
11154
11154
|
unicodeRegExp: (hn = q.unicodeRegExp) !== null && hn !== void 0 ? hn : !0,
|
|
@@ -12823,7 +12823,7 @@ var Kg = Gg();
|
|
|
12823
12823
|
const Wg = /* @__PURE__ */ Vm(Kg), Pa = {
|
|
12824
12824
|
CONFIG_NOT_FOUND: "CONFIG_ERROR_NOT_FOUND",
|
|
12825
12825
|
VALIDATION_FAILED: "CONFIG_ERROR_VALIDATION_FAILED"
|
|
12826
|
-
},
|
|
12826
|
+
}, kb = async (t, e) => {
|
|
12827
12827
|
const r = await Jg(t);
|
|
12828
12828
|
if (!r)
|
|
12829
12829
|
throw new Error(Pa.CONFIG_NOT_FOUND);
|
|
@@ -12833,7 +12833,7 @@ const Wg = /* @__PURE__ */ Vm(Kg), Pa = {
|
|
|
12833
12833
|
}, Jg = async (t) => await H(t), Qg = async (t, e) => new Wg().compile(e)(t), Xg = (t) => K + `/form/${t}?v=custom:(resources:(value))`, Zg = (t) => {
|
|
12834
12834
|
const e = K + "/bahmniie/form/latestPublishedForms";
|
|
12835
12835
|
return t ? e + `?episodeUuid=${t}` : e;
|
|
12836
|
-
},
|
|
12836
|
+
}, Mb = (t) => K + `/user/${t}?v=full`, ey = (t, e, r, n) => K + `/bahmniie/form/translations?formName=${encodeURIComponent(t)}&formUuid=${e}&formVersion=${r}&locale=${n}`, Mr = "Bahmni", ty = (t, e, r) => {
|
|
12837
12837
|
let s = K + "/bahmnicore/patient/" + t + "/forms";
|
|
12838
12838
|
return r ? s += `?patientProgramUuid=${r}` : e && (s += `?numberOfVisits=${e}`), s;
|
|
12839
12839
|
}, ry = (t, e) => {
|
|
@@ -12847,21 +12847,21 @@ async function sy(t, e) {
|
|
|
12847
12847
|
const r = ry(t, e);
|
|
12848
12848
|
return await H(r);
|
|
12849
12849
|
}
|
|
12850
|
-
async function
|
|
12850
|
+
async function Ub(t, e) {
|
|
12851
12851
|
const r = ny(t, e);
|
|
12852
12852
|
return await H(r);
|
|
12853
12853
|
}
|
|
12854
|
-
async function
|
|
12854
|
+
async function qb(t, e) {
|
|
12855
12855
|
return (await sy(t, e)).entry?.filter((s) => s.resource?.resourceType === "Observation").map((s) => s.resource) ?? [];
|
|
12856
12856
|
}
|
|
12857
12857
|
const Hi = (t) => K + `/provider?user=${t}&v=custom:(uuid,display,person,attributes)`, oy = K + "/provider?v=custom:(uuid,display,person,attributes)";
|
|
12858
|
-
async function
|
|
12858
|
+
async function Fb(t) {
|
|
12859
12859
|
const e = await H(
|
|
12860
12860
|
Hi(t)
|
|
12861
12861
|
);
|
|
12862
12862
|
return !e.results || e.results.length === 0 ? null : e.results[0];
|
|
12863
12863
|
}
|
|
12864
|
-
async function
|
|
12864
|
+
async function jb() {
|
|
12865
12865
|
const t = [];
|
|
12866
12866
|
let e = oy;
|
|
12867
12867
|
for (; e; ) {
|
|
@@ -12870,7 +12870,7 @@ async function Fb() {
|
|
|
12870
12870
|
}
|
|
12871
12871
|
return t;
|
|
12872
12872
|
}
|
|
12873
|
-
async function
|
|
12873
|
+
async function Vb(t) {
|
|
12874
12874
|
const e = await H(Hi(t));
|
|
12875
12875
|
if (!e.results || e.results.length === 0)
|
|
12876
12876
|
return [];
|
|
@@ -12889,24 +12889,24 @@ async function uy(t) {
|
|
|
12889
12889
|
async function zi(t) {
|
|
12890
12890
|
return (await uy(t)).find((r) => !r.period?.end) ?? null;
|
|
12891
12891
|
}
|
|
12892
|
-
async function
|
|
12892
|
+
async function Hb(t, e) {
|
|
12893
12893
|
return await H(
|
|
12894
12894
|
`/openmrs/ws/fhir2/R4/Encounter/${t}`,
|
|
12895
12895
|
e
|
|
12896
12896
|
);
|
|
12897
12897
|
}
|
|
12898
|
-
async function
|
|
12898
|
+
async function Bb(t) {
|
|
12899
12899
|
return await H(
|
|
12900
12900
|
iy(t)
|
|
12901
12901
|
);
|
|
12902
12902
|
}
|
|
12903
|
-
async function
|
|
12904
|
-
return await
|
|
12903
|
+
async function zb(t) {
|
|
12904
|
+
return await Ee(Bi, t);
|
|
12905
12905
|
}
|
|
12906
|
-
async function
|
|
12906
|
+
async function Yb(t, e) {
|
|
12907
12907
|
return await ds(`${Bi}/${t}`, e);
|
|
12908
12908
|
}
|
|
12909
|
-
const
|
|
12909
|
+
const Gb = (t, e) => t?.length === 0 ? !1 : e?.length === 0, ly = oe + "/Encounter", dy = K + "/systemsetting/bahmni.encountersession.duration", Kb = {
|
|
12910
12910
|
MATCHED: "ENCOUNTER_MATCH_REASON_MATCHED",
|
|
12911
12911
|
NO_ACTIVE_VISIT: "ENCOUNTER_MATCH_REASON_NO_ACTIVE_VISIT",
|
|
12912
12912
|
NO_ACTIVE_ENCOUNTER: "ENCOUNTER_MATCH_REASON_NO_ACTIVE_ENCOUNTER",
|
|
@@ -12944,7 +12944,7 @@ async function fy(t, e) {
|
|
|
12944
12944
|
return null;
|
|
12945
12945
|
}
|
|
12946
12946
|
}
|
|
12947
|
-
async function
|
|
12947
|
+
async function Wb(t, e, r, n) {
|
|
12948
12948
|
try {
|
|
12949
12949
|
if (!t) return null;
|
|
12950
12950
|
const s = r ?? await Yi(), a = `ge${new Date(Date.now() - s * 60 * 1e3).toISOString()}`, i = {
|
|
@@ -12981,7 +12981,7 @@ function Fn(t) {
|
|
|
12981
12981
|
return new Date(r.period?.start ?? 0).getTime() - n;
|
|
12982
12982
|
});
|
|
12983
12983
|
}
|
|
12984
|
-
async function
|
|
12984
|
+
async function Jb(t, e, r, n) {
|
|
12985
12985
|
try {
|
|
12986
12986
|
const s = await zi(t);
|
|
12987
12987
|
if (!s?.id)
|
|
@@ -13046,7 +13046,7 @@ async function Wb(t, e, r, n) {
|
|
|
13046
13046
|
};
|
|
13047
13047
|
}
|
|
13048
13048
|
}
|
|
13049
|
-
function
|
|
13049
|
+
function Qb(t) {
|
|
13050
13050
|
return t.matched || t.reasons.includes("LOCATION_MISMATCH") && !t.reasons.includes("SESSION_EXPIRED") && !t.reasons.includes("PROVIDER_MISMATCH");
|
|
13051
13051
|
}
|
|
13052
13052
|
const Gi = {
|
|
@@ -13072,7 +13072,7 @@ function hy(t) {
|
|
|
13072
13072
|
function my() {
|
|
13073
13073
|
return Ut;
|
|
13074
13074
|
}
|
|
13075
|
-
function
|
|
13075
|
+
function Xb(t) {
|
|
13076
13076
|
const e = t.reasons.some(
|
|
13077
13077
|
(r) => py.includes(r)
|
|
13078
13078
|
);
|
|
@@ -13083,20 +13083,20 @@ function Qb(t) {
|
|
|
13083
13083
|
isLoading: !1
|
|
13084
13084
|
}, Ts();
|
|
13085
13085
|
}
|
|
13086
|
-
function
|
|
13086
|
+
function Zb(t) {
|
|
13087
13087
|
Ut = { ...Ut, isLoading: t }, Ts();
|
|
13088
13088
|
}
|
|
13089
|
-
function
|
|
13089
|
+
function e_() {
|
|
13090
13090
|
Ut = { ...Gi }, Ts();
|
|
13091
13091
|
}
|
|
13092
|
-
function
|
|
13092
|
+
function t_() {
|
|
13093
13093
|
return sc(
|
|
13094
13094
|
hy,
|
|
13095
13095
|
my
|
|
13096
13096
|
);
|
|
13097
13097
|
}
|
|
13098
13098
|
const gy = (t) => oe + `/EpisodeOfCare?_revinclude=Encounter:episode-of-care&_id=${t}`;
|
|
13099
|
-
async function
|
|
13099
|
+
async function r_(t) {
|
|
13100
13100
|
const e = t.join(","), r = await H(gy(e));
|
|
13101
13101
|
if (r.total === 0)
|
|
13102
13102
|
throw new Error(
|
|
@@ -13131,15 +13131,15 @@ const jn = /* @__PURE__ */ new Map(), yy = async (t) => {
|
|
|
13131
13131
|
message: r ? `${o.message}~${JSON.stringify(r)}` : o.message,
|
|
13132
13132
|
module: n
|
|
13133
13133
|
};
|
|
13134
|
-
return await
|
|
13135
|
-
},
|
|
13134
|
+
return await Ee(Fd, a), { logged: !0 };
|
|
13135
|
+
}, n_ = () => qd(async (e) => {
|
|
13136
13136
|
await Ey(
|
|
13137
13137
|
e.patientUuid,
|
|
13138
13138
|
e.eventType,
|
|
13139
13139
|
e.messageParams,
|
|
13140
13140
|
e.module
|
|
13141
13141
|
);
|
|
13142
|
-
}),
|
|
13142
|
+
}), s_ = async () => {
|
|
13143
13143
|
try {
|
|
13144
13144
|
const t = await H(us);
|
|
13145
13145
|
return t.user ? t.user.privileges : null;
|
|
@@ -13147,7 +13147,7 @@ const jn = /* @__PURE__ */ new Map(), yy = async (t) => {
|
|
|
13147
13147
|
const { message: e } = qr(t);
|
|
13148
13148
|
throw new Error(e);
|
|
13149
13149
|
}
|
|
13150
|
-
},
|
|
13150
|
+
}, o_ = (t, e) => {
|
|
13151
13151
|
if (!t || t.length === 0)
|
|
13152
13152
|
return !1;
|
|
13153
13153
|
if (!e || e.length === 0)
|
|
@@ -13187,12 +13187,12 @@ const jn = /* @__PURE__ */ new Map(), yy = async (t) => {
|
|
|
13187
13187
|
editable: n.editable
|
|
13188
13188
|
}))
|
|
13189
13189
|
};
|
|
13190
|
-
},
|
|
13190
|
+
}, a_ = async (t) => {
|
|
13191
13191
|
const e = await by(t), r = tn();
|
|
13192
13192
|
return e.map(
|
|
13193
13193
|
(n) => vy(n, r)
|
|
13194
13194
|
);
|
|
13195
|
-
},
|
|
13195
|
+
}, i_ = async (t) => {
|
|
13196
13196
|
const e = await fetch(Xg(t));
|
|
13197
13197
|
if (!e.ok)
|
|
13198
13198
|
throw new Error(
|
|
@@ -13226,7 +13226,7 @@ const jn = /* @__PURE__ */ new Map(), yy = async (t) => {
|
|
|
13226
13226
|
schema: n,
|
|
13227
13227
|
translations: u
|
|
13228
13228
|
};
|
|
13229
|
-
},
|
|
13229
|
+
}, c_ = async (t, e, r) => {
|
|
13230
13230
|
let n;
|
|
13231
13231
|
e && e.length > 0 && (n = e.join(","));
|
|
13232
13232
|
const s = ty(t, r, n), o = await H(s);
|
|
@@ -13271,7 +13271,7 @@ function Ji(t, e) {
|
|
|
13271
13271
|
};
|
|
13272
13272
|
return n(r.controls);
|
|
13273
13273
|
}
|
|
13274
|
-
function
|
|
13274
|
+
function u_(t, e) {
|
|
13275
13275
|
if (!t.controls || t.controls.length === 0)
|
|
13276
13276
|
return [];
|
|
13277
13277
|
const r = [], n = (/* @__PURE__ */ new Date()).toISOString();
|
|
@@ -13316,7 +13316,7 @@ function c_(t, e) {
|
|
|
13316
13316
|
s.interpretation && (a.interpretation = s.interpretation), s.comment && (a.comment = s.comment), r.push(a);
|
|
13317
13317
|
}), r;
|
|
13318
13318
|
}
|
|
13319
|
-
function
|
|
13319
|
+
function l_(t, e) {
|
|
13320
13320
|
if (!t || t.length === 0)
|
|
13321
13321
|
return {
|
|
13322
13322
|
controls: [],
|
|
@@ -13349,7 +13349,7 @@ function u_(t, e) {
|
|
|
13349
13349
|
metadata: { formMetadata: e }
|
|
13350
13350
|
};
|
|
13351
13351
|
}
|
|
13352
|
-
function
|
|
13352
|
+
function d_(t) {
|
|
13353
13353
|
const e = (n) => {
|
|
13354
13354
|
const s = (u) => u == null ? null : typeof u == "string" || typeof u == "number" || typeof u == "boolean" || typeof u == "object" ? u : 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 = {
|
|
13355
13355
|
concept: {
|
|
@@ -13369,11 +13369,11 @@ function l_(t) {
|
|
|
13369
13369
|
};
|
|
13370
13370
|
return (t?.filter((n) => n.uuid && n.voided ? !0 : !(!n.uuid && n.voided || n.value && typeof n.value == "string" && n.value.endsWith("voided"))) ?? []).map(e);
|
|
13371
13371
|
}
|
|
13372
|
-
function
|
|
13372
|
+
function f_(t) {
|
|
13373
13373
|
if (!(!t || typeof t != "object"))
|
|
13374
13374
|
return "toJS" in t && typeof t.toJS == "function" ? t.toJS() : t;
|
|
13375
13375
|
}
|
|
13376
|
-
function
|
|
13376
|
+
function p_(t, e) {
|
|
13377
13377
|
!t || !Array.isArray(t.children) || t.children.forEach((r) => {
|
|
13378
13378
|
r && typeof r == "object" && Qi(
|
|
13379
13379
|
r,
|
|
@@ -13403,7 +13403,7 @@ function Qi(t, e) {
|
|
|
13403
13403
|
);
|
|
13404
13404
|
});
|
|
13405
13405
|
}
|
|
13406
|
-
const Ty = K + "/bahmnicore/diseaseSummaryData?",
|
|
13406
|
+
const Ty = K + "/bahmnicore/diseaseSummaryData?", h_ = async (t, e, r, n) => {
|
|
13407
13407
|
const s = new URLSearchParams({
|
|
13408
13408
|
groupBy: n,
|
|
13409
13409
|
latestCount: e.toString(),
|
|
@@ -13414,7 +13414,7 @@ const Ty = K + "/bahmnicore/diseaseSummaryData?", p_ = async (t, e, r, n) => {
|
|
|
13414
13414
|
});
|
|
13415
13415
|
const o = Ty + s.toString();
|
|
13416
13416
|
return H(o);
|
|
13417
|
-
}, Rs = "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)", Ry = (t) => `${K}/bahmniprogramenrollment?patient=${t}&v=${Rs}`, Sy = (t, e = 15, r = 0) => `${K}/bahmniprogramenrollment?patient=${t}&v=${Rs}&limit=${e}&startIndex=${r}&totalCount=true`, Xi = (t) => `${K}/bahmniprogramenrollment/${t}`, Oy = (t) => `${Xi(t)}?v=${Rs}`,
|
|
13417
|
+
}, Rs = "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)", Ry = (t) => `${K}/bahmniprogramenrollment?patient=${t}&v=${Rs}`, Sy = (t, e = 15, r = 0) => `${K}/bahmniprogramenrollment?patient=${t}&v=${Rs}&limit=${e}&startIndex=${r}&totalCount=true`, Xi = (t) => `${K}/bahmniprogramenrollment/${t}`, Oy = (t) => `${Xi(t)}?v=${Rs}`, m_ = async (t) => await H(Ry(t)), g_ = async (t, e = 15, r = 1) => {
|
|
13418
13418
|
const n = (r - 1) * e, s = await H(
|
|
13419
13419
|
Sy(t, e, n)
|
|
13420
13420
|
);
|
|
@@ -13422,7 +13422,7 @@ const Ty = K + "/bahmnicore/diseaseSummaryData?", p_ = async (t, e, r, n) => {
|
|
|
13422
13422
|
programs: s.results,
|
|
13423
13423
|
total: s.totalCount
|
|
13424
13424
|
};
|
|
13425
|
-
},
|
|
13425
|
+
}, y_ = async (t) => await H(Oy(t)), w_ = async (t, e) => {
|
|
13426
13426
|
const r = {
|
|
13427
13427
|
uuid: t,
|
|
13428
13428
|
states: [
|
|
@@ -13431,12 +13431,12 @@ const Ty = K + "/bahmnicore/diseaseSummaryData?", p_ = async (t, e, r, n) => {
|
|
|
13431
13431
|
}
|
|
13432
13432
|
]
|
|
13433
13433
|
};
|
|
13434
|
-
return await
|
|
13434
|
+
return await Ee(
|
|
13435
13435
|
Xi(t),
|
|
13436
13436
|
r
|
|
13437
13437
|
);
|
|
13438
13438
|
};
|
|
13439
|
-
function
|
|
13439
|
+
function E_(t) {
|
|
13440
13440
|
if (t.states.length === 0)
|
|
13441
13441
|
return null;
|
|
13442
13442
|
let e;
|
|
@@ -13452,7 +13452,7 @@ function w_(t) {
|
|
|
13452
13452
|
e = t.states.find((r) => r.endDate === null);
|
|
13453
13453
|
return e ? Fh(e.state.concept.names) ?? e.state.concept.display : null;
|
|
13454
13454
|
}
|
|
13455
|
-
function
|
|
13455
|
+
function b_(t, e) {
|
|
13456
13456
|
if (e.length === 0)
|
|
13457
13457
|
return {};
|
|
13458
13458
|
const r = {};
|
|
@@ -13464,12 +13464,12 @@ function E_(t, e) {
|
|
|
13464
13464
|
}
|
|
13465
13465
|
return r;
|
|
13466
13466
|
}
|
|
13467
|
-
const es = "consultation:saved",
|
|
13467
|
+
const es = "consultation:saved", __ = (t) => {
|
|
13468
13468
|
const e = new CustomEvent(es, {
|
|
13469
13469
|
detail: t
|
|
13470
13470
|
});
|
|
13471
13471
|
window.dispatchEvent(e);
|
|
13472
|
-
},
|
|
13472
|
+
}, v_ = (t, e = []) => {
|
|
13473
13473
|
const r = xt(t);
|
|
13474
13474
|
rt(() => {
|
|
13475
13475
|
r.current = t;
|
|
@@ -13482,17 +13482,17 @@ const es = "consultation:saved", b_ = (t) => {
|
|
|
13482
13482
|
window.removeEventListener(es, n);
|
|
13483
13483
|
};
|
|
13484
13484
|
}, e);
|
|
13485
|
-
}, ts = "cdss:check", rs = "cdss:results",
|
|
13485
|
+
}, ts = "cdss:check", rs = "cdss:results", T_ = (t) => {
|
|
13486
13486
|
const e = new CustomEvent(ts, {
|
|
13487
13487
|
detail: t
|
|
13488
13488
|
});
|
|
13489
13489
|
globalThis.dispatchEvent(e);
|
|
13490
|
-
},
|
|
13490
|
+
}, R_ = (t) => {
|
|
13491
13491
|
const e = new CustomEvent(rs, {
|
|
13492
13492
|
detail: t
|
|
13493
13493
|
});
|
|
13494
13494
|
globalThis.dispatchEvent(e);
|
|
13495
|
-
},
|
|
13495
|
+
}, S_ = (t) => {
|
|
13496
13496
|
const e = xt(t);
|
|
13497
13497
|
rt(() => {
|
|
13498
13498
|
e.current = t;
|
|
@@ -13505,7 +13505,7 @@ const es = "consultation:saved", b_ = (t) => {
|
|
|
13505
13505
|
globalThis.removeEventListener(ts, r);
|
|
13506
13506
|
};
|
|
13507
13507
|
}, []);
|
|
13508
|
-
},
|
|
13508
|
+
}, O_ = (t) => {
|
|
13509
13509
|
const e = xt(t);
|
|
13510
13510
|
rt(() => {
|
|
13511
13511
|
e.current = t;
|
|
@@ -13541,13 +13541,13 @@ async function Ay(t, e) {
|
|
|
13541
13541
|
const r = Zi(t, e);
|
|
13542
13542
|
return H(r);
|
|
13543
13543
|
}
|
|
13544
|
-
async function
|
|
13544
|
+
async function A_(t, e) {
|
|
13545
13545
|
const n = ((await Ay(t, e)).entry ?? []).filter(
|
|
13546
13546
|
(s) => !!s.resource
|
|
13547
13547
|
);
|
|
13548
13548
|
return ec(n);
|
|
13549
13549
|
}
|
|
13550
|
-
async function
|
|
13550
|
+
async function N_(t, e, r = 10, n = 1) {
|
|
13551
13551
|
const s = (n - 1) * r, o = Zi(
|
|
13552
13552
|
t,
|
|
13553
13553
|
e,
|
|
@@ -13562,17 +13562,17 @@ async function A_(t, e, r = 10, n = 1) {
|
|
|
13562
13562
|
};
|
|
13563
13563
|
}
|
|
13564
13564
|
const Ny = (t) => `${K}/location?operator=ALL&s=byTags&tags=${encodeURIComponent(t)}&v=custom:(uuid,display,childLocations:(uuid,display,retired))`, Py = (t) => `${oe}/Location?_tag=${encodeURIComponent(t)}`;
|
|
13565
|
-
async function
|
|
13565
|
+
async function P_(t) {
|
|
13566
13566
|
return (await H(Ny(t))).results ?? [];
|
|
13567
13567
|
}
|
|
13568
|
-
async function
|
|
13568
|
+
async function I_(t) {
|
|
13569
13569
|
return await H(Py(t));
|
|
13570
13570
|
}
|
|
13571
13571
|
const Iy = oe + "/Immunization", $y = (t, e) => {
|
|
13572
13572
|
let r = `${Iy}?patient=${t}&_sort=-date&_count=100`;
|
|
13573
13573
|
return e && (r += `&status=${e}`), r;
|
|
13574
13574
|
};
|
|
13575
|
-
async function
|
|
13575
|
+
async function $_(t, e) {
|
|
13576
13576
|
return (await Dy(t, e)).entry?.filter((n) => n.resource?.resourceType === "Immunization").map((n) => n.resource) ?? [];
|
|
13577
13577
|
}
|
|
13578
13578
|
async function Dy(t, e) {
|
|
@@ -13606,7 +13606,7 @@ async function xy(t) {
|
|
|
13606
13606
|
}, n.readAsDataURL(t);
|
|
13607
13607
|
});
|
|
13608
13608
|
}
|
|
13609
|
-
async function
|
|
13609
|
+
async function D_(t, e, r) {
|
|
13610
13610
|
const n = await xy(t), s = {
|
|
13611
13611
|
content: n.content,
|
|
13612
13612
|
encounterTypeName: e,
|
|
@@ -13615,7 +13615,7 @@ async function $_(t, e, r) {
|
|
|
13615
13615
|
format: n.format,
|
|
13616
13616
|
patientUuid: r
|
|
13617
13617
|
};
|
|
13618
|
-
return
|
|
13618
|
+
return Ee(Cy, s);
|
|
13619
13619
|
}
|
|
13620
13620
|
const ky = "/bahmni_config/openmrs/apps", tc = "org.bahmni.home.dashboard", My = (t) => Array.isArray(t) ? t : Object.values(t), Uy = async (t = "home") => {
|
|
13621
13621
|
try {
|
|
@@ -13632,10 +13632,10 @@ const ky = "/bahmni_config/openmrs/apps", tc = "org.bahmni.home.dashboard", My =
|
|
|
13632
13632
|
}), Fy = (t, e) => e === void 0 ? t : t.filter((r) => r.requiredPrivilege ? e.includes(r.requiredPrivilege) : !0), jy = (t) => {
|
|
13633
13633
|
const e = navigator.onLine;
|
|
13634
13634
|
return t.filter((r) => !(r.exclusiveOnlineModule && !e || r.exclusiveOfflineModule && e));
|
|
13635
|
-
}, Vy = (t) => [...t].sort((e, r) => (e.order ?? 0) - (r.order ?? 0)),
|
|
13635
|
+
}, Vy = (t) => [...t].sort((e, r) => (e.order ?? 0) - (r.order ?? 0)), C_ = async (t = tc, e) => {
|
|
13636
13636
|
const r = await Uy("home"), n = qy(r, t), s = Fy(n, e), o = jy(s);
|
|
13637
13637
|
return Vy(o);
|
|
13638
|
-
}, Hy = (t, e) => K + `/availableStocks?productUuid=${t}&locationUuid=${e}`,
|
|
13638
|
+
}, Hy = (t, e) => K + `/availableStocks?productUuid=${t}&locationUuid=${e}`, L_ = async (t, e) => await H(
|
|
13639
13639
|
Hy(t, e)
|
|
13640
13640
|
), By = (t, e, r) => {
|
|
13641
13641
|
const n = t.find((o) => o.server === e);
|
|
@@ -13663,7 +13663,7 @@ const ky = "/bahmni_config/openmrs/apps", tc = "org.bahmni.home.dashboard", My =
|
|
|
13663
13663
|
entry: s
|
|
13664
13664
|
});
|
|
13665
13665
|
}), r;
|
|
13666
|
-
},
|
|
13666
|
+
}, x_ = async (t, e, r, n) => {
|
|
13667
13667
|
const s = By(t, e.server, e.service), { serverConfig: o, serviceConfig: a } = s, i = zy(
|
|
13668
13668
|
n,
|
|
13669
13669
|
a.contextResourceMap
|
|
@@ -13677,11 +13677,11 @@ const ky = "/bahmni_config/openmrs/apps", tc = "org.bahmni.home.dashboard", My =
|
|
|
13677
13677
|
...r.episodeId && { episodeId: r.episodeId }
|
|
13678
13678
|
}
|
|
13679
13679
|
};
|
|
13680
|
-
return a.prefetch && (u.prefetch = a.prefetch), (await
|
|
13680
|
+
return a.prefetch && (u.prefetch = a.prefetch), (await Ee(
|
|
13681
13681
|
c,
|
|
13682
13682
|
u
|
|
13683
13683
|
)).cards || [];
|
|
13684
|
-
},
|
|
13684
|
+
}, k_ = (t, e) => {
|
|
13685
13685
|
const r = [];
|
|
13686
13686
|
return t.forEach((n) => {
|
|
13687
13687
|
!n.suggestions || n.suggestions.length === 0 || n.suggestions.forEach((s) => {
|
|
@@ -13698,11 +13698,11 @@ const ky = "/bahmni_config/openmrs/apps", tc = "org.bahmni.home.dashboard", My =
|
|
|
13698
13698
|
});
|
|
13699
13699
|
}), r;
|
|
13700
13700
|
};
|
|
13701
|
-
async function
|
|
13701
|
+
async function M_() {
|
|
13702
13702
|
return H(`${ls}/templates`);
|
|
13703
13703
|
}
|
|
13704
|
-
async function
|
|
13705
|
-
return (await
|
|
13704
|
+
async function U_(t) {
|
|
13705
|
+
return (await Ee(
|
|
13706
13706
|
`${ls}/render`,
|
|
13707
13707
|
t
|
|
13708
13708
|
)).html;
|
|
@@ -13711,7 +13711,7 @@ const Yy = (t, e, r) => {
|
|
|
13711
13711
|
let s = oe + "/Task?_sort=-_lastUpdated";
|
|
13712
13712
|
return t && (s += `&subject:Patient=${t}`), e && (s += `&based-on=${e}`), r && r.length > 0 && (s += `&encounter=${r.join(",")}`), s;
|
|
13713
13713
|
};
|
|
13714
|
-
async function
|
|
13714
|
+
async function q_(t, e, r) {
|
|
13715
13715
|
return H(
|
|
13716
13716
|
Yy(t, e, r)
|
|
13717
13717
|
);
|
|
@@ -13754,62 +13754,63 @@ export {
|
|
|
13754
13754
|
Ql as HL7_CONDITION_CLINICAL_STATUS_CODE_SYSTEM,
|
|
13755
13755
|
Tw as HL7_CONDITION_VERIFICATION_STATUS_CODE_SYSTEM,
|
|
13756
13756
|
Lw as INTERPRETATION_TO_CODE,
|
|
13757
|
-
|
|
13757
|
+
BE as ISO_DATE_FORMAT,
|
|
13758
13758
|
Ku as LOGIN_PATH,
|
|
13759
|
-
|
|
13759
|
+
Kb as MATCH_REASON_MESSAGES,
|
|
13760
13760
|
tE as MAX_NAME_LENGTH,
|
|
13761
13761
|
eE as MAX_PATIENT_AGE_YEARS,
|
|
13762
13762
|
rE as MAX_PHONE_NUMBER_LENGTH,
|
|
13763
|
-
|
|
13763
|
+
mb as MEDICATIONS_INPUT_CONTROL_KEY,
|
|
13764
13764
|
He as MedicationStatus,
|
|
13765
13765
|
oe as OPENMRS_FHIR_R4,
|
|
13766
13766
|
K as OPENMRS_REST_V1,
|
|
13767
|
-
|
|
13768
|
-
|
|
13769
|
-
|
|
13770
|
-
|
|
13771
|
-
|
|
13772
|
-
|
|
13773
|
-
|
|
13767
|
+
$b as ORDER_TYPE_QUERY_KEY,
|
|
13768
|
+
Ib as PENDING_REPORT_STATUSES,
|
|
13769
|
+
Pb as PROCESSED_REPORT_STATUSES,
|
|
13770
|
+
Mb as USER_PINNED_PREFERENCE_URL,
|
|
13771
|
+
YE as calculateAge,
|
|
13772
|
+
XE as calculateEndDate,
|
|
13773
|
+
KE as calculateOnsetDate,
|
|
13774
13774
|
zw as camelToScreamingSnakeCase,
|
|
13775
|
-
|
|
13775
|
+
Qb as canResumeOwnInSessionEncounter,
|
|
13776
13776
|
Mw as capitalize,
|
|
13777
13777
|
NE as checkIfActiveVisitExists,
|
|
13778
|
-
|
|
13779
|
-
|
|
13778
|
+
kE as checkInAppointment,
|
|
13779
|
+
zE as computeAgeDetails,
|
|
13780
|
+
f_ as convertImmutableToPlainObject,
|
|
13780
13781
|
Ih as convertTo24HourFormat,
|
|
13781
13782
|
Gw as convertToSentenceCase,
|
|
13782
|
-
|
|
13783
|
-
|
|
13783
|
+
HE as createAppointmentUnavailability,
|
|
13784
|
+
zb as createFhirEncounter,
|
|
13784
13785
|
fE as createFhirPatient,
|
|
13785
13786
|
lE as createPatient,
|
|
13786
13787
|
PE as createVisitForPatient,
|
|
13787
13788
|
ti as del,
|
|
13788
|
-
|
|
13789
|
+
qE as deleteAppointmentService,
|
|
13789
13790
|
ed as deleteCookie,
|
|
13790
13791
|
Ud as dispatchAuditEvent,
|
|
13791
|
-
|
|
13792
|
-
|
|
13793
|
-
|
|
13794
|
-
|
|
13795
|
-
|
|
13796
|
-
|
|
13797
|
-
|
|
13798
|
-
|
|
13799
|
-
|
|
13800
|
-
|
|
13792
|
+
T_ as dispatchCDSSCheck,
|
|
13793
|
+
R_ as dispatchCDSSResults,
|
|
13794
|
+
__ as dispatchConsultationSaved,
|
|
13795
|
+
ZE as doDateRangesOverlap,
|
|
13796
|
+
b_ as extractAttributes,
|
|
13797
|
+
p_ as extractNotesFromFormData,
|
|
13798
|
+
jb as fetchAllProviders,
|
|
13799
|
+
ab as fetchAndFormatAllergenConcepts,
|
|
13800
|
+
i_ as fetchFormMetadata,
|
|
13801
|
+
yb as fetchMedicationOrdersMetadata,
|
|
13801
13802
|
Uy as fetchModuleExtensions,
|
|
13802
|
-
|
|
13803
|
+
a_ as fetchObservationForms,
|
|
13803
13804
|
oE as fetchPatientPhotoFromUrl,
|
|
13804
|
-
|
|
13805
|
-
|
|
13805
|
+
Rb as fetchQualityAssessment,
|
|
13806
|
+
ib as fetchReactionConcepts,
|
|
13806
13807
|
jy as filterByOnlineStatus,
|
|
13807
13808
|
Fy as filterByPrivilege,
|
|
13808
|
-
|
|
13809
|
+
k_ as filterCdsCardsForItems,
|
|
13809
13810
|
Vw as filterReplacementEntries,
|
|
13810
|
-
|
|
13811
|
-
|
|
13812
|
-
|
|
13811
|
+
Wb as findActiveEncounterInSession,
|
|
13812
|
+
WE as formatDateDistance,
|
|
13813
|
+
GE as formatDateTime,
|
|
13813
13814
|
Hw as formatUrl,
|
|
13814
13815
|
kw as generateId,
|
|
13815
13816
|
pE as generateIdentifier,
|
|
@@ -13818,95 +13819,95 @@ export {
|
|
|
13818
13819
|
zi as getActiveVisit,
|
|
13819
13820
|
Yd as getActiveVisitByPatient,
|
|
13820
13821
|
gE as getAddressHierarchyEntries,
|
|
13821
|
-
|
|
13822
|
+
UE as getAllAppointmentServices,
|
|
13822
13823
|
Yh as getAllergies,
|
|
13823
|
-
|
|
13824
|
-
|
|
13824
|
+
ME as getAppointmentById,
|
|
13825
|
+
VE as getAppointmentUnavailabilities,
|
|
13825
13826
|
Jw as getAvailableLocations,
|
|
13826
|
-
|
|
13827
|
-
|
|
13828
|
-
|
|
13829
|
-
|
|
13830
|
-
|
|
13831
|
-
|
|
13827
|
+
L_ as getAvailableStocks,
|
|
13828
|
+
Cb as getCategoryUuidFromOrderTypes,
|
|
13829
|
+
sb as getConceptById,
|
|
13830
|
+
db as getConditionPage,
|
|
13831
|
+
lb as getConditions,
|
|
13832
|
+
kb as getConfig,
|
|
13832
13833
|
di as getCookieByName,
|
|
13833
|
-
|
|
13834
|
-
|
|
13834
|
+
Fb as getCurrentProvider,
|
|
13835
|
+
E_ as getCurrentStateName,
|
|
13835
13836
|
Kw as getCurrentUser,
|
|
13836
|
-
|
|
13837
|
+
s_ as getCurrentUserPrivileges,
|
|
13837
13838
|
Ww as getDefaultDateFormat,
|
|
13838
|
-
|
|
13839
|
-
|
|
13840
|
-
|
|
13841
|
-
|
|
13839
|
+
hb as getDiagnosesPage,
|
|
13840
|
+
Ab as getDiagnosticReportBundle,
|
|
13841
|
+
Ob as getDiagnosticReports,
|
|
13842
|
+
N_ as getDocumentReferencePage,
|
|
13842
13843
|
Ay as getDocumentReferences,
|
|
13843
|
-
|
|
13844
|
+
Hb as getEncounterByUuid,
|
|
13844
13845
|
Yi as getEncounterSessionDuration,
|
|
13845
13846
|
my as getEncounterSessionSnapshot,
|
|
13846
|
-
|
|
13847
|
-
|
|
13847
|
+
r_ as getEncountersAndVisitsForEOC,
|
|
13848
|
+
xb as getExistingServiceRequestsForAllCategories,
|
|
13848
13849
|
qy as getExtensionsByPoint,
|
|
13849
|
-
|
|
13850
|
-
|
|
13851
|
-
|
|
13852
|
-
|
|
13853
|
-
|
|
13850
|
+
I_ as getFHIRLocationsByTag,
|
|
13851
|
+
Db as getFlattenedInvestigations,
|
|
13852
|
+
QE as getFormattedAge,
|
|
13853
|
+
cb as getFormattedAllergies,
|
|
13854
|
+
A_ as getFormattedDocumentReferences,
|
|
13854
13855
|
qr as getFormattedError,
|
|
13855
13856
|
sE as getFormattedPatientById,
|
|
13856
13857
|
mE as getGenders,
|
|
13857
13858
|
uE as getIdentifierData,
|
|
13858
13859
|
cE as getIdentifierTypes,
|
|
13859
13860
|
_E as getInputTypeForFormat,
|
|
13860
|
-
|
|
13861
|
-
|
|
13862
|
-
|
|
13863
|
-
|
|
13864
|
-
|
|
13861
|
+
Sb as getLabInvestigationsBundle,
|
|
13862
|
+
P_ as getLocationByTag,
|
|
13863
|
+
bb as getMedicationByUuid,
|
|
13864
|
+
Bb as getObservationsBundleByEncounterUuid,
|
|
13865
|
+
Lb as getOrderTypeNames,
|
|
13865
13866
|
ws as getOrderTypes,
|
|
13866
13867
|
yE as getOrderedAddressHierarchyLevels,
|
|
13867
13868
|
LE as getPastAppointments,
|
|
13868
|
-
|
|
13869
|
+
jE as getPastAppointmentsPage,
|
|
13869
13870
|
Pd as getPatientById,
|
|
13870
|
-
|
|
13871
|
-
|
|
13872
|
-
|
|
13871
|
+
pb as getPatientDiagnoses,
|
|
13872
|
+
c_ as getPatientFormData,
|
|
13873
|
+
$_ as getPatientImmunizations,
|
|
13873
13874
|
mm as getPatientMedicationBundle,
|
|
13874
|
-
|
|
13875
|
-
|
|
13875
|
+
gb as getPatientMedications,
|
|
13876
|
+
qb as getPatientObservations,
|
|
13876
13877
|
sy as getPatientObservationsBundle,
|
|
13877
|
-
|
|
13878
|
+
Ub as getPatientObservationsWithEncounterBundle,
|
|
13878
13879
|
wE as getPatientProfile,
|
|
13879
|
-
|
|
13880
|
-
|
|
13881
|
-
|
|
13882
|
-
|
|
13883
|
-
|
|
13880
|
+
m_ as getPatientPrograms,
|
|
13881
|
+
g_ as getPatientProgramsPage,
|
|
13882
|
+
_b as getPatientRadiologyInvestigationBundle,
|
|
13883
|
+
vb as getPatientRadiologyInvestigationBundleWithImagingStudy,
|
|
13884
|
+
Tb as getPatientRadiologyInvestigations,
|
|
13884
13885
|
bE as getPersonAttributeTypes,
|
|
13885
13886
|
xd as getPrimaryIdentifierType,
|
|
13886
13887
|
Fw as getPriorityByOrder,
|
|
13887
|
-
|
|
13888
|
-
|
|
13888
|
+
y_ as getProgramByUUID,
|
|
13889
|
+
Vb as getProviderLoginLocations,
|
|
13889
13890
|
EE as getRelationshipTypes,
|
|
13890
13891
|
zt as getServiceRequests,
|
|
13891
|
-
|
|
13892
|
-
|
|
13893
|
-
|
|
13894
|
-
|
|
13892
|
+
q_ as getTasks,
|
|
13893
|
+
M_ as getTemplates,
|
|
13894
|
+
tb as getTimeInMinutes,
|
|
13895
|
+
JE as getTodayDate,
|
|
13895
13896
|
CE as getUpcomingAppointments,
|
|
13896
|
-
|
|
13897
|
+
FE as getUpcomingAppointmentsPage,
|
|
13897
13898
|
fs as getUserLoginLocation,
|
|
13898
13899
|
tn as getUserPreferredLocale,
|
|
13899
|
-
|
|
13900
|
+
Eb as getVaccinations,
|
|
13900
13901
|
Bw as getValueType,
|
|
13901
|
-
|
|
13902
|
+
C_ as getVisibleModules,
|
|
13902
13903
|
AE as getVisitTypes,
|
|
13903
13904
|
uy as getVisits,
|
|
13904
|
-
|
|
13905
|
+
h_ as getVitalFlowSheetData,
|
|
13905
13906
|
jw as groupByDate,
|
|
13906
|
-
|
|
13907
|
+
o_ as hasPrivilege,
|
|
13907
13908
|
ww as initAppI18n,
|
|
13908
|
-
|
|
13909
|
-
|
|
13909
|
+
n_ as initializeAuditListener,
|
|
13910
|
+
x_ as invokeCDSSRule,
|
|
13910
13911
|
vE as isBooleanFormat,
|
|
13911
13912
|
TE as isConceptFormat,
|
|
13912
13913
|
SE as isDateFormat,
|
|
@@ -13915,52 +13916,52 @@ export {
|
|
|
13915
13916
|
OE as isTextFormat,
|
|
13916
13917
|
Ey as logAuditEvent,
|
|
13917
13918
|
Qw as logout,
|
|
13918
|
-
|
|
13919
|
+
ub as mapAllergyToInputEntry,
|
|
13919
13920
|
nE as mapGenderFromFhir,
|
|
13920
|
-
|
|
13921
|
+
fb as markConditionAsInactive,
|
|
13921
13922
|
yw as normalizeTranslationKey,
|
|
13922
|
-
|
|
13923
|
+
rb as notificationService,
|
|
13923
13924
|
td as parseQueryParams,
|
|
13924
13925
|
gw as patch,
|
|
13925
|
-
|
|
13926
|
+
Ee as post,
|
|
13926
13927
|
ds as put,
|
|
13927
13928
|
xw as refreshQueries,
|
|
13928
|
-
|
|
13929
|
-
|
|
13929
|
+
U_ as renderAsHtml,
|
|
13930
|
+
e_ as resetEncounterSession,
|
|
13930
13931
|
Yw as resolveComboBoxItems,
|
|
13931
|
-
|
|
13932
|
+
Jb as resolveEncounterMatchDecision,
|
|
13932
13933
|
Xw as saveUserLocation,
|
|
13933
13934
|
DE as searchAppointmentsByAttribute,
|
|
13934
|
-
|
|
13935
|
-
|
|
13935
|
+
ob as searchConceptByName,
|
|
13936
|
+
nb as searchConcepts,
|
|
13936
13937
|
Xn as searchEncounters,
|
|
13937
13938
|
kr as searchFHIRConcepts,
|
|
13938
13939
|
qh as searchFHIRConceptsByName,
|
|
13939
|
-
|
|
13940
|
+
wb as searchMedications,
|
|
13940
13941
|
iE as searchPatientByCustomAttribute,
|
|
13941
13942
|
aE as searchPatientByNameOrId,
|
|
13942
13943
|
Uw as setCookie,
|
|
13943
|
-
|
|
13944
|
-
|
|
13945
|
-
|
|
13946
|
-
|
|
13944
|
+
Xb as setEncounterSessionDecision,
|
|
13945
|
+
Zb as setEncounterSessionLoading,
|
|
13946
|
+
Gb as shouldEnableEncounterFilter,
|
|
13947
|
+
eb as sortByDate,
|
|
13947
13948
|
Vy as sortByOrder,
|
|
13948
13949
|
hy as subscribeEncounterSession,
|
|
13949
|
-
|
|
13950
|
-
|
|
13951
|
-
|
|
13950
|
+
d_ as transformContainerObservationsToForm2Observations,
|
|
13951
|
+
u_ as transformFormDataToObservations,
|
|
13952
|
+
l_ as transformObservationsToFormData,
|
|
13952
13953
|
xE as updateAppointmentStatus,
|
|
13953
|
-
|
|
13954
|
-
|
|
13954
|
+
Nb as updateDiagnosticReportBundle,
|
|
13955
|
+
Yb as updateFhirEncounter,
|
|
13955
13956
|
hE as updateFhirPatient,
|
|
13956
13957
|
dE as updatePatient,
|
|
13957
|
-
|
|
13958
|
+
w_ as updateProgramState,
|
|
13958
13959
|
Zw as updateSessionLocation,
|
|
13959
|
-
|
|
13960
|
-
|
|
13961
|
-
|
|
13960
|
+
D_ as uploadDocument,
|
|
13961
|
+
S_ as useCDSSCheckListener,
|
|
13962
|
+
O_ as useCDSSResultsListener,
|
|
13962
13963
|
Ew as useCamera,
|
|
13963
|
-
|
|
13964
|
-
|
|
13965
|
-
|
|
13964
|
+
t_ as useEncounterSessionStore,
|
|
13965
|
+
v_ as useSubscribeConsultationSaved,
|
|
13966
|
+
V_ as useTranslation
|
|
13966
13967
|
};
|