@bahmni/services 0.0.1-dev.355 → 0.0.1-dev.362
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.
|
@@ -30,7 +30,7 @@ export interface ConsultationSavedEventPayload {
|
|
|
30
30
|
medications: boolean;
|
|
31
31
|
immunizationHistory?: boolean;
|
|
32
32
|
serviceRequests: Record<string, boolean>;
|
|
33
|
-
observationFormsWithBasedOn?:
|
|
33
|
+
observationFormsWithBasedOn?: string;
|
|
34
34
|
};
|
|
35
35
|
updatedConcepts: Map<string, string>;
|
|
36
36
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"consultationEvents.d.ts","sourceRoot":"","sources":["../../src/events/consultationEvents.ts"],"names":[],"mappings":"AAEA;;;;;;;;GAQG;AAGH,eAAO,MAAM,wBAAwB,uBAAuB,CAAC;AAG7D;;;;;;;;;;;;;GAaG;AACH,MAAM,WAAW,6BAA6B;IAC5C,WAAW,EAAE,MAAM,CAAC;IACpB,gBAAgB,EAAE;QAChB,UAAU,EAAE,OAAO,CAAC;QACpB,SAAS,EAAE,OAAO,CAAC;QACnB,WAAW,EAAE,OAAO,CAAC;QACrB,mBAAmB,CAAC,EAAE,OAAO,CAAC;QAC9B,eAAe,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;QACzC,2BAA2B,CAAC,EAAE,
|
|
1
|
+
{"version":3,"file":"consultationEvents.d.ts","sourceRoot":"","sources":["../../src/events/consultationEvents.ts"],"names":[],"mappings":"AAEA;;;;;;;;GAQG;AAGH,eAAO,MAAM,wBAAwB,uBAAuB,CAAC;AAG7D;;;;;;;;;;;;;GAaG;AACH,MAAM,WAAW,6BAA6B;IAC5C,WAAW,EAAE,MAAM,CAAC;IACpB,gBAAgB,EAAE;QAChB,UAAU,EAAE,OAAO,CAAC;QACpB,SAAS,EAAE,OAAO,CAAC;QACnB,WAAW,EAAE,OAAO,CAAC;QACrB,mBAAmB,CAAC,EAAE,OAAO,CAAC;QAC9B,eAAe,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;QACzC,2BAA2B,CAAC,EAAE,MAAM,CAAC;KACtC,CAAC;IACF,eAAe,EAAE,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;CACtC;AAED;;;;;;;;;;GAUG;AACH,eAAO,MAAM,yBAAyB,GACpC,SAAS,6BAA6B,KACrC,IAKF,CAAC;AAEF;;;;;;;;;;;;;;;;;;;GAmBG;AACH,eAAO,MAAM,6BAA6B,GACxC,UAAU,CAAC,OAAO,EAAE,6BAA6B,KAAK,IAAI,EAC1D,OAAM,KAAK,CAAC,cAAmB,SA2BhC,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -13265,7 +13265,7 @@ const Cy = /* @__PURE__ */ Og(Dy), ja = {
|
|
|
13265
13265
|
let s = W + "/bahmnicore/patient/" + t + "/forms";
|
|
13266
13266
|
return r ? s += `?patientProgramUuid=${r}` : e && (s += `?numberOfVisits=${e}`), s;
|
|
13267
13267
|
}, dc = (t, e, r, n) => {
|
|
13268
|
-
let s = `${se}/Observation?patient=${t}&_sort=-_lastUpdated`;
|
|
13268
|
+
let s = `${se}/Observation?patient=${t}&_sort=-_lastUpdated&_count=100`;
|
|
13269
13269
|
if (e && e.length > 0) {
|
|
13270
13270
|
const o = e.join(",");
|
|
13271
13271
|
s += `&code=${o}`, n && (s += "&_include=Observation:has-member&_include=Observation:encounter");
|
|
@@ -13991,7 +13991,7 @@ async function pv(t) {
|
|
|
13991
13991
|
}
|
|
13992
13992
|
function _c(t) {
|
|
13993
13993
|
return t.filter((e) => e.resource?.resourceType === "DocumentReference").map((e) => {
|
|
13994
|
-
const r = e.resource, n = r.masterIdentifier?.value ??
|
|
13994
|
+
const r = e.resource, n = r.masterIdentifier?.value ?? "", s = r.context?.encounter?.[0]?.reference?.split("/").pop(), o = (r.content ?? []).map((i) => i.attachment).filter((i) => !!i).map((i) => ({ url: i.url ?? "", contentType: i.contentType })), a = o[0];
|
|
13995
13995
|
return {
|
|
13996
13996
|
id: r.id ?? n,
|
|
13997
13997
|
documentIdentifier: n,
|