@bahmni/services 0.0.1-dev.188 → 0.0.1-dev.190
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/encounterService/constants.d.ts +1 -1
- package/dist/encounterService/constants.d.ts.map +1 -1
- package/dist/encounterService/encounterService.d.ts.map +1 -1
- package/dist/index.js +6 -2
- package/dist/privilegeService/privilegeService.d.ts +1 -1
- package/dist/privilegeService/privilegeService.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
export declare const PATIENT_VISITS_URL: (patientUUID: string) => string;
|
|
2
|
-
export declare const
|
|
2
|
+
export declare const FHIR_OBSERVATIONS_BY_ENCOUNTER_URL: (encounterUUID: string) => string;
|
|
3
3
|
//# sourceMappingURL=constants.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../src/encounterService/constants.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,kBAAkB,GAAI,aAAa,MAAM,WACoB,CAAC;AAE3E,eAAO,MAAM,
|
|
1
|
+
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../src/encounterService/constants.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,kBAAkB,GAAI,aAAa,MAAM,WACoB,CAAC;AAE3E,eAAO,MAAM,kCAAkC,GAAI,eAAe,MAAM,WACA,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"encounterService.d.ts","sourceRoot":"","sources":["../../src/encounterService/encounterService.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"encounterService.d.ts","sourceRoot":"","sources":["../../src/encounterService/encounterService.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,SAAS,CAAC;AAOzD;;;;GAIG;AACH,wBAAsB,gBAAgB,CACpC,WAAW,EAAE,MAAM,GAClB,OAAO,CAAC,MAAM,CAAC,SAAS,CAAC,CAAC,CAE5B;AAED;;;;GAIG;AACH,wBAAsB,SAAS,CAAC,WAAW,EAAE,MAAM,GAAG,OAAO,CAAC,SAAS,EAAE,CAAC,CAOzE;AAED;;;;GAIG;AACH,wBAAsB,cAAc,CAClC,WAAW,EAAE,MAAM,GAClB,OAAO,CAAC,SAAS,GAAG,IAAI,CAAC,CAG3B;AAED;;;;GAIG;AACH,wBAAsB,oCAAoC,CACxD,aAAa,EAAE,MAAM,GACpB,OAAO,CAAC,MAAM,CAAC,WAAW,CAAC,CAAC,CAI9B"}
|
package/dist/index.js
CHANGED
|
@@ -11983,7 +11983,7 @@ async function Pw(e) {
|
|
|
11983
11983
|
);
|
|
11984
11984
|
return !t.results || t.results.length === 0 ? null : t.results[0];
|
|
11985
11985
|
}
|
|
11986
|
-
const Cg = (e) => le + `/Encounter?subject:Patient=${e}&_tag=visit`, Lg = (e) => `${le}/Observation?encounter=${e}`;
|
|
11986
|
+
const Cg = (e) => le + `/Encounter?subject:Patient=${e}&_tag=visit`, Lg = (e) => `${le}/Observation/$fetch-all?encounter=${e}`;
|
|
11987
11987
|
async function kg(e) {
|
|
11988
11988
|
return await z(Cg(e));
|
|
11989
11989
|
}
|
|
@@ -11994,7 +11994,9 @@ async function xg(e) {
|
|
|
11994
11994
|
return (await Mg(e)).find((r) => !r.period?.end) ?? null;
|
|
11995
11995
|
}
|
|
11996
11996
|
async function $w(e) {
|
|
11997
|
-
return await z(
|
|
11997
|
+
return await z(
|
|
11998
|
+
Lg(e)
|
|
11999
|
+
);
|
|
11998
12000
|
}
|
|
11999
12001
|
const Nw = (e, t) => e?.length === 0 ? !1 : t?.length === 0, qg = le + "/Encounter", Ug = ee + "/systemsetting/bahmni.encountersession.duration", jg = "d34fe3ab-5e07-11ef-8f7c-0242ac120002";
|
|
12000
12002
|
async function Fg(e) {
|
|
@@ -12097,6 +12099,8 @@ const wn = /* @__PURE__ */ new Map(), zg = async (e) => {
|
|
|
12097
12099
|
}, kw = (e, t) => {
|
|
12098
12100
|
if (!e || e.length === 0)
|
|
12099
12101
|
return !1;
|
|
12102
|
+
if (!t || t.length === 0)
|
|
12103
|
+
return !0;
|
|
12100
12104
|
const r = Array.isArray(t) ? t : [t];
|
|
12101
12105
|
return e.some(
|
|
12102
12106
|
(n) => r.includes(n.name)
|
|
@@ -11,5 +11,5 @@ export declare const getCurrentUserPrivileges: () => Promise<UserPrivilege[] | n
|
|
|
11
11
|
* @param requiredPrivilege - Name of the privilege or array of privilege names to check
|
|
12
12
|
* @returns true if user has any of the required privileges, false otherwise
|
|
13
13
|
*/
|
|
14
|
-
export declare const hasPrivilege: (userPrivileges: UserPrivilege[] | null, requiredPrivilege: string | string[]) => boolean;
|
|
14
|
+
export declare const hasPrivilege: (userPrivileges: UserPrivilege[] | null, requiredPrivilege: string | string[] | undefined) => boolean;
|
|
15
15
|
//# sourceMappingURL=privilegeService.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"privilegeService.d.ts","sourceRoot":"","sources":["../../src/privilegeService/privilegeService.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,aAAa,EAAmB,MAAM,UAAU,CAAC;AAE1D;;;;GAIG;AACH,eAAO,MAAM,wBAAwB,QAAa,OAAO,CACvD,aAAa,EAAE,GAAG,IAAI,CAUvB,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,YAAY,GACvB,gBAAgB,aAAa,EAAE,GAAG,IAAI,EACtC,mBAAmB,MAAM,GAAG,MAAM,EAAE,
|
|
1
|
+
{"version":3,"file":"privilegeService.d.ts","sourceRoot":"","sources":["../../src/privilegeService/privilegeService.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,aAAa,EAAmB,MAAM,UAAU,CAAC;AAE1D;;;;GAIG;AACH,eAAO,MAAM,wBAAwB,QAAa,OAAO,CACvD,aAAa,EAAE,GAAG,IAAI,CAUvB,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,YAAY,GACvB,gBAAgB,aAAa,EAAE,GAAG,IAAI,EACtC,mBAAmB,MAAM,GAAG,MAAM,EAAE,GAAG,SAAS,KAC/C,OAgBF,CAAC"}
|