@bahmni/clinical-app 0.0.1-dev.166 → 0.0.1-dev.169
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-BdkkI5Rd-BoE6TAI1.js → FormsTable-DVAzwoLx-DM2pPwEt.js} +1 -1
- package/dist/{LNWAZHJI-D2i98_1G.js → LNWAZHJI-CH285k-8.js} +2 -2
- package/dist/{MWZ6AO7Z-JvFeuxOv.js → MWZ6AO7Z-JtNAX526.js} +2 -2
- package/dist/{Observations-JvnnwMDn-DykLoHyN.js → Observations-o_GsRckh-Cq8BaCQX.js} +18 -18
- package/dist/{YPM2AS64-BGtPvUiv.js → YPM2AS64-C1KqZsbG.js} +1 -1
- package/dist/{index-CrpZf00-.js → index-1DbsnfSR.js} +13025 -13025
- package/dist/index.js +1 -1
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
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 R, F as be, N as pe, j as _e, U as fe, J as $e, k as ve, l as ge, K as he } from "./index-
|
|
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 R, F as be, N as pe, j as _e, U as fe, J as $e, k as ve, l as ge, K as he } from "./index-1DbsnfSR.js";
|
|
3
3
|
import { useState as K, useMemo as h, useCallback as L } from "react";
|
|
4
4
|
const Ne = "_formsTableBody_1pd36_1", ye = "_customAccordianItem_1pd36_6", Ce = "_formContent_1pd36_18", Le = "_formDetailsContainer_1pd36_25", Re = "_observation_1pd36_30", Ae = "_groupContainer_1pd36_39", Fe = "_rowContainer_1pd36_43", Me = "_groupLabel_1pd36_48", Ve = "_rowLabel_1pd36_58", Oe = "_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,
|
|
@@ -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-C1KqZsbG.js";
|
|
2
|
+
import { s as d, v as f, y as e } from "./index-1DbsnfSR.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-C1KqZsbG.js";
|
|
2
|
+
import { s as v, v as C, y as e } from "./index-1DbsnfSR.js";
|
|
3
3
|
var h = (t) => {
|
|
4
4
|
const [r, o] = l({
|
|
5
5
|
prefix: "TanstackQueryDevtools"
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { h as B, p as V, u as I, m as x, q as K, b as
|
|
3
|
-
import { useRef as te, useEffect as
|
|
1
|
+
import { jsxs as $, 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 z, e as G, d as Q, r as j, n as w, 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-1DbsnfSR.js";
|
|
3
|
+
import { useRef as te, useEffect as N, 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);
|
|
6
6
|
let n = s;
|
|
@@ -37,7 +37,7 @@ const A = (t, d, i, l, r) => {
|
|
|
37
37
|
}) => {
|
|
38
38
|
const { t: i } = I(), l = (r, a, s) => {
|
|
39
39
|
const o = W(r.encounterDetails, i);
|
|
40
|
-
return /* @__PURE__ */
|
|
40
|
+
return /* @__PURE__ */ $(
|
|
41
41
|
S,
|
|
42
42
|
{
|
|
43
43
|
title: o,
|
|
@@ -73,7 +73,7 @@ const A = (t, d, i, l, r) => {
|
|
|
73
73
|
)
|
|
74
74
|
}
|
|
75
75
|
);
|
|
76
|
-
}, se = "_observations_kfbhq_1", oe = "_title_kfbhq_12",
|
|
76
|
+
}, se = "_observations_kfbhq_1", oe = "_title_kfbhq_12", T = {
|
|
77
77
|
observations: se,
|
|
78
78
|
title: oe
|
|
79
79
|
}, ie = (t) => ["conceptUuid", t], ne = (t, d) => ["observations", t, ...d], ce = ({ config: t }) => {
|
|
@@ -84,13 +84,13 @@ const A = (t, d, i, l, r) => {
|
|
|
84
84
|
enabled: !!e
|
|
85
85
|
}))
|
|
86
86
|
});
|
|
87
|
-
|
|
87
|
+
N(() => {
|
|
88
88
|
n.forEach((e, m) => {
|
|
89
89
|
if (e.isError && !r.current.has(m)) {
|
|
90
|
-
const
|
|
90
|
+
const C = i[m];
|
|
91
91
|
s({
|
|
92
92
|
title: o("ERROR_DEFAULT_TITLE"),
|
|
93
|
-
message: o("ERROR_FETCHING_CONCEPT", { conceptName:
|
|
93
|
+
message: o("ERROR_FETCHING_CONCEPT", { conceptName: C }),
|
|
94
94
|
type: "error"
|
|
95
95
|
}), r.current.add(m);
|
|
96
96
|
} else e.isError || r.current.delete(m);
|
|
@@ -101,19 +101,19 @@ const A = (t, d, i, l, r) => {
|
|
|
101
101
|
isLoading: D,
|
|
102
102
|
isError: R,
|
|
103
103
|
refetch: g
|
|
104
|
-
} =
|
|
104
|
+
} = z({
|
|
105
105
|
queryKey: ne(a, p),
|
|
106
106
|
queryFn: () => ee(a, p),
|
|
107
107
|
enabled: !!a && p.length > 0 && v
|
|
108
108
|
});
|
|
109
|
-
|
|
109
|
+
G(
|
|
110
110
|
(e) => {
|
|
111
111
|
e.patientUUID === a && e.updatedConcepts.size > 0 && [...e.updatedConcepts.keys()].some(
|
|
112
112
|
(m) => p.includes(m)
|
|
113
113
|
) && g();
|
|
114
114
|
},
|
|
115
115
|
[a, g]
|
|
116
|
-
),
|
|
116
|
+
), N(() => {
|
|
117
117
|
R && s({
|
|
118
118
|
title: o("ERROR_DEFAULT_TITLE"),
|
|
119
119
|
message: o("ERROR_FETCHING_OBSERVATIONS"),
|
|
@@ -122,20 +122,20 @@ const A = (t, d, i, l, r) => {
|
|
|
122
122
|
}, [R]);
|
|
123
123
|
const f = h(() => {
|
|
124
124
|
if (!u) return [];
|
|
125
|
-
const e =
|
|
126
|
-
return
|
|
125
|
+
const e = Q(u), m = j(e);
|
|
126
|
+
return w(m);
|
|
127
127
|
}, [u]), F = [
|
|
128
128
|
{ key: "name", header: "name" },
|
|
129
129
|
{ key: "value", header: "value" },
|
|
130
130
|
{ key: "form", header: "form" }
|
|
131
|
-
], O = D || !v, _ = R && v, q = (!u || u.entry?.length === 0 || p.length === 0) && v, L = _ ? o("ERROR_FETCHING_OBSERVATIONS") : null, U = q ? o("NO_OBSERVATIONS_FOUND") : void 0,
|
|
132
|
-
return /* @__PURE__ */
|
|
131
|
+
], O = D || !v, _ = R && v, q = (!u || u.entry?.length === 0 || p.length === 0) && v, L = _ ? o("ERROR_FETCHING_OBSERVATIONS") : null, U = q ? o("NO_OBSERVATIONS_FOUND") : void 0, k = f.length > 0 && !O && !_, E = d.titleTranslationKey, y = E ? o(E) : "";
|
|
132
|
+
return /* @__PURE__ */ $(
|
|
133
133
|
"div",
|
|
134
134
|
{
|
|
135
135
|
id: "observations",
|
|
136
136
|
"data-testid": E ? `observations-${y}` : "observations",
|
|
137
137
|
"aria-label": "observations-aria-label",
|
|
138
|
-
className:
|
|
138
|
+
className: T.observations,
|
|
139
139
|
children: [
|
|
140
140
|
/* @__PURE__ */ c(
|
|
141
141
|
H,
|
|
@@ -143,11 +143,11 @@ const A = (t, d, i, l, r) => {
|
|
|
143
143
|
id: "observations-title",
|
|
144
144
|
testId: E ? `observations-title-${y}` : "observations-title",
|
|
145
145
|
title: y,
|
|
146
|
-
className:
|
|
146
|
+
className: T.title,
|
|
147
147
|
children: /* @__PURE__ */ c("p", { children: y })
|
|
148
148
|
}
|
|
149
149
|
),
|
|
150
|
-
|
|
150
|
+
k ? /* @__PURE__ */ c(re, { groupedData: f, title: y }) : /* @__PURE__ */ c(
|
|
151
151
|
M,
|
|
152
152
|
{
|
|
153
153
|
headers: F,
|
|
@@ -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-1DbsnfSR.js";
|
|
2
2
|
var Os = (e) => e != null, qs = (e) => e.filter(Os);
|
|
3
3
|
function _s(e) {
|
|
4
4
|
return (...t) => {
|