@bahmni/services 0.0.1-dev.60 → 0.0.1-dev.66
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/errorHandling/utils.d.ts.map +1 -1
- package/dist/i18n/index.d.ts +1 -0
- package/dist/i18n/index.d.ts.map +1 -1
- package/dist/i18n/translationService.d.ts +1 -0
- package/dist/i18n/translationService.d.ts.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +153 -145
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../src/errorHandling/utils.ts"],"names":[],"mappings":"AAEA;;;;GAIG;AACH,eAAO,MAAM,iBAAiB,GAC5B,OAAO,OAAO,KACb;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,OAAO,EAAE,MAAM,CAAA;
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../src/errorHandling/utils.ts"],"names":[],"mappings":"AAEA;;;;GAIG;AACH,eAAO,MAAM,iBAAiB,GAC5B,OAAO,OAAO,KACb;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,OAAO,EAAE,MAAM,CAAA;CAyElC,CAAC"}
|
package/dist/i18n/index.d.ts
CHANGED
package/dist/i18n/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/i18n/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,QAAQ,CAAC;AAChD,OAAO,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/i18n/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,QAAQ,CAAC;AAChD,OAAO,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;AAC/C,OAAO,EAAE,uBAAuB,EAAE,MAAM,sBAAsB,CAAC"}
|
|
@@ -22,4 +22,5 @@ export declare const getTranslationFile: (url: string) => Promise<Record<string,
|
|
|
22
22
|
* @throws Will not throw errors, but will return empty translations on failure
|
|
23
23
|
*/
|
|
24
24
|
export declare const getTranslations: (lang: string, namespace: string) => Promise<Record<string, Record<string, Record<string, string>>>>;
|
|
25
|
+
export declare const normalizeTranslationKey: (module: string, fieldName: string) => string;
|
|
25
26
|
//# sourceMappingURL=translationService.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"translationService.d.ts","sourceRoot":"","sources":["../../src/i18n/translationService.ts"],"names":[],"mappings":"AAQA;;;GAGG;AACH,eAAO,MAAM,sBAAsB,QAAO,MAIzC,CAAC;AAEF;;;;;;GAMG;AACH,eAAO,MAAM,kBAAkB,GAC7B,KAAK,MAAM,KACV,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAchC,CAAC;AAiCF;;;;;;;;;GASG;AACH,eAAO,MAAM,eAAe,GAC1B,MAAM,MAAM,EACZ,WAAW,MAAM,KAChB,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,CAAC,CAmBhE,CAAC"}
|
|
1
|
+
{"version":3,"file":"translationService.d.ts","sourceRoot":"","sources":["../../src/i18n/translationService.ts"],"names":[],"mappings":"AAQA;;;GAGG;AACH,eAAO,MAAM,sBAAsB,QAAO,MAIzC,CAAC;AAEF;;;;;;GAMG;AACH,eAAO,MAAM,kBAAkB,GAC7B,KAAK,MAAM,KACV,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAchC,CAAC;AAiCF;;;;;;;;;GASG;AACH,eAAO,MAAM,eAAe,GAC1B,MAAM,MAAM,EACZ,WAAW,MAAM,KAChB,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,CAAC,CAmBhE,CAAC;AAEF,eAAO,MAAM,uBAAuB,GAClC,QAAQ,MAAM,EACd,WAAW,MAAM,KAChB,MAOF,CAAC"}
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export { get, post, put, del } from './api';
|
|
2
|
-
export { initAppI18n, useTranslation } from './i18n';
|
|
2
|
+
export { initAppI18n, useTranslation, normalizeTranslationKey } from './i18n';
|
|
3
3
|
export { useCamera } from './cameraService';
|
|
4
4
|
export { getPatientById, getFormattedPatientById, searchPatientByNameOrId, searchPatientByCustomAttribute, getIdentifierTypes, getPrimaryIdentifierType, createPatient, updatePatient, createVisit, getActiveVisitByPatient, getIdentifierData, getGenders, getAddressHierarchyEntries, getVisitTypes, getVisitLocationUUID, getOrderedAddressHierarchyLevels, getPatientImageAsDataUrl, getPatientProfile, getPersonAttributeTypes, getRelationshipTypes, type FormattedPatientData, type PatientSearchResult, type PatientSearchResultBundle, type IdentifierSource, type IdentifierType, type IdentifierTypesResponse, type CreatePatientRequest, type CreatePatientResponse, type VisitData, type PatientName, type PatientAddress, type PatientIdentifier, type PatientAttribute, type AddressHierarchyEntry, type OrderedAddressHierarchyLevel, type OrderedAddressHierarchyLevels, type PatientProfileResponse, type PersonAttributeType, type PersonAttributeTypesResponse, type ConceptAnswer, type PersonAttributeConcept, AttributeFormat, AttributeInputType, getInputTypeForFormat, isBooleanFormat, isConceptFormat, isNumberFormat, isDateFormat, isTextFormat, MAX_PATIENT_AGE_YEARS, MAX_NAME_LENGTH, MAX_PHONE_NUMBER_LENGTH, } from './patientService';
|
|
5
5
|
export { searchAppointmentsByAttribute, updateAppointmentStatus, getAppointmentById, } from './AppointmentService/appointmmetService';
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,IAAI,EAAE,GAAG,EAAE,GAAG,EAAE,MAAM,OAAO,CAAC;AAC5C,OAAO,EAAE,WAAW,EAAE,cAAc,EAAE,MAAM,QAAQ,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"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"}
|
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { initReactI18next as uo } from "react-i18next";
|
|
2
|
-
import { useTranslation as
|
|
2
|
+
import { useTranslation as ew } from "react-i18next";
|
|
3
3
|
import { useRef as Un, useCallback as Yr, useEffect as lo } from "react";
|
|
4
4
|
function Zs(e, t) {
|
|
5
5
|
return function() {
|
|
@@ -1752,18 +1752,22 @@ const {
|
|
|
1752
1752
|
getAdapter: wy,
|
|
1753
1753
|
mergeConfig: vy
|
|
1754
1754
|
} = le, ut = (e) => {
|
|
1755
|
+
var n;
|
|
1755
1756
|
let t = "Error", r = "An unexpected error occurred";
|
|
1756
1757
|
if (!e)
|
|
1757
1758
|
return { title: t, message: r };
|
|
1758
1759
|
if (typeof e == "string")
|
|
1759
1760
|
r = e;
|
|
1760
1761
|
else if (le.isAxiosError(e)) {
|
|
1761
|
-
const
|
|
1762
|
-
if (
|
|
1763
|
-
switch (
|
|
1764
|
-
case 400:
|
|
1765
|
-
t = "Bad Request"
|
|
1762
|
+
const a = e;
|
|
1763
|
+
if (a != null && a.response)
|
|
1764
|
+
switch (a.response.status) {
|
|
1765
|
+
case 400: {
|
|
1766
|
+
t = "Bad Request";
|
|
1767
|
+
const i = a.response.data;
|
|
1768
|
+
r = ((n = i == null ? void 0 : i.error) == null ? void 0 : n.message) ?? (i == null ? void 0 : i.message) ?? "Invalid input parameters. Please check your request and try again.";
|
|
1766
1769
|
break;
|
|
1770
|
+
}
|
|
1767
1771
|
case 401:
|
|
1768
1772
|
t = "Unauthorized", r = "You are not authorized to perform this action. Please log in again.";
|
|
1769
1773
|
break;
|
|
@@ -1781,8 +1785,8 @@ const {
|
|
|
1781
1785
|
break;
|
|
1782
1786
|
default: {
|
|
1783
1787
|
t = "Error";
|
|
1784
|
-
const
|
|
1785
|
-
r = (
|
|
1788
|
+
const i = a.response.data;
|
|
1789
|
+
r = (i == null ? void 0 : i.message) ?? a.message ?? "An unknown error occurred";
|
|
1786
1790
|
}
|
|
1787
1791
|
}
|
|
1788
1792
|
else e instanceof Error ? r = e.message : (t = "Network Error", r = "Unable to connect to the server. Please check your internet connection.");
|
|
@@ -3668,7 +3672,10 @@ const Du = process.env.PUBLIC_URL ?? "/", De = "/openmrs/ws/fhir2/R4", ie = "/op
|
|
|
3668
3672
|
}, e !== "en" && (r.en = {
|
|
3669
3673
|
[t]: await _a(t, "en")
|
|
3670
3674
|
}), r;
|
|
3671
|
-
}, Ry =
|
|
3675
|
+
}, Ry = (e, t) => {
|
|
3676
|
+
const r = e.toUpperCase(), n = t.toUpperCase().replace(/\s+/g, "_").replace(/[^A-Z0-9_]/g, "");
|
|
3677
|
+
return `${r}_${n}`;
|
|
3678
|
+
}, Py = async (e) => {
|
|
3672
3679
|
const t = qr(), r = await Uu(t, e);
|
|
3673
3680
|
return await se.use(Ai).use(uo).init({
|
|
3674
3681
|
fallbackLng: "en",
|
|
@@ -3687,7 +3694,7 @@ const Du = process.env.PUBLIC_URL ?? "/", De = "/openmrs/ws/fhir2/R4", ie = "/op
|
|
|
3687
3694
|
}
|
|
3688
3695
|
}), se;
|
|
3689
3696
|
};
|
|
3690
|
-
function
|
|
3697
|
+
function Ty() {
|
|
3691
3698
|
const e = Un(null), t = Un(null), r = Yr(async () => {
|
|
3692
3699
|
t.current && (t.current.getTracks().forEach((i) => i.stop()), t.current = null);
|
|
3693
3700
|
const s = await navigator.mediaDevices.getUserMedia({
|
|
@@ -6422,7 +6429,7 @@ const Na = {
|
|
|
6422
6429
|
weekStartsOn: 1,
|
|
6423
6430
|
firstWeekContainsDate: 4
|
|
6424
6431
|
}
|
|
6425
|
-
}, Xf = "dd/MM/yyyy",
|
|
6432
|
+
}, Xf = "dd/MM/yyyy", Oy = "MMMM dd, yyyy", Ay = "do MMM, yyyy", Qf = "dd/MM/yyyy HH:mm", Ny = "yyyy-MM-dd", Dy = "d/m/Y", Pe = {
|
|
6426
6433
|
PARSE_ERROR: "DATE_ERROR_PARSE",
|
|
6427
6434
|
FORMAT_ERROR: "DATE_ERROR_FORMAT",
|
|
6428
6435
|
EMPTY_OR_INVALID: "DATE_ERROR_EMPTY_OR_INVALID",
|
|
@@ -6502,13 +6509,13 @@ function Ji(e, t, r) {
|
|
|
6502
6509
|
const a = Zf();
|
|
6503
6510
|
return { formattedResult: Gl(n, t, { locale: a }) };
|
|
6504
6511
|
}
|
|
6505
|
-
function
|
|
6512
|
+
function Cy(e, t) {
|
|
6506
6513
|
return Ji(e, Qf, t);
|
|
6507
6514
|
}
|
|
6508
6515
|
function th(e, t, r = Xf) {
|
|
6509
6516
|
return Ji(e, r, t);
|
|
6510
6517
|
}
|
|
6511
|
-
function
|
|
6518
|
+
function Iy(e, t, r) {
|
|
6512
6519
|
if (!e || !Nt(e) || t === null || t === void 0 || !r || typeof t != "number")
|
|
6513
6520
|
return;
|
|
6514
6521
|
const n = new Date(e);
|
|
@@ -6523,7 +6530,7 @@ function Cy(e, t, r) {
|
|
|
6523
6530
|
return;
|
|
6524
6531
|
}
|
|
6525
6532
|
}
|
|
6526
|
-
function
|
|
6533
|
+
function ky(e, t) {
|
|
6527
6534
|
if (e == null)
|
|
6528
6535
|
return {
|
|
6529
6536
|
formattedResult: "",
|
|
@@ -6575,11 +6582,11 @@ function Iy(e, t) {
|
|
|
6575
6582
|
}
|
|
6576
6583
|
return { formattedResult: c };
|
|
6577
6584
|
}
|
|
6578
|
-
const
|
|
6585
|
+
const Ly = () => {
|
|
6579
6586
|
const e = /* @__PURE__ */ new Date();
|
|
6580
6587
|
return e.setHours(0, 0, 0, 0), e;
|
|
6581
6588
|
};
|
|
6582
|
-
function
|
|
6589
|
+
function My(e, t) {
|
|
6583
6590
|
var l, d, p;
|
|
6584
6591
|
const r = new Date(e), a = new Intl.DateTimeFormat("en-US", {
|
|
6585
6592
|
day: "2-digit",
|
|
@@ -6596,11 +6603,11 @@ function Ly(e, t) {
|
|
|
6596
6603
|
}
|
|
6597
6604
|
return c;
|
|
6598
6605
|
}
|
|
6599
|
-
function
|
|
6606
|
+
function xy(e) {
|
|
6600
6607
|
const t = new Date(e), r = /* @__PURE__ */ new Date(), n = In(r, t), a = Cn(r, t) - n * 12;
|
|
6601
6608
|
return `${n} years ${a} months`;
|
|
6602
6609
|
}
|
|
6603
|
-
function
|
|
6610
|
+
function qy(e, t, r = !1) {
|
|
6604
6611
|
return !e || !Array.isArray(e) ? [] : e.sort((n, a) => {
|
|
6605
6612
|
const s = new Date(n[t]), i = new Date(a[t]);
|
|
6606
6613
|
if (isNaN(s.getTime()) && isNaN(i.getTime())) return 0;
|
|
@@ -6610,18 +6617,18 @@ function xy(e, t, r = !1) {
|
|
|
6610
6617
|
return r ? o : -o;
|
|
6611
6618
|
});
|
|
6612
6619
|
}
|
|
6613
|
-
const
|
|
6620
|
+
const jy = (e, t) => {
|
|
6614
6621
|
const r = /* @__PURE__ */ new Date(), n = new Date(r.getFullYear(), r.getMonth(), r.getDate()), a = new Date(e);
|
|
6615
6622
|
return {
|
|
6616
6623
|
today: () => Gu(a, n),
|
|
6617
6624
|
past: () => Jl(a, n),
|
|
6618
6625
|
future: () => Yl(a, n)
|
|
6619
6626
|
}[t]();
|
|
6620
|
-
},
|
|
6627
|
+
}, Uy = async (e, t, r) => {
|
|
6621
6628
|
const { exact: n = !0, refetchActiveNow: a = !0 } = r ?? {};
|
|
6622
6629
|
await e.cancelQueries({ queryKey: t, exact: n }), await e.removeQueries({ queryKey: t, exact: n }), await e.invalidateQueries({ queryKey: t, exact: n }), a && await e.refetchQueries({ queryKey: t, exact: n, type: "active" });
|
|
6623
6630
|
}, rh = () => Math.random().toString(36).substring(2, 9);
|
|
6624
|
-
function
|
|
6631
|
+
function Fy(e, t = " -") {
|
|
6625
6632
|
return e ? e.toLowerCase().split(new RegExp(`[${t}]+`)).map((n) => n.charAt(0).toUpperCase() + n.slice(1)).join(" ") : "";
|
|
6626
6633
|
}
|
|
6627
6634
|
function Xi(e) {
|
|
@@ -6633,7 +6640,7 @@ function Xi(e) {
|
|
|
6633
6640
|
}
|
|
6634
6641
|
return "";
|
|
6635
6642
|
}
|
|
6636
|
-
const
|
|
6643
|
+
const Vy = (e) => !e || e.trim().length === 0, Hy = (e, t) => {
|
|
6637
6644
|
if (!e || !t || t.length === 0)
|
|
6638
6645
|
return 999;
|
|
6639
6646
|
const r = t.findIndex(
|
|
@@ -6641,7 +6648,7 @@ const Fy = (e) => !e || e.trim().length === 0, Vy = (e, t) => {
|
|
|
6641
6648
|
);
|
|
6642
6649
|
return r === -1 ? 999 : r;
|
|
6643
6650
|
};
|
|
6644
|
-
function
|
|
6651
|
+
function By(e, t) {
|
|
6645
6652
|
if (!e || e.length === 0)
|
|
6646
6653
|
return [];
|
|
6647
6654
|
const r = /* @__PURE__ */ new Map();
|
|
@@ -6653,7 +6660,7 @@ function Hy(e, t) {
|
|
|
6653
6660
|
items: a
|
|
6654
6661
|
}));
|
|
6655
6662
|
}
|
|
6656
|
-
function
|
|
6663
|
+
function zy(e, t, r) {
|
|
6657
6664
|
if (!e || e.length === 0)
|
|
6658
6665
|
return [];
|
|
6659
6666
|
const n = /* @__PURE__ */ new Set(), a = /* @__PURE__ */ new Set();
|
|
@@ -6674,7 +6681,7 @@ function nh(e) {
|
|
|
6674
6681
|
s[n(i[1])] = n(i[2]);
|
|
6675
6682
|
return s;
|
|
6676
6683
|
}
|
|
6677
|
-
function
|
|
6684
|
+
function Wy(e, t, r) {
|
|
6678
6685
|
const n = /{{([^}]*)}}/g, a = e.match(n);
|
|
6679
6686
|
let s = e;
|
|
6680
6687
|
const i = r ?? !1, o = i ? nh() : {};
|
|
@@ -6688,7 +6695,7 @@ const ah = (e) => new Promise((t, r) => {
|
|
|
6688
6695
|
const n = new FileReader();
|
|
6689
6696
|
n.onloadend = () => t(n.result), n.onerror = r, n.readAsDataURL(e);
|
|
6690
6697
|
}), sh = (e) => ie + `/user?username=${e}&v=custom:(username,uuid)`, ih = "bahmni.user.location";
|
|
6691
|
-
async function
|
|
6698
|
+
async function Gy() {
|
|
6692
6699
|
const e = Xi(Iu);
|
|
6693
6700
|
if (!e)
|
|
6694
6701
|
return null;
|
|
@@ -6746,7 +6753,7 @@ const Qi = () => {
|
|
|
6746
6753
|
}, Zi = ie + "/idgen/identifiertype", lh = (e) => ie + `/bahmni/app/setting?module=${e}`, dh = "bahmni.primaryIdentifierType", fh = ie + "/bahmnicore/patientprofile", hh = (e) => ie + `/bahmnicore/patientprofile/${e}`, mh = (e) => ie + `/patientprofile/${e}?v=full`, ph = ie + "/visit", gh = (e) => ie + `/visit?includeInactive=false&patient=${e}&v=custom:(uuid,visitType,location:(uuid))`, yh = (e) => Mu + `${e}`, bh = (e, t, r = 20, n) => {
|
|
6747
6754
|
let a = `/openmrs/module/addresshierarchy/ajax/getPossibleAddressHierarchyEntriesWithParents.form?addressField=${e}&limit=${r}&searchString=${encodeURIComponent(t)}`;
|
|
6748
6755
|
return n && (a += `&parent=${n}`), a;
|
|
6749
|
-
}, wh = "/openmrs/module/addresshierarchy/ajax/getOrderedAddressHierarchyLevels.form", vh = ie + "/relationshiptype?v=custom:(aIsToB,bIsToA,uuid)", Eh = 20, _h = 2,
|
|
6756
|
+
}, wh = "/openmrs/module/addresshierarchy/ajax/getOrderedAddressHierarchyLevels.form", vh = ie + "/relationshiptype?v=custom:(aIsToB,bIsToA,uuid)", Eh = 20, _h = 2, Ky = 120, Yy = 50, Jy = 15, Sh = /^[a-f0-9-]{36}$/i, $h = () => ie + "/bahmnicore/config/bahmniencounter?callerContext=REGISTRATION_CONCEPTS", Rh = (e) => Cu + `/patientImage?patientUuid=${e}`, Ph = ie + "/personattributetype?v=custom:(uuid,name,sortWeight,description,format,concept:(uuid,display,answers:(uuid,name)))", Th = async (e) => {
|
|
6750
6757
|
if (!e || e.trim() === "")
|
|
6751
6758
|
throw new Error("Invalid patient UUID: UUID cannot be empty");
|
|
6752
6759
|
if (!Sh.test(e))
|
|
@@ -6784,20 +6791,20 @@ const Qi = () => {
|
|
|
6784
6791
|
identifiers: a,
|
|
6785
6792
|
age: s
|
|
6786
6793
|
};
|
|
6787
|
-
},
|
|
6794
|
+
}, Xy = async (e) => {
|
|
6788
6795
|
const t = await Th(e);
|
|
6789
6796
|
return Ch(t);
|
|
6790
|
-
},
|
|
6797
|
+
}, Qy = async (e) => {
|
|
6791
6798
|
const t = await fetch(Rh(e));
|
|
6792
6799
|
if (!t.ok) return null;
|
|
6793
6800
|
const r = await t.blob();
|
|
6794
6801
|
return await ah(r);
|
|
6795
|
-
},
|
|
6802
|
+
}, Zy = async (e) => {
|
|
6796
6803
|
const t = Qi();
|
|
6797
6804
|
return await Q(
|
|
6798
6805
|
ch(e, t.uuid)
|
|
6799
6806
|
);
|
|
6800
|
-
},
|
|
6807
|
+
}, eb = async (e, t, r, n, a) => {
|
|
6801
6808
|
const s = Qi();
|
|
6802
6809
|
return await Q(
|
|
6803
6810
|
uh(
|
|
@@ -6808,12 +6815,12 @@ const Qi = () => {
|
|
|
6808
6815
|
s.uuid
|
|
6809
6816
|
)
|
|
6810
6817
|
);
|
|
6811
|
-
},
|
|
6818
|
+
}, tb = async () => Q(Zi), Ih = async () => {
|
|
6812
6819
|
const t = (await Q(lh("core"))).find(
|
|
6813
6820
|
(r) => r.property === dh
|
|
6814
6821
|
);
|
|
6815
6822
|
return (t == null ? void 0 : t.value) ?? null;
|
|
6816
|
-
},
|
|
6823
|
+
}, rb = async () => {
|
|
6817
6824
|
const [e, t] = await Promise.all([
|
|
6818
6825
|
Q(Zi),
|
|
6819
6826
|
Ih()
|
|
@@ -6830,10 +6837,10 @@ const Qi = () => {
|
|
|
6830
6837
|
sourcesByPrefix: n,
|
|
6831
6838
|
primaryIdentifierTypeUuid: t
|
|
6832
6839
|
}) : { prefixes: r, sourcesByPrefix: n, primaryIdentifierTypeUuid: t };
|
|
6833
|
-
},
|
|
6840
|
+
}, nb = async (e) => mt(fh, e), ab = async (e, t) => mt(
|
|
6834
6841
|
hh(e),
|
|
6835
6842
|
t
|
|
6836
|
-
),
|
|
6843
|
+
), sb = async () => Q(Di("mrs.genders")), ib = async (e, t, r = Eh, n) => {
|
|
6837
6844
|
if (!t || t.length < _h)
|
|
6838
6845
|
return [];
|
|
6839
6846
|
try {
|
|
@@ -6845,7 +6852,7 @@ const Qi = () => {
|
|
|
6845
6852
|
`Failed to fetch address hierarchy for field "${e}": ${a instanceof Error ? a.message : "Unknown error"}`
|
|
6846
6853
|
);
|
|
6847
6854
|
}
|
|
6848
|
-
},
|
|
6855
|
+
}, ob = async () => Q($h()), cb = async (e) => mt(ph, e), ub = async (e) => Q(gh(e)), lb = async (e) => Q(yh(e)), db = async () => Q(wh), fb = async (e) => Q(mh(e)), hb = async () => {
|
|
6849
6856
|
try {
|
|
6850
6857
|
return (await Q(
|
|
6851
6858
|
vh
|
|
@@ -6859,16 +6866,16 @@ const Qi = () => {
|
|
|
6859
6866
|
`Failed to fetch relationship types: ${e instanceof Error ? e.message : "Unknown error"}`
|
|
6860
6867
|
);
|
|
6861
6868
|
}
|
|
6862
|
-
},
|
|
6869
|
+
}, mb = async () => Q(Ph);
|
|
6863
6870
|
var kh = /* @__PURE__ */ ((e) => (e.BOOLEAN = "java.lang.Boolean", e.BOOLEAN_DATATYPE = "org.openmrs.customdatatype.datatype.BooleanDatatype", e.CONCEPT = "org.openmrs.Concept", e.CODED_CONCEPT = "org.bahmni.module.bahmnicore.customdatatype.datatype.CodedConceptDatatype", e.CONCEPT_DATATYPE = "org.openmrs.customdatatype.datatype.ConceptDatatype", e.STRING = "java.lang.String", e.FREE_TEXT = "org.openmrs.customdatatype.datatype.FreeTextDatatype", e.REGEX_VALIDATED_TEXT = "org.openmrs.customdatatype.datatype.RegexValidatedTextDatatype", e.INTEGER = "java.lang.Integer", e.FLOAT = "java.lang.Float", e.ATTRIBUTABLE_DATE = "org.openmrs.util.AttributableDate", e.DATE_DATATYPE = "org.openmrs.customdatatype.datatype.DateDatatype", e))(kh || {}), Lh = /* @__PURE__ */ ((e) => (e.CHECKBOX = "checkbox", e.DROPDOWN = "dropdown", e.TEXT = "text", e.NUMBER = "number", e.DATE = "date", e))(Lh || {});
|
|
6864
|
-
const
|
|
6871
|
+
const pb = (e) => e === "java.lang.Boolean" || e === "org.openmrs.customdatatype.datatype.BooleanDatatype" ? "checkbox" : e === "org.openmrs.Concept" || e === "org.bahmni.module.bahmnicore.customdatatype.datatype.CodedConceptDatatype" || e === "org.openmrs.customdatatype.datatype.ConceptDatatype" ? "dropdown" : e === "java.lang.Integer" || e === "java.lang.Float" ? "number" : e === "org.openmrs.util.AttributableDate" || e === "org.openmrs.customdatatype.datatype.DateDatatype" ? "date" : "text", gb = (e) => e === "java.lang.Boolean" || e === "org.openmrs.customdatatype.datatype.BooleanDatatype", yb = (e) => e === "org.openmrs.Concept" || e === "org.bahmni.module.bahmnicore.customdatatype.datatype.CodedConceptDatatype" || e === "org.openmrs.customdatatype.datatype.ConceptDatatype", bb = (e) => e === "java.lang.Integer" || e === "java.lang.Float", wb = (e) => e === "org.openmrs.util.AttributableDate" || e === "org.openmrs.customdatatype.datatype.DateDatatype", vb = (e) => e === "java.lang.String" || e === "org.openmrs.customdatatype.datatype.FreeTextDatatype" || e === "org.openmrs.customdatatype.datatype.RegexValidatedTextDatatype", Mh = ie + "/appointments/search", eo = ie + "/appointments", Eb = async (e) => await mt(
|
|
6865
6872
|
Mh,
|
|
6866
6873
|
e
|
|
6867
|
-
),
|
|
6874
|
+
), _b = async (e, t, r) => await mt(
|
|
6868
6875
|
`${eo}/${e}/status-change`,
|
|
6869
6876
|
{ toStatus: t, onDate: r }
|
|
6870
6877
|
);
|
|
6871
|
-
async function
|
|
6878
|
+
async function Sb(e) {
|
|
6872
6879
|
return await Q(`${eo}/${e}`);
|
|
6873
6880
|
}
|
|
6874
6881
|
const xh = () => {
|
|
@@ -6900,7 +6907,7 @@ const xh = () => {
|
|
|
6900
6907
|
);
|
|
6901
6908
|
}
|
|
6902
6909
|
};
|
|
6903
|
-
}, an = xh(), qh = (e) => De + `/ValueSet/${e}/$expand`, jh = (e) => De + `/ValueSet/$expand?filter=${encodeURIComponent(e)}`, Uh = (e, t, r) => ie + `/bahmni/terminologies/concepts?limit=${t}&locale=${r}&term=${e}`, Fh = (e) => ie + `/concept/${e}`,
|
|
6910
|
+
}, an = xh(), qh = (e) => De + `/ValueSet/${e}/$expand`, jh = (e) => De + `/ValueSet/$expand?filter=${encodeURIComponent(e)}`, Uh = (e, t, r) => ie + `/bahmni/terminologies/concepts?limit=${t}&locale=${r}&term=${e}`, Fh = (e) => ie + `/concept/${e}`, $b = async (e, t = 20) => {
|
|
6904
6911
|
const r = qr(), n = Uh(e, t, r);
|
|
6905
6912
|
return Q(n);
|
|
6906
6913
|
}, Er = async (e) => {
|
|
@@ -6910,7 +6917,7 @@ const xh = () => {
|
|
|
6910
6917
|
const t = `${jh(e)}`;
|
|
6911
6918
|
return Q(t);
|
|
6912
6919
|
};
|
|
6913
|
-
async function
|
|
6920
|
+
async function Rb(e) {
|
|
6914
6921
|
return await Q(Fh(e));
|
|
6915
6922
|
}
|
|
6916
6923
|
const Hh = (e) => De + `/AllergyIntolerance?patient=${e}&_count=100&_sort=-_lastUpdated`, nt = {
|
|
@@ -6936,7 +6943,7 @@ const Hh = (e) => De + `/AllergyIntolerance?patient=${e}&_count=100&_sort=-_last
|
|
|
6936
6943
|
var a;
|
|
6937
6944
|
const r = ((a = e.expansion) == null ? void 0 : a.contains) ?? [];
|
|
6938
6945
|
return zh(r).map((s) => Wh(s, t));
|
|
6939
|
-
},
|
|
6946
|
+
}, Pb = async (e, t, r) => {
|
|
6940
6947
|
const n = e ?? nt.MEDICATION.code, a = t ?? nt.FOOD.code, s = r ?? nt.ENVIRONMENT.code, [i, o, c] = await Promise.all([
|
|
6941
6948
|
Er(n),
|
|
6942
6949
|
Er(a),
|
|
@@ -6956,7 +6963,7 @@ const Hh = (e) => De + `/AllergyIntolerance?patient=${e}&_count=100&_sort=-_last
|
|
|
6956
6963
|
nt.ENVIRONMENT.display
|
|
6957
6964
|
)
|
|
6958
6965
|
];
|
|
6959
|
-
},
|
|
6966
|
+
}, Tb = async (e) => {
|
|
6960
6967
|
var n, a;
|
|
6961
6968
|
const t = e ?? Bh.code;
|
|
6962
6969
|
return ((a = (n = (await Er(t)).compose) == null ? void 0 : n.include[0]) == null ? void 0 : a.concept) ?? [];
|
|
@@ -6993,16 +7000,16 @@ function Yh(e) {
|
|
|
6993
7000
|
};
|
|
6994
7001
|
});
|
|
6995
7002
|
}
|
|
6996
|
-
async function
|
|
7003
|
+
async function Ob(e) {
|
|
6997
7004
|
const t = await Kh(e);
|
|
6998
7005
|
return Yh(t);
|
|
6999
7006
|
}
|
|
7000
7007
|
var Jh = /* @__PURE__ */ ((e) => (e.Active = "Active", e.Inactive = "Inactive", e))(Jh || {}), Xh = /* @__PURE__ */ ((e) => (e.mild = "mild", e.moderate = "moderate", e.severe = "severe", e))(Xh || {});
|
|
7001
|
-
const
|
|
7008
|
+
const Ab = "http://fhir.openmrs.org/code-system/encounter-type", Qh = "problem-list-item", Nb = "http://terminology.hl7.org/CodeSystem/condition-ver-status", Zh = "encounter-diagnosis", Db = "http://terminology.hl7.org/CodeSystem/condition-clinical", Cb = "http://terminology.hl7.org/CodeSystem/condition-category", em = (e) => De + `/Condition?category=${Qh}&patient=${e}&_count=100&_sort=-_lastUpdated`;
|
|
7002
7009
|
async function tm(e) {
|
|
7003
7010
|
return await Q(`${em(e)}`);
|
|
7004
7011
|
}
|
|
7005
|
-
async function
|
|
7012
|
+
async function Ib(e) {
|
|
7006
7013
|
var n;
|
|
7007
7014
|
return ((n = (await tm(e)).entry) == null ? void 0 : n.filter((a) => {
|
|
7008
7015
|
var s;
|
|
@@ -7055,7 +7062,7 @@ function cm(e) {
|
|
|
7055
7062
|
};
|
|
7056
7063
|
});
|
|
7057
7064
|
}
|
|
7058
|
-
async function
|
|
7065
|
+
async function kb(e) {
|
|
7059
7066
|
const t = await sm(e);
|
|
7060
7067
|
return cm(t);
|
|
7061
7068
|
}
|
|
@@ -7165,7 +7172,7 @@ const Ma = (e) => {
|
|
|
7165
7172
|
var t, r, n, a;
|
|
7166
7173
|
return e.priority === "stat" || ((a = (n = (r = (t = e.dosageInstruction) == null ? void 0 : t[0]) == null ? void 0 : r.timing) == null ? void 0 : n.code) == null ? void 0 : a.text) === "Immediately" || !1;
|
|
7167
7174
|
};
|
|
7168
|
-
async function
|
|
7175
|
+
async function Lb(e) {
|
|
7169
7176
|
const t = await dm(e);
|
|
7170
7177
|
return wm(t);
|
|
7171
7178
|
}
|
|
@@ -7189,7 +7196,7 @@ function Sm(e) {
|
|
|
7189
7196
|
};
|
|
7190
7197
|
});
|
|
7191
7198
|
}
|
|
7192
|
-
async function
|
|
7199
|
+
async function Mb(e) {
|
|
7193
7200
|
const t = await _m(e);
|
|
7194
7201
|
return Sm(t);
|
|
7195
7202
|
}
|
|
@@ -7260,7 +7267,7 @@ function Dm(e, t) {
|
|
|
7260
7267
|
};
|
|
7261
7268
|
});
|
|
7262
7269
|
}
|
|
7263
|
-
function
|
|
7270
|
+
function xb(e) {
|
|
7264
7271
|
const t = /* @__PURE__ */ new Map();
|
|
7265
7272
|
return e.forEach((r) => {
|
|
7266
7273
|
var a;
|
|
@@ -7274,7 +7281,7 @@ function Mb(e) {
|
|
|
7274
7281
|
(r, n) => new Date(n.rawDate).getTime() - new Date(r.rawDate).getTime()
|
|
7275
7282
|
);
|
|
7276
7283
|
}
|
|
7277
|
-
async function
|
|
7284
|
+
async function qb(e, t) {
|
|
7278
7285
|
var a;
|
|
7279
7286
|
const n = ((a = (await Am(e)).entry) == null ? void 0 : a.map((s) => s.resource).filter((s) => s !== void 0)) ?? [];
|
|
7280
7287
|
return Dm(n, t);
|
|
@@ -7315,7 +7322,7 @@ const Cm = "All Orderables", Im = "/openmrs/ws/rest/v1/ordertype?v=custom:(uuid,
|
|
|
7315
7322
|
});
|
|
7316
7323
|
});
|
|
7317
7324
|
}), r;
|
|
7318
|
-
},
|
|
7325
|
+
}, jb = async () => {
|
|
7319
7326
|
const e = await Mm(), t = await xm();
|
|
7320
7327
|
return Um(e, jm(t));
|
|
7321
7328
|
};
|
|
@@ -11748,7 +11755,7 @@ const Jp = /* @__PURE__ */ Fm(Yp), xn = "/bahmni_config/openmrs/apps/clinical/v2
|
|
|
11748
11755
|
type: Tg,
|
|
11749
11756
|
additionalProperties: Og,
|
|
11750
11757
|
properties: Ag
|
|
11751
|
-
},
|
|
11758
|
+
}, Ub = async () => zr(Qp, ug), Fb = async (e) => {
|
|
11752
11759
|
const t = await zr(
|
|
11753
11760
|
tg(e),
|
|
11754
11761
|
yg
|
|
@@ -11757,10 +11764,10 @@ const Jp = /* @__PURE__ */ Fm(Yp), xn = "/bahmni_config/openmrs/apps/clinical/v2
|
|
|
11757
11764
|
...r,
|
|
11758
11765
|
id: rh()
|
|
11759
11766
|
})), t;
|
|
11760
|
-
},
|
|
11767
|
+
}, Vb = async () => zr(
|
|
11761
11768
|
eg,
|
|
11762
11769
|
Sg
|
|
11763
|
-
),
|
|
11770
|
+
), Hb = async () => zr(
|
|
11764
11771
|
Zp,
|
|
11765
11772
|
Ng
|
|
11766
11773
|
), zr = async (e, t) => {
|
|
@@ -11785,7 +11792,7 @@ const Jp = /* @__PURE__ */ Fm(Yp), xn = "/bahmni_config/openmrs/apps/clinical/v2
|
|
|
11785
11792
|
throw new Error(r);
|
|
11786
11793
|
}
|
|
11787
11794
|
}, Cg = async (e, t) => new Jp().compile(t)(e), Ig = (e) => ie + `/provider?user=${e}&v=custom:(uuid,display,person)`;
|
|
11788
|
-
async function
|
|
11795
|
+
async function Bb(e) {
|
|
11789
11796
|
const t = await Q(
|
|
11790
11797
|
Ig(e)
|
|
11791
11798
|
);
|
|
@@ -11838,7 +11845,7 @@ async function Hg(e, t) {
|
|
|
11838
11845
|
return null;
|
|
11839
11846
|
}
|
|
11840
11847
|
}
|
|
11841
|
-
async function
|
|
11848
|
+
async function zb(e, t, r) {
|
|
11842
11849
|
try {
|
|
11843
11850
|
if (!e) return null;
|
|
11844
11851
|
const n = r ?? await Vg(), s = `ge${new Date(Date.now() - n * 60 * 1e3).toISOString()}`, i = {
|
|
@@ -11854,7 +11861,7 @@ async function Bb(e, t, r) {
|
|
|
11854
11861
|
return null;
|
|
11855
11862
|
}
|
|
11856
11863
|
}
|
|
11857
|
-
const
|
|
11864
|
+
const Wb = (e) => {
|
|
11858
11865
|
const t = new CustomEvent("bahmni-audit-log", { detail: e });
|
|
11859
11866
|
window.dispatchEvent(t);
|
|
11860
11867
|
}, Bg = (e) => {
|
|
@@ -11926,21 +11933,21 @@ const zb = (e) => {
|
|
|
11926
11933
|
module: n
|
|
11927
11934
|
};
|
|
11928
11935
|
return await mt(Wg, i), { logged: !0 };
|
|
11929
|
-
},
|
|
11936
|
+
}, Gb = () => Bg(async (t) => {
|
|
11930
11937
|
await Jg(
|
|
11931
11938
|
t.patientUuid,
|
|
11932
11939
|
t.eventType,
|
|
11933
11940
|
t.messageParams,
|
|
11934
11941
|
t.module
|
|
11935
11942
|
);
|
|
11936
|
-
}),
|
|
11943
|
+
}), Kb = async () => {
|
|
11937
11944
|
try {
|
|
11938
11945
|
return await Q(ku);
|
|
11939
11946
|
} catch (e) {
|
|
11940
11947
|
const { message: t } = ut(e);
|
|
11941
11948
|
throw new Error(t);
|
|
11942
11949
|
}
|
|
11943
|
-
},
|
|
11950
|
+
}, Yb = (e, t) => !e || e.length === 0 ? !1 : e.some((r) => r.name === t), Xg = async () => {
|
|
11944
11951
|
const e = await fetch(Lu);
|
|
11945
11952
|
if (!e.ok)
|
|
11946
11953
|
throw new Error(
|
|
@@ -11969,12 +11976,12 @@ const zb = (e) => {
|
|
|
11969
11976
|
editable: n.editable
|
|
11970
11977
|
}))
|
|
11971
11978
|
};
|
|
11972
|
-
},
|
|
11979
|
+
}, Jb = async () => {
|
|
11973
11980
|
const e = await Xg(), t = qr();
|
|
11974
11981
|
return e.map(
|
|
11975
11982
|
(r) => Zg(r, t)
|
|
11976
11983
|
);
|
|
11977
|
-
}, ey = ie + "/bahmnicore/diseaseSummaryData?",
|
|
11984
|
+
}, ey = ie + "/bahmnicore/diseaseSummaryData?", Xb = async (e, t, r, n) => {
|
|
11978
11985
|
const a = new URLSearchParams({
|
|
11979
11986
|
groupBy: n,
|
|
11980
11987
|
latestCount: t.toString(),
|
|
@@ -11994,115 +12001,116 @@ export {
|
|
|
11994
12001
|
Lh as AttributeInputType,
|
|
11995
12002
|
Sy as BAHMNI_HOME_PATH,
|
|
11996
12003
|
Xf as DATE_FORMAT,
|
|
11997
|
-
|
|
12004
|
+
Dy as DATE_PICKER_INPUT_FORMAT,
|
|
11998
12005
|
Qf as DATE_TIME_FORMAT,
|
|
11999
|
-
|
|
12000
|
-
|
|
12001
|
-
|
|
12006
|
+
Ab as FHIR_ENCOUNTER_TYPE_CODE_SYSTEM,
|
|
12007
|
+
Oy as FULL_MONTH_DATE_FORMAT,
|
|
12008
|
+
Cb as HL7_CONDITION_CATEGORY_CODE_SYSTEM,
|
|
12002
12009
|
Qh as HL7_CONDITION_CATEGORY_CONDITION_CODE,
|
|
12003
12010
|
Zh as HL7_CONDITION_CATEGORY_DIAGNOSIS_CODE,
|
|
12004
|
-
|
|
12005
|
-
|
|
12006
|
-
|
|
12011
|
+
Db as HL7_CONDITION_CLINICAL_STATUS_CODE_SYSTEM,
|
|
12012
|
+
Nb as HL7_CONDITION_VERIFICATION_STATUS_CODE_SYSTEM,
|
|
12013
|
+
Ny as ISO_DATE_FORMAT,
|
|
12007
12014
|
_r as LabTestPriority,
|
|
12008
|
-
|
|
12009
|
-
|
|
12010
|
-
|
|
12015
|
+
Yy as MAX_NAME_LENGTH,
|
|
12016
|
+
Ky as MAX_PATIENT_AGE_YEARS,
|
|
12017
|
+
Jy as MAX_PHONE_NUMBER_LENGTH,
|
|
12011
12018
|
qe as MedicationStatus,
|
|
12012
12019
|
De as OPENMRS_FHIR_R4,
|
|
12013
12020
|
ie as OPENMRS_REST_V1,
|
|
12014
|
-
|
|
12021
|
+
Ay as REGISTRATION_DATE_FORMAT,
|
|
12015
12022
|
$y as USER_PINNED_PREFERENCE_URL,
|
|
12016
12023
|
eh as calculateAge,
|
|
12017
|
-
|
|
12018
|
-
|
|
12019
|
-
|
|
12020
|
-
|
|
12021
|
-
|
|
12022
|
-
|
|
12024
|
+
xy as calculateAgeinYearsAndMonths,
|
|
12025
|
+
Iy as calculateOnsetDate,
|
|
12026
|
+
Fy as capitalize,
|
|
12027
|
+
nb as createPatient,
|
|
12028
|
+
cb as createVisit,
|
|
12029
|
+
jy as dateComparator,
|
|
12023
12030
|
_y as del,
|
|
12024
|
-
|
|
12025
|
-
|
|
12026
|
-
|
|
12027
|
-
|
|
12028
|
-
|
|
12029
|
-
|
|
12031
|
+
Wb as dispatchAuditEvent,
|
|
12032
|
+
Pb as fetchAndFormatAllergenConcepts,
|
|
12033
|
+
Jb as fetchObservationForms,
|
|
12034
|
+
Tb as fetchReactionConcepts,
|
|
12035
|
+
zy as filterReplacementEntries,
|
|
12036
|
+
zb as findActiveEncounterInSession,
|
|
12030
12037
|
th as formatDate,
|
|
12031
|
-
|
|
12032
|
-
|
|
12033
|
-
|
|
12034
|
-
|
|
12038
|
+
My as formatDateAndTime,
|
|
12039
|
+
ky as formatDateDistance,
|
|
12040
|
+
Cy as formatDateTime,
|
|
12041
|
+
Wy as formatUrl,
|
|
12035
12042
|
rh as generateId,
|
|
12036
12043
|
Q as get,
|
|
12037
12044
|
xg as getActiveVisit,
|
|
12038
|
-
|
|
12039
|
-
|
|
12045
|
+
ub as getActiveVisitByPatient,
|
|
12046
|
+
ib as getAddressHierarchyEntries,
|
|
12040
12047
|
Kh as getAllergies,
|
|
12041
|
-
|
|
12042
|
-
|
|
12043
|
-
|
|
12044
|
-
|
|
12048
|
+
Sb as getAppointmentById,
|
|
12049
|
+
Ub as getClinicalConfig,
|
|
12050
|
+
Rb as getConceptById,
|
|
12051
|
+
Ib as getConditions,
|
|
12045
12052
|
Xi as getCookieByName,
|
|
12046
|
-
|
|
12047
|
-
|
|
12048
|
-
|
|
12049
|
-
|
|
12050
|
-
|
|
12051
|
-
|
|
12053
|
+
Bb as getCurrentProvider,
|
|
12054
|
+
Gy as getCurrentUser,
|
|
12055
|
+
Kb as getCurrentUserPrivileges,
|
|
12056
|
+
Fb as getDashboardConfig,
|
|
12057
|
+
jb as getFlattenedInvestigations,
|
|
12058
|
+
Ob as getFormattedAllergies,
|
|
12052
12059
|
ut as getFormattedError,
|
|
12053
|
-
|
|
12054
|
-
|
|
12055
|
-
|
|
12056
|
-
|
|
12057
|
-
|
|
12058
|
-
|
|
12059
|
-
|
|
12060
|
+
Xy as getFormattedPatientById,
|
|
12061
|
+
sb as getGenders,
|
|
12062
|
+
rb as getIdentifierData,
|
|
12063
|
+
tb as getIdentifierTypes,
|
|
12064
|
+
pb as getInputTypeForFormat,
|
|
12065
|
+
Vb as getMedicationConfig,
|
|
12066
|
+
db as getOrderedAddressHierarchyLevels,
|
|
12060
12067
|
Th as getPatientById,
|
|
12061
|
-
|
|
12062
|
-
|
|
12063
|
-
|
|
12068
|
+
kb as getPatientDiagnoses,
|
|
12069
|
+
Qy as getPatientImageAsDataUrl,
|
|
12070
|
+
qb as getPatientLabInvestigations,
|
|
12064
12071
|
Am as getPatientLabTestsBundle,
|
|
12065
12072
|
dm as getPatientMedicationBundle,
|
|
12066
|
-
|
|
12067
|
-
|
|
12073
|
+
Lb as getPatientMedications,
|
|
12074
|
+
fb as getPatientProfile,
|
|
12068
12075
|
_m as getPatientRadiologyInvestigationBundle,
|
|
12069
|
-
|
|
12070
|
-
|
|
12076
|
+
Mb as getPatientRadiologyInvestigations,
|
|
12077
|
+
mb as getPersonAttributeTypes,
|
|
12071
12078
|
Ih as getPrimaryIdentifierType,
|
|
12072
|
-
|
|
12073
|
-
|
|
12074
|
-
|
|
12075
|
-
|
|
12079
|
+
Hy as getPriorityByOrder,
|
|
12080
|
+
Hb as getRegistrationConfig,
|
|
12081
|
+
hb as getRelationshipTypes,
|
|
12082
|
+
Ly as getTodayDate,
|
|
12076
12083
|
Qi as getUserLoginLocation,
|
|
12077
|
-
|
|
12078
|
-
|
|
12079
|
-
|
|
12080
|
-
|
|
12081
|
-
|
|
12082
|
-
|
|
12083
|
-
|
|
12084
|
-
|
|
12085
|
-
|
|
12086
|
-
|
|
12087
|
-
|
|
12088
|
-
|
|
12089
|
-
|
|
12090
|
-
|
|
12084
|
+
lb as getVisitLocationUUID,
|
|
12085
|
+
ob as getVisitTypes,
|
|
12086
|
+
Xb as getVitalFlowSheetData,
|
|
12087
|
+
By as groupByDate,
|
|
12088
|
+
xb as groupLabTestsByDate,
|
|
12089
|
+
Yb as hasPrivilege,
|
|
12090
|
+
Py as initAppI18n,
|
|
12091
|
+
Gb as initializeAuditListener,
|
|
12092
|
+
gb as isBooleanFormat,
|
|
12093
|
+
yb as isConceptFormat,
|
|
12094
|
+
wb as isDateFormat,
|
|
12095
|
+
bb as isNumberFormat,
|
|
12096
|
+
Vy as isStringEmpty,
|
|
12097
|
+
vb as isTextFormat,
|
|
12091
12098
|
Jg as logAuditEvent,
|
|
12099
|
+
Ry as normalizeTranslationKey,
|
|
12092
12100
|
an as notificationService,
|
|
12093
12101
|
nh as parseQueryParams,
|
|
12094
12102
|
mt as post,
|
|
12095
12103
|
Ey as put,
|
|
12096
|
-
|
|
12097
|
-
|
|
12098
|
-
|
|
12104
|
+
Uy as refreshQueries,
|
|
12105
|
+
Eb as searchAppointmentsByAttribute,
|
|
12106
|
+
$b as searchConcepts,
|
|
12099
12107
|
Er as searchFHIRConcepts,
|
|
12100
12108
|
Vh as searchFHIRConceptsByName,
|
|
12101
|
-
|
|
12102
|
-
|
|
12103
|
-
|
|
12104
|
-
|
|
12105
|
-
|
|
12106
|
-
|
|
12107
|
-
|
|
12109
|
+
eb as searchPatientByCustomAttribute,
|
|
12110
|
+
Zy as searchPatientByNameOrId,
|
|
12111
|
+
qy as sortByDate,
|
|
12112
|
+
_b as updateAppointmentStatus,
|
|
12113
|
+
ab as updatePatient,
|
|
12114
|
+
Ty as useCamera,
|
|
12115
|
+
ew as useTranslation
|
|
12108
12116
|
};
|