@bahmni/clinical-app 0.0.1-dev.286 → 0.0.1-dev.287
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/{DocumentsTable-CTZvYQiU-CyktEJoy.js → DocumentsTable-CTZvYQiU-CgWeeLXU.js} +1 -1
- package/dist/{FormsTable-TGKGC2Zf-gDp3ajHQ.js → FormsTable-TGKGC2Zf-CqFM5rBT.js} +1 -1
- package/dist/{LNWAZHJI-C3zZChj8.js → LNWAZHJI-CSTcERF4.js} +2 -2
- package/dist/{MWZ6AO7Z-DJvkYMEV.js → MWZ6AO7Z-BOYCiWfO.js} +2 -2
- package/dist/{Observations-DI0NQ7gj-CUCd72ST.js → Observations-DI0NQ7gj-Dj1hSzq4.js} +1 -1
- package/dist/{YPM2AS64-CmHSCBr7.js → YPM2AS64-DP7Vdluz.js} +1 -1
- package/dist/{index-BpAgGw1T.js → index-BOGtpwOn.js} +36 -18
- package/dist/index.js +1 -1
- package/dist/services/consultationBundleService.d.ts.map +1 -1
- package/dist/utils/fhir/allergyResourceCreator.d.ts +8 -1
- package/dist/utils/fhir/allergyResourceCreator.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as r, jsxs as h, Fragment as x } from "react/jsx-runtime";
|
|
2
|
-
import { u as G, a as W, h as Y, B as J, w as X, m as Z, c as ee, n as te } from "./index-
|
|
2
|
+
import { u as G, a as W, h as Y, B as J, w as X, m as Z, c as ee, n as te } from "./index-BOGtpwOn.js";
|
|
3
3
|
import { useQuery as ae } from "@tanstack/react-query";
|
|
4
4
|
import { useState as l, useCallback as _, useEffect as N, useMemo as p } from "react";
|
|
5
5
|
const ne = "DocumentsTable-module_documentsTableBody__6iR3w", oe = "DocumentsTable-module_viewAttachmentsLink__aQ1on", re = "DocumentsTable-module_documentViewerContainer__F5m8D", de = "DocumentsTable-module_attachmentItem__17KA7", se = "DocumentsTable-module_attachmentCounter__WFiI3", me = "DocumentsTable-module_attachmentError__RI4U2", ce = "DocumentsTable-module_documentIframe__ptq5I", le = "DocumentsTable-module_documentImage__KQVgS", d = {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as s, jsxs as J, Fragment as W } from "react/jsx-runtime";
|
|
2
|
-
import { a as ee, u as re, v as ae, k as oe, I as te, Z as se, S as ne, e as de, _ as D, m as ie, w as me, c as q, O as ue, L as le, n as ce, q as fe, R as ye } from "./index-
|
|
2
|
+
import { a as ee, u as re, v as ae, k as oe, I as te, Z as se, S as ne, e as de, _ as D, m as ie, w as me, c as q, O as ue, L as le, n as ce, q as fe, R as ye } from "./index-BOGtpwOn.js";
|
|
3
3
|
import { useQueryClient as be, useQuery as f } from "@tanstack/react-query";
|
|
4
4
|
import { useState as U, useMemo as d, useCallback as y } from "react";
|
|
5
5
|
const pe = "FormsTable-module_formsTableBody__SvGha", ge = "FormsTable-module_customAccordianItem__isszs", A = {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { c, T as l, P as m, a as u, D as v, Q as i } from "./YPM2AS64-
|
|
2
|
-
import { j as d, l as f, o as e } from "./index-
|
|
1
|
+
import { c, T as l, P as m, a as u, D as v, Q as i } from "./YPM2AS64-DP7Vdluz.js";
|
|
2
|
+
import { j as d, l as f, o as e } from "./index-BOGtpwOn.js";
|
|
3
3
|
var p = (a) => {
|
|
4
4
|
const [r, o] = c({
|
|
5
5
|
prefix: "TanstackQueryDevtools"
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { c as s, T as c, P as u, a as i, b as m, C as P, Q as d } from "./YPM2AS64-
|
|
2
|
-
import { j as v, l as C, o as e } from "./index-
|
|
1
|
+
import { c as s, T as c, P as u, a as i, b as m, C as P, Q as d } from "./YPM2AS64-DP7Vdluz.js";
|
|
2
|
+
import { j as v, l as C, o as e } from "./index-BOGtpwOn.js";
|
|
3
3
|
var h = (t) => {
|
|
4
4
|
const [r, o] = s({
|
|
5
5
|
prefix: "TanstackQueryDevtools"
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsxs as I, jsx as u } from "react/jsx-runtime";
|
|
2
|
-
import { u as B, h as V, a as S, D as w, $ as G, e as k, b as z, K as Q, G as x, z as M, c as j, U as P, d as D, W, f as J, g as Y, H as X, i as Z, N as ee } from "./index-
|
|
2
|
+
import { u as B, h as V, a as S, D as w, $ as G, e as k, b as z, K as Q, G as x, z as M, c as j, U as P, d as D, W, f as J, g as Y, H as X, i as Z, N as ee } from "./index-BOGtpwOn.js";
|
|
3
3
|
import { useQueries as ae, useQuery as te } from "@tanstack/react-query";
|
|
4
4
|
import { useRef as se, useEffect as _, useMemo as R } from "react";
|
|
5
5
|
const H = (a, n, d, l, b, r) => {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { p as we, r as z, s as xt, t as B, l as q, o as y, P as Ro, x as ye, y as R, A as _, C as k, E as N, F as A, J as bs, M as ir, Q as $e, T as U, V as Hn, X as Vn, Y as dt, a0 as D, a1 as xs, a2 as cn, a3 as Be, a4 as ws, a5 as qt, a6 as zt, a7 as $s, a8 as Cs, a9 as $n, aa as Ss, ab as Nr, ac as Bt, ad as zo, ae as ks, af as Es, ag as j, ah as Ur, ai as Ms, aj as Ds, ak as sr, al as As, am as Ts, an as zn, ao as Fs, ap as Is, aq as Z, ar as Ps, as as Ls } from "./index-
|
|
1
|
+
import { p as we, r as z, s as xt, t as B, l as q, o as y, P as Ro, x as ye, y as R, A as _, C as k, E as N, F as A, J as bs, M as ir, Q as $e, T as U, V as Hn, X as Vn, Y as dt, a0 as D, a1 as xs, a2 as cn, a3 as Be, a4 as ws, a5 as qt, a6 as zt, a7 as $s, a8 as Cs, a9 as $n, aa as Ss, ab as Nr, ac as Bt, ad as zo, ae as ks, af as Es, ag as j, ah as Ur, ai as Ms, aj as Ds, ak as sr, al as As, am as Ts, an as zn, ao as Fs, ap as Is, aq as Z, ar as Ps, as as Ls } from "./index-BOGtpwOn.js";
|
|
2
2
|
var Os = (e) => e != null, qs = (e) => e.filter(Os);
|
|
3
3
|
function _s(e) {
|
|
4
4
|
return (...t) => {
|
|
@@ -175406,7 +175406,7 @@ const rHt = [
|
|
|
175406
175406
|
},
|
|
175407
175407
|
{
|
|
175408
175408
|
type: "patientDocuments",
|
|
175409
|
-
component: lazy$1(() => import("./DocumentsTable-CTZvYQiU-
|
|
175409
|
+
component: lazy$1(() => import("./DocumentsTable-CTZvYQiU-CgWeeLXU.js"))
|
|
175410
175410
|
},
|
|
175411
175411
|
{
|
|
175412
175412
|
type: "flowSheet",
|
|
@@ -175414,7 +175414,7 @@ const rHt = [
|
|
|
175414
175414
|
},
|
|
175415
175415
|
{
|
|
175416
175416
|
type: "forms",
|
|
175417
|
-
component: lazy$1(() => import("./FormsTable-TGKGC2Zf-
|
|
175417
|
+
component: lazy$1(() => import("./FormsTable-TGKGC2Zf-CqFM5rBT.js"))
|
|
175418
175418
|
},
|
|
175419
175419
|
{
|
|
175420
175420
|
type: "labOrders",
|
|
@@ -175422,7 +175422,7 @@ const rHt = [
|
|
|
175422
175422
|
},
|
|
175423
175423
|
{
|
|
175424
175424
|
type: "observations",
|
|
175425
|
-
component: lazy$1(() => import("./Observations-DI0NQ7gj-
|
|
175425
|
+
component: lazy$1(() => import("./Observations-DI0NQ7gj-Dj1hSzq4.js"))
|
|
175426
175426
|
},
|
|
175427
175427
|
{
|
|
175428
175428
|
type: "ordersControl",
|
|
@@ -177328,7 +177328,7 @@ var displayValue = (t, e = !1) => {
|
|
|
177328
177328
|
const e = render(() => {
|
|
177329
177329
|
const a = this, [r] = this.#a, [o] = this.#r, [s] = this.#o, [c] = this.#l, [g] = this.#h, [A] = this.#e;
|
|
177330
177330
|
let v;
|
|
177331
|
-
return this.#i ? v = this.#i : (v = lazy(() => import("./LNWAZHJI-
|
|
177331
|
+
return this.#i ? v = this.#i : (v = lazy(() => import("./LNWAZHJI-CSTcERF4.js")), this.#i = v), setupStyleSheet(this.#d, this.#n), createComponent(v, mergeProps({
|
|
177332
177332
|
get queryFlavor() {
|
|
177333
177333
|
return a.#f;
|
|
177334
177334
|
},
|
|
@@ -177426,7 +177426,7 @@ var displayValue = (t, e = !1) => {
|
|
|
177426
177426
|
const e = render(() => {
|
|
177427
177427
|
const a = this, [r] = this.#a, [o] = this.#r, [s] = this.#o, [c] = this.#l, [g] = this.#h, [A] = this.#e, [v] = this.#i;
|
|
177428
177428
|
let E;
|
|
177429
|
-
return this.#s ? E = this.#s : (E = lazy(() => import("./MWZ6AO7Z-
|
|
177429
|
+
return this.#s ? E = this.#s : (E = lazy(() => import("./MWZ6AO7Z-BOYCiWfO.js")), this.#s = E), setupStyleSheet(this.#d, this.#n), createComponent(E, mergeProps({
|
|
177430
177430
|
get queryFlavor() {
|
|
177431
177431
|
return a.#f;
|
|
177432
177432
|
},
|
|
@@ -179839,7 +179839,29 @@ const createCodeableConcept = (t, e) => {
|
|
|
179839
179839
|
text: c.trim()
|
|
179840
179840
|
}
|
|
179841
179841
|
]), g;
|
|
179842
|
-
},
|
|
179842
|
+
}, createDeleteAllergyResource = (t) => ({ resourceType: "AllergyIntolerance", id: t }), updateEncounterAllergyResource = (t, e, a, r, o) => ({
|
|
179843
|
+
resourceType: "AllergyIntolerance",
|
|
179844
|
+
id: t.id,
|
|
179845
|
+
meta: t.meta,
|
|
179846
|
+
clinicalStatus: t.clinicalStatus,
|
|
179847
|
+
verificationStatus: t.verificationStatus,
|
|
179848
|
+
type: t.type,
|
|
179849
|
+
category: t.category,
|
|
179850
|
+
criticality: t.criticality,
|
|
179851
|
+
code: t.code,
|
|
179852
|
+
patient: t.patient,
|
|
179853
|
+
recordedDate: t.recordedDate,
|
|
179854
|
+
recorder: t.recorder,
|
|
179855
|
+
note: o?.trim() ? [{ text: o.trim() }] : void 0,
|
|
179856
|
+
encounter: r,
|
|
179857
|
+
reaction: [
|
|
179858
|
+
{
|
|
179859
|
+
substance: t.code,
|
|
179860
|
+
manifestation: e,
|
|
179861
|
+
severity: a
|
|
179862
|
+
}
|
|
179863
|
+
]
|
|
179864
|
+
}), createEncounterDiagnosisResource = (t, e, a, r, o, s) => ({
|
|
179843
179865
|
resourceType: "Condition",
|
|
179844
179866
|
subject: a,
|
|
179845
179867
|
category: [
|
|
@@ -231220,17 +231242,13 @@ function createAllergiesBundleEntries({
|
|
|
231220
231242
|
}
|
|
231221
231243
|
const C = /* @__PURE__ */ new Set(), V = g.filter((L) => C.has(L) ? !1 : (C.add(L), !0)).map(
|
|
231222
231244
|
(L) => b.get(L) ?? { coding: [{ code: L }] }
|
|
231223
|
-
), S =
|
|
231224
|
-
|
|
231225
|
-
|
|
231226
|
-
|
|
231227
|
-
|
|
231228
|
-
|
|
231229
|
-
|
|
231230
|
-
severity: A
|
|
231231
|
-
}
|
|
231232
|
-
]
|
|
231233
|
-
}, z = `AllergyIntolerance/${s.resourceId}`;
|
|
231245
|
+
), S = updateEncounterAllergyResource(
|
|
231246
|
+
s.rawFhirResource,
|
|
231247
|
+
V,
|
|
231248
|
+
A,
|
|
231249
|
+
createEncounterReferenceFromString(a),
|
|
231250
|
+
s.note
|
|
231251
|
+
), z = `AllergyIntolerance/${s.resourceId}`;
|
|
231234
231252
|
o.push(
|
|
231235
231253
|
createBundleEntry(z, S, "PUT", z)
|
|
231236
231254
|
);
|
|
@@ -231239,7 +231257,7 @@ function createAllergiesBundleEntries({
|
|
|
231239
231257
|
o.push(
|
|
231240
231258
|
createBundleEntry(
|
|
231241
231259
|
b,
|
|
231242
|
-
s.
|
|
231260
|
+
createDeleteAllergyResource(s.resourceId),
|
|
231243
231261
|
"DELETE",
|
|
231244
231262
|
b
|
|
231245
231263
|
)
|
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"consultationBundleService.d.ts","sourceRoot":"","sources":["../../src/services/consultationBundleService.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,mBAAmB,EACnB,mBAAmB,EAGnB,gBAAgB,EACjB,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EAAE,WAAW,EAAE,SAAS,EAAE,SAAS,
|
|
1
|
+
{"version":3,"file":"consultationBundleService.d.ts","sourceRoot":"","sources":["../../src/services/consultationBundleService.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,mBAAmB,EACnB,mBAAmB,EAGnB,gBAAgB,EACjB,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EAAE,WAAW,EAAE,SAAS,EAAE,SAAS,EAAmB,MAAM,SAAS,CAAC;AAG7E,OAAO,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AACtD,OAAO,EAAE,kBAAkB,EAAE,MAAM,8BAA8B,CAAC;AAClE,OAAO,EAAE,wBAAwB,EAAE,MAAM,0BAA0B,CAAC;AAkBpE,UAAU,kCAAkC;IAC1C,iBAAiB,EAAE,iBAAiB,EAAE,CAAC;IACvC,gBAAgB,EAAE,SAAS,CAAC;IAC5B,kBAAkB,EAAE,MAAM,CAAC;IAC3B,gBAAgB,EAAE,MAAM,CAAC;CAC1B;AAED,UAAU,kCAAkC;IAC1C,iBAAiB,EAAE,mBAAmB,EAAE,CAAC;IACzC,gBAAgB,EAAE,SAAS,CAAC;IAC5B,kBAAkB,EAAE,MAAM,CAAC;IAC3B,gBAAgB,EAAE,MAAM,CAAC;IACzB,gBAAgB,EAAE,IAAI,CAAC;CACxB;AAED,UAAU,uCAAuC;IAC/C,uBAAuB,EAAE,GAAG,CAAC,MAAM,EAAE,wBAAwB,EAAE,CAAC,CAAC;IACjE,gBAAgB,EAAE,SAAS,CAAC;IAC5B,kBAAkB,EAAE,MAAM,CAAC;IAC3B,gBAAgB,EAAE,MAAM,CAAC;CAC1B;AAED,UAAU,mCAAmC;IAC3C,kBAAkB,EAAE,mBAAmB,EAAE,CAAC;IAC1C,gBAAgB,EAAE,SAAS,CAAC;IAC5B,kBAAkB,EAAE,MAAM,CAAC;IAC3B,gBAAgB,EAAE,MAAM,CAAC;IACzB,gBAAgB,EAAE,IAAI,CAAC;CACxB;AAED,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kBAAkB,EAAE,kBAAkB,GACrC,OAAO,CAAC,CAAC,CAAC,CAEZ"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AllergyIntolerance, Reference } from 'fhir/r4';
|
|
1
|
+
import { AllergyIntolerance, CodeableConcept, Reference } from 'fhir/r4';
|
|
2
2
|
interface AllergyReaction {
|
|
3
3
|
manifestationUUIDs: string[];
|
|
4
4
|
severity?: 'mild' | 'moderate' | 'severe';
|
|
@@ -15,5 +15,12 @@ interface AllergyReaction {
|
|
|
15
15
|
* @returns FHIR AllergyIntolerance resource
|
|
16
16
|
*/
|
|
17
17
|
export declare const createEncounterAllergyResource: (allergenConceptUUID: string, category: Array<"food" | "medication" | "environment" | "biologic">, reactions: AllergyReaction[], patientReference: Reference, encounterReference: Reference, recorderReference: Reference, note?: string) => AllergyIntolerance;
|
|
18
|
+
/**
|
|
19
|
+
* Builds a PUT AllergyIntolerance resource for updating an existing allergy.
|
|
20
|
+
* Explicitly picks only the fields needed — never spreads the raw server
|
|
21
|
+
* response so server-generated fields (text.div narrative, etc.) are excluded.
|
|
22
|
+
*/
|
|
23
|
+
export declare const createDeleteAllergyResource: (id: string) => AllergyIntolerance;
|
|
24
|
+
export declare const updateEncounterAllergyResource: (existing: AllergyIntolerance, manifestations: CodeableConcept[], severity: "mild" | "moderate" | "severe", encounterReference: Reference, note?: string) => AllergyIntolerance;
|
|
18
25
|
export {};
|
|
19
26
|
//# sourceMappingURL=allergyResourceCreator.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"allergyResourceCreator.d.ts","sourceRoot":"","sources":["../../../src/utils/fhir/allergyResourceCreator.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"allergyResourceCreator.d.ts","sourceRoot":"","sources":["../../../src/utils/fhir/allergyResourceCreator.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,eAAe,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAGzE,UAAU,eAAe;IACvB,kBAAkB,EAAE,MAAM,EAAE,CAAC;IAC7B,QAAQ,CAAC,EAAE,MAAM,GAAG,UAAU,GAAG,QAAQ,CAAC;CAC3C;AAED;;;;;;;;;;GAUG;AACH,eAAO,MAAM,8BAA8B,GACzC,qBAAqB,MAAM,EAC3B,UAAU,KAAK,CAAC,MAAM,GAAG,YAAY,GAAG,aAAa,GAAG,UAAU,CAAC,EACnE,WAAW,eAAe,EAAE,EAC5B,kBAAkB,SAAS,EAC3B,oBAAoB,SAAS,EAC7B,mBAAmB,SAAS,EAC5B,OAAO,MAAM,KACZ,kBA0BF,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,2BAA2B,GAAI,IAAI,MAAM,KAAG,kBACW,CAAC;AAErE,eAAO,MAAM,8BAA8B,GACzC,UAAU,kBAAkB,EAC5B,gBAAgB,eAAe,EAAE,EACjC,UAAU,MAAM,GAAG,UAAU,GAAG,QAAQ,EACxC,oBAAoB,SAAS,EAC7B,OAAO,MAAM,KACZ,kBAsBD,CAAC"}
|