@bahmni/clinical-app 0.0.1-dev.156 → 0.0.1-dev.157
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/{FormsTable-CmVblWCC-BLGBRVWo.js → FormsTable-DV34R0pV-WdgWdwA0.js} +31 -31
- package/dist/{LNWAZHJI-CzffAtx-.js → LNWAZHJI-PZ5FpLj3.js} +2 -2
- package/dist/{MWZ6AO7Z-DnwYWq7B.js → MWZ6AO7Z-CXQdwSTE.js} +2 -2
- package/dist/{Observations-CoVHnDN6-10xGzOEJ.js → Observations-T2DSdtPu-uNhApgcc.js} +1 -1
- package/dist/{YPM2AS64-10F2cHPS.js → YPM2AS64-BSwQRnPp.js} +1 -1
- package/dist/{index-BiYv7dBY.js → index-Dvp-S26I.js} +4 -4
- package/dist/index.js +1 -1
- package/package.json +1 -1
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { jsx as s, jsxs as p, Fragment as k } from "react/jsx-runtime";
|
|
2
|
-
import { u as ee, h as re, w as ae, a as te, b as C, e as oe, i as ne, C as se, z as U, Y as de, G as me, c as ie, M as le, V as q, d as ce, g as ue, f as
|
|
3
|
-
import { useState as K, useMemo as h, useCallback as
|
|
4
|
-
const Ne = "_formsTableBody_1pd36_1", ye = "_customAccordianItem_1pd36_6", Ce = "_formContent_1pd36_18",
|
|
2
|
+
import { u as ee, h as re, w as ae, a as te, b as C, e as oe, i as ne, C as se, z as U, Y as de, G as me, c as ie, M as le, V as q, d as ce, g as ue, f as A, F as be, N as pe, j as _e, U as fe, J as $e, k as ge, l as ve, K as he } from "./index-Dvp-S26I.js";
|
|
3
|
+
import { useState as K, useMemo as h, useCallback as R } from "react";
|
|
4
|
+
const Ne = "_formsTableBody_1pd36_1", ye = "_customAccordianItem_1pd36_6", Ce = "_formContent_1pd36_18", Re = "_formDetailsContainer_1pd36_25", Ae = "_observation_1pd36_30", Fe = "_groupContainer_1pd36_39", Le = "_rowContainer_1pd36_43", Me = "_groupLabel_1pd36_48", Oe = "_rowLabel_1pd36_58", Ve = "_rowValue_1pd36_67", Ie = "_groupMembers_1pd36_75", Te = "_memberRow_1pd36_81", Se = "_memberLabel_1pd36_86", we = "_memberValue_1pd36_94", De = "_abnormalValue_1pd36_102", Ge = "_commentSection_1pd36_110", Ee = "_commentText_1pd36_116", xe = "_nestedGroup_1pd36_125", Be = "_nestedGroupLabel_1pd36_132", Ue = "_nestedGroupMembers_1pd36_141", o = {
|
|
5
5
|
formsTableBody: Ne,
|
|
6
6
|
customAccordianItem: ye,
|
|
7
7
|
formContent: Ce,
|
|
8
|
-
formDetailsContainer:
|
|
9
|
-
observation:
|
|
10
|
-
groupContainer:
|
|
11
|
-
rowContainer:
|
|
8
|
+
formDetailsContainer: Re,
|
|
9
|
+
observation: Ae,
|
|
10
|
+
groupContainer: Fe,
|
|
11
|
+
rowContainer: Le,
|
|
12
12
|
groupLabel: Me,
|
|
13
13
|
rowLabel: Oe,
|
|
14
14
|
rowValue: Ve,
|
|
@@ -22,7 +22,7 @@ const Ne = "_formsTableBody_1pd36_1", ye = "_customAccordianItem_1pd36_6", Ce =
|
|
|
22
22
|
nestedGroup: xe,
|
|
23
23
|
nestedGroupLabel: Be,
|
|
24
24
|
nestedGroupMembers: Ue
|
|
25
|
-
},
|
|
25
|
+
}, H = (e) => {
|
|
26
26
|
const r = be(e);
|
|
27
27
|
return r === "Image" ? /* @__PURE__ */ s(
|
|
28
28
|
pe,
|
|
@@ -32,7 +32,7 @@ const Ne = "_formsTableBody_1pd36_1", ye = "_customAccordianItem_1pd36_6", Ce =
|
|
|
32
32
|
id: `${e}-img`
|
|
33
33
|
}
|
|
34
34
|
) : r === "Video" ? /* @__PURE__ */ s(_e, { id: `${e}-video`, videoSrc: e }) : e;
|
|
35
|
-
},
|
|
35
|
+
}, j = (e) => {
|
|
36
36
|
const r = e.observationValue?.unit, n = e.observationValue?.referenceRange?.low?.value, a = e.observationValue?.referenceRange?.high?.value, d = n != null, c = a != null, m = d && c ? ` (${n} - ${a})` : d ? ` (>${n})` : c ? ` (<${a})` : "", t = e.observationValue?.isAbnormal === !0;
|
|
37
37
|
return { units: r, rangeString: m, isAbnormal: t };
|
|
38
38
|
}, P = ({
|
|
@@ -79,7 +79,7 @@ const Ne = "_formsTableBody_1pd36_1", ye = "_customAccordianItem_1pd36_6", Ce =
|
|
|
79
79
|
]
|
|
80
80
|
}
|
|
81
81
|
);
|
|
82
|
-
const { units: b, rangeString: g, isAbnormal: _ } =
|
|
82
|
+
const { units: b, rangeString: g, isAbnormal: _ } = j(e), f = e.observationValue?.value?.toString(), $ = f ? H(f) : null;
|
|
83
83
|
return /* @__PURE__ */ p(k, { children: [
|
|
84
84
|
/* @__PURE__ */ p(
|
|
85
85
|
"div",
|
|
@@ -91,7 +91,7 @@ const Ne = "_formsTableBody_1pd36_1", ye = "_customAccordianItem_1pd36_6", Ce =
|
|
|
91
91
|
/* @__PURE__ */ p(
|
|
92
92
|
"p",
|
|
93
93
|
{
|
|
94
|
-
className:
|
|
94
|
+
className: A(
|
|
95
95
|
o.memberLabel,
|
|
96
96
|
_ ? o.abnormalValue : ""
|
|
97
97
|
),
|
|
@@ -105,7 +105,7 @@ const Ne = "_formsTableBody_1pd36_1", ye = "_customAccordianItem_1pd36_6", Ce =
|
|
|
105
105
|
/* @__PURE__ */ p(
|
|
106
106
|
"div",
|
|
107
107
|
{
|
|
108
|
-
className:
|
|
108
|
+
className: A(
|
|
109
109
|
o.memberValue,
|
|
110
110
|
_ ? o.abnormalValue : ""
|
|
111
111
|
),
|
|
@@ -138,7 +138,7 @@ const Ne = "_formsTableBody_1pd36_1", ye = "_customAccordianItem_1pd36_6", Ce =
|
|
|
138
138
|
formName: n = "",
|
|
139
139
|
comment: a
|
|
140
140
|
}) => {
|
|
141
|
-
const d = e.members && e.members.length > 0, { units: c, rangeString: m, isAbnormal: t } =
|
|
141
|
+
const d = e.members && e.members.length > 0, { units: c, rangeString: m, isAbnormal: t } = j(e), b = n ? `${n}-` : "", g = e.observationValue?.value?.toString(), _ = g ? H(g) : null;
|
|
142
142
|
return /* @__PURE__ */ p(
|
|
143
143
|
"div",
|
|
144
144
|
{
|
|
@@ -154,7 +154,7 @@ const Ne = "_formsTableBody_1pd36_1", ye = "_customAccordianItem_1pd36_6", Ce =
|
|
|
154
154
|
/* @__PURE__ */ p(
|
|
155
155
|
"p",
|
|
156
156
|
{
|
|
157
|
-
className:
|
|
157
|
+
className: A(
|
|
158
158
|
d ? o.groupLabel : o.rowLabel,
|
|
159
159
|
!d && t ? o.abnormalValue : ""
|
|
160
160
|
),
|
|
@@ -184,7 +184,7 @@ const Ne = "_formsTableBody_1pd36_1", ye = "_customAccordianItem_1pd36_6", Ce =
|
|
|
184
184
|
) : /* @__PURE__ */ p(
|
|
185
185
|
"div",
|
|
186
186
|
{
|
|
187
|
-
className:
|
|
187
|
+
className: A(
|
|
188
188
|
o.rowValue,
|
|
189
189
|
t ? o.abnormalValue : ""
|
|
190
190
|
),
|
|
@@ -218,13 +218,13 @@ const Ne = "_formsTableBody_1pd36_1", ye = "_customAccordianItem_1pd36_6", Ce =
|
|
|
218
218
|
)?.valueString : void 0, ke = (e) => {
|
|
219
219
|
if (e)
|
|
220
220
|
return e.note?.[0]?.text;
|
|
221
|
-
},
|
|
222
|
-
const n =
|
|
221
|
+
}, He = (e, r) => e.entry?.find((n) => n.resource?.id === r)?.resource, O = (e, r) => {
|
|
222
|
+
const n = He(e, r);
|
|
223
223
|
return n ? {
|
|
224
224
|
formFieldPath: Ke(n),
|
|
225
225
|
comment: ke(n)
|
|
226
226
|
} : {};
|
|
227
|
-
},
|
|
227
|
+
}, je = (e, r) => {
|
|
228
228
|
if (!e?.entry || !r)
|
|
229
229
|
return [];
|
|
230
230
|
const n = ce(e);
|
|
@@ -269,18 +269,18 @@ const Ne = "_formsTableBody_1pd36_1", ye = "_customAccordianItem_1pd36_6", Ce =
|
|
|
269
269
|
), [$, r]), { data: I = [] } = C({
|
|
270
270
|
queryKey: ["observationForms"],
|
|
271
271
|
queryFn: () => ge()
|
|
272
|
-
}), T =
|
|
272
|
+
}), T = R(
|
|
273
273
|
(i) => I.find((u) => u.name === i)?.uuid,
|
|
274
274
|
[I]
|
|
275
|
-
),
|
|
275
|
+
), F = h(() => {
|
|
276
276
|
if (t)
|
|
277
277
|
return T(t.formName);
|
|
278
278
|
}, [t, T]), { isLoading: Q, error: S } = C({
|
|
279
|
-
queryKey: ["formMetadata",
|
|
280
|
-
queryFn: () => ve(
|
|
281
|
-
enabled: !!
|
|
279
|
+
queryKey: ["formMetadata", F],
|
|
280
|
+
queryFn: () => ve(F),
|
|
281
|
+
enabled: !!F && c
|
|
282
282
|
}), {
|
|
283
|
-
data:
|
|
283
|
+
data: L,
|
|
284
284
|
isLoading: J,
|
|
285
285
|
error: w
|
|
286
286
|
} = C({
|
|
@@ -290,14 +290,14 @@ const Ne = "_formsTableBody_1pd36_1", ye = "_customAccordianItem_1pd36_6", Ce =
|
|
|
290
290
|
});
|
|
291
291
|
oe(
|
|
292
292
|
(i) => {
|
|
293
|
-
i.patientUUID === d && i.updatedConcepts.size > 0 && (Y(), f.invalidateQueries({ queryKey: ["
|
|
293
|
+
i.patientUUID === d && i.updatedConcepts.size > 0 && (Y(), f.invalidateQueries({ queryKey: ["formsEncounterFHIR"] }));
|
|
294
294
|
},
|
|
295
295
|
[d]
|
|
296
296
|
);
|
|
297
|
-
const D = h(() => !
|
|
298
|
-
|
|
297
|
+
const D = h(() => !L || !t?.formName ? [] : je(
|
|
298
|
+
L,
|
|
299
299
|
t.formName
|
|
300
|
-
), [
|
|
300
|
+
), [L, t?.formName]), G = h(
|
|
301
301
|
() => [
|
|
302
302
|
{ key: "recordedOn", header: a("FORM_RECORDED_ON") },
|
|
303
303
|
{ key: "recordedBy", header: a("FORM_RECORDED_BY") }
|
|
@@ -334,11 +334,11 @@ const Ne = "_formsTableBody_1pd36_1", ye = "_customAccordianItem_1pd36_6", Ce =
|
|
|
334
334
|
)
|
|
335
335
|
})
|
|
336
336
|
).sort((u, l) => u.formName.localeCompare(l.formName));
|
|
337
|
-
}, [V, a]), x =
|
|
337
|
+
}, [V, a]), x = R((i) => {
|
|
338
338
|
b(i), m(!0);
|
|
339
|
-
}, []), W =
|
|
339
|
+
}, []), W = R(() => {
|
|
340
340
|
m(!1), b(null);
|
|
341
|
-
}, []), B =
|
|
341
|
+
}, []), B = R(
|
|
342
342
|
(i, u) => {
|
|
343
343
|
switch (u) {
|
|
344
344
|
case "recordedOn":
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { c, T as l, P as m, a as v, D as u, Q as i } from "./YPM2AS64-
|
|
2
|
-
import { s as d, v as f, y as e } from "./index-
|
|
1
|
+
import { c, T as l, P as m, a as v, D as u, Q as i } from "./YPM2AS64-BSwQRnPp.js";
|
|
2
|
+
import { s as d, v as f, y as e } from "./index-Dvp-S26I.js";
|
|
3
3
|
var p = (a) => {
|
|
4
4
|
const [r, t] = c({
|
|
5
5
|
prefix: "TanstackQueryDevtools"
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { c as l, T as c, P as u, a as i, b as m, C as P, Q as d } from "./YPM2AS64-
|
|
2
|
-
import { s as v, v as C, y as e } from "./index-
|
|
1
|
+
import { c as l, T as c, P as u, a as i, b as m, C as P, Q as d } from "./YPM2AS64-BSwQRnPp.js";
|
|
2
|
+
import { s as v, v as C, y as e } from "./index-Dvp-S26I.js";
|
|
3
3
|
var h = (t) => {
|
|
4
4
|
const [r, o] = l({
|
|
5
5
|
prefix: "TanstackQueryDevtools"
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsxs as T, jsx as c } from "react/jsx-runtime";
|
|
2
|
-
import { h as B, p as V, u as I, m as x, q as K, b as w, e as z, d as G, r as Q, n as j, A as H, z as M, o as W, x as S, t as P, F as X, D as Y, N as J, j as Z, W as ee } from "./index-
|
|
2
|
+
import { h as B, p as V, u as I, m as x, q as K, b as w, e as z, d as G, r as Q, n as j, A as H, z as M, o as W, x as S, t as P, F as X, D as Y, N as J, j as Z, W as ee } from "./index-Dvp-S26I.js";
|
|
3
3
|
import { useRef as te, useEffect as $, useMemo as h } from "react";
|
|
4
4
|
const A = (t, d, i, l, r) => {
|
|
5
5
|
const a = P(t, d), s = a.value, o = X(s);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { B as we, E as z, H as xt, I as B, v as q, y, P as Ro, L as ye, S as R, O as _, Q as k, R as N, T as A, X as bs, Z as ir, _ as $e, $ as U, a0 as Hn, a1 as Vn, a2 as dt, a3 as D, a4 as xs, a5 as cn, a6 as Be, a7 as ws, a8 as qt, a9 as zt, aa as $s, ab as Cs, ac as $n, ad as Ss, ae as Nr, af as Bt, ag as zo, ah as ks, ai as Es, aj as j, ak as Ur, al as Ms, am as Ds, an as sr, ao as As, ap as Ts, aq as zn, ar as Fs, as as Is, at as Z, au as Ps, av as Ls } from "./index-
|
|
1
|
+
import { B as we, E as z, H as xt, I as B, v as q, y, P as Ro, L as ye, S as R, O as _, Q as k, R as N, T as A, X as bs, Z as ir, _ as $e, $ as U, a0 as Hn, a1 as Vn, a2 as dt, a3 as D, a4 as xs, a5 as cn, a6 as Be, a7 as ws, a8 as qt, a9 as zt, aa as $s, ab as Cs, ac as $n, ad as Ss, ae as Nr, af as Bt, ag as zo, ah as ks, ai as Es, aj as j, ak as Ur, al as Ms, am as Ds, an as sr, ao as As, ap as Ts, aq as zn, ar as Fs, as as Is, at as Z, au as Ps, av as Ls } from "./index-Dvp-S26I.js";
|
|
2
2
|
var Os = (e) => e != null, qs = (e) => e.filter(Os);
|
|
3
3
|
function _s(e) {
|
|
4
4
|
return (...t) => {
|
|
@@ -160120,7 +160120,7 @@ const irt = () => {
|
|
|
160120
160120
|
},
|
|
160121
160121
|
{
|
|
160122
160122
|
type: "forms",
|
|
160123
|
-
component: lazy$1(() => import("./FormsTable-
|
|
160123
|
+
component: lazy$1(() => import("./FormsTable-DV34R0pV-WdgWdwA0.js"))
|
|
160124
160124
|
},
|
|
160125
160125
|
{
|
|
160126
160126
|
type: "labOrders",
|
|
@@ -160128,7 +160128,7 @@ const irt = () => {
|
|
|
160128
160128
|
},
|
|
160129
160129
|
{
|
|
160130
160130
|
type: "observations",
|
|
160131
|
-
component: lazy$1(() => import("./Observations-
|
|
160131
|
+
component: lazy$1(() => import("./Observations-T2DSdtPu-uNhApgcc.js"))
|
|
160132
160132
|
},
|
|
160133
160133
|
{
|
|
160134
160134
|
type: "ordersControl",
|
|
@@ -162029,7 +162029,7 @@ var displayValue = (n, e = !1) => {
|
|
|
162029
162029
|
const e = render(() => {
|
|
162030
162030
|
const a = this, [r] = this.#o, [l] = this.#d, [c] = this.#f, [f] = this.#u, [h] = this.#p, [m] = this.#t;
|
|
162031
162031
|
let A;
|
|
162032
|
-
return this.#s ? A = this.#s : (A = lazy(() => import("./LNWAZHJI-
|
|
162032
|
+
return this.#s ? A = this.#s : (A = lazy(() => import("./LNWAZHJI-PZ5FpLj3.js")), this.#s = A), setupStyleSheet(this.#l, this.#i), createComponent(A, mergeProps({
|
|
162033
162033
|
get queryFlavor() {
|
|
162034
162034
|
return a.#n;
|
|
162035
162035
|
},
|
|
@@ -162127,7 +162127,7 @@ var displayValue = (n, e = !1) => {
|
|
|
162127
162127
|
const e = render(() => {
|
|
162128
162128
|
const a = this, [r] = this.#o, [l] = this.#d, [c] = this.#f, [f] = this.#u, [h] = this.#p, [m] = this.#t, [A] = this.#s;
|
|
162129
162129
|
let g;
|
|
162130
|
-
return this.#c ? g = this.#c : (g = lazy(() => import("./MWZ6AO7Z-
|
|
162130
|
+
return this.#c ? g = this.#c : (g = lazy(() => import("./MWZ6AO7Z-CXQdwSTE.js")), this.#c = g), setupStyleSheet(this.#l, this.#i), createComponent(g, mergeProps({
|
|
162131
162131
|
get queryFlavor() {
|
|
162132
162132
|
return a.#n;
|
|
162133
162133
|
},
|
package/dist/index.js
CHANGED