@bahmni/services 0.0.1-dev.374 → 0.0.1-dev.376
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/episodeOfCareService/__mocks__/episodeOfCareMocks.d.ts +28 -0
- package/dist/episodeOfCareService/__mocks__/episodeOfCareMocks.d.ts.map +1 -0
- package/dist/episodeOfCareService/constants.d.ts +1 -0
- package/dist/episodeOfCareService/constants.d.ts.map +1 -1
- package/dist/episodeOfCareService/episodeOfCareService.d.ts +2 -0
- package/dist/episodeOfCareService/episodeOfCareService.d.ts.map +1 -1
- package/dist/episodeOfCareService/index.d.ts +1 -1
- package/dist/episodeOfCareService/index.d.ts.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +436 -432
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { initReactI18next as Oc } from "react-i18next";
|
|
2
|
-
import { useTranslation as
|
|
2
|
+
import { useTranslation as Fv } from "react-i18next";
|
|
3
3
|
import { useRef as Ft, useCallback as Tn, useEffect as nt, useSyncExternalStore as Ac } from "react";
|
|
4
4
|
function Ga(t, e) {
|
|
5
5
|
return function() {
|
|
@@ -2288,23 +2288,23 @@ me.getAdapter = mi.getAdapter;
|
|
|
2288
2288
|
me.HttpStatusCode = Qn;
|
|
2289
2289
|
me.default = me;
|
|
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: Hw,
|
|
2292
|
+
AxiosError: Bw,
|
|
2293
|
+
CanceledError: zw,
|
|
2294
|
+
isCancel: Yw,
|
|
2295
|
+
CancelToken: Gw,
|
|
2296
|
+
VERSION: Kw,
|
|
2297
|
+
all: Ww,
|
|
2298
|
+
Cancel: Jw,
|
|
2299
|
+
isAxiosError: Qw,
|
|
2300
|
+
spread: Xw,
|
|
2301
|
+
toFormData: Zw,
|
|
2302
|
+
AxiosHeaders: eE,
|
|
2303
|
+
HttpStatusCode: tE,
|
|
2304
|
+
formToJSON: rE,
|
|
2305
|
+
getAdapter: nE,
|
|
2306
|
+
mergeConfig: sE,
|
|
2307
|
+
create: oE
|
|
2308
2308
|
} = me, Ol = (t) => typeof t == "object" && t !== null && "resourceType" in t && t.resourceType === "OperationOutcome", Al = (t) => {
|
|
2309
2309
|
if (!t.issue || !Array.isArray(t.issue))
|
|
2310
2310
|
return null;
|
|
@@ -2472,7 +2472,7 @@ function Ul(t, e) {
|
|
|
2472
2472
|
const ql = process.env.PUBLIC_URL ?? "/", ne = "/openmrs/ws/fhir2/R4", W = "/openmrs/ws/rest/v1", bi = "bahmni.user", _i = "bahmni.user.location", Fl = [
|
|
2473
2473
|
bi,
|
|
2474
2474
|
_i
|
|
2475
|
-
], jl = "/bahmni-v2",
|
|
2475
|
+
], jl = "/bahmni-v2", aE = jl + "/home", ws = W + "/session", Es = `${W}/bahmnicore/template/api`, Xn = (t) => {
|
|
2476
2476
|
if (typeof t == "string")
|
|
2477
2477
|
return Ul(t);
|
|
2478
2478
|
if (Array.isArray(t))
|
|
@@ -2512,7 +2512,7 @@ Ke.interceptors.response.use(
|
|
|
2512
2512
|
return r.startsWith("ERROR_") || /^[A-Z_]+$/.test(r) ? Promise.reject(new Error(r)) : Promise.reject(`${e}: ${r}`);
|
|
2513
2513
|
}
|
|
2514
2514
|
);
|
|
2515
|
-
const B = async (t, e) => (await Ke.get(t, e)).data, ge = async (t, e) => (await Ke.post(t, e)).data, vi = async (t, e) => (await Ke.put(t, e)).data,
|
|
2515
|
+
const B = async (t, e) => (await Ke.get(t, e)).data, ge = async (t, e) => (await Ke.post(t, e)).data, vi = async (t, e) => (await Ke.put(t, e)).data, iE = async (t, e) => (await Ke.patch(t, e)).data, Ti = async (t) => (await Ke.delete(t)).data, Q = (t) => typeof t == "string", It = () => {
|
|
2516
2516
|
let t, e;
|
|
2517
2517
|
const r = new Promise((n, s) => {
|
|
2518
2518
|
t = n, e = s;
|
|
@@ -4210,7 +4210,7 @@ const Sd = "en", Ni = "NG_TRANSLATE_LANG_KEY", Rd = (t, e) => ql + `${t}/locales
|
|
|
4210
4210
|
}, t !== "en" && (r.en = {
|
|
4211
4211
|
[e]: await _o(e, "en")
|
|
4212
4212
|
}), r;
|
|
4213
|
-
},
|
|
4213
|
+
}, cE = (t, e) => {
|
|
4214
4214
|
const r = t.toUpperCase(), n = e.toUpperCase().replace(/\s+/g, "_").replace(/[^A-Z0-9_]/g, "");
|
|
4215
4215
|
return `${r}_${n}`;
|
|
4216
4216
|
}, Pd = (t, e) => {
|
|
@@ -4227,7 +4227,7 @@ const Sd = "en", Ni = "NG_TRANSLATE_LANG_KEY", Rd = (t, e) => ql + `${t}/locales
|
|
|
4227
4227
|
labels: n.labels ?? {},
|
|
4228
4228
|
concepts: n.concepts ?? {}
|
|
4229
4229
|
};
|
|
4230
|
-
},
|
|
4230
|
+
}, uE = async (t) => {
|
|
4231
4231
|
const e = an(), r = await Ad(e, t);
|
|
4232
4232
|
return fe.isInitialized ? (Object.entries(r).forEach(([n, s]) => {
|
|
4233
4233
|
Object.entries(s).forEach(([o, a]) => {
|
|
@@ -4250,7 +4250,7 @@ const Sd = "en", Ni = "NG_TRANSLATE_LANG_KEY", Rd = (t, e) => ql + `${t}/locales
|
|
|
4250
4250
|
}
|
|
4251
4251
|
}), fe;
|
|
4252
4252
|
};
|
|
4253
|
-
function
|
|
4253
|
+
function lE() {
|
|
4254
4254
|
const t = Ft(null), e = Ft(null), r = Tn(async () => {
|
|
4255
4255
|
e.current && (e.current.getTracks().forEach((a) => a.stop()), e.current = null);
|
|
4256
4256
|
const o = await navigator.mediaDevices.getUserMedia({
|
|
@@ -4290,13 +4290,13 @@ function uE() {
|
|
|
4290
4290
|
);
|
|
4291
4291
|
return nt(() => () => n(), [n]), { videoRef: t, start: r, stop: n, capture: s };
|
|
4292
4292
|
}
|
|
4293
|
-
const Nd = "bahmni.enableAuditLog", Ii = (t) => `${W}/bahmnicore/sql/globalproperty?property=${t}`, Id = "http://hl7.org/fhir/StructureDefinition/patient-birthTime", $i = "http://fhir.openmrs.org/code-system/encounter-type", bs = "http://terminology.hl7.org/CodeSystem/v3-ActCode", _s = "http://fhir.openmrs.org/ext/encounter-tag", vs = "problem-list-item",
|
|
4293
|
+
const Nd = "bahmni.enableAuditLog", Ii = (t) => `${W}/bahmnicore/sql/globalproperty?property=${t}`, Id = "http://hl7.org/fhir/StructureDefinition/patient-birthTime", $i = "http://fhir.openmrs.org/code-system/encounter-type", bs = "http://terminology.hl7.org/CodeSystem/v3-ActCode", _s = "http://fhir.openmrs.org/ext/encounter-tag", vs = "problem-list-item", dE = "http://terminology.hl7.org/CodeSystem/condition-ver-status", Di = "encounter-diagnosis", $d = "http://terminology.hl7.org/CodeSystem/condition-clinical", Dd = "http://terminology.hl7.org/CodeSystem/condition-category", fE = "http://fhir.bahmni.org/ext/lab-order-concept-type", pE = "http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation", hE = "http://fhir.bahmni.org/ext/observation/form-namespace-path", mE = "http://fhir.bahmni.org/ext/observation/obs-value-attachment", gE = "Numeric", yE = "Complex", wE = "final", EE = "Observation", bE = /^\d{4}-\d{2}-\d{2}/, _E = /^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}/, vE = {
|
|
4294
4294
|
ABNORMAL: { code: "A", display: "Abnormal" },
|
|
4295
4295
|
NORMAL: { code: "N", display: "Normal" }
|
|
4296
|
-
},
|
|
4296
|
+
}, TE = async (t, e, r) => {
|
|
4297
4297
|
const { exact: n = !0, refetchActiveNow: s = !0 } = r ?? {};
|
|
4298
4298
|
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" });
|
|
4299
|
-
},
|
|
4299
|
+
}, SE = () => Math.random().toString(36).substring(2, 9), Qr = () => {
|
|
4300
4300
|
if (typeof globalThis < "u" && globalThis.crypto?.randomUUID)
|
|
4301
4301
|
return globalThis.crypto.randomUUID();
|
|
4302
4302
|
const t = globalThis.crypto || globalThis.msCrypto;
|
|
@@ -4308,7 +4308,7 @@ const Nd = "bahmni.enableAuditLog", Ii = (t) => `${W}/bahmnicore/sql/globalprope
|
|
|
4308
4308
|
"Crypto API (crypto.randomUUID or crypto.getRandomValues) is not available. UUID generation requires cryptographically secure random number generation."
|
|
4309
4309
|
);
|
|
4310
4310
|
};
|
|
4311
|
-
function
|
|
4311
|
+
function RE(t, e = " -") {
|
|
4312
4312
|
return t ? t.toLowerCase().split(new RegExp(`[${e}]+`)).map((n) => n.charAt(0).toUpperCase() + n.slice(1)).join(" ") : "";
|
|
4313
4313
|
}
|
|
4314
4314
|
function Ci(t) {
|
|
@@ -4323,10 +4323,10 @@ function Ci(t) {
|
|
|
4323
4323
|
function Cd(t, e = "/") {
|
|
4324
4324
|
document.cookie = `${t}=; expires=Thu, 01 Jan 1970 00:00:00 UTC; path=${e};`;
|
|
4325
4325
|
}
|
|
4326
|
-
function
|
|
4326
|
+
function OE(t, e) {
|
|
4327
4327
|
document.cookie = `${t}=${e}; path=/;`;
|
|
4328
4328
|
}
|
|
4329
|
-
const
|
|
4329
|
+
const AE = (t) => !t || t.trim().length === 0, PE = (t, e) => {
|
|
4330
4330
|
if (!t || !e || e.length === 0)
|
|
4331
4331
|
return 999;
|
|
4332
4332
|
const r = e.findIndex(
|
|
@@ -4334,7 +4334,7 @@ const OE = (t) => !t || t.trim().length === 0, AE = (t, e) => {
|
|
|
4334
4334
|
);
|
|
4335
4335
|
return r === -1 ? 999 : r;
|
|
4336
4336
|
};
|
|
4337
|
-
function
|
|
4337
|
+
function NE(t, e) {
|
|
4338
4338
|
if (!t || t.length === 0)
|
|
4339
4339
|
return [];
|
|
4340
4340
|
const r = /* @__PURE__ */ new Map();
|
|
@@ -4346,7 +4346,7 @@ function PE(t, e) {
|
|
|
4346
4346
|
items: s
|
|
4347
4347
|
}));
|
|
4348
4348
|
}
|
|
4349
|
-
function
|
|
4349
|
+
function IE(t, e, r) {
|
|
4350
4350
|
if (!t || t.length === 0)
|
|
4351
4351
|
return [];
|
|
4352
4352
|
const n = /* @__PURE__ */ new Set(), s = /* @__PURE__ */ new Set();
|
|
@@ -4367,7 +4367,7 @@ function Ld(t) {
|
|
|
4367
4367
|
o[n(a[1])] = n(a[2]);
|
|
4368
4368
|
return o;
|
|
4369
4369
|
}
|
|
4370
|
-
function
|
|
4370
|
+
function $E(t, e, r) {
|
|
4371
4371
|
const n = /{{([^}]*)}}/g, s = t.match(n);
|
|
4372
4372
|
let o = t;
|
|
4373
4373
|
const a = r ?? !1, i = a ? Ld() : {};
|
|
@@ -4380,7 +4380,7 @@ function IE(t, e, r) {
|
|
|
4380
4380
|
const xd = (t) => new Promise((e, r) => {
|
|
4381
4381
|
const n = new FileReader();
|
|
4382
4382
|
n.onloadend = () => e(n.result), n.onerror = r, n.readAsDataURL(t);
|
|
4383
|
-
}),
|
|
4383
|
+
}), DE = (t) => {
|
|
4384
4384
|
if (typeof t == "number" && !isNaN(t))
|
|
4385
4385
|
return "number";
|
|
4386
4386
|
if (typeof t != "string")
|
|
@@ -4391,20 +4391,20 @@ const xd = (t) => new Promise((e, r) => {
|
|
|
4391
4391
|
function Li(t) {
|
|
4392
4392
|
return t.replace(/[\s-]+/g, "_").replace(/([a-z])([A-Z])/g, "$1_$2").replace(/([A-Z])([A-Z][a-z])/g, "$1_$2").toUpperCase();
|
|
4393
4393
|
}
|
|
4394
|
-
function
|
|
4394
|
+
function CE(t, e, r, n, s) {
|
|
4395
4395
|
const o = (a) => ({
|
|
4396
4396
|
...n(a),
|
|
4397
4397
|
disabled: !0
|
|
4398
4398
|
});
|
|
4399
4399
|
return t ? [o(s.loading)] : e ? [o(s.error)] : r.length ? r : [o(s.empty)];
|
|
4400
4400
|
}
|
|
4401
|
-
function
|
|
4401
|
+
function LE(t) {
|
|
4402
4402
|
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()) : "";
|
|
4403
4403
|
}
|
|
4404
|
-
const
|
|
4404
|
+
const xE = (t, e) => {
|
|
4405
4405
|
const r = t.trim();
|
|
4406
4406
|
return r ? e(`GENDER_${Li(r)}`) : null;
|
|
4407
|
-
},
|
|
4407
|
+
}, kE = (t, e) => {
|
|
4408
4408
|
const r = t.trim();
|
|
4409
4409
|
if (!r) return null;
|
|
4410
4410
|
const n = `COUNTRY_CODE_${Li(r)}`, s = e(n);
|
|
@@ -4417,7 +4417,7 @@ const LE = (t, e) => {
|
|
|
4417
4417
|
return r;
|
|
4418
4418
|
}
|
|
4419
4419
|
}, kd = (t) => W + `/user?username=${t}&v=custom:(display,username,uuid)`, Md = `${W}/location?tags=Login Location&v=default`, Ud = (t) => W + `/user/${t}?v=full`, qd = (t) => W + `/bahmni/app/setting?module=${t}`, Fd = "default_dateFormat", jd = ws;
|
|
4420
|
-
async function
|
|
4420
|
+
async function ME() {
|
|
4421
4421
|
const t = Ci(bi);
|
|
4422
4422
|
if (!t)
|
|
4423
4423
|
return null;
|
|
@@ -4441,13 +4441,13 @@ const Rt = () => {
|
|
|
4441
4441
|
if (!e.uuid)
|
|
4442
4442
|
throw new Error(fe.t("ERROR_FETCHING_USER_LOCATION_DETAILS"));
|
|
4443
4443
|
return e;
|
|
4444
|
-
},
|
|
4444
|
+
}, UE = async () => (await B(qd("commons"))).find(
|
|
4445
4445
|
(r) => r.property === Fd
|
|
4446
|
-
)?.value ?? null,
|
|
4446
|
+
)?.value ?? null, qE = async () => (await B(Md)).results ?? [], FE = async (t, e) => {
|
|
4447
4447
|
await ge(Ud(t), {
|
|
4448
4448
|
userProperties: { loginLocation: e.uuid }
|
|
4449
4449
|
});
|
|
4450
|
-
},
|
|
4450
|
+
}, jE = async (t) => {
|
|
4451
4451
|
await ge(jd, { sessionLocation: t });
|
|
4452
4452
|
}, Ts = {
|
|
4453
4453
|
person: {
|
|
@@ -4495,7 +4495,7 @@ const Rt = () => {
|
|
|
4495
4495
|
}, ki = W + "/idgen/identifiertype", zd = (t) => W + `/bahmni/app/setting?module=${t}`, Yd = "bahmni.primaryIdentifierType", Gd = W + "/bahmnicore/patientprofile", Kd = (t) => W + `/bahmnicore/patientprofile/${t}`, Wd = ne + "/Patient", Jd = (t) => W + `/idgen/identifiersource/${t}/identifier`, Qd = (t) => W + `/patientprofile/${t}?v=full`, Xd = (t, e, r = 20, n) => {
|
|
4496
4496
|
let s = `/openmrs/module/addresshierarchy/ajax/getPossibleAddressHierarchyEntriesWithParents.form?addressField=${t}&limit=${r}&searchString=${encodeURIComponent(e)}`;
|
|
4497
4497
|
return n && (s += `&parent=${n}`), s;
|
|
4498
|
-
}, Zd = "/openmrs/module/addresshierarchy/ajax/getOrderedAddressHierarchyLevels.form", ef = W + "/relationshiptype?v=custom:(aIsToB,bIsToA,uuid)&limit=150", tf = 20, rf = 2,
|
|
4498
|
+
}, Zd = "/openmrs/module/addresshierarchy/ajax/getOrderedAddressHierarchyLevels.form", ef = W + "/relationshiptype?v=custom:(aIsToB,bIsToA,uuid)&limit=150", tf = 20, rf = 2, VE = 120, HE = 50, BE = 15, nf = /^[a-f0-9-]{36}$/i, sf = W + "/personattributetype?v=custom:(uuid,name,sortWeight,description,format,concept:(uuid,display,answers:(uuid,name)))", zE = (t) => t === "male" ? "M" : t === "female" ? "F" : t === "other" ? "O" : "U", of = async (t) => {
|
|
4499
4499
|
if (!t || t.trim() === "")
|
|
4500
4500
|
throw new Error("Invalid patient UUID: UUID cannot be empty");
|
|
4501
4501
|
if (!nf.test(t))
|
|
@@ -4535,22 +4535,22 @@ const Rt = () => {
|
|
|
4535
4535
|
identifier: o,
|
|
4536
4536
|
photoUrl: t.photo?.[0]?.url
|
|
4537
4537
|
};
|
|
4538
|
-
},
|
|
4538
|
+
}, YE = async (t) => {
|
|
4539
4539
|
const e = await of(t);
|
|
4540
4540
|
return df(e);
|
|
4541
|
-
},
|
|
4541
|
+
}, GE = async (t) => {
|
|
4542
4542
|
if (!t.startsWith("/"))
|
|
4543
4543
|
throw new Error("Photo URL must be a relative path");
|
|
4544
4544
|
const e = await B(t, {
|
|
4545
4545
|
responseType: "blob"
|
|
4546
4546
|
});
|
|
4547
4547
|
return await xd(e);
|
|
4548
|
-
},
|
|
4548
|
+
}, KE = async (t, e) => {
|
|
4549
4549
|
const r = Rt();
|
|
4550
4550
|
return await B(
|
|
4551
4551
|
Hd(t, r.uuid, e)
|
|
4552
4552
|
);
|
|
4553
|
-
},
|
|
4553
|
+
}, WE = async (t, e, r, n, s) => {
|
|
4554
4554
|
const o = Rt();
|
|
4555
4555
|
return await B(
|
|
4556
4556
|
Bd(
|
|
@@ -4561,9 +4561,9 @@ const Rt = () => {
|
|
|
4561
4561
|
o.uuid
|
|
4562
4562
|
)
|
|
4563
4563
|
);
|
|
4564
|
-
},
|
|
4564
|
+
}, JE = async () => B(ki), ff = async () => (await B(zd("core"))).find(
|
|
4565
4565
|
(r) => r.property === Yd
|
|
4566
|
-
)?.value ?? null,
|
|
4566
|
+
)?.value ?? null, QE = async () => {
|
|
4567
4567
|
const [t, e] = await Promise.all([
|
|
4568
4568
|
B(ki),
|
|
4569
4569
|
ff()
|
|
@@ -4591,10 +4591,10 @@ const Rt = () => {
|
|
|
4591
4591
|
primaryIdentifierTypeUuid: e,
|
|
4592
4592
|
primaryIdentifierTypeName: null
|
|
4593
4593
|
};
|
|
4594
|
-
},
|
|
4594
|
+
}, XE = async (t) => ge(Gd, t), ZE = async (t, e) => ge(
|
|
4595
4595
|
Kd(t),
|
|
4596
4596
|
e
|
|
4597
|
-
),
|
|
4597
|
+
), eb = (t) => ge(Wd, t), tb = (t) => ge(Jd(t), {}), rb = (t, e) => vi(xi(t), e), nb = async () => B(Ii("mrs.genders")), sb = async (t, e, r = tf, n) => {
|
|
4598
4598
|
if (!e || e.length < rf)
|
|
4599
4599
|
return [];
|
|
4600
4600
|
try {
|
|
@@ -4606,7 +4606,7 @@ const Rt = () => {
|
|
|
4606
4606
|
`Failed to fetch address hierarchy for field "${t}": ${s instanceof Error ? s.message : "Unknown error"}`
|
|
4607
4607
|
);
|
|
4608
4608
|
}
|
|
4609
|
-
},
|
|
4609
|
+
}, ob = async () => B(Zd), ab = async (t) => B(Qd(t)), ib = async () => {
|
|
4610
4610
|
try {
|
|
4611
4611
|
return (await B(
|
|
4612
4612
|
ef
|
|
@@ -4620,9 +4620,9 @@ const Rt = () => {
|
|
|
4620
4620
|
`Failed to fetch relationship types: ${t instanceof Error ? t.message : "Unknown error"}`
|
|
4621
4621
|
);
|
|
4622
4622
|
}
|
|
4623
|
-
},
|
|
4623
|
+
}, cb = async () => B(sf);
|
|
4624
4624
|
var pf = /* @__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))(pf || {}), hf = /* @__PURE__ */ ((t) => (t.CHECKBOX = "checkbox", t.DROPDOWN = "dropdown", t.TEXT = "text", t.NUMBER = "number", t.DATE = "date", t))(hf || {});
|
|
4625
|
-
const
|
|
4625
|
+
const ub = (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", lb = (t) => t === "java.lang.Boolean" || t === "org.openmrs.customdatatype.datatype.BooleanDatatype", db = (t) => t === "org.openmrs.Concept" || t === "org.bahmni.module.bahmnicore.customdatatype.datatype.CodedConceptDatatype" || t === "org.openmrs.customdatatype.datatype.ConceptDatatype", fb = (t) => t === "java.lang.Integer" || t === "java.lang.Float", pb = (t) => t === "org.openmrs.util.AttributableDate" || t === "org.openmrs.customdatatype.datatype.DateDatatype", hb = (t) => t === "java.lang.String" || t === "org.openmrs.customdatatype.datatype.FreeTextDatatype" || t === "org.openmrs.customdatatype.datatype.RegexValidatedTextDatatype", mf = (t) => {
|
|
4626
4626
|
const e = new CustomEvent("bahmni-audit-log", { detail: t });
|
|
4627
4627
|
window.dispatchEvent(e);
|
|
4628
4628
|
}, gf = (t) => {
|
|
@@ -4743,10 +4743,10 @@ const cb = (t) => t === "java.lang.Boolean" || t === "org.openmrs.customdatatype
|
|
|
4743
4743
|
...n && {
|
|
4744
4744
|
episodeOfCare: [{ reference: `EpisodeOfCare/${n}` }]
|
|
4745
4745
|
}
|
|
4746
|
-
}),
|
|
4746
|
+
}), mb = async () => B(bf()), Rf = async (t) => B(vf(t)), Mi = async (t) => B(Tf(t)), Of = async (t) => ge(_f, t), gb = async (t) => {
|
|
4747
4747
|
const e = await Rf(t);
|
|
4748
4748
|
return e?.results && e.results.length > 0;
|
|
4749
|
-
},
|
|
4749
|
+
}, yb = async (t, e) => {
|
|
4750
4750
|
const r = await Mi(
|
|
4751
4751
|
Rt().uuid
|
|
4752
4752
|
), n = {
|
|
@@ -4761,7 +4761,7 @@ const cb = (t) => t === "java.lang.Boolean" || t === "org.openmrs.customdatatype
|
|
|
4761
4761
|
module: es.OPEN_VISIT.module
|
|
4762
4762
|
}), s;
|
|
4763
4763
|
}, Af = "/openmrs/ws/fhir2/R4/Encounter";
|
|
4764
|
-
async function
|
|
4764
|
+
async function wb(t, e, r, n, s) {
|
|
4765
4765
|
const o = Sf(
|
|
4766
4766
|
t,
|
|
4767
4767
|
e,
|
|
@@ -7688,7 +7688,7 @@ function Yh(t, e, r) {
|
|
|
7688
7688
|
function Gh(t, e, r) {
|
|
7689
7689
|
return ln(t, -e, r);
|
|
7690
7690
|
}
|
|
7691
|
-
const
|
|
7691
|
+
const Eb = {
|
|
7692
7692
|
PROPOSED: "proposed",
|
|
7693
7693
|
PENDING: "pending",
|
|
7694
7694
|
BOOKED: "booked",
|
|
@@ -7699,51 +7699,51 @@ const wb = {
|
|
|
7699
7699
|
CHECKED_IN: "checked-in",
|
|
7700
7700
|
WAITLIST: "waitlist",
|
|
7701
7701
|
ENTERED_IN_ERROR: "entered-in-error"
|
|
7702
|
-
}, Kh = W + "/appointments/search", Zi = W + "/appointments",
|
|
7702
|
+
}, Kh = W + "/appointments/search", Zi = W + "/appointments", bb = "http://fhir.bahmni.org/code-system/appointments", Wh = (t) => `${Zi}/${t}`, hn = (t, e, r, n) => {
|
|
7703
7703
|
const s = e === "upcoming", o = s ? "ge" : "le", a = s ? "date" : "-date", i = s ? (/* @__PURE__ */ new Date()).toISOString() : Yh(/* @__PURE__ */ new Date()).toISOString();
|
|
7704
7704
|
let c = `${ne}/Appointment?patient=${t}&date=${o}${i}&_sort=${a}`;
|
|
7705
7705
|
return r !== void 0 && r > 0 && (c += `&_count=${r}`), n !== void 0 && n > 0 && (c += `&_getpagesoffset=${n}`), c;
|
|
7706
|
-
}, Jh = (t) => hn(t, "upcoming"), Qh = (t, e) => hn(t, "past", e), Xh = (t) => `${Zi}/${t}/status-change`, Zh = W + "/appointmentService/all/full", em = (t) => `${W}/appointmentService?uuid=${t}`, tm = (t, e = 10, r = 0) => hn(t, "upcoming", e, r), rm = (t, e = 10, r = 0) => hn(t, "past", e, r), ec = W + "/appointmentUnavailability",
|
|
7707
|
-
async function
|
|
7706
|
+
}, Jh = (t) => hn(t, "upcoming"), Qh = (t, e) => hn(t, "past", e), Xh = (t) => `${Zi}/${t}/status-change`, Zh = W + "/appointmentService/all/full", em = (t) => `${W}/appointmentService?uuid=${t}`, tm = (t, e = 10, r = 0) => hn(t, "upcoming", e, r), rm = (t, e = 10, r = 0) => hn(t, "past", e, r), ec = W + "/appointmentUnavailability", _b = async (t) => await ge(Kh, t);
|
|
7707
|
+
async function vb(t) {
|
|
7708
7708
|
return await B(Jh(t));
|
|
7709
7709
|
}
|
|
7710
|
-
async function
|
|
7710
|
+
async function Tb(t, e) {
|
|
7711
7711
|
return await B(
|
|
7712
7712
|
Qh(t, e)
|
|
7713
7713
|
);
|
|
7714
7714
|
}
|
|
7715
|
-
const
|
|
7715
|
+
const Sb = async (t, e, r) => await ge(Xh(t), {
|
|
7716
7716
|
toStatus: e,
|
|
7717
7717
|
onDate: r
|
|
7718
|
-
}),
|
|
7719
|
-
async function
|
|
7718
|
+
}), Rb = async (t, e) => ge(t, { appointmentUuid: e });
|
|
7719
|
+
async function Ob(t) {
|
|
7720
7720
|
return await B(Wh(t));
|
|
7721
7721
|
}
|
|
7722
|
-
const
|
|
7722
|
+
const Ab = async () => await B(Zh), Pb = async (t) => {
|
|
7723
7723
|
await Ti(em(t));
|
|
7724
7724
|
};
|
|
7725
|
-
async function
|
|
7725
|
+
async function Nb(t, e = 10, r = 1) {
|
|
7726
7726
|
const n = (r - 1) * e, s = await B(
|
|
7727
7727
|
tm(t, e, n)
|
|
7728
7728
|
);
|
|
7729
7729
|
return { bundle: s, total: s.total ?? s.entry?.length ?? 0 };
|
|
7730
7730
|
}
|
|
7731
|
-
async function
|
|
7731
|
+
async function Ib(t, e = 10, r = 1) {
|
|
7732
7732
|
const n = (r - 1) * e, s = await B(
|
|
7733
7733
|
rm(t, e, n)
|
|
7734
7734
|
);
|
|
7735
7735
|
return { bundle: s, total: s.total ?? s.entry?.length ?? 0 };
|
|
7736
7736
|
}
|
|
7737
|
-
const
|
|
7737
|
+
const $b = async () => await B(ec), Db = async (t) => {
|
|
7738
7738
|
await ge(ec, t);
|
|
7739
|
-
}, tc = "dd/MM/yyyy", nm = "default_dateFormat", sm = "h:mm a",
|
|
7739
|
+
}, tc = "dd/MM/yyyy", nm = "default_dateFormat", sm = "h:mm a", Cb = "yyyy-MM-dd", Le = {
|
|
7740
7740
|
PARSE_ERROR: "DATE_ERROR_PARSE",
|
|
7741
7741
|
FORMAT_ERROR: "DATE_ERROR_FORMAT",
|
|
7742
7742
|
EMPTY_OR_INVALID: "DATE_ERROR_EMPTY_OR_INVALID",
|
|
7743
7743
|
INVALID_FORMAT: "DATE_ERROR_INVALID_FORMAT",
|
|
7744
7744
|
NULL_OR_UNDEFINED: "DATE_ERROR_NULL_OR_UNDEFINED"
|
|
7745
7745
|
};
|
|
7746
|
-
function
|
|
7746
|
+
function Lb(t) {
|
|
7747
7747
|
if (!t) return null;
|
|
7748
7748
|
const e = pn(t);
|
|
7749
7749
|
if (!at(e)) return null;
|
|
@@ -7752,7 +7752,7 @@ function Cb(t) {
|
|
|
7752
7752
|
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`;
|
|
7753
7753
|
return { year: s, month: a, day: c, ageInDays: n, ageText: u };
|
|
7754
7754
|
}
|
|
7755
|
-
function
|
|
7755
|
+
function xb(t) {
|
|
7756
7756
|
if (typeof t != "string" || !/^\d{4}-\d{2}-\d{2}$/.test(t))
|
|
7757
7757
|
return null;
|
|
7758
7758
|
const e = pn(t);
|
|
@@ -7820,7 +7820,7 @@ function am() {
|
|
|
7820
7820
|
return tc;
|
|
7821
7821
|
}
|
|
7822
7822
|
}
|
|
7823
|
-
function
|
|
7823
|
+
function kb(t, e, r = !1, n) {
|
|
7824
7824
|
const s = e ?? ((a) => a);
|
|
7825
7825
|
let o;
|
|
7826
7826
|
try {
|
|
@@ -7830,7 +7830,7 @@ function xb(t, e, r = !1, n) {
|
|
|
7830
7830
|
}
|
|
7831
7831
|
return r && !n && (o = `${o} ${sm}`), om(t, o, s);
|
|
7832
7832
|
}
|
|
7833
|
-
function
|
|
7833
|
+
function Mb(t, e, r) {
|
|
7834
7834
|
if (!t || !at(t) || e === null || e === void 0 || !r || typeof e != "number")
|
|
7835
7835
|
return;
|
|
7836
7836
|
const n = new Date(t);
|
|
@@ -7845,7 +7845,7 @@ function kb(t, e, r) {
|
|
|
7845
7845
|
return;
|
|
7846
7846
|
}
|
|
7847
7847
|
}
|
|
7848
|
-
function
|
|
7848
|
+
function Ub(t, e) {
|
|
7849
7849
|
if (t == null)
|
|
7850
7850
|
return {
|
|
7851
7851
|
formattedResult: "",
|
|
@@ -7897,11 +7897,11 @@ function Mb(t, e) {
|
|
|
7897
7897
|
}
|
|
7898
7898
|
return { formattedResult: c };
|
|
7899
7899
|
}
|
|
7900
|
-
const
|
|
7900
|
+
const qb = () => {
|
|
7901
7901
|
const t = /* @__PURE__ */ new Date();
|
|
7902
7902
|
return t.setHours(0, 0, 0, 0), t;
|
|
7903
7903
|
};
|
|
7904
|
-
function
|
|
7904
|
+
function Fb(t, e) {
|
|
7905
7905
|
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 = {
|
|
7906
7906
|
years: "YEARS",
|
|
7907
7907
|
months: "MONTHS",
|
|
@@ -7935,14 +7935,14 @@ const im = {
|
|
|
7935
7935
|
h: 1 / 24,
|
|
7936
7936
|
min: 1 / 1440,
|
|
7937
7937
|
s: 1 / 86400
|
|
7938
|
-
},
|
|
7938
|
+
}, jb = (t, e, r) => {
|
|
7939
7939
|
const n = typeof t == "string" ? new Date(t) : t;
|
|
7940
7940
|
if (isNaN(n.getTime()))
|
|
7941
7941
|
throw new Error(`Invalid date: ${t}`);
|
|
7942
7942
|
const s = im[r] ?? 1, o = e * s;
|
|
7943
7943
|
return un(n, o);
|
|
7944
|
-
},
|
|
7945
|
-
function
|
|
7944
|
+
}, Vb = (t, e, r, n) => t <= n && r <= e;
|
|
7945
|
+
function Hb(t, e, r = !1) {
|
|
7946
7946
|
return !t || !Array.isArray(t) ? [] : t.sort((n, s) => {
|
|
7947
7947
|
const o = new Date(n[e]), a = new Date(s[e]);
|
|
7948
7948
|
if (isNaN(o.getTime()) && isNaN(a.getTime())) return 0;
|
|
@@ -7957,7 +7957,7 @@ function cm(t) {
|
|
|
7957
7957
|
const e = Ah(t, "hh:mm aa", /* @__PURE__ */ new Date());
|
|
7958
7958
|
return at(e) ? Gi(e, "HH:mm") : "";
|
|
7959
7959
|
}
|
|
7960
|
-
function
|
|
7960
|
+
function Bb(t) {
|
|
7961
7961
|
const e = cm(t);
|
|
7962
7962
|
if (!e) return null;
|
|
7963
7963
|
const [r, n] = e.split(":").map(Number);
|
|
@@ -7992,10 +7992,10 @@ const um = () => {
|
|
|
7992
7992
|
);
|
|
7993
7993
|
}
|
|
7994
7994
|
};
|
|
7995
|
-
},
|
|
7995
|
+
}, zb = um(), lm = (t) => ne + `/ValueSet/${t}/$expand`, dm = (t) => ne + `/ValueSet/$expand?filter=${encodeURIComponent(t)}`, fm = (t, e, r) => W + `/bahmni/terminologies/concepts?limit=${e}&locale=${r}&term=${t}`, pm = (t) => W + `/concept/${t}`, hm = (t, e) => {
|
|
7996
7996
|
const r = `${W}/concept?s=byFullySpecifiedName&name=${encodeURIComponent(t)}`;
|
|
7997
7997
|
return e ? `${r}&v=${encodeURIComponent(e)}` : r;
|
|
7998
|
-
}, mm = "SHORT", gm = "FULLY_SPECIFIED",
|
|
7998
|
+
}, mm = "SHORT", gm = "FULLY_SPECIFIED", Yb = async (t, e = 20) => {
|
|
7999
7999
|
const r = an(), n = fm(t, e, r);
|
|
8000
8000
|
return B(n);
|
|
8001
8001
|
}, jr = async (t) => {
|
|
@@ -8005,7 +8005,7 @@ const um = () => {
|
|
|
8005
8005
|
const e = `${dm(t)}`;
|
|
8006
8006
|
return B(e);
|
|
8007
8007
|
};
|
|
8008
|
-
async function
|
|
8008
|
+
async function Gb(t) {
|
|
8009
8009
|
return await B(pm(t));
|
|
8010
8010
|
}
|
|
8011
8011
|
async function wm(t, e) {
|
|
@@ -8044,7 +8044,7 @@ const bm = (t) => ne + `/AllergyIntolerance?patient=${t}&_count=100&_sort=-_last
|
|
|
8044
8044
|
}), Ln = (t, e) => {
|
|
8045
8045
|
const r = t.expansion?.contains ?? [];
|
|
8046
8046
|
return vm(r).map((s) => Tm(s, e));
|
|
8047
|
-
},
|
|
8047
|
+
}, Kb = async (t, e, r) => {
|
|
8048
8048
|
const n = t ?? pt.MEDICATION.code, s = e ?? pt.FOOD.code, o = r ?? pt.ENVIRONMENT.code, [a, i, c] = await Promise.all([
|
|
8049
8049
|
jr(n),
|
|
8050
8050
|
jr(s),
|
|
@@ -8064,7 +8064,7 @@ const bm = (t) => ne + `/AllergyIntolerance?patient=${t}&_count=100&_sort=-_last
|
|
|
8064
8064
|
pt.ENVIRONMENT.display
|
|
8065
8065
|
)
|
|
8066
8066
|
];
|
|
8067
|
-
},
|
|
8067
|
+
}, Wb = async (t) => {
|
|
8068
8068
|
const e = t ?? _m.code;
|
|
8069
8069
|
return (await jr(e)).compose?.include[0]?.concept ?? [];
|
|
8070
8070
|
};
|
|
@@ -8104,12 +8104,12 @@ function Om(t) {
|
|
|
8104
8104
|
};
|
|
8105
8105
|
});
|
|
8106
8106
|
}
|
|
8107
|
-
async function
|
|
8107
|
+
async function Jb(t) {
|
|
8108
8108
|
const e = await Rm(t);
|
|
8109
8109
|
return Om(e);
|
|
8110
8110
|
}
|
|
8111
8111
|
var Am = /* @__PURE__ */ ((t) => (t.Active = "Active", t.Inactive = "Inactive", t))(Am || {}), Pm = /* @__PURE__ */ ((t) => (t.mild = "mild", t.moderate = "moderate", t.severe = "severe", t))(Pm || {});
|
|
8112
|
-
function
|
|
8112
|
+
function Qb(t) {
|
|
8113
8113
|
const e = t.code?.coding?.[0]?.code ?? t.id ?? "", r = t.reaction?.[0]?.severity, n = /* @__PURE__ */ new Set(), s = [];
|
|
8114
8114
|
for (const o of t.reaction ?? [])
|
|
8115
8115
|
for (const a of o.manifestation ?? [])
|
|
@@ -8195,7 +8195,7 @@ async function Cm(t, e) {
|
|
|
8195
8195
|
async function Lm(t, e) {
|
|
8196
8196
|
return (await Cm(t, e)).entry?.map((n) => n.resource).filter((n) => n !== void 0) ?? [];
|
|
8197
8197
|
}
|
|
8198
|
-
async function
|
|
8198
|
+
async function Xb(t) {
|
|
8199
8199
|
const r = [];
|
|
8200
8200
|
let n = 0;
|
|
8201
8201
|
for (; ; ) {
|
|
@@ -8216,7 +8216,7 @@ async function xm(t) {
|
|
|
8216
8216
|
async function mn(t, e) {
|
|
8217
8217
|
return (await Lm(t, e)).find((n) => !n.period?.end) ?? null;
|
|
8218
8218
|
}
|
|
8219
|
-
async function
|
|
8219
|
+
async function Zb(t, e) {
|
|
8220
8220
|
return await B(
|
|
8221
8221
|
`/openmrs/ws/fhir2/R4/Encounter/${t}`,
|
|
8222
8222
|
e
|
|
@@ -8225,24 +8225,24 @@ async function Xb(t, e) {
|
|
|
8225
8225
|
async function km(t) {
|
|
8226
8226
|
return await ge(nc, t);
|
|
8227
8227
|
}
|
|
8228
|
-
async function
|
|
8228
|
+
async function e_(t, e) {
|
|
8229
8229
|
return await vi(`${nc}/${t}`, e);
|
|
8230
8230
|
}
|
|
8231
|
-
async function
|
|
8231
|
+
async function t_(t) {
|
|
8232
8232
|
const e = Rt().uuid, n = (await Mi(e)).uuid;
|
|
8233
8233
|
return mn(t, n);
|
|
8234
8234
|
}
|
|
8235
|
-
const
|
|
8235
|
+
const r_ = (t, e) => t?.length === 0 ? !1 : e?.length === 0, Mm = (t) => ne + `/Condition?category=${vs}&patient=${t}&_count=100&_sort=-_lastUpdated`, Um = (t, e = 10, r = 0, n) => {
|
|
8236
8236
|
const s = ne + `/Condition?category=${vs}&patient=${t}&_count=${e}&_getpagesoffset=${r}&_sort=-_lastUpdated`;
|
|
8237
8237
|
return n ? `${s}&clinical-status=${n}` : s;
|
|
8238
8238
|
};
|
|
8239
8239
|
async function qm(t) {
|
|
8240
8240
|
return await B(`${Mm(t)}`);
|
|
8241
8241
|
}
|
|
8242
|
-
async function
|
|
8242
|
+
async function n_(t) {
|
|
8243
8243
|
return (await qm(t)).entry?.filter((n) => n.resource?.resourceType === "Condition").map((n) => n.resource) ?? [];
|
|
8244
8244
|
}
|
|
8245
|
-
async function
|
|
8245
|
+
async function s_(t, e = 10, r = 1, n) {
|
|
8246
8246
|
const s = (r - 1) * e, o = await B(
|
|
8247
8247
|
Um(t, e, s, n)
|
|
8248
8248
|
);
|
|
@@ -8267,7 +8267,7 @@ function No(t, e, r, n) {
|
|
|
8267
8267
|
practitionerUUIDs: n ? [n] : void 0
|
|
8268
8268
|
});
|
|
8269
8269
|
}
|
|
8270
|
-
async function
|
|
8270
|
+
async function o_(t, e, r = !1, n, s, o) {
|
|
8271
8271
|
const a = {
|
|
8272
8272
|
...t,
|
|
8273
8273
|
category: [
|
|
@@ -8435,11 +8435,11 @@ function Km(t) {
|
|
|
8435
8435
|
}
|
|
8436
8436
|
return Array.from(e.values());
|
|
8437
8437
|
}
|
|
8438
|
-
async function
|
|
8438
|
+
async function a_(t) {
|
|
8439
8439
|
const e = await Bm(t), r = sc(e);
|
|
8440
8440
|
return Km(r);
|
|
8441
8441
|
}
|
|
8442
|
-
async function
|
|
8442
|
+
async function i_(t, e = 10, r = 1) {
|
|
8443
8443
|
const n = (r - 1) * e, s = await zm(
|
|
8444
8444
|
t,
|
|
8445
8445
|
e,
|
|
@@ -8465,7 +8465,7 @@ const qt = {
|
|
|
8465
8465
|
}, Jm = (t, e, r) => {
|
|
8466
8466
|
let s = `${ne + "/MedicationRequest?" + qt.SORT + "&" + qt.COUNT + "&" + qt.INCLUDE_MEDICATION}&patient=${t}`;
|
|
8467
8467
|
return e && (s += `&code=${e}`), r && (s += `&encounter=${r}`), s;
|
|
8468
|
-
}, Qm = W + "/bahmnicore/config/drugOrders", Xm = (t, e) => ne + `/Medication?name=${encodeURIComponent(t)}&_count=${e}&_sort=-_lastUpdated`, Zm = ne + "/Medication?code=http://hl7.org/fhir/sid/cvx|&_count=100",
|
|
8468
|
+
}, Qm = W + "/bahmnicore/config/drugOrders", Xm = (t, e) => ne + `/Medication?name=${encodeURIComponent(t)}&_count=${e}&_sort=-_lastUpdated`, Zm = ne + "/Medication?code=http://hl7.org/fhir/sid/cvx|&_count=100", c_ = "medication", eg = (t) => {
|
|
8469
8469
|
switch (t.status) {
|
|
8470
8470
|
case "active":
|
|
8471
8471
|
return Be.Active;
|
|
@@ -8622,7 +8622,7 @@ function fg(t) {
|
|
|
8622
8622
|
});
|
|
8623
8623
|
}
|
|
8624
8624
|
const Io = (t) => t.priority === "stat";
|
|
8625
|
-
async function
|
|
8625
|
+
async function u_(t, e, r, n = !1) {
|
|
8626
8626
|
const s = await tg(
|
|
8627
8627
|
t,
|
|
8628
8628
|
e,
|
|
@@ -8631,21 +8631,21 @@ async function c_(t, e, r, n = !1) {
|
|
|
8631
8631
|
);
|
|
8632
8632
|
return fg(s);
|
|
8633
8633
|
}
|
|
8634
|
-
async function
|
|
8634
|
+
async function l_() {
|
|
8635
8635
|
return await B(
|
|
8636
8636
|
Qm
|
|
8637
8637
|
);
|
|
8638
8638
|
}
|
|
8639
|
-
async function
|
|
8639
|
+
async function d_(t, e = 20) {
|
|
8640
8640
|
return await B(
|
|
8641
8641
|
Xm(t, e)
|
|
8642
8642
|
);
|
|
8643
8643
|
}
|
|
8644
|
-
async function
|
|
8644
|
+
async function f_() {
|
|
8645
8645
|
return await B(Zm);
|
|
8646
8646
|
}
|
|
8647
8647
|
const pg = (t) => `${ne}/Medication/${t}`;
|
|
8648
|
-
async function
|
|
8648
|
+
async function p_(t) {
|
|
8649
8649
|
return await B(pg(t));
|
|
8650
8650
|
}
|
|
8651
8651
|
const hg = 200, mg = (t, e, r, n, s) => {
|
|
@@ -8665,7 +8665,7 @@ async function Jt(t, e, r, n, s) {
|
|
|
8665
8665
|
);
|
|
8666
8666
|
}
|
|
8667
8667
|
const gg = (t) => `${ne}/ImagingStudy/${t}/$fetch-quality-assessment`;
|
|
8668
|
-
async function
|
|
8668
|
+
async function h_(t, e, r, n) {
|
|
8669
8669
|
return await Jt(
|
|
8670
8670
|
e,
|
|
8671
8671
|
t,
|
|
@@ -8673,7 +8673,7 @@ async function p_(t, e, r, n) {
|
|
|
8673
8673
|
n
|
|
8674
8674
|
);
|
|
8675
8675
|
}
|
|
8676
|
-
async function
|
|
8676
|
+
async function m_(t, e, r, n) {
|
|
8677
8677
|
return await Jt(
|
|
8678
8678
|
e,
|
|
8679
8679
|
t,
|
|
@@ -8682,7 +8682,7 @@ async function h_(t, e, r, n) {
|
|
|
8682
8682
|
"ImagingStudy:basedon"
|
|
8683
8683
|
);
|
|
8684
8684
|
}
|
|
8685
|
-
async function
|
|
8685
|
+
async function g_(t, e, r, n) {
|
|
8686
8686
|
return (await Jt(
|
|
8687
8687
|
e,
|
|
8688
8688
|
t,
|
|
@@ -8690,10 +8690,10 @@ async function m_(t, e, r, n) {
|
|
|
8690
8690
|
n
|
|
8691
8691
|
)).entry?.filter((a) => a.resource?.resourceType === "ServiceRequest").map((a) => a.resource) ?? [];
|
|
8692
8692
|
}
|
|
8693
|
-
async function
|
|
8693
|
+
async function y_(t) {
|
|
8694
8694
|
return await B(gg(t));
|
|
8695
8695
|
}
|
|
8696
|
-
async function
|
|
8696
|
+
async function w_(t, e, r, n) {
|
|
8697
8697
|
return await Jt(
|
|
8698
8698
|
e,
|
|
8699
8699
|
t,
|
|
@@ -8705,29 +8705,29 @@ const yg = (t, e) => {
|
|
|
8705
8705
|
const r = `${ne}/DiagnosticReport?patient=${t}`;
|
|
8706
8706
|
return e ? `${r}&based-on=${e}` : r;
|
|
8707
8707
|
}, wg = (t) => `${ne}/DiagnosticReport/${t}/$fetch-bundle`, Eg = (t) => `${ne}/DiagnosticReport/${t}/$update-bundle`;
|
|
8708
|
-
async function
|
|
8708
|
+
async function E_(t, e = []) {
|
|
8709
8709
|
const r = e.length > 0 ? e.join(",") : void 0, n = yg(t, r);
|
|
8710
8710
|
return await B(n);
|
|
8711
8711
|
}
|
|
8712
|
-
async function
|
|
8712
|
+
async function b_(t) {
|
|
8713
8713
|
const e = wg(t);
|
|
8714
8714
|
return await B(e);
|
|
8715
8715
|
}
|
|
8716
|
-
async function
|
|
8716
|
+
async function __(t, e) {
|
|
8717
8717
|
const r = Eg(t);
|
|
8718
8718
|
return await ge(r, e);
|
|
8719
8719
|
}
|
|
8720
|
-
const
|
|
8720
|
+
const v_ = [
|
|
8721
8721
|
"preliminary",
|
|
8722
8722
|
"final",
|
|
8723
8723
|
"amended",
|
|
8724
8724
|
"corrected",
|
|
8725
8725
|
"appended"
|
|
8726
|
-
],
|
|
8726
|
+
], T_ = [
|
|
8727
8727
|
"registered",
|
|
8728
8728
|
"unknown",
|
|
8729
8729
|
"partial"
|
|
8730
|
-
], bg = "All Orderables", _g = "/openmrs/ws/rest/v1/ordertype?v=custom:(uuid,display,conceptClasses:(uuid,name))", vg = "LabSet", Tg = "http://fhir.bahmni.org/ext/ValueSet/concept-class",
|
|
8730
|
+
], bg = "All Orderables", _g = "/openmrs/ws/rest/v1/ordertype?v=custom:(uuid,display,conceptClasses:(uuid,name))", vg = "LabSet", Tg = "http://fhir.bahmni.org/ext/ValueSet/concept-class", S_ = ["orderTypes"], Sg = async () => await ym(bg), Ps = async () => await B(_g), Rg = (t) => {
|
|
8731
8731
|
let e = t.display ?? "Unknown investigation";
|
|
8732
8732
|
return oc(t) === vg && (e += ` (${fe.t("INVESTIGATION_PANEL")})`), e;
|
|
8733
8733
|
}, Og = (t) => {
|
|
@@ -8759,12 +8759,12 @@ const __ = [
|
|
|
8759
8759
|
});
|
|
8760
8760
|
});
|
|
8761
8761
|
}), r;
|
|
8762
|
-
},
|
|
8762
|
+
}, R_ = async () => {
|
|
8763
8763
|
const t = await Sg(), e = await Ps();
|
|
8764
8764
|
return Ag(t, Og(e));
|
|
8765
|
-
},
|
|
8765
|
+
}, O_ = async (t) => t ? (await Ps()).results.find(
|
|
8766
8766
|
(n) => n.display.toLowerCase() === t.toLowerCase()
|
|
8767
|
-
)?.uuid ?? null : null,
|
|
8767
|
+
)?.uuid ?? null : null, A_ = async () => (await Ps()).results.map((e) => e.display), P_ = async (t, e, r) => {
|
|
8768
8768
|
const n = [];
|
|
8769
8769
|
for (const s of t) {
|
|
8770
8770
|
const o = s.uuid;
|
|
@@ -13322,19 +13322,19 @@ var Ly = Cy();
|
|
|
13322
13322
|
const xy = /* @__PURE__ */ Pg(Ly), Ba = {
|
|
13323
13323
|
CONFIG_NOT_FOUND: "CONFIG_ERROR_NOT_FOUND",
|
|
13324
13324
|
VALIDATION_FAILED: "CONFIG_ERROR_VALIDATION_FAILED"
|
|
13325
|
-
},
|
|
13325
|
+
}, N_ = async (t, e) => {
|
|
13326
13326
|
const r = await ky(t);
|
|
13327
13327
|
if (!r)
|
|
13328
13328
|
throw new Error(Ba.CONFIG_NOT_FOUND);
|
|
13329
13329
|
if (!await My(r, e))
|
|
13330
13330
|
throw new Error(Ba.VALIDATION_FAILED);
|
|
13331
13331
|
return r;
|
|
13332
|
-
}, ky = async (t) => await B(t), My = async (t, e) => new xy().compile(e)(t),
|
|
13332
|
+
}, ky = async (t) => await B(t), My = async (t, e) => new xy().compile(e)(t), I_ = async () => {
|
|
13333
13333
|
await Ti(ws), Fl.forEach((t) => Cd(t)), globalThis.location.href = wi;
|
|
13334
13334
|
}, Uy = (t) => W + `/form/${t}?v=custom:(uuid,name,version,published,resources:(value))`, qy = (t) => {
|
|
13335
13335
|
const e = W + "/bahmniie/form/latestPublishedForms";
|
|
13336
13336
|
return t ? e + `?episodeUuid=${t}` : e;
|
|
13337
|
-
},
|
|
13337
|
+
}, $_ = (t) => W + `/user/${t}?v=full`, Fy = (t, e, r, n) => W + `/bahmniie/form/translations?formName=${encodeURIComponent(t)}&formUuid=${e}&formVersion=${r}&locale=${n}`, Vr = "Bahmni", jy = (t) => W + `/form?q=${encodeURIComponent(t)}&v=custom:(uuid,name,version,published,auditInfo:(dateCreated))`, Vy = (t, e, r) => {
|
|
13338
13338
|
let s = W + "/bahmnicore/patient/" + t + "/forms";
|
|
13339
13339
|
return r ? s += `?patientProgramUuid=${r}` : e && (s += `?numberOfVisits=${e}`), s;
|
|
13340
13340
|
}, pc = (t, e, r, n) => {
|
|
@@ -13349,23 +13349,23 @@ async function By(t, e, r) {
|
|
|
13349
13349
|
const n = pc(t, e, r);
|
|
13350
13350
|
return await B(n);
|
|
13351
13351
|
}
|
|
13352
|
-
async function
|
|
13352
|
+
async function D_(t, e) {
|
|
13353
13353
|
const r = pc(t, e, void 0, !0);
|
|
13354
13354
|
return await B(r);
|
|
13355
13355
|
}
|
|
13356
|
-
async function
|
|
13356
|
+
async function C_(t, e, r) {
|
|
13357
13357
|
return (await By(
|
|
13358
13358
|
t,
|
|
13359
13359
|
e,
|
|
13360
13360
|
r
|
|
13361
13361
|
)).entry?.filter((o) => o.resource?.resourceType === "Observation").map((o) => o.resource) ?? [];
|
|
13362
13362
|
}
|
|
13363
|
-
async function
|
|
13363
|
+
async function L_(t) {
|
|
13364
13364
|
return await B(
|
|
13365
13365
|
Hy(t)
|
|
13366
13366
|
);
|
|
13367
13367
|
}
|
|
13368
|
-
const zy = (t) => t.split("/").pop() ?? "",
|
|
13368
|
+
const zy = (t) => t.split("/").pop() ?? "", x_ = (t, e) => {
|
|
13369
13369
|
const r = /* @__PURE__ */ new Map(), n = e.entry?.filter((o) => o.resource?.resourceType === "Encounter").map((o) => o.resource) ?? [], s = /* @__PURE__ */ new Map();
|
|
13370
13370
|
return n.forEach((o) => {
|
|
13371
13371
|
o.id && s.set(o.id, o);
|
|
@@ -13389,13 +13389,13 @@ const zy = (t) => t.split("/").pop() ?? "", L_ = (t, e) => {
|
|
|
13389
13389
|
(o, a) => a.encounterDateTime - o.encounterDateTime
|
|
13390
13390
|
);
|
|
13391
13391
|
}, hc = (t) => W + `/provider?user=${t}&v=custom:(uuid,display,person,attributes)`, Yy = W + "/provider?v=custom:(uuid,display,person,attributes)";
|
|
13392
|
-
async function
|
|
13392
|
+
async function k_(t) {
|
|
13393
13393
|
const e = await B(
|
|
13394
13394
|
hc(t)
|
|
13395
13395
|
);
|
|
13396
13396
|
return !e.results || e.results.length === 0 ? null : e.results[0];
|
|
13397
13397
|
}
|
|
13398
|
-
async function
|
|
13398
|
+
async function M_() {
|
|
13399
13399
|
const t = [];
|
|
13400
13400
|
let e = Yy;
|
|
13401
13401
|
for (; e; ) {
|
|
@@ -13404,7 +13404,7 @@ async function k_() {
|
|
|
13404
13404
|
}
|
|
13405
13405
|
return t;
|
|
13406
13406
|
}
|
|
13407
|
-
async function
|
|
13407
|
+
async function U_(t) {
|
|
13408
13408
|
const e = await B(hc(t));
|
|
13409
13409
|
if (!e.results || e.results.length === 0)
|
|
13410
13410
|
return [];
|
|
@@ -13413,7 +13413,7 @@ async function M_(t) {
|
|
|
13413
13413
|
(n) => !n.voided && n.attributeType.display === "Login Locations"
|
|
13414
13414
|
).map((n) => n.value) : [];
|
|
13415
13415
|
}
|
|
13416
|
-
const Gy = ne + "/Encounter", Ky = W + "/systemsetting/bahmni.encountersession.duration",
|
|
13416
|
+
const Gy = ne + "/Encounter", Ky = W + "/systemsetting/bahmni.encountersession.duration", q_ = {
|
|
13417
13417
|
MATCHED: "ENCOUNTER_MATCH_REASON_MATCHED",
|
|
13418
13418
|
NO_ACTIVE_VISIT: "ENCOUNTER_MATCH_REASON_NO_ACTIVE_VISIT",
|
|
13419
13419
|
NO_ACTIVE_ENCOUNTER: "ENCOUNTER_MATCH_REASON_NO_ACTIVE_ENCOUNTER",
|
|
@@ -13451,7 +13451,7 @@ async function Wy(t, e) {
|
|
|
13451
13451
|
return null;
|
|
13452
13452
|
}
|
|
13453
13453
|
}
|
|
13454
|
-
async function
|
|
13454
|
+
async function F_(t, e, r, n) {
|
|
13455
13455
|
try {
|
|
13456
13456
|
if (!t) return null;
|
|
13457
13457
|
const s = r ?? await mc(), a = `ge${new Date(Date.now() - s * 60 * 1e3).toISOString()}`, i = {
|
|
@@ -13488,7 +13488,7 @@ function Yn(t) {
|
|
|
13488
13488
|
return new Date(r.period?.start ?? 0).getTime() - n;
|
|
13489
13489
|
});
|
|
13490
13490
|
}
|
|
13491
|
-
async function
|
|
13491
|
+
async function j_(t, e, r, n) {
|
|
13492
13492
|
try {
|
|
13493
13493
|
const s = await mn(t);
|
|
13494
13494
|
if (!s?.id)
|
|
@@ -13553,7 +13553,7 @@ async function F_(t, e, r, n) {
|
|
|
13553
13553
|
};
|
|
13554
13554
|
}
|
|
13555
13555
|
}
|
|
13556
|
-
function
|
|
13556
|
+
function V_(t) {
|
|
13557
13557
|
return t.matched || t.reasons.includes("LOCATION_MISMATCH") && !t.reasons.includes("SESSION_EXPIRED") && !t.reasons.includes("PROVIDER_MISMATCH");
|
|
13558
13558
|
}
|
|
13559
13559
|
const gc = {
|
|
@@ -13579,7 +13579,7 @@ function Qy(t) {
|
|
|
13579
13579
|
function Xy() {
|
|
13580
13580
|
return Bt;
|
|
13581
13581
|
}
|
|
13582
|
-
function
|
|
13582
|
+
function H_(t) {
|
|
13583
13583
|
const e = t.reasons.some(
|
|
13584
13584
|
(r) => Jy.includes(r)
|
|
13585
13585
|
);
|
|
@@ -13590,20 +13590,20 @@ function V_(t) {
|
|
|
13590
13590
|
isLoading: !1
|
|
13591
13591
|
}, Cs();
|
|
13592
13592
|
}
|
|
13593
|
-
function
|
|
13593
|
+
function B_(t) {
|
|
13594
13594
|
Bt = { ...Bt, isLoading: t }, Cs();
|
|
13595
13595
|
}
|
|
13596
|
-
function
|
|
13596
|
+
function z_() {
|
|
13597
13597
|
Bt = { ...gc }, Cs();
|
|
13598
13598
|
}
|
|
13599
|
-
function
|
|
13599
|
+
function Y_() {
|
|
13600
13600
|
return Ac(
|
|
13601
13601
|
Qy,
|
|
13602
13602
|
Xy
|
|
13603
13603
|
);
|
|
13604
13604
|
}
|
|
13605
|
-
const Zy = (t) => ne + `/EpisodeOfCare?_revinclude=Encounter:episode-of-care&_id=${t}`;
|
|
13606
|
-
async function
|
|
13605
|
+
const Zy = (t) => ne + `/EpisodeOfCare?_revinclude=Encounter:episode-of-care&_id=${t}`, ew = (t) => ne + `/EpisodeOfCare/${t}`;
|
|
13606
|
+
async function G_(t) {
|
|
13607
13607
|
const e = t.join(","), r = await B(Zy(e));
|
|
13608
13608
|
if (r.total === 0)
|
|
13609
13609
|
throw new Error(
|
|
@@ -13616,13 +13616,16 @@ async function Y_(t) {
|
|
|
13616
13616
|
c && s.add(c);
|
|
13617
13617
|
}), { visitUuids: Array.from(s), encounterUuids: o };
|
|
13618
13618
|
}
|
|
13619
|
-
|
|
13619
|
+
async function K_(t) {
|
|
13620
|
+
return await B(`${ew(t)}`);
|
|
13621
|
+
}
|
|
13622
|
+
const Gn = /* @__PURE__ */ new Map(), tw = async (t) => {
|
|
13620
13623
|
if (Gn.has(t))
|
|
13621
13624
|
return Gn.get(t) ?? null;
|
|
13622
13625
|
const e = await B(Ii(t)), r = e ? String(e) : null;
|
|
13623
13626
|
return Gn.set(t, r), r;
|
|
13624
|
-
},
|
|
13625
|
-
if (!await
|
|
13627
|
+
}, rw = async () => await tw(Nd) === "true", nw = async (t, e, r, n = Ze.CLINICAL) => {
|
|
13628
|
+
if (!await rw())
|
|
13626
13629
|
return { logged: !1 };
|
|
13627
13630
|
const o = es[e];
|
|
13628
13631
|
if (!o)
|
|
@@ -13639,14 +13642,14 @@ const Gn = /* @__PURE__ */ new Map(), ew = async (t) => {
|
|
|
13639
13642
|
module: n
|
|
13640
13643
|
};
|
|
13641
13644
|
return await ge(yf, a), { logged: !0 };
|
|
13642
|
-
},
|
|
13643
|
-
await
|
|
13645
|
+
}, W_ = () => gf(async (e) => {
|
|
13646
|
+
await nw(
|
|
13644
13647
|
e.patientUuid,
|
|
13645
13648
|
e.eventType,
|
|
13646
13649
|
e.messageParams,
|
|
13647
13650
|
e.module
|
|
13648
13651
|
);
|
|
13649
|
-
}),
|
|
13652
|
+
}), J_ = async () => {
|
|
13650
13653
|
try {
|
|
13651
13654
|
const t = await B(ws);
|
|
13652
13655
|
return t.user ? t.user.privileges : null;
|
|
@@ -13654,7 +13657,7 @@ const Gn = /* @__PURE__ */ new Map(), ew = async (t) => {
|
|
|
13654
13657
|
const { message: e } = Yr(t);
|
|
13655
13658
|
throw new Error(e);
|
|
13656
13659
|
}
|
|
13657
|
-
},
|
|
13660
|
+
}, sw = (t, e) => {
|
|
13658
13661
|
if (!t || t.length === 0)
|
|
13659
13662
|
return !1;
|
|
13660
13663
|
if (!e || e.length === 0)
|
|
@@ -13663,7 +13666,7 @@ const Gn = /* @__PURE__ */ new Map(), ew = async (t) => {
|
|
|
13663
13666
|
return t.some(
|
|
13664
13667
|
(n) => r.includes(n.name)
|
|
13665
13668
|
);
|
|
13666
|
-
},
|
|
13669
|
+
}, ow = async (t) => {
|
|
13667
13670
|
let e;
|
|
13668
13671
|
t && t.length > 0 && (e = t.join(","));
|
|
13669
13672
|
const r = await fetch(qy(e));
|
|
@@ -13673,7 +13676,7 @@ const Gn = /* @__PURE__ */ new Map(), ew = async (t) => {
|
|
|
13673
13676
|
);
|
|
13674
13677
|
const n = await r.json();
|
|
13675
13678
|
return Array.isArray(n) ? n : [];
|
|
13676
|
-
},
|
|
13679
|
+
}, aw = (t, e) => {
|
|
13677
13680
|
const r = JSON.parse(t.nameTranslation);
|
|
13678
13681
|
if (Array.isArray(r) && r.length > 0) {
|
|
13679
13682
|
const n = r.find(
|
|
@@ -13683,8 +13686,8 @@ const Gn = /* @__PURE__ */ new Map(), ew = async (t) => {
|
|
|
13683
13686
|
return n.display;
|
|
13684
13687
|
}
|
|
13685
13688
|
return t.name;
|
|
13686
|
-
},
|
|
13687
|
-
const r =
|
|
13689
|
+
}, iw = (t, e) => {
|
|
13690
|
+
const r = aw(t, e);
|
|
13688
13691
|
return {
|
|
13689
13692
|
uuid: t.uuid,
|
|
13690
13693
|
name: r,
|
|
@@ -13694,12 +13697,12 @@ const Gn = /* @__PURE__ */ new Map(), ew = async (t) => {
|
|
|
13694
13697
|
editable: n.editable
|
|
13695
13698
|
}))
|
|
13696
13699
|
};
|
|
13697
|
-
},
|
|
13698
|
-
const e = await
|
|
13700
|
+
}, Q_ = async (t) => {
|
|
13701
|
+
const e = await ow(t), r = an();
|
|
13699
13702
|
return e.map(
|
|
13700
|
-
(n) =>
|
|
13703
|
+
(n) => iw(n, r)
|
|
13701
13704
|
);
|
|
13702
|
-
},
|
|
13705
|
+
}, X_ = async (t) => {
|
|
13703
13706
|
const e = await fetch(Uy(t));
|
|
13704
13707
|
if (!e.ok)
|
|
13705
13708
|
throw new Error(
|
|
@@ -13733,7 +13736,7 @@ const Gn = /* @__PURE__ */ new Map(), ew = async (t) => {
|
|
|
13733
13736
|
schema: n,
|
|
13734
13737
|
translations: u
|
|
13735
13738
|
};
|
|
13736
|
-
},
|
|
13739
|
+
}, Z_ = async (t, e, r) => {
|
|
13737
13740
|
const n = await fetch(jy(t));
|
|
13738
13741
|
if (!n.ok) return null;
|
|
13739
13742
|
const s = await n.json(), a = (Array.isArray(s.results) ? s.results : []).filter(
|
|
@@ -13755,13 +13758,13 @@ const Gn = /* @__PURE__ */ new Map(), ew = async (t) => {
|
|
|
13755
13758
|
(u) => new Date(u.auditInfo.dateCreated).getTime() <= r
|
|
13756
13759
|
);
|
|
13757
13760
|
return c.length === 0 ? i[0].uuid : c.at(-1).uuid;
|
|
13758
|
-
},
|
|
13761
|
+
}, ev = async (t, e, r) => {
|
|
13759
13762
|
let n;
|
|
13760
13763
|
e && e.length > 0 && (n = e.join(","));
|
|
13761
13764
|
const s = Vy(t, r, n), o = await B(s);
|
|
13762
13765
|
return Array.isArray(o) ? o : [];
|
|
13763
13766
|
};
|
|
13764
|
-
function
|
|
13767
|
+
function tv(t) {
|
|
13765
13768
|
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());
|
|
13766
13769
|
return `${r}-${n}-${s} ${o}:${a}:${i}`;
|
|
13767
13770
|
}
|
|
@@ -13804,7 +13807,7 @@ function Ls(t, e) {
|
|
|
13804
13807
|
};
|
|
13805
13808
|
return n(r.controls);
|
|
13806
13809
|
}
|
|
13807
|
-
function
|
|
13810
|
+
function rv(t, e) {
|
|
13808
13811
|
if (!t.controls || t.controls.length === 0)
|
|
13809
13812
|
return [];
|
|
13810
13813
|
const r = [], n = (/* @__PURE__ */ new Date()).toISOString();
|
|
@@ -13849,7 +13852,7 @@ function ev(t, e) {
|
|
|
13849
13852
|
s.interpretation && (a.interpretation = s.interpretation), s.comment && (a.comment = s.comment), r.push(a);
|
|
13850
13853
|
}), r;
|
|
13851
13854
|
}
|
|
13852
|
-
function
|
|
13855
|
+
function nv(t, e) {
|
|
13853
13856
|
if (!t || t.length === 0)
|
|
13854
13857
|
return {
|
|
13855
13858
|
controls: [],
|
|
@@ -13877,17 +13880,17 @@ function tv(t, e) {
|
|
|
13877
13880
|
metadata: { formMetadata: e }
|
|
13878
13881
|
};
|
|
13879
13882
|
}
|
|
13880
|
-
function
|
|
13883
|
+
function cw(t) {
|
|
13881
13884
|
return t == null ? null : typeof t == "string" || typeof t == "number" || typeof t == "boolean" || typeof t == "object" ? t : null;
|
|
13882
13885
|
}
|
|
13883
|
-
function
|
|
13886
|
+
function sv(t, e) {
|
|
13884
13887
|
const r = (s) => {
|
|
13885
13888
|
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 = {
|
|
13886
13889
|
concept: {
|
|
13887
13890
|
uuid: a,
|
|
13888
13891
|
datatype: i
|
|
13889
13892
|
},
|
|
13890
|
-
value:
|
|
13893
|
+
value: cw(s.value),
|
|
13891
13894
|
obsDatetime: typeof s.observationDateTime == "string" ? s.observationDateTime : (/* @__PURE__ */ new Date()).toISOString(),
|
|
13892
13895
|
formNamespace: typeof s.formNamespace == "string" ? s.formNamespace : "Bahmni",
|
|
13893
13896
|
formFieldPath: typeof s.formFieldPath == "string" ? s.formFieldPath : void 0
|
|
@@ -13896,11 +13899,11 @@ function rv(t, e) {
|
|
|
13896
13899
|
};
|
|
13897
13900
|
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);
|
|
13898
13901
|
}
|
|
13899
|
-
function
|
|
13902
|
+
function ov(t) {
|
|
13900
13903
|
if (!(!t || typeof t != "object"))
|
|
13901
13904
|
return "toJS" in t && typeof t.toJS == "function" ? t.toJS() : t;
|
|
13902
13905
|
}
|
|
13903
|
-
function
|
|
13906
|
+
function av(t, e) {
|
|
13904
13907
|
!t || !Array.isArray(t.children) || t.children.forEach((r) => {
|
|
13905
13908
|
r && typeof r == "object" && Ec(
|
|
13906
13909
|
r,
|
|
@@ -13930,7 +13933,7 @@ function Ec(t, e) {
|
|
|
13930
13933
|
);
|
|
13931
13934
|
});
|
|
13932
13935
|
}
|
|
13933
|
-
const
|
|
13936
|
+
const uw = W + "/bahmnicore/diseaseSummaryData?", iv = async (t, e, r, n) => {
|
|
13934
13937
|
const s = new URLSearchParams({
|
|
13935
13938
|
groupBy: n,
|
|
13936
13939
|
latestCount: e.toString(),
|
|
@@ -13939,17 +13942,17 @@ const cw = W + "/bahmnicore/diseaseSummaryData?", ov = async (t, e, r, n) => {
|
|
|
13939
13942
|
r.forEach((a) => {
|
|
13940
13943
|
s.append("obsConcepts", a);
|
|
13941
13944
|
});
|
|
13942
|
-
const o =
|
|
13945
|
+
const o = uw + s.toString();
|
|
13943
13946
|
return B(o);
|
|
13944
|
-
}, 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)",
|
|
13947
|
+
}, 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)", lw = (t) => `${W}/bahmniprogramenrollment?patient=${t}&v=${xs}`, dw = (t, e = 15, r = 0) => `${W}/bahmniprogramenrollment?patient=${t}&v=${xs}&limit=${e}&startIndex=${r}&totalCount=true`, bc = (t) => `${W}/bahmniprogramenrollment/${t}`, fw = (t) => `${bc(t)}?v=${xs}`, cv = async (t) => await B(lw(t)), uv = async (t, e = 15, r = 1) => {
|
|
13945
13948
|
const n = (r - 1) * e, s = await B(
|
|
13946
|
-
|
|
13949
|
+
dw(t, e, n)
|
|
13947
13950
|
);
|
|
13948
13951
|
return {
|
|
13949
13952
|
programs: s.results,
|
|
13950
13953
|
total: s.totalCount
|
|
13951
13954
|
};
|
|
13952
|
-
},
|
|
13955
|
+
}, lv = async (t) => await B(fw(t)), dv = async (t, e) => {
|
|
13953
13956
|
const r = {
|
|
13954
13957
|
uuid: t,
|
|
13955
13958
|
states: [
|
|
@@ -13963,7 +13966,7 @@ const cw = W + "/bahmnicore/diseaseSummaryData?", ov = async (t, e, r, n) => {
|
|
|
13963
13966
|
r
|
|
13964
13967
|
);
|
|
13965
13968
|
};
|
|
13966
|
-
function
|
|
13969
|
+
function fv(t) {
|
|
13967
13970
|
if (t.states.length === 0)
|
|
13968
13971
|
return null;
|
|
13969
13972
|
let e;
|
|
@@ -13979,7 +13982,7 @@ function lv(t) {
|
|
|
13979
13982
|
e = t.states.find((r) => r.endDate === null);
|
|
13980
13983
|
return e ? Em(e.state.concept.names) ?? e.state.concept.display : null;
|
|
13981
13984
|
}
|
|
13982
|
-
function
|
|
13985
|
+
function pv(t, e) {
|
|
13983
13986
|
if (e.length === 0)
|
|
13984
13987
|
return {};
|
|
13985
13988
|
const r = {};
|
|
@@ -13991,12 +13994,12 @@ function dv(t, e) {
|
|
|
13991
13994
|
}
|
|
13992
13995
|
return r;
|
|
13993
13996
|
}
|
|
13994
|
-
const is = "consultation:saved",
|
|
13997
|
+
const is = "consultation:saved", hv = (t) => {
|
|
13995
13998
|
const e = new CustomEvent(is, {
|
|
13996
13999
|
detail: t
|
|
13997
14000
|
});
|
|
13998
14001
|
window.dispatchEvent(e);
|
|
13999
|
-
},
|
|
14002
|
+
}, mv = (t, e = []) => {
|
|
14000
14003
|
const r = Ft(t);
|
|
14001
14004
|
nt(() => {
|
|
14002
14005
|
r.current = t;
|
|
@@ -14009,17 +14012,17 @@ const is = "consultation:saved", fv = (t) => {
|
|
|
14009
14012
|
window.removeEventListener(is, n);
|
|
14010
14013
|
};
|
|
14011
14014
|
}, e);
|
|
14012
|
-
}, cs = "cdss:check", us = "cdss:results",
|
|
14015
|
+
}, cs = "cdss:check", us = "cdss:results", gv = (t) => {
|
|
14013
14016
|
const e = new CustomEvent(cs, {
|
|
14014
14017
|
detail: t
|
|
14015
14018
|
});
|
|
14016
14019
|
globalThis.dispatchEvent(e);
|
|
14017
|
-
},
|
|
14020
|
+
}, yv = (t) => {
|
|
14018
14021
|
const e = new CustomEvent(us, {
|
|
14019
14022
|
detail: t
|
|
14020
14023
|
});
|
|
14021
14024
|
globalThis.dispatchEvent(e);
|
|
14022
|
-
},
|
|
14025
|
+
}, wv = (t) => {
|
|
14023
14026
|
const e = Ft(t);
|
|
14024
14027
|
nt(() => {
|
|
14025
14028
|
e.current = t;
|
|
@@ -14032,7 +14035,7 @@ const is = "consultation:saved", fv = (t) => {
|
|
|
14032
14035
|
globalThis.removeEventListener(cs, r);
|
|
14033
14036
|
};
|
|
14034
14037
|
}, []);
|
|
14035
|
-
},
|
|
14038
|
+
}, Ev = (t) => {
|
|
14036
14039
|
const e = Ft(t);
|
|
14037
14040
|
nt(() => {
|
|
14038
14041
|
e.current = t;
|
|
@@ -14045,17 +14048,17 @@ const is = "consultation:saved", fv = (t) => {
|
|
|
14045
14048
|
globalThis.removeEventListener(us, r);
|
|
14046
14049
|
};
|
|
14047
14050
|
}, []);
|
|
14048
|
-
},
|
|
14051
|
+
}, pw = `${ne}/DocumentReference`, hw = "bahmni.documentUpload.maxFileSizeInMB", mw = `${W}/systemsetting?q=${hw}&v=custom:(property,value)`, _c = (t, e, r = 100, n = 0) => {
|
|
14049
14052
|
const s = `${ne}/DocumentReference?patient=${t}&_sort=-_lastUpdated&_count=${r}&_getpagesoffset=${n}`;
|
|
14050
14053
|
return e && e.length > 0 ? `${s}&encounter=${encodeURIComponent(e.join(","))}` : s;
|
|
14051
14054
|
};
|
|
14052
|
-
async function
|
|
14055
|
+
async function bv() {
|
|
14053
14056
|
const t = await B(
|
|
14054
|
-
|
|
14057
|
+
mw
|
|
14055
14058
|
), e = Number(t.results?.[0]?.value);
|
|
14056
14059
|
return Number.isFinite(e) && e > 0 ? e : void 0;
|
|
14057
14060
|
}
|
|
14058
|
-
async function
|
|
14061
|
+
async function _v(t) {
|
|
14059
14062
|
return ((await wm(t, "custom:(setMembers:(uuid,display))"))?.setMembers ?? []).map((n) => ({
|
|
14060
14063
|
id: n.uuid,
|
|
14061
14064
|
label: n.display ?? ""
|
|
@@ -14078,17 +14081,17 @@ function vc(t) {
|
|
|
14078
14081
|
};
|
|
14079
14082
|
});
|
|
14080
14083
|
}
|
|
14081
|
-
async function
|
|
14084
|
+
async function gw(t, e) {
|
|
14082
14085
|
const r = _c(t, e);
|
|
14083
14086
|
return B(r);
|
|
14084
14087
|
}
|
|
14085
|
-
async function
|
|
14086
|
-
const n = ((await
|
|
14088
|
+
async function vv(t, e) {
|
|
14089
|
+
const n = ((await gw(t, e)).entry ?? []).filter(
|
|
14087
14090
|
(s) => !!s.resource
|
|
14088
14091
|
);
|
|
14089
14092
|
return vc(n);
|
|
14090
14093
|
}
|
|
14091
|
-
async function
|
|
14094
|
+
async function Tv(t, e, r = 10, n = 1) {
|
|
14092
14095
|
const s = (n - 1) * r, o = _c(
|
|
14093
14096
|
t,
|
|
14094
14097
|
e,
|
|
@@ -14128,7 +14131,7 @@ function Tc(t, e) {
|
|
|
14128
14131
|
}
|
|
14129
14132
|
]), r;
|
|
14130
14133
|
}
|
|
14131
|
-
function
|
|
14134
|
+
function yw(t, e, r, n, s, o) {
|
|
14132
14135
|
const a = {
|
|
14133
14136
|
resourceType: "Encounter",
|
|
14134
14137
|
status: "finished",
|
|
@@ -14173,16 +14176,16 @@ function gw(t, e, r, n, s, o) {
|
|
|
14173
14176
|
}
|
|
14174
14177
|
]), a;
|
|
14175
14178
|
}
|
|
14176
|
-
async function
|
|
14179
|
+
async function ww(t) {
|
|
14177
14180
|
const e = Tc(
|
|
14178
14181
|
t,
|
|
14179
14182
|
`Encounter/${t.encounterUuid}`
|
|
14180
14183
|
);
|
|
14181
|
-
return ge(
|
|
14184
|
+
return ge(pw, e);
|
|
14182
14185
|
}
|
|
14183
|
-
async function
|
|
14186
|
+
async function Sv(t) {
|
|
14184
14187
|
if (t.encounterUuid)
|
|
14185
|
-
return
|
|
14188
|
+
return ww({
|
|
14186
14189
|
...t,
|
|
14187
14190
|
encounterUuid: t.encounterUuid
|
|
14188
14191
|
});
|
|
@@ -14190,7 +14193,7 @@ async function vv(t) {
|
|
|
14190
14193
|
throw new Error(
|
|
14191
14194
|
"saveDocument requires either encounterUuid or createEncounterInVisit"
|
|
14192
14195
|
);
|
|
14193
|
-
const { visitUuid: e, encounterTypeUuid: r, encounterTypeDisplay: n } = t.createEncounterInVisit, s = `urn:uuid:${Qr()}`, o =
|
|
14196
|
+
const { visitUuid: e, encounterTypeUuid: r, encounterTypeDisplay: n } = t.createEncounterInVisit, s = `urn:uuid:${Qr()}`, o = yw(
|
|
14194
14197
|
t.patientUuid,
|
|
14195
14198
|
e,
|
|
14196
14199
|
r,
|
|
@@ -14203,27 +14206,27 @@ async function vv(t) {
|
|
|
14203
14206
|
]);
|
|
14204
14207
|
return ge(ss, i);
|
|
14205
14208
|
}
|
|
14206
|
-
const
|
|
14207
|
-
async function
|
|
14208
|
-
return (await B(
|
|
14209
|
+
const Ew = (t) => `${W}/location?operator=ALL&s=byTags&tags=${encodeURIComponent(t)}&v=custom:(uuid,display,childLocations:(uuid,display,retired))`, bw = (t) => `${ne}/Location?_tag=${encodeURIComponent(t)}`;
|
|
14210
|
+
async function Rv(t) {
|
|
14211
|
+
return (await B(Ew(t))).results ?? [];
|
|
14209
14212
|
}
|
|
14210
|
-
async function
|
|
14211
|
-
return await B(
|
|
14213
|
+
async function Ov(t) {
|
|
14214
|
+
return await B(bw(t));
|
|
14212
14215
|
}
|
|
14213
|
-
const
|
|
14214
|
-
let r = `${
|
|
14216
|
+
const _w = ne + "/Immunization", vw = (t, e) => {
|
|
14217
|
+
let r = `${_w}?patient=${t}&_sort=-date&_count=100`;
|
|
14215
14218
|
return e && (r += `&status=${e}`), r;
|
|
14216
14219
|
};
|
|
14217
|
-
async function
|
|
14218
|
-
return (await
|
|
14220
|
+
async function Av(t, e) {
|
|
14221
|
+
return (await Tw(t, e)).entry?.filter((n) => n.resource?.resourceType === "Immunization").map((n) => n.resource) ?? [];
|
|
14219
14222
|
}
|
|
14220
|
-
async function
|
|
14223
|
+
async function Tw(t, e) {
|
|
14221
14224
|
return B(
|
|
14222
|
-
|
|
14225
|
+
vw(t, e)
|
|
14223
14226
|
);
|
|
14224
14227
|
}
|
|
14225
|
-
const
|
|
14226
|
-
async function
|
|
14228
|
+
const Sw = W + "/bahmnicore/visitDocument/uploadDocument", Rw = "application";
|
|
14229
|
+
async function Ow(t) {
|
|
14227
14230
|
return new Promise((e, r) => {
|
|
14228
14231
|
const n = new FileReader();
|
|
14229
14232
|
n.onload = () => {
|
|
@@ -14236,7 +14239,7 @@ async function Rw(t) {
|
|
|
14236
14239
|
let a = o, i = "";
|
|
14237
14240
|
const c = o.lastIndexOf(".");
|
|
14238
14241
|
c !== -1 && (a = o.substring(0, c), i = o.substring(c + 1).toLowerCase());
|
|
14239
|
-
const u = t.type ? t.type.split("/")[0] :
|
|
14242
|
+
const u = t.type ? t.type.split("/")[0] : Rw;
|
|
14240
14243
|
e({
|
|
14241
14244
|
content: s,
|
|
14242
14245
|
fileName: a,
|
|
@@ -14248,8 +14251,8 @@ async function Rw(t) {
|
|
|
14248
14251
|
}, n.readAsDataURL(t);
|
|
14249
14252
|
});
|
|
14250
14253
|
}
|
|
14251
|
-
async function
|
|
14252
|
-
const n = await
|
|
14254
|
+
async function Pv(t, e, r) {
|
|
14255
|
+
const n = await Ow(t), s = {
|
|
14253
14256
|
content: n.content,
|
|
14254
14257
|
encounterTypeName: e,
|
|
14255
14258
|
fileName: n.fileName,
|
|
@@ -14257,29 +14260,29 @@ async function Ov(t, e, r) {
|
|
|
14257
14260
|
format: n.format,
|
|
14258
14261
|
patientUuid: r
|
|
14259
14262
|
};
|
|
14260
|
-
return ge(
|
|
14263
|
+
return ge(Sw, s);
|
|
14261
14264
|
}
|
|
14262
|
-
const
|
|
14265
|
+
const Aw = "/bahmni_config/openmrs/apps", Sc = "org.bahmni.home.dashboard", Pw = (t) => Array.isArray(t) ? t : Object.values(t), Nw = async (t = "home") => {
|
|
14263
14266
|
try {
|
|
14264
|
-
const e = `${
|
|
14267
|
+
const e = `${Aw}/${t}/v2/extension.json`, r = await fetch(e);
|
|
14265
14268
|
if (!r.ok)
|
|
14266
14269
|
throw new Error(`Failed to load base extensions: ${r.status}`);
|
|
14267
|
-
return
|
|
14270
|
+
return Pw(await r.json());
|
|
14268
14271
|
} catch (e) {
|
|
14269
14272
|
throw console.error("Error fetching module extensions:", e), e;
|
|
14270
14273
|
}
|
|
14271
|
-
},
|
|
14274
|
+
}, Iw = (t, e = Sc, r = "link") => t.filter((n) => {
|
|
14272
14275
|
const s = n.extensionPointId === e, o = r === "all" || n.type === r;
|
|
14273
14276
|
return s && o;
|
|
14274
|
-
}),
|
|
14277
|
+
}), $w = (t, e) => e === void 0 ? t : t.filter((r) => r.requiredPrivilege ? e.includes(r.requiredPrivilege) : !0), Dw = (t) => {
|
|
14275
14278
|
const e = navigator.onLine;
|
|
14276
14279
|
return t.filter((r) => !(r.exclusiveOnlineModule && !e || r.exclusiveOfflineModule && e));
|
|
14277
|
-
},
|
|
14278
|
-
const r = await
|
|
14279
|
-
return
|
|
14280
|
-
},
|
|
14281
|
-
|
|
14282
|
-
),
|
|
14280
|
+
}, Cw = (t) => [...t].sort((e, r) => (e.order ?? 0) - (r.order ?? 0)), Nv = async (t = Sc, e) => {
|
|
14281
|
+
const r = await Nw("home"), n = Iw(r, t), s = $w(n, e), o = Dw(s);
|
|
14282
|
+
return Cw(o);
|
|
14283
|
+
}, Lw = (t, e) => W + `/availableStocks?productUuid=${t}&locationUuid=${e}`, Iv = async (t, e) => await B(
|
|
14284
|
+
Lw(t, e)
|
|
14285
|
+
), xw = (t, e, r) => {
|
|
14283
14286
|
const n = t.find((o) => o.server === e);
|
|
14284
14287
|
if (!n)
|
|
14285
14288
|
throw new Error(`CDSS server "${e}" not found in configuration`);
|
|
@@ -14291,7 +14294,7 @@ const Ow = "/bahmni_config/openmrs/apps", Sc = "org.bahmni.home.dashboard", Aw =
|
|
|
14291
14294
|
`CDSS service "${r}" not found in server "${e}"`
|
|
14292
14295
|
);
|
|
14293
14296
|
return { serverConfig: n, serviceConfig: s };
|
|
14294
|
-
},
|
|
14297
|
+
}, kw = (t, e) => {
|
|
14295
14298
|
if (!e || e.length === 0)
|
|
14296
14299
|
return {};
|
|
14297
14300
|
const r = {};
|
|
@@ -14305,8 +14308,8 @@ const Ow = "/bahmni_config/openmrs/apps", Sc = "org.bahmni.home.dashboard", Aw =
|
|
|
14305
14308
|
entry: s
|
|
14306
14309
|
});
|
|
14307
14310
|
}), r;
|
|
14308
|
-
},
|
|
14309
|
-
const s =
|
|
14311
|
+
}, $v = async (t, e, r, n) => {
|
|
14312
|
+
const s = xw(t, e.server, e.service), { serverConfig: o, serviceConfig: a } = s, i = kw(
|
|
14310
14313
|
n,
|
|
14311
14314
|
a.contextResourceMap
|
|
14312
14315
|
), c = `${o.url}/${a.name}`, u = {
|
|
@@ -14323,7 +14326,7 @@ const Ow = "/bahmni_config/openmrs/apps", Sc = "org.bahmni.home.dashboard", Aw =
|
|
|
14323
14326
|
c,
|
|
14324
14327
|
u
|
|
14325
14328
|
)).cards || [];
|
|
14326
|
-
},
|
|
14329
|
+
}, Dv = (t, e) => {
|
|
14327
14330
|
const r = [];
|
|
14328
14331
|
return t.forEach((n) => {
|
|
14329
14332
|
!n.suggestions || n.suggestions.length === 0 || n.suggestions.forEach((s) => {
|
|
@@ -14340,53 +14343,53 @@ const Ow = "/bahmni_config/openmrs/apps", Sc = "org.bahmni.home.dashboard", Aw =
|
|
|
14340
14343
|
});
|
|
14341
14344
|
}), r;
|
|
14342
14345
|
};
|
|
14343
|
-
async function
|
|
14346
|
+
async function Cv() {
|
|
14344
14347
|
return B(`${Es}/templates`);
|
|
14345
14348
|
}
|
|
14346
|
-
async function
|
|
14349
|
+
async function Lv(t) {
|
|
14347
14350
|
return (await ge(
|
|
14348
14351
|
`${Es}/render`,
|
|
14349
14352
|
t
|
|
14350
14353
|
)).html;
|
|
14351
14354
|
}
|
|
14352
|
-
const
|
|
14355
|
+
const Mw = (t, e, r) => {
|
|
14353
14356
|
let s = ne + "/Task?_sort=-_lastUpdated";
|
|
14354
14357
|
return t && (s += `&subject:Patient=${t}`), e && (s += `&based-on=${e}`), r && r.length > 0 && (s += `&encounter=${r.join(",")}`), s;
|
|
14355
14358
|
};
|
|
14356
|
-
async function
|
|
14359
|
+
async function xv(t, e, r) {
|
|
14357
14360
|
return B(
|
|
14358
|
-
|
|
14361
|
+
Mw(t, e, r)
|
|
14359
14362
|
);
|
|
14360
14363
|
}
|
|
14361
|
-
const
|
|
14364
|
+
const kv = (t) => {
|
|
14362
14365
|
const e = /* @__PURE__ */ new Map();
|
|
14363
14366
|
for (const r of t) {
|
|
14364
14367
|
const n = e.get(r.extensionPointId) ?? [];
|
|
14365
14368
|
n.push(r), e.set(r.extensionPointId, n);
|
|
14366
14369
|
}
|
|
14367
14370
|
return e;
|
|
14368
|
-
},
|
|
14369
|
-
(r) => !r.requiredPrivileges || r.requiredPrivileges.length === 0 ||
|
|
14371
|
+
}, Mv = (t, e) => t.filter(
|
|
14372
|
+
(r) => !r.requiredPrivileges || r.requiredPrivileges.length === 0 || sw(e, r.requiredPrivileges)
|
|
14370
14373
|
);
|
|
14371
14374
|
export {
|
|
14372
|
-
|
|
14373
|
-
|
|
14375
|
+
bb as APPOINTMENT_IDENTIFIER_SYSTEM,
|
|
14376
|
+
Eb as APPOINTMENT_STATUSES,
|
|
14374
14377
|
es as AUDIT_LOG_EVENT_DETAILS,
|
|
14375
14378
|
Pm as AllergySeverity,
|
|
14376
14379
|
Am as AllergyStatus,
|
|
14377
14380
|
pf as AttributeFormat,
|
|
14378
14381
|
hf as AttributeInputType,
|
|
14379
14382
|
jl as BAHMNI_APP_BASE_PATH,
|
|
14380
|
-
|
|
14383
|
+
aE as BAHMNI_HOME_PATH,
|
|
14381
14384
|
_i as BAHMNI_USER_LOCATION_COOKIE,
|
|
14382
14385
|
Id as BIRTH_TIME_EXT_URL,
|
|
14383
14386
|
cs as CDSS_CHECK_EVENT,
|
|
14384
14387
|
us as CDSS_RESULTS_EVENT,
|
|
14385
|
-
|
|
14386
|
-
|
|
14388
|
+
yE as CONCEPT_DATATYPE_COMPLEX,
|
|
14389
|
+
gE as CONCEPT_DATATYPE_NUMERIC,
|
|
14387
14390
|
is as CONSULTATION_SAVED_EVENT,
|
|
14388
|
-
|
|
14389
|
-
|
|
14391
|
+
_E as DATETIME_REGEX_PATTERN,
|
|
14392
|
+
bE as DATE_REGEX_PATTERN,
|
|
14390
14393
|
tc as DEFAULT_DATE_FORMAT,
|
|
14391
14394
|
nm as DEFAULT_DATE_FORMAT_STORAGE_KEY,
|
|
14392
14395
|
sm as DEFAULT_TIME_FORMAT,
|
|
@@ -14395,246 +14398,247 @@ export {
|
|
|
14395
14398
|
bs as FHIR_ENCOUNTER_CLASS_CODE_SYSTEM,
|
|
14396
14399
|
_s as FHIR_ENCOUNTER_TAG_SYSTEM,
|
|
14397
14400
|
$i as FHIR_ENCOUNTER_TYPE_CODE_SYSTEM,
|
|
14398
|
-
|
|
14399
|
-
|
|
14400
|
-
|
|
14401
|
-
|
|
14402
|
-
|
|
14403
|
-
|
|
14401
|
+
fE as FHIR_LAB_ORDER_CONCEPT_TYPE_EXTENSION_URL,
|
|
14402
|
+
hE as FHIR_OBSERVATION_FORM_NAMESPACE_PATH_URL,
|
|
14403
|
+
pE as FHIR_OBSERVATION_INTERPRETATION_SYSTEM,
|
|
14404
|
+
wE as FHIR_OBSERVATION_STATUS_FINAL,
|
|
14405
|
+
mE as FHIR_OBSERVATION_VALUE_ATTACHMENT_URL,
|
|
14406
|
+
EE as FHIR_RESOURCE_TYPE_OBSERVATION,
|
|
14404
14407
|
Dd as HL7_CONDITION_CATEGORY_CODE_SYSTEM,
|
|
14405
14408
|
vs as HL7_CONDITION_CATEGORY_CONDITION_CODE,
|
|
14406
14409
|
Di as HL7_CONDITION_CATEGORY_DIAGNOSIS_CODE,
|
|
14407
14410
|
$d as HL7_CONDITION_CLINICAL_STATUS_CODE_SYSTEM,
|
|
14408
|
-
|
|
14409
|
-
|
|
14410
|
-
|
|
14411
|
+
dE as HL7_CONDITION_VERIFICATION_STATUS_CODE_SYSTEM,
|
|
14412
|
+
vE as INTERPRETATION_TO_CODE,
|
|
14413
|
+
Cb as ISO_DATE_FORMAT,
|
|
14411
14414
|
wi as LOGIN_PATH,
|
|
14412
|
-
|
|
14413
|
-
|
|
14414
|
-
|
|
14415
|
-
|
|
14416
|
-
|
|
14415
|
+
q_ as MATCH_REASON_MESSAGES,
|
|
14416
|
+
HE as MAX_NAME_LENGTH,
|
|
14417
|
+
VE as MAX_PATIENT_AGE_YEARS,
|
|
14418
|
+
BE as MAX_PHONE_NUMBER_LENGTH,
|
|
14419
|
+
c_ as MEDICATIONS_INPUT_CONTROL_KEY,
|
|
14417
14420
|
Ze as MODULE_LABELS,
|
|
14418
14421
|
Be as MedicationStatus,
|
|
14419
14422
|
ne as OPENMRS_FHIR_R4,
|
|
14420
14423
|
W as OPENMRS_REST_V1,
|
|
14421
|
-
|
|
14422
|
-
|
|
14423
|
-
|
|
14424
|
-
|
|
14424
|
+
S_ as ORDER_TYPE_QUERY_KEY,
|
|
14425
|
+
T_ as PENDING_REPORT_STATUSES,
|
|
14426
|
+
v_ as PROCESSED_REPORT_STATUSES,
|
|
14427
|
+
$_ as USER_PINNED_PREFERENCE_URL,
|
|
14425
14428
|
Dm as buildEncounterResource,
|
|
14426
|
-
|
|
14427
|
-
|
|
14428
|
-
|
|
14429
|
+
xb as calculateAge,
|
|
14430
|
+
jb as calculateEndDate,
|
|
14431
|
+
Mb as calculateOnsetDate,
|
|
14429
14432
|
Li as camelToScreamingSnakeCase,
|
|
14430
|
-
|
|
14431
|
-
|
|
14432
|
-
|
|
14433
|
-
|
|
14434
|
-
|
|
14435
|
-
|
|
14433
|
+
V_ as canResumeOwnInSessionEncounter,
|
|
14434
|
+
RE as capitalize,
|
|
14435
|
+
gb as checkIfActiveVisitExists,
|
|
14436
|
+
Rb as checkInAppointment,
|
|
14437
|
+
Lb as computeAgeDetails,
|
|
14438
|
+
ov as convertImmutableToPlainObject,
|
|
14436
14439
|
cm as convertTo24HourFormat,
|
|
14437
|
-
|
|
14438
|
-
|
|
14440
|
+
LE as convertToSentenceCase,
|
|
14441
|
+
Db as createAppointmentUnavailability,
|
|
14439
14442
|
yt as createBundleEntry,
|
|
14440
|
-
|
|
14443
|
+
ww as createDocumentReference,
|
|
14441
14444
|
ns as createEncounterBundle,
|
|
14442
14445
|
km as createFhirEncounter,
|
|
14443
|
-
|
|
14444
|
-
|
|
14445
|
-
|
|
14446
|
-
|
|
14446
|
+
eb as createFhirPatient,
|
|
14447
|
+
XE as createPatient,
|
|
14448
|
+
yb as createVisitForPatient,
|
|
14449
|
+
wb as createVisitWithFhirR4,
|
|
14447
14450
|
Ti as del,
|
|
14448
|
-
|
|
14451
|
+
Pb as deleteAppointmentService,
|
|
14449
14452
|
Cd as deleteCookie,
|
|
14450
14453
|
mf as dispatchAuditEvent,
|
|
14451
|
-
|
|
14452
|
-
|
|
14453
|
-
|
|
14454
|
-
|
|
14455
|
-
|
|
14456
|
-
|
|
14457
|
-
|
|
14458
|
-
|
|
14459
|
-
|
|
14460
|
-
|
|
14461
|
-
|
|
14462
|
-
|
|
14463
|
-
|
|
14464
|
-
|
|
14465
|
-
|
|
14466
|
-
|
|
14467
|
-
|
|
14468
|
-
|
|
14469
|
-
|
|
14470
|
-
|
|
14471
|
-
|
|
14472
|
-
|
|
14473
|
-
|
|
14474
|
-
|
|
14475
|
-
|
|
14476
|
-
|
|
14477
|
-
|
|
14478
|
-
|
|
14479
|
-
|
|
14480
|
-
|
|
14454
|
+
gv as dispatchCDSSCheck,
|
|
14455
|
+
yv as dispatchCDSSResults,
|
|
14456
|
+
hv as dispatchConsultationSaved,
|
|
14457
|
+
Vb as doDateRangesOverlap,
|
|
14458
|
+
pv as extractAttributes,
|
|
14459
|
+
av as extractNotesFromFormData,
|
|
14460
|
+
M_ as fetchAllProviders,
|
|
14461
|
+
Kb as fetchAndFormatAllergenConcepts,
|
|
14462
|
+
X_ as fetchFormMetadata,
|
|
14463
|
+
Z_ as fetchFormUuidByObservationDate,
|
|
14464
|
+
l_ as fetchMedicationOrdersMetadata,
|
|
14465
|
+
Nw as fetchModuleExtensions,
|
|
14466
|
+
Q_ as fetchObservationForms,
|
|
14467
|
+
GE as fetchPatientPhotoFromUrl,
|
|
14468
|
+
y_ as fetchQualityAssessment,
|
|
14469
|
+
Wb as fetchReactionConcepts,
|
|
14470
|
+
Dw as filterByOnlineStatus,
|
|
14471
|
+
$w as filterByPrivilege,
|
|
14472
|
+
Dv as filterCdsCardsForItems,
|
|
14473
|
+
Mv as filterExtensionsByPrivileges,
|
|
14474
|
+
IE as filterReplacementEntries,
|
|
14475
|
+
F_ as findActiveEncounterInSession,
|
|
14476
|
+
kE as formatCountry,
|
|
14477
|
+
Ub as formatDateDistance,
|
|
14478
|
+
tv as formatDateForControl,
|
|
14479
|
+
kb as formatDateTime,
|
|
14480
|
+
xE as formatGender,
|
|
14481
|
+
$E as formatUrl,
|
|
14482
|
+
SE as generateId,
|
|
14483
|
+
tb as generateIdentifier,
|
|
14481
14484
|
Qr as generateUUID,
|
|
14482
14485
|
B as get,
|
|
14483
14486
|
mn as getActiveVisit,
|
|
14484
|
-
|
|
14487
|
+
t_ as getActiveVisitAtLoginLocation,
|
|
14485
14488
|
Rf as getActiveVisitByPatient,
|
|
14486
|
-
|
|
14487
|
-
|
|
14489
|
+
sb as getAddressHierarchyEntries,
|
|
14490
|
+
Ab as getAllAppointmentServices,
|
|
14488
14491
|
Rm as getAllergies,
|
|
14489
|
-
|
|
14490
|
-
|
|
14491
|
-
|
|
14492
|
-
|
|
14493
|
-
|
|
14494
|
-
|
|
14495
|
-
|
|
14496
|
-
|
|
14497
|
-
|
|
14492
|
+
Ob as getAppointmentById,
|
|
14493
|
+
$b as getAppointmentUnavailabilities,
|
|
14494
|
+
qE as getAvailableLocations,
|
|
14495
|
+
Iv as getAvailableStocks,
|
|
14496
|
+
O_ as getCategoryUuidFromOrderTypes,
|
|
14497
|
+
Gb as getConceptById,
|
|
14498
|
+
s_ as getConditionPage,
|
|
14499
|
+
n_ as getConditions,
|
|
14500
|
+
N_ as getConfig,
|
|
14498
14501
|
Ci as getCookieByName,
|
|
14499
|
-
|
|
14500
|
-
|
|
14501
|
-
|
|
14502
|
-
|
|
14503
|
-
|
|
14504
|
-
|
|
14505
|
-
|
|
14506
|
-
|
|
14507
|
-
|
|
14508
|
-
|
|
14509
|
-
|
|
14510
|
-
|
|
14511
|
-
|
|
14502
|
+
k_ as getCurrentProvider,
|
|
14503
|
+
fv as getCurrentStateName,
|
|
14504
|
+
ME as getCurrentUser,
|
|
14505
|
+
J_ as getCurrentUserPrivileges,
|
|
14506
|
+
UE as getDefaultDateFormat,
|
|
14507
|
+
i_ as getDiagnosesPage,
|
|
14508
|
+
b_ as getDiagnosticReportBundle,
|
|
14509
|
+
E_ as getDiagnosticReports,
|
|
14510
|
+
Tv as getDocumentReferencePage,
|
|
14511
|
+
gw as getDocumentReferences,
|
|
14512
|
+
_v as getDocumentTypes,
|
|
14513
|
+
bv as getDocumentUploadMaxSizeMb,
|
|
14514
|
+
Zb as getEncounterByUuid,
|
|
14512
14515
|
mc as getEncounterSessionDuration,
|
|
14513
14516
|
Xy as getEncounterSessionSnapshot,
|
|
14514
14517
|
xm as getEncounterTypeByName,
|
|
14515
|
-
|
|
14516
|
-
|
|
14517
|
-
|
|
14518
|
-
|
|
14519
|
-
|
|
14520
|
-
|
|
14521
|
-
|
|
14522
|
-
|
|
14518
|
+
G_ as getEncountersAndVisitsForEOC,
|
|
14519
|
+
K_ as getEpisodeOfCare,
|
|
14520
|
+
P_ as getExistingServiceRequestsForAllCategories,
|
|
14521
|
+
Iw as getExtensionsByPoint,
|
|
14522
|
+
Ov as getFHIRLocationsByTag,
|
|
14523
|
+
R_ as getFlattenedInvestigations,
|
|
14524
|
+
Fb as getFormattedAge,
|
|
14525
|
+
Jb as getFormattedAllergies,
|
|
14526
|
+
vv as getFormattedDocumentReferences,
|
|
14523
14527
|
Yr as getFormattedError,
|
|
14524
|
-
|
|
14525
|
-
|
|
14526
|
-
|
|
14527
|
-
|
|
14528
|
-
|
|
14529
|
-
|
|
14530
|
-
|
|
14531
|
-
|
|
14532
|
-
|
|
14533
|
-
|
|
14528
|
+
YE as getFormattedPatientById,
|
|
14529
|
+
nb as getGenders,
|
|
14530
|
+
QE as getIdentifierData,
|
|
14531
|
+
JE as getIdentifierTypes,
|
|
14532
|
+
ub as getInputTypeForFormat,
|
|
14533
|
+
w_ as getLabInvestigationsBundle,
|
|
14534
|
+
Rv as getLocationByTag,
|
|
14535
|
+
p_ as getMedicationByUuid,
|
|
14536
|
+
L_ as getObservationsBundleByEncounterUuid,
|
|
14537
|
+
A_ as getOrderTypeNames,
|
|
14534
14538
|
Ps as getOrderTypes,
|
|
14535
|
-
|
|
14536
|
-
|
|
14537
|
-
|
|
14539
|
+
ob as getOrderedAddressHierarchyLevels,
|
|
14540
|
+
Tb as getPastAppointments,
|
|
14541
|
+
Ib as getPastAppointmentsPage,
|
|
14538
14542
|
of as getPatientById,
|
|
14539
|
-
|
|
14540
|
-
|
|
14541
|
-
|
|
14542
|
-
|
|
14543
|
+
a_ as getPatientDiagnoses,
|
|
14544
|
+
Xb as getPatientEncounters,
|
|
14545
|
+
ev as getPatientFormData,
|
|
14546
|
+
Av as getPatientImmunizations,
|
|
14543
14547
|
tg as getPatientMedicationBundle,
|
|
14544
|
-
|
|
14545
|
-
|
|
14548
|
+
u_ as getPatientMedications,
|
|
14549
|
+
C_ as getPatientObservations,
|
|
14546
14550
|
By as getPatientObservationsBundle,
|
|
14547
|
-
|
|
14548
|
-
|
|
14549
|
-
|
|
14550
|
-
|
|
14551
|
-
|
|
14552
|
-
|
|
14553
|
-
|
|
14554
|
-
|
|
14551
|
+
D_ as getPatientObservationsWithEncounterBundle,
|
|
14552
|
+
ab as getPatientProfile,
|
|
14553
|
+
cv as getPatientPrograms,
|
|
14554
|
+
uv as getPatientProgramsPage,
|
|
14555
|
+
h_ as getPatientRadiologyInvestigationBundle,
|
|
14556
|
+
m_ as getPatientRadiologyInvestigationBundleWithImagingStudy,
|
|
14557
|
+
g_ as getPatientRadiologyInvestigations,
|
|
14558
|
+
cb as getPersonAttributeTypes,
|
|
14555
14559
|
ff as getPrimaryIdentifierType,
|
|
14556
|
-
|
|
14557
|
-
|
|
14558
|
-
|
|
14559
|
-
|
|
14560
|
+
PE as getPriorityByOrder,
|
|
14561
|
+
lv as getProgramByUUID,
|
|
14562
|
+
U_ as getProviderLoginLocations,
|
|
14563
|
+
ib as getRelationshipTypes,
|
|
14560
14564
|
Jt as getServiceRequests,
|
|
14561
|
-
|
|
14562
|
-
|
|
14563
|
-
|
|
14564
|
-
|
|
14565
|
-
|
|
14566
|
-
|
|
14565
|
+
xv as getTasks,
|
|
14566
|
+
Cv as getTemplates,
|
|
14567
|
+
Bb as getTimeInMinutes,
|
|
14568
|
+
qb as getTodayDate,
|
|
14569
|
+
vb as getUpcomingAppointments,
|
|
14570
|
+
Nb as getUpcomingAppointmentsPage,
|
|
14567
14571
|
Rt as getUserLoginLocation,
|
|
14568
14572
|
an as getUserPreferredLocale,
|
|
14569
|
-
|
|
14570
|
-
|
|
14571
|
-
|
|
14573
|
+
f_ as getVaccinations,
|
|
14574
|
+
DE as getValueType,
|
|
14575
|
+
Nv as getVisibleModules,
|
|
14572
14576
|
Mi as getVisitLocationUUID,
|
|
14573
|
-
|
|
14577
|
+
mb as getVisitTypes,
|
|
14574
14578
|
Lm as getVisits,
|
|
14575
|
-
|
|
14576
|
-
|
|
14577
|
-
|
|
14578
|
-
|
|
14579
|
-
|
|
14580
|
-
|
|
14581
|
-
|
|
14582
|
-
|
|
14583
|
-
|
|
14584
|
-
|
|
14585
|
-
|
|
14586
|
-
|
|
14587
|
-
|
|
14588
|
-
|
|
14589
|
-
|
|
14590
|
-
|
|
14591
|
-
|
|
14592
|
-
|
|
14593
|
-
|
|
14594
|
-
|
|
14595
|
-
|
|
14579
|
+
iv as getVitalFlowSheetData,
|
|
14580
|
+
NE as groupByDate,
|
|
14581
|
+
kv as groupExtensionsByPoint,
|
|
14582
|
+
x_ as groupObservationsByEncounter,
|
|
14583
|
+
sw as hasPrivilege,
|
|
14584
|
+
uE as initAppI18n,
|
|
14585
|
+
W_ as initializeAuditListener,
|
|
14586
|
+
$v as invokeCDSSRule,
|
|
14587
|
+
lb as isBooleanFormat,
|
|
14588
|
+
db as isConceptFormat,
|
|
14589
|
+
pb as isDateFormat,
|
|
14590
|
+
fb as isNumberFormat,
|
|
14591
|
+
AE as isStringEmpty,
|
|
14592
|
+
hb as isTextFormat,
|
|
14593
|
+
nw as logAuditEvent,
|
|
14594
|
+
I_ as logout,
|
|
14595
|
+
Qb as mapAllergyToInputEntry,
|
|
14596
|
+
zE as mapGenderFromFhir,
|
|
14597
|
+
o_ as markConditionAsInactive,
|
|
14598
|
+
cE as normalizeTranslationKey,
|
|
14599
|
+
zb as notificationService,
|
|
14596
14600
|
Ld as parseQueryParams,
|
|
14597
|
-
|
|
14601
|
+
iE as patch,
|
|
14598
14602
|
ge as post,
|
|
14599
14603
|
vi as put,
|
|
14600
|
-
|
|
14601
|
-
|
|
14602
|
-
|
|
14603
|
-
|
|
14604
|
-
|
|
14605
|
-
|
|
14606
|
-
|
|
14607
|
-
|
|
14604
|
+
TE as refreshQueries,
|
|
14605
|
+
Lv as renderAsHtml,
|
|
14606
|
+
z_ as resetEncounterSession,
|
|
14607
|
+
CE as resolveComboBoxItems,
|
|
14608
|
+
j_ as resolveEncounterMatchDecision,
|
|
14609
|
+
Sv as saveDocument,
|
|
14610
|
+
FE as saveUserLocation,
|
|
14611
|
+
_b as searchAppointmentsByAttribute,
|
|
14608
14612
|
wm as searchConceptByName,
|
|
14609
|
-
|
|
14613
|
+
Yb as searchConcepts,
|
|
14610
14614
|
os as searchEncounters,
|
|
14611
14615
|
jr as searchFHIRConcepts,
|
|
14612
14616
|
ym as searchFHIRConceptsByName,
|
|
14613
|
-
|
|
14614
|
-
|
|
14615
|
-
|
|
14616
|
-
|
|
14617
|
-
|
|
14618
|
-
|
|
14619
|
-
|
|
14620
|
-
|
|
14621
|
-
|
|
14617
|
+
d_ as searchMedications,
|
|
14618
|
+
WE as searchPatientByCustomAttribute,
|
|
14619
|
+
KE as searchPatientByNameOrId,
|
|
14620
|
+
OE as setCookie,
|
|
14621
|
+
H_ as setEncounterSessionDecision,
|
|
14622
|
+
B_ as setEncounterSessionLoading,
|
|
14623
|
+
r_ as shouldEnableEncounterFilter,
|
|
14624
|
+
Hb as sortByDate,
|
|
14625
|
+
Cw as sortByOrder,
|
|
14622
14626
|
Qy as subscribeEncounterSession,
|
|
14623
|
-
|
|
14624
|
-
|
|
14625
|
-
|
|
14626
|
-
|
|
14627
|
-
|
|
14628
|
-
|
|
14629
|
-
|
|
14630
|
-
|
|
14631
|
-
|
|
14632
|
-
|
|
14633
|
-
|
|
14634
|
-
|
|
14635
|
-
|
|
14636
|
-
|
|
14637
|
-
|
|
14638
|
-
|
|
14639
|
-
|
|
14627
|
+
sv as transformContainerObservationsToForm2Observations,
|
|
14628
|
+
rv as transformFormDataToObservations,
|
|
14629
|
+
nv as transformObservationsToFormData,
|
|
14630
|
+
Sb as updateAppointmentStatus,
|
|
14631
|
+
__ as updateDiagnosticReportBundle,
|
|
14632
|
+
e_ as updateFhirEncounter,
|
|
14633
|
+
rb as updateFhirPatient,
|
|
14634
|
+
ZE as updatePatient,
|
|
14635
|
+
dv as updateProgramState,
|
|
14636
|
+
jE as updateSessionLocation,
|
|
14637
|
+
Pv as uploadDocument,
|
|
14638
|
+
wv as useCDSSCheckListener,
|
|
14639
|
+
Ev as useCDSSResultsListener,
|
|
14640
|
+
lE as useCamera,
|
|
14641
|
+
Y_ as useEncounterSessionStore,
|
|
14642
|
+
mv as useSubscribeConsultationSaved,
|
|
14643
|
+
Fv as useTranslation
|
|
14640
14644
|
};
|