@bahmni/services 0.0.1-dev.281 → 0.0.1-dev.286
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/encounterService/encounterService.d.ts +7 -0
- package/dist/encounterService/encounterService.d.ts.map +1 -1
- package/dist/encounterService/index.d.ts +1 -1
- package/dist/encounterService/index.d.ts.map +1 -1
- package/dist/encounterSessionService/constants.d.ts +1 -1
- package/dist/encounterSessionService/constants.d.ts.map +1 -1
- package/dist/encounterSessionService/encounterMatchDecisionMapper.d.ts.map +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +281 -277
- package/dist/medicationRequestService/constants.d.ts +1 -0
- package/dist/medicationRequestService/constants.d.ts.map +1 -1
- package/dist/medicationRequestService/index.d.ts +1 -0
- package/dist/medicationRequestService/index.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { initReactI18next as tc } from "react-i18next";
|
|
2
|
-
import { useTranslation as
|
|
2
|
+
import { useTranslation as D_ } from "react-i18next";
|
|
3
3
|
import { useRef as xt, useCallback as fn, useEffect as tt, useSyncExternalStore as rc } from "react";
|
|
4
4
|
function Ia(t, e) {
|
|
5
5
|
return function() {
|
|
@@ -1457,7 +1457,7 @@ const ts = "1.16.0", Ls = 64 * 1024, { isFunction: Bt } = $, xs = (t, ...e) => {
|
|
|
1457
1457
|
responseType: L,
|
|
1458
1458
|
headers: N,
|
|
1459
1459
|
withCredentials: k = "same-origin",
|
|
1460
|
-
fetchOptions:
|
|
1460
|
+
fetchOptions: B,
|
|
1461
1461
|
maxContentLength: V,
|
|
1462
1462
|
maxBodyLength: J
|
|
1463
1463
|
} = Ya(g);
|
|
@@ -1512,7 +1512,7 @@ const ts = "1.16.0", Ls = 64 * 1024, { isFunction: Bt } = $, xs = (t, ...e) => {
|
|
|
1512
1512
|
}
|
|
1513
1513
|
N.set("User-Agent", "axios/" + ts, !1);
|
|
1514
1514
|
const E = {
|
|
1515
|
-
...
|
|
1515
|
+
...B,
|
|
1516
1516
|
signal: oe,
|
|
1517
1517
|
method: b.toUpperCase(),
|
|
1518
1518
|
headers: N.normalize().toJSON(),
|
|
@@ -1521,7 +1521,7 @@ const ts = "1.16.0", Ls = 64 * 1024, { isFunction: Bt } = $, xs = (t, ...e) => {
|
|
|
1521
1521
|
credentials: D ? k : void 0
|
|
1522
1522
|
};
|
|
1523
1523
|
q = c && new o(p, E);
|
|
1524
|
-
let O = await (c ? re(q,
|
|
1524
|
+
let O = await (c ? re(q, B) : re(p, E));
|
|
1525
1525
|
if (ne) {
|
|
1526
1526
|
const j = $.toFiniteNumber(O.headers.get("content-length"));
|
|
1527
1527
|
if (j != null && j > V)
|
|
@@ -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
|
|
2313
|
+
const H = async (t, e) => (await Ge.get(t, e)).data, Se = async (t, e) => (await Ge.post(t, e)).data, Za = async (t, e) => (await Ge.put(t, e)).data, pw = async (t, e) => (await Ge.patch(t, e)).data, ei = async (t) => (await Ge.delete(t)).data, W = (t) => typeof t == "string", Rt = () => {
|
|
2314
2314
|
let t, e;
|
|
2315
2315
|
const r = new Promise((n, s) => {
|
|
2316
2316
|
t = n, e = s;
|
|
@@ -2679,10 +2679,10 @@ class jr extends Xr {
|
|
|
2679
2679
|
return s ? (h.res = N, h.usedParams = this.getUsedParamsDetails(r), h) : N;
|
|
2680
2680
|
}
|
|
2681
2681
|
if (o) {
|
|
2682
|
-
const N = Array.isArray(S), k = N ? [] : {},
|
|
2682
|
+
const N = Array.isArray(S), k = N ? [] : {}, B = N ? T : v;
|
|
2683
2683
|
for (const V in S)
|
|
2684
2684
|
if (Object.prototype.hasOwnProperty.call(S, V)) {
|
|
2685
|
-
const J = `${
|
|
2685
|
+
const J = `${B}${o}${V}`;
|
|
2686
2686
|
b && !y ? k[V] = this.translate(J, {
|
|
2687
2687
|
...r,
|
|
2688
2688
|
defaultValue: Ys(w) ? w[V] : void 0,
|
|
@@ -3986,7 +3986,7 @@ class oi {
|
|
|
3986
3986
|
oi.type = "languageDetector";
|
|
3987
3987
|
const Vl = "en", ai = "NG_TRANSLATE_LANG_KEY", Hl = (t, e) => sl + `${t}/locales/locale_${e}.json`, Bl = (t, e) => `/bahmni_config/openmrs/i18n/${t}/locale_${e}.json`, Zr = () => localStorage.getItem(ai) ?? Vl, no = async (t) => {
|
|
3988
3988
|
try {
|
|
3989
|
-
const e = await
|
|
3989
|
+
const e = await H(t);
|
|
3990
3990
|
return e || (console.error(`Invalid response from ${t}`), {});
|
|
3991
3991
|
} catch (e) {
|
|
3992
3992
|
return console.error(`Failed to load translations from ${t}:`, e), {};
|
|
@@ -4210,7 +4210,7 @@ async function Iw() {
|
|
|
4210
4210
|
const e = decodeURIComponent(t).replace(
|
|
4211
4211
|
/^"(.*)"$/,
|
|
4212
4212
|
"$1"
|
|
4213
|
-
), r = await
|
|
4213
|
+
), r = await H(Xl(e));
|
|
4214
4214
|
return !r.results || r.results.length === 0 ? null : r.results[0];
|
|
4215
4215
|
} catch {
|
|
4216
4216
|
throw new Error(le.t("ERROR_FETCHING_USER_DETAILS"));
|
|
@@ -4226,9 +4226,9 @@ const as = () => {
|
|
|
4226
4226
|
if (!e.uuid)
|
|
4227
4227
|
throw new Error(le.t("ERROR_FETCHING_USER_LOCATION_DETAILS"));
|
|
4228
4228
|
return e;
|
|
4229
|
-
}, $w = async () => (await
|
|
4229
|
+
}, $w = async () => (await H(td("commons"))).find(
|
|
4230
4230
|
(r) => r.property === rd
|
|
4231
|
-
)?.value ?? null, Dw = async () => (await
|
|
4231
|
+
)?.value ?? null, Dw = async () => (await H(Zl)).results ?? [], Cw = async () => {
|
|
4232
4232
|
try {
|
|
4233
4233
|
await ei(nd), od.forEach((t) => {
|
|
4234
4234
|
Wl(t);
|
|
@@ -4293,7 +4293,7 @@ const as = () => {
|
|
|
4293
4293
|
throw new Error("Invalid patient UUID: UUID cannot be empty");
|
|
4294
4294
|
if (!vd.test(t))
|
|
4295
4295
|
throw new Error(`Invalid patient UUID format: ${t}`);
|
|
4296
|
-
return
|
|
4296
|
+
return H(li(t));
|
|
4297
4297
|
}, Od = (t) => !t.extension || !Array.isArray(t.extension) ? [] : t.extension.flatMap((e) => e.extension && Array.isArray(e.extension) ? e.extension.filter((r) => r.valueString).map((r) => r.valueString) : []), Ad = (t) => {
|
|
4298
4298
|
if (!t.name || t.name.length === 0)
|
|
4299
4299
|
return null;
|
|
@@ -4325,18 +4325,18 @@ const as = () => {
|
|
|
4325
4325
|
const e = await Rd(t);
|
|
4326
4326
|
return Id(e);
|
|
4327
4327
|
}, Fw = async (t) => {
|
|
4328
|
-
const e = await
|
|
4328
|
+
const e = await H(Sd(t), {
|
|
4329
4329
|
responseType: "blob"
|
|
4330
4330
|
});
|
|
4331
4331
|
return await Ql(e);
|
|
4332
4332
|
}, jw = async (t, e) => {
|
|
4333
4333
|
const r = as();
|
|
4334
|
-
return await
|
|
4334
|
+
return await H(
|
|
4335
4335
|
cd(t, r.uuid, e)
|
|
4336
4336
|
);
|
|
4337
4337
|
}, Vw = async (t, e, r, n, s) => {
|
|
4338
4338
|
const o = as();
|
|
4339
|
-
return await
|
|
4339
|
+
return await H(
|
|
4340
4340
|
ud(
|
|
4341
4341
|
t,
|
|
4342
4342
|
e,
|
|
@@ -4345,11 +4345,11 @@ const as = () => {
|
|
|
4345
4345
|
o.uuid
|
|
4346
4346
|
)
|
|
4347
4347
|
);
|
|
4348
|
-
}, Hw = async () =>
|
|
4348
|
+
}, Hw = async () => H(di), $d = async () => (await H(ld("core"))).find(
|
|
4349
4349
|
(r) => r.property === dd
|
|
4350
4350
|
)?.value ?? null, Bw = async () => {
|
|
4351
4351
|
const [t, e] = await Promise.all([
|
|
4352
|
-
|
|
4352
|
+
H(di),
|
|
4353
4353
|
$d()
|
|
4354
4354
|
]), r = [], n = /* @__PURE__ */ new Map();
|
|
4355
4355
|
if (!e)
|
|
@@ -4378,11 +4378,11 @@ const as = () => {
|
|
|
4378
4378
|
}, zw = async (t) => Se(fd, t), Yw = async (t, e) => Se(
|
|
4379
4379
|
pd(t),
|
|
4380
4380
|
e
|
|
4381
|
-
), Gw = (t) => Se(hd, t), Kw = (t) => Se(md(t), {}), Ww = (t, e) => Za(li(t), e), Jw = async () =>
|
|
4381
|
+
), Gw = (t) => Se(hd, t), Kw = (t) => Se(md(t), {}), Ww = (t, e) => Za(li(t), e), Jw = async () => H(ii("mrs.genders")), Qw = async (t, e, r = bd, n) => {
|
|
4382
4382
|
if (!e || e.length < _d)
|
|
4383
4383
|
return [];
|
|
4384
4384
|
try {
|
|
4385
|
-
return await
|
|
4385
|
+
return await H(
|
|
4386
4386
|
yd(t, e, r, n)
|
|
4387
4387
|
);
|
|
4388
4388
|
} catch (s) {
|
|
@@ -4390,9 +4390,9 @@ const as = () => {
|
|
|
4390
4390
|
`Failed to fetch address hierarchy for field "${t}": ${s instanceof Error ? s.message : "Unknown error"}`
|
|
4391
4391
|
);
|
|
4392
4392
|
}
|
|
4393
|
-
}, Xw = async () =>
|
|
4393
|
+
}, Xw = async () => H(wd), Zw = async (t) => H(gd(t)), eE = async () => {
|
|
4394
4394
|
try {
|
|
4395
|
-
return (await
|
|
4395
|
+
return (await H(
|
|
4396
4396
|
Ed
|
|
4397
4397
|
)).results.map((e) => ({
|
|
4398
4398
|
uuid: e.uuid,
|
|
@@ -4404,7 +4404,7 @@ const as = () => {
|
|
|
4404
4404
|
`Failed to fetch relationship types: ${t instanceof Error ? t.message : "Unknown error"}`
|
|
4405
4405
|
);
|
|
4406
4406
|
}
|
|
4407
|
-
}, tE = async () =>
|
|
4407
|
+
}, tE = async () => H(Td);
|
|
4408
4408
|
var Dd = /* @__PURE__ */ ((t) => (t.BOOLEAN = "java.lang.Boolean", t.BOOLEAN_DATATYPE = "org.openmrs.customdatatype.datatype.BooleanDatatype", t.CONCEPT = "org.openmrs.Concept", t.CODED_CONCEPT = "org.bahmni.module.bahmnicore.customdatatype.datatype.CodedConceptDatatype", t.CONCEPT_DATATYPE = "org.openmrs.customdatatype.datatype.ConceptDatatype", t.STRING = "java.lang.String", t.FREE_TEXT = "org.openmrs.customdatatype.datatype.FreeTextDatatype", t.REGEX_VALIDATED_TEXT = "org.openmrs.customdatatype.datatype.RegexValidatedTextDatatype", t.INTEGER = "java.lang.Integer", t.FLOAT = "java.lang.Float", t.ATTRIBUTABLE_DATE = "org.openmrs.util.AttributableDate", t.DATE_DATATYPE = "org.openmrs.customdatatype.datatype.DateDatatype", t))(Dd || {}), Cd = /* @__PURE__ */ ((t) => (t.CHECKBOX = "checkbox", t.DROPDOWN = "dropdown", t.TEXT = "text", t.NUMBER = "number", t.DATE = "date", t))(Cd || {});
|
|
4409
4409
|
const rE = (t) => t === "java.lang.Boolean" || t === "org.openmrs.customdatatype.datatype.BooleanDatatype" ? "checkbox" : t === "org.openmrs.Concept" || t === "org.bahmni.module.bahmnicore.customdatatype.datatype.CodedConceptDatatype" || t === "org.openmrs.customdatatype.datatype.ConceptDatatype" ? "dropdown" : t === "java.lang.Integer" || t === "java.lang.Float" ? "number" : t === "org.openmrs.util.AttributableDate" || t === "org.openmrs.customdatatype.datatype.DateDatatype" ? "date" : "text", nE = (t) => t === "java.lang.Boolean" || t === "org.openmrs.customdatatype.datatype.BooleanDatatype", sE = (t) => t === "org.openmrs.Concept" || t === "org.bahmni.module.bahmnicore.customdatatype.datatype.CodedConceptDatatype" || t === "org.openmrs.customdatatype.datatype.ConceptDatatype", oE = (t) => t === "java.lang.Integer" || t === "java.lang.Float", aE = (t) => t === "org.openmrs.util.AttributableDate" || t === "org.openmrs.customdatatype.datatype.DateDatatype", iE = (t) => t === "java.lang.String" || t === "org.openmrs.customdatatype.datatype.FreeTextDatatype" || t === "org.openmrs.customdatatype.datatype.RegexValidatedTextDatatype", Ld = (t) => {
|
|
4410
4410
|
const e = new CustomEvent("bahmni-audit-log", { detail: t });
|
|
@@ -4459,7 +4459,7 @@ const rE = (t) => t === "java.lang.Boolean" || t === "org.openmrs.customdatatype
|
|
|
4459
4459
|
}
|
|
4460
4460
|
}, kd = K + "/auditlog", Md = {
|
|
4461
4461
|
UNKNOWN_EVENT_TYPE: "AUDIT_LOG_ERROR_UNKNOWN_EVENT_TYPE"
|
|
4462
|
-
}, Ud = () => K + "/bahmnicore/config/bahmniencounter?callerContext=REGISTRATION_CONCEPTS", qd = K + "/visit", Fd = (t) => K + `/visit?patient=${t}&includeInactive=false&v=custom:(uuid,visitType,startDatetime,stopDatetime)`, jd = (t) => K + `/bahmnicore/visitLocation/${t}`, cE = async () =>
|
|
4462
|
+
}, Ud = () => K + "/bahmnicore/config/bahmniencounter?callerContext=REGISTRATION_CONCEPTS", qd = K + "/visit", Fd = (t) => K + `/visit?patient=${t}&includeInactive=false&v=custom:(uuid,visitType,startDatetime,stopDatetime)`, jd = (t) => K + `/bahmnicore/visitLocation/${t}`, cE = async () => H(Ud()), Vd = async (t) => H(Fd(t)), Hd = async (t) => H(jd(t)), Bd = async (t) => Se(qd, t), uE = async (t) => {
|
|
4463
4463
|
const e = await Vd(t);
|
|
4464
4464
|
return e?.results && e.results.length > 0;
|
|
4465
4465
|
}, lE = async (t, e) => {
|
|
@@ -7410,10 +7410,10 @@ const dE = {
|
|
|
7410
7410
|
return r !== void 0 && r > 0 && (c += `&_count=${r}`), n !== void 0 && n > 0 && (c += `&_getpagesoffset=${n}`), c;
|
|
7411
7411
|
}, hh = (t) => nn(t, "upcoming"), mh = (t, e) => nn(t, "past", e), gh = (t) => `${Ai}/${t}/status-change`, yh = K + "/appointmentService/all/full", wh = (t) => `${K}/appointmentService?uuid=${t}`, Eh = (t, e = 10, r = 0) => nn(t, "upcoming", e, r), bh = (t, e = 10, r = 0) => nn(t, "past", e, r), Ni = K + "/appointmentUnavailability", pE = async (t) => await Se(fh, t);
|
|
7412
7412
|
async function hE(t) {
|
|
7413
|
-
return await
|
|
7413
|
+
return await H(hh(t));
|
|
7414
7414
|
}
|
|
7415
7415
|
async function mE(t, e) {
|
|
7416
|
-
return await
|
|
7416
|
+
return await H(
|
|
7417
7417
|
mh(t, e)
|
|
7418
7418
|
);
|
|
7419
7419
|
}
|
|
@@ -7422,24 +7422,24 @@ const gE = async (t, e, r) => await Se(gh(t), {
|
|
|
7422
7422
|
onDate: r
|
|
7423
7423
|
});
|
|
7424
7424
|
async function yE(t) {
|
|
7425
|
-
return await
|
|
7425
|
+
return await H(ph(t));
|
|
7426
7426
|
}
|
|
7427
|
-
const wE = async () => await
|
|
7427
|
+
const wE = async () => await H(yh), EE = async (t) => {
|
|
7428
7428
|
await ei(wh(t));
|
|
7429
7429
|
};
|
|
7430
7430
|
async function bE(t, e = 10, r = 1) {
|
|
7431
|
-
const n = (r - 1) * e, s = await
|
|
7431
|
+
const n = (r - 1) * e, s = await H(
|
|
7432
7432
|
Eh(t, e, n)
|
|
7433
7433
|
);
|
|
7434
7434
|
return { bundle: s, total: s.total ?? s.entry?.length ?? 0 };
|
|
7435
7435
|
}
|
|
7436
7436
|
async function _E(t, e = 10, r = 1) {
|
|
7437
|
-
const n = (r - 1) * e, s = await
|
|
7437
|
+
const n = (r - 1) * e, s = await H(
|
|
7438
7438
|
bh(t, e, n)
|
|
7439
7439
|
);
|
|
7440
7440
|
return { bundle: s, total: s.total ?? s.entry?.length ?? 0 };
|
|
7441
7441
|
}
|
|
7442
|
-
const vE = async () => await
|
|
7442
|
+
const vE = async () => await H(Ni), SE = async (t) => {
|
|
7443
7443
|
await Se(Ni, t);
|
|
7444
7444
|
}, Pi = "dd/MM/yyyy", _h = "default_dateFormat", vh = "h:mm a", TE = "yyyy-MM-dd", De = {
|
|
7445
7445
|
PARSE_ERROR: "DATE_ERROR_PARSE",
|
|
@@ -7690,19 +7690,19 @@ const Ah = () => {
|
|
|
7690
7690
|
};
|
|
7691
7691
|
}, xE = Ah(), Nh = (t) => ie + `/ValueSet/${t}/$expand`, Ph = (t) => ie + `/ValueSet/$expand?filter=${encodeURIComponent(t)}`, Ih = (t, e, r) => K + `/bahmni/terminologies/concepts?limit=${e}&locale=${r}&term=${t}`, $h = (t) => K + `/concept/${t}`, Dh = (t) => `${K}/concept?s=byFullySpecifiedName&name=${encodeURIComponent(t)}`, Ch = "SHORT", Lh = "FULLY_SPECIFIED", kE = async (t, e = 20) => {
|
|
7692
7692
|
const r = Zr(), n = Ih(t, e, r);
|
|
7693
|
-
return
|
|
7693
|
+
return H(n);
|
|
7694
7694
|
}, Lr = async (t) => {
|
|
7695
7695
|
const e = Nh(t);
|
|
7696
|
-
return
|
|
7696
|
+
return H(e);
|
|
7697
7697
|
}, xh = async (t) => {
|
|
7698
7698
|
const e = `${Ph(t)}`;
|
|
7699
|
-
return
|
|
7699
|
+
return H(e);
|
|
7700
7700
|
};
|
|
7701
7701
|
async function ME(t) {
|
|
7702
|
-
return await
|
|
7702
|
+
return await H($h(t));
|
|
7703
7703
|
}
|
|
7704
7704
|
async function UE(t) {
|
|
7705
|
-
const e = Dh(t), r = await
|
|
7705
|
+
const e = Dh(t), r = await H(e);
|
|
7706
7706
|
return !r.results || r.results.length === 0 ? null : r.results[0];
|
|
7707
7707
|
}
|
|
7708
7708
|
function kh(t) {
|
|
@@ -7762,7 +7762,7 @@ const Mh = (t) => ie + `/AllergyIntolerance?patient=${t}&_count=100&_sort=-_last
|
|
|
7762
7762
|
return (await Lr(e)).compose?.include[0]?.concept ?? [];
|
|
7763
7763
|
};
|
|
7764
7764
|
async function jh(t) {
|
|
7765
|
-
return await
|
|
7765
|
+
return await H(`${Mh(t)}`);
|
|
7766
7766
|
}
|
|
7767
7767
|
async function Vh(t) {
|
|
7768
7768
|
return (await jh(t)).entry?.map(
|
|
@@ -7826,13 +7826,13 @@ const HE = "http://fhir.openmrs.org/code-system/encounter-type", $i = "problem-l
|
|
|
7826
7826
|
NORMAL: { code: "N", display: "Normal" }
|
|
7827
7827
|
}, Kh = ie + "/Condition", Wh = (t) => ie + `/Condition?category=${$i}&patient=${t}&_count=100&_sort=-_lastUpdated`, Jh = (t, e = 10, r = 0) => ie + `/Condition?category=${$i}&patient=${t}&_count=${e}&_getpagesoffset=${r}&_sort=-_lastUpdated`;
|
|
7828
7828
|
async function Qh(t) {
|
|
7829
|
-
return await
|
|
7829
|
+
return await H(`${Wh(t)}`);
|
|
7830
7830
|
}
|
|
7831
7831
|
async function rb(t) {
|
|
7832
7832
|
return (await Qh(t)).entry?.filter((n) => n.resource?.resourceType === "Condition").map((n) => n.resource) ?? [];
|
|
7833
7833
|
}
|
|
7834
7834
|
async function nb(t, e = 10, r = 1) {
|
|
7835
|
-
const n = (r - 1) * e, s = await
|
|
7835
|
+
const n = (r - 1) * e, s = await H(
|
|
7836
7836
|
Jh(t, e, n)
|
|
7837
7837
|
);
|
|
7838
7838
|
return {
|
|
@@ -7872,10 +7872,10 @@ const Xh = (t) => ie + `/Condition?category=${Di}&patient=${t}&_count=100&_sort=
|
|
|
7872
7872
|
}
|
|
7873
7873
|
], em = "confirmed", tm = "provisional";
|
|
7874
7874
|
async function rm(t) {
|
|
7875
|
-
return await
|
|
7875
|
+
return await H(Xh(t));
|
|
7876
7876
|
}
|
|
7877
7877
|
async function nm(t, e, r) {
|
|
7878
|
-
return await
|
|
7878
|
+
return await H(
|
|
7879
7879
|
Zh(t, e, r)
|
|
7880
7880
|
);
|
|
7881
7881
|
}
|
|
@@ -7946,7 +7946,7 @@ const Lt = {
|
|
|
7946
7946
|
}, cm = (t, e, r) => {
|
|
7947
7947
|
let s = `${ie + "/MedicationRequest?" + Lt.SORT + "&" + Lt.COUNT + "&" + Lt.INCLUDE_MEDICATION}&patient=${t}`;
|
|
7948
7948
|
return e && (s += `&code=${e}`), r && (s += `&encounter=${r}`), s;
|
|
7949
|
-
}, um = K + "/bahmnicore/config/drugOrders", lm = (t, e) => ie + `/Medication?name=${encodeURIComponent(t)}&_count=${e}&_sort=-_lastUpdated`, dm = ie + "/Medication?code=http://hl7.org/fhir/sid/cvx|&_count=100", fm = (t) => {
|
|
7949
|
+
}, um = K + "/bahmnicore/config/drugOrders", lm = (t, e) => ie + `/Medication?name=${encodeURIComponent(t)}&_count=${e}&_sort=-_lastUpdated`, dm = ie + "/Medication?code=http://hl7.org/fhir/sid/cvx|&_count=100", ib = "medication", fm = (t) => {
|
|
7950
7950
|
switch (t.status) {
|
|
7951
7951
|
case "active":
|
|
7952
7952
|
return He.Active;
|
|
@@ -7972,7 +7972,7 @@ async function pm(t, e, r, n = !1) {
|
|
|
7972
7972
|
let o;
|
|
7973
7973
|
e && e.length > 0 && (o = e.join(","));
|
|
7974
7974
|
const i = (n ? cm : im)(t, o, s);
|
|
7975
|
-
return await
|
|
7975
|
+
return await H(i);
|
|
7976
7976
|
}
|
|
7977
7977
|
function hm(t) {
|
|
7978
7978
|
const e = t?.[0]?.doseAndRate?.[0]?.doseQuantity;
|
|
@@ -8095,7 +8095,7 @@ function Tm(t) {
|
|
|
8095
8095
|
});
|
|
8096
8096
|
}
|
|
8097
8097
|
const po = (t) => t.priority === "stat";
|
|
8098
|
-
async function
|
|
8098
|
+
async function cb(t, e, r, n = !1) {
|
|
8099
8099
|
const s = await pm(
|
|
8100
8100
|
t,
|
|
8101
8101
|
e,
|
|
@@ -8104,22 +8104,22 @@ async function ib(t, e, r, n = !1) {
|
|
|
8104
8104
|
);
|
|
8105
8105
|
return Tm(s);
|
|
8106
8106
|
}
|
|
8107
|
-
async function
|
|
8108
|
-
return await
|
|
8107
|
+
async function ub() {
|
|
8108
|
+
return await H(
|
|
8109
8109
|
um
|
|
8110
8110
|
);
|
|
8111
8111
|
}
|
|
8112
|
-
async function
|
|
8113
|
-
return await
|
|
8112
|
+
async function lb(t, e = 20) {
|
|
8113
|
+
return await H(
|
|
8114
8114
|
lm(t, e)
|
|
8115
8115
|
);
|
|
8116
8116
|
}
|
|
8117
|
-
async function
|
|
8118
|
-
return await
|
|
8117
|
+
async function db() {
|
|
8118
|
+
return await H(dm);
|
|
8119
8119
|
}
|
|
8120
8120
|
const Rm = (t) => `${ie}/Medication/${t}`;
|
|
8121
|
-
async function
|
|
8122
|
-
return await
|
|
8121
|
+
async function fb(t) {
|
|
8122
|
+
return await H(Rm(t));
|
|
8123
8123
|
}
|
|
8124
8124
|
const Om = 200, Am = (t, e, r, n, s) => {
|
|
8125
8125
|
let a = `${ie + `/ServiceRequest?_count=${Om}&_sort=-_lastUpdated`}&category=${t}&patient=${e}`;
|
|
@@ -8127,7 +8127,7 @@ const Om = 200, Am = (t, e, r, n, s) => {
|
|
|
8127
8127
|
};
|
|
8128
8128
|
async function Ht(t, e, r, n, s) {
|
|
8129
8129
|
let o;
|
|
8130
|
-
return r && r.length > 0 && (o = r.join(",")), await
|
|
8130
|
+
return r && r.length > 0 && (o = r.join(",")), await H(
|
|
8131
8131
|
Am(
|
|
8132
8132
|
t,
|
|
8133
8133
|
e,
|
|
@@ -8138,7 +8138,7 @@ async function Ht(t, e, r, n, s) {
|
|
|
8138
8138
|
);
|
|
8139
8139
|
}
|
|
8140
8140
|
const Nm = (t) => `${ie}/ImagingStudy/${t}/$fetch-quality-assessment`;
|
|
8141
|
-
async function
|
|
8141
|
+
async function pb(t, e, r, n) {
|
|
8142
8142
|
return await Ht(
|
|
8143
8143
|
e,
|
|
8144
8144
|
t,
|
|
@@ -8146,7 +8146,7 @@ async function fb(t, e, r, n) {
|
|
|
8146
8146
|
n
|
|
8147
8147
|
);
|
|
8148
8148
|
}
|
|
8149
|
-
async function
|
|
8149
|
+
async function hb(t, e, r, n) {
|
|
8150
8150
|
return await Ht(
|
|
8151
8151
|
e,
|
|
8152
8152
|
t,
|
|
@@ -8155,7 +8155,7 @@ async function pb(t, e, r, n) {
|
|
|
8155
8155
|
"ImagingStudy:basedon"
|
|
8156
8156
|
);
|
|
8157
8157
|
}
|
|
8158
|
-
async function
|
|
8158
|
+
async function mb(t, e, r, n) {
|
|
8159
8159
|
return (await Ht(
|
|
8160
8160
|
e,
|
|
8161
8161
|
t,
|
|
@@ -8163,10 +8163,10 @@ async function hb(t, e, r, n) {
|
|
|
8163
8163
|
n
|
|
8164
8164
|
)).entry?.filter((a) => a.resource?.resourceType === "ServiceRequest").map((a) => a.resource) ?? [];
|
|
8165
8165
|
}
|
|
8166
|
-
async function
|
|
8167
|
-
return await
|
|
8166
|
+
async function gb(t) {
|
|
8167
|
+
return await H(Nm(t));
|
|
8168
8168
|
}
|
|
8169
|
-
async function
|
|
8169
|
+
async function yb(t, e, r, n) {
|
|
8170
8170
|
return await Ht(
|
|
8171
8171
|
e,
|
|
8172
8172
|
t,
|
|
@@ -8178,29 +8178,29 @@ const Pm = (t, e) => {
|
|
|
8178
8178
|
const r = `${ie}/DiagnosticReport?patient=${t}`;
|
|
8179
8179
|
return e ? `${r}&based-on=${e}` : r;
|
|
8180
8180
|
}, Im = (t) => `${ie}/DiagnosticReport/${t}/$fetch-bundle`, $m = (t) => `${ie}/DiagnosticReport/${t}/$update-bundle`;
|
|
8181
|
-
async function
|
|
8181
|
+
async function wb(t, e = []) {
|
|
8182
8182
|
const r = e.length > 0 ? e.join(",") : void 0, n = Pm(t, r);
|
|
8183
|
-
return await
|
|
8183
|
+
return await H(n);
|
|
8184
8184
|
}
|
|
8185
|
-
async function
|
|
8185
|
+
async function Eb(t) {
|
|
8186
8186
|
const e = Im(t);
|
|
8187
|
-
return await
|
|
8187
|
+
return await H(e);
|
|
8188
8188
|
}
|
|
8189
|
-
async function
|
|
8189
|
+
async function bb(t, e) {
|
|
8190
8190
|
const r = $m(t);
|
|
8191
8191
|
return await Se(r, e);
|
|
8192
8192
|
}
|
|
8193
|
-
const
|
|
8193
|
+
const _b = [
|
|
8194
8194
|
"preliminary",
|
|
8195
8195
|
"final",
|
|
8196
8196
|
"amended",
|
|
8197
8197
|
"corrected",
|
|
8198
8198
|
"appended"
|
|
8199
|
-
],
|
|
8199
|
+
], vb = [
|
|
8200
8200
|
"registered",
|
|
8201
8201
|
"unknown",
|
|
8202
8202
|
"partial"
|
|
8203
|
-
], Dm = "All Orderables", Cm = "/openmrs/ws/rest/v1/ordertype?v=custom:(uuid,display,conceptClasses:(uuid,name))", Lm = "LabSet", xm = "http://fhir.bahmni.org/ext/ValueSet/concept-class",
|
|
8203
|
+
], Dm = "All Orderables", Cm = "/openmrs/ws/rest/v1/ordertype?v=custom:(uuid,display,conceptClasses:(uuid,name))", Lm = "LabSet", xm = "http://fhir.bahmni.org/ext/ValueSet/concept-class", Sb = ["orderTypes"], km = async () => await xh(Dm), gs = async () => await H(Cm), Mm = (t) => {
|
|
8204
8204
|
let e = t.display ?? "Unknown investigation";
|
|
8205
8205
|
return Li(t) === Lm && (e += ` (${le.t("INVESTIGATION_PANEL")})`), e;
|
|
8206
8206
|
}, Um = (t) => {
|
|
@@ -8232,12 +8232,12 @@ const bb = [
|
|
|
8232
8232
|
});
|
|
8233
8233
|
});
|
|
8234
8234
|
}), r;
|
|
8235
|
-
},
|
|
8235
|
+
}, Tb = async () => {
|
|
8236
8236
|
const t = await km(), e = await gs();
|
|
8237
8237
|
return qm(t, Um(e));
|
|
8238
|
-
},
|
|
8238
|
+
}, Rb = async (t) => t ? (await gs()).results.find(
|
|
8239
8239
|
(n) => n.display.toLowerCase() === t.toLowerCase()
|
|
8240
|
-
)?.uuid ?? null : null,
|
|
8240
|
+
)?.uuid ?? null : null, Ob = async () => (await gs()).results.map((e) => e.display), Ab = async (t, e, r) => {
|
|
8241
8241
|
const n = [];
|
|
8242
8242
|
for (const s of t) {
|
|
8243
8243
|
const o = s.uuid;
|
|
@@ -8587,7 +8587,7 @@ function te() {
|
|
|
8587
8587
|
}
|
|
8588
8588
|
get names() {
|
|
8589
8589
|
const E = this.lhs instanceof e.Name ? {} : { ...this.lhs.names };
|
|
8590
|
-
return
|
|
8590
|
+
return B(E, this.rhs);
|
|
8591
8591
|
}
|
|
8592
8592
|
}
|
|
8593
8593
|
class c extends i {
|
|
@@ -8711,7 +8711,7 @@ function te() {
|
|
|
8711
8711
|
}
|
|
8712
8712
|
get names() {
|
|
8713
8713
|
const E = super.names;
|
|
8714
|
-
return
|
|
8714
|
+
return B(E, this.condition), this.else && k(E, this.else.names), E;
|
|
8715
8715
|
}
|
|
8716
8716
|
}
|
|
8717
8717
|
g.kind = "if";
|
|
@@ -8742,8 +8742,8 @@ function te() {
|
|
|
8742
8742
|
return `for(${O} ${x}=${z}; ${x}<${j}; ${x}++)` + super.render(E);
|
|
8743
8743
|
}
|
|
8744
8744
|
get names() {
|
|
8745
|
-
const E =
|
|
8746
|
-
return
|
|
8745
|
+
const E = B(super.names, this.from);
|
|
8746
|
+
return B(E, this.to);
|
|
8747
8747
|
}
|
|
8748
8748
|
}
|
|
8749
8749
|
class d extends p {
|
|
@@ -9025,7 +9025,7 @@ function te() {
|
|
|
9025
9025
|
D[O] = (D[O] || 0) + (E[O] || 0);
|
|
9026
9026
|
return D;
|
|
9027
9027
|
}
|
|
9028
|
-
function
|
|
9028
|
+
function B(D, E) {
|
|
9029
9029
|
return E instanceof e._CodeOrName ? k(D, E.names) : D;
|
|
9030
9030
|
}
|
|
9031
9031
|
function V(D, E, O) {
|
|
@@ -9147,8 +9147,8 @@ function se() {
|
|
|
9147
9147
|
X.eachItem = y;
|
|
9148
9148
|
function v({ mergeNames: d, mergeToName: m, mergeValues: w, resultToName: S }) {
|
|
9149
9149
|
return (I, L, N, k) => {
|
|
9150
|
-
const
|
|
9151
|
-
return k === t.Name && !(
|
|
9150
|
+
const B = N === void 0 ? L : N instanceof t.Name ? (L instanceof t.Name ? d(I, L, N) : m(I, L, N), N) : L instanceof t.Name ? (m(I, N, L), L) : w(L, N);
|
|
9151
|
+
return k === t.Name && !(B instanceof t.Name) ? S(I, B) : B;
|
|
9152
9152
|
};
|
|
9153
9153
|
}
|
|
9154
9154
|
X.mergeEvaluated = {
|
|
@@ -9623,14 +9623,14 @@ function ke() {
|
|
|
9623
9623
|
}
|
|
9624
9624
|
ce.schemaProperties = y;
|
|
9625
9625
|
function v({ schemaCode: p, data: b, it: { gen: R, topSchemaRef: d, schemaPath: m, errorPath: w }, it: S }, I, L, N) {
|
|
9626
|
-
const k = N ? (0, t._)`${p}, ${b}, ${d}${m}` : b,
|
|
9626
|
+
const k = N ? (0, t._)`${p}, ${b}, ${d}${m}` : b, B = [
|
|
9627
9627
|
[r.default.instancePath, (0, t.strConcat)(r.default.instancePath, w)],
|
|
9628
9628
|
[r.default.parentData, S.parentData],
|
|
9629
9629
|
[r.default.parentDataProperty, S.parentDataProperty],
|
|
9630
9630
|
[r.default.rootData, r.default.rootData]
|
|
9631
9631
|
];
|
|
9632
|
-
S.opts.dynamicRef &&
|
|
9633
|
-
const V = (0, t._)`${k}, ${R.object(...
|
|
9632
|
+
S.opts.dynamicRef && B.push([r.default.dynamicAnchors, r.default.dynamicAnchors]);
|
|
9633
|
+
const V = (0, t._)`${k}, ${R.object(...B)}`;
|
|
9634
9634
|
return L !== t.nil ? (0, t._)`${I}.call(${L}, ${V})` : (0, t._)`${I}(${V})`;
|
|
9635
9635
|
}
|
|
9636
9636
|
ce.callValidateCode = v;
|
|
@@ -9709,25 +9709,25 @@ function Hm() {
|
|
|
9709
9709
|
if (v.errors === !1)
|
|
9710
9710
|
N(), v.modifying && a(y), k(() => y.error());
|
|
9711
9711
|
else {
|
|
9712
|
-
const
|
|
9713
|
-
v.modifying && a(y), k(() => i(y,
|
|
9712
|
+
const B = v.async ? I() : L();
|
|
9713
|
+
v.modifying && a(y), k(() => i(y, B));
|
|
9714
9714
|
}
|
|
9715
9715
|
}
|
|
9716
9716
|
function I() {
|
|
9717
|
-
const
|
|
9718
|
-
return _.try(() => N((0, t._)`await `), (V) => _.assign(w, !1).if((0, t._)`${V} instanceof ${R.ValidationError}`, () => _.assign(
|
|
9717
|
+
const B = _.let("ruleErrs", null);
|
|
9718
|
+
return _.try(() => N((0, t._)`await `), (V) => _.assign(w, !1).if((0, t._)`${V} instanceof ${R.ValidationError}`, () => _.assign(B, (0, t._)`${V}.errors`), () => _.throw(V))), B;
|
|
9719
9719
|
}
|
|
9720
9720
|
function L() {
|
|
9721
|
-
const
|
|
9722
|
-
return _.assign(
|
|
9721
|
+
const B = (0, t._)`${m}.errors`;
|
|
9722
|
+
return _.assign(B, null), N(t.nil), B;
|
|
9723
9723
|
}
|
|
9724
|
-
function N(
|
|
9724
|
+
function N(B = v.async ? (0, t._)`await ` : t.nil) {
|
|
9725
9725
|
const V = R.opts.passContext ? e.default.this : e.default.self, J = !("compile" in v && !b || v.schema === !1);
|
|
9726
|
-
_.assign(w, (0, t._)`${
|
|
9726
|
+
_.assign(w, (0, t._)`${B}${(0, r.callValidateCode)(y, m, V, J)}`, v.modifying);
|
|
9727
9727
|
}
|
|
9728
|
-
function k(
|
|
9728
|
+
function k(B) {
|
|
9729
9729
|
var V;
|
|
9730
|
-
_.if((0, t.not)((V = v.valid) !== null && V !== void 0 ? V : w),
|
|
9730
|
+
_.if((0, t.not)((V = v.valid) !== null && V !== void 0 ? V : w), B);
|
|
9731
9731
|
}
|
|
9732
9732
|
}
|
|
9733
9733
|
Le.funcKeywordCode = o;
|
|
@@ -10006,11 +10006,11 @@ function on() {
|
|
|
10006
10006
|
if (typeof _ == "boolean")
|
|
10007
10007
|
return {};
|
|
10008
10008
|
const { schemaId: g, uriResolver: p } = this.opts, b = h(_[g] || f), R = { "": b }, d = c(p, b, !1), m = {}, w = /* @__PURE__ */ new Set();
|
|
10009
|
-
return r(_, { allKeys: !0 }, (L, N, k,
|
|
10010
|
-
if (
|
|
10009
|
+
return r(_, { allKeys: !0 }, (L, N, k, B) => {
|
|
10010
|
+
if (B === void 0)
|
|
10011
10011
|
return;
|
|
10012
10012
|
const V = d + N;
|
|
10013
|
-
let J = R[
|
|
10013
|
+
let J = R[B];
|
|
10014
10014
|
typeof L[g] == "string" && (J = ne.call(this, L[g])), we.call(this, L.$anchor), we.call(this, L.$dynamicAnchor), R[N] = J;
|
|
10015
10015
|
function ne(re) {
|
|
10016
10016
|
const oe = this.opts.uriResolver.resolve;
|
|
@@ -10069,7 +10069,7 @@ function an() {
|
|
|
10069
10069
|
function f(A) {
|
|
10070
10070
|
const { schema: C, opts: M, gen: F } = A;
|
|
10071
10071
|
v(A, () => {
|
|
10072
|
-
M.$comment && C.$comment &&
|
|
10072
|
+
M.$comment && C.$comment && B(A), L(A), F.let(c.default.vErrors, null), F.let(c.default.errors, 0), M.unevaluated && g(A), S(A), V(A);
|
|
10073
10073
|
});
|
|
10074
10074
|
}
|
|
10075
10075
|
function g(A) {
|
|
@@ -10100,7 +10100,7 @@ function an() {
|
|
|
10100
10100
|
}
|
|
10101
10101
|
function m(A, C) {
|
|
10102
10102
|
const { schema: M, gen: F, opts: G } = A;
|
|
10103
|
-
G.$comment && M.$comment &&
|
|
10103
|
+
G.$comment && M.$comment && B(A), N(A), k(A);
|
|
10104
10104
|
const ee = F.const("_errs", c.default.errors);
|
|
10105
10105
|
S(A, ee), F.var(C, (0, i._)`${ee} === ${c.default.errors}`);
|
|
10106
10106
|
}
|
|
@@ -10129,7 +10129,7 @@ function an() {
|
|
|
10129
10129
|
if (A.schema.$async && !A.schemaEnv.$async)
|
|
10130
10130
|
throw new Error("async schema in sync schema");
|
|
10131
10131
|
}
|
|
10132
|
-
function
|
|
10132
|
+
function B({ gen: A, schemaEnv: C, schema: M, errSchemaPath: F, opts: G }) {
|
|
10133
10133
|
const ee = M.$comment;
|
|
10134
10134
|
if (G.$comment === !0)
|
|
10135
10135
|
A.code((0, i._)`${c.default.self}.logger.log(${ee})`);
|
|
@@ -10430,17 +10430,17 @@ function ws() {
|
|
|
10430
10430
|
this._compilations.add(f), (0, o.validateFunctionCode)(I), m.optimize(this.opts.code.optimize);
|
|
10431
10431
|
const N = m.toString();
|
|
10432
10432
|
L = `${m.scopeRefs(r.default.scope)}return ${N}`, this.opts.code.process && (L = this.opts.code.process(L, f));
|
|
10433
|
-
const
|
|
10434
|
-
if (this.scope.value(S, { ref:
|
|
10433
|
+
const B = new Function(`${r.default.self}`, `${r.default.scope}`, L)(this, this.scope.get());
|
|
10434
|
+
if (this.scope.value(S, { ref: B }), B.errors = null, B.schema = f.schema, B.schemaEnv = f, f.$async && (B.$async = !0), this.opts.code.source === !0 && (B.source = { validateName: S, validateCode: N, scopeValues: m._values }), this.opts.unevaluated) {
|
|
10435
10435
|
const { props: V, items: J } = I;
|
|
10436
|
-
|
|
10436
|
+
B.evaluated = {
|
|
10437
10437
|
props: V instanceof t.Name ? void 0 : V,
|
|
10438
10438
|
items: J instanceof t.Name ? void 0 : J,
|
|
10439
10439
|
dynamicProps: V instanceof t.Name,
|
|
10440
10440
|
dynamicItems: J instanceof t.Name
|
|
10441
|
-
},
|
|
10441
|
+
}, B.source && (B.source.evaluated = (0, t.stringify)(B.evaluated));
|
|
10442
10442
|
}
|
|
10443
|
-
return f.validate =
|
|
10443
|
+
return f.validate = B, f;
|
|
10444
10444
|
} catch (N) {
|
|
10445
10445
|
throw delete f.validate, delete f.validateName, L && this.logger.error("Error compiling schema, function code:", L), N;
|
|
10446
10446
|
} finally {
|
|
@@ -10580,8 +10580,8 @@ function Ui() {
|
|
|
10580
10580
|
let m = 0;
|
|
10581
10581
|
const w = { error: !1, address: "", zone: "" }, S = [], I = [];
|
|
10582
10582
|
let L = !1, N = !1, k = c;
|
|
10583
|
-
for (let
|
|
10584
|
-
const V = d[
|
|
10583
|
+
for (let B = 0; B < d.length; B++) {
|
|
10584
|
+
const V = d[B];
|
|
10585
10585
|
if (!(V === "[" || V === "]"))
|
|
10586
10586
|
if (V === ":") {
|
|
10587
10587
|
if (L === !0 && (N = !0), !k(I, S, w))
|
|
@@ -10590,7 +10590,7 @@ function Ui() {
|
|
|
10590
10590
|
w.error = !0;
|
|
10591
10591
|
break;
|
|
10592
10592
|
}
|
|
10593
|
-
|
|
10593
|
+
B > 0 && d[B - 1] === ":" && (L = !0), S.push(":");
|
|
10594
10594
|
continue;
|
|
10595
10595
|
} else if (V === "%") {
|
|
10596
10596
|
if (!k(I, S, w))
|
|
@@ -10939,12 +10939,12 @@ function eg() {
|
|
|
10939
10939
|
resourceName: S.resourceName,
|
|
10940
10940
|
secure: S.secure,
|
|
10941
10941
|
error: ""
|
|
10942
|
-
}, N = Object.assign({}, I), k = [],
|
|
10943
|
-
|
|
10942
|
+
}, N = Object.assign({}, I), k = [], B = l(N.scheme || L.scheme);
|
|
10943
|
+
B && B.serialize && B.serialize(L, N), L.path !== void 0 && (N.skipEscape ? L.path = n(L.path) : (L.path = o(L.path), L.scheme !== void 0 && (L.path = L.path.split("%3A").join(":")))), N.reference !== "suffix" && L.scheme && k.push(L.scheme, ":");
|
|
10944
10944
|
const V = r(L);
|
|
10945
10945
|
if (V !== void 0 && (N.reference !== "suffix" && k.push("//"), k.push(V), L.path && L.path[0] !== "/" && k.push("/")), L.path !== void 0) {
|
|
10946
10946
|
let J = L.path;
|
|
10947
|
-
!N.absolutePath && (!
|
|
10947
|
+
!N.absolutePath && (!B || !B.absolutePath) && (J = e(J)), V === void 0 && J[0] === "/" && J[1] === "/" && (J = "/%2F" + J.slice(2)), k.push(J);
|
|
10948
10948
|
}
|
|
10949
10949
|
return L.query !== void 0 && k.push("?", L.query), L.fragment !== void 0 && k.push("#", L.fragment), k.join("");
|
|
10950
10950
|
}
|
|
@@ -10965,7 +10965,7 @@ function eg() {
|
|
|
10965
10965
|
query: void 0,
|
|
10966
10966
|
fragment: void 0
|
|
10967
10967
|
};
|
|
10968
|
-
let k = !1,
|
|
10968
|
+
let k = !1, B = !1;
|
|
10969
10969
|
L.reference === "suffix" && (L.scheme ? S = L.scheme + ":" + S : S = "//" + S);
|
|
10970
10970
|
const V = S.match(f);
|
|
10971
10971
|
if (V) {
|
|
@@ -10974,18 +10974,18 @@ function eg() {
|
|
|
10974
10974
|
if (J !== void 0 && (N.error = N.error || J, k = !0), N.host)
|
|
10975
10975
|
if (i(N.host) === !1) {
|
|
10976
10976
|
const re = t(N.host);
|
|
10977
|
-
N.host = re.host.toLowerCase(),
|
|
10977
|
+
N.host = re.host.toLowerCase(), B = re.isIPV6;
|
|
10978
10978
|
} else
|
|
10979
|
-
|
|
10979
|
+
B = !0;
|
|
10980
10980
|
N.scheme === void 0 && N.userinfo === void 0 && N.host === void 0 && N.port === void 0 && N.query === void 0 && !N.path ? N.reference = "same-document" : N.scheme === void 0 ? N.reference = "relative" : N.fragment === void 0 ? N.reference = "absolute" : N.reference = "uri", L.reference && L.reference !== "suffix" && L.reference !== N.reference && (N.error = N.error || "URI is not a " + L.reference + " reference.");
|
|
10981
10981
|
const ne = l(L.scheme || N.scheme);
|
|
10982
|
-
if (!L.unicodeSupport && (!ne || !ne.unicodeSupport) && N.host && (L.domainHost || ne && ne.domainHost) &&
|
|
10982
|
+
if (!L.unicodeSupport && (!ne || !ne.unicodeSupport) && N.host && (L.domainHost || ne && ne.domainHost) && B === !1 && c(N.host))
|
|
10983
10983
|
try {
|
|
10984
10984
|
N.host = URL.domainToASCII(N.host.toLowerCase());
|
|
10985
10985
|
} catch (we) {
|
|
10986
10986
|
N.error = N.error || "Host's domain name can not be converted to ASCII: " + we;
|
|
10987
10987
|
}
|
|
10988
|
-
if ((!ne || ne && !ne.skipNormalize) && (S.indexOf("%") !== -1 && (N.scheme !== void 0 && (N.scheme = unescape(N.scheme)), N.host !== void 0 && (N.host = a(unescape(N.host),
|
|
10988
|
+
if ((!ne || ne && !ne.skipNormalize) && (S.indexOf("%") !== -1 && (N.scheme !== void 0 && (N.scheme = unescape(N.scheme)), N.host !== void 0 && (N.host = a(unescape(N.host), B))), N.path && (N.path = s(N.path)), N.fragment))
|
|
10989
10989
|
try {
|
|
10990
10990
|
N.fragment = encodeURI(decodeURIComponent(N.fragment));
|
|
10991
10991
|
} catch {
|
|
@@ -11432,13 +11432,13 @@ function rg() {
|
|
|
11432
11432
|
return q;
|
|
11433
11433
|
throw new Error("logger must implement log, warn and error methods");
|
|
11434
11434
|
}
|
|
11435
|
-
const
|
|
11435
|
+
const B = /^[a-z_$][a-z0-9_$:-]*$/i;
|
|
11436
11436
|
function V(q, P) {
|
|
11437
11437
|
const { RULES: U } = this;
|
|
11438
11438
|
if ((0, l.eachItem)(q, (D) => {
|
|
11439
11439
|
if (U.keywords[D])
|
|
11440
11440
|
throw new Error(`Keyword ${D} is already defined`);
|
|
11441
|
-
if (!
|
|
11441
|
+
if (!B.test(D))
|
|
11442
11442
|
throw new Error(`Keyword ${D} has invalid name`);
|
|
11443
11443
|
}), !!P && P.$data && !("code" in P || "validate" in P))
|
|
11444
11444
|
throw new Error('$data keyword must have "code" or "validate" function');
|
|
@@ -12694,10 +12694,10 @@ function Mg() {
|
|
|
12694
12694
|
if (k = r.resolveRef.call(y.self, y.schemaEnv.root, y.baseId, V), k instanceof r.SchemaEnv && (k = k.schema), k === void 0)
|
|
12695
12695
|
throw new n.default(y.opts.uriResolver, y.baseId, V);
|
|
12696
12696
|
}
|
|
12697
|
-
const
|
|
12698
|
-
if (typeof
|
|
12697
|
+
const B = (R = k?.properties) === null || R === void 0 ? void 0 : R[T];
|
|
12698
|
+
if (typeof B != "object")
|
|
12699
12699
|
throw new Error(`discriminator: oneOf subschemas (or referenced schemas) must have "properties/${T}"`);
|
|
12700
|
-
w = w && (m || S(k)), I(
|
|
12700
|
+
w = w && (m || S(k)), I(B, N);
|
|
12701
12701
|
}
|
|
12702
12702
|
if (!w)
|
|
12703
12703
|
throw new Error(`discriminator: "${T}" must be required`);
|
|
@@ -12709,8 +12709,8 @@ function Mg() {
|
|
|
12709
12709
|
if (N.const)
|
|
12710
12710
|
L(N.const, k);
|
|
12711
12711
|
else if (N.enum)
|
|
12712
|
-
for (const
|
|
12713
|
-
L(
|
|
12712
|
+
for (const B of N.enum)
|
|
12713
|
+
L(B, k);
|
|
12714
12714
|
else
|
|
12715
12715
|
throw new Error(`discriminator: "properties/${T}" must have "const" or "enum"`);
|
|
12716
12716
|
}
|
|
@@ -12785,17 +12785,17 @@ var Yg = zg();
|
|
|
12785
12785
|
const Gg = /* @__PURE__ */ Fm(Yg), Aa = {
|
|
12786
12786
|
CONFIG_NOT_FOUND: "CONFIG_ERROR_NOT_FOUND",
|
|
12787
12787
|
VALIDATION_FAILED: "CONFIG_ERROR_VALIDATION_FAILED"
|
|
12788
|
-
},
|
|
12788
|
+
}, Nb = async (t, e) => {
|
|
12789
12789
|
const r = await Kg(t);
|
|
12790
12790
|
if (!r)
|
|
12791
12791
|
throw new Error(Aa.CONFIG_NOT_FOUND);
|
|
12792
12792
|
if (!await Wg(r, e))
|
|
12793
12793
|
throw new Error(Aa.VALIDATION_FAILED);
|
|
12794
12794
|
return r;
|
|
12795
|
-
}, Kg = async (t) => await
|
|
12795
|
+
}, Kg = async (t) => await H(t), Wg = async (t, e) => new Gg().compile(e)(t), Jg = (t) => K + `/form/${t}?v=custom:(resources:(value))`, Qg = (t) => {
|
|
12796
12796
|
const e = K + "/bahmniie/form/latestPublishedForms";
|
|
12797
12797
|
return t ? e + `?episodeUuid=${t}` : e;
|
|
12798
|
-
},
|
|
12798
|
+
}, Pb = (t) => K + `/user/${t}?v=full`, Xg = (t, e, r, n) => K + `/bahmniie/form/translations?formName=${encodeURIComponent(t)}&formUuid=${e}&formVersion=${r}&locale=${n}`, xr = "Bahmni", Zg = (t, e, r) => {
|
|
12799
12799
|
let s = K + "/bahmnicore/patient/" + t + "/forms";
|
|
12800
12800
|
return r ? s += `?patientProgramUuid=${r}` : e && (s += `?numberOfVisits=${e}`), s;
|
|
12801
12801
|
}, ey = (t, e) => {
|
|
@@ -12807,33 +12807,33 @@ const Gg = /* @__PURE__ */ Fm(Yg), Aa = {
|
|
|
12807
12807
|
};
|
|
12808
12808
|
async function ry(t, e) {
|
|
12809
12809
|
const r = ey(t, e);
|
|
12810
|
-
return await
|
|
12810
|
+
return await H(r);
|
|
12811
12811
|
}
|
|
12812
|
-
async function
|
|
12812
|
+
async function Ib(t, e) {
|
|
12813
12813
|
const r = ty(t, e);
|
|
12814
|
-
return await
|
|
12814
|
+
return await H(r);
|
|
12815
12815
|
}
|
|
12816
|
-
async function
|
|
12816
|
+
async function $b(t, e) {
|
|
12817
12817
|
return (await ry(t, e)).entry?.filter((s) => s.resource?.resourceType === "Observation").map((s) => s.resource) ?? [];
|
|
12818
12818
|
}
|
|
12819
12819
|
const Vi = (t) => K + `/provider?user=${t}&v=custom:(uuid,display,person,attributes)`, ny = K + "/provider?v=custom:(uuid,display,person,attributes)";
|
|
12820
|
-
async function
|
|
12821
|
-
const e = await
|
|
12820
|
+
async function Db(t) {
|
|
12821
|
+
const e = await H(
|
|
12822
12822
|
Vi(t)
|
|
12823
12823
|
);
|
|
12824
12824
|
return !e.results || e.results.length === 0 ? null : e.results[0];
|
|
12825
12825
|
}
|
|
12826
|
-
async function
|
|
12826
|
+
async function Cb() {
|
|
12827
12827
|
const t = [];
|
|
12828
12828
|
let e = ny;
|
|
12829
12829
|
for (; e; ) {
|
|
12830
|
-
const r = await
|
|
12830
|
+
const r = await H(e);
|
|
12831
12831
|
t.push(...r.results ?? []), e = r.links?.find((s) => s.rel === "next")?.uri ?? null;
|
|
12832
12832
|
}
|
|
12833
12833
|
return t;
|
|
12834
12834
|
}
|
|
12835
|
-
async function
|
|
12836
|
-
const e = await
|
|
12835
|
+
async function Lb(t) {
|
|
12836
|
+
const e = await H(Vi(t));
|
|
12837
12837
|
if (!e.results || e.results.length === 0)
|
|
12838
12838
|
return [];
|
|
12839
12839
|
const r = e.results[0];
|
|
@@ -12843,7 +12843,7 @@ async function Cb(t) {
|
|
|
12843
12843
|
}
|
|
12844
12844
|
const sy = (t) => ie + `/Encounter?subject:Patient=${t}&_tag=visit&_sort=-_lastUpdated`, oy = (t) => `${ie}/Observation/$fetch-all?encounter=${t}`;
|
|
12845
12845
|
async function ay(t) {
|
|
12846
|
-
return await
|
|
12846
|
+
return await H(sy(t));
|
|
12847
12847
|
}
|
|
12848
12848
|
async function iy(t) {
|
|
12849
12849
|
return (await ay(t)).entry?.map((r) => r.resource).filter((r) => r !== void 0) ?? [];
|
|
@@ -12851,19 +12851,24 @@ async function iy(t) {
|
|
|
12851
12851
|
async function Hi(t) {
|
|
12852
12852
|
return (await iy(t)).find((r) => !r.period?.end) ?? null;
|
|
12853
12853
|
}
|
|
12854
|
-
async function
|
|
12855
|
-
return await
|
|
12854
|
+
async function xb(t, e) {
|
|
12855
|
+
return await H(
|
|
12856
|
+
`/openmrs/ws/fhir2/R4/Encounter/${t}`,
|
|
12857
|
+
e
|
|
12858
|
+
);
|
|
12859
|
+
}
|
|
12860
|
+
async function kb(t) {
|
|
12861
|
+
return await H(
|
|
12856
12862
|
oy(t)
|
|
12857
12863
|
);
|
|
12858
12864
|
}
|
|
12859
|
-
const
|
|
12865
|
+
const Mb = (t, e) => t?.length === 0 ? !1 : e?.length === 0, cy = ie + "/Encounter", uy = K + "/systemsetting/bahmni.encountersession.duration", Ub = "d34fe3ab-5e07-11ef-8f7c-0242ac120002", qb = {
|
|
12860
12866
|
MATCHED: "ENCOUNTER_MATCH_REASON_MATCHED",
|
|
12861
12867
|
NO_ACTIVE_VISIT: "ENCOUNTER_MATCH_REASON_NO_ACTIVE_VISIT",
|
|
12862
12868
|
NO_ACTIVE_ENCOUNTER: "ENCOUNTER_MATCH_REASON_NO_ACTIVE_ENCOUNTER",
|
|
12863
12869
|
SESSION_EXPIRED: "ENCOUNTER_MATCH_REASON_SESSION_EXPIRED",
|
|
12864
12870
|
PROVIDER_MISMATCH: "ENCOUNTER_MATCH_REASON_PROVIDER_MISMATCH",
|
|
12865
|
-
LOCATION_MISMATCH: "ENCOUNTER_MATCH_REASON_LOCATION_MISMATCH"
|
|
12866
|
-
MULTIPLE_ENCOUNTERS_FOUND: "ENCOUNTER_MATCH_REASON_MULTIPLE_FOUND"
|
|
12871
|
+
LOCATION_MISMATCH: "ENCOUNTER_MATCH_REASON_LOCATION_MISMATCH"
|
|
12867
12872
|
};
|
|
12868
12873
|
async function Gn(t) {
|
|
12869
12874
|
const e = new URLSearchParams();
|
|
@@ -12871,11 +12876,11 @@ async function Gn(t) {
|
|
|
12871
12876
|
o && e.append(s, o);
|
|
12872
12877
|
});
|
|
12873
12878
|
const r = `${cy}?${e.toString()}`;
|
|
12874
|
-
return (await
|
|
12879
|
+
return (await H(r)).entry?.map((s) => s.resource).filter((s) => s !== void 0) ?? [];
|
|
12875
12880
|
}
|
|
12876
12881
|
async function Bi() {
|
|
12877
12882
|
try {
|
|
12878
|
-
const t = await
|
|
12883
|
+
const t = await H(
|
|
12879
12884
|
uy
|
|
12880
12885
|
), e = Number(t.value);
|
|
12881
12886
|
return !isNaN(e) && e > 0 ? e : 60;
|
|
@@ -12895,7 +12900,7 @@ async function ly(t, e) {
|
|
|
12895
12900
|
return null;
|
|
12896
12901
|
}
|
|
12897
12902
|
}
|
|
12898
|
-
async function
|
|
12903
|
+
async function Fb(t, e, r, n) {
|
|
12899
12904
|
try {
|
|
12900
12905
|
if (!t) return null;
|
|
12901
12906
|
const s = r ?? await Bi(), a = `ge${new Date(Date.now() - s * 60 * 1e3).toISOString()}`, i = {
|
|
@@ -12926,7 +12931,7 @@ function Pa(t, e) {
|
|
|
12926
12931
|
(r) => bs(r.partOf?.reference) === e
|
|
12927
12932
|
);
|
|
12928
12933
|
}
|
|
12929
|
-
async function
|
|
12934
|
+
async function jb(t, e, r, n) {
|
|
12930
12935
|
try {
|
|
12931
12936
|
const s = await Hi(t);
|
|
12932
12937
|
if (!s?.id)
|
|
@@ -12966,13 +12971,10 @@ async function qb(t, e, r, n) {
|
|
|
12966
12971
|
), T = l.filter(
|
|
12967
12972
|
(g) => !y(g, e)
|
|
12968
12973
|
);
|
|
12969
|
-
if (v.length
|
|
12970
|
-
|
|
12971
|
-
|
|
12972
|
-
|
|
12973
|
-
reasons: ["MULTIPLE_ENCOUNTERS_FOUND"]
|
|
12974
|
-
};
|
|
12975
|
-
if (v.length === 1) {
|
|
12974
|
+
if (v.length >= 1) {
|
|
12975
|
+
v.length > 1 && console.warn(
|
|
12976
|
+
`[EncounterMatchDecision] ${v.length} encounters found for practitioner ${e} within session window; picking first.`
|
|
12977
|
+
);
|
|
12976
12978
|
const g = v[0];
|
|
12977
12979
|
return Na(g, r) ? { matched: !0, encounter: g, reasons: ["MATCHED"] } : { matched: !1, encounter: g, reasons: ["LOCATION_MISMATCH"] };
|
|
12978
12980
|
}
|
|
@@ -12994,7 +12996,7 @@ async function qb(t, e, r, n) {
|
|
|
12994
12996
|
};
|
|
12995
12997
|
}
|
|
12996
12998
|
}
|
|
12997
|
-
function
|
|
12999
|
+
function Vb(t) {
|
|
12998
13000
|
return t.matched || t.reasons.includes("LOCATION_MISMATCH") && !t.reasons.includes("SESSION_EXPIRED") && !t.reasons.includes("PROVIDER_MISMATCH");
|
|
12999
13001
|
}
|
|
13000
13002
|
const zi = {
|
|
@@ -13021,7 +13023,7 @@ function fy(t) {
|
|
|
13021
13023
|
function py() {
|
|
13022
13024
|
return Mt;
|
|
13023
13025
|
}
|
|
13024
|
-
function
|
|
13026
|
+
function Hb(t) {
|
|
13025
13027
|
const e = t.reasons.some(
|
|
13026
13028
|
(r) => dy.includes(r)
|
|
13027
13029
|
);
|
|
@@ -13032,21 +13034,21 @@ function jb(t) {
|
|
|
13032
13034
|
isLoading: !1
|
|
13033
13035
|
}, _s();
|
|
13034
13036
|
}
|
|
13035
|
-
function
|
|
13037
|
+
function Bb(t) {
|
|
13036
13038
|
Mt = { ...Mt, isLoading: t }, _s();
|
|
13037
13039
|
}
|
|
13038
|
-
function
|
|
13040
|
+
function zb() {
|
|
13039
13041
|
Mt = { ...zi }, _s();
|
|
13040
13042
|
}
|
|
13041
|
-
function
|
|
13043
|
+
function Yb() {
|
|
13042
13044
|
return rc(
|
|
13043
13045
|
fy,
|
|
13044
13046
|
py
|
|
13045
13047
|
);
|
|
13046
13048
|
}
|
|
13047
13049
|
const hy = (t) => ie + `/EpisodeOfCare?_revinclude=Encounter:episode-of-care&_id=${t}`;
|
|
13048
|
-
async function
|
|
13049
|
-
const e = t.join(","), r = await
|
|
13050
|
+
async function Gb(t) {
|
|
13051
|
+
const e = t.join(","), r = await H(hy(e));
|
|
13050
13052
|
if (r.total === 0)
|
|
13051
13053
|
throw new Error(
|
|
13052
13054
|
"No episode of care found for the provided UUIDs: " + t.join(", ")
|
|
@@ -13061,7 +13063,7 @@ async function zb(t) {
|
|
|
13061
13063
|
const xn = /* @__PURE__ */ new Map(), my = async (t) => {
|
|
13062
13064
|
if (xn.has(t))
|
|
13063
13065
|
return xn.get(t) ?? null;
|
|
13064
|
-
const e = await
|
|
13066
|
+
const e = await H(ii(t)), r = e ? String(e) : null;
|
|
13065
13067
|
return xn.set(t, r), r;
|
|
13066
13068
|
}, gy = async () => await my(Gl) === "true", yy = async (t, e, r, n = pt.CLINICAL) => {
|
|
13067
13069
|
if (!await gy())
|
|
@@ -13081,21 +13083,21 @@ const xn = /* @__PURE__ */ new Map(), my = async (t) => {
|
|
|
13081
13083
|
module: n
|
|
13082
13084
|
};
|
|
13083
13085
|
return await Se(kd, a), { logged: !0 };
|
|
13084
|
-
},
|
|
13086
|
+
}, Kb = () => xd(async (e) => {
|
|
13085
13087
|
await yy(
|
|
13086
13088
|
e.patientUuid,
|
|
13087
13089
|
e.eventType,
|
|
13088
13090
|
e.messageParams,
|
|
13089
13091
|
e.module
|
|
13090
13092
|
);
|
|
13091
|
-
}),
|
|
13093
|
+
}), Wb = async () => {
|
|
13092
13094
|
try {
|
|
13093
|
-
return (await
|
|
13095
|
+
return (await H(ss)).user.privileges;
|
|
13094
13096
|
} catch (t) {
|
|
13095
13097
|
const { message: e } = Mr(t);
|
|
13096
13098
|
throw new Error(e);
|
|
13097
13099
|
}
|
|
13098
|
-
},
|
|
13100
|
+
}, Jb = (t, e) => {
|
|
13099
13101
|
if (!t || t.length === 0)
|
|
13100
13102
|
return !1;
|
|
13101
13103
|
if (!e || e.length === 0)
|
|
@@ -13135,12 +13137,12 @@ const xn = /* @__PURE__ */ new Map(), my = async (t) => {
|
|
|
13135
13137
|
editable: n.editable
|
|
13136
13138
|
}))
|
|
13137
13139
|
};
|
|
13138
|
-
},
|
|
13140
|
+
}, Qb = async (t) => {
|
|
13139
13141
|
const e = await wy(t), r = Zr();
|
|
13140
13142
|
return e.map(
|
|
13141
13143
|
(n) => by(n, r)
|
|
13142
13144
|
);
|
|
13143
|
-
},
|
|
13145
|
+
}, Xb = async (t) => {
|
|
13144
13146
|
const e = await fetch(Jg(t));
|
|
13145
13147
|
if (!e.ok)
|
|
13146
13148
|
throw new Error(
|
|
@@ -13174,10 +13176,10 @@ const xn = /* @__PURE__ */ new Map(), my = async (t) => {
|
|
|
13174
13176
|
schema: n,
|
|
13175
13177
|
translations: u
|
|
13176
13178
|
};
|
|
13177
|
-
},
|
|
13179
|
+
}, Zb = async (t, e, r) => {
|
|
13178
13180
|
let n;
|
|
13179
13181
|
e && e.length > 0 && (n = e.join(","));
|
|
13180
|
-
const s = Zg(t, r, n), o = await
|
|
13182
|
+
const s = Zg(t, r, n), o = await H(s);
|
|
13181
13183
|
return Array.isArray(o) ? o : [];
|
|
13182
13184
|
};
|
|
13183
13185
|
function Yi(t) {
|
|
@@ -13219,7 +13221,7 @@ function Ki(t, e) {
|
|
|
13219
13221
|
};
|
|
13220
13222
|
return n(r.controls);
|
|
13221
13223
|
}
|
|
13222
|
-
function
|
|
13224
|
+
function e_(t, e) {
|
|
13223
13225
|
if (!t.controls || t.controls.length === 0)
|
|
13224
13226
|
return [];
|
|
13225
13227
|
const r = [], n = (/* @__PURE__ */ new Date()).toISOString();
|
|
@@ -13264,7 +13266,7 @@ function Xb(t, e) {
|
|
|
13264
13266
|
s.interpretation && (a.interpretation = s.interpretation), s.comment && (a.comment = s.comment), r.push(a);
|
|
13265
13267
|
}), r;
|
|
13266
13268
|
}
|
|
13267
|
-
function
|
|
13269
|
+
function t_(t, e) {
|
|
13268
13270
|
if (!t || t.length === 0)
|
|
13269
13271
|
return {
|
|
13270
13272
|
controls: [],
|
|
@@ -13297,7 +13299,7 @@ function Zb(t, e) {
|
|
|
13297
13299
|
metadata: { formMetadata: e }
|
|
13298
13300
|
};
|
|
13299
13301
|
}
|
|
13300
|
-
function
|
|
13302
|
+
function r_(t) {
|
|
13301
13303
|
const e = (n) => {
|
|
13302
13304
|
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 = {
|
|
13303
13305
|
concept: {
|
|
@@ -13317,11 +13319,11 @@ function e_(t) {
|
|
|
13317
13319
|
};
|
|
13318
13320
|
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);
|
|
13319
13321
|
}
|
|
13320
|
-
function
|
|
13322
|
+
function n_(t) {
|
|
13321
13323
|
if (!(!t || typeof t != "object"))
|
|
13322
13324
|
return "toJS" in t && typeof t.toJS == "function" ? t.toJS() : t;
|
|
13323
13325
|
}
|
|
13324
|
-
function
|
|
13326
|
+
function s_(t, e) {
|
|
13325
13327
|
!t || !Array.isArray(t.children) || t.children.forEach((r) => {
|
|
13326
13328
|
r && typeof r == "object" && Wi(
|
|
13327
13329
|
r,
|
|
@@ -13351,7 +13353,7 @@ function Wi(t, e) {
|
|
|
13351
13353
|
);
|
|
13352
13354
|
});
|
|
13353
13355
|
}
|
|
13354
|
-
const _y = K + "/bahmnicore/diseaseSummaryData?",
|
|
13356
|
+
const _y = K + "/bahmnicore/diseaseSummaryData?", o_ = async (t, e, r, n) => {
|
|
13355
13357
|
const s = new URLSearchParams({
|
|
13356
13358
|
groupBy: n,
|
|
13357
13359
|
latestCount: e.toString(),
|
|
@@ -13361,16 +13363,16 @@ const _y = K + "/bahmnicore/diseaseSummaryData?", n_ = async (t, e, r, n) => {
|
|
|
13361
13363
|
s.append("obsConcepts", a);
|
|
13362
13364
|
});
|
|
13363
13365
|
const o = _y + s.toString();
|
|
13364
|
-
return
|
|
13365
|
-
}, vs = "custom:(uuid,episodeUuid,patient,program,display,dateEnrolled,dateCompleted,location,voided,allowedStates,outcome,states:(uuid,startDate,endDate,voided,state:(uuid,concept:(uuid,display,name,names)),auditInfo),auditInfo,attributes)", vy = (t) => `${K}/bahmniprogramenrollment?patient=${t}&v=${vs}`, Sy = (t, e = 15, r = 0) => `${K}/bahmniprogramenrollment?patient=${t}&v=${vs}&limit=${e}&startIndex=${r}&totalCount=true`, Ji = (t) => `${K}/bahmniprogramenrollment/${t}`, Ty = (t) => `${Ji(t)}?v=${vs}`,
|
|
13366
|
-
const n = (r - 1) * e, s = await
|
|
13366
|
+
return H(o);
|
|
13367
|
+
}, vs = "custom:(uuid,episodeUuid,patient,program,display,dateEnrolled,dateCompleted,location,voided,allowedStates,outcome,states:(uuid,startDate,endDate,voided,state:(uuid,concept:(uuid,display,name,names)),auditInfo),auditInfo,attributes)", vy = (t) => `${K}/bahmniprogramenrollment?patient=${t}&v=${vs}`, Sy = (t, e = 15, r = 0) => `${K}/bahmniprogramenrollment?patient=${t}&v=${vs}&limit=${e}&startIndex=${r}&totalCount=true`, Ji = (t) => `${K}/bahmniprogramenrollment/${t}`, Ty = (t) => `${Ji(t)}?v=${vs}`, a_ = async (t) => await H(vy(t)), i_ = async (t, e = 15, r = 1) => {
|
|
13368
|
+
const n = (r - 1) * e, s = await H(
|
|
13367
13369
|
Sy(t, e, n)
|
|
13368
13370
|
);
|
|
13369
13371
|
return {
|
|
13370
13372
|
programs: s.results,
|
|
13371
13373
|
total: s.totalCount
|
|
13372
13374
|
};
|
|
13373
|
-
},
|
|
13375
|
+
}, c_ = async (t) => await H(Ty(t)), u_ = async (t, e) => {
|
|
13374
13376
|
const r = {
|
|
13375
13377
|
uuid: t,
|
|
13376
13378
|
states: [
|
|
@@ -13384,7 +13386,7 @@ const _y = K + "/bahmnicore/diseaseSummaryData?", n_ = async (t, e, r, n) => {
|
|
|
13384
13386
|
r
|
|
13385
13387
|
);
|
|
13386
13388
|
};
|
|
13387
|
-
function
|
|
13389
|
+
function l_(t) {
|
|
13388
13390
|
if (t.states.length === 0)
|
|
13389
13391
|
return null;
|
|
13390
13392
|
let e;
|
|
@@ -13400,7 +13402,7 @@ function c_(t) {
|
|
|
13400
13402
|
e = t.states.find((r) => r.endDate === null);
|
|
13401
13403
|
return e ? kh(e.state.concept.names) ?? e.state.concept.display : null;
|
|
13402
13404
|
}
|
|
13403
|
-
function
|
|
13405
|
+
function d_(t, e) {
|
|
13404
13406
|
if (e.length === 0)
|
|
13405
13407
|
return {};
|
|
13406
13408
|
const r = {};
|
|
@@ -13412,12 +13414,12 @@ function u_(t, e) {
|
|
|
13412
13414
|
}
|
|
13413
13415
|
return r;
|
|
13414
13416
|
}
|
|
13415
|
-
const Wn = "consultation:saved",
|
|
13417
|
+
const Wn = "consultation:saved", f_ = (t) => {
|
|
13416
13418
|
const e = new CustomEvent(Wn, {
|
|
13417
13419
|
detail: t
|
|
13418
13420
|
});
|
|
13419
13421
|
window.dispatchEvent(e);
|
|
13420
|
-
},
|
|
13422
|
+
}, p_ = (t, e = []) => {
|
|
13421
13423
|
const r = xt(t);
|
|
13422
13424
|
tt(() => {
|
|
13423
13425
|
r.current = t;
|
|
@@ -13430,17 +13432,17 @@ const Wn = "consultation:saved", l_ = (t) => {
|
|
|
13430
13432
|
window.removeEventListener(Wn, n);
|
|
13431
13433
|
};
|
|
13432
13434
|
}, e);
|
|
13433
|
-
}, Jn = "cdss:check", Qn = "cdss:results",
|
|
13435
|
+
}, Jn = "cdss:check", Qn = "cdss:results", h_ = (t) => {
|
|
13434
13436
|
const e = new CustomEvent(Jn, {
|
|
13435
13437
|
detail: t
|
|
13436
13438
|
});
|
|
13437
13439
|
globalThis.dispatchEvent(e);
|
|
13438
|
-
},
|
|
13440
|
+
}, m_ = (t) => {
|
|
13439
13441
|
const e = new CustomEvent(Qn, {
|
|
13440
13442
|
detail: t
|
|
13441
13443
|
});
|
|
13442
13444
|
globalThis.dispatchEvent(e);
|
|
13443
|
-
},
|
|
13445
|
+
}, g_ = (t) => {
|
|
13444
13446
|
const e = xt(t);
|
|
13445
13447
|
tt(() => {
|
|
13446
13448
|
e.current = t;
|
|
@@ -13453,7 +13455,7 @@ const Wn = "consultation:saved", l_ = (t) => {
|
|
|
13453
13455
|
globalThis.removeEventListener(Jn, r);
|
|
13454
13456
|
};
|
|
13455
13457
|
}, []);
|
|
13456
|
-
},
|
|
13458
|
+
}, y_ = (t) => {
|
|
13457
13459
|
const e = xt(t);
|
|
13458
13460
|
tt(() => {
|
|
13459
13461
|
e.current = t;
|
|
@@ -13487,21 +13489,21 @@ function Xi(t) {
|
|
|
13487
13489
|
}
|
|
13488
13490
|
async function Ry(t, e) {
|
|
13489
13491
|
const r = Qi(t, e);
|
|
13490
|
-
return
|
|
13492
|
+
return H(r);
|
|
13491
13493
|
}
|
|
13492
|
-
async function
|
|
13494
|
+
async function w_(t, e) {
|
|
13493
13495
|
const n = ((await Ry(t, e)).entry ?? []).filter(
|
|
13494
13496
|
(s) => !!s.resource
|
|
13495
13497
|
);
|
|
13496
13498
|
return Xi(n);
|
|
13497
13499
|
}
|
|
13498
|
-
async function
|
|
13500
|
+
async function E_(t, e, r = 10, n = 1) {
|
|
13499
13501
|
const s = (n - 1) * r, o = Qi(
|
|
13500
13502
|
t,
|
|
13501
13503
|
e,
|
|
13502
13504
|
r,
|
|
13503
13505
|
s
|
|
13504
|
-
), a = await
|
|
13506
|
+
), a = await H(o), i = (a.entry ?? []).filter(
|
|
13505
13507
|
(c) => !!c.resource
|
|
13506
13508
|
);
|
|
13507
13509
|
return {
|
|
@@ -13510,21 +13512,21 @@ async function y_(t, e, r = 10, n = 1) {
|
|
|
13510
13512
|
};
|
|
13511
13513
|
}
|
|
13512
13514
|
const Oy = (t) => `${K}/location?operator=ALL&s=byTags&tags=${encodeURIComponent(t)}&v=custom:(uuid,display,childLocations:(uuid,display,retired))`, Ay = (t) => `${ie}/Location?_tag=${encodeURIComponent(t)}`;
|
|
13513
|
-
async function
|
|
13514
|
-
return (await
|
|
13515
|
+
async function b_(t) {
|
|
13516
|
+
return (await H(Oy(t))).results ?? [];
|
|
13515
13517
|
}
|
|
13516
|
-
async function
|
|
13517
|
-
return await
|
|
13518
|
+
async function __(t) {
|
|
13519
|
+
return await H(Ay(t));
|
|
13518
13520
|
}
|
|
13519
13521
|
const Ny = ie + "/Immunization", Py = (t, e) => {
|
|
13520
13522
|
let r = `${Ny}?patient=${t}&_sort=-date&_count=100`;
|
|
13521
13523
|
return e && (r += `&status=${e}`), r;
|
|
13522
13524
|
};
|
|
13523
|
-
async function
|
|
13525
|
+
async function v_(t, e) {
|
|
13524
13526
|
return (await Iy(t, e)).entry?.filter((n) => n.resource?.resourceType === "Immunization").map((n) => n.resource) ?? [];
|
|
13525
13527
|
}
|
|
13526
13528
|
async function Iy(t, e) {
|
|
13527
|
-
return
|
|
13529
|
+
return H(
|
|
13528
13530
|
Py(t, e)
|
|
13529
13531
|
);
|
|
13530
13532
|
}
|
|
@@ -13554,7 +13556,7 @@ async function Cy(t) {
|
|
|
13554
13556
|
}, n.readAsDataURL(t);
|
|
13555
13557
|
});
|
|
13556
13558
|
}
|
|
13557
|
-
async function
|
|
13559
|
+
async function S_(t, e, r) {
|
|
13558
13560
|
const n = await Cy(t), s = {
|
|
13559
13561
|
content: n.content,
|
|
13560
13562
|
encounterTypeName: e,
|
|
@@ -13580,10 +13582,10 @@ const Ly = "/bahmni_config/openmrs/apps", Zi = "org.bahmni.home.dashboard", xy =
|
|
|
13580
13582
|
}), Uy = (t, e) => e === void 0 ? t : t.filter((r) => r.requiredPrivilege ? e.includes(r.requiredPrivilege) : !0), qy = (t) => {
|
|
13581
13583
|
const e = navigator.onLine;
|
|
13582
13584
|
return t.filter((r) => !(r.exclusiveOnlineModule && !e || r.exclusiveOfflineModule && e));
|
|
13583
|
-
}, Fy = (t) => [...t].sort((e, r) => (e.order ?? 0) - (r.order ?? 0)),
|
|
13585
|
+
}, Fy = (t) => [...t].sort((e, r) => (e.order ?? 0) - (r.order ?? 0)), T_ = async (t = Zi, e) => {
|
|
13584
13586
|
const r = await ky("home"), n = My(r, t), s = Uy(n, e), o = qy(s);
|
|
13585
13587
|
return Fy(o);
|
|
13586
|
-
}, jy = (t, e) => K + `/availableStocks?productUuid=${t}&locationUuid=${e}`,
|
|
13588
|
+
}, jy = (t, e) => K + `/availableStocks?productUuid=${t}&locationUuid=${e}`, R_ = async (t, e) => await H(
|
|
13587
13589
|
jy(t, e)
|
|
13588
13590
|
), Vy = (t, e, r) => {
|
|
13589
13591
|
const n = t.find((o) => o.server === e);
|
|
@@ -13611,7 +13613,7 @@ const Ly = "/bahmni_config/openmrs/apps", Zi = "org.bahmni.home.dashboard", xy =
|
|
|
13611
13613
|
entry: s
|
|
13612
13614
|
});
|
|
13613
13615
|
}), r;
|
|
13614
|
-
},
|
|
13616
|
+
}, O_ = async (t, e, r, n) => {
|
|
13615
13617
|
const s = Vy(t, e.server, e.service), { serverConfig: o, serviceConfig: a } = s, i = Hy(
|
|
13616
13618
|
n,
|
|
13617
13619
|
a.contextResourceMap
|
|
@@ -13629,7 +13631,7 @@ const Ly = "/bahmni_config/openmrs/apps", Zi = "org.bahmni.home.dashboard", xy =
|
|
|
13629
13631
|
c,
|
|
13630
13632
|
u
|
|
13631
13633
|
)).cards || [];
|
|
13632
|
-
},
|
|
13634
|
+
}, A_ = (t, e) => {
|
|
13633
13635
|
const r = [];
|
|
13634
13636
|
return t.forEach((n) => {
|
|
13635
13637
|
!n.suggestions || n.suggestions.length === 0 || n.suggestions.forEach((s) => {
|
|
@@ -13646,10 +13648,10 @@ const Ly = "/bahmni_config/openmrs/apps", Zi = "org.bahmni.home.dashboard", xy =
|
|
|
13646
13648
|
});
|
|
13647
13649
|
}), r;
|
|
13648
13650
|
};
|
|
13649
|
-
async function
|
|
13650
|
-
return
|
|
13651
|
+
async function N_() {
|
|
13652
|
+
return H(`${os}/templates`);
|
|
13651
13653
|
}
|
|
13652
|
-
async function
|
|
13654
|
+
async function P_(t) {
|
|
13653
13655
|
return (await Se(
|
|
13654
13656
|
`${os}/render`,
|
|
13655
13657
|
t
|
|
@@ -13669,7 +13671,7 @@ export {
|
|
|
13669
13671
|
Qn as CDSS_RESULTS_EVENT,
|
|
13670
13672
|
QE as CONCEPT_DATATYPE_COMPLEX,
|
|
13671
13673
|
JE as CONCEPT_DATATYPE_NUMERIC,
|
|
13672
|
-
|
|
13674
|
+
Ub as CONSULTATION_ENCOUNTER_TYPE_UUID,
|
|
13673
13675
|
Wn as CONSULTATION_SAVED_EVENT,
|
|
13674
13676
|
Gh as DATETIME_REGEX_PATTERN,
|
|
13675
13677
|
eb as DATE_REGEX_PATTERN,
|
|
@@ -13691,25 +13693,26 @@ export {
|
|
|
13691
13693
|
BE as HL7_CONDITION_VERIFICATION_STATUS_CODE_SYSTEM,
|
|
13692
13694
|
tb as INTERPRETATION_TO_CODE,
|
|
13693
13695
|
TE as ISO_DATE_FORMAT,
|
|
13694
|
-
|
|
13696
|
+
qb as MATCH_REASON_MESSAGES,
|
|
13695
13697
|
Mw as MAX_NAME_LENGTH,
|
|
13696
13698
|
kw as MAX_PATIENT_AGE_YEARS,
|
|
13697
13699
|
Uw as MAX_PHONE_NUMBER_LENGTH,
|
|
13700
|
+
ib as MEDICATIONS_INPUT_CONTROL_KEY,
|
|
13698
13701
|
He as MedicationStatus,
|
|
13699
13702
|
ie as OPENMRS_FHIR_R4,
|
|
13700
13703
|
K as OPENMRS_REST_V1,
|
|
13701
|
-
|
|
13702
|
-
|
|
13703
|
-
|
|
13704
|
-
|
|
13704
|
+
Sb as ORDER_TYPE_QUERY_KEY,
|
|
13705
|
+
vb as PENDING_REPORT_STATUSES,
|
|
13706
|
+
_b as PROCESSED_REPORT_STATUSES,
|
|
13707
|
+
Pb as USER_PINNED_PREFERENCE_URL,
|
|
13705
13708
|
RE as calculateAge,
|
|
13706
13709
|
$E as calculateEndDate,
|
|
13707
13710
|
AE as calculateOnsetDate,
|
|
13708
13711
|
Aw as camelToScreamingSnakeCase,
|
|
13709
|
-
|
|
13712
|
+
Vb as canResumeOwnInSessionEncounter,
|
|
13710
13713
|
Ew as capitalize,
|
|
13711
13714
|
uE as checkIfActiveVisitExists,
|
|
13712
|
-
|
|
13715
|
+
n_ as convertImmutableToPlainObject,
|
|
13713
13716
|
Oh as convertTo24HourFormat,
|
|
13714
13717
|
Pw as convertToSentenceCase,
|
|
13715
13718
|
SE as createAppointmentUnavailability,
|
|
@@ -13720,32 +13723,32 @@ export {
|
|
|
13720
13723
|
EE as deleteAppointmentService,
|
|
13721
13724
|
Wl as deleteCookie,
|
|
13722
13725
|
Ld as dispatchAuditEvent,
|
|
13723
|
-
|
|
13724
|
-
|
|
13725
|
-
|
|
13726
|
+
h_ as dispatchCDSSCheck,
|
|
13727
|
+
m_ as dispatchCDSSResults,
|
|
13728
|
+
f_ as dispatchConsultationSaved,
|
|
13726
13729
|
DE as doDateRangesOverlap,
|
|
13727
|
-
|
|
13728
|
-
|
|
13729
|
-
|
|
13730
|
+
d_ as extractAttributes,
|
|
13731
|
+
s_ as extractNotesFromFormData,
|
|
13732
|
+
Cb as fetchAllProviders,
|
|
13730
13733
|
qE as fetchAndFormatAllergenConcepts,
|
|
13731
|
-
|
|
13732
|
-
|
|
13734
|
+
Xb as fetchFormMetadata,
|
|
13735
|
+
ub as fetchMedicationOrdersMetadata,
|
|
13733
13736
|
ky as fetchModuleExtensions,
|
|
13734
|
-
|
|
13735
|
-
|
|
13737
|
+
Qb as fetchObservationForms,
|
|
13738
|
+
gb as fetchQualityAssessment,
|
|
13736
13739
|
FE as fetchReactionConcepts,
|
|
13737
13740
|
qy as filterByOnlineStatus,
|
|
13738
13741
|
Uy as filterByPrivilege,
|
|
13739
|
-
|
|
13742
|
+
A_ as filterCdsCardsForItems,
|
|
13740
13743
|
Tw as filterReplacementEntries,
|
|
13741
|
-
|
|
13744
|
+
Fb as findActiveEncounterInSession,
|
|
13742
13745
|
NE as formatDateDistance,
|
|
13743
13746
|
OE as formatDateTime,
|
|
13744
13747
|
Rw as formatUrl,
|
|
13745
13748
|
ww as generateId,
|
|
13746
13749
|
Kw as generateIdentifier,
|
|
13747
13750
|
Kl as generateUUID,
|
|
13748
|
-
|
|
13751
|
+
H as get,
|
|
13749
13752
|
Hi as getActiveVisit,
|
|
13750
13753
|
Vd as getActiveVisitByPatient,
|
|
13751
13754
|
Qw as getAddressHierarchyEntries,
|
|
@@ -13754,88 +13757,89 @@ export {
|
|
|
13754
13757
|
yE as getAppointmentById,
|
|
13755
13758
|
vE as getAppointmentUnavailabilities,
|
|
13756
13759
|
Dw as getAvailableLocations,
|
|
13757
|
-
|
|
13758
|
-
|
|
13760
|
+
R_ as getAvailableStocks,
|
|
13761
|
+
Rb as getCategoryUuidFromOrderTypes,
|
|
13759
13762
|
ME as getConceptById,
|
|
13760
13763
|
nb as getConditionPage,
|
|
13761
13764
|
rb as getConditions,
|
|
13762
|
-
|
|
13765
|
+
Nb as getConfig,
|
|
13763
13766
|
ci as getCookieByName,
|
|
13764
|
-
|
|
13765
|
-
|
|
13767
|
+
Db as getCurrentProvider,
|
|
13768
|
+
l_ as getCurrentStateName,
|
|
13766
13769
|
Iw as getCurrentUser,
|
|
13767
|
-
|
|
13770
|
+
Wb as getCurrentUserPrivileges,
|
|
13768
13771
|
$w as getDefaultDateFormat,
|
|
13769
13772
|
ab as getDiagnosesPage,
|
|
13770
|
-
|
|
13771
|
-
|
|
13772
|
-
|
|
13773
|
+
Eb as getDiagnosticReportBundle,
|
|
13774
|
+
wb as getDiagnosticReports,
|
|
13775
|
+
E_ as getDocumentReferencePage,
|
|
13773
13776
|
Ry as getDocumentReferences,
|
|
13777
|
+
xb as getEncounterByUuid,
|
|
13774
13778
|
py as getEncounterSessionSnapshot,
|
|
13775
|
-
|
|
13776
|
-
|
|
13779
|
+
Gb as getEncountersAndVisitsForEOC,
|
|
13780
|
+
Ab as getExistingServiceRequestsForAllCategories,
|
|
13777
13781
|
My as getExtensionsByPoint,
|
|
13778
|
-
|
|
13779
|
-
|
|
13782
|
+
__ as getFHIRLocationsByTag,
|
|
13783
|
+
Tb as getFlattenedInvestigations,
|
|
13780
13784
|
IE as getFormattedAge,
|
|
13781
13785
|
jE as getFormattedAllergies,
|
|
13782
|
-
|
|
13786
|
+
w_ as getFormattedDocumentReferences,
|
|
13783
13787
|
Mr as getFormattedError,
|
|
13784
13788
|
qw as getFormattedPatientById,
|
|
13785
13789
|
Jw as getGenders,
|
|
13786
13790
|
Bw as getIdentifierData,
|
|
13787
13791
|
Hw as getIdentifierTypes,
|
|
13788
13792
|
rE as getInputTypeForFormat,
|
|
13789
|
-
|
|
13790
|
-
|
|
13791
|
-
|
|
13792
|
-
|
|
13793
|
-
|
|
13793
|
+
yb as getLabInvestigationsBundle,
|
|
13794
|
+
b_ as getLocationByTag,
|
|
13795
|
+
fb as getMedicationByUuid,
|
|
13796
|
+
kb as getObservationsBundleByEncounterUuid,
|
|
13797
|
+
Ob as getOrderTypeNames,
|
|
13794
13798
|
gs as getOrderTypes,
|
|
13795
13799
|
Xw as getOrderedAddressHierarchyLevels,
|
|
13796
13800
|
mE as getPastAppointments,
|
|
13797
13801
|
_E as getPastAppointmentsPage,
|
|
13798
13802
|
Rd as getPatientById,
|
|
13799
13803
|
ob as getPatientDiagnoses,
|
|
13800
|
-
|
|
13801
|
-
|
|
13804
|
+
Zb as getPatientFormData,
|
|
13805
|
+
v_ as getPatientImmunizations,
|
|
13802
13806
|
pm as getPatientMedicationBundle,
|
|
13803
|
-
|
|
13804
|
-
|
|
13807
|
+
cb as getPatientMedications,
|
|
13808
|
+
$b as getPatientObservations,
|
|
13805
13809
|
ry as getPatientObservationsBundle,
|
|
13806
|
-
|
|
13810
|
+
Ib as getPatientObservationsWithEncounterBundle,
|
|
13807
13811
|
Fw as getPatientPhotoDataUrl,
|
|
13808
13812
|
Zw as getPatientProfile,
|
|
13809
|
-
|
|
13810
|
-
|
|
13811
|
-
|
|
13812
|
-
|
|
13813
|
-
|
|
13813
|
+
a_ as getPatientPrograms,
|
|
13814
|
+
i_ as getPatientProgramsPage,
|
|
13815
|
+
pb as getPatientRadiologyInvestigationBundle,
|
|
13816
|
+
hb as getPatientRadiologyInvestigationBundleWithImagingStudy,
|
|
13817
|
+
mb as getPatientRadiologyInvestigations,
|
|
13814
13818
|
tE as getPersonAttributeTypes,
|
|
13815
13819
|
$d as getPrimaryIdentifierType,
|
|
13816
13820
|
vw as getPriorityByOrder,
|
|
13817
|
-
|
|
13818
|
-
|
|
13821
|
+
c_ as getProgramByUUID,
|
|
13822
|
+
Lb as getProviderLoginLocations,
|
|
13819
13823
|
eE as getRelationshipTypes,
|
|
13820
13824
|
Ht as getServiceRequests,
|
|
13821
|
-
|
|
13825
|
+
N_ as getTemplates,
|
|
13822
13826
|
LE as getTimeInMinutes,
|
|
13823
13827
|
PE as getTodayDate,
|
|
13824
13828
|
hE as getUpcomingAppointments,
|
|
13825
13829
|
bE as getUpcomingAppointmentsPage,
|
|
13826
13830
|
as as getUserLoginLocation,
|
|
13827
13831
|
Zr as getUserPreferredLocale,
|
|
13828
|
-
|
|
13832
|
+
db as getVaccinations,
|
|
13829
13833
|
Ow as getValueType,
|
|
13830
|
-
|
|
13834
|
+
T_ as getVisibleModules,
|
|
13831
13835
|
cE as getVisitTypes,
|
|
13832
13836
|
iy as getVisits,
|
|
13833
|
-
|
|
13837
|
+
o_ as getVitalFlowSheetData,
|
|
13834
13838
|
Sw as groupByDate,
|
|
13835
|
-
|
|
13839
|
+
Jb as hasPrivilege,
|
|
13836
13840
|
mw as initAppI18n,
|
|
13837
|
-
|
|
13838
|
-
|
|
13841
|
+
Kb as initializeAuditListener,
|
|
13842
|
+
O_ as invokeCDSSRule,
|
|
13839
13843
|
nE as isBooleanFormat,
|
|
13840
13844
|
sE as isConceptFormat,
|
|
13841
13845
|
aE as isDateFormat,
|
|
@@ -13853,40 +13857,40 @@ export {
|
|
|
13853
13857
|
Se as post,
|
|
13854
13858
|
Za as put,
|
|
13855
13859
|
yw as refreshQueries,
|
|
13856
|
-
|
|
13857
|
-
|
|
13860
|
+
P_ as renderAsHtml,
|
|
13861
|
+
zb as resetEncounterSession,
|
|
13858
13862
|
Nw as resolveComboBoxItems,
|
|
13859
|
-
|
|
13863
|
+
jb as resolveEncounterMatchDecision,
|
|
13860
13864
|
Lw as saveUserLocation,
|
|
13861
13865
|
pE as searchAppointmentsByAttribute,
|
|
13862
13866
|
UE as searchConceptByName,
|
|
13863
13867
|
kE as searchConcepts,
|
|
13864
13868
|
Lr as searchFHIRConcepts,
|
|
13865
13869
|
xh as searchFHIRConceptsByName,
|
|
13866
|
-
|
|
13870
|
+
lb as searchMedications,
|
|
13867
13871
|
Vw as searchPatientByCustomAttribute,
|
|
13868
13872
|
jw as searchPatientByNameOrId,
|
|
13869
13873
|
bw as setCookie,
|
|
13870
|
-
|
|
13871
|
-
|
|
13872
|
-
|
|
13874
|
+
Hb as setEncounterSessionDecision,
|
|
13875
|
+
Bb as setEncounterSessionLoading,
|
|
13876
|
+
Mb as shouldEnableEncounterFilter,
|
|
13873
13877
|
CE as sortByDate,
|
|
13874
13878
|
Fy as sortByOrder,
|
|
13875
13879
|
fy as subscribeEncounterSession,
|
|
13876
|
-
|
|
13877
|
-
|
|
13878
|
-
|
|
13880
|
+
r_ as transformContainerObservationsToForm2Observations,
|
|
13881
|
+
e_ as transformFormDataToObservations,
|
|
13882
|
+
t_ as transformObservationsToFormData,
|
|
13879
13883
|
gE as updateAppointmentStatus,
|
|
13880
|
-
|
|
13884
|
+
bb as updateDiagnosticReportBundle,
|
|
13881
13885
|
Ww as updateFhirPatient,
|
|
13882
13886
|
Yw as updatePatient,
|
|
13883
|
-
|
|
13887
|
+
u_ as updateProgramState,
|
|
13884
13888
|
xw as updateSessionLocation,
|
|
13885
|
-
|
|
13886
|
-
|
|
13887
|
-
|
|
13889
|
+
S_ as uploadDocument,
|
|
13890
|
+
g_ as useCDSSCheckListener,
|
|
13891
|
+
y_ as useCDSSResultsListener,
|
|
13888
13892
|
gw as useCamera,
|
|
13889
|
-
|
|
13890
|
-
|
|
13891
|
-
|
|
13893
|
+
Yb as useEncounterSessionStore,
|
|
13894
|
+
p_ as useSubscribeConsultationSaved,
|
|
13895
|
+
D_ as useTranslation
|
|
13892
13896
|
};
|