@bahmni/services 0.0.1-dev.328 → 0.0.1-dev.329
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 +408 -390
- package/dist/observationFormsService/index.d.ts +1 -1
- package/dist/observationFormsService/index.d.ts.map +1 -1
- package/dist/observationFormsService/observationFormsTransformer.d.ts +18 -0
- package/dist/observationFormsService/observationFormsTransformer.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { initReactI18next as nc } from "react-i18next";
|
|
2
|
-
import { useTranslation as
|
|
2
|
+
import { useTranslation as B_ } from "react-i18next";
|
|
3
3
|
import { useRef as xt, useCallback as yn, useEffect as rt, useSyncExternalStore as sc } from "react";
|
|
4
4
|
function Da(t, e) {
|
|
5
5
|
return function() {
|
|
@@ -2089,23 +2089,23 @@ pe.getAdapter = Ja.getAdapter;
|
|
|
2089
2089
|
pe.HttpStatusCode = Yn;
|
|
2090
2090
|
pe.default = pe;
|
|
2091
2091
|
const {
|
|
2092
|
-
Axios:
|
|
2093
|
-
AxiosError:
|
|
2094
|
-
CanceledError:
|
|
2095
|
-
isCancel:
|
|
2096
|
-
CancelToken:
|
|
2097
|
-
VERSION:
|
|
2098
|
-
all:
|
|
2099
|
-
Cancel:
|
|
2100
|
-
isAxiosError:
|
|
2101
|
-
spread:
|
|
2102
|
-
toFormData:
|
|
2103
|
-
AxiosHeaders:
|
|
2104
|
-
HttpStatusCode:
|
|
2105
|
-
formToJSON:
|
|
2106
|
-
getAdapter:
|
|
2107
|
-
mergeConfig:
|
|
2108
|
-
create:
|
|
2092
|
+
Axios: ew,
|
|
2093
|
+
AxiosError: tw,
|
|
2094
|
+
CanceledError: rw,
|
|
2095
|
+
isCancel: nw,
|
|
2096
|
+
CancelToken: sw,
|
|
2097
|
+
VERSION: ow,
|
|
2098
|
+
all: aw,
|
|
2099
|
+
Cancel: iw,
|
|
2100
|
+
isAxiosError: cw,
|
|
2101
|
+
spread: uw,
|
|
2102
|
+
toFormData: lw,
|
|
2103
|
+
AxiosHeaders: dw,
|
|
2104
|
+
HttpStatusCode: fw,
|
|
2105
|
+
formToJSON: pw,
|
|
2106
|
+
getAdapter: hw,
|
|
2107
|
+
mergeConfig: mw,
|
|
2108
|
+
create: gw
|
|
2109
2109
|
} = pe, Yu = (t) => typeof t == "object" && t !== null && "resourceType" in t && t.resourceType === "OperationOutcome", Gu = (t) => {
|
|
2110
2110
|
if (!t.issue || !Array.isArray(t.issue))
|
|
2111
2111
|
return null;
|
|
@@ -2270,7 +2270,7 @@ function ol(t, e) {
|
|
|
2270
2270
|
return sl(h, c, u, l);
|
|
2271
2271
|
});
|
|
2272
2272
|
}
|
|
2273
|
-
const al = process.env.PUBLIC_URL ?? "/", oe = "/openmrs/ws/fhir2/R4", K = "/openmrs/ws/rest/v1", ei = "bahmni.user", il = "/bahmni-v2",
|
|
2273
|
+
const al = process.env.PUBLIC_URL ?? "/", oe = "/openmrs/ws/fhir2/R4", K = "/openmrs/ws/rest/v1", ei = "bahmni.user", il = "/bahmni-v2", yw = il + "/home", us = K + "/session", ls = `${K}/bahmnicore/template/api`, Gn = (t) => {
|
|
2274
2274
|
if (typeof t == "string")
|
|
2275
2275
|
return ol(t);
|
|
2276
2276
|
if (Array.isArray(t))
|
|
@@ -2310,7 +2310,7 @@ Ge.interceptors.response.use(
|
|
|
2310
2310
|
return r.startsWith("ERROR_") || /^[A-Z_]+$/.test(r) ? Promise.reject(new Error(r)) : Promise.reject(`${e}: ${r}`);
|
|
2311
2311
|
}
|
|
2312
2312
|
);
|
|
2313
|
-
const H = async (t, e) => (await Ge.get(t, e)).data, Ee = async (t, e) => (await Ge.post(t, e)).data, ds = async (t, e) => (await Ge.put(t, e)).data,
|
|
2313
|
+
const H = async (t, e) => (await Ge.get(t, e)).data, Ee = async (t, e) => (await Ge.post(t, e)).data, ds = async (t, e) => (await Ge.put(t, e)).data, ww = async (t, e) => (await Ge.patch(t, e)).data, ti = async (t) => (await Ge.delete(t)).data, W = (t) => typeof t == "string", St = () => {
|
|
2314
2314
|
let t, e;
|
|
2315
2315
|
const r = new Promise((n, s) => {
|
|
2316
2316
|
t = n, e = s;
|
|
@@ -4008,7 +4008,7 @@ const Bl = "en", ii = "NG_TRANSLATE_LANG_KEY", zl = (t, e) => al + `${t}/locales
|
|
|
4008
4008
|
}, t !== "en" && (r.en = {
|
|
4009
4009
|
[e]: await ao(e, "en")
|
|
4010
4010
|
}), r;
|
|
4011
|
-
},
|
|
4011
|
+
}, Ew = (t, e) => {
|
|
4012
4012
|
const r = t.toUpperCase(), n = e.toUpperCase().replace(/\s+/g, "_").replace(/[^A-Z0-9_]/g, "");
|
|
4013
4013
|
return `${r}_${n}`;
|
|
4014
4014
|
}, Kl = (t, e) => {
|
|
@@ -4025,7 +4025,7 @@ const Bl = "en", ii = "NG_TRANSLATE_LANG_KEY", zl = (t, e) => al + `${t}/locales
|
|
|
4025
4025
|
labels: n.labels ?? {},
|
|
4026
4026
|
concepts: n.concepts ?? {}
|
|
4027
4027
|
};
|
|
4028
|
-
},
|
|
4028
|
+
}, bw = async (t) => {
|
|
4029
4029
|
const e = tn(), r = await Gl(e, t);
|
|
4030
4030
|
return le.isInitialized ? (Object.entries(r).forEach(([n, s]) => {
|
|
4031
4031
|
Object.entries(s).forEach(([o, a]) => {
|
|
@@ -4048,7 +4048,7 @@ const Bl = "en", ii = "NG_TRANSLATE_LANG_KEY", zl = (t, e) => al + `${t}/locales
|
|
|
4048
4048
|
}
|
|
4049
4049
|
}), le;
|
|
4050
4050
|
};
|
|
4051
|
-
function
|
|
4051
|
+
function _w() {
|
|
4052
4052
|
const t = xt(null), e = xt(null), r = yn(async () => {
|
|
4053
4053
|
e.current && (e.current.getTracks().forEach((a) => a.stop()), e.current = null);
|
|
4054
4054
|
const o = await navigator.mediaDevices.getUserMedia({
|
|
@@ -4088,13 +4088,13 @@ function Ew() {
|
|
|
4088
4088
|
);
|
|
4089
4089
|
return rt(() => () => n(), [n]), { videoRef: t, start: r, stop: n, capture: s };
|
|
4090
4090
|
}
|
|
4091
|
-
const Wl = "bahmni.enableAuditLog", ci = (t) => `${K}/bahmnicore/sql/globalproperty?property=${t}`, Jl = "http://hl7.org/fhir/StructureDefinition/patient-birthTime",
|
|
4091
|
+
const Wl = "bahmni.enableAuditLog", ci = (t) => `${K}/bahmnicore/sql/globalproperty?property=${t}`, Jl = "http://hl7.org/fhir/StructureDefinition/patient-birthTime", vw = "http://fhir.openmrs.org/code-system/encounter-type", Tw = "http://terminology.hl7.org/CodeSystem/v3-ActCode", Rw = "http://fhir.openmrs.org/ext/encounter-tag", ui = "problem-list-item", Sw = "http://terminology.hl7.org/CodeSystem/condition-ver-status", li = "encounter-diagnosis", Ql = "http://terminology.hl7.org/CodeSystem/condition-clinical", Ow = "http://terminology.hl7.org/CodeSystem/condition-category", Aw = "http://fhir.bahmni.org/ext/lab-order-concept-type", Nw = "http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation", Pw = "http://fhir.bahmni.org/ext/observation/form-namespace-path", Iw = "http://fhir.bahmni.org/ext/observation/obs-value-attachment", $w = "Numeric", Dw = "Complex", Cw = "final", Lw = "Observation", xw = /^\d{4}-\d{2}-\d{2}/, Xl = /^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}/, kw = {
|
|
4092
4092
|
ABNORMAL: { code: "A", display: "Abnormal" },
|
|
4093
4093
|
NORMAL: { code: "N", display: "Normal" }
|
|
4094
|
-
},
|
|
4094
|
+
}, Mw = async (t, e, r) => {
|
|
4095
4095
|
const { exact: n = !0, refetchActiveNow: s = !0 } = r ?? {};
|
|
4096
4096
|
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" });
|
|
4097
|
-
},
|
|
4097
|
+
}, Uw = () => Math.random().toString(36).substring(2, 9), Zl = () => {
|
|
4098
4098
|
if (typeof globalThis < "u" && globalThis.crypto?.randomUUID)
|
|
4099
4099
|
return globalThis.crypto.randomUUID();
|
|
4100
4100
|
const t = globalThis.crypto || globalThis.msCrypto;
|
|
@@ -4106,7 +4106,7 @@ const Wl = "bahmni.enableAuditLog", ci = (t) => `${K}/bahmnicore/sql/globalprope
|
|
|
4106
4106
|
"Crypto API (crypto.randomUUID or crypto.getRandomValues) is not available. UUID generation requires cryptographically secure random number generation."
|
|
4107
4107
|
);
|
|
4108
4108
|
};
|
|
4109
|
-
function
|
|
4109
|
+
function qw(t, e = " -") {
|
|
4110
4110
|
return t ? t.toLowerCase().split(new RegExp(`[${e}]+`)).map((n) => n.charAt(0).toUpperCase() + n.slice(1)).join(" ") : "";
|
|
4111
4111
|
}
|
|
4112
4112
|
function di(t) {
|
|
@@ -4121,10 +4121,10 @@ function di(t) {
|
|
|
4121
4121
|
function ed(t) {
|
|
4122
4122
|
document.cookie = `${t}=; expires=Thu, 01 Jan 1970 00:00:00 UTC; path=/;`;
|
|
4123
4123
|
}
|
|
4124
|
-
function
|
|
4124
|
+
function Fw(t, e) {
|
|
4125
4125
|
document.cookie = `${t}=${e}; path=/;`;
|
|
4126
4126
|
}
|
|
4127
|
-
const
|
|
4127
|
+
const jw = (t) => !t || t.trim().length === 0, Vw = (t, e) => {
|
|
4128
4128
|
if (!t || !e || e.length === 0)
|
|
4129
4129
|
return 999;
|
|
4130
4130
|
const r = e.findIndex(
|
|
@@ -4132,7 +4132,7 @@ const qw = (t) => !t || t.trim().length === 0, Fw = (t, e) => {
|
|
|
4132
4132
|
);
|
|
4133
4133
|
return r === -1 ? 999 : r;
|
|
4134
4134
|
};
|
|
4135
|
-
function
|
|
4135
|
+
function Hw(t, e) {
|
|
4136
4136
|
if (!t || t.length === 0)
|
|
4137
4137
|
return [];
|
|
4138
4138
|
const r = /* @__PURE__ */ new Map();
|
|
@@ -4144,7 +4144,7 @@ function jw(t, e) {
|
|
|
4144
4144
|
items: s
|
|
4145
4145
|
}));
|
|
4146
4146
|
}
|
|
4147
|
-
function
|
|
4147
|
+
function Bw(t, e, r) {
|
|
4148
4148
|
if (!t || t.length === 0)
|
|
4149
4149
|
return [];
|
|
4150
4150
|
const n = /* @__PURE__ */ new Set(), s = /* @__PURE__ */ new Set();
|
|
@@ -4165,7 +4165,7 @@ function td(t) {
|
|
|
4165
4165
|
o[n(a[1])] = n(a[2]);
|
|
4166
4166
|
return o;
|
|
4167
4167
|
}
|
|
4168
|
-
function
|
|
4168
|
+
function zw(t, e, r) {
|
|
4169
4169
|
const n = /{{([^}]*)}}/g, s = t.match(n);
|
|
4170
4170
|
let o = t;
|
|
4171
4171
|
const a = r ?? !1, i = a ? td() : {};
|
|
@@ -4178,7 +4178,7 @@ function Hw(t, e, r) {
|
|
|
4178
4178
|
const rd = (t) => new Promise((e, r) => {
|
|
4179
4179
|
const n = new FileReader();
|
|
4180
4180
|
n.onloadend = () => e(n.result), n.onerror = r, n.readAsDataURL(t);
|
|
4181
|
-
}),
|
|
4181
|
+
}), Yw = (t) => {
|
|
4182
4182
|
if (typeof t == "number" && !isNaN(t))
|
|
4183
4183
|
return "number";
|
|
4184
4184
|
if (typeof t != "string")
|
|
@@ -4186,17 +4186,17 @@ const rd = (t) => new Promise((e, r) => {
|
|
|
4186
4186
|
const e = t.toLowerCase();
|
|
4187
4187
|
return e.endsWith(".pdf") ? "PDF" : [".png", ".jpg", ".jpeg", ".gif", ".bmp", ".svg"].some((s) => e.endsWith(s)) ? "Image" : [".mp4", ".ogg", ".webm", ".mkv", ".flv"].some((s) => e.endsWith(s)) ? "Video" : typeof t == "string" ? "string" : "object";
|
|
4188
4188
|
};
|
|
4189
|
-
function
|
|
4189
|
+
function Gw(t) {
|
|
4190
4190
|
return t.replace(/[\s-]+/g, "_").replace(/([a-z])([A-Z])/g, "$1_$2").replace(/([A-Z])([A-Z][a-z])/g, "$1_$2").toUpperCase();
|
|
4191
4191
|
}
|
|
4192
|
-
function
|
|
4192
|
+
function Kw(t, e, r, n, s) {
|
|
4193
4193
|
const o = (a) => ({
|
|
4194
4194
|
...n(a),
|
|
4195
4195
|
disabled: !0
|
|
4196
4196
|
});
|
|
4197
4197
|
return t ? [o(s.loading)] : e ? [o(s.error)] : r.length ? r : [o(s.empty)];
|
|
4198
4198
|
}
|
|
4199
|
-
function
|
|
4199
|
+
function Ww(t) {
|
|
4200
4200
|
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()) : "";
|
|
4201
4201
|
}
|
|
4202
4202
|
const nd = (t) => K + `/user?username=${t}&v=custom:(display,username,uuid)`, fi = "bahmni.user.location", sd = `${K}/location?tags=Login Location&v=default`, od = (t) => K + `/user/${t}?v=full`, ad = (t) => K + `/bahmni/app/setting?module=${t}`, id = "default_dateFormat", cd = us, ud = us, ld = [
|
|
@@ -4205,7 +4205,7 @@ const nd = (t) => K + `/user?username=${t}&v=custom:(display,username,uuid)`, fi
|
|
|
4205
4205
|
], dd = {
|
|
4206
4206
|
LOGOUT_FAILED: "USER_LOGOUT_FAILED"
|
|
4207
4207
|
};
|
|
4208
|
-
async function
|
|
4208
|
+
async function Jw() {
|
|
4209
4209
|
const t = di(ei);
|
|
4210
4210
|
if (!t)
|
|
4211
4211
|
return null;
|
|
@@ -4229,9 +4229,9 @@ const fs = () => {
|
|
|
4229
4229
|
if (!e.uuid)
|
|
4230
4230
|
throw new Error(le.t("ERROR_FETCHING_USER_LOCATION_DETAILS"));
|
|
4231
4231
|
return e;
|
|
4232
|
-
},
|
|
4232
|
+
}, Qw = async () => (await H(ad("commons"))).find(
|
|
4233
4233
|
(r) => r.property === id
|
|
4234
|
-
)?.value ?? null,
|
|
4234
|
+
)?.value ?? null, Xw = async () => (await H(sd)).results ?? [], Zw = async () => {
|
|
4235
4235
|
try {
|
|
4236
4236
|
await ti(cd), ld.forEach((t) => {
|
|
4237
4237
|
ed(t);
|
|
@@ -4239,11 +4239,11 @@ const fs = () => {
|
|
|
4239
4239
|
} catch (t) {
|
|
4240
4240
|
throw console.error("Logout failed:", t), new Error(le.t(dd.LOGOUT_FAILED));
|
|
4241
4241
|
}
|
|
4242
|
-
},
|
|
4242
|
+
}, eE = async (t, e) => {
|
|
4243
4243
|
await Ee(od(t), {
|
|
4244
4244
|
userProperties: { loginLocation: e.uuid }
|
|
4245
4245
|
});
|
|
4246
|
-
},
|
|
4246
|
+
}, tE = async (t) => {
|
|
4247
4247
|
await Ee(ud, { sessionLocation: t });
|
|
4248
4248
|
}, ps = {
|
|
4249
4249
|
person: {
|
|
@@ -4291,7 +4291,7 @@ const fs = () => {
|
|
|
4291
4291
|
}, hi = K + "/idgen/identifiertype", md = (t) => K + `/bahmni/app/setting?module=${t}`, gd = "bahmni.primaryIdentifierType", yd = K + "/bahmnicore/patientprofile", wd = (t) => K + `/bahmnicore/patientprofile/${t}`, Ed = oe + "/Patient", bd = (t) => K + `/idgen/identifiersource/${t}/identifier`, _d = (t) => K + `/patientprofile/${t}?v=full`, vd = (t, e, r = 20, n) => {
|
|
4292
4292
|
let s = `/openmrs/module/addresshierarchy/ajax/getPossibleAddressHierarchyEntriesWithParents.form?addressField=${t}&limit=${r}&searchString=${encodeURIComponent(e)}`;
|
|
4293
4293
|
return n && (s += `&parent=${n}`), s;
|
|
4294
|
-
}, Td = "/openmrs/module/addresshierarchy/ajax/getOrderedAddressHierarchyLevels.form", Rd = K + "/relationshiptype?v=custom:(aIsToB,bIsToA,uuid)&limit=150", Sd = 20, Od = 2,
|
|
4294
|
+
}, Td = "/openmrs/module/addresshierarchy/ajax/getOrderedAddressHierarchyLevels.form", Rd = K + "/relationshiptype?v=custom:(aIsToB,bIsToA,uuid)&limit=150", Sd = 20, Od = 2, rE = 120, nE = 50, sE = 15, Ad = /^[a-f0-9-]{36}$/i, Nd = K + "/personattributetype?v=custom:(uuid,name,sortWeight,description,format,concept:(uuid,display,answers:(uuid,name)))", oE = (t) => t === "male" ? "M" : t === "female" ? "F" : t === "other" ? "O" : "U", Pd = async (t) => {
|
|
4295
4295
|
if (!t || t.trim() === "")
|
|
4296
4296
|
throw new Error("Invalid patient UUID: UUID cannot be empty");
|
|
4297
4297
|
if (!Ad.test(t))
|
|
@@ -4331,22 +4331,22 @@ const fs = () => {
|
|
|
4331
4331
|
identifier: o,
|
|
4332
4332
|
photoUrl: t.photo?.[0]?.url
|
|
4333
4333
|
};
|
|
4334
|
-
},
|
|
4334
|
+
}, aE = async (t) => {
|
|
4335
4335
|
const e = await Pd(t);
|
|
4336
4336
|
return Ld(e);
|
|
4337
|
-
},
|
|
4337
|
+
}, iE = async (t) => {
|
|
4338
4338
|
if (!t.startsWith("/"))
|
|
4339
4339
|
throw new Error("Photo URL must be a relative path");
|
|
4340
4340
|
const e = await H(t, {
|
|
4341
4341
|
responseType: "blob"
|
|
4342
4342
|
});
|
|
4343
4343
|
return await rd(e);
|
|
4344
|
-
},
|
|
4344
|
+
}, cE = async (t, e) => {
|
|
4345
4345
|
const r = fs();
|
|
4346
4346
|
return await H(
|
|
4347
4347
|
pd(t, r.uuid, e)
|
|
4348
4348
|
);
|
|
4349
|
-
},
|
|
4349
|
+
}, uE = async (t, e, r, n, s) => {
|
|
4350
4350
|
const o = fs();
|
|
4351
4351
|
return await H(
|
|
4352
4352
|
hd(
|
|
@@ -4357,9 +4357,9 @@ const fs = () => {
|
|
|
4357
4357
|
o.uuid
|
|
4358
4358
|
)
|
|
4359
4359
|
);
|
|
4360
|
-
},
|
|
4360
|
+
}, lE = async () => H(hi), xd = async () => (await H(md("core"))).find(
|
|
4361
4361
|
(r) => r.property === gd
|
|
4362
|
-
)?.value ?? null,
|
|
4362
|
+
)?.value ?? null, dE = async () => {
|
|
4363
4363
|
const [t, e] = await Promise.all([
|
|
4364
4364
|
H(hi),
|
|
4365
4365
|
xd()
|
|
@@ -4387,10 +4387,10 @@ const fs = () => {
|
|
|
4387
4387
|
primaryIdentifierTypeUuid: e,
|
|
4388
4388
|
primaryIdentifierTypeName: null
|
|
4389
4389
|
};
|
|
4390
|
-
},
|
|
4390
|
+
}, fE = async (t) => Ee(yd, t), pE = async (t, e) => Ee(
|
|
4391
4391
|
wd(t),
|
|
4392
4392
|
e
|
|
4393
|
-
),
|
|
4393
|
+
), hE = (t) => Ee(Ed, t), mE = (t) => Ee(bd(t), {}), gE = (t, e) => ds(pi(t), e), yE = async () => H(ci("mrs.genders")), wE = async (t, e, r = Sd, n) => {
|
|
4394
4394
|
if (!e || e.length < Od)
|
|
4395
4395
|
return [];
|
|
4396
4396
|
try {
|
|
@@ -4402,7 +4402,7 @@ const fs = () => {
|
|
|
4402
4402
|
`Failed to fetch address hierarchy for field "${t}": ${s instanceof Error ? s.message : "Unknown error"}`
|
|
4403
4403
|
);
|
|
4404
4404
|
}
|
|
4405
|
-
},
|
|
4405
|
+
}, EE = async () => H(Td), bE = async (t) => H(_d(t)), _E = async () => {
|
|
4406
4406
|
try {
|
|
4407
4407
|
return (await H(
|
|
4408
4408
|
Rd
|
|
@@ -4416,9 +4416,9 @@ const fs = () => {
|
|
|
4416
4416
|
`Failed to fetch relationship types: ${t instanceof Error ? t.message : "Unknown error"}`
|
|
4417
4417
|
);
|
|
4418
4418
|
}
|
|
4419
|
-
},
|
|
4419
|
+
}, vE = async () => H(Nd);
|
|
4420
4420
|
var kd = /* @__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))(kd || {}), Md = /* @__PURE__ */ ((t) => (t.CHECKBOX = "checkbox", t.DROPDOWN = "dropdown", t.TEXT = "text", t.NUMBER = "number", t.DATE = "date", t))(Md || {});
|
|
4421
|
-
const
|
|
4421
|
+
const TE = (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", RE = (t) => t === "java.lang.Boolean" || t === "org.openmrs.customdatatype.datatype.BooleanDatatype", SE = (t) => t === "org.openmrs.Concept" || t === "org.bahmni.module.bahmnicore.customdatatype.datatype.CodedConceptDatatype" || t === "org.openmrs.customdatatype.datatype.ConceptDatatype", OE = (t) => t === "java.lang.Integer" || t === "java.lang.Float", AE = (t) => t === "org.openmrs.util.AttributableDate" || t === "org.openmrs.customdatatype.datatype.DateDatatype", NE = (t) => t === "java.lang.String" || t === "org.openmrs.customdatatype.datatype.FreeTextDatatype" || t === "org.openmrs.customdatatype.datatype.RegexValidatedTextDatatype", Ud = (t) => {
|
|
4422
4422
|
const e = new CustomEvent("bahmni-audit-log", { detail: t });
|
|
4423
4423
|
window.dispatchEvent(e);
|
|
4424
4424
|
}, qd = (t) => {
|
|
@@ -4480,10 +4480,10 @@ const _E = (t) => t === "java.lang.Boolean" || t === "org.openmrs.customdatatype
|
|
|
4480
4480
|
}
|
|
4481
4481
|
}, Fd = K + "/auditlog", jd = {
|
|
4482
4482
|
UNKNOWN_EVENT_TYPE: "AUDIT_LOG_ERROR_UNKNOWN_EVENT_TYPE"
|
|
4483
|
-
}, Vd = () => K + "/bahmnicore/config/bahmniencounter?callerContext=REGISTRATION_CONCEPTS", Hd = K + "/visit", Bd = (t) => K + `/visit?patient=${t}&includeInactive=false&v=custom:(uuid,visitType,startDatetime,stopDatetime)`, zd = (t) => K + `/bahmnicore/visitLocation/${t}`,
|
|
4483
|
+
}, Vd = () => K + "/bahmnicore/config/bahmniencounter?callerContext=REGISTRATION_CONCEPTS", Hd = K + "/visit", Bd = (t) => K + `/visit?patient=${t}&includeInactive=false&v=custom:(uuid,visitType,startDatetime,stopDatetime)`, zd = (t) => K + `/bahmnicore/visitLocation/${t}`, PE = async () => H(Vd()), Yd = async (t) => H(Bd(t)), Gd = async (t) => H(zd(t)), Kd = async (t) => Ee(Hd, t), IE = async (t) => {
|
|
4484
4484
|
const e = await Yd(t);
|
|
4485
4485
|
return e?.results && e.results.length > 0;
|
|
4486
|
-
},
|
|
4486
|
+
}, $E = async (t, e) => {
|
|
4487
4487
|
const r = await Gd(
|
|
4488
4488
|
fs().uuid
|
|
4489
4489
|
), n = {
|
|
@@ -7414,7 +7414,7 @@ function hh(t, e, r) {
|
|
|
7414
7414
|
function mh(t, e, r) {
|
|
7415
7415
|
return sn(t, -e, r);
|
|
7416
7416
|
}
|
|
7417
|
-
const
|
|
7417
|
+
const DE = {
|
|
7418
7418
|
PROPOSED: "proposed",
|
|
7419
7419
|
PENDING: "pending",
|
|
7420
7420
|
BOOKED: "booked",
|
|
@@ -7425,51 +7425,51 @@ const IE = {
|
|
|
7425
7425
|
CHECKED_IN: "checked-in",
|
|
7426
7426
|
WAITLIST: "waitlist",
|
|
7427
7427
|
ENTERED_IN_ERROR: "entered-in-error"
|
|
7428
|
-
}, gh = K + "/appointments/search", Ii = K + "/appointments",
|
|
7428
|
+
}, gh = K + "/appointments/search", Ii = K + "/appointments", CE = "http://fhir.bahmni.org/code-system/appointments", yh = (t) => `${Ii}/${t}`, un = (t, e, r, n) => {
|
|
7429
7429
|
const s = e === "upcoming", o = s ? "ge" : "le", a = s ? "date" : "-date", i = s ? (/* @__PURE__ */ new Date()).toISOString() : hh(/* @__PURE__ */ new Date()).toISOString();
|
|
7430
7430
|
let c = `${oe}/Appointment?patient=${t}&date=${o}${i}&_sort=${a}`;
|
|
7431
7431
|
return r !== void 0 && r > 0 && (c += `&_count=${r}`), n !== void 0 && n > 0 && (c += `&_getpagesoffset=${n}`), c;
|
|
7432
|
-
}, wh = (t) => un(t, "upcoming"), Eh = (t, e) => un(t, "past", e), bh = (t) => `${Ii}/${t}/status-change`, _h = K + "/appointmentService/all/full", vh = (t) => `${K}/appointmentService?uuid=${t}`, Th = (t, e = 10, r = 0) => un(t, "upcoming", e, r), Rh = (t, e = 10, r = 0) => un(t, "past", e, r), $i = K + "/appointmentUnavailability",
|
|
7433
|
-
async function
|
|
7432
|
+
}, wh = (t) => un(t, "upcoming"), Eh = (t, e) => un(t, "past", e), bh = (t) => `${Ii}/${t}/status-change`, _h = K + "/appointmentService/all/full", vh = (t) => `${K}/appointmentService?uuid=${t}`, Th = (t, e = 10, r = 0) => un(t, "upcoming", e, r), Rh = (t, e = 10, r = 0) => un(t, "past", e, r), $i = K + "/appointmentUnavailability", LE = async (t) => await Ee(gh, t);
|
|
7433
|
+
async function xE(t) {
|
|
7434
7434
|
return await H(wh(t));
|
|
7435
7435
|
}
|
|
7436
|
-
async function
|
|
7436
|
+
async function kE(t, e) {
|
|
7437
7437
|
return await H(
|
|
7438
7438
|
Eh(t, e)
|
|
7439
7439
|
);
|
|
7440
7440
|
}
|
|
7441
|
-
const
|
|
7441
|
+
const ME = async (t, e, r) => await Ee(bh(t), {
|
|
7442
7442
|
toStatus: e,
|
|
7443
7443
|
onDate: r
|
|
7444
|
-
}),
|
|
7445
|
-
async function
|
|
7444
|
+
}), UE = async (t, e) => Ee(t, { appointmentUuid: e });
|
|
7445
|
+
async function qE(t) {
|
|
7446
7446
|
return await H(yh(t));
|
|
7447
7447
|
}
|
|
7448
|
-
const
|
|
7448
|
+
const FE = async () => await H(_h), jE = async (t) => {
|
|
7449
7449
|
await ti(vh(t));
|
|
7450
7450
|
};
|
|
7451
|
-
async function
|
|
7451
|
+
async function VE(t, e = 10, r = 1) {
|
|
7452
7452
|
const n = (r - 1) * e, s = await H(
|
|
7453
7453
|
Th(t, e, n)
|
|
7454
7454
|
);
|
|
7455
7455
|
return { bundle: s, total: s.total ?? s.entry?.length ?? 0 };
|
|
7456
7456
|
}
|
|
7457
|
-
async function
|
|
7457
|
+
async function HE(t, e = 10, r = 1) {
|
|
7458
7458
|
const n = (r - 1) * e, s = await H(
|
|
7459
7459
|
Rh(t, e, n)
|
|
7460
7460
|
);
|
|
7461
7461
|
return { bundle: s, total: s.total ?? s.entry?.length ?? 0 };
|
|
7462
7462
|
}
|
|
7463
|
-
const
|
|
7463
|
+
const BE = async () => await H($i), zE = async (t) => {
|
|
7464
7464
|
await Ee($i, t);
|
|
7465
|
-
}, Di = "dd/MM/yyyy", Sh = "default_dateFormat", Oh = "h:mm a",
|
|
7465
|
+
}, Di = "dd/MM/yyyy", Sh = "default_dateFormat", Oh = "h:mm a", YE = "yyyy-MM-dd", De = {
|
|
7466
7466
|
PARSE_ERROR: "DATE_ERROR_PARSE",
|
|
7467
7467
|
FORMAT_ERROR: "DATE_ERROR_FORMAT",
|
|
7468
7468
|
EMPTY_OR_INVALID: "DATE_ERROR_EMPTY_OR_INVALID",
|
|
7469
7469
|
INVALID_FORMAT: "DATE_ERROR_INVALID_FORMAT",
|
|
7470
7470
|
NULL_OR_UNDEFINED: "DATE_ERROR_NULL_OR_UNDEFINED"
|
|
7471
7471
|
};
|
|
7472
|
-
function
|
|
7472
|
+
function GE(t) {
|
|
7473
7473
|
if (!t) return null;
|
|
7474
7474
|
const e = cn(t);
|
|
7475
7475
|
if (!st(e)) return null;
|
|
@@ -7478,7 +7478,7 @@ function zE(t) {
|
|
|
7478
7478
|
const n = Mt(r, e), s = an(r, e), o = sn(e, s), a = on(r, o), i = Bt(o, a), c = Mt(r, i), u = `${s}y ${a}m ${c}d`;
|
|
7479
7479
|
return { year: s, month: a, day: c, ageInDays: n, ageText: u };
|
|
7480
7480
|
}
|
|
7481
|
-
function
|
|
7481
|
+
function KE(t) {
|
|
7482
7482
|
if (typeof t != "string" || !/^\d{4}-\d{2}-\d{2}$/.test(t))
|
|
7483
7483
|
return null;
|
|
7484
7484
|
const e = cn(t);
|
|
@@ -7546,7 +7546,7 @@ function Nh() {
|
|
|
7546
7546
|
return Di;
|
|
7547
7547
|
}
|
|
7548
7548
|
}
|
|
7549
|
-
function
|
|
7549
|
+
function WE(t, e, r = !1, n) {
|
|
7550
7550
|
const s = e ?? ((a) => a);
|
|
7551
7551
|
let o;
|
|
7552
7552
|
try {
|
|
@@ -7556,7 +7556,7 @@ function GE(t, e, r = !1, n) {
|
|
|
7556
7556
|
}
|
|
7557
7557
|
return r && !n && (o = `${o} ${Oh}`), Ah(t, o, s);
|
|
7558
7558
|
}
|
|
7559
|
-
function
|
|
7559
|
+
function JE(t, e, r) {
|
|
7560
7560
|
if (!t || !st(t) || e === null || e === void 0 || !r || typeof e != "number")
|
|
7561
7561
|
return;
|
|
7562
7562
|
const n = new Date(t);
|
|
@@ -7571,7 +7571,7 @@ function KE(t, e, r) {
|
|
|
7571
7571
|
return;
|
|
7572
7572
|
}
|
|
7573
7573
|
}
|
|
7574
|
-
function
|
|
7574
|
+
function QE(t, e) {
|
|
7575
7575
|
if (t == null)
|
|
7576
7576
|
return {
|
|
7577
7577
|
formattedResult: "",
|
|
@@ -7623,11 +7623,11 @@ function WE(t, e) {
|
|
|
7623
7623
|
}
|
|
7624
7624
|
return { formattedResult: c };
|
|
7625
7625
|
}
|
|
7626
|
-
const
|
|
7626
|
+
const XE = () => {
|
|
7627
7627
|
const t = /* @__PURE__ */ new Date();
|
|
7628
7628
|
return t.setHours(0, 0, 0, 0), t;
|
|
7629
7629
|
};
|
|
7630
|
-
function
|
|
7630
|
+
function ZE(t, e) {
|
|
7631
7631
|
const r = typeof t == "string" ? cn(t) : new Date(t), n = /* @__PURE__ */ new Date(), s = an(n, r), o = sn(r, s), a = on(n, o), i = Bt(o, a), c = Mt(n, i), u = {
|
|
7632
7632
|
years: "YEARS",
|
|
7633
7633
|
months: "MONTHS",
|
|
@@ -7661,14 +7661,14 @@ const Ph = {
|
|
|
7661
7661
|
h: 1 / 24,
|
|
7662
7662
|
min: 1 / 1440,
|
|
7663
7663
|
s: 1 / 86400
|
|
7664
|
-
},
|
|
7664
|
+
}, eb = (t, e, r) => {
|
|
7665
7665
|
const n = typeof t == "string" ? new Date(t) : t;
|
|
7666
7666
|
if (isNaN(n.getTime()))
|
|
7667
7667
|
throw new Error(`Invalid date: ${t}`);
|
|
7668
7668
|
const s = Ph[r] ?? 1, o = e * s;
|
|
7669
7669
|
return nn(n, o);
|
|
7670
|
-
},
|
|
7671
|
-
function
|
|
7670
|
+
}, tb = (t, e, r, n) => t <= n && r <= e;
|
|
7671
|
+
function rb(t, e, r = !1) {
|
|
7672
7672
|
return !t || !Array.isArray(t) ? [] : t.sort((n, s) => {
|
|
7673
7673
|
const o = new Date(n[e]), a = new Date(s[e]);
|
|
7674
7674
|
if (isNaN(o.getTime()) && isNaN(a.getTime())) return 0;
|
|
@@ -7683,7 +7683,7 @@ function Ih(t) {
|
|
|
7683
7683
|
const e = Wp(t, "hh:mm aa", /* @__PURE__ */ new Date());
|
|
7684
7684
|
return st(e) ? Ri(e, "HH:mm") : "";
|
|
7685
7685
|
}
|
|
7686
|
-
function
|
|
7686
|
+
function nb(t) {
|
|
7687
7687
|
const e = Ih(t);
|
|
7688
7688
|
if (!e) return null;
|
|
7689
7689
|
const [r, n] = e.split(":").map(Number);
|
|
@@ -7718,7 +7718,7 @@ const $h = () => {
|
|
|
7718
7718
|
);
|
|
7719
7719
|
}
|
|
7720
7720
|
};
|
|
7721
|
-
},
|
|
7721
|
+
}, sb = $h(), Dh = (t) => oe + `/ValueSet/${t}/$expand`, Ch = (t) => oe + `/ValueSet/$expand?filter=${encodeURIComponent(t)}`, Lh = (t, e, r) => K + `/bahmni/terminologies/concepts?limit=${e}&locale=${r}&term=${t}`, xh = (t) => K + `/concept/${t}`, kh = (t) => `${K}/concept?s=byFullySpecifiedName&name=${encodeURIComponent(t)}`, Mh = "SHORT", Uh = "FULLY_SPECIFIED", ob = async (t, e = 20) => {
|
|
7722
7722
|
const r = tn(), n = Lh(t, e, r);
|
|
7723
7723
|
return H(n);
|
|
7724
7724
|
}, kr = async (t) => {
|
|
@@ -7728,10 +7728,10 @@ const $h = () => {
|
|
|
7728
7728
|
const e = `${Ch(t)}`;
|
|
7729
7729
|
return H(e);
|
|
7730
7730
|
};
|
|
7731
|
-
async function
|
|
7731
|
+
async function ab(t) {
|
|
7732
7732
|
return await H(xh(t));
|
|
7733
7733
|
}
|
|
7734
|
-
async function
|
|
7734
|
+
async function ib(t) {
|
|
7735
7735
|
const e = kh(t), r = await H(e);
|
|
7736
7736
|
return !r.results || r.results.length === 0 ? null : r.results[0];
|
|
7737
7737
|
}
|
|
@@ -7767,7 +7767,7 @@ const jh = (t) => oe + `/AllergyIntolerance?patient=${t}&_count=100&_sort=-_last
|
|
|
7767
7767
|
}), Nn = (t, e) => {
|
|
7768
7768
|
const r = t.expansion?.contains ?? [];
|
|
7769
7769
|
return Hh(r).map((s) => Bh(s, e));
|
|
7770
|
-
},
|
|
7770
|
+
}, cb = async (t, e, r) => {
|
|
7771
7771
|
const n = t ?? ft.MEDICATION.code, s = e ?? ft.FOOD.code, o = r ?? ft.ENVIRONMENT.code, [a, i, c] = await Promise.all([
|
|
7772
7772
|
kr(n),
|
|
7773
7773
|
kr(s),
|
|
@@ -7787,7 +7787,7 @@ const jh = (t) => oe + `/AllergyIntolerance?patient=${t}&_count=100&_sort=-_last
|
|
|
7787
7787
|
ft.ENVIRONMENT.display
|
|
7788
7788
|
)
|
|
7789
7789
|
];
|
|
7790
|
-
},
|
|
7790
|
+
}, ub = async (t) => {
|
|
7791
7791
|
const e = t ?? Vh.code;
|
|
7792
7792
|
return (await kr(e)).compose?.include[0]?.concept ?? [];
|
|
7793
7793
|
};
|
|
@@ -7827,12 +7827,12 @@ function Gh(t) {
|
|
|
7827
7827
|
};
|
|
7828
7828
|
});
|
|
7829
7829
|
}
|
|
7830
|
-
async function
|
|
7830
|
+
async function lb(t) {
|
|
7831
7831
|
const e = await Yh(t);
|
|
7832
7832
|
return Gh(e);
|
|
7833
7833
|
}
|
|
7834
7834
|
var Kh = /* @__PURE__ */ ((t) => (t.Active = "Active", t.Inactive = "Inactive", t))(Kh || {}), Wh = /* @__PURE__ */ ((t) => (t.mild = "mild", t.moderate = "moderate", t.severe = "severe", t))(Wh || {});
|
|
7835
|
-
function
|
|
7835
|
+
function db(t) {
|
|
7836
7836
|
const e = t.code?.coding?.[0]?.code ?? t.id ?? "", r = t.reaction?.[0]?.severity, n = /* @__PURE__ */ new Set(), s = [];
|
|
7837
7837
|
for (const o of t.reaction ?? [])
|
|
7838
7838
|
for (const a of o.manifestation ?? [])
|
|
@@ -7858,10 +7858,10 @@ const Jh = oe + "/Condition", Qh = (t) => oe + `/Condition?category=${ui}&patien
|
|
|
7858
7858
|
async function Zh(t) {
|
|
7859
7859
|
return await H(`${Qh(t)}`);
|
|
7860
7860
|
}
|
|
7861
|
-
async function
|
|
7861
|
+
async function fb(t) {
|
|
7862
7862
|
return (await Zh(t)).entry?.filter((n) => n.resource?.resourceType === "Condition").map((n) => n.resource) ?? [];
|
|
7863
7863
|
}
|
|
7864
|
-
async function
|
|
7864
|
+
async function pb(t, e = 10, r = 1, n) {
|
|
7865
7865
|
const s = (r - 1) * e, o = await H(
|
|
7866
7866
|
Xh(t, e, s, n)
|
|
7867
7867
|
);
|
|
@@ -7870,7 +7870,7 @@ async function db(t, e = 10, r = 1, n) {
|
|
|
7870
7870
|
total: o.total
|
|
7871
7871
|
};
|
|
7872
7872
|
}
|
|
7873
|
-
async function
|
|
7873
|
+
async function hb(t) {
|
|
7874
7874
|
const e = {
|
|
7875
7875
|
...t,
|
|
7876
7876
|
clinicalStatus: {
|
|
@@ -7946,11 +7946,11 @@ function cm(t) {
|
|
|
7946
7946
|
}
|
|
7947
7947
|
return Array.from(e.values());
|
|
7948
7948
|
}
|
|
7949
|
-
async function
|
|
7949
|
+
async function mb(t) {
|
|
7950
7950
|
const e = await sm(t), r = Li(e);
|
|
7951
7951
|
return cm(r);
|
|
7952
7952
|
}
|
|
7953
|
-
async function
|
|
7953
|
+
async function gb(t, e = 10, r = 1) {
|
|
7954
7954
|
const n = (r - 1) * e, s = await om(
|
|
7955
7955
|
t,
|
|
7956
7956
|
e,
|
|
@@ -7976,7 +7976,7 @@ const Lt = {
|
|
|
7976
7976
|
}, lm = (t, e, r) => {
|
|
7977
7977
|
let s = `${oe + "/MedicationRequest?" + Lt.SORT + "&" + Lt.COUNT + "&" + Lt.INCLUDE_MEDICATION}&patient=${t}`;
|
|
7978
7978
|
return e && (s += `&code=${e}`), r && (s += `&encounter=${r}`), s;
|
|
7979
|
-
}, dm = K + "/bahmnicore/config/drugOrders", fm = (t, e) => oe + `/Medication?name=${encodeURIComponent(t)}&_count=${e}&_sort=-_lastUpdated`, pm = oe + "/Medication?code=http://hl7.org/fhir/sid/cvx|&_count=100",
|
|
7979
|
+
}, dm = K + "/bahmnicore/config/drugOrders", fm = (t, e) => oe + `/Medication?name=${encodeURIComponent(t)}&_count=${e}&_sort=-_lastUpdated`, pm = oe + "/Medication?code=http://hl7.org/fhir/sid/cvx|&_count=100", yb = "medication", hm = (t) => {
|
|
7980
7980
|
switch (t.status) {
|
|
7981
7981
|
case "active":
|
|
7982
7982
|
return He.Active;
|
|
@@ -8133,7 +8133,7 @@ function Om(t) {
|
|
|
8133
8133
|
});
|
|
8134
8134
|
}
|
|
8135
8135
|
const mo = (t) => t.priority === "stat";
|
|
8136
|
-
async function
|
|
8136
|
+
async function wb(t, e, r, n = !1) {
|
|
8137
8137
|
const s = await mm(
|
|
8138
8138
|
t,
|
|
8139
8139
|
e,
|
|
@@ -8142,21 +8142,21 @@ async function gb(t, e, r, n = !1) {
|
|
|
8142
8142
|
);
|
|
8143
8143
|
return Om(s);
|
|
8144
8144
|
}
|
|
8145
|
-
async function
|
|
8145
|
+
async function Eb() {
|
|
8146
8146
|
return await H(
|
|
8147
8147
|
dm
|
|
8148
8148
|
);
|
|
8149
8149
|
}
|
|
8150
|
-
async function
|
|
8150
|
+
async function bb(t, e = 20) {
|
|
8151
8151
|
return await H(
|
|
8152
8152
|
fm(t, e)
|
|
8153
8153
|
);
|
|
8154
8154
|
}
|
|
8155
|
-
async function
|
|
8155
|
+
async function _b() {
|
|
8156
8156
|
return await H(pm);
|
|
8157
8157
|
}
|
|
8158
8158
|
const Am = (t) => `${oe}/Medication/${t}`;
|
|
8159
|
-
async function
|
|
8159
|
+
async function vb(t) {
|
|
8160
8160
|
return await H(Am(t));
|
|
8161
8161
|
}
|
|
8162
8162
|
const Nm = 200, Pm = (t, e, r, n, s) => {
|
|
@@ -8176,7 +8176,7 @@ async function zt(t, e, r, n, s) {
|
|
|
8176
8176
|
);
|
|
8177
8177
|
}
|
|
8178
8178
|
const Im = (t) => `${oe}/ImagingStudy/${t}/$fetch-quality-assessment`;
|
|
8179
|
-
async function
|
|
8179
|
+
async function Tb(t, e, r, n) {
|
|
8180
8180
|
return await zt(
|
|
8181
8181
|
e,
|
|
8182
8182
|
t,
|
|
@@ -8184,7 +8184,7 @@ async function _b(t, e, r, n) {
|
|
|
8184
8184
|
n
|
|
8185
8185
|
);
|
|
8186
8186
|
}
|
|
8187
|
-
async function
|
|
8187
|
+
async function Rb(t, e, r, n) {
|
|
8188
8188
|
return await zt(
|
|
8189
8189
|
e,
|
|
8190
8190
|
t,
|
|
@@ -8193,7 +8193,7 @@ async function vb(t, e, r, n) {
|
|
|
8193
8193
|
"ImagingStudy:basedon"
|
|
8194
8194
|
);
|
|
8195
8195
|
}
|
|
8196
|
-
async function
|
|
8196
|
+
async function Sb(t, e, r, n) {
|
|
8197
8197
|
return (await zt(
|
|
8198
8198
|
e,
|
|
8199
8199
|
t,
|
|
@@ -8201,10 +8201,10 @@ async function Tb(t, e, r, n) {
|
|
|
8201
8201
|
n
|
|
8202
8202
|
)).entry?.filter((a) => a.resource?.resourceType === "ServiceRequest").map((a) => a.resource) ?? [];
|
|
8203
8203
|
}
|
|
8204
|
-
async function
|
|
8204
|
+
async function Ob(t) {
|
|
8205
8205
|
return await H(Im(t));
|
|
8206
8206
|
}
|
|
8207
|
-
async function
|
|
8207
|
+
async function Ab(t, e, r, n) {
|
|
8208
8208
|
return await zt(
|
|
8209
8209
|
e,
|
|
8210
8210
|
t,
|
|
@@ -8216,29 +8216,29 @@ const $m = (t, e) => {
|
|
|
8216
8216
|
const r = `${oe}/DiagnosticReport?patient=${t}`;
|
|
8217
8217
|
return e ? `${r}&based-on=${e}` : r;
|
|
8218
8218
|
}, Dm = (t) => `${oe}/DiagnosticReport/${t}/$fetch-bundle`, Cm = (t) => `${oe}/DiagnosticReport/${t}/$update-bundle`;
|
|
8219
|
-
async function
|
|
8219
|
+
async function Nb(t, e = []) {
|
|
8220
8220
|
const r = e.length > 0 ? e.join(",") : void 0, n = $m(t, r);
|
|
8221
8221
|
return await H(n);
|
|
8222
8222
|
}
|
|
8223
|
-
async function
|
|
8223
|
+
async function Pb(t) {
|
|
8224
8224
|
const e = Dm(t);
|
|
8225
8225
|
return await H(e);
|
|
8226
8226
|
}
|
|
8227
|
-
async function
|
|
8227
|
+
async function Ib(t, e) {
|
|
8228
8228
|
const r = Cm(t);
|
|
8229
8229
|
return await Ee(r, e);
|
|
8230
8230
|
}
|
|
8231
|
-
const
|
|
8231
|
+
const $b = [
|
|
8232
8232
|
"preliminary",
|
|
8233
8233
|
"final",
|
|
8234
8234
|
"amended",
|
|
8235
8235
|
"corrected",
|
|
8236
8236
|
"appended"
|
|
8237
|
-
],
|
|
8237
|
+
], Db = [
|
|
8238
8238
|
"registered",
|
|
8239
8239
|
"unknown",
|
|
8240
8240
|
"partial"
|
|
8241
|
-
], Lm = "All Orderables", xm = "/openmrs/ws/rest/v1/ordertype?v=custom:(uuid,display,conceptClasses:(uuid,name))", km = "LabSet", Mm = "http://fhir.bahmni.org/ext/ValueSet/concept-class",
|
|
8241
|
+
], Lm = "All Orderables", xm = "/openmrs/ws/rest/v1/ordertype?v=custom:(uuid,display,conceptClasses:(uuid,name))", km = "LabSet", Mm = "http://fhir.bahmni.org/ext/ValueSet/concept-class", Cb = ["orderTypes"], Um = async () => await qh(Lm), ws = async () => await H(xm), qm = (t) => {
|
|
8242
8242
|
let e = t.display ?? "Unknown investigation";
|
|
8243
8243
|
return xi(t) === km && (e += ` (${le.t("INVESTIGATION_PANEL")})`), e;
|
|
8244
8244
|
}, Fm = (t) => {
|
|
@@ -8270,12 +8270,12 @@ const Pb = [
|
|
|
8270
8270
|
});
|
|
8271
8271
|
});
|
|
8272
8272
|
}), r;
|
|
8273
|
-
},
|
|
8273
|
+
}, Lb = async () => {
|
|
8274
8274
|
const t = await Um(), e = await ws();
|
|
8275
8275
|
return jm(t, Fm(e));
|
|
8276
|
-
},
|
|
8276
|
+
}, xb = async (t) => t ? (await ws()).results.find(
|
|
8277
8277
|
(n) => n.display.toLowerCase() === t.toLowerCase()
|
|
8278
|
-
)?.uuid ?? null : null,
|
|
8278
|
+
)?.uuid ?? null : null, kb = async () => (await ws()).results.map((e) => e.display), Mb = async (t, e, r) => {
|
|
8279
8279
|
const n = [];
|
|
8280
8280
|
for (const s of t) {
|
|
8281
8281
|
const o = s.uuid;
|
|
@@ -12823,7 +12823,7 @@ var Kg = Gg();
|
|
|
12823
12823
|
const Wg = /* @__PURE__ */ Vm(Kg), Pa = {
|
|
12824
12824
|
CONFIG_NOT_FOUND: "CONFIG_ERROR_NOT_FOUND",
|
|
12825
12825
|
VALIDATION_FAILED: "CONFIG_ERROR_VALIDATION_FAILED"
|
|
12826
|
-
},
|
|
12826
|
+
}, Ub = async (t, e) => {
|
|
12827
12827
|
const r = await Jg(t);
|
|
12828
12828
|
if (!r)
|
|
12829
12829
|
throw new Error(Pa.CONFIG_NOT_FOUND);
|
|
@@ -12833,7 +12833,7 @@ const Wg = /* @__PURE__ */ Vm(Kg), Pa = {
|
|
|
12833
12833
|
}, Jg = async (t) => await H(t), Qg = async (t, e) => new Wg().compile(e)(t), Xg = (t) => K + `/form/${t}?v=custom:(resources:(value))`, Zg = (t) => {
|
|
12834
12834
|
const e = K + "/bahmniie/form/latestPublishedForms";
|
|
12835
12835
|
return t ? e + `?episodeUuid=${t}` : e;
|
|
12836
|
-
},
|
|
12836
|
+
}, qb = (t) => K + `/user/${t}?v=full`, ey = (t, e, r, n) => K + `/bahmniie/form/translations?formName=${encodeURIComponent(t)}&formUuid=${e}&formVersion=${r}&locale=${n}`, Mr = "Bahmni", ty = (t, e, r) => {
|
|
12837
12837
|
let s = K + "/bahmnicore/patient/" + t + "/forms";
|
|
12838
12838
|
return r ? s += `?patientProgramUuid=${r}` : e && (s += `?numberOfVisits=${e}`), s;
|
|
12839
12839
|
}, ry = (t, e) => {
|
|
@@ -12847,21 +12847,21 @@ async function sy(t, e) {
|
|
|
12847
12847
|
const r = ry(t, e);
|
|
12848
12848
|
return await H(r);
|
|
12849
12849
|
}
|
|
12850
|
-
async function
|
|
12850
|
+
async function Fb(t, e) {
|
|
12851
12851
|
const r = ny(t, e);
|
|
12852
12852
|
return await H(r);
|
|
12853
12853
|
}
|
|
12854
|
-
async function
|
|
12854
|
+
async function jb(t, e) {
|
|
12855
12855
|
return (await sy(t, e)).entry?.filter((s) => s.resource?.resourceType === "Observation").map((s) => s.resource) ?? [];
|
|
12856
12856
|
}
|
|
12857
12857
|
const Hi = (t) => K + `/provider?user=${t}&v=custom:(uuid,display,person,attributes)`, oy = K + "/provider?v=custom:(uuid,display,person,attributes)";
|
|
12858
|
-
async function
|
|
12858
|
+
async function Vb(t) {
|
|
12859
12859
|
const e = await H(
|
|
12860
12860
|
Hi(t)
|
|
12861
12861
|
);
|
|
12862
12862
|
return !e.results || e.results.length === 0 ? null : e.results[0];
|
|
12863
12863
|
}
|
|
12864
|
-
async function
|
|
12864
|
+
async function Hb() {
|
|
12865
12865
|
const t = [];
|
|
12866
12866
|
let e = oy;
|
|
12867
12867
|
for (; e; ) {
|
|
@@ -12870,7 +12870,7 @@ async function jb() {
|
|
|
12870
12870
|
}
|
|
12871
12871
|
return t;
|
|
12872
12872
|
}
|
|
12873
|
-
async function
|
|
12873
|
+
async function Bb(t) {
|
|
12874
12874
|
const e = await H(Hi(t));
|
|
12875
12875
|
if (!e.results || e.results.length === 0)
|
|
12876
12876
|
return [];
|
|
@@ -12889,24 +12889,24 @@ async function uy(t) {
|
|
|
12889
12889
|
async function zi(t) {
|
|
12890
12890
|
return (await uy(t)).find((r) => !r.period?.end) ?? null;
|
|
12891
12891
|
}
|
|
12892
|
-
async function
|
|
12892
|
+
async function zb(t, e) {
|
|
12893
12893
|
return await H(
|
|
12894
12894
|
`/openmrs/ws/fhir2/R4/Encounter/${t}`,
|
|
12895
12895
|
e
|
|
12896
12896
|
);
|
|
12897
12897
|
}
|
|
12898
|
-
async function
|
|
12898
|
+
async function Yb(t) {
|
|
12899
12899
|
return await H(
|
|
12900
12900
|
iy(t)
|
|
12901
12901
|
);
|
|
12902
12902
|
}
|
|
12903
|
-
async function
|
|
12903
|
+
async function Gb(t) {
|
|
12904
12904
|
return await Ee(Bi, t);
|
|
12905
12905
|
}
|
|
12906
|
-
async function
|
|
12906
|
+
async function Kb(t, e) {
|
|
12907
12907
|
return await ds(`${Bi}/${t}`, e);
|
|
12908
12908
|
}
|
|
12909
|
-
const
|
|
12909
|
+
const Wb = (t, e) => t?.length === 0 ? !1 : e?.length === 0, ly = oe + "/Encounter", dy = K + "/systemsetting/bahmni.encountersession.duration", Jb = {
|
|
12910
12910
|
MATCHED: "ENCOUNTER_MATCH_REASON_MATCHED",
|
|
12911
12911
|
NO_ACTIVE_VISIT: "ENCOUNTER_MATCH_REASON_NO_ACTIVE_VISIT",
|
|
12912
12912
|
NO_ACTIVE_ENCOUNTER: "ENCOUNTER_MATCH_REASON_NO_ACTIVE_ENCOUNTER",
|
|
@@ -12944,7 +12944,7 @@ async function fy(t, e) {
|
|
|
12944
12944
|
return null;
|
|
12945
12945
|
}
|
|
12946
12946
|
}
|
|
12947
|
-
async function
|
|
12947
|
+
async function Qb(t, e, r, n) {
|
|
12948
12948
|
try {
|
|
12949
12949
|
if (!t) return null;
|
|
12950
12950
|
const s = r ?? await Yi(), a = `ge${new Date(Date.now() - s * 60 * 1e3).toISOString()}`, i = {
|
|
@@ -12981,7 +12981,7 @@ function Fn(t) {
|
|
|
12981
12981
|
return new Date(r.period?.start ?? 0).getTime() - n;
|
|
12982
12982
|
});
|
|
12983
12983
|
}
|
|
12984
|
-
async function
|
|
12984
|
+
async function Xb(t, e, r, n) {
|
|
12985
12985
|
try {
|
|
12986
12986
|
const s = await zi(t);
|
|
12987
12987
|
if (!s?.id)
|
|
@@ -13046,7 +13046,7 @@ async function Jb(t, e, r, n) {
|
|
|
13046
13046
|
};
|
|
13047
13047
|
}
|
|
13048
13048
|
}
|
|
13049
|
-
function
|
|
13049
|
+
function Zb(t) {
|
|
13050
13050
|
return t.matched || t.reasons.includes("LOCATION_MISMATCH") && !t.reasons.includes("SESSION_EXPIRED") && !t.reasons.includes("PROVIDER_MISMATCH");
|
|
13051
13051
|
}
|
|
13052
13052
|
const Gi = {
|
|
@@ -13072,7 +13072,7 @@ function hy(t) {
|
|
|
13072
13072
|
function my() {
|
|
13073
13073
|
return Ut;
|
|
13074
13074
|
}
|
|
13075
|
-
function
|
|
13075
|
+
function e_(t) {
|
|
13076
13076
|
const e = t.reasons.some(
|
|
13077
13077
|
(r) => py.includes(r)
|
|
13078
13078
|
);
|
|
@@ -13083,20 +13083,20 @@ function Xb(t) {
|
|
|
13083
13083
|
isLoading: !1
|
|
13084
13084
|
}, Ts();
|
|
13085
13085
|
}
|
|
13086
|
-
function
|
|
13086
|
+
function t_(t) {
|
|
13087
13087
|
Ut = { ...Ut, isLoading: t }, Ts();
|
|
13088
13088
|
}
|
|
13089
|
-
function
|
|
13089
|
+
function r_() {
|
|
13090
13090
|
Ut = { ...Gi }, Ts();
|
|
13091
13091
|
}
|
|
13092
|
-
function
|
|
13092
|
+
function n_() {
|
|
13093
13093
|
return sc(
|
|
13094
13094
|
hy,
|
|
13095
13095
|
my
|
|
13096
13096
|
);
|
|
13097
13097
|
}
|
|
13098
13098
|
const gy = (t) => oe + `/EpisodeOfCare?_revinclude=Encounter:episode-of-care&_id=${t}`;
|
|
13099
|
-
async function
|
|
13099
|
+
async function s_(t) {
|
|
13100
13100
|
const e = t.join(","), r = await H(gy(e));
|
|
13101
13101
|
if (r.total === 0)
|
|
13102
13102
|
throw new Error(
|
|
@@ -13132,14 +13132,14 @@ const jn = /* @__PURE__ */ new Map(), yy = async (t) => {
|
|
|
13132
13132
|
module: n
|
|
13133
13133
|
};
|
|
13134
13134
|
return await Ee(Fd, a), { logged: !0 };
|
|
13135
|
-
},
|
|
13135
|
+
}, o_ = () => qd(async (e) => {
|
|
13136
13136
|
await Ey(
|
|
13137
13137
|
e.patientUuid,
|
|
13138
13138
|
e.eventType,
|
|
13139
13139
|
e.messageParams,
|
|
13140
13140
|
e.module
|
|
13141
13141
|
);
|
|
13142
|
-
}),
|
|
13142
|
+
}), a_ = async () => {
|
|
13143
13143
|
try {
|
|
13144
13144
|
const t = await H(us);
|
|
13145
13145
|
return t.user ? t.user.privileges : null;
|
|
@@ -13147,7 +13147,7 @@ const jn = /* @__PURE__ */ new Map(), yy = async (t) => {
|
|
|
13147
13147
|
const { message: e } = qr(t);
|
|
13148
13148
|
throw new Error(e);
|
|
13149
13149
|
}
|
|
13150
|
-
},
|
|
13150
|
+
}, i_ = (t, e) => {
|
|
13151
13151
|
if (!t || t.length === 0)
|
|
13152
13152
|
return !1;
|
|
13153
13153
|
if (!e || e.length === 0)
|
|
@@ -13187,12 +13187,12 @@ const jn = /* @__PURE__ */ new Map(), yy = async (t) => {
|
|
|
13187
13187
|
editable: n.editable
|
|
13188
13188
|
}))
|
|
13189
13189
|
};
|
|
13190
|
-
},
|
|
13190
|
+
}, c_ = async (t) => {
|
|
13191
13191
|
const e = await by(t), r = tn();
|
|
13192
13192
|
return e.map(
|
|
13193
13193
|
(n) => vy(n, r)
|
|
13194
13194
|
);
|
|
13195
|
-
},
|
|
13195
|
+
}, u_ = async (t) => {
|
|
13196
13196
|
const e = await fetch(Xg(t));
|
|
13197
13197
|
if (!e.ok)
|
|
13198
13198
|
throw new Error(
|
|
@@ -13226,7 +13226,7 @@ const jn = /* @__PURE__ */ new Map(), yy = async (t) => {
|
|
|
13226
13226
|
schema: n,
|
|
13227
13227
|
translations: u
|
|
13228
13228
|
};
|
|
13229
|
-
},
|
|
13229
|
+
}, l_ = async (t, e, r) => {
|
|
13230
13230
|
let n;
|
|
13231
13231
|
e && e.length > 0 && (n = e.join(","));
|
|
13232
13232
|
const s = ty(t, r, n), o = await H(s);
|
|
@@ -13271,7 +13271,7 @@ function Ji(t, e) {
|
|
|
13271
13271
|
};
|
|
13272
13272
|
return n(r.controls);
|
|
13273
13273
|
}
|
|
13274
|
-
function
|
|
13274
|
+
function d_(t, e) {
|
|
13275
13275
|
if (!t.controls || t.controls.length === 0)
|
|
13276
13276
|
return [];
|
|
13277
13277
|
const r = [], n = (/* @__PURE__ */ new Date()).toISOString();
|
|
@@ -13316,7 +13316,7 @@ function u_(t, e) {
|
|
|
13316
13316
|
s.interpretation && (a.interpretation = s.interpretation), s.comment && (a.comment = s.comment), r.push(a);
|
|
13317
13317
|
}), r;
|
|
13318
13318
|
}
|
|
13319
|
-
function
|
|
13319
|
+
function f_(t, e) {
|
|
13320
13320
|
if (!t || t.length === 0)
|
|
13321
13321
|
return {
|
|
13322
13322
|
controls: [],
|
|
@@ -13349,7 +13349,7 @@ function l_(t, e) {
|
|
|
13349
13349
|
metadata: { formMetadata: e }
|
|
13350
13350
|
};
|
|
13351
13351
|
}
|
|
13352
|
-
function
|
|
13352
|
+
function p_(t) {
|
|
13353
13353
|
const e = (n) => {
|
|
13354
13354
|
const s = (u) => u == null ? null : typeof u == "string" || typeof u == "number" || typeof u == "boolean" || typeof u == "object" ? u : null, o = n.concept, a = typeof o == "object" && o !== null && "uuid" in o ? o.uuid : o, i = typeof o == "object" && o !== null && "datatype" in o ? o.datatype : void 0, c = {
|
|
13355
13355
|
concept: {
|
|
@@ -13369,11 +13369,11 @@ function d_(t) {
|
|
|
13369
13369
|
};
|
|
13370
13370
|
return (t?.filter((n) => n.uuid && n.voided ? !0 : !(!n.uuid && n.voided || n.value && typeof n.value == "string" && n.value.endsWith("voided"))) ?? []).map(e);
|
|
13371
13371
|
}
|
|
13372
|
-
function
|
|
13372
|
+
function h_(t) {
|
|
13373
13373
|
if (!(!t || typeof t != "object"))
|
|
13374
13374
|
return "toJS" in t && typeof t.toJS == "function" ? t.toJS() : t;
|
|
13375
13375
|
}
|
|
13376
|
-
function
|
|
13376
|
+
function m_(t, e) {
|
|
13377
13377
|
!t || !Array.isArray(t.children) || t.children.forEach((r) => {
|
|
13378
13378
|
r && typeof r == "object" && Qi(
|
|
13379
13379
|
r,
|
|
@@ -13403,7 +13403,24 @@ function Qi(t, e) {
|
|
|
13403
13403
|
);
|
|
13404
13404
|
});
|
|
13405
13405
|
}
|
|
13406
|
-
|
|
13406
|
+
function Ty(t) {
|
|
13407
|
+
const e = t.value && typeof t.value == "object" ? t.value : null;
|
|
13408
|
+
if (!e)
|
|
13409
|
+
return t.value === null || t.value === void 0 || t.value === "";
|
|
13410
|
+
const r = e.value;
|
|
13411
|
+
if (r != null && r !== "")
|
|
13412
|
+
return !1;
|
|
13413
|
+
const n = e.concept;
|
|
13414
|
+
return n != null ? Array.isArray(n) ? n.length === 0 : !1 : !0;
|
|
13415
|
+
}
|
|
13416
|
+
function Ry(t) {
|
|
13417
|
+
if (!t || typeof t != "object") return !1;
|
|
13418
|
+
const e = t.children, r = Array.isArray(e) && e.length > 0, s = t.control?.properties;
|
|
13419
|
+
return !r && s?.mandatory === !0 && !t.hidden && !t.voided && Ty(t) ? !0 : t.hidden || t.voided ? !1 : r ? e.some(
|
|
13420
|
+
(o) => o && typeof o == "object" && Ry(o)
|
|
13421
|
+
) : !1;
|
|
13422
|
+
}
|
|
13423
|
+
const Sy = K + "/bahmnicore/diseaseSummaryData?", g_ = async (t, e, r, n) => {
|
|
13407
13424
|
const s = new URLSearchParams({
|
|
13408
13425
|
groupBy: n,
|
|
13409
13426
|
latestCount: e.toString(),
|
|
@@ -13412,17 +13429,17 @@ const Ty = K + "/bahmnicore/diseaseSummaryData?", h_ = async (t, e, r, n) => {
|
|
|
13412
13429
|
r.forEach((a) => {
|
|
13413
13430
|
s.append("obsConcepts", a);
|
|
13414
13431
|
});
|
|
13415
|
-
const o =
|
|
13432
|
+
const o = Sy + s.toString();
|
|
13416
13433
|
return H(o);
|
|
13417
|
-
}, Rs = "custom:(uuid,episodeUuid,patient,program,display,dateEnrolled,dateCompleted,location,voided,allowedStates,outcome,states:(uuid,startDate,endDate,voided,state:(uuid,concept:(uuid,display,name,names)),auditInfo),auditInfo,attributes)",
|
|
13434
|
+
}, Rs = "custom:(uuid,episodeUuid,patient,program,display,dateEnrolled,dateCompleted,location,voided,allowedStates,outcome,states:(uuid,startDate,endDate,voided,state:(uuid,concept:(uuid,display,name,names)),auditInfo),auditInfo,attributes)", Oy = (t) => `${K}/bahmniprogramenrollment?patient=${t}&v=${Rs}`, Ay = (t, e = 15, r = 0) => `${K}/bahmniprogramenrollment?patient=${t}&v=${Rs}&limit=${e}&startIndex=${r}&totalCount=true`, Xi = (t) => `${K}/bahmniprogramenrollment/${t}`, Ny = (t) => `${Xi(t)}?v=${Rs}`, y_ = async (t) => await H(Oy(t)), w_ = async (t, e = 15, r = 1) => {
|
|
13418
13435
|
const n = (r - 1) * e, s = await H(
|
|
13419
|
-
|
|
13436
|
+
Ay(t, e, n)
|
|
13420
13437
|
);
|
|
13421
13438
|
return {
|
|
13422
13439
|
programs: s.results,
|
|
13423
13440
|
total: s.totalCount
|
|
13424
13441
|
};
|
|
13425
|
-
},
|
|
13442
|
+
}, E_ = async (t) => await H(Ny(t)), b_ = async (t, e) => {
|
|
13426
13443
|
const r = {
|
|
13427
13444
|
uuid: t,
|
|
13428
13445
|
states: [
|
|
@@ -13436,7 +13453,7 @@ const Ty = K + "/bahmnicore/diseaseSummaryData?", h_ = async (t, e, r, n) => {
|
|
|
13436
13453
|
r
|
|
13437
13454
|
);
|
|
13438
13455
|
};
|
|
13439
|
-
function
|
|
13456
|
+
function __(t) {
|
|
13440
13457
|
if (t.states.length === 0)
|
|
13441
13458
|
return null;
|
|
13442
13459
|
let e;
|
|
@@ -13452,7 +13469,7 @@ function E_(t) {
|
|
|
13452
13469
|
e = t.states.find((r) => r.endDate === null);
|
|
13453
13470
|
return e ? Fh(e.state.concept.names) ?? e.state.concept.display : null;
|
|
13454
13471
|
}
|
|
13455
|
-
function
|
|
13472
|
+
function v_(t, e) {
|
|
13456
13473
|
if (e.length === 0)
|
|
13457
13474
|
return {};
|
|
13458
13475
|
const r = {};
|
|
@@ -13464,12 +13481,12 @@ function b_(t, e) {
|
|
|
13464
13481
|
}
|
|
13465
13482
|
return r;
|
|
13466
13483
|
}
|
|
13467
|
-
const es = "consultation:saved",
|
|
13484
|
+
const es = "consultation:saved", T_ = (t) => {
|
|
13468
13485
|
const e = new CustomEvent(es, {
|
|
13469
13486
|
detail: t
|
|
13470
13487
|
});
|
|
13471
13488
|
window.dispatchEvent(e);
|
|
13472
|
-
},
|
|
13489
|
+
}, R_ = (t, e = []) => {
|
|
13473
13490
|
const r = xt(t);
|
|
13474
13491
|
rt(() => {
|
|
13475
13492
|
r.current = t;
|
|
@@ -13482,17 +13499,17 @@ const es = "consultation:saved", __ = (t) => {
|
|
|
13482
13499
|
window.removeEventListener(es, n);
|
|
13483
13500
|
};
|
|
13484
13501
|
}, e);
|
|
13485
|
-
}, ts = "cdss:check", rs = "cdss:results",
|
|
13502
|
+
}, ts = "cdss:check", rs = "cdss:results", S_ = (t) => {
|
|
13486
13503
|
const e = new CustomEvent(ts, {
|
|
13487
13504
|
detail: t
|
|
13488
13505
|
});
|
|
13489
13506
|
globalThis.dispatchEvent(e);
|
|
13490
|
-
},
|
|
13507
|
+
}, O_ = (t) => {
|
|
13491
13508
|
const e = new CustomEvent(rs, {
|
|
13492
13509
|
detail: t
|
|
13493
13510
|
});
|
|
13494
13511
|
globalThis.dispatchEvent(e);
|
|
13495
|
-
},
|
|
13512
|
+
}, A_ = (t) => {
|
|
13496
13513
|
const e = xt(t);
|
|
13497
13514
|
rt(() => {
|
|
13498
13515
|
e.current = t;
|
|
@@ -13505,7 +13522,7 @@ const es = "consultation:saved", __ = (t) => {
|
|
|
13505
13522
|
globalThis.removeEventListener(ts, r);
|
|
13506
13523
|
};
|
|
13507
13524
|
}, []);
|
|
13508
|
-
},
|
|
13525
|
+
}, N_ = (t) => {
|
|
13509
13526
|
const e = xt(t);
|
|
13510
13527
|
rt(() => {
|
|
13511
13528
|
e.current = t;
|
|
@@ -13537,17 +13554,17 @@ function ec(t) {
|
|
|
13537
13554
|
};
|
|
13538
13555
|
});
|
|
13539
13556
|
}
|
|
13540
|
-
async function
|
|
13557
|
+
async function Py(t, e) {
|
|
13541
13558
|
const r = Zi(t, e);
|
|
13542
13559
|
return H(r);
|
|
13543
13560
|
}
|
|
13544
|
-
async function
|
|
13545
|
-
const n = ((await
|
|
13561
|
+
async function P_(t, e) {
|
|
13562
|
+
const n = ((await Py(t, e)).entry ?? []).filter(
|
|
13546
13563
|
(s) => !!s.resource
|
|
13547
13564
|
);
|
|
13548
13565
|
return ec(n);
|
|
13549
13566
|
}
|
|
13550
|
-
async function
|
|
13567
|
+
async function I_(t, e, r = 10, n = 1) {
|
|
13551
13568
|
const s = (n - 1) * r, o = Zi(
|
|
13552
13569
|
t,
|
|
13553
13570
|
e,
|
|
@@ -13561,27 +13578,27 @@ async function N_(t, e, r = 10, n = 1) {
|
|
|
13561
13578
|
total: a.total ?? i.length
|
|
13562
13579
|
};
|
|
13563
13580
|
}
|
|
13564
|
-
const
|
|
13565
|
-
async function
|
|
13566
|
-
return (await H(
|
|
13581
|
+
const Iy = (t) => `${K}/location?operator=ALL&s=byTags&tags=${encodeURIComponent(t)}&v=custom:(uuid,display,childLocations:(uuid,display,retired))`, $y = (t) => `${oe}/Location?_tag=${encodeURIComponent(t)}`;
|
|
13582
|
+
async function $_(t) {
|
|
13583
|
+
return (await H(Iy(t))).results ?? [];
|
|
13567
13584
|
}
|
|
13568
|
-
async function
|
|
13569
|
-
return await H(
|
|
13585
|
+
async function D_(t) {
|
|
13586
|
+
return await H($y(t));
|
|
13570
13587
|
}
|
|
13571
|
-
const
|
|
13572
|
-
let r = `${
|
|
13588
|
+
const Dy = oe + "/Immunization", Cy = (t, e) => {
|
|
13589
|
+
let r = `${Dy}?patient=${t}&_sort=-date&_count=100`;
|
|
13573
13590
|
return e && (r += `&status=${e}`), r;
|
|
13574
13591
|
};
|
|
13575
|
-
async function
|
|
13576
|
-
return (await
|
|
13592
|
+
async function C_(t, e) {
|
|
13593
|
+
return (await Ly(t, e)).entry?.filter((n) => n.resource?.resourceType === "Immunization").map((n) => n.resource) ?? [];
|
|
13577
13594
|
}
|
|
13578
|
-
async function
|
|
13595
|
+
async function Ly(t, e) {
|
|
13579
13596
|
return H(
|
|
13580
|
-
|
|
13597
|
+
Cy(t, e)
|
|
13581
13598
|
);
|
|
13582
13599
|
}
|
|
13583
|
-
const
|
|
13584
|
-
async function
|
|
13600
|
+
const xy = K + "/bahmnicore/visitDocument/uploadDocument", ky = "application";
|
|
13601
|
+
async function My(t) {
|
|
13585
13602
|
return new Promise((e, r) => {
|
|
13586
13603
|
const n = new FileReader();
|
|
13587
13604
|
n.onload = () => {
|
|
@@ -13594,7 +13611,7 @@ async function xy(t) {
|
|
|
13594
13611
|
let a = o, i = "";
|
|
13595
13612
|
const c = o.lastIndexOf(".");
|
|
13596
13613
|
c !== -1 && (a = o.substring(0, c), i = o.substring(c + 1).toLowerCase());
|
|
13597
|
-
const u = t.type ? t.type.split("/")[0] :
|
|
13614
|
+
const u = t.type ? t.type.split("/")[0] : ky;
|
|
13598
13615
|
e({
|
|
13599
13616
|
content: s,
|
|
13600
13617
|
fileName: a,
|
|
@@ -13606,8 +13623,8 @@ async function xy(t) {
|
|
|
13606
13623
|
}, n.readAsDataURL(t);
|
|
13607
13624
|
});
|
|
13608
13625
|
}
|
|
13609
|
-
async function
|
|
13610
|
-
const n = await
|
|
13626
|
+
async function L_(t, e, r) {
|
|
13627
|
+
const n = await My(t), s = {
|
|
13611
13628
|
content: n.content,
|
|
13612
13629
|
encounterTypeName: e,
|
|
13613
13630
|
fileName: n.fileName,
|
|
@@ -13615,29 +13632,29 @@ async function D_(t, e, r) {
|
|
|
13615
13632
|
format: n.format,
|
|
13616
13633
|
patientUuid: r
|
|
13617
13634
|
};
|
|
13618
|
-
return Ee(
|
|
13635
|
+
return Ee(xy, s);
|
|
13619
13636
|
}
|
|
13620
|
-
const
|
|
13637
|
+
const Uy = "/bahmni_config/openmrs/apps", tc = "org.bahmni.home.dashboard", qy = (t) => Array.isArray(t) ? t : Object.values(t), Fy = async (t = "home") => {
|
|
13621
13638
|
try {
|
|
13622
|
-
const e = `${
|
|
13639
|
+
const e = `${Uy}/${t}/v2/extension.json`, r = await fetch(e);
|
|
13623
13640
|
if (!r.ok)
|
|
13624
13641
|
throw new Error(`Failed to load base extensions: ${r.status}`);
|
|
13625
|
-
return
|
|
13642
|
+
return qy(await r.json());
|
|
13626
13643
|
} catch (e) {
|
|
13627
13644
|
throw console.error("Error fetching module extensions:", e), e;
|
|
13628
13645
|
}
|
|
13629
|
-
},
|
|
13646
|
+
}, jy = (t, e = tc, r = "link") => t.filter((n) => {
|
|
13630
13647
|
const s = n.extensionPointId === e, o = r === "all" || n.type === r;
|
|
13631
13648
|
return s && o;
|
|
13632
|
-
}),
|
|
13649
|
+
}), Vy = (t, e) => e === void 0 ? t : t.filter((r) => r.requiredPrivilege ? e.includes(r.requiredPrivilege) : !0), Hy = (t) => {
|
|
13633
13650
|
const e = navigator.onLine;
|
|
13634
13651
|
return t.filter((r) => !(r.exclusiveOnlineModule && !e || r.exclusiveOfflineModule && e));
|
|
13635
|
-
},
|
|
13636
|
-
const r = await
|
|
13637
|
-
return
|
|
13638
|
-
},
|
|
13639
|
-
|
|
13640
|
-
),
|
|
13652
|
+
}, By = (t) => [...t].sort((e, r) => (e.order ?? 0) - (r.order ?? 0)), x_ = async (t = tc, e) => {
|
|
13653
|
+
const r = await Fy("home"), n = jy(r, t), s = Vy(n, e), o = Hy(s);
|
|
13654
|
+
return By(o);
|
|
13655
|
+
}, zy = (t, e) => K + `/availableStocks?productUuid=${t}&locationUuid=${e}`, k_ = async (t, e) => await H(
|
|
13656
|
+
zy(t, e)
|
|
13657
|
+
), Yy = (t, e, r) => {
|
|
13641
13658
|
const n = t.find((o) => o.server === e);
|
|
13642
13659
|
if (!n)
|
|
13643
13660
|
throw new Error(`CDSS server "${e}" not found in configuration`);
|
|
@@ -13649,7 +13666,7 @@ const ky = "/bahmni_config/openmrs/apps", tc = "org.bahmni.home.dashboard", My =
|
|
|
13649
13666
|
`CDSS service "${r}" not found in server "${e}"`
|
|
13650
13667
|
);
|
|
13651
13668
|
return { serverConfig: n, serviceConfig: s };
|
|
13652
|
-
},
|
|
13669
|
+
}, Gy = (t, e) => {
|
|
13653
13670
|
if (!e || e.length === 0)
|
|
13654
13671
|
return {};
|
|
13655
13672
|
const r = {};
|
|
@@ -13663,8 +13680,8 @@ const ky = "/bahmni_config/openmrs/apps", tc = "org.bahmni.home.dashboard", My =
|
|
|
13663
13680
|
entry: s
|
|
13664
13681
|
});
|
|
13665
13682
|
}), r;
|
|
13666
|
-
},
|
|
13667
|
-
const s =
|
|
13683
|
+
}, M_ = async (t, e, r, n) => {
|
|
13684
|
+
const s = Yy(t, e.server, e.service), { serverConfig: o, serviceConfig: a } = s, i = Gy(
|
|
13668
13685
|
n,
|
|
13669
13686
|
a.contextResourceMap
|
|
13670
13687
|
), c = `${o.url}/${a.name}`, u = {
|
|
@@ -13681,7 +13698,7 @@ const ky = "/bahmni_config/openmrs/apps", tc = "org.bahmni.home.dashboard", My =
|
|
|
13681
13698
|
c,
|
|
13682
13699
|
u
|
|
13683
13700
|
)).cards || [];
|
|
13684
|
-
},
|
|
13701
|
+
}, U_ = (t, e) => {
|
|
13685
13702
|
const r = [];
|
|
13686
13703
|
return t.forEach((n) => {
|
|
13687
13704
|
!n.suggestions || n.suggestions.length === 0 || n.suggestions.forEach((s) => {
|
|
@@ -13698,270 +13715,271 @@ const ky = "/bahmni_config/openmrs/apps", tc = "org.bahmni.home.dashboard", My =
|
|
|
13698
13715
|
});
|
|
13699
13716
|
}), r;
|
|
13700
13717
|
};
|
|
13701
|
-
async function
|
|
13718
|
+
async function q_() {
|
|
13702
13719
|
return H(`${ls}/templates`);
|
|
13703
13720
|
}
|
|
13704
|
-
async function
|
|
13721
|
+
async function F_(t) {
|
|
13705
13722
|
return (await Ee(
|
|
13706
13723
|
`${ls}/render`,
|
|
13707
13724
|
t
|
|
13708
13725
|
)).html;
|
|
13709
13726
|
}
|
|
13710
|
-
const
|
|
13727
|
+
const Ky = (t, e, r) => {
|
|
13711
13728
|
let s = oe + "/Task?_sort=-_lastUpdated";
|
|
13712
13729
|
return t && (s += `&subject:Patient=${t}`), e && (s += `&based-on=${e}`), r && r.length > 0 && (s += `&encounter=${r.join(",")}`), s;
|
|
13713
13730
|
};
|
|
13714
|
-
async function
|
|
13731
|
+
async function j_(t, e, r) {
|
|
13715
13732
|
return H(
|
|
13716
|
-
|
|
13733
|
+
Ky(t, e, r)
|
|
13717
13734
|
);
|
|
13718
13735
|
}
|
|
13719
13736
|
export {
|
|
13720
|
-
|
|
13721
|
-
|
|
13737
|
+
CE as APPOINTMENT_IDENTIFIER_SYSTEM,
|
|
13738
|
+
DE as APPOINTMENT_STATUSES,
|
|
13722
13739
|
Wn as AUDIT_LOG_EVENT_DETAILS,
|
|
13723
13740
|
Wh as AllergySeverity,
|
|
13724
13741
|
Kh as AllergyStatus,
|
|
13725
13742
|
kd as AttributeFormat,
|
|
13726
13743
|
Md as AttributeInputType,
|
|
13727
13744
|
il as BAHMNI_APP_BASE_PATH,
|
|
13728
|
-
|
|
13745
|
+
yw as BAHMNI_HOME_PATH,
|
|
13729
13746
|
fi as BAHMNI_USER_LOCATION_COOKIE,
|
|
13730
13747
|
Jl as BIRTH_TIME_EXT_URL,
|
|
13731
13748
|
ts as CDSS_CHECK_EVENT,
|
|
13732
13749
|
rs as CDSS_RESULTS_EVENT,
|
|
13733
|
-
|
|
13734
|
-
|
|
13750
|
+
Dw as CONCEPT_DATATYPE_COMPLEX,
|
|
13751
|
+
$w as CONCEPT_DATATYPE_NUMERIC,
|
|
13735
13752
|
es as CONSULTATION_SAVED_EVENT,
|
|
13736
13753
|
Xl as DATETIME_REGEX_PATTERN,
|
|
13737
|
-
|
|
13754
|
+
xw as DATE_REGEX_PATTERN,
|
|
13738
13755
|
Di as DEFAULT_DATE_FORMAT,
|
|
13739
13756
|
Sh as DEFAULT_DATE_FORMAT_STORAGE_KEY,
|
|
13740
13757
|
Oh as DEFAULT_TIME_FORMAT,
|
|
13741
13758
|
Ph as DURATION_UNIT_TO_DAYS,
|
|
13742
|
-
|
|
13743
|
-
|
|
13744
|
-
|
|
13745
|
-
|
|
13746
|
-
|
|
13747
|
-
|
|
13748
|
-
|
|
13749
|
-
|
|
13750
|
-
|
|
13751
|
-
|
|
13759
|
+
Tw as FHIR_ENCOUNTER_CLASS_CODE_SYSTEM,
|
|
13760
|
+
Rw as FHIR_ENCOUNTER_TAG_SYSTEM,
|
|
13761
|
+
vw as FHIR_ENCOUNTER_TYPE_CODE_SYSTEM,
|
|
13762
|
+
Aw as FHIR_LAB_ORDER_CONCEPT_TYPE_EXTENSION_URL,
|
|
13763
|
+
Pw as FHIR_OBSERVATION_FORM_NAMESPACE_PATH_URL,
|
|
13764
|
+
Nw as FHIR_OBSERVATION_INTERPRETATION_SYSTEM,
|
|
13765
|
+
Cw as FHIR_OBSERVATION_STATUS_FINAL,
|
|
13766
|
+
Iw as FHIR_OBSERVATION_VALUE_ATTACHMENT_URL,
|
|
13767
|
+
Lw as FHIR_RESOURCE_TYPE_OBSERVATION,
|
|
13768
|
+
Ow as HL7_CONDITION_CATEGORY_CODE_SYSTEM,
|
|
13752
13769
|
ui as HL7_CONDITION_CATEGORY_CONDITION_CODE,
|
|
13753
13770
|
li as HL7_CONDITION_CATEGORY_DIAGNOSIS_CODE,
|
|
13754
13771
|
Ql as HL7_CONDITION_CLINICAL_STATUS_CODE_SYSTEM,
|
|
13755
|
-
|
|
13756
|
-
|
|
13757
|
-
|
|
13772
|
+
Sw as HL7_CONDITION_VERIFICATION_STATUS_CODE_SYSTEM,
|
|
13773
|
+
kw as INTERPRETATION_TO_CODE,
|
|
13774
|
+
YE as ISO_DATE_FORMAT,
|
|
13758
13775
|
Ku as LOGIN_PATH,
|
|
13759
|
-
|
|
13760
|
-
|
|
13761
|
-
|
|
13762
|
-
|
|
13763
|
-
|
|
13776
|
+
Jb as MATCH_REASON_MESSAGES,
|
|
13777
|
+
nE as MAX_NAME_LENGTH,
|
|
13778
|
+
rE as MAX_PATIENT_AGE_YEARS,
|
|
13779
|
+
sE as MAX_PHONE_NUMBER_LENGTH,
|
|
13780
|
+
yb as MEDICATIONS_INPUT_CONTROL_KEY,
|
|
13764
13781
|
He as MedicationStatus,
|
|
13765
13782
|
oe as OPENMRS_FHIR_R4,
|
|
13766
13783
|
K as OPENMRS_REST_V1,
|
|
13767
|
-
|
|
13768
|
-
|
|
13769
|
-
|
|
13770
|
-
|
|
13771
|
-
|
|
13772
|
-
|
|
13773
|
-
|
|
13774
|
-
|
|
13775
|
-
|
|
13776
|
-
|
|
13777
|
-
|
|
13778
|
-
|
|
13779
|
-
|
|
13780
|
-
|
|
13784
|
+
Cb as ORDER_TYPE_QUERY_KEY,
|
|
13785
|
+
Db as PENDING_REPORT_STATUSES,
|
|
13786
|
+
$b as PROCESSED_REPORT_STATUSES,
|
|
13787
|
+
qb as USER_PINNED_PREFERENCE_URL,
|
|
13788
|
+
KE as calculateAge,
|
|
13789
|
+
eb as calculateEndDate,
|
|
13790
|
+
JE as calculateOnsetDate,
|
|
13791
|
+
Gw as camelToScreamingSnakeCase,
|
|
13792
|
+
Zb as canResumeOwnInSessionEncounter,
|
|
13793
|
+
qw as capitalize,
|
|
13794
|
+
IE as checkIfActiveVisitExists,
|
|
13795
|
+
UE as checkInAppointment,
|
|
13796
|
+
GE as computeAgeDetails,
|
|
13797
|
+
h_ as convertImmutableToPlainObject,
|
|
13781
13798
|
Ih as convertTo24HourFormat,
|
|
13782
|
-
|
|
13783
|
-
|
|
13784
|
-
|
|
13785
|
-
|
|
13786
|
-
|
|
13787
|
-
|
|
13799
|
+
Ww as convertToSentenceCase,
|
|
13800
|
+
zE as createAppointmentUnavailability,
|
|
13801
|
+
Gb as createFhirEncounter,
|
|
13802
|
+
hE as createFhirPatient,
|
|
13803
|
+
fE as createPatient,
|
|
13804
|
+
$E as createVisitForPatient,
|
|
13788
13805
|
ti as del,
|
|
13789
|
-
|
|
13806
|
+
jE as deleteAppointmentService,
|
|
13790
13807
|
ed as deleteCookie,
|
|
13791
13808
|
Ud as dispatchAuditEvent,
|
|
13792
|
-
|
|
13793
|
-
|
|
13794
|
-
|
|
13795
|
-
|
|
13796
|
-
|
|
13797
|
-
|
|
13798
|
-
|
|
13799
|
-
|
|
13800
|
-
|
|
13801
|
-
|
|
13802
|
-
|
|
13803
|
-
|
|
13804
|
-
|
|
13805
|
-
|
|
13806
|
-
|
|
13807
|
-
|
|
13808
|
-
|
|
13809
|
-
|
|
13810
|
-
|
|
13811
|
-
|
|
13812
|
-
|
|
13813
|
-
|
|
13814
|
-
|
|
13815
|
-
|
|
13816
|
-
|
|
13809
|
+
S_ as dispatchCDSSCheck,
|
|
13810
|
+
O_ as dispatchCDSSResults,
|
|
13811
|
+
T_ as dispatchConsultationSaved,
|
|
13812
|
+
tb as doDateRangesOverlap,
|
|
13813
|
+
v_ as extractAttributes,
|
|
13814
|
+
m_ as extractNotesFromFormData,
|
|
13815
|
+
Hb as fetchAllProviders,
|
|
13816
|
+
cb as fetchAndFormatAllergenConcepts,
|
|
13817
|
+
u_ as fetchFormMetadata,
|
|
13818
|
+
Eb as fetchMedicationOrdersMetadata,
|
|
13819
|
+
Fy as fetchModuleExtensions,
|
|
13820
|
+
c_ as fetchObservationForms,
|
|
13821
|
+
iE as fetchPatientPhotoFromUrl,
|
|
13822
|
+
Ob as fetchQualityAssessment,
|
|
13823
|
+
ub as fetchReactionConcepts,
|
|
13824
|
+
Hy as filterByOnlineStatus,
|
|
13825
|
+
Vy as filterByPrivilege,
|
|
13826
|
+
U_ as filterCdsCardsForItems,
|
|
13827
|
+
Bw as filterReplacementEntries,
|
|
13828
|
+
Qb as findActiveEncounterInSession,
|
|
13829
|
+
QE as formatDateDistance,
|
|
13830
|
+
WE as formatDateTime,
|
|
13831
|
+
zw as formatUrl,
|
|
13832
|
+
Uw as generateId,
|
|
13833
|
+
mE as generateIdentifier,
|
|
13817
13834
|
Zl as generateUUID,
|
|
13818
13835
|
H as get,
|
|
13819
13836
|
zi as getActiveVisit,
|
|
13820
13837
|
Yd as getActiveVisitByPatient,
|
|
13821
|
-
|
|
13822
|
-
|
|
13838
|
+
wE as getAddressHierarchyEntries,
|
|
13839
|
+
FE as getAllAppointmentServices,
|
|
13823
13840
|
Yh as getAllergies,
|
|
13824
|
-
|
|
13825
|
-
|
|
13826
|
-
|
|
13827
|
-
|
|
13828
|
-
|
|
13829
|
-
|
|
13830
|
-
|
|
13831
|
-
|
|
13832
|
-
|
|
13841
|
+
qE as getAppointmentById,
|
|
13842
|
+
BE as getAppointmentUnavailabilities,
|
|
13843
|
+
Xw as getAvailableLocations,
|
|
13844
|
+
k_ as getAvailableStocks,
|
|
13845
|
+
xb as getCategoryUuidFromOrderTypes,
|
|
13846
|
+
ab as getConceptById,
|
|
13847
|
+
pb as getConditionPage,
|
|
13848
|
+
fb as getConditions,
|
|
13849
|
+
Ub as getConfig,
|
|
13833
13850
|
di as getCookieByName,
|
|
13834
|
-
|
|
13835
|
-
|
|
13836
|
-
|
|
13837
|
-
|
|
13838
|
-
|
|
13839
|
-
|
|
13840
|
-
|
|
13841
|
-
|
|
13842
|
-
|
|
13843
|
-
|
|
13844
|
-
|
|
13851
|
+
Vb as getCurrentProvider,
|
|
13852
|
+
__ as getCurrentStateName,
|
|
13853
|
+
Jw as getCurrentUser,
|
|
13854
|
+
a_ as getCurrentUserPrivileges,
|
|
13855
|
+
Qw as getDefaultDateFormat,
|
|
13856
|
+
gb as getDiagnosesPage,
|
|
13857
|
+
Pb as getDiagnosticReportBundle,
|
|
13858
|
+
Nb as getDiagnosticReports,
|
|
13859
|
+
I_ as getDocumentReferencePage,
|
|
13860
|
+
Py as getDocumentReferences,
|
|
13861
|
+
zb as getEncounterByUuid,
|
|
13845
13862
|
Yi as getEncounterSessionDuration,
|
|
13846
13863
|
my as getEncounterSessionSnapshot,
|
|
13847
|
-
|
|
13848
|
-
|
|
13849
|
-
|
|
13850
|
-
|
|
13851
|
-
|
|
13852
|
-
|
|
13853
|
-
|
|
13854
|
-
|
|
13864
|
+
s_ as getEncountersAndVisitsForEOC,
|
|
13865
|
+
Mb as getExistingServiceRequestsForAllCategories,
|
|
13866
|
+
jy as getExtensionsByPoint,
|
|
13867
|
+
D_ as getFHIRLocationsByTag,
|
|
13868
|
+
Lb as getFlattenedInvestigations,
|
|
13869
|
+
ZE as getFormattedAge,
|
|
13870
|
+
lb as getFormattedAllergies,
|
|
13871
|
+
P_ as getFormattedDocumentReferences,
|
|
13855
13872
|
qr as getFormattedError,
|
|
13856
|
-
|
|
13857
|
-
|
|
13858
|
-
|
|
13859
|
-
|
|
13860
|
-
|
|
13861
|
-
|
|
13862
|
-
|
|
13863
|
-
|
|
13864
|
-
|
|
13865
|
-
|
|
13873
|
+
aE as getFormattedPatientById,
|
|
13874
|
+
yE as getGenders,
|
|
13875
|
+
dE as getIdentifierData,
|
|
13876
|
+
lE as getIdentifierTypes,
|
|
13877
|
+
TE as getInputTypeForFormat,
|
|
13878
|
+
Ab as getLabInvestigationsBundle,
|
|
13879
|
+
$_ as getLocationByTag,
|
|
13880
|
+
vb as getMedicationByUuid,
|
|
13881
|
+
Yb as getObservationsBundleByEncounterUuid,
|
|
13882
|
+
kb as getOrderTypeNames,
|
|
13866
13883
|
ws as getOrderTypes,
|
|
13867
|
-
|
|
13868
|
-
|
|
13869
|
-
|
|
13884
|
+
EE as getOrderedAddressHierarchyLevels,
|
|
13885
|
+
kE as getPastAppointments,
|
|
13886
|
+
HE as getPastAppointmentsPage,
|
|
13870
13887
|
Pd as getPatientById,
|
|
13871
|
-
|
|
13872
|
-
|
|
13873
|
-
|
|
13888
|
+
mb as getPatientDiagnoses,
|
|
13889
|
+
l_ as getPatientFormData,
|
|
13890
|
+
C_ as getPatientImmunizations,
|
|
13874
13891
|
mm as getPatientMedicationBundle,
|
|
13875
|
-
|
|
13876
|
-
|
|
13892
|
+
wb as getPatientMedications,
|
|
13893
|
+
jb as getPatientObservations,
|
|
13877
13894
|
sy as getPatientObservationsBundle,
|
|
13878
|
-
|
|
13879
|
-
|
|
13880
|
-
|
|
13881
|
-
|
|
13882
|
-
|
|
13883
|
-
|
|
13884
|
-
|
|
13885
|
-
|
|
13895
|
+
Fb as getPatientObservationsWithEncounterBundle,
|
|
13896
|
+
bE as getPatientProfile,
|
|
13897
|
+
y_ as getPatientPrograms,
|
|
13898
|
+
w_ as getPatientProgramsPage,
|
|
13899
|
+
Tb as getPatientRadiologyInvestigationBundle,
|
|
13900
|
+
Rb as getPatientRadiologyInvestigationBundleWithImagingStudy,
|
|
13901
|
+
Sb as getPatientRadiologyInvestigations,
|
|
13902
|
+
vE as getPersonAttributeTypes,
|
|
13886
13903
|
xd as getPrimaryIdentifierType,
|
|
13887
|
-
|
|
13888
|
-
|
|
13889
|
-
|
|
13890
|
-
|
|
13904
|
+
Vw as getPriorityByOrder,
|
|
13905
|
+
E_ as getProgramByUUID,
|
|
13906
|
+
Bb as getProviderLoginLocations,
|
|
13907
|
+
_E as getRelationshipTypes,
|
|
13891
13908
|
zt as getServiceRequests,
|
|
13892
|
-
|
|
13893
|
-
|
|
13894
|
-
|
|
13895
|
-
|
|
13896
|
-
|
|
13897
|
-
|
|
13909
|
+
j_ as getTasks,
|
|
13910
|
+
q_ as getTemplates,
|
|
13911
|
+
nb as getTimeInMinutes,
|
|
13912
|
+
XE as getTodayDate,
|
|
13913
|
+
xE as getUpcomingAppointments,
|
|
13914
|
+
VE as getUpcomingAppointmentsPage,
|
|
13898
13915
|
fs as getUserLoginLocation,
|
|
13899
13916
|
tn as getUserPreferredLocale,
|
|
13900
|
-
|
|
13901
|
-
|
|
13902
|
-
|
|
13903
|
-
|
|
13917
|
+
_b as getVaccinations,
|
|
13918
|
+
Yw as getValueType,
|
|
13919
|
+
x_ as getVisibleModules,
|
|
13920
|
+
PE as getVisitTypes,
|
|
13904
13921
|
uy as getVisits,
|
|
13905
|
-
|
|
13906
|
-
|
|
13907
|
-
|
|
13908
|
-
|
|
13909
|
-
|
|
13910
|
-
|
|
13911
|
-
|
|
13912
|
-
|
|
13913
|
-
SE as
|
|
13914
|
-
|
|
13915
|
-
|
|
13916
|
-
|
|
13922
|
+
g_ as getVitalFlowSheetData,
|
|
13923
|
+
Hw as groupByDate,
|
|
13924
|
+
Ry as hasMissingMandatoryVisibleField,
|
|
13925
|
+
i_ as hasPrivilege,
|
|
13926
|
+
bw as initAppI18n,
|
|
13927
|
+
o_ as initializeAuditListener,
|
|
13928
|
+
M_ as invokeCDSSRule,
|
|
13929
|
+
RE as isBooleanFormat,
|
|
13930
|
+
SE as isConceptFormat,
|
|
13931
|
+
AE as isDateFormat,
|
|
13932
|
+
OE as isNumberFormat,
|
|
13933
|
+
jw as isStringEmpty,
|
|
13934
|
+
NE as isTextFormat,
|
|
13917
13935
|
Ey as logAuditEvent,
|
|
13918
|
-
|
|
13919
|
-
|
|
13920
|
-
|
|
13921
|
-
|
|
13922
|
-
|
|
13923
|
-
|
|
13936
|
+
Zw as logout,
|
|
13937
|
+
db as mapAllergyToInputEntry,
|
|
13938
|
+
oE as mapGenderFromFhir,
|
|
13939
|
+
hb as markConditionAsInactive,
|
|
13940
|
+
Ew as normalizeTranslationKey,
|
|
13941
|
+
sb as notificationService,
|
|
13924
13942
|
td as parseQueryParams,
|
|
13925
|
-
|
|
13943
|
+
ww as patch,
|
|
13926
13944
|
Ee as post,
|
|
13927
13945
|
ds as put,
|
|
13928
|
-
|
|
13929
|
-
|
|
13930
|
-
|
|
13931
|
-
|
|
13932
|
-
|
|
13933
|
-
|
|
13934
|
-
|
|
13935
|
-
|
|
13936
|
-
|
|
13946
|
+
Mw as refreshQueries,
|
|
13947
|
+
F_ as renderAsHtml,
|
|
13948
|
+
r_ as resetEncounterSession,
|
|
13949
|
+
Kw as resolveComboBoxItems,
|
|
13950
|
+
Xb as resolveEncounterMatchDecision,
|
|
13951
|
+
eE as saveUserLocation,
|
|
13952
|
+
LE as searchAppointmentsByAttribute,
|
|
13953
|
+
ib as searchConceptByName,
|
|
13954
|
+
ob as searchConcepts,
|
|
13937
13955
|
Xn as searchEncounters,
|
|
13938
13956
|
kr as searchFHIRConcepts,
|
|
13939
13957
|
qh as searchFHIRConceptsByName,
|
|
13940
|
-
|
|
13941
|
-
|
|
13942
|
-
|
|
13943
|
-
|
|
13944
|
-
|
|
13945
|
-
|
|
13946
|
-
|
|
13947
|
-
|
|
13948
|
-
|
|
13958
|
+
bb as searchMedications,
|
|
13959
|
+
uE as searchPatientByCustomAttribute,
|
|
13960
|
+
cE as searchPatientByNameOrId,
|
|
13961
|
+
Fw as setCookie,
|
|
13962
|
+
e_ as setEncounterSessionDecision,
|
|
13963
|
+
t_ as setEncounterSessionLoading,
|
|
13964
|
+
Wb as shouldEnableEncounterFilter,
|
|
13965
|
+
rb as sortByDate,
|
|
13966
|
+
By as sortByOrder,
|
|
13949
13967
|
hy as subscribeEncounterSession,
|
|
13950
|
-
|
|
13951
|
-
|
|
13952
|
-
|
|
13953
|
-
|
|
13954
|
-
|
|
13955
|
-
|
|
13956
|
-
|
|
13957
|
-
|
|
13958
|
-
|
|
13959
|
-
|
|
13960
|
-
|
|
13961
|
-
|
|
13962
|
-
|
|
13963
|
-
|
|
13964
|
-
|
|
13965
|
-
|
|
13966
|
-
|
|
13968
|
+
p_ as transformContainerObservationsToForm2Observations,
|
|
13969
|
+
d_ as transformFormDataToObservations,
|
|
13970
|
+
f_ as transformObservationsToFormData,
|
|
13971
|
+
ME as updateAppointmentStatus,
|
|
13972
|
+
Ib as updateDiagnosticReportBundle,
|
|
13973
|
+
Kb as updateFhirEncounter,
|
|
13974
|
+
gE as updateFhirPatient,
|
|
13975
|
+
pE as updatePatient,
|
|
13976
|
+
b_ as updateProgramState,
|
|
13977
|
+
tE as updateSessionLocation,
|
|
13978
|
+
L_ as uploadDocument,
|
|
13979
|
+
A_ as useCDSSCheckListener,
|
|
13980
|
+
N_ as useCDSSResultsListener,
|
|
13981
|
+
_w as useCamera,
|
|
13982
|
+
n_ as useEncounterSessionStore,
|
|
13983
|
+
R_ as useSubscribeConsultationSaved,
|
|
13984
|
+
B_ as useTranslation
|
|
13967
13985
|
};
|