@bahmni/services 0.0.1-dev.408 → 0.0.1-dev.409
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +526 -507
- package/dist/observationService/constants.d.ts +2 -1
- package/dist/observationService/constants.d.ts.map +1 -1
- package/dist/observationService/index.d.ts +1 -1
- package/dist/observationService/index.d.ts.map +1 -1
- package/dist/observationService/observationService.d.ts +2 -1
- package/dist/observationService/observationService.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { initReactI18next as Dc } from "react-i18next";
|
|
2
|
-
import { useTranslation as
|
|
2
|
+
import { useTranslation as n0 } from "react-i18next";
|
|
3
3
|
import { useRef as Ft, useCallback as Tn, useEffect as nt, useSyncExternalStore as Cc } from "react";
|
|
4
4
|
function Qa(t, e) {
|
|
5
5
|
return function() {
|
|
@@ -1651,7 +1651,7 @@ const ms = "1.18.1", Ws = 64 * 1024, { isFunction: Qt } = A, vl = (t) => encodeU
|
|
|
1651
1651
|
if (typeof H == "number" && isFinite(H) && (D = H, H > J))
|
|
1652
1652
|
throw S();
|
|
1653
1653
|
}
|
|
1654
|
-
const K = ae && (A.isReadableStream(R) || A.isStream(R)),
|
|
1654
|
+
const K = ae && (A.isReadableStream(R) || A.isStream(R)), ne = (H, ce, ve) => Ks(
|
|
1655
1655
|
H,
|
|
1656
1656
|
Ws,
|
|
1657
1657
|
(ye) => {
|
|
@@ -1673,11 +1673,11 @@ const ms = "1.18.1", Ws = 64 * 1024, { isFunction: Qt } = A, vl = (t) => encodeU
|
|
|
1673
1673
|
D,
|
|
1674
1674
|
Br(zs(M))
|
|
1675
1675
|
) || [];
|
|
1676
|
-
R =
|
|
1676
|
+
R = ne(H.body, ve, ye);
|
|
1677
1677
|
}
|
|
1678
1678
|
}
|
|
1679
1679
|
} else if (K && !c && l && E !== "get" && E !== "head")
|
|
1680
|
-
R =
|
|
1680
|
+
R = ne(R);
|
|
1681
1681
|
else if (K && c && !y && E !== "get" && E !== "head")
|
|
1682
1682
|
throw new z(
|
|
1683
1683
|
"Stream request bodies are not supported by the current fetch implementation",
|
|
@@ -2288,23 +2288,23 @@ he.getAdapter = Ei.getAdapter;
|
|
|
2288
2288
|
he.HttpStatusCode = Qn;
|
|
2289
2289
|
he.default = he;
|
|
2290
2290
|
const {
|
|
2291
|
-
Axios:
|
|
2292
|
-
AxiosError:
|
|
2293
|
-
CanceledError:
|
|
2294
|
-
isCancel:
|
|
2295
|
-
CancelToken:
|
|
2296
|
-
VERSION:
|
|
2297
|
-
all:
|
|
2298
|
-
Cancel:
|
|
2299
|
-
isAxiosError:
|
|
2300
|
-
spread:
|
|
2301
|
-
toFormData:
|
|
2302
|
-
AxiosHeaders:
|
|
2303
|
-
HttpStatusCode:
|
|
2304
|
-
formToJSON:
|
|
2305
|
-
getAdapter:
|
|
2306
|
-
mergeConfig:
|
|
2307
|
-
create:
|
|
2291
|
+
Axios: nE,
|
|
2292
|
+
AxiosError: sE,
|
|
2293
|
+
CanceledError: oE,
|
|
2294
|
+
isCancel: aE,
|
|
2295
|
+
CancelToken: iE,
|
|
2296
|
+
VERSION: cE,
|
|
2297
|
+
all: uE,
|
|
2298
|
+
Cancel: lE,
|
|
2299
|
+
isAxiosError: dE,
|
|
2300
|
+
spread: fE,
|
|
2301
|
+
toFormData: pE,
|
|
2302
|
+
AxiosHeaders: hE,
|
|
2303
|
+
HttpStatusCode: mE,
|
|
2304
|
+
formToJSON: gE,
|
|
2305
|
+
getAdapter: yE,
|
|
2306
|
+
mergeConfig: wE,
|
|
2307
|
+
create: EE
|
|
2308
2308
|
} = he, Dl = (t) => typeof t == "object" && t !== null && "resourceType" in t && t.resourceType === "OperationOutcome", Cl = (t) => {
|
|
2309
2309
|
if (!t.issue || !Array.isArray(t.issue))
|
|
2310
2310
|
return null;
|
|
@@ -2481,10 +2481,10 @@ function Kl(t, e) {
|
|
|
2481
2481
|
return Gl(f, c, u, l);
|
|
2482
2482
|
});
|
|
2483
2483
|
}
|
|
2484
|
-
const Wl = process.env.PUBLIC_URL ?? "/",
|
|
2484
|
+
const Wl = process.env.PUBLIC_URL ?? "/", re = "/openmrs/ws/fhir2/R4", W = "/openmrs/ws/rest/v1", Si = "bahmni.user", Oi = "bahmni.user.location", so = [
|
|
2485
2485
|
Si,
|
|
2486
2486
|
Oi
|
|
2487
|
-
], Jl = "/bahmni-v2",
|
|
2487
|
+
], Jl = "/bahmni-v2", _E = Jl + "/home", ws = W + "/session", Es = `${W}/bahmnicore/template/api`, Xn = (t) => {
|
|
2488
2488
|
if (typeof t == "string")
|
|
2489
2489
|
return Kl(t);
|
|
2490
2490
|
if (Array.isArray(t))
|
|
@@ -2530,7 +2530,7 @@ Ke.interceptors.response.use(
|
|
|
2530
2530
|
throw new Error(e);
|
|
2531
2531
|
}
|
|
2532
2532
|
);
|
|
2533
|
-
const B = async (t, e) => (await Ke.get(t, e)).data, ge = async (t, e) => (await Ke.post(t, e)).data, Ai = async (t, e) => (await Ke.put(t, e)).data,
|
|
2533
|
+
const B = async (t, e) => (await Ke.get(t, e)).data, ge = async (t, e) => (await Ke.post(t, e)).data, Ai = async (t, e) => (await Ke.put(t, e)).data, bE = async (t, e) => (await Ke.patch(t, e)).data, Pi = async (t, e) => (await Ke.delete(t, e)).data, Q = (t) => typeof t == "string", It = () => {
|
|
2534
2534
|
let t, e;
|
|
2535
2535
|
const r = new Promise((n, s) => {
|
|
2536
2536
|
t = n, e = s;
|
|
@@ -4228,7 +4228,7 @@ const Cd = "en", Li = "NG_TRANSLATE_LANG_KEY", Ld = (t, e) => Wl + `${t}/locales
|
|
|
4228
4228
|
}, t !== "en" && (r.en = {
|
|
4229
4229
|
[e]: await Ro(e, "en")
|
|
4230
4230
|
}), r;
|
|
4231
|
-
},
|
|
4231
|
+
}, vE = (t, e) => {
|
|
4232
4232
|
const r = t.toUpperCase(), n = e.toUpperCase().replace(/\s+/g, "_").replace(/[^A-Z0-9_]/g, "");
|
|
4233
4233
|
return `${r}_${n}`;
|
|
4234
4234
|
}, Md = (t, e) => {
|
|
@@ -4245,7 +4245,7 @@ const Cd = "en", Li = "NG_TRANSLATE_LANG_KEY", Ld = (t, e) => Wl + `${t}/locales
|
|
|
4245
4245
|
labels: n.labels ?? {},
|
|
4246
4246
|
concepts: n.concepts ?? {}
|
|
4247
4247
|
};
|
|
4248
|
-
},
|
|
4248
|
+
}, TE = async (t) => {
|
|
4249
4249
|
const e = an(), r = await kd(e, t);
|
|
4250
4250
|
return fe.isInitialized ? (Object.entries(r).forEach(([n, s]) => {
|
|
4251
4251
|
Object.entries(s).forEach(([o, a]) => {
|
|
@@ -4268,7 +4268,7 @@ const Cd = "en", Li = "NG_TRANSLATE_LANG_KEY", Ld = (t, e) => Wl + `${t}/locales
|
|
|
4268
4268
|
}
|
|
4269
4269
|
}), fe;
|
|
4270
4270
|
};
|
|
4271
|
-
function
|
|
4271
|
+
function RE() {
|
|
4272
4272
|
const t = Ft(null), e = Ft(null), r = Tn(async () => {
|
|
4273
4273
|
e.current && (e.current.getTracks().forEach((a) => a.stop()), e.current = null);
|
|
4274
4274
|
const o = await navigator.mediaDevices.getUserMedia({
|
|
@@ -4308,13 +4308,13 @@ function TE() {
|
|
|
4308
4308
|
);
|
|
4309
4309
|
return nt(() => () => n(), [n]), { videoRef: t, start: r, stop: n, capture: s };
|
|
4310
4310
|
}
|
|
4311
|
-
const Ud = "bahmni.enableAuditLog", xi = (t) => `${W}/bahmnicore/sql/globalproperty?property=${t}`, qd = "http://hl7.org/fhir/StructureDefinition/patient-birthTime", ki = "http://fhir.openmrs.org/code-system/encounter-type", _s = "http://terminology.hl7.org/CodeSystem/v3-ActCode", bs = "http://fhir.openmrs.org/ext/encounter-tag", vs = "problem-list-item",
|
|
4311
|
+
const Ud = "bahmni.enableAuditLog", xi = (t) => `${W}/bahmnicore/sql/globalproperty?property=${t}`, qd = "http://hl7.org/fhir/StructureDefinition/patient-birthTime", ki = "http://fhir.openmrs.org/code-system/encounter-type", _s = "http://terminology.hl7.org/CodeSystem/v3-ActCode", bs = "http://fhir.openmrs.org/ext/encounter-tag", vs = "problem-list-item", SE = "http://terminology.hl7.org/CodeSystem/condition-ver-status", Mi = "encounter-diagnosis", Fd = "http://terminology.hl7.org/CodeSystem/condition-clinical", jd = "http://terminology.hl7.org/CodeSystem/condition-category", OE = "http://fhir.bahmni.org/ext/lab-order-concept-type", AE = "http://fhir.bahmni.org/ext/medicationRequest/note-category", PE = "http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation", NE = "http://fhir.bahmni.org/ext/observation/form-namespace-path", IE = "http://fhir.bahmni.org/ext/observation/obs-value-attachment", $E = "Numeric", DE = "Complex", CE = "final", LE = "Observation", xE = /^\d{4}-\d{2}-\d{2}/, kE = /^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}/, ME = {
|
|
4312
4312
|
ABNORMAL: { code: "A", display: "Abnormal" },
|
|
4313
4313
|
NORMAL: { code: "N", display: "Normal" }
|
|
4314
|
-
},
|
|
4314
|
+
}, UE = async (t, e, r) => {
|
|
4315
4315
|
const { exact: n = !0, refetchActiveNow: s = !0 } = r ?? {};
|
|
4316
4316
|
await t.cancelQueries({ queryKey: e, exact: n }), await t.removeQueries({ queryKey: e, exact: n }), await t.invalidateQueries({ queryKey: e, exact: n }), s && await t.refetchQueries({ queryKey: e, exact: n, type: "active" });
|
|
4317
|
-
},
|
|
4317
|
+
}, qE = () => Math.random().toString(36).substring(2, 9), Qr = () => {
|
|
4318
4318
|
if (typeof globalThis < "u" && globalThis.crypto?.randomUUID)
|
|
4319
4319
|
return globalThis.crypto.randomUUID();
|
|
4320
4320
|
const t = globalThis.crypto || globalThis.msCrypto;
|
|
@@ -4326,7 +4326,7 @@ const Ud = "bahmni.enableAuditLog", xi = (t) => `${W}/bahmnicore/sql/globalprope
|
|
|
4326
4326
|
"Crypto API (crypto.randomUUID or crypto.getRandomValues) is not available. UUID generation requires cryptographically secure random number generation."
|
|
4327
4327
|
);
|
|
4328
4328
|
};
|
|
4329
|
-
function
|
|
4329
|
+
function FE(t, e = " -") {
|
|
4330
4330
|
return t ? t.toLowerCase().split(new RegExp(`[${e}]+`)).map((n) => n.charAt(0).toUpperCase() + n.slice(1)).join(" ") : "";
|
|
4331
4331
|
}
|
|
4332
4332
|
function Ui(t) {
|
|
@@ -4341,10 +4341,10 @@ function Ui(t) {
|
|
|
4341
4341
|
function So(t, e = "/") {
|
|
4342
4342
|
document.cookie = `${t}=; expires=Thu, 01 Jan 1970 00:00:00 UTC; path=${e};`;
|
|
4343
4343
|
}
|
|
4344
|
-
function
|
|
4344
|
+
function jE(t, e) {
|
|
4345
4345
|
document.cookie = `${t}=${e}; path=/;`;
|
|
4346
4346
|
}
|
|
4347
|
-
const
|
|
4347
|
+
const VE = (t) => !t || t.trim().length === 0, HE = (t, e) => {
|
|
4348
4348
|
if (!t || !e || e.length === 0)
|
|
4349
4349
|
return 999;
|
|
4350
4350
|
const r = e.findIndex(
|
|
@@ -4352,7 +4352,7 @@ const jE = (t) => !t || t.trim().length === 0, VE = (t, e) => {
|
|
|
4352
4352
|
);
|
|
4353
4353
|
return r === -1 ? 999 : r;
|
|
4354
4354
|
};
|
|
4355
|
-
function
|
|
4355
|
+
function BE(t, e) {
|
|
4356
4356
|
if (!t || t.length === 0)
|
|
4357
4357
|
return [];
|
|
4358
4358
|
const r = /* @__PURE__ */ new Map();
|
|
@@ -4364,7 +4364,7 @@ function HE(t, e) {
|
|
|
4364
4364
|
items: s
|
|
4365
4365
|
}));
|
|
4366
4366
|
}
|
|
4367
|
-
function
|
|
4367
|
+
function zE(t, e, r) {
|
|
4368
4368
|
if (!t || t.length === 0)
|
|
4369
4369
|
return [];
|
|
4370
4370
|
const n = /* @__PURE__ */ new Set(), s = /* @__PURE__ */ new Set();
|
|
@@ -4385,7 +4385,7 @@ function Vd(t) {
|
|
|
4385
4385
|
o[n(a[1])] = n(a[2]);
|
|
4386
4386
|
return o;
|
|
4387
4387
|
}
|
|
4388
|
-
function
|
|
4388
|
+
function YE(t, e, r) {
|
|
4389
4389
|
const n = /{{([^}]*)}}/g, s = t.match(n);
|
|
4390
4390
|
let o = t;
|
|
4391
4391
|
const a = r ?? !1, i = a ? Vd() : {};
|
|
@@ -4398,7 +4398,7 @@ function zE(t, e, r) {
|
|
|
4398
4398
|
const Hd = (t) => new Promise((e, r) => {
|
|
4399
4399
|
const n = new FileReader();
|
|
4400
4400
|
n.onloadend = () => e(n.result), n.onerror = r, n.readAsDataURL(t);
|
|
4401
|
-
}),
|
|
4401
|
+
}), GE = (t) => {
|
|
4402
4402
|
if (typeof t == "number" && !isNaN(t))
|
|
4403
4403
|
return "number";
|
|
4404
4404
|
if (typeof t != "string")
|
|
@@ -4409,20 +4409,20 @@ const Hd = (t) => new Promise((e, r) => {
|
|
|
4409
4409
|
function qi(t) {
|
|
4410
4410
|
return t.replace(/[\s-]+/g, "_").replace(/([a-z])([A-Z])/g, "$1_$2").replace(/([A-Z])([A-Z][a-z])/g, "$1_$2").toUpperCase();
|
|
4411
4411
|
}
|
|
4412
|
-
function
|
|
4412
|
+
function KE(t, e, r, n, s) {
|
|
4413
4413
|
const o = (a) => ({
|
|
4414
4414
|
...n(a),
|
|
4415
4415
|
disabled: !0
|
|
4416
4416
|
});
|
|
4417
4417
|
return t ? [o(s.loading)] : e ? [o(s.error)] : r.length ? r : [o(s.empty)];
|
|
4418
4418
|
}
|
|
4419
|
-
function
|
|
4419
|
+
function WE(t) {
|
|
4420
4420
|
return t ? t.replaceAll(/[_-]/g, " ").replaceAll(/([a-z])([A-Z])/g, "$1 $2").replaceAll(/([A-Z])([A-Z][a-z])/g, "$1 $2").replaceAll(/([a-z])(\d)/gi, "$1 $2").replaceAll(/(\d)([a-z])/gi, "$1 $2").replaceAll(/\s+/g, " ").trim().toLowerCase().replace(/^./, (e) => e.toUpperCase()) : "";
|
|
4421
4421
|
}
|
|
4422
|
-
const
|
|
4422
|
+
const JE = (t, e) => {
|
|
4423
4423
|
const r = t.trim();
|
|
4424
4424
|
return r ? e(`GENDER_${qi(r)}`) : null;
|
|
4425
|
-
},
|
|
4425
|
+
}, QE = (t, e) => {
|
|
4426
4426
|
const r = t.trim();
|
|
4427
4427
|
if (!r) return null;
|
|
4428
4428
|
const n = `COUNTRY_CODE_${qi(r)}`, s = e(n);
|
|
@@ -4435,7 +4435,7 @@ const WE = (t, e) => {
|
|
|
4435
4435
|
return r;
|
|
4436
4436
|
}
|
|
4437
4437
|
}, Bd = (t) => W + `/user?username=${t}&v=custom:(display,username,uuid)`, zd = `${W}/location?tags=Login Location&v=default`, Yd = (t) => W + `/user/${t}?v=full`, Gd = (t) => W + `/bahmni/app/setting?module=${t}`, Kd = "default_dateFormat", Wd = ws;
|
|
4438
|
-
async function
|
|
4438
|
+
async function XE() {
|
|
4439
4439
|
const t = Ui(Si);
|
|
4440
4440
|
if (!t)
|
|
4441
4441
|
return null;
|
|
@@ -4459,13 +4459,13 @@ const St = () => {
|
|
|
4459
4459
|
if (!e.uuid)
|
|
4460
4460
|
throw new Error(fe.t("ERROR_FETCHING_USER_LOCATION_DETAILS"));
|
|
4461
4461
|
return e;
|
|
4462
|
-
},
|
|
4462
|
+
}, ZE = async () => (await B(Gd("commons"))).find(
|
|
4463
4463
|
(r) => r.property === Kd
|
|
4464
|
-
)?.value ?? null,
|
|
4464
|
+
)?.value ?? null, e_ = async () => (await B(zd)).results ?? [], t_ = async (t, e) => {
|
|
4465
4465
|
await ge(Yd(t), {
|
|
4466
4466
|
userProperties: { loginLocation: e.uuid }
|
|
4467
4467
|
});
|
|
4468
|
-
},
|
|
4468
|
+
}, r_ = async (t) => {
|
|
4469
4469
|
await ge(Wd, { sessionLocation: t });
|
|
4470
4470
|
}, Ts = {
|
|
4471
4471
|
person: {
|
|
@@ -4485,7 +4485,7 @@ const St = () => {
|
|
|
4485
4485
|
t.append(n.resultParam, s);
|
|
4486
4486
|
});
|
|
4487
4487
|
});
|
|
4488
|
-
}, Fi = (t) =>
|
|
4488
|
+
}, Fi = (t) => re + `/Patient/${t}`, Qd = (t, e, r) => {
|
|
4489
4489
|
const n = new URLSearchParams({
|
|
4490
4490
|
filterOnAllIdentifiers: "false",
|
|
4491
4491
|
identifier: t,
|
|
@@ -4510,10 +4510,10 @@ const St = () => {
|
|
|
4510
4510
|
return i && (a.set(i.searchParam, o), r.forEach((c) => {
|
|
4511
4511
|
a.append(i.searchFieldParam, c);
|
|
4512
4512
|
})), Jd(a, n), W + `/bahmni/search/patient?${a.toString()}`;
|
|
4513
|
-
}, ji = W + "/idgen/identifiertype", Zd = (t) => W + `/bahmni/app/setting?module=${t}`, ef = "bahmni.primaryIdentifierType", tf = W + "/bahmnicore/patientprofile", rf = (t) => W + `/bahmnicore/patientprofile/${t}`, nf =
|
|
4513
|
+
}, ji = W + "/idgen/identifiertype", Zd = (t) => W + `/bahmni/app/setting?module=${t}`, ef = "bahmni.primaryIdentifierType", tf = W + "/bahmnicore/patientprofile", rf = (t) => W + `/bahmnicore/patientprofile/${t}`, nf = re + "/Patient", sf = (t) => W + `/idgen/identifiersource/${t}/identifier`, of = (t) => W + `/patientprofile/${t}?v=full`, af = (t, e, r = 20, n) => {
|
|
4514
4514
|
let s = `/openmrs/module/addresshierarchy/ajax/getPossibleAddressHierarchyEntriesWithParents.form?addressField=${t}&limit=${r}&searchString=${encodeURIComponent(e)}`;
|
|
4515
4515
|
return n && (s += `&parent=${n}`), s;
|
|
4516
|
-
}, cf = "/openmrs/module/addresshierarchy/ajax/getOrderedAddressHierarchyLevels.form", uf = W + "/relationshiptype?v=custom:(aIsToB,bIsToA,uuid)&limit=150", lf = 20, df = 2,
|
|
4516
|
+
}, cf = "/openmrs/module/addresshierarchy/ajax/getOrderedAddressHierarchyLevels.form", uf = W + "/relationshiptype?v=custom:(aIsToB,bIsToA,uuid)&limit=150", lf = 20, df = 2, n_ = 120, s_ = 50, o_ = 15, ff = /^[a-f0-9-]{36}$/i, pf = W + "/personattributetype?v=custom:(uuid,name,sortWeight,description,format,concept:(uuid,display,answers:(uuid,name)))", a_ = (t) => t === "male" ? "M" : t === "female" ? "F" : t === "other" ? "O" : "U", hf = async (t) => {
|
|
4517
4517
|
if (!t || t.trim() === "" || !ff.test(t))
|
|
4518
4518
|
throw new Error(vi);
|
|
4519
4519
|
return B(Fi(t));
|
|
@@ -4551,22 +4551,22 @@ const St = () => {
|
|
|
4551
4551
|
identifier: o,
|
|
4552
4552
|
photoUrl: t.photo?.[0]?.url
|
|
4553
4553
|
};
|
|
4554
|
-
},
|
|
4554
|
+
}, i_ = async (t) => {
|
|
4555
4555
|
const e = await hf(t);
|
|
4556
4556
|
return Ef(e);
|
|
4557
|
-
},
|
|
4557
|
+
}, c_ = async (t) => {
|
|
4558
4558
|
if (!t.startsWith("/"))
|
|
4559
4559
|
throw new Error("Photo URL must be a relative path");
|
|
4560
4560
|
const e = await B(t, {
|
|
4561
4561
|
responseType: "blob"
|
|
4562
4562
|
});
|
|
4563
4563
|
return await Hd(e);
|
|
4564
|
-
},
|
|
4564
|
+
}, u_ = async (t, e) => {
|
|
4565
4565
|
const r = St();
|
|
4566
4566
|
return await B(
|
|
4567
4567
|
Qd(t, r.uuid, e)
|
|
4568
4568
|
);
|
|
4569
|
-
},
|
|
4569
|
+
}, l_ = async (t, e, r, n, s) => {
|
|
4570
4570
|
const o = St();
|
|
4571
4571
|
return await B(
|
|
4572
4572
|
Xd(
|
|
@@ -4577,9 +4577,9 @@ const St = () => {
|
|
|
4577
4577
|
o.uuid
|
|
4578
4578
|
)
|
|
4579
4579
|
);
|
|
4580
|
-
},
|
|
4580
|
+
}, d_ = async () => B(ji), _f = async () => (await B(Zd("core"))).find(
|
|
4581
4581
|
(r) => r.property === ef
|
|
4582
|
-
)?.value ?? null,
|
|
4582
|
+
)?.value ?? null, f_ = async () => {
|
|
4583
4583
|
const [t, e] = await Promise.all([
|
|
4584
4584
|
B(ji),
|
|
4585
4585
|
_f()
|
|
@@ -4607,10 +4607,10 @@ const St = () => {
|
|
|
4607
4607
|
primaryIdentifierTypeUuid: e,
|
|
4608
4608
|
primaryIdentifierTypeName: null
|
|
4609
4609
|
};
|
|
4610
|
-
},
|
|
4610
|
+
}, p_ = async (t) => ge(tf, t), h_ = async (t, e) => ge(
|
|
4611
4611
|
rf(t),
|
|
4612
4612
|
e
|
|
4613
|
-
),
|
|
4613
|
+
), m_ = (t) => ge(nf, t), g_ = (t) => ge(sf(t), {}), y_ = (t, e) => Ai(Fi(t), e), w_ = async () => B(xi("mrs.genders")), E_ = async (t, e, r = lf, n) => {
|
|
4614
4614
|
if (!e || e.length < df)
|
|
4615
4615
|
return [];
|
|
4616
4616
|
try {
|
|
@@ -4622,7 +4622,7 @@ const St = () => {
|
|
|
4622
4622
|
`Failed to fetch address hierarchy for field "${t}": ${s instanceof Error ? s.message : "Unknown error"}`
|
|
4623
4623
|
);
|
|
4624
4624
|
}
|
|
4625
|
-
},
|
|
4625
|
+
}, __ = async () => B(cf), b_ = async (t) => B(of(t)), v_ = async () => {
|
|
4626
4626
|
try {
|
|
4627
4627
|
return (await B(
|
|
4628
4628
|
uf
|
|
@@ -4636,9 +4636,9 @@ const St = () => {
|
|
|
4636
4636
|
`Failed to fetch relationship types: ${t instanceof Error ? t.message : "Unknown error"}`
|
|
4637
4637
|
);
|
|
4638
4638
|
}
|
|
4639
|
-
},
|
|
4639
|
+
}, T_ = async () => B(pf);
|
|
4640
4640
|
var bf = /* @__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))(bf || {}), vf = /* @__PURE__ */ ((t) => (t.CHECKBOX = "checkbox", t.DROPDOWN = "dropdown", t.TEXT = "text", t.NUMBER = "number", t.DATE = "date", t))(vf || {});
|
|
4641
|
-
const
|
|
4641
|
+
const R_ = (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", S_ = (t) => t === "java.lang.Boolean" || t === "org.openmrs.customdatatype.datatype.BooleanDatatype", O_ = (t) => t === "org.openmrs.Concept" || t === "org.bahmni.module.bahmnicore.customdatatype.datatype.CodedConceptDatatype" || t === "org.openmrs.customdatatype.datatype.ConceptDatatype", A_ = (t) => t === "java.lang.Integer" || t === "java.lang.Float", P_ = (t) => t === "org.openmrs.util.AttributableDate" || t === "org.openmrs.customdatatype.datatype.DateDatatype", N_ = (t) => t === "java.lang.String" || t === "org.openmrs.customdatatype.datatype.FreeTextDatatype" || t === "org.openmrs.customdatatype.datatype.RegexValidatedTextDatatype", Tf = (t) => {
|
|
4642
4642
|
const e = new CustomEvent("bahmni-audit-log", { detail: t });
|
|
4643
4643
|
window.dispatchEvent(e);
|
|
4644
4644
|
}, Rf = (t) => {
|
|
@@ -4759,10 +4759,10 @@ const T_ = (t) => t === "java.lang.Boolean" || t === "org.openmrs.customdatatype
|
|
|
4759
4759
|
...n && {
|
|
4760
4760
|
episodeOfCare: [{ reference: `EpisodeOfCare/${n}` }]
|
|
4761
4761
|
}
|
|
4762
|
-
}),
|
|
4762
|
+
}), I_ = async () => B(Pf()), Cf = async (t) => B(If(t)), Vi = async (t) => B($f(t)), Lf = async (t) => ge(Nf, t), $_ = async (t) => {
|
|
4763
4763
|
const e = await Cf(t);
|
|
4764
4764
|
return e?.results && e.results.length > 0;
|
|
4765
|
-
},
|
|
4765
|
+
}, D_ = async (t, e) => {
|
|
4766
4766
|
const r = await Vi(
|
|
4767
4767
|
St().uuid
|
|
4768
4768
|
), n = {
|
|
@@ -4777,7 +4777,7 @@ const T_ = (t) => t === "java.lang.Boolean" || t === "org.openmrs.customdatatype
|
|
|
4777
4777
|
module: es.OPEN_VISIT.module
|
|
4778
4778
|
}), s;
|
|
4779
4779
|
}, xf = "/openmrs/ws/fhir2/R4/Encounter";
|
|
4780
|
-
async function
|
|
4780
|
+
async function C_(t, e, r, n, s) {
|
|
4781
4781
|
const o = Df(
|
|
4782
4782
|
t,
|
|
4783
4783
|
e,
|
|
@@ -7704,7 +7704,7 @@ function em(t, e, r) {
|
|
|
7704
7704
|
function tm(t, e, r) {
|
|
7705
7705
|
return ln(t, -e, r);
|
|
7706
7706
|
}
|
|
7707
|
-
const
|
|
7707
|
+
const L_ = {
|
|
7708
7708
|
PROPOSED: "proposed",
|
|
7709
7709
|
PENDING: "pending",
|
|
7710
7710
|
BOOKED: "booked",
|
|
@@ -7715,51 +7715,51 @@ const C_ = {
|
|
|
7715
7715
|
CHECKED_IN: "checked-in",
|
|
7716
7716
|
WAITLIST: "waitlist",
|
|
7717
7717
|
ENTERED_IN_ERROR: "entered-in-error"
|
|
7718
|
-
}, rm = W + "/appointments/search", sc = W + "/appointments",
|
|
7718
|
+
}, rm = W + "/appointments/search", sc = W + "/appointments", x_ = "http://fhir.bahmni.org/code-system/appointments", nm = (t) => `${sc}/${t}`, hn = (t, e, r, n) => {
|
|
7719
7719
|
const s = e === "upcoming", o = s ? "ge" : "le", a = s ? "date" : "-date", i = s ? (/* @__PURE__ */ new Date()).toISOString() : em(/* @__PURE__ */ new Date()).toISOString();
|
|
7720
|
-
let c = `${
|
|
7720
|
+
let c = `${re}/Appointment?patient=${t}&date=${o}${i}&_sort=${a}`;
|
|
7721
7721
|
return r !== void 0 && r > 0 && (c += `&_count=${r}`), n !== void 0 && n > 0 && (c += `&_getpagesoffset=${n}`), c;
|
|
7722
|
-
}, sm = (t) => hn(t, "upcoming"), om = (t, e) => hn(t, "past", e), am = (t) => `${sc}/${t}/status-change`, im = W + "/appointmentService/all/full", cm = (t) => `${W}/appointmentService?uuid=${t}`, um = (t, e = 10, r = 0) => hn(t, "upcoming", e, r), lm = (t, e = 10, r = 0) => hn(t, "past", e, r), oc = W + "/appointmentUnavailability",
|
|
7723
|
-
async function
|
|
7722
|
+
}, sm = (t) => hn(t, "upcoming"), om = (t, e) => hn(t, "past", e), am = (t) => `${sc}/${t}/status-change`, im = W + "/appointmentService/all/full", cm = (t) => `${W}/appointmentService?uuid=${t}`, um = (t, e = 10, r = 0) => hn(t, "upcoming", e, r), lm = (t, e = 10, r = 0) => hn(t, "past", e, r), oc = W + "/appointmentUnavailability", k_ = async (t) => await ge(rm, t);
|
|
7723
|
+
async function M_(t) {
|
|
7724
7724
|
return await B(sm(t));
|
|
7725
7725
|
}
|
|
7726
|
-
async function
|
|
7726
|
+
async function U_(t, e) {
|
|
7727
7727
|
return await B(
|
|
7728
7728
|
om(t, e)
|
|
7729
7729
|
);
|
|
7730
7730
|
}
|
|
7731
|
-
const
|
|
7731
|
+
const q_ = async (t, e, r) => await ge(am(t), {
|
|
7732
7732
|
toStatus: e,
|
|
7733
7733
|
onDate: r
|
|
7734
|
-
}),
|
|
7735
|
-
async function
|
|
7734
|
+
}), F_ = async (t, e) => ge(t, { appointmentUuid: e });
|
|
7735
|
+
async function j_(t) {
|
|
7736
7736
|
return await B(nm(t));
|
|
7737
7737
|
}
|
|
7738
|
-
const
|
|
7738
|
+
const V_ = async () => await B(im), H_ = async (t) => {
|
|
7739
7739
|
await Pi(cm(t));
|
|
7740
7740
|
};
|
|
7741
|
-
async function
|
|
7741
|
+
async function B_(t, e = 10, r = 1) {
|
|
7742
7742
|
const n = (r - 1) * e, s = await B(
|
|
7743
7743
|
um(t, e, n)
|
|
7744
7744
|
);
|
|
7745
7745
|
return { bundle: s, total: s.total ?? s.entry?.length ?? 0 };
|
|
7746
7746
|
}
|
|
7747
|
-
async function
|
|
7747
|
+
async function z_(t, e = 10, r = 1) {
|
|
7748
7748
|
const n = (r - 1) * e, s = await B(
|
|
7749
7749
|
lm(t, e, n)
|
|
7750
7750
|
);
|
|
7751
7751
|
return { bundle: s, total: s.total ?? s.entry?.length ?? 0 };
|
|
7752
7752
|
}
|
|
7753
|
-
const
|
|
7753
|
+
const Y_ = async () => await B(oc), G_ = async (t) => {
|
|
7754
7754
|
await ge(oc, t);
|
|
7755
|
-
}, ac = "dd/MM/yyyy", dm = "default_dateFormat", fm = "h:mm a",
|
|
7755
|
+
}, ac = "dd/MM/yyyy", dm = "default_dateFormat", fm = "h:mm a", K_ = "yyyy-MM-dd", Le = {
|
|
7756
7756
|
PARSE_ERROR: "DATE_ERROR_PARSE",
|
|
7757
7757
|
FORMAT_ERROR: "DATE_ERROR_FORMAT",
|
|
7758
7758
|
EMPTY_OR_INVALID: "DATE_ERROR_EMPTY_OR_INVALID",
|
|
7759
7759
|
INVALID_FORMAT: "DATE_ERROR_INVALID_FORMAT",
|
|
7760
7760
|
NULL_OR_UNDEFINED: "DATE_ERROR_NULL_OR_UNDEFINED"
|
|
7761
7761
|
};
|
|
7762
|
-
function
|
|
7762
|
+
function W_(t) {
|
|
7763
7763
|
if (!t) return null;
|
|
7764
7764
|
const e = pn(t);
|
|
7765
7765
|
if (!at(e)) return null;
|
|
@@ -7768,7 +7768,7 @@ function K_(t) {
|
|
|
7768
7768
|
const n = Ht(r, e), s = fn(r, e), o = ln(e, s), a = dn(r, o), i = Wt(o, a), c = Ht(r, i), u = `${s}y ${a}m ${c}d`;
|
|
7769
7769
|
return { year: s, month: a, day: c, ageInDays: n, ageText: u };
|
|
7770
7770
|
}
|
|
7771
|
-
function
|
|
7771
|
+
function J_(t) {
|
|
7772
7772
|
if (typeof t != "string" || !/^\d{4}-\d{2}-\d{2}$/.test(t))
|
|
7773
7773
|
return null;
|
|
7774
7774
|
const e = pn(t);
|
|
@@ -7836,7 +7836,7 @@ function hm() {
|
|
|
7836
7836
|
return ac;
|
|
7837
7837
|
}
|
|
7838
7838
|
}
|
|
7839
|
-
function
|
|
7839
|
+
function Q_(t, e, r = !1, n) {
|
|
7840
7840
|
const s = e ?? ((a) => a);
|
|
7841
7841
|
let o;
|
|
7842
7842
|
try {
|
|
@@ -7846,7 +7846,7 @@ function J_(t, e, r = !1, n) {
|
|
|
7846
7846
|
}
|
|
7847
7847
|
return r && !n && (o = `${o} ${fm}`), pm(t, o, s);
|
|
7848
7848
|
}
|
|
7849
|
-
function
|
|
7849
|
+
function X_(t, e, r) {
|
|
7850
7850
|
if (!t || !at(t) || e === null || e === void 0 || !r || typeof e != "number")
|
|
7851
7851
|
return;
|
|
7852
7852
|
const n = new Date(t);
|
|
@@ -7861,7 +7861,7 @@ function Q_(t, e, r) {
|
|
|
7861
7861
|
return;
|
|
7862
7862
|
}
|
|
7863
7863
|
}
|
|
7864
|
-
function
|
|
7864
|
+
function Z_(t, e) {
|
|
7865
7865
|
if (t == null)
|
|
7866
7866
|
return {
|
|
7867
7867
|
formattedResult: "",
|
|
@@ -7913,11 +7913,11 @@ function X_(t, e) {
|
|
|
7913
7913
|
}
|
|
7914
7914
|
return { formattedResult: c };
|
|
7915
7915
|
}
|
|
7916
|
-
const
|
|
7916
|
+
const eb = () => {
|
|
7917
7917
|
const t = /* @__PURE__ */ new Date();
|
|
7918
7918
|
return t.setHours(0, 0, 0, 0), t;
|
|
7919
7919
|
};
|
|
7920
|
-
function
|
|
7920
|
+
function tb(t, e) {
|
|
7921
7921
|
const r = typeof t == "string" ? pn(t) : new Date(t), n = /* @__PURE__ */ new Date(), s = fn(n, r), o = ln(r, s), a = dn(n, o), i = Wt(o, a), c = Ht(n, i), u = {
|
|
7922
7922
|
years: "YEARS",
|
|
7923
7923
|
months: "MONTHS",
|
|
@@ -7951,14 +7951,14 @@ const mm = {
|
|
|
7951
7951
|
h: 1 / 24,
|
|
7952
7952
|
min: 1 / 1440,
|
|
7953
7953
|
s: 1 / 86400
|
|
7954
|
-
},
|
|
7954
|
+
}, rb = (t, e, r) => {
|
|
7955
7955
|
const n = typeof t == "string" ? new Date(t) : t;
|
|
7956
7956
|
if (isNaN(n.getTime()))
|
|
7957
7957
|
throw new Error(`Invalid date: ${t}`);
|
|
7958
7958
|
const s = mm[r] ?? 1, o = e * s;
|
|
7959
7959
|
return un(n, o);
|
|
7960
|
-
},
|
|
7961
|
-
function
|
|
7960
|
+
}, nb = (t, e, r, n) => t <= n && r <= e;
|
|
7961
|
+
function sb(t, e, r = !1) {
|
|
7962
7962
|
return !t || !Array.isArray(t) ? [] : t.sort((n, s) => {
|
|
7963
7963
|
const o = new Date(n[e]), a = new Date(s[e]);
|
|
7964
7964
|
if (isNaN(o.getTime()) && isNaN(a.getTime())) return 0;
|
|
@@ -7973,7 +7973,7 @@ function gm(t) {
|
|
|
7973
7973
|
const e = xh(t, "hh:mm aa", /* @__PURE__ */ new Date());
|
|
7974
7974
|
return at(e) ? Xi(e, "HH:mm") : "";
|
|
7975
7975
|
}
|
|
7976
|
-
function
|
|
7976
|
+
function ob(t) {
|
|
7977
7977
|
const e = gm(t);
|
|
7978
7978
|
if (!e) return null;
|
|
7979
7979
|
const [r, n] = e.split(":").map(Number);
|
|
@@ -8008,10 +8008,10 @@ const ym = (t) => /^\d{4}-\d{2}-\d{2}T/.test(t), wm = () => {
|
|
|
8008
8008
|
);
|
|
8009
8009
|
}
|
|
8010
8010
|
};
|
|
8011
|
-
},
|
|
8011
|
+
}, ab = wm(), Em = (t) => re + `/ValueSet/${t}/$expand`, _m = (t) => re + `/ValueSet/$expand?filter=${encodeURIComponent(t)}`, bm = (t, e, r) => W + `/bahmni/terminologies/concepts?limit=${e}&locale=${r}&term=${t}`, vm = (t) => W + `/concept/${t}`, Tm = (t, e) => {
|
|
8012
8012
|
const r = `${W}/concept?s=byFullySpecifiedName&name=${encodeURIComponent(t)}`;
|
|
8013
8013
|
return e ? `${r}&v=${encodeURIComponent(e)}` : r;
|
|
8014
|
-
}, Rm = "SHORT", Sm = "FULLY_SPECIFIED",
|
|
8014
|
+
}, Rm = "SHORT", Sm = "FULLY_SPECIFIED", ib = async (t, e = 20) => {
|
|
8015
8015
|
const r = an(), n = bm(t, e, r);
|
|
8016
8016
|
return B(n);
|
|
8017
8017
|
}, jr = async (t) => {
|
|
@@ -8021,7 +8021,7 @@ const ym = (t) => /^\d{4}-\d{2}-\d{2}T/.test(t), wm = () => {
|
|
|
8021
8021
|
const e = `${_m(t)}`;
|
|
8022
8022
|
return B(e);
|
|
8023
8023
|
};
|
|
8024
|
-
async function
|
|
8024
|
+
async function cb(t) {
|
|
8025
8025
|
return await B(vm(t));
|
|
8026
8026
|
}
|
|
8027
8027
|
async function Am(t, e) {
|
|
@@ -8038,7 +8038,7 @@ function Pm(t) {
|
|
|
8038
8038
|
}
|
|
8039
8039
|
return e ?? t[0].name ?? null;
|
|
8040
8040
|
}
|
|
8041
|
-
const Nm = (t) =>
|
|
8041
|
+
const Nm = (t) => re + `/AllergyIntolerance?patient=${t}&_count=100&_sort=-_lastUpdated`, pt = {
|
|
8042
8042
|
FOOD: {
|
|
8043
8043
|
code: "162553AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",
|
|
8044
8044
|
display: "food"
|
|
@@ -8060,7 +8060,7 @@ const Nm = (t) => ne + `/AllergyIntolerance?patient=${t}&_count=100&_sort=-_last
|
|
|
8060
8060
|
}), Ln = (t, e) => {
|
|
8061
8061
|
const r = t.expansion?.contains ?? [];
|
|
8062
8062
|
return $m(r).map((s) => Dm(s, e));
|
|
8063
|
-
},
|
|
8063
|
+
}, ub = async (t, e, r) => {
|
|
8064
8064
|
const n = t ?? pt.MEDICATION.code, s = e ?? pt.FOOD.code, o = r ?? pt.ENVIRONMENT.code, [a, i, c] = await Promise.all([
|
|
8065
8065
|
jr(n),
|
|
8066
8066
|
jr(s),
|
|
@@ -8080,7 +8080,7 @@ const Nm = (t) => ne + `/AllergyIntolerance?patient=${t}&_count=100&_sort=-_last
|
|
|
8080
8080
|
pt.ENVIRONMENT.display
|
|
8081
8081
|
)
|
|
8082
8082
|
];
|
|
8083
|
-
},
|
|
8083
|
+
}, lb = async (t) => {
|
|
8084
8084
|
const e = t ?? Im.code;
|
|
8085
8085
|
return (await jr(e)).compose?.include[0]?.concept ?? [];
|
|
8086
8086
|
};
|
|
@@ -8120,12 +8120,12 @@ function xm(t) {
|
|
|
8120
8120
|
};
|
|
8121
8121
|
});
|
|
8122
8122
|
}
|
|
8123
|
-
async function
|
|
8123
|
+
async function db(t) {
|
|
8124
8124
|
const e = await Lm(t);
|
|
8125
8125
|
return xm(e);
|
|
8126
8126
|
}
|
|
8127
8127
|
var km = /* @__PURE__ */ ((t) => (t.Active = "Active", t.Inactive = "Inactive", t))(km || {}), Mm = /* @__PURE__ */ ((t) => (t.mild = "mild", t.moderate = "moderate", t.severe = "severe", t))(Mm || {});
|
|
8128
|
-
function
|
|
8128
|
+
function fb(t) {
|
|
8129
8129
|
const e = t.code?.coding?.[0]?.code ?? t.id ?? "", r = t.reaction?.[0]?.severity, n = /* @__PURE__ */ new Set(), s = [];
|
|
8130
8130
|
for (const o of t.reaction ?? [])
|
|
8131
8131
|
for (const a of o.manifestation ?? [])
|
|
@@ -8157,7 +8157,7 @@ const ns = (t) => ({
|
|
|
8157
8157
|
method: r,
|
|
8158
8158
|
url: n ?? e.resourceType
|
|
8159
8159
|
}
|
|
8160
|
-
}), ss = `${
|
|
8160
|
+
}), ss = `${re}/EncounterBundle`, Um = (t) => `${W}/encountertype?q=${encodeURIComponent(t)}&v=custom:(uuid,name)`, qm = (t, e) => re + `/Encounter?subject:Patient=${t}&_tag=visit&_sort=-_lastUpdated` + (e ? `&location=${e}` : ""), Fm = (t, e = 100, r = 0) => re + `/Encounter?subject:Patient=${t}&_sort=-_lastUpdated&_count=${e}&_getpagesoffset=${r}`, cc = re + "/Encounter";
|
|
8161
8161
|
function jm({
|
|
8162
8162
|
type: t,
|
|
8163
8163
|
partOf: e,
|
|
@@ -8211,7 +8211,7 @@ async function Vm(t, e) {
|
|
|
8211
8211
|
async function Hm(t, e) {
|
|
8212
8212
|
return (await Vm(t, e)).entry?.map((n) => n.resource).filter((n) => n !== void 0) ?? [];
|
|
8213
8213
|
}
|
|
8214
|
-
async function
|
|
8214
|
+
async function pb(t) {
|
|
8215
8215
|
const r = [];
|
|
8216
8216
|
let n = 0;
|
|
8217
8217
|
for (; ; ) {
|
|
@@ -8232,7 +8232,7 @@ async function Bm(t) {
|
|
|
8232
8232
|
async function mn(t, e) {
|
|
8233
8233
|
return (await Hm(t, e)).find((n) => !n.period?.end) ?? null;
|
|
8234
8234
|
}
|
|
8235
|
-
async function
|
|
8235
|
+
async function hb(t, e) {
|
|
8236
8236
|
return await B(
|
|
8237
8237
|
`/openmrs/ws/fhir2/R4/Encounter/${t}`,
|
|
8238
8238
|
e
|
|
@@ -8241,24 +8241,24 @@ async function pb(t, e) {
|
|
|
8241
8241
|
async function zm(t) {
|
|
8242
8242
|
return await ge(cc, t);
|
|
8243
8243
|
}
|
|
8244
|
-
async function
|
|
8244
|
+
async function mb(t, e) {
|
|
8245
8245
|
return await Ai(`${cc}/${t}`, e);
|
|
8246
8246
|
}
|
|
8247
|
-
async function
|
|
8247
|
+
async function gb(t) {
|
|
8248
8248
|
const e = St().uuid, n = (await Vi(e)).uuid;
|
|
8249
8249
|
return mn(t, n);
|
|
8250
8250
|
}
|
|
8251
|
-
const
|
|
8252
|
-
const s =
|
|
8251
|
+
const yb = (t, e) => t?.length === 0 ? !1 : e?.length === 0, Ym = (t) => re + `/Condition?category=${vs}&patient=${t}&_count=100&_sort=-_lastUpdated`, Gm = (t, e = 10, r = 0, n) => {
|
|
8252
|
+
const s = re + `/Condition?category=${vs}&patient=${t}&_count=${e}&_getpagesoffset=${r}&_sort=-_lastUpdated`;
|
|
8253
8253
|
return n ? `${s}&clinical-status=${n}` : s;
|
|
8254
8254
|
};
|
|
8255
8255
|
async function Km(t) {
|
|
8256
8256
|
return await B(`${Ym(t)}`);
|
|
8257
8257
|
}
|
|
8258
|
-
async function
|
|
8258
|
+
async function wb(t) {
|
|
8259
8259
|
return (await Km(t)).entry?.filter((n) => n.resource?.resourceType === "Condition").map((n) => n.resource) ?? [];
|
|
8260
8260
|
}
|
|
8261
|
-
async function
|
|
8261
|
+
async function Eb(t, e = 10, r = 1, n) {
|
|
8262
8262
|
const s = (r - 1) * e, o = await B(
|
|
8263
8263
|
Gm(t, e, s, n)
|
|
8264
8264
|
);
|
|
@@ -8283,7 +8283,7 @@ function Co(t, e, r, n) {
|
|
|
8283
8283
|
practitionerUUIDs: n ? [n] : void 0
|
|
8284
8284
|
});
|
|
8285
8285
|
}
|
|
8286
|
-
async function
|
|
8286
|
+
async function _b(t, e, r = !1, n, s, o) {
|
|
8287
8287
|
const a = {
|
|
8288
8288
|
...t,
|
|
8289
8289
|
category: [
|
|
@@ -8394,7 +8394,7 @@ async function Eb(t, e, r = !1, n, s, o) {
|
|
|
8394
8394
|
"Unable to mark condition as inactive: no encounter context available"
|
|
8395
8395
|
);
|
|
8396
8396
|
}
|
|
8397
|
-
const Wm = (t) =>
|
|
8397
|
+
const Wm = (t) => re + `/Condition?category=${Mi}&patient=${t}&_count=100&_sort=-_lastUpdated`, Jm = (t, e = 10, r = 0) => re + `/Condition?category=${Mi}&patient=${t}&_count=${e}&_getpagesoffset=${r}&_sort=-_lastUpdated`, xn = [
|
|
8398
8398
|
{
|
|
8399
8399
|
code: "confirmed",
|
|
8400
8400
|
display: "CERTAINITY_CONFIRMED",
|
|
@@ -8451,11 +8451,11 @@ function ng(t) {
|
|
|
8451
8451
|
}
|
|
8452
8452
|
return Array.from(e.values());
|
|
8453
8453
|
}
|
|
8454
|
-
async function
|
|
8454
|
+
async function bb(t) {
|
|
8455
8455
|
const e = await Zm(t), r = uc(e);
|
|
8456
8456
|
return ng(r);
|
|
8457
8457
|
}
|
|
8458
|
-
async function
|
|
8458
|
+
async function vb(t, e = 10, r = 1) {
|
|
8459
8459
|
const n = (r - 1) * e, s = await eg(
|
|
8460
8460
|
t,
|
|
8461
8461
|
e,
|
|
@@ -8476,12 +8476,12 @@ const qt = {
|
|
|
8476
8476
|
// Use only when medication details are needed immediately
|
|
8477
8477
|
INCLUDE_MEDICATION: "_include=MedicationRequest:medication"
|
|
8478
8478
|
}, sg = (t, e, r) => {
|
|
8479
|
-
let s = `${
|
|
8479
|
+
let s = `${re + "/MedicationRequest?" + qt.SORT + "&" + qt.COUNT}&patient=${t}`;
|
|
8480
8480
|
return e && (s += `&code=${e}`), r && (s += `&encounter=${r}`), s;
|
|
8481
8481
|
}, og = (t, e, r) => {
|
|
8482
|
-
let s = `${
|
|
8482
|
+
let s = `${re + "/MedicationRequest?" + qt.SORT + "&" + qt.COUNT + "&" + qt.INCLUDE_MEDICATION}&patient=${t}`;
|
|
8483
8483
|
return e && (s += `&code=${e}`), r && (s += `&encounter=${r}`), s;
|
|
8484
|
-
}, ag = W + "/bahmnicore/config/drugOrders", ig = (t, e) =>
|
|
8484
|
+
}, ag = W + "/bahmnicore/config/drugOrders", ig = (t, e) => re + `/Medication?name=${encodeURIComponent(t)}&_count=${e}&_sort=-_lastUpdated`, cg = re + "/Medication?code=http://hl7.org/fhir/sid/cvx|&_count=100", Tb = "medication", ug = (t) => {
|
|
8485
8485
|
switch (t.status) {
|
|
8486
8486
|
case "active":
|
|
8487
8487
|
return Be.Active;
|
|
@@ -8649,7 +8649,7 @@ function Tg(t) {
|
|
|
8649
8649
|
});
|
|
8650
8650
|
}
|
|
8651
8651
|
const Lo = (t) => t.priority === "stat";
|
|
8652
|
-
async function
|
|
8652
|
+
async function Rb(t, e, r, n = !1) {
|
|
8653
8653
|
const s = await lg(
|
|
8654
8654
|
t,
|
|
8655
8655
|
e,
|
|
@@ -8658,25 +8658,25 @@ async function Tb(t, e, r, n = !1) {
|
|
|
8658
8658
|
);
|
|
8659
8659
|
return Tg(s);
|
|
8660
8660
|
}
|
|
8661
|
-
async function
|
|
8661
|
+
async function Sb() {
|
|
8662
8662
|
return await B(
|
|
8663
8663
|
ag
|
|
8664
8664
|
);
|
|
8665
8665
|
}
|
|
8666
|
-
async function
|
|
8666
|
+
async function Ob(t, e = 20) {
|
|
8667
8667
|
return await B(
|
|
8668
8668
|
ig(t, e)
|
|
8669
8669
|
);
|
|
8670
8670
|
}
|
|
8671
|
-
async function
|
|
8671
|
+
async function Ab() {
|
|
8672
8672
|
return await B(cg);
|
|
8673
8673
|
}
|
|
8674
|
-
const Rg = (t) => `${
|
|
8675
|
-
async function
|
|
8674
|
+
const Rg = (t) => `${re}/Medication/${t}`;
|
|
8675
|
+
async function Pb(t) {
|
|
8676
8676
|
return await B(Rg(t));
|
|
8677
8677
|
}
|
|
8678
8678
|
const Sg = 200, Og = (t, e, r, n, s) => {
|
|
8679
|
-
let a = `${
|
|
8679
|
+
let a = `${re + `/ServiceRequest?_count=${Sg}&_sort=-_lastUpdated`}&category=${t}&patient=${e}`;
|
|
8680
8680
|
return s && (a += `&_revinclude=${s}`), r ? a += `&encounter=${r}` : n && (a += `&numberOfVisits=${n}`), a;
|
|
8681
8681
|
};
|
|
8682
8682
|
async function Jt(t, e, r, n, s) {
|
|
@@ -8691,8 +8691,8 @@ async function Jt(t, e, r, n, s) {
|
|
|
8691
8691
|
)
|
|
8692
8692
|
);
|
|
8693
8693
|
}
|
|
8694
|
-
const Ag = (t) => `${
|
|
8695
|
-
async function
|
|
8694
|
+
const Ag = (t) => `${re}/ImagingStudy/${t}/$fetch-quality-assessment`;
|
|
8695
|
+
async function Nb(t, e, r, n) {
|
|
8696
8696
|
return await Jt(
|
|
8697
8697
|
e,
|
|
8698
8698
|
t,
|
|
@@ -8700,7 +8700,7 @@ async function Pb(t, e, r, n) {
|
|
|
8700
8700
|
n
|
|
8701
8701
|
);
|
|
8702
8702
|
}
|
|
8703
|
-
async function
|
|
8703
|
+
async function Ib(t, e, r, n) {
|
|
8704
8704
|
return await Jt(
|
|
8705
8705
|
e,
|
|
8706
8706
|
t,
|
|
@@ -8709,7 +8709,7 @@ async function Nb(t, e, r, n) {
|
|
|
8709
8709
|
"ImagingStudy:basedon"
|
|
8710
8710
|
);
|
|
8711
8711
|
}
|
|
8712
|
-
async function
|
|
8712
|
+
async function $b(t, e, r, n) {
|
|
8713
8713
|
return (await Jt(
|
|
8714
8714
|
e,
|
|
8715
8715
|
t,
|
|
@@ -8717,10 +8717,10 @@ async function Ib(t, e, r, n) {
|
|
|
8717
8717
|
n
|
|
8718
8718
|
)).entry?.filter((a) => a.resource?.resourceType === "ServiceRequest").map((a) => a.resource) ?? [];
|
|
8719
8719
|
}
|
|
8720
|
-
async function
|
|
8720
|
+
async function Db(t) {
|
|
8721
8721
|
return await B(Ag(t));
|
|
8722
8722
|
}
|
|
8723
|
-
async function
|
|
8723
|
+
async function Cb(t, e, r, n) {
|
|
8724
8724
|
return await Jt(
|
|
8725
8725
|
e,
|
|
8726
8726
|
t,
|
|
@@ -8729,32 +8729,32 @@ async function Db(t, e, r, n) {
|
|
|
8729
8729
|
);
|
|
8730
8730
|
}
|
|
8731
8731
|
const Pg = (t, e) => {
|
|
8732
|
-
const r = `${
|
|
8732
|
+
const r = `${re}/DiagnosticReport?patient=${t}`;
|
|
8733
8733
|
return e ? `${r}&based-on=${e}` : r;
|
|
8734
|
-
}, Ng = (t) => `${
|
|
8735
|
-
async function
|
|
8734
|
+
}, Ng = (t) => `${re}/DiagnosticReport/${t}/$fetch-bundle`, Ig = (t) => `${re}/DiagnosticReport/${t}/$update-bundle`;
|
|
8735
|
+
async function Lb(t, e = []) {
|
|
8736
8736
|
const r = e.length > 0 ? e.join(",") : void 0, n = Pg(t, r);
|
|
8737
8737
|
return await B(n);
|
|
8738
8738
|
}
|
|
8739
|
-
async function
|
|
8739
|
+
async function xb(t) {
|
|
8740
8740
|
const e = Ng(t);
|
|
8741
8741
|
return await B(e);
|
|
8742
8742
|
}
|
|
8743
|
-
async function
|
|
8743
|
+
async function kb(t, e) {
|
|
8744
8744
|
const r = Ig(t);
|
|
8745
8745
|
return await ge(r, e);
|
|
8746
8746
|
}
|
|
8747
|
-
const
|
|
8747
|
+
const Mb = [
|
|
8748
8748
|
"preliminary",
|
|
8749
8749
|
"final",
|
|
8750
8750
|
"amended",
|
|
8751
8751
|
"corrected",
|
|
8752
8752
|
"appended"
|
|
8753
|
-
],
|
|
8753
|
+
], Ub = [
|
|
8754
8754
|
"registered",
|
|
8755
8755
|
"unknown",
|
|
8756
8756
|
"partial"
|
|
8757
|
-
], $g = "All Orderables", Dg = "/openmrs/ws/rest/v1/ordertype?v=custom:(uuid,display,conceptClasses:(uuid,name))", Cg = "LabSet", Lg = "http://fhir.bahmni.org/ext/ValueSet/concept-class",
|
|
8757
|
+
], $g = "All Orderables", Dg = "/openmrs/ws/rest/v1/ordertype?v=custom:(uuid,display,conceptClasses:(uuid,name))", Cg = "LabSet", Lg = "http://fhir.bahmni.org/ext/ValueSet/concept-class", qb = ["orderTypes"], xg = async () => await Om($g), Ps = async () => await B(Dg), kg = (t) => {
|
|
8758
8758
|
let e = t.display ?? "Unknown investigation";
|
|
8759
8759
|
return dc(t) === Cg && (e += ` (${fe.t("INVESTIGATION_PANEL")})`), e;
|
|
8760
8760
|
}, Mg = (t) => {
|
|
@@ -8786,12 +8786,12 @@ const kb = [
|
|
|
8786
8786
|
});
|
|
8787
8787
|
});
|
|
8788
8788
|
}), r;
|
|
8789
|
-
},
|
|
8789
|
+
}, Fb = async () => {
|
|
8790
8790
|
const t = await xg(), e = await Ps();
|
|
8791
8791
|
return Ug(t, Mg(e));
|
|
8792
|
-
},
|
|
8792
|
+
}, jb = async (t) => t ? (await Ps()).results.find(
|
|
8793
8793
|
(n) => n.display.toLowerCase() === t.toLowerCase()
|
|
8794
|
-
)?.uuid ?? null : null,
|
|
8794
|
+
)?.uuid ?? null : null, Vb = async () => (await Ps()).results.map((e) => e.display), Hb = async (t, e, r) => {
|
|
8795
8795
|
const n = [];
|
|
8796
8796
|
for (const s of t) {
|
|
8797
8797
|
const o = s.uuid;
|
|
@@ -9461,16 +9461,16 @@ function ee() {
|
|
|
9461
9461
|
}
|
|
9462
9462
|
// `for` statement for a range of values
|
|
9463
9463
|
forRange(_, S, C, Y, K = this.opts.es5 ? r.varKinds.var : r.varKinds.let) {
|
|
9464
|
-
const
|
|
9465
|
-
return this._for(new R(K,
|
|
9464
|
+
const ne = this._scope.toName(_);
|
|
9465
|
+
return this._for(new R(K, ne, S, C), () => Y(ne));
|
|
9466
9466
|
}
|
|
9467
9467
|
// `for-of` statement (in es5 mode replace with a normal for loop)
|
|
9468
9468
|
forOf(_, S, C, Y = r.varKinds.const) {
|
|
9469
9469
|
const K = this._scope.toName(_);
|
|
9470
9470
|
if (this.opts.es5) {
|
|
9471
|
-
const
|
|
9472
|
-
return this.forRange("_i", 0, (0, e._)`${
|
|
9473
|
-
this.var(K, (0, e._)`${
|
|
9471
|
+
const ne = S instanceof e.Name ? S : this.var("_arr", S);
|
|
9472
|
+
return this.forRange("_i", 0, (0, e._)`${ne}.length`, (te) => {
|
|
9473
|
+
this.var(K, (0, e._)`${ne}[${te}]`), C(K);
|
|
9474
9474
|
});
|
|
9475
9475
|
}
|
|
9476
9476
|
return this._for(new d("of", Y, K, S), () => C(K));
|
|
@@ -9587,13 +9587,13 @@ function ee() {
|
|
|
9587
9587
|
return C(D);
|
|
9588
9588
|
if (!Y(D))
|
|
9589
9589
|
return D;
|
|
9590
|
-
return new e._Code(D._items.reduce((K,
|
|
9590
|
+
return new e._Code(D._items.reduce((K, ne) => (ne instanceof e.Name && (ne = C(ne)), ne instanceof e._Code ? K.push(...ne._items) : K.push(ne), K), []));
|
|
9591
9591
|
function C(K) {
|
|
9592
|
-
const
|
|
9593
|
-
return
|
|
9592
|
+
const ne = S[K.str];
|
|
9593
|
+
return ne === void 0 || _[K.str] !== 1 ? K : (delete _[K.str], ne);
|
|
9594
9594
|
}
|
|
9595
9595
|
function Y(K) {
|
|
9596
|
-
return K instanceof e._Code && K._items.some((
|
|
9596
|
+
return K instanceof e._Code && K._items.some((ne) => ne instanceof e.Name && _[ne.str] === 1 && S[ne.str] !== void 0);
|
|
9597
9597
|
}
|
|
9598
9598
|
}
|
|
9599
9599
|
function J(D, _) {
|
|
@@ -10870,7 +10870,7 @@ function wn() {
|
|
|
10870
10870
|
const G = new C(N, j, $);
|
|
10871
10871
|
"code" in j ? j.code(G, V) : G.$data && j.validate ? (0, o.funcKeywordCode)(G, j) : "macro" in j ? (0, o.macroKeywordCode)(G, j) : (j.compile || j.validate) && (0, o.funcKeywordCode)(G, j);
|
|
10872
10872
|
}
|
|
10873
|
-
const K = /^\/(?:[^~]|~0|~1)*$/,
|
|
10873
|
+
const K = /^\/(?:[^~]|~0|~1)*$/, ne = /^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;
|
|
10874
10874
|
function te(N, { dataLevel: $, dataNames: j, dataPathArr: V }) {
|
|
10875
10875
|
let G, H;
|
|
10876
10876
|
if (N === "")
|
|
@@ -10880,7 +10880,7 @@ function wn() {
|
|
|
10880
10880
|
throw new Error(`Invalid JSON-pointer: ${N}`);
|
|
10881
10881
|
G = N, H = c.default.rootData;
|
|
10882
10882
|
} else {
|
|
10883
|
-
const Re =
|
|
10883
|
+
const Re = ne.exec(N);
|
|
10884
10884
|
if (!Re)
|
|
10885
10885
|
throw new Error(`Invalid JSON-pointer: ${N}`);
|
|
10886
10886
|
const Te = +Re[1];
|
|
@@ -11659,12 +11659,12 @@ function ty() {
|
|
|
11659
11659
|
unicode: '"minLength"/"maxLength" account for unicode characters by default.'
|
|
11660
11660
|
}, p = 200;
|
|
11661
11661
|
function E(U) {
|
|
11662
|
-
var P, q, D, _, S, C, Y, K,
|
|
11662
|
+
var P, q, D, _, S, C, Y, K, ne, te, N, $, j, V, G, H, ce, ve, ye, Re, Te, De, Ce, _n, bn;
|
|
11663
11663
|
const Pt = U.strict, vn = (P = U.code) === null || P === void 0 ? void 0 : P.optimize, ks = vn === !0 || vn === void 0 ? 1 : vn || 0, Ms = (D = (q = U.code) === null || q === void 0 ? void 0 : q.regExp) !== null && D !== void 0 ? D : b, $c = (_ = U.uriResolver) !== null && _ !== void 0 ? _ : y.default;
|
|
11664
11664
|
return {
|
|
11665
11665
|
strictSchema: (C = (S = U.strictSchema) !== null && S !== void 0 ? S : Pt) !== null && C !== void 0 ? C : !0,
|
|
11666
11666
|
strictNumbers: (K = (Y = U.strictNumbers) !== null && Y !== void 0 ? Y : Pt) !== null && K !== void 0 ? K : !0,
|
|
11667
|
-
strictTypes: (te = (
|
|
11667
|
+
strictTypes: (te = (ne = U.strictTypes) !== null && ne !== void 0 ? ne : Pt) !== null && te !== void 0 ? te : "log",
|
|
11668
11668
|
strictTuples: ($ = (N = U.strictTuples) !== null && N !== void 0 ? N : Pt) !== null && $ !== void 0 ? $ : "log",
|
|
11669
11669
|
strictRequired: (V = (j = U.strictRequired) !== null && j !== void 0 ? j : Pt) !== null && V !== void 0 ? V : !1,
|
|
11670
11670
|
code: U.code ? { ...U.code, optimize: ks, regExp: Ms } : { optimize: ks, regExp: Ms },
|
|
@@ -11743,10 +11743,10 @@ function ty() {
|
|
|
11743
11743
|
throw new Error(`AnySchema ${te} is loaded but ${N} cannot be resolved`);
|
|
11744
11744
|
}
|
|
11745
11745
|
async function K(te) {
|
|
11746
|
-
const N = await
|
|
11746
|
+
const N = await ne.call(this, te);
|
|
11747
11747
|
this.refs[te] || await S.call(this, N.$schema), this.refs[te] || this.addSchema(N, te, q);
|
|
11748
11748
|
}
|
|
11749
|
-
async function
|
|
11749
|
+
async function ne(te) {
|
|
11750
11750
|
const N = this._loading[te];
|
|
11751
11751
|
if (N)
|
|
11752
11752
|
return N;
|
|
@@ -11892,8 +11892,8 @@ function ty() {
|
|
|
11892
11892
|
const K = D[Y];
|
|
11893
11893
|
if (typeof K != "object")
|
|
11894
11894
|
continue;
|
|
11895
|
-
const { $data:
|
|
11896
|
-
|
|
11895
|
+
const { $data: ne } = K.definition, te = C[Y];
|
|
11896
|
+
ne && te && (C[Y] = ie(te));
|
|
11897
11897
|
}
|
|
11898
11898
|
}
|
|
11899
11899
|
return P;
|
|
@@ -11919,8 +11919,8 @@ function ty() {
|
|
|
11919
11919
|
if (K !== void 0)
|
|
11920
11920
|
return K;
|
|
11921
11921
|
D = (0, c.normalizeId)(C || D);
|
|
11922
|
-
const
|
|
11923
|
-
return K = new a.SchemaEnv({ schema: P, schemaId: Y, meta: q, baseId: D, localRefs:
|
|
11922
|
+
const ne = c.getSchemaRefs.call(this, P, D);
|
|
11923
|
+
return K = new a.SchemaEnv({ schema: P, schemaId: Y, meta: q, baseId: D, localRefs: ne }), this._cache.set(K.schema, K), S && !D.startsWith("#") && (D && this._checkUnique(D), this.refs[D] = K), _ && this.validateSchema(P, !0), K;
|
|
11924
11924
|
}
|
|
11925
11925
|
_checkUnique(P) {
|
|
11926
11926
|
if (this.schemas[P] || this.refs[P])
|
|
@@ -13349,14 +13349,14 @@ var zy = By();
|
|
|
13349
13349
|
const Yy = /* @__PURE__ */ qg(zy), Ka = {
|
|
13350
13350
|
CONFIG_NOT_FOUND: "CONFIG_ERROR_NOT_FOUND",
|
|
13351
13351
|
VALIDATION_FAILED: "CONFIG_ERROR_VALIDATION_FAILED"
|
|
13352
|
-
},
|
|
13352
|
+
}, Bb = async (t, e) => {
|
|
13353
13353
|
const r = await Gy(t);
|
|
13354
13354
|
if (!r)
|
|
13355
13355
|
throw new Error(Ka.CONFIG_NOT_FOUND);
|
|
13356
13356
|
if (!await Ky(r, e))
|
|
13357
13357
|
throw new Error(Ka.VALIDATION_FAILED);
|
|
13358
13358
|
return r;
|
|
13359
|
-
}, Gy = async (t) => await B(t), Ky = async (t, e) => new Yy().compile(e)(t), Wy = 1e4,
|
|
13359
|
+
}, Gy = async (t) => await B(t), Ky = async (t, e) => new Yy().compile(e)(t), Wy = 1e4, zb = async () => {
|
|
13360
13360
|
try {
|
|
13361
13361
|
await Pi(ws, { timeout: Wy });
|
|
13362
13362
|
} catch (t) {
|
|
@@ -13366,48 +13366,66 @@ const Yy = /* @__PURE__ */ qg(zy), Ka = {
|
|
|
13366
13366
|
}, Jy = (t) => W + `/form/${t}?v=custom:(uuid,name,version,published,resources:(value))`, Qy = (t) => {
|
|
13367
13367
|
const e = W + "/bahmniie/form/latestPublishedForms";
|
|
13368
13368
|
return t ? e + `?episodeUuid=${t}` : e;
|
|
13369
|
-
},
|
|
13369
|
+
}, Yb = (t) => W + `/user/${t}?v=full`, Xy = (t, e, r, n) => W + `/bahmniie/form/translations?formName=${encodeURIComponent(t)}&formUuid=${e}&formVersion=${r}&locale=${n}`, Vr = "Bahmni", Zy = (t) => W + `/form?q=${encodeURIComponent(t)}&v=custom:(uuid,name,version,published,auditInfo:(dateCreated))`, ew = (t, e, r) => {
|
|
13370
13370
|
let s = W + "/bahmnicore/patient/" + t + "/forms";
|
|
13371
13371
|
return r ? s += `?patientProgramUuid=${r}` : e && (s += `?numberOfVisits=${e}`), s;
|
|
13372
|
-
}, Ec = (t, e, r, n) => {
|
|
13373
|
-
let
|
|
13372
|
+
}, Ec = (t, e, r, n, s) => {
|
|
13373
|
+
let o = `${re}/Observation?patient=${t}&_sort=-_lastUpdated&_count=100`;
|
|
13374
13374
|
if (e && e.length > 0) {
|
|
13375
|
-
const
|
|
13376
|
-
|
|
13377
|
-
}
|
|
13378
|
-
return r && (
|
|
13379
|
-
}, tw = (t, e) => {
|
|
13380
|
-
let
|
|
13375
|
+
const a = e.join(",");
|
|
13376
|
+
o += `&code=${a}`, n && (o += "&_include=Observation:has-member&_include=Observation:encounter");
|
|
13377
|
+
}
|
|
13378
|
+
return r && (o += `&based-on=${r}`), s && s.length > 0 && (o += `&encounter=${s.join(",")}`), o;
|
|
13379
|
+
}, tw = (t, e, r, n) => {
|
|
13380
|
+
let s = `${re}/Observation/$last-n?patient=${t}&_sort=-_lastUpdated&_count=100&_include=Observation:has-member`;
|
|
13381
|
+
return e && e.length > 0 && (s += `&code=${e.join(",")}`, n && (s += "&_include=Observation:encounter")), r && r.length > 0 && (s += `&encounter=${r.join(",")}`), s;
|
|
13382
|
+
}, rw = (t, e) => {
|
|
13383
|
+
let r = `${re}/Observation/$fetch-all?encounter=${t}`;
|
|
13381
13384
|
return e && (r += `&based-on=${e}`), r;
|
|
13382
13385
|
};
|
|
13383
|
-
async function
|
|
13386
|
+
async function nw(t, e, r) {
|
|
13384
13387
|
const n = Ec(t, e, r);
|
|
13385
13388
|
return await B(n);
|
|
13386
13389
|
}
|
|
13387
|
-
async function Yb(t, e) {
|
|
13388
|
-
const r = Ec(t, e, void 0, !0);
|
|
13389
|
-
return await B(r);
|
|
13390
|
-
}
|
|
13391
13390
|
async function Gb(t, e, r) {
|
|
13392
|
-
|
|
13391
|
+
const n = Ec(
|
|
13392
|
+
t,
|
|
13393
|
+
e,
|
|
13394
|
+
void 0,
|
|
13395
|
+
!0,
|
|
13396
|
+
r
|
|
13397
|
+
);
|
|
13398
|
+
return await B(n);
|
|
13399
|
+
}
|
|
13400
|
+
async function Kb(t, e, r, n) {
|
|
13401
|
+
const s = tw(
|
|
13402
|
+
t,
|
|
13403
|
+
e,
|
|
13404
|
+
r,
|
|
13405
|
+
n
|
|
13406
|
+
);
|
|
13407
|
+
return await B(s);
|
|
13408
|
+
}
|
|
13409
|
+
async function Wb(t, e, r) {
|
|
13410
|
+
return (await nw(
|
|
13393
13411
|
t,
|
|
13394
13412
|
e,
|
|
13395
13413
|
r
|
|
13396
13414
|
)).entry?.filter((o) => o.resource?.resourceType === "Observation").map((o) => o.resource) ?? [];
|
|
13397
13415
|
}
|
|
13398
|
-
async function
|
|
13416
|
+
async function Jb(t, e) {
|
|
13399
13417
|
return await B(
|
|
13400
|
-
|
|
13418
|
+
rw(t, e)
|
|
13401
13419
|
);
|
|
13402
13420
|
}
|
|
13403
|
-
const
|
|
13421
|
+
const sw = (t) => t.split("/").pop() ?? "", Qb = (t, e) => {
|
|
13404
13422
|
const r = /* @__PURE__ */ new Map(), n = e.entry?.filter((o) => o.resource?.resourceType === "Encounter").map((o) => o.resource) ?? [], s = /* @__PURE__ */ new Map();
|
|
13405
13423
|
return n.forEach((o) => {
|
|
13406
13424
|
o.id && s.set(o.id, o);
|
|
13407
13425
|
}), t.forEach((o) => {
|
|
13408
13426
|
const a = o.encounter?.reference;
|
|
13409
13427
|
if (!a) return;
|
|
13410
|
-
const i =
|
|
13428
|
+
const i = sw(a), c = s.get(i);
|
|
13411
13429
|
if (c) {
|
|
13412
13430
|
if (!r.has(i)) {
|
|
13413
13431
|
const u = c.period?.start ? new Date(c.period.start).getTime() : 0, l = c.participant?.[0]?.individual?.display ?? "Unknown";
|
|
@@ -13423,23 +13441,23 @@ const nw = (t) => t.split("/").pop() ?? "", Wb = (t, e) => {
|
|
|
13423
13441
|
}), Array.from(r.values()).sort(
|
|
13424
13442
|
(o, a) => a.encounterDateTime - o.encounterDateTime
|
|
13425
13443
|
);
|
|
13426
|
-
}, _c = (t) => W + `/provider?user=${t}&v=custom:(uuid,display,person,attributes)`,
|
|
13427
|
-
async function
|
|
13444
|
+
}, _c = (t) => W + `/provider?user=${t}&v=custom:(uuid,display,person,attributes)`, ow = W + "/provider?v=custom:(uuid,display,person,attributes)";
|
|
13445
|
+
async function Xb(t) {
|
|
13428
13446
|
const e = await B(
|
|
13429
13447
|
_c(t)
|
|
13430
13448
|
);
|
|
13431
13449
|
return !e.results || e.results.length === 0 ? null : e.results[0];
|
|
13432
13450
|
}
|
|
13433
|
-
async function
|
|
13451
|
+
async function Zb() {
|
|
13434
13452
|
const t = [];
|
|
13435
|
-
let e =
|
|
13453
|
+
let e = ow;
|
|
13436
13454
|
for (; e; ) {
|
|
13437
13455
|
const r = await B(e);
|
|
13438
13456
|
t.push(...r.results ?? []), e = r.links?.find((s) => s.rel === "next")?.uri ?? null;
|
|
13439
13457
|
}
|
|
13440
13458
|
return t;
|
|
13441
13459
|
}
|
|
13442
|
-
async function
|
|
13460
|
+
async function ev(t) {
|
|
13443
13461
|
const e = await B(_c(t));
|
|
13444
13462
|
if (!e.results || e.results.length === 0)
|
|
13445
13463
|
return [];
|
|
@@ -13448,7 +13466,7 @@ async function Xb(t) {
|
|
|
13448
13466
|
(n) => !n.voided && n.attributeType.display === "Login Locations"
|
|
13449
13467
|
).map((n) => n.value) : [];
|
|
13450
13468
|
}
|
|
13451
|
-
const
|
|
13469
|
+
const aw = re + "/Encounter", iw = W + "/systemsetting/bahmni.encountersession.duration", tv = {
|
|
13452
13470
|
MATCHED: "ENCOUNTER_MATCH_REASON_MATCHED",
|
|
13453
13471
|
NO_ACTIVE_VISIT: "ENCOUNTER_MATCH_REASON_NO_ACTIVE_VISIT",
|
|
13454
13472
|
NO_ACTIVE_ENCOUNTER: "ENCOUNTER_MATCH_REASON_NO_ACTIVE_ENCOUNTER",
|
|
@@ -13461,20 +13479,20 @@ async function os(t) {
|
|
|
13461
13479
|
Object.entries(t).forEach(([s, o]) => {
|
|
13462
13480
|
o && e.append(s, o);
|
|
13463
13481
|
});
|
|
13464
|
-
const r = `${
|
|
13482
|
+
const r = `${aw}?${e.toString()}`;
|
|
13465
13483
|
return (await B(r)).entry?.map((s) => s.resource).filter((s) => s !== void 0) ?? [];
|
|
13466
13484
|
}
|
|
13467
13485
|
async function bc() {
|
|
13468
13486
|
try {
|
|
13469
13487
|
const t = await B(
|
|
13470
|
-
|
|
13488
|
+
iw
|
|
13471
13489
|
), e = Number(t.value);
|
|
13472
13490
|
return !isNaN(e) && e > 0 ? e : 60;
|
|
13473
13491
|
} catch {
|
|
13474
13492
|
return 30;
|
|
13475
13493
|
}
|
|
13476
13494
|
}
|
|
13477
|
-
async function
|
|
13495
|
+
async function cw(t, e, r) {
|
|
13478
13496
|
if (!t.length) return null;
|
|
13479
13497
|
try {
|
|
13480
13498
|
const n = await mn(e);
|
|
@@ -13486,7 +13504,7 @@ async function iw(t, e, r) {
|
|
|
13486
13504
|
return null;
|
|
13487
13505
|
}
|
|
13488
13506
|
}
|
|
13489
|
-
async function
|
|
13507
|
+
async function rv(t, e, r, n, s) {
|
|
13490
13508
|
try {
|
|
13491
13509
|
if (!t) return null;
|
|
13492
13510
|
const o = r ?? await bc(), i = `ge${new Date(Date.now() - o * 60 * 1e3).toISOString()}`, c = {
|
|
@@ -13497,7 +13515,7 @@ async function ev(t, e, r, n, s) {
|
|
|
13497
13515
|
};
|
|
13498
13516
|
e && (c.participant = e);
|
|
13499
13517
|
const u = await os(c);
|
|
13500
|
-
return u.length === 0 ? null : await
|
|
13518
|
+
return u.length === 0 ? null : await cw(
|
|
13501
13519
|
u,
|
|
13502
13520
|
t,
|
|
13503
13521
|
s
|
|
@@ -13527,7 +13545,7 @@ function Yn(t) {
|
|
|
13527
13545
|
return new Date(r.period?.start ?? 0).getTime() - n;
|
|
13528
13546
|
});
|
|
13529
13547
|
}
|
|
13530
|
-
async function
|
|
13548
|
+
async function nv(t, e, r, n) {
|
|
13531
13549
|
try {
|
|
13532
13550
|
const s = await mn(t);
|
|
13533
13551
|
if (!s?.id)
|
|
@@ -13592,7 +13610,7 @@ async function tv(t, e, r, n) {
|
|
|
13592
13610
|
};
|
|
13593
13611
|
}
|
|
13594
13612
|
}
|
|
13595
|
-
function
|
|
13613
|
+
function sv(t) {
|
|
13596
13614
|
return t.matched || t.reasons.includes("LOCATION_MISMATCH") && !t.reasons.includes("SESSION_EXPIRED") && !t.reasons.includes("PROVIDER_MISMATCH");
|
|
13597
13615
|
}
|
|
13598
13616
|
const vc = {
|
|
@@ -13600,7 +13618,7 @@ const vc = {
|
|
|
13600
13618
|
activeEncounter: null,
|
|
13601
13619
|
canEditOrCreate: !1,
|
|
13602
13620
|
isLoading: !1
|
|
13603
|
-
},
|
|
13621
|
+
}, uw = [
|
|
13604
13622
|
"MATCHED",
|
|
13605
13623
|
"LOCATION_MISMATCH",
|
|
13606
13624
|
"PROVIDER_MISMATCH"
|
|
@@ -13610,17 +13628,17 @@ const as = /* @__PURE__ */ new Set();
|
|
|
13610
13628
|
function Cs() {
|
|
13611
13629
|
as.forEach((t) => t());
|
|
13612
13630
|
}
|
|
13613
|
-
function
|
|
13631
|
+
function lw(t) {
|
|
13614
13632
|
return as.add(t), () => {
|
|
13615
13633
|
as.delete(t);
|
|
13616
13634
|
};
|
|
13617
13635
|
}
|
|
13618
|
-
function
|
|
13636
|
+
function dw() {
|
|
13619
13637
|
return Bt;
|
|
13620
13638
|
}
|
|
13621
|
-
function
|
|
13639
|
+
function ov(t) {
|
|
13622
13640
|
const e = t.reasons.some(
|
|
13623
|
-
(r) =>
|
|
13641
|
+
(r) => uw.includes(r)
|
|
13624
13642
|
);
|
|
13625
13643
|
Bt = {
|
|
13626
13644
|
matchReasons: t.reasons,
|
|
@@ -13629,21 +13647,21 @@ function nv(t) {
|
|
|
13629
13647
|
isLoading: !1
|
|
13630
13648
|
}, Cs();
|
|
13631
13649
|
}
|
|
13632
|
-
function
|
|
13650
|
+
function av(t) {
|
|
13633
13651
|
Bt = { ...Bt, isLoading: t }, Cs();
|
|
13634
13652
|
}
|
|
13635
|
-
function
|
|
13653
|
+
function iv() {
|
|
13636
13654
|
Bt = { ...vc }, Cs();
|
|
13637
13655
|
}
|
|
13638
|
-
function
|
|
13656
|
+
function cv() {
|
|
13639
13657
|
return Cc(
|
|
13640
|
-
|
|
13641
|
-
|
|
13658
|
+
lw,
|
|
13659
|
+
dw
|
|
13642
13660
|
);
|
|
13643
13661
|
}
|
|
13644
|
-
const
|
|
13645
|
-
async function
|
|
13646
|
-
const e = t.join(","), r = await B(
|
|
13662
|
+
const fw = (t) => re + `/EpisodeOfCare?_revinclude=Encounter:episode-of-care&_id=${t}`, pw = (t) => re + `/EpisodeOfCare/${t}`;
|
|
13663
|
+
async function uv(t) {
|
|
13664
|
+
const e = t.join(","), r = await B(fw(e));
|
|
13647
13665
|
if (r.total === 0)
|
|
13648
13666
|
throw new Error(
|
|
13649
13667
|
"No episode of care found for the provided UUIDs: " + t.join(", ")
|
|
@@ -13655,16 +13673,16 @@ async function iv(t) {
|
|
|
13655
13673
|
c && s.add(c);
|
|
13656
13674
|
}), { visitUuids: Array.from(s), encounterUuids: o };
|
|
13657
13675
|
}
|
|
13658
|
-
async function
|
|
13659
|
-
return await B(`${
|
|
13676
|
+
async function lv(t) {
|
|
13677
|
+
return await B(`${pw(t)}`);
|
|
13660
13678
|
}
|
|
13661
|
-
const Gn = /* @__PURE__ */ new Map(),
|
|
13679
|
+
const Gn = /* @__PURE__ */ new Map(), hw = async (t) => {
|
|
13662
13680
|
if (Gn.has(t))
|
|
13663
13681
|
return Gn.get(t) ?? null;
|
|
13664
13682
|
const e = await B(xi(t)), r = e ? String(e) : null;
|
|
13665
13683
|
return Gn.set(t, r), r;
|
|
13666
|
-
},
|
|
13667
|
-
if (!await
|
|
13684
|
+
}, mw = async () => await hw(Ud) === "true", gw = async (t, e, r, n = Ze.CLINICAL) => {
|
|
13685
|
+
if (!await mw())
|
|
13668
13686
|
return { logged: !1 };
|
|
13669
13687
|
const o = es[e];
|
|
13670
13688
|
if (!o)
|
|
@@ -13681,14 +13699,14 @@ const Gn = /* @__PURE__ */ new Map(), pw = async (t) => {
|
|
|
13681
13699
|
module: n
|
|
13682
13700
|
};
|
|
13683
13701
|
return await ge(Sf, a), { logged: !0 };
|
|
13684
|
-
},
|
|
13685
|
-
await
|
|
13702
|
+
}, dv = () => Rf(async (e) => {
|
|
13703
|
+
await gw(
|
|
13686
13704
|
e.patientUuid,
|
|
13687
13705
|
e.eventType,
|
|
13688
13706
|
e.messageParams,
|
|
13689
13707
|
e.module
|
|
13690
13708
|
);
|
|
13691
|
-
}),
|
|
13709
|
+
}), fv = async () => {
|
|
13692
13710
|
try {
|
|
13693
13711
|
const t = await B(ws);
|
|
13694
13712
|
return t.user ? t.user.privileges : null;
|
|
@@ -13696,7 +13714,7 @@ const Gn = /* @__PURE__ */ new Map(), pw = async (t) => {
|
|
|
13696
13714
|
const { message: e } = Yr(t);
|
|
13697
13715
|
throw new Error(e);
|
|
13698
13716
|
}
|
|
13699
|
-
},
|
|
13717
|
+
}, yw = (t, e) => {
|
|
13700
13718
|
if (!t || t.length === 0)
|
|
13701
13719
|
return !1;
|
|
13702
13720
|
if (!e || e.length === 0)
|
|
@@ -13705,7 +13723,7 @@ const Gn = /* @__PURE__ */ new Map(), pw = async (t) => {
|
|
|
13705
13723
|
return t.some(
|
|
13706
13724
|
(n) => r.includes(n.name)
|
|
13707
13725
|
);
|
|
13708
|
-
},
|
|
13726
|
+
}, ww = async (t) => {
|
|
13709
13727
|
let e;
|
|
13710
13728
|
t && t.length > 0 && (e = t.join(","));
|
|
13711
13729
|
const r = await fetch(Qy(e));
|
|
@@ -13715,7 +13733,7 @@ const Gn = /* @__PURE__ */ new Map(), pw = async (t) => {
|
|
|
13715
13733
|
);
|
|
13716
13734
|
const n = await r.json();
|
|
13717
13735
|
return Array.isArray(n) ? n : [];
|
|
13718
|
-
},
|
|
13736
|
+
}, Ew = (t, e) => {
|
|
13719
13737
|
const r = JSON.parse(t.nameTranslation);
|
|
13720
13738
|
if (Array.isArray(r) && r.length > 0) {
|
|
13721
13739
|
const n = r.find(
|
|
@@ -13725,8 +13743,8 @@ const Gn = /* @__PURE__ */ new Map(), pw = async (t) => {
|
|
|
13725
13743
|
return n.display;
|
|
13726
13744
|
}
|
|
13727
13745
|
return t.name;
|
|
13728
|
-
},
|
|
13729
|
-
const r =
|
|
13746
|
+
}, _w = (t, e) => {
|
|
13747
|
+
const r = Ew(t, e);
|
|
13730
13748
|
return {
|
|
13731
13749
|
uuid: t.uuid,
|
|
13732
13750
|
name: r,
|
|
@@ -13736,12 +13754,12 @@ const Gn = /* @__PURE__ */ new Map(), pw = async (t) => {
|
|
|
13736
13754
|
editable: n.editable
|
|
13737
13755
|
}))
|
|
13738
13756
|
};
|
|
13739
|
-
},
|
|
13740
|
-
const e = await
|
|
13757
|
+
}, pv = async (t) => {
|
|
13758
|
+
const e = await ww(t), r = an();
|
|
13741
13759
|
return e.map(
|
|
13742
|
-
(n) =>
|
|
13760
|
+
(n) => _w(n, r)
|
|
13743
13761
|
);
|
|
13744
|
-
},
|
|
13762
|
+
}, hv = async (t) => {
|
|
13745
13763
|
const e = await fetch(Jy(t));
|
|
13746
13764
|
if (!e.ok)
|
|
13747
13765
|
throw new Error(
|
|
@@ -13775,7 +13793,7 @@ const Gn = /* @__PURE__ */ new Map(), pw = async (t) => {
|
|
|
13775
13793
|
schema: n,
|
|
13776
13794
|
translations: u
|
|
13777
13795
|
};
|
|
13778
|
-
},
|
|
13796
|
+
}, mv = async (t, e, r) => {
|
|
13779
13797
|
const n = await fetch(Zy(t));
|
|
13780
13798
|
if (!n.ok) return null;
|
|
13781
13799
|
const s = await n.json(), a = (Array.isArray(s.results) ? s.results : []).filter(
|
|
@@ -13797,13 +13815,13 @@ const Gn = /* @__PURE__ */ new Map(), pw = async (t) => {
|
|
|
13797
13815
|
(u) => new Date(u.auditInfo.dateCreated).getTime() <= r
|
|
13798
13816
|
);
|
|
13799
13817
|
return c.length === 0 ? i[0].uuid : c.at(-1).uuid;
|
|
13800
|
-
},
|
|
13818
|
+
}, gv = async (t, e, r) => {
|
|
13801
13819
|
let n;
|
|
13802
13820
|
e && e.length > 0 && (n = e.join(","));
|
|
13803
13821
|
const s = ew(t, r, n), o = await B(s);
|
|
13804
13822
|
return Array.isArray(o) ? o : [];
|
|
13805
13823
|
};
|
|
13806
|
-
function
|
|
13824
|
+
function yv(t) {
|
|
13807
13825
|
const e = (c) => String(c).padStart(2, "0"), r = t.getFullYear(), n = e(t.getMonth() + 1), s = e(t.getDate()), o = e(t.getHours()), a = e(t.getMinutes()), i = e(t.getSeconds());
|
|
13808
13826
|
return `${r}-${n}-${s} ${o}:${a}:${i}`;
|
|
13809
13827
|
}
|
|
@@ -13846,7 +13864,7 @@ function Ls(t, e) {
|
|
|
13846
13864
|
};
|
|
13847
13865
|
return n(r.controls);
|
|
13848
13866
|
}
|
|
13849
|
-
function
|
|
13867
|
+
function wv(t, e) {
|
|
13850
13868
|
if (!t.controls || t.controls.length === 0)
|
|
13851
13869
|
return [];
|
|
13852
13870
|
const r = [], n = (/* @__PURE__ */ new Date()).toISOString();
|
|
@@ -13891,7 +13909,7 @@ function gv(t, e) {
|
|
|
13891
13909
|
s.interpretation && (a.interpretation = s.interpretation), s.comment && (a.comment = s.comment), r.push(a);
|
|
13892
13910
|
}), r;
|
|
13893
13911
|
}
|
|
13894
|
-
function
|
|
13912
|
+
function Ev(t, e) {
|
|
13895
13913
|
if (!t || t.length === 0)
|
|
13896
13914
|
return {
|
|
13897
13915
|
controls: [],
|
|
@@ -13919,17 +13937,17 @@ function yv(t, e) {
|
|
|
13919
13937
|
metadata: { formMetadata: e }
|
|
13920
13938
|
};
|
|
13921
13939
|
}
|
|
13922
|
-
function
|
|
13940
|
+
function bw(t) {
|
|
13923
13941
|
return t == null ? null : typeof t == "string" || typeof t == "number" || typeof t == "boolean" || typeof t == "object" ? t : null;
|
|
13924
13942
|
}
|
|
13925
|
-
function
|
|
13943
|
+
function _v(t, e) {
|
|
13926
13944
|
const r = (s) => {
|
|
13927
13945
|
const o = s.concept, a = typeof o == "object" && o !== null && "uuid" in o ? o.uuid : o, i = (e && Ls(e, a)) ?? (typeof o == "object" && o !== null && "datatype" in o ? o.datatype : void 0), c = {
|
|
13928
13946
|
concept: {
|
|
13929
13947
|
uuid: a,
|
|
13930
13948
|
datatype: i
|
|
13931
13949
|
},
|
|
13932
|
-
value:
|
|
13950
|
+
value: bw(s.value),
|
|
13933
13951
|
obsDatetime: typeof s.observationDateTime == "string" ? s.observationDateTime : (/* @__PURE__ */ new Date()).toISOString(),
|
|
13934
13952
|
formNamespace: typeof s.formNamespace == "string" ? s.formNamespace : "Bahmni",
|
|
13935
13953
|
formFieldPath: typeof s.formFieldPath == "string" ? s.formFieldPath : void 0
|
|
@@ -13938,11 +13956,11 @@ function wv(t, e) {
|
|
|
13938
13956
|
};
|
|
13939
13957
|
return (t?.filter((s) => s.uuid && s.voided ? !0 : !(!s.uuid && s.voided || s.value && typeof s.value == "string" && s.value.endsWith("voided"))) ?? []).map(r);
|
|
13940
13958
|
}
|
|
13941
|
-
function
|
|
13959
|
+
function bv(t) {
|
|
13942
13960
|
if (!(!t || typeof t != "object"))
|
|
13943
13961
|
return "toJS" in t && typeof t.toJS == "function" ? t.toJS() : t;
|
|
13944
13962
|
}
|
|
13945
|
-
function
|
|
13963
|
+
function vv(t, e) {
|
|
13946
13964
|
!t || !Array.isArray(t.children) || t.children.forEach((r) => {
|
|
13947
13965
|
r && typeof r == "object" && Sc(
|
|
13948
13966
|
r,
|
|
@@ -13972,7 +13990,7 @@ function Sc(t, e) {
|
|
|
13972
13990
|
);
|
|
13973
13991
|
});
|
|
13974
13992
|
}
|
|
13975
|
-
const
|
|
13993
|
+
const vw = W + "/bahmnicore/diseaseSummaryData?", Tv = async (t, e, r, n) => {
|
|
13976
13994
|
const s = new URLSearchParams({
|
|
13977
13995
|
groupBy: n,
|
|
13978
13996
|
latestCount: e.toString(),
|
|
@@ -13981,17 +13999,17 @@ const bw = W + "/bahmnicore/diseaseSummaryData?", bv = async (t, e, r, n) => {
|
|
|
13981
13999
|
r.forEach((a) => {
|
|
13982
14000
|
s.append("obsConcepts", a);
|
|
13983
14001
|
});
|
|
13984
|
-
const o =
|
|
14002
|
+
const o = vw + s.toString();
|
|
13985
14003
|
return B(o);
|
|
13986
|
-
}, xs = "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)",
|
|
14004
|
+
}, xs = "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)", Tw = `${W}/program`, Rw = (t) => `${W}/bahmniprogramenrollment?patient=${t}&v=${xs}`, Sw = (t, e = 15, r = 0) => `${W}/bahmniprogramenrollment?patient=${t}&v=${xs}&limit=${e}&startIndex=${r}&totalCount=true`, Oc = (t) => `${W}/bahmniprogramenrollment/${t}`, Ow = (t) => `${Oc(t)}?v=${xs}`, Rv = async (t) => await B(Rw(t)), Sv = async (t, e = 15, r = 1) => {
|
|
13987
14005
|
const n = (r - 1) * e, s = await B(
|
|
13988
|
-
|
|
14006
|
+
Sw(t, e, n)
|
|
13989
14007
|
);
|
|
13990
14008
|
return {
|
|
13991
14009
|
programs: s.results,
|
|
13992
14010
|
total: s.totalCount
|
|
13993
14011
|
};
|
|
13994
|
-
},
|
|
14012
|
+
}, Ov = async (t) => await B(Ow(t)), Av = async (t, e) => {
|
|
13995
14013
|
const r = {
|
|
13996
14014
|
uuid: t,
|
|
13997
14015
|
states: [
|
|
@@ -14005,7 +14023,7 @@ const bw = W + "/bahmnicore/diseaseSummaryData?", bv = async (t, e, r, n) => {
|
|
|
14005
14023
|
r
|
|
14006
14024
|
);
|
|
14007
14025
|
};
|
|
14008
|
-
function
|
|
14026
|
+
function Pv(t) {
|
|
14009
14027
|
if (t.states.length === 0)
|
|
14010
14028
|
return null;
|
|
14011
14029
|
let e;
|
|
@@ -14021,7 +14039,7 @@ function Ov(t) {
|
|
|
14021
14039
|
e = t.states.find((r) => r.endDate === null);
|
|
14022
14040
|
return e ? Pm(e.state.concept.names) ?? e.state.concept.display : null;
|
|
14023
14041
|
}
|
|
14024
|
-
function
|
|
14042
|
+
function Nv(t, e) {
|
|
14025
14043
|
if (e.length === 0)
|
|
14026
14044
|
return {};
|
|
14027
14045
|
const r = {};
|
|
@@ -14033,12 +14051,12 @@ function Av(t, e) {
|
|
|
14033
14051
|
}
|
|
14034
14052
|
return r;
|
|
14035
14053
|
}
|
|
14036
|
-
const
|
|
14054
|
+
const Iv = async () => (await B(Tw)).results, is = "consultation:saved", $v = (t) => {
|
|
14037
14055
|
const e = new CustomEvent(is, {
|
|
14038
14056
|
detail: t
|
|
14039
14057
|
});
|
|
14040
14058
|
window.dispatchEvent(e);
|
|
14041
|
-
},
|
|
14059
|
+
}, Dv = (t, e = []) => {
|
|
14042
14060
|
const r = Ft(t);
|
|
14043
14061
|
nt(() => {
|
|
14044
14062
|
r.current = t;
|
|
@@ -14051,17 +14069,17 @@ const Pv = async () => (await B(vw)).results, is = "consultation:saved", Nv = (t
|
|
|
14051
14069
|
window.removeEventListener(is, n);
|
|
14052
14070
|
};
|
|
14053
14071
|
}, e);
|
|
14054
|
-
}, cs = "cdss:check", us = "cdss:results",
|
|
14072
|
+
}, cs = "cdss:check", us = "cdss:results", Cv = (t) => {
|
|
14055
14073
|
const e = new CustomEvent(cs, {
|
|
14056
14074
|
detail: t
|
|
14057
14075
|
});
|
|
14058
14076
|
globalThis.dispatchEvent(e);
|
|
14059
|
-
},
|
|
14077
|
+
}, Lv = (t) => {
|
|
14060
14078
|
const e = new CustomEvent(us, {
|
|
14061
14079
|
detail: t
|
|
14062
14080
|
});
|
|
14063
14081
|
globalThis.dispatchEvent(e);
|
|
14064
|
-
},
|
|
14082
|
+
}, xv = (t) => {
|
|
14065
14083
|
const e = Ft(t);
|
|
14066
14084
|
nt(() => {
|
|
14067
14085
|
e.current = t;
|
|
@@ -14074,7 +14092,7 @@ const Pv = async () => (await B(vw)).results, is = "consultation:saved", Nv = (t
|
|
|
14074
14092
|
globalThis.removeEventListener(cs, r);
|
|
14075
14093
|
};
|
|
14076
14094
|
}, []);
|
|
14077
|
-
},
|
|
14095
|
+
}, kv = (t) => {
|
|
14078
14096
|
const e = Ft(t);
|
|
14079
14097
|
nt(() => {
|
|
14080
14098
|
e.current = t;
|
|
@@ -14087,17 +14105,17 @@ const Pv = async () => (await B(vw)).results, is = "consultation:saved", Nv = (t
|
|
|
14087
14105
|
globalThis.removeEventListener(us, r);
|
|
14088
14106
|
};
|
|
14089
14107
|
}, []);
|
|
14090
|
-
},
|
|
14091
|
-
const s = `${
|
|
14108
|
+
}, Aw = `${re}/DocumentReference`, Pw = "bahmni.documentUpload.maxFileSizeInMB", Nw = `${W}/systemsetting?q=${Pw}&v=custom:(property,value)`, Ac = (t, e, r = 100, n = 0) => {
|
|
14109
|
+
const s = `${re}/DocumentReference?patient=${t}&_sort=-_lastUpdated&_count=${r}&_getpagesoffset=${n}`;
|
|
14092
14110
|
return e && e.length > 0 ? `${s}&encounter=${encodeURIComponent(e.join(","))}` : s;
|
|
14093
14111
|
};
|
|
14094
|
-
async function
|
|
14112
|
+
async function Mv() {
|
|
14095
14113
|
const t = await B(
|
|
14096
|
-
|
|
14114
|
+
Nw
|
|
14097
14115
|
), e = Number(t.results?.[0]?.value);
|
|
14098
14116
|
return Number.isFinite(e) && e > 0 ? e : void 0;
|
|
14099
14117
|
}
|
|
14100
|
-
async function
|
|
14118
|
+
async function Uv(t) {
|
|
14101
14119
|
return ((await Am(t, "custom:(setMembers:(uuid,display))"))?.setMembers ?? []).map((n) => ({
|
|
14102
14120
|
id: n.uuid,
|
|
14103
14121
|
label: n.display ?? ""
|
|
@@ -14120,17 +14138,17 @@ function Pc(t) {
|
|
|
14120
14138
|
};
|
|
14121
14139
|
});
|
|
14122
14140
|
}
|
|
14123
|
-
async function
|
|
14141
|
+
async function Iw(t, e) {
|
|
14124
14142
|
const r = Ac(t, e);
|
|
14125
14143
|
return B(r);
|
|
14126
14144
|
}
|
|
14127
|
-
async function
|
|
14128
|
-
const n = ((await
|
|
14145
|
+
async function qv(t, e) {
|
|
14146
|
+
const n = ((await Iw(t, e)).entry ?? []).filter(
|
|
14129
14147
|
(s) => !!s.resource
|
|
14130
14148
|
);
|
|
14131
14149
|
return Pc(n);
|
|
14132
14150
|
}
|
|
14133
|
-
async function
|
|
14151
|
+
async function Fv(t, e, r = 10, n = 1) {
|
|
14134
14152
|
const s = (n - 1) * r, o = Ac(
|
|
14135
14153
|
t,
|
|
14136
14154
|
e,
|
|
@@ -14170,7 +14188,7 @@ function Nc(t, e) {
|
|
|
14170
14188
|
}
|
|
14171
14189
|
]), r;
|
|
14172
14190
|
}
|
|
14173
|
-
function
|
|
14191
|
+
function $w(t, e, r, n, s, o) {
|
|
14174
14192
|
const a = {
|
|
14175
14193
|
resourceType: "Encounter",
|
|
14176
14194
|
status: "finished",
|
|
@@ -14215,16 +14233,16 @@ function Iw(t, e, r, n, s, o) {
|
|
|
14215
14233
|
}
|
|
14216
14234
|
]), a;
|
|
14217
14235
|
}
|
|
14218
|
-
async function
|
|
14236
|
+
async function Dw(t) {
|
|
14219
14237
|
const e = Nc(
|
|
14220
14238
|
t,
|
|
14221
14239
|
`Encounter/${t.encounterUuid}`
|
|
14222
14240
|
);
|
|
14223
|
-
return ge(
|
|
14241
|
+
return ge(Aw, e);
|
|
14224
14242
|
}
|
|
14225
|
-
async function
|
|
14243
|
+
async function jv(t) {
|
|
14226
14244
|
if (t.encounterUuid)
|
|
14227
|
-
return
|
|
14245
|
+
return Dw({
|
|
14228
14246
|
...t,
|
|
14229
14247
|
encounterUuid: t.encounterUuid
|
|
14230
14248
|
});
|
|
@@ -14232,7 +14250,7 @@ async function qv(t) {
|
|
|
14232
14250
|
throw new Error(
|
|
14233
14251
|
"saveDocument requires either encounterUuid or createEncounterInVisit"
|
|
14234
14252
|
);
|
|
14235
|
-
const { visitUuid: e, encounterTypeUuid: r, encounterTypeDisplay: n } = t.createEncounterInVisit, s = `urn:uuid:${Qr()}`, o =
|
|
14253
|
+
const { visitUuid: e, encounterTypeUuid: r, encounterTypeDisplay: n } = t.createEncounterInVisit, s = `urn:uuid:${Qr()}`, o = $w(
|
|
14236
14254
|
t.patientUuid,
|
|
14237
14255
|
e,
|
|
14238
14256
|
r,
|
|
@@ -14245,27 +14263,27 @@ async function qv(t) {
|
|
|
14245
14263
|
]);
|
|
14246
14264
|
return ge(ss, i);
|
|
14247
14265
|
}
|
|
14248
|
-
const
|
|
14249
|
-
async function
|
|
14250
|
-
return (await B(
|
|
14266
|
+
const Cw = (t) => `${W}/location?operator=ALL&s=byTags&tags=${encodeURIComponent(t)}&v=custom:(uuid,display,childLocations:(uuid,display,retired))`, Lw = (t) => `${re}/Location?_tag=${encodeURIComponent(t)}`;
|
|
14267
|
+
async function Vv(t) {
|
|
14268
|
+
return (await B(Cw(t))).results ?? [];
|
|
14251
14269
|
}
|
|
14252
|
-
async function
|
|
14253
|
-
return await B(
|
|
14270
|
+
async function Hv(t) {
|
|
14271
|
+
return await B(Lw(t));
|
|
14254
14272
|
}
|
|
14255
|
-
const
|
|
14256
|
-
let r = `${
|
|
14273
|
+
const xw = re + "/Immunization", kw = (t, e) => {
|
|
14274
|
+
let r = `${xw}?patient=${t}&_sort=-date&_count=100`;
|
|
14257
14275
|
return e && (r += `&status=${e}`), r;
|
|
14258
14276
|
};
|
|
14259
|
-
async function
|
|
14260
|
-
return (await
|
|
14277
|
+
async function Bv(t, e) {
|
|
14278
|
+
return (await Mw(t, e)).entry?.filter((n) => n.resource?.resourceType === "Immunization").map((n) => n.resource) ?? [];
|
|
14261
14279
|
}
|
|
14262
|
-
async function
|
|
14280
|
+
async function Mw(t, e) {
|
|
14263
14281
|
return B(
|
|
14264
|
-
|
|
14282
|
+
kw(t, e)
|
|
14265
14283
|
);
|
|
14266
14284
|
}
|
|
14267
|
-
const
|
|
14268
|
-
async function
|
|
14285
|
+
const Uw = W + "/bahmnicore/visitDocument/uploadDocument", qw = "application";
|
|
14286
|
+
async function Fw(t) {
|
|
14269
14287
|
return new Promise((e, r) => {
|
|
14270
14288
|
const n = new FileReader();
|
|
14271
14289
|
n.onload = () => {
|
|
@@ -14278,7 +14296,7 @@ async function qw(t) {
|
|
|
14278
14296
|
let a = o, i = "";
|
|
14279
14297
|
const c = o.lastIndexOf(".");
|
|
14280
14298
|
c !== -1 && (a = o.substring(0, c), i = o.substring(c + 1).toLowerCase());
|
|
14281
|
-
const u = t.type ? t.type.split("/")[0] :
|
|
14299
|
+
const u = t.type ? t.type.split("/")[0] : qw;
|
|
14282
14300
|
e({
|
|
14283
14301
|
content: s,
|
|
14284
14302
|
fileName: a,
|
|
@@ -14290,8 +14308,8 @@ async function qw(t) {
|
|
|
14290
14308
|
}, n.readAsDataURL(t);
|
|
14291
14309
|
});
|
|
14292
14310
|
}
|
|
14293
|
-
async function
|
|
14294
|
-
const n = await
|
|
14311
|
+
async function zv(t, e, r) {
|
|
14312
|
+
const n = await Fw(t), s = {
|
|
14295
14313
|
content: n.content,
|
|
14296
14314
|
encounterTypeName: e,
|
|
14297
14315
|
fileName: n.fileName,
|
|
@@ -14299,29 +14317,29 @@ async function Hv(t, e, r) {
|
|
|
14299
14317
|
format: n.format,
|
|
14300
14318
|
patientUuid: r
|
|
14301
14319
|
};
|
|
14302
|
-
return ge(
|
|
14320
|
+
return ge(Uw, s);
|
|
14303
14321
|
}
|
|
14304
|
-
const
|
|
14322
|
+
const jw = "/bahmni_config/openmrs/apps", Ic = "org.bahmni.home.dashboard", Vw = (t) => Array.isArray(t) ? t : Object.values(t), Hw = async (t = "home") => {
|
|
14305
14323
|
try {
|
|
14306
|
-
const e = `${
|
|
14324
|
+
const e = `${jw}/${t}/v2/extension.json`, r = await fetch(e);
|
|
14307
14325
|
if (!r.ok)
|
|
14308
14326
|
throw new Error(`Failed to load base extensions: ${r.status}`);
|
|
14309
|
-
return
|
|
14327
|
+
return Vw(await r.json());
|
|
14310
14328
|
} catch (e) {
|
|
14311
14329
|
throw console.error("Error fetching module extensions:", e), e;
|
|
14312
14330
|
}
|
|
14313
|
-
},
|
|
14331
|
+
}, Bw = (t, e = Ic, r = "link") => t.filter((n) => {
|
|
14314
14332
|
const s = n.extensionPointId === e, o = r === "all" || n.type === r;
|
|
14315
14333
|
return s && o;
|
|
14316
|
-
}),
|
|
14334
|
+
}), zw = (t, e) => e === void 0 ? t : t.filter((r) => r.requiredPrivilege ? e.includes(r.requiredPrivilege) : !0), Yw = (t) => {
|
|
14317
14335
|
const e = navigator.onLine;
|
|
14318
14336
|
return t.filter((r) => !(r.exclusiveOnlineModule && !e || r.exclusiveOfflineModule && e));
|
|
14319
|
-
},
|
|
14320
|
-
const r = await
|
|
14321
|
-
return
|
|
14322
|
-
},
|
|
14323
|
-
|
|
14324
|
-
),
|
|
14337
|
+
}, Gw = (t) => [...t].sort((e, r) => (e.order ?? 0) - (r.order ?? 0)), Yv = async (t = Ic, e) => {
|
|
14338
|
+
const r = await Hw("home"), n = Bw(r, t), s = zw(n, e), o = Yw(s);
|
|
14339
|
+
return Gw(o);
|
|
14340
|
+
}, Kw = (t, e) => W + `/availableStocks?productUuid=${t}&locationUuid=${e}`, Gv = async (t, e) => await B(
|
|
14341
|
+
Kw(t, e)
|
|
14342
|
+
), Ww = (t, e, r) => {
|
|
14325
14343
|
const n = t.find((o) => o.server === e);
|
|
14326
14344
|
if (!n)
|
|
14327
14345
|
throw new Error(`CDSS server "${e}" not found in configuration`);
|
|
@@ -14333,7 +14351,7 @@ const Fw = "/bahmni_config/openmrs/apps", Ic = "org.bahmni.home.dashboard", jw =
|
|
|
14333
14351
|
`CDSS service "${r}" not found in server "${e}"`
|
|
14334
14352
|
);
|
|
14335
14353
|
return { serverConfig: n, serviceConfig: s };
|
|
14336
|
-
},
|
|
14354
|
+
}, Jw = (t, e) => {
|
|
14337
14355
|
if (!e || e.length === 0)
|
|
14338
14356
|
return {};
|
|
14339
14357
|
const r = {};
|
|
@@ -14347,8 +14365,8 @@ const Fw = "/bahmni_config/openmrs/apps", Ic = "org.bahmni.home.dashboard", jw =
|
|
|
14347
14365
|
entry: s
|
|
14348
14366
|
});
|
|
14349
14367
|
}), r;
|
|
14350
|
-
},
|
|
14351
|
-
const s =
|
|
14368
|
+
}, Kv = async (t, e, r, n) => {
|
|
14369
|
+
const s = Ww(t, e.server, e.service), { serverConfig: o, serviceConfig: a } = s, i = Jw(
|
|
14352
14370
|
n,
|
|
14353
14371
|
a.contextResourceMap
|
|
14354
14372
|
), c = `${o.url}/${a.name}`, u = {
|
|
@@ -14365,7 +14383,7 @@ const Fw = "/bahmni_config/openmrs/apps", Ic = "org.bahmni.home.dashboard", jw =
|
|
|
14365
14383
|
c,
|
|
14366
14384
|
u
|
|
14367
14385
|
)).cards || [];
|
|
14368
|
-
},
|
|
14386
|
+
}, Wv = (t, e) => {
|
|
14369
14387
|
const r = [];
|
|
14370
14388
|
return t.forEach((n) => {
|
|
14371
14389
|
!n.suggestions || n.suggestions.length === 0 || n.suggestions.forEach((s) => {
|
|
@@ -14382,53 +14400,53 @@ const Fw = "/bahmni_config/openmrs/apps", Ic = "org.bahmni.home.dashboard", jw =
|
|
|
14382
14400
|
});
|
|
14383
14401
|
}), r;
|
|
14384
14402
|
};
|
|
14385
|
-
async function
|
|
14403
|
+
async function Jv() {
|
|
14386
14404
|
return B(`${Es}/templates`);
|
|
14387
14405
|
}
|
|
14388
|
-
async function
|
|
14406
|
+
async function Qv(t) {
|
|
14389
14407
|
return (await ge(
|
|
14390
14408
|
`${Es}/render`,
|
|
14391
14409
|
t
|
|
14392
14410
|
)).html;
|
|
14393
14411
|
}
|
|
14394
|
-
const
|
|
14395
|
-
let s =
|
|
14412
|
+
const Qw = (t, e, r) => {
|
|
14413
|
+
let s = re + "/Task?_sort=-_lastUpdated";
|
|
14396
14414
|
return t && (s += `&subject:Patient=${t}`), e && (s += `&based-on=${e}`), r && r.length > 0 && (s += `&encounter=${r.join(",")}`), s;
|
|
14397
14415
|
};
|
|
14398
|
-
async function
|
|
14416
|
+
async function Xv(t, e, r) {
|
|
14399
14417
|
return B(
|
|
14400
|
-
|
|
14418
|
+
Qw(t, e, r)
|
|
14401
14419
|
);
|
|
14402
14420
|
}
|
|
14403
|
-
const
|
|
14421
|
+
const Zv = (t) => {
|
|
14404
14422
|
const e = /* @__PURE__ */ new Map();
|
|
14405
14423
|
for (const r of t) {
|
|
14406
14424
|
const n = e.get(r.extensionPointId) ?? [];
|
|
14407
14425
|
n.push(r), e.set(r.extensionPointId, n);
|
|
14408
14426
|
}
|
|
14409
14427
|
return e;
|
|
14410
|
-
},
|
|
14411
|
-
(r) => !r.requiredPrivileges || r.requiredPrivileges.length === 0 ||
|
|
14428
|
+
}, e0 = (t, e) => t.filter(
|
|
14429
|
+
(r) => !r.requiredPrivileges || r.requiredPrivileges.length === 0 || yw(e, r.requiredPrivileges)
|
|
14412
14430
|
);
|
|
14413
14431
|
export {
|
|
14414
|
-
|
|
14415
|
-
|
|
14432
|
+
x_ as APPOINTMENT_IDENTIFIER_SYSTEM,
|
|
14433
|
+
L_ as APPOINTMENT_STATUSES,
|
|
14416
14434
|
es as AUDIT_LOG_EVENT_DETAILS,
|
|
14417
14435
|
Mm as AllergySeverity,
|
|
14418
14436
|
km as AllergyStatus,
|
|
14419
14437
|
bf as AttributeFormat,
|
|
14420
14438
|
vf as AttributeInputType,
|
|
14421
14439
|
Jl as BAHMNI_APP_BASE_PATH,
|
|
14422
|
-
|
|
14440
|
+
_E as BAHMNI_HOME_PATH,
|
|
14423
14441
|
Oi as BAHMNI_USER_LOCATION_COOKIE,
|
|
14424
14442
|
qd as BIRTH_TIME_EXT_URL,
|
|
14425
14443
|
cs as CDSS_CHECK_EVENT,
|
|
14426
14444
|
us as CDSS_RESULTS_EVENT,
|
|
14427
|
-
|
|
14428
|
-
|
|
14445
|
+
DE as CONCEPT_DATATYPE_COMPLEX,
|
|
14446
|
+
$E as CONCEPT_DATATYPE_NUMERIC,
|
|
14429
14447
|
is as CONSULTATION_SAVED_EVENT,
|
|
14430
|
-
|
|
14431
|
-
|
|
14448
|
+
kE as DATETIME_REGEX_PATTERN,
|
|
14449
|
+
xE as DATE_REGEX_PATTERN,
|
|
14432
14450
|
ac as DEFAULT_DATE_FORMAT,
|
|
14433
14451
|
dm as DEFAULT_DATE_FORMAT_STORAGE_KEY,
|
|
14434
14452
|
fm as DEFAULT_TIME_FORMAT,
|
|
@@ -14437,251 +14455,252 @@ export {
|
|
|
14437
14455
|
_s as FHIR_ENCOUNTER_CLASS_CODE_SYSTEM,
|
|
14438
14456
|
bs as FHIR_ENCOUNTER_TAG_SYSTEM,
|
|
14439
14457
|
ki as FHIR_ENCOUNTER_TYPE_CODE_SYSTEM,
|
|
14440
|
-
|
|
14441
|
-
|
|
14442
|
-
|
|
14443
|
-
|
|
14444
|
-
|
|
14445
|
-
|
|
14446
|
-
|
|
14458
|
+
AE as FHIR_EXT_MEDICATION_REQUEST_NOTE_CATEGORY,
|
|
14459
|
+
OE as FHIR_LAB_ORDER_CONCEPT_TYPE_EXTENSION_URL,
|
|
14460
|
+
NE as FHIR_OBSERVATION_FORM_NAMESPACE_PATH_URL,
|
|
14461
|
+
PE as FHIR_OBSERVATION_INTERPRETATION_SYSTEM,
|
|
14462
|
+
CE as FHIR_OBSERVATION_STATUS_FINAL,
|
|
14463
|
+
IE as FHIR_OBSERVATION_VALUE_ATTACHMENT_URL,
|
|
14464
|
+
LE as FHIR_RESOURCE_TYPE_OBSERVATION,
|
|
14447
14465
|
jd as HL7_CONDITION_CATEGORY_CODE_SYSTEM,
|
|
14448
14466
|
vs as HL7_CONDITION_CATEGORY_CONDITION_CODE,
|
|
14449
14467
|
Mi as HL7_CONDITION_CATEGORY_DIAGNOSIS_CODE,
|
|
14450
14468
|
Fd as HL7_CONDITION_CLINICAL_STATUS_CODE_SYSTEM,
|
|
14451
|
-
|
|
14452
|
-
|
|
14453
|
-
|
|
14469
|
+
SE as HL7_CONDITION_VERIFICATION_STATUS_CODE_SYSTEM,
|
|
14470
|
+
ME as INTERPRETATION_TO_CODE,
|
|
14471
|
+
K_ as ISO_DATE_FORMAT,
|
|
14454
14472
|
Ti as LOGIN_PATH,
|
|
14455
|
-
|
|
14456
|
-
|
|
14457
|
-
|
|
14458
|
-
|
|
14459
|
-
|
|
14473
|
+
tv as MATCH_REASON_MESSAGES,
|
|
14474
|
+
s_ as MAX_NAME_LENGTH,
|
|
14475
|
+
n_ as MAX_PATIENT_AGE_YEARS,
|
|
14476
|
+
o_ as MAX_PHONE_NUMBER_LENGTH,
|
|
14477
|
+
Tb as MEDICATIONS_INPUT_CONTROL_KEY,
|
|
14460
14478
|
Ze as MODULE_LABELS,
|
|
14461
14479
|
Be as MedicationStatus,
|
|
14462
|
-
|
|
14480
|
+
re as OPENMRS_FHIR_R4,
|
|
14463
14481
|
W as OPENMRS_REST_V1,
|
|
14464
|
-
|
|
14482
|
+
qb as ORDER_TYPE_QUERY_KEY,
|
|
14465
14483
|
vi as PATIENT_NOT_FOUND_ERROR_KEY,
|
|
14466
|
-
|
|
14467
|
-
|
|
14468
|
-
|
|
14484
|
+
Ub as PENDING_REPORT_STATUSES,
|
|
14485
|
+
Mb as PROCESSED_REPORT_STATUSES,
|
|
14486
|
+
Yb as USER_PINNED_PREFERENCE_URL,
|
|
14469
14487
|
jm as buildEncounterResource,
|
|
14470
|
-
|
|
14471
|
-
|
|
14472
|
-
|
|
14488
|
+
J_ as calculateAge,
|
|
14489
|
+
rb as calculateEndDate,
|
|
14490
|
+
X_ as calculateOnsetDate,
|
|
14473
14491
|
qi as camelToScreamingSnakeCase,
|
|
14474
|
-
|
|
14475
|
-
|
|
14476
|
-
|
|
14477
|
-
|
|
14478
|
-
|
|
14479
|
-
|
|
14492
|
+
sv as canResumeOwnInSessionEncounter,
|
|
14493
|
+
FE as capitalize,
|
|
14494
|
+
$_ as checkIfActiveVisitExists,
|
|
14495
|
+
F_ as checkInAppointment,
|
|
14496
|
+
W_ as computeAgeDetails,
|
|
14497
|
+
bv as convertImmutableToPlainObject,
|
|
14480
14498
|
gm as convertTo24HourFormat,
|
|
14481
|
-
|
|
14482
|
-
|
|
14499
|
+
WE as convertToSentenceCase,
|
|
14500
|
+
G_ as createAppointmentUnavailability,
|
|
14483
14501
|
yt as createBundleEntry,
|
|
14484
|
-
|
|
14502
|
+
Dw as createDocumentReference,
|
|
14485
14503
|
ns as createEncounterBundle,
|
|
14486
14504
|
zm as createFhirEncounter,
|
|
14487
|
-
|
|
14488
|
-
|
|
14489
|
-
|
|
14490
|
-
|
|
14505
|
+
m_ as createFhirPatient,
|
|
14506
|
+
p_ as createPatient,
|
|
14507
|
+
D_ as createVisitForPatient,
|
|
14508
|
+
C_ as createVisitWithFhirR4,
|
|
14491
14509
|
Pi as del,
|
|
14492
|
-
|
|
14510
|
+
H_ as deleteAppointmentService,
|
|
14493
14511
|
So as deleteCookie,
|
|
14494
14512
|
Tf as dispatchAuditEvent,
|
|
14495
|
-
|
|
14496
|
-
|
|
14497
|
-
|
|
14498
|
-
|
|
14499
|
-
|
|
14500
|
-
|
|
14501
|
-
|
|
14502
|
-
|
|
14503
|
-
|
|
14504
|
-
|
|
14505
|
-
|
|
14506
|
-
|
|
14507
|
-
|
|
14508
|
-
|
|
14509
|
-
|
|
14510
|
-
|
|
14511
|
-
|
|
14512
|
-
|
|
14513
|
-
|
|
14514
|
-
|
|
14515
|
-
|
|
14516
|
-
|
|
14517
|
-
|
|
14518
|
-
|
|
14519
|
-
|
|
14520
|
-
|
|
14521
|
-
|
|
14522
|
-
|
|
14523
|
-
|
|
14524
|
-
|
|
14513
|
+
Cv as dispatchCDSSCheck,
|
|
14514
|
+
Lv as dispatchCDSSResults,
|
|
14515
|
+
$v as dispatchConsultationSaved,
|
|
14516
|
+
nb as doDateRangesOverlap,
|
|
14517
|
+
Nv as extractAttributes,
|
|
14518
|
+
vv as extractNotesFromFormData,
|
|
14519
|
+
Zb as fetchAllProviders,
|
|
14520
|
+
ub as fetchAndFormatAllergenConcepts,
|
|
14521
|
+
hv as fetchFormMetadata,
|
|
14522
|
+
mv as fetchFormUuidByObservationDate,
|
|
14523
|
+
Sb as fetchMedicationOrdersMetadata,
|
|
14524
|
+
Hw as fetchModuleExtensions,
|
|
14525
|
+
pv as fetchObservationForms,
|
|
14526
|
+
c_ as fetchPatientPhotoFromUrl,
|
|
14527
|
+
Db as fetchQualityAssessment,
|
|
14528
|
+
lb as fetchReactionConcepts,
|
|
14529
|
+
Yw as filterByOnlineStatus,
|
|
14530
|
+
zw as filterByPrivilege,
|
|
14531
|
+
Wv as filterCdsCardsForItems,
|
|
14532
|
+
e0 as filterExtensionsByPrivileges,
|
|
14533
|
+
zE as filterReplacementEntries,
|
|
14534
|
+
rv as findActiveEncounterInSession,
|
|
14535
|
+
QE as formatCountry,
|
|
14536
|
+
Z_ as formatDateDistance,
|
|
14537
|
+
yv as formatDateForControl,
|
|
14538
|
+
Q_ as formatDateTime,
|
|
14539
|
+
JE as formatGender,
|
|
14540
|
+
YE as formatUrl,
|
|
14541
|
+
qE as generateId,
|
|
14542
|
+
g_ as generateIdentifier,
|
|
14525
14543
|
Qr as generateUUID,
|
|
14526
14544
|
B as get,
|
|
14527
14545
|
mn as getActiveVisit,
|
|
14528
|
-
|
|
14546
|
+
gb as getActiveVisitAtLoginLocation,
|
|
14529
14547
|
Cf as getActiveVisitByPatient,
|
|
14530
|
-
|
|
14531
|
-
|
|
14532
|
-
|
|
14548
|
+
E_ as getAddressHierarchyEntries,
|
|
14549
|
+
V_ as getAllAppointmentServices,
|
|
14550
|
+
Iv as getAllPrograms,
|
|
14533
14551
|
Lm as getAllergies,
|
|
14534
|
-
|
|
14535
|
-
|
|
14536
|
-
|
|
14537
|
-
|
|
14538
|
-
|
|
14539
|
-
|
|
14540
|
-
|
|
14541
|
-
|
|
14542
|
-
|
|
14552
|
+
j_ as getAppointmentById,
|
|
14553
|
+
Y_ as getAppointmentUnavailabilities,
|
|
14554
|
+
e_ as getAvailableLocations,
|
|
14555
|
+
Gv as getAvailableStocks,
|
|
14556
|
+
jb as getCategoryUuidFromOrderTypes,
|
|
14557
|
+
cb as getConceptById,
|
|
14558
|
+
Eb as getConditionPage,
|
|
14559
|
+
wb as getConditions,
|
|
14560
|
+
Bb as getConfig,
|
|
14543
14561
|
Ui as getCookieByName,
|
|
14544
|
-
|
|
14545
|
-
|
|
14546
|
-
|
|
14547
|
-
|
|
14548
|
-
|
|
14549
|
-
|
|
14550
|
-
|
|
14551
|
-
|
|
14552
|
-
|
|
14553
|
-
|
|
14554
|
-
|
|
14555
|
-
|
|
14556
|
-
|
|
14562
|
+
Xb as getCurrentProvider,
|
|
14563
|
+
Pv as getCurrentStateName,
|
|
14564
|
+
XE as getCurrentUser,
|
|
14565
|
+
fv as getCurrentUserPrivileges,
|
|
14566
|
+
ZE as getDefaultDateFormat,
|
|
14567
|
+
vb as getDiagnosesPage,
|
|
14568
|
+
xb as getDiagnosticReportBundle,
|
|
14569
|
+
Lb as getDiagnosticReports,
|
|
14570
|
+
Fv as getDocumentReferencePage,
|
|
14571
|
+
Iw as getDocumentReferences,
|
|
14572
|
+
Uv as getDocumentTypes,
|
|
14573
|
+
Mv as getDocumentUploadMaxSizeMb,
|
|
14574
|
+
hb as getEncounterByUuid,
|
|
14557
14575
|
bc as getEncounterSessionDuration,
|
|
14558
|
-
|
|
14576
|
+
dw as getEncounterSessionSnapshot,
|
|
14559
14577
|
Bm as getEncounterTypeByName,
|
|
14560
|
-
|
|
14561
|
-
|
|
14578
|
+
uv as getEncountersAndVisitsForEOC,
|
|
14579
|
+
lv as getEpisodeOfCare,
|
|
14562
14580
|
Ll as getErrorKind,
|
|
14563
|
-
|
|
14564
|
-
|
|
14565
|
-
|
|
14566
|
-
|
|
14567
|
-
|
|
14568
|
-
|
|
14569
|
-
|
|
14581
|
+
Hb as getExistingServiceRequestsForAllCategories,
|
|
14582
|
+
Bw as getExtensionsByPoint,
|
|
14583
|
+
Hv as getFHIRLocationsByTag,
|
|
14584
|
+
Fb as getFlattenedInvestigations,
|
|
14585
|
+
tb as getFormattedAge,
|
|
14586
|
+
db as getFormattedAllergies,
|
|
14587
|
+
qv as getFormattedDocumentReferences,
|
|
14570
14588
|
Yr as getFormattedError,
|
|
14571
|
-
|
|
14572
|
-
|
|
14573
|
-
|
|
14574
|
-
|
|
14575
|
-
|
|
14576
|
-
|
|
14577
|
-
|
|
14578
|
-
|
|
14579
|
-
|
|
14580
|
-
|
|
14589
|
+
i_ as getFormattedPatientById,
|
|
14590
|
+
w_ as getGenders,
|
|
14591
|
+
f_ as getIdentifierData,
|
|
14592
|
+
d_ as getIdentifierTypes,
|
|
14593
|
+
R_ as getInputTypeForFormat,
|
|
14594
|
+
Cb as getLabInvestigationsBundle,
|
|
14595
|
+
Vv as getLocationByTag,
|
|
14596
|
+
Pb as getMedicationByUuid,
|
|
14597
|
+
Jb as getObservationsBundleByEncounterUuid,
|
|
14598
|
+
Vb as getOrderTypeNames,
|
|
14581
14599
|
Ps as getOrderTypes,
|
|
14582
|
-
|
|
14583
|
-
|
|
14584
|
-
|
|
14600
|
+
__ as getOrderedAddressHierarchyLevels,
|
|
14601
|
+
U_ as getPastAppointments,
|
|
14602
|
+
z_ as getPastAppointmentsPage,
|
|
14585
14603
|
hf as getPatientById,
|
|
14586
|
-
|
|
14587
|
-
|
|
14588
|
-
|
|
14589
|
-
|
|
14604
|
+
bb as getPatientDiagnoses,
|
|
14605
|
+
pb as getPatientEncounters,
|
|
14606
|
+
gv as getPatientFormData,
|
|
14607
|
+
Bv as getPatientImmunizations,
|
|
14608
|
+
Kb as getPatientLatestObservations,
|
|
14590
14609
|
lg as getPatientMedicationBundle,
|
|
14591
|
-
|
|
14592
|
-
|
|
14593
|
-
|
|
14594
|
-
|
|
14595
|
-
|
|
14596
|
-
|
|
14597
|
-
|
|
14598
|
-
|
|
14599
|
-
|
|
14600
|
-
|
|
14601
|
-
|
|
14610
|
+
Rb as getPatientMedications,
|
|
14611
|
+
Wb as getPatientObservations,
|
|
14612
|
+
nw as getPatientObservationsBundle,
|
|
14613
|
+
Gb as getPatientObservationsWithEncounterBundle,
|
|
14614
|
+
b_ as getPatientProfile,
|
|
14615
|
+
Rv as getPatientPrograms,
|
|
14616
|
+
Sv as getPatientProgramsPage,
|
|
14617
|
+
Nb as getPatientRadiologyInvestigationBundle,
|
|
14618
|
+
Ib as getPatientRadiologyInvestigationBundleWithImagingStudy,
|
|
14619
|
+
$b as getPatientRadiologyInvestigations,
|
|
14620
|
+
T_ as getPersonAttributeTypes,
|
|
14602
14621
|
_f as getPrimaryIdentifierType,
|
|
14603
|
-
|
|
14604
|
-
|
|
14605
|
-
|
|
14606
|
-
|
|
14622
|
+
HE as getPriorityByOrder,
|
|
14623
|
+
Ov as getProgramByUUID,
|
|
14624
|
+
ev as getProviderLoginLocations,
|
|
14625
|
+
v_ as getRelationshipTypes,
|
|
14607
14626
|
Jt as getServiceRequests,
|
|
14608
|
-
|
|
14609
|
-
|
|
14610
|
-
|
|
14611
|
-
|
|
14612
|
-
|
|
14613
|
-
|
|
14627
|
+
Xv as getTasks,
|
|
14628
|
+
Jv as getTemplates,
|
|
14629
|
+
ob as getTimeInMinutes,
|
|
14630
|
+
eb as getTodayDate,
|
|
14631
|
+
M_ as getUpcomingAppointments,
|
|
14632
|
+
B_ as getUpcomingAppointmentsPage,
|
|
14614
14633
|
St as getUserLoginLocation,
|
|
14615
14634
|
an as getUserPreferredLocale,
|
|
14616
|
-
|
|
14617
|
-
|
|
14618
|
-
|
|
14635
|
+
Ab as getVaccinations,
|
|
14636
|
+
GE as getValueType,
|
|
14637
|
+
Yv as getVisibleModules,
|
|
14619
14638
|
Vi as getVisitLocationUUID,
|
|
14620
|
-
|
|
14639
|
+
I_ as getVisitTypes,
|
|
14621
14640
|
Hm as getVisits,
|
|
14622
|
-
|
|
14623
|
-
|
|
14624
|
-
|
|
14625
|
-
|
|
14626
|
-
|
|
14627
|
-
|
|
14628
|
-
|
|
14629
|
-
|
|
14630
|
-
|
|
14631
|
-
|
|
14632
|
-
|
|
14633
|
-
|
|
14634
|
-
|
|
14635
|
-
|
|
14636
|
-
|
|
14637
|
-
|
|
14638
|
-
|
|
14639
|
-
|
|
14640
|
-
|
|
14641
|
-
|
|
14642
|
-
|
|
14641
|
+
Tv as getVitalFlowSheetData,
|
|
14642
|
+
BE as groupByDate,
|
|
14643
|
+
Zv as groupExtensionsByPoint,
|
|
14644
|
+
Qb as groupObservationsByEncounter,
|
|
14645
|
+
yw as hasPrivilege,
|
|
14646
|
+
TE as initAppI18n,
|
|
14647
|
+
dv as initializeAuditListener,
|
|
14648
|
+
Kv as invokeCDSSRule,
|
|
14649
|
+
S_ as isBooleanFormat,
|
|
14650
|
+
O_ as isConceptFormat,
|
|
14651
|
+
P_ as isDateFormat,
|
|
14652
|
+
A_ as isNumberFormat,
|
|
14653
|
+
VE as isStringEmpty,
|
|
14654
|
+
N_ as isTextFormat,
|
|
14655
|
+
gw as logAuditEvent,
|
|
14656
|
+
zb as logout,
|
|
14657
|
+
fb as mapAllergyToInputEntry,
|
|
14658
|
+
a_ as mapGenderFromFhir,
|
|
14659
|
+
_b as markConditionAsInactive,
|
|
14660
|
+
vE as normalizeTranslationKey,
|
|
14661
|
+
ab as notificationService,
|
|
14643
14662
|
Vd as parseQueryParams,
|
|
14644
|
-
|
|
14663
|
+
bE as patch,
|
|
14645
14664
|
ge as post,
|
|
14646
14665
|
Ai as put,
|
|
14647
|
-
|
|
14648
|
-
|
|
14649
|
-
|
|
14650
|
-
|
|
14651
|
-
|
|
14652
|
-
|
|
14653
|
-
|
|
14654
|
-
|
|
14666
|
+
UE as refreshQueries,
|
|
14667
|
+
Qv as renderAsHtml,
|
|
14668
|
+
iv as resetEncounterSession,
|
|
14669
|
+
KE as resolveComboBoxItems,
|
|
14670
|
+
nv as resolveEncounterMatchDecision,
|
|
14671
|
+
jv as saveDocument,
|
|
14672
|
+
t_ as saveUserLocation,
|
|
14673
|
+
k_ as searchAppointmentsByAttribute,
|
|
14655
14674
|
Am as searchConceptByName,
|
|
14656
|
-
|
|
14675
|
+
ib as searchConcepts,
|
|
14657
14676
|
os as searchEncounters,
|
|
14658
14677
|
jr as searchFHIRConcepts,
|
|
14659
14678
|
Om as searchFHIRConceptsByName,
|
|
14660
|
-
|
|
14661
|
-
|
|
14662
|
-
|
|
14663
|
-
|
|
14664
|
-
|
|
14665
|
-
|
|
14666
|
-
|
|
14667
|
-
|
|
14668
|
-
|
|
14669
|
-
|
|
14670
|
-
|
|
14671
|
-
|
|
14672
|
-
|
|
14673
|
-
|
|
14674
|
-
|
|
14675
|
-
|
|
14676
|
-
|
|
14677
|
-
|
|
14678
|
-
|
|
14679
|
-
|
|
14680
|
-
|
|
14681
|
-
|
|
14682
|
-
|
|
14683
|
-
|
|
14684
|
-
|
|
14685
|
-
|
|
14686
|
-
|
|
14679
|
+
Ob as searchMedications,
|
|
14680
|
+
l_ as searchPatientByCustomAttribute,
|
|
14681
|
+
u_ as searchPatientByNameOrId,
|
|
14682
|
+
jE as setCookie,
|
|
14683
|
+
ov as setEncounterSessionDecision,
|
|
14684
|
+
av as setEncounterSessionLoading,
|
|
14685
|
+
yb as shouldEnableEncounterFilter,
|
|
14686
|
+
sb as sortByDate,
|
|
14687
|
+
Gw as sortByOrder,
|
|
14688
|
+
lw as subscribeEncounterSession,
|
|
14689
|
+
_v as transformContainerObservationsToForm2Observations,
|
|
14690
|
+
wv as transformFormDataToObservations,
|
|
14691
|
+
Ev as transformObservationsToFormData,
|
|
14692
|
+
q_ as updateAppointmentStatus,
|
|
14693
|
+
kb as updateDiagnosticReportBundle,
|
|
14694
|
+
mb as updateFhirEncounter,
|
|
14695
|
+
y_ as updateFhirPatient,
|
|
14696
|
+
h_ as updatePatient,
|
|
14697
|
+
Av as updateProgramState,
|
|
14698
|
+
r_ as updateSessionLocation,
|
|
14699
|
+
zv as uploadDocument,
|
|
14700
|
+
xv as useCDSSCheckListener,
|
|
14701
|
+
kv as useCDSSResultsListener,
|
|
14702
|
+
RE as useCamera,
|
|
14703
|
+
cv as useEncounterSessionStore,
|
|
14704
|
+
Dv as useSubscribeConsultationSaved,
|
|
14705
|
+
n0 as useTranslation
|
|
14687
14706
|
};
|