@bahmni/registration-app 0.0.1-dev.217 → 0.0.1-dev.219
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-DGp_CqcQ-D2k2tOOO.js → DocumentsTable-DGCf8sB7-DfwbBEkq.js} +6 -6
- package/dist/{FormsTable-C1opmUvf-BfDCK_05.js → FormsTable-Cngf3xjx-2LuJ_pWR.js} +35 -35
- package/dist/{LNWAZHJI-CLR3cG12.js → LNWAZHJI-tcOPJnEl.js} +5 -5
- package/dist/{MWZ6AO7Z-CPbqwixU.js → MWZ6AO7Z-BXeK3khR.js} +4 -4
- package/dist/{Observations-DoglMWsy-CxZqy9Ep.js → Observations-BTspCmvP-DH-HxWsf.js} +45 -45
- package/dist/{YPM2AS64-BOmicZD4.js → YPM2AS64-CnNXh1qY.js} +138 -138
- package/dist/{index-CXRvNffr.js → index-B_QFxkcq.js} +11698 -11720
- package/dist/index.js +1 -1
- package/dist/pages/PatientRegister/patientFormService.d.ts.map +1 -1
- package/dist/providers/registrationConfig/schema.json.d.ts +1 -1
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as r, jsxs as p, Fragment as Y } from "react/jsx-runtime";
|
|
2
|
-
import { u as K, a as Q, e as W,
|
|
2
|
+
import { u as K, a as Q, e as W, V as J, E as X, T as Z, h as ee, b as te } from "./index-B_QFxkcq.js";
|
|
3
3
|
import { useQuery as ae } from "@tanstack/react-query";
|
|
4
4
|
import { useState as m, useCallback as h, useEffect as f, useMemo as T } from "react";
|
|
5
5
|
const ne = "_documentsTableBody_1voj8_1", oe = "_viewAttachmentsLink_1voj8_11", re = "_documentViewerContainer_1voj8_15", de = "_attachmentItem_1voj8_23", se = "_attachmentCounter_1voj8_27", ce = "_attachmentError_1voj8_36", ie = "_documentIframe_1voj8_44", me = "_documentImage_1voj8_50", d = {
|
|
@@ -38,7 +38,7 @@ const _e = [
|
|
|
38
38
|
null
|
|
39
39
|
), [R, I] = m(
|
|
40
40
|
/* @__PURE__ */ new Set()
|
|
41
|
-
), g = K(), { t: n } = Q(), { addNotification: U } = W(), $ = Number(a?.pageSize) || 5, [C,
|
|
41
|
+
), g = K(), { t: n } = Q(), { addNotification: U } = W(), $ = Number(a?.pageSize) || 5, [C, A] = m(1), [l, V] = m($), [k, y] = m(void 0), b = h((e) => {
|
|
42
42
|
L(e), w(!0);
|
|
43
43
|
}, []), F = h(() => {
|
|
44
44
|
w(!1), L(null), I(/* @__PURE__ */ new Set());
|
|
@@ -61,9 +61,9 @@ const _e = [
|
|
|
61
61
|
)
|
|
62
62
|
});
|
|
63
63
|
f(() => {
|
|
64
|
-
u &&
|
|
64
|
+
u && y(u.total);
|
|
65
65
|
}, [u]), f(() => {
|
|
66
|
-
|
|
66
|
+
A(1), y(void 0);
|
|
67
67
|
}, [g]), f(() => {
|
|
68
68
|
D && U({
|
|
69
69
|
title: n("ERROR_DEFAULT_TITLE"),
|
|
@@ -91,7 +91,7 @@ const _e = [
|
|
|
91
91
|
}, [s, o]);
|
|
92
92
|
const q = h(
|
|
93
93
|
(e, t) => {
|
|
94
|
-
t !== l ? (
|
|
94
|
+
t !== l ? (V(t), A(1), y(void 0)) : A(e);
|
|
95
95
|
},
|
|
96
96
|
[l]
|
|
97
97
|
), N = T(
|
|
@@ -152,7 +152,7 @@ const _e = [
|
|
|
152
152
|
className: d.documentsTableBody,
|
|
153
153
|
dataTestId: "documents-table",
|
|
154
154
|
pageSize: l,
|
|
155
|
-
totalItems:
|
|
155
|
+
totalItems: k,
|
|
156
156
|
page: C,
|
|
157
157
|
onPageChange: q
|
|
158
158
|
}
|
|
@@ -1,30 +1,30 @@
|
|
|
1
|
-
import { jsx as s, jsxs as
|
|
2
|
-
import { a as Z, u as ee, c as re,
|
|
1
|
+
import { jsx as s, jsxs as W, Fragment as X } from "react/jsx-runtime";
|
|
2
|
+
import { a as Z, u as ee, c as re, y as ae, v as te, d as oe, g as se, f as ne, i as R, T as de, E as ie, h as q, q as ue, U as me, b as le, L as ce, m as fe } from "./index-B_QFxkcq.js";
|
|
3
3
|
import { useQueryClient as ye, useQuery as c } from "@tanstack/react-query";
|
|
4
|
-
import { useState as
|
|
4
|
+
import { useState as S, useMemo as d, useCallback as f } from "react";
|
|
5
5
|
const be = "_formsTableBody_81hra_1", ge = "_customAccordianItem_81hra_6", A = {
|
|
6
6
|
formsTableBody: be,
|
|
7
7
|
customAccordianItem: ge
|
|
8
|
-
},
|
|
8
|
+
}, pe = (u) => u ? u.extension?.find(
|
|
9
9
|
(n) => n.url === fe
|
|
10
10
|
)?.valueString : void 0, Ee = ({
|
|
11
|
-
episodeOfCareUuids:
|
|
11
|
+
episodeOfCareUuids: u,
|
|
12
12
|
encounterUuids: n,
|
|
13
|
-
config:
|
|
13
|
+
config: C
|
|
14
14
|
}) => {
|
|
15
|
-
const { t: o } = Z(),
|
|
16
|
-
|
|
15
|
+
const { t: o } = Z(), m = ee(), [l, O] = S(!1), [t, E] = S(null), { numberOfVisits: k, hideThumbnail: H = !1 } = C ?? {}, I = re(
|
|
16
|
+
u,
|
|
17
17
|
n
|
|
18
|
-
),
|
|
18
|
+
), K = ye(), {
|
|
19
19
|
data: y = [],
|
|
20
20
|
isLoading: T,
|
|
21
21
|
isError: L,
|
|
22
|
-
error:
|
|
23
|
-
refetch:
|
|
22
|
+
error: V,
|
|
23
|
+
refetch: j
|
|
24
24
|
} = c({
|
|
25
|
-
queryKey: ["forms",
|
|
26
|
-
queryFn: () => ae(
|
|
27
|
-
enabled: !!
|
|
25
|
+
queryKey: ["forms", m, u],
|
|
26
|
+
queryFn: () => ae(m, void 0, k),
|
|
27
|
+
enabled: !!m && !I
|
|
28
28
|
}), B = d(() => !n || n.length === 0 ? y : y.filter(
|
|
29
29
|
(e) => n.includes(e.encounterUuid)
|
|
30
30
|
), [y, n]), { data: _ = [] } = c({
|
|
@@ -37,18 +37,18 @@ const be = "_formsTableBody_81hra_1", ge = "_customAccordianItem_81hra_6", A = {
|
|
|
37
37
|
if (t)
|
|
38
38
|
return v(t.formName);
|
|
39
39
|
}, [t, v]), {
|
|
40
|
-
isLoading:
|
|
41
|
-
isError:
|
|
40
|
+
isLoading: x,
|
|
41
|
+
isError: $,
|
|
42
42
|
error: g
|
|
43
43
|
} = c({
|
|
44
44
|
queryKey: ["formMetadata", b],
|
|
45
45
|
queryFn: () => oe(b),
|
|
46
46
|
enabled: !!b && l
|
|
47
47
|
}), {
|
|
48
|
-
data:
|
|
49
|
-
isLoading:
|
|
48
|
+
data: p,
|
|
49
|
+
isLoading: w,
|
|
50
50
|
isError: Q,
|
|
51
|
-
error:
|
|
51
|
+
error: h
|
|
52
52
|
} = c({
|
|
53
53
|
queryKey: ["formsEncounterFHIR", t?.encounterUuid],
|
|
54
54
|
queryFn: () => se(t.encounterUuid),
|
|
@@ -56,19 +56,19 @@ const be = "_formsTableBody_81hra_1", ge = "_customAccordianItem_81hra_6", A = {
|
|
|
56
56
|
});
|
|
57
57
|
ne(
|
|
58
58
|
(e) => {
|
|
59
|
-
e.patientUUID ===
|
|
59
|
+
e.patientUUID === m && e.updatedConcepts.size > 0 && (j(), K.invalidateQueries({ queryKey: ["formsEncounterFHIR"] }));
|
|
60
60
|
},
|
|
61
|
-
[
|
|
61
|
+
[m]
|
|
62
62
|
);
|
|
63
|
-
const z = d(() => !
|
|
64
|
-
const r =
|
|
63
|
+
const z = d(() => !p?.entry || !t?.formName ? [] : p.entry.filter((e) => e.resource?.resourceType === "Observation").map((e) => e.resource).filter((e) => {
|
|
64
|
+
const r = pe(e);
|
|
65
65
|
return !r || r.includes(t.formName);
|
|
66
|
-
}), [
|
|
66
|
+
}), [p, t?.formName]), G = d(() => {
|
|
67
67
|
if (g)
|
|
68
68
|
return R(g).message;
|
|
69
|
-
if (
|
|
70
|
-
return R(
|
|
71
|
-
}, [g,
|
|
69
|
+
if (h)
|
|
70
|
+
return R(h).message;
|
|
71
|
+
}, [g, h]), F = d(
|
|
72
72
|
() => [
|
|
73
73
|
{ key: "recordedOn", header: o("RECORDED_ON") },
|
|
74
74
|
{ key: "recordedBy", header: o("RECORDED_BY") }
|
|
@@ -85,7 +85,7 @@ const be = "_formsTableBody_81hra_1", ge = "_customAccordianItem_81hra_6", A = {
|
|
|
85
85
|
(r, a) => {
|
|
86
86
|
const i = a.formName;
|
|
87
87
|
r[i] ??= [];
|
|
88
|
-
const N = a.providers.map((
|
|
88
|
+
const N = a.providers.map((J) => J.providerName).filter(Boolean).join(", ");
|
|
89
89
|
return r[i].push({
|
|
90
90
|
id: a.encounterUuid,
|
|
91
91
|
formName: a.formName,
|
|
@@ -122,7 +122,7 @@ const be = "_formsTableBody_81hra_1", ge = "_customAccordianItem_81hra_6", A = {
|
|
|
122
122
|
},
|
|
123
123
|
[U]
|
|
124
124
|
);
|
|
125
|
-
return /* @__PURE__ */
|
|
125
|
+
return /* @__PURE__ */ W(X, { children: [
|
|
126
126
|
/* @__PURE__ */ s("div", { "data-testid": "forms-table", children: T || L || M.length === 0 || I ? /* @__PURE__ */ s(
|
|
127
127
|
q,
|
|
128
128
|
{
|
|
@@ -130,16 +130,16 @@ const be = "_formsTableBody_81hra_1", ge = "_customAccordianItem_81hra_6", A = {
|
|
|
130
130
|
ariaLabel: o("FORMS_HEADING"),
|
|
131
131
|
rows: [],
|
|
132
132
|
loading: T,
|
|
133
|
-
errorStateMessage: L ?
|
|
133
|
+
errorStateMessage: L ? V?.message : void 0,
|
|
134
134
|
emptyStateMessage: o("FORMS_UNAVAILABLE"),
|
|
135
135
|
renderCell: D,
|
|
136
136
|
className: A.formsTableBody,
|
|
137
137
|
dataTestId: "forms-table"
|
|
138
138
|
}
|
|
139
|
-
) : /* @__PURE__ */ s(
|
|
139
|
+
) : /* @__PURE__ */ s(ue, { align: "start", children: M.map((e, r) => {
|
|
140
140
|
const { formName: a, records: i } = e;
|
|
141
141
|
return /* @__PURE__ */ s(
|
|
142
|
-
|
|
142
|
+
me,
|
|
143
143
|
{
|
|
144
144
|
title: a,
|
|
145
145
|
className: A.customAccordianItem,
|
|
@@ -180,12 +180,12 @@ const be = "_formsTableBody_81hra_1", ge = "_customAccordianItem_81hra_6", A = {
|
|
|
180
180
|
ce,
|
|
181
181
|
{
|
|
182
182
|
observations: z,
|
|
183
|
-
isLoading:
|
|
184
|
-
isError:
|
|
183
|
+
isLoading: x || w,
|
|
184
|
+
isError: $ || Q,
|
|
185
185
|
errorMessage: G,
|
|
186
186
|
emptyStateMessage: o("NO_FORM_DATA_AVAILABLE"),
|
|
187
187
|
testIdPrefix: t.formName,
|
|
188
|
-
hideThumbnail:
|
|
188
|
+
hideThumbnail: H
|
|
189
189
|
}
|
|
190
190
|
)
|
|
191
191
|
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { c, T as l, P as m, a as u, D as v, Q as i } from "./YPM2AS64-
|
|
2
|
-
import { o as
|
|
3
|
-
var
|
|
1
|
+
import { c, T as l, P as m, a as u, D as v, Q as i } from "./YPM2AS64-CnNXh1qY.js";
|
|
2
|
+
import { o as p, p as d, s as e } from "./index-B_QFxkcq.js";
|
|
3
|
+
var f = (a) => {
|
|
4
4
|
const [r, o] = c({
|
|
5
5
|
prefix: "TanstackQueryDevtools"
|
|
6
|
-
}), n =
|
|
6
|
+
}), n = p(), s = d(() => {
|
|
7
7
|
const t = r.theme_preference || l;
|
|
8
8
|
return t !== "system" ? t : n();
|
|
9
9
|
});
|
|
@@ -27,7 +27,7 @@ var p = (a) => {
|
|
|
27
27
|
});
|
|
28
28
|
}
|
|
29
29
|
});
|
|
30
|
-
}, C =
|
|
30
|
+
}, C = f;
|
|
31
31
|
export {
|
|
32
32
|
C as default
|
|
33
33
|
};
|
|
@@ -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 { o as v,
|
|
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-CnNXh1qY.js";
|
|
2
|
+
import { o as v, p as C, s as e } from "./index-B_QFxkcq.js";
|
|
3
3
|
var h = (t) => {
|
|
4
4
|
const [r, o] = l({
|
|
5
5
|
prefix: "TanstackQueryDevtools"
|
|
@@ -36,7 +36,7 @@ var h = (t) => {
|
|
|
36
36
|
});
|
|
37
37
|
}
|
|
38
38
|
});
|
|
39
|
-
},
|
|
39
|
+
}, g = h;
|
|
40
40
|
export {
|
|
41
|
-
|
|
41
|
+
g as default
|
|
42
42
|
};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { jsxs as I, jsx as u } from "react/jsx-runtime";
|
|
2
|
-
import { u as B, e as K, a as
|
|
2
|
+
import { u as B, e as K, a as N, j as M, w, f as x, z as Q, N as j, A as z, k as G, h as H, M as J, J as A, x as P, S as Y, C as W, r as X, l as Z, n as ee } from "./index-B_QFxkcq.js";
|
|
3
3
|
import { useQueries as ae, useQuery as te } from "@tanstack/react-query";
|
|
4
|
-
import { useRef as se, useEffect as
|
|
5
|
-
const
|
|
6
|
-
const t =
|
|
4
|
+
import { useRef as se, useEffect as $, useMemo as E } from "react";
|
|
5
|
+
const U = (a, n, d, l, b, r) => {
|
|
6
|
+
const t = P(a, n, b), s = t.value, i = Y(s);
|
|
7
7
|
let o = s;
|
|
8
8
|
i === "Image" && (o = /* @__PURE__ */ u(
|
|
9
9
|
X,
|
|
@@ -21,15 +21,15 @@ const D = (a, n, d, l, b, r) => {
|
|
|
21
21
|
hideThumbnail: r
|
|
22
22
|
}
|
|
23
23
|
)), i === "PDF" && (o = /* @__PURE__ */ u(ee, { id: `${s}-pdf`, src: s }));
|
|
24
|
-
const
|
|
24
|
+
const m = b("OBSERVATIONS_RECORDED_BY", {
|
|
25
25
|
provider: t.provider
|
|
26
|
-
}),
|
|
26
|
+
}), p = a.display, y = a.observationValue?.isAbnormal ? "abnormal-obs" : "obs", c = l ? `${l}-${y}-${p}-${d}-${n}` : `${y}-${p}-${d}-${n}`;
|
|
27
27
|
return /* @__PURE__ */ u(
|
|
28
28
|
W,
|
|
29
29
|
{
|
|
30
30
|
header: t.header,
|
|
31
31
|
value: o,
|
|
32
|
-
info:
|
|
32
|
+
info: m,
|
|
33
33
|
id: c,
|
|
34
34
|
testId: c,
|
|
35
35
|
ariaLabel: c
|
|
@@ -37,13 +37,13 @@ const D = (a, n, d, l, b, r) => {
|
|
|
37
37
|
`obs-${a.id}`
|
|
38
38
|
);
|
|
39
39
|
}, re = (a, n, d, l, b, r, t) => /* @__PURE__ */ u(
|
|
40
|
-
|
|
40
|
+
A,
|
|
41
41
|
{
|
|
42
42
|
title: a.display,
|
|
43
43
|
id: `grouped-obs-${a.display}-${l}`,
|
|
44
44
|
open: d,
|
|
45
45
|
children: a.members?.map(
|
|
46
|
-
(s, i) =>
|
|
46
|
+
(s, i) => U(
|
|
47
47
|
s,
|
|
48
48
|
i,
|
|
49
49
|
b,
|
|
@@ -59,19 +59,19 @@ const D = (a, n, d, l, b, r) => {
|
|
|
59
59
|
title: n = "",
|
|
60
60
|
hideThumbnail: d
|
|
61
61
|
}) => {
|
|
62
|
-
const { t: l } =
|
|
63
|
-
const i =
|
|
62
|
+
const { t: l } = N(), b = (r, t, s) => {
|
|
63
|
+
const i = J(r.encounterDetails, l);
|
|
64
64
|
return /* @__PURE__ */ I(
|
|
65
|
-
|
|
65
|
+
A,
|
|
66
66
|
{
|
|
67
67
|
title: i,
|
|
68
68
|
id: `encounter-${r.encounterId}`,
|
|
69
69
|
open: t,
|
|
70
70
|
children: [
|
|
71
71
|
r.observations.map(
|
|
72
|
-
(o,
|
|
72
|
+
(o, m) => U(
|
|
73
73
|
o,
|
|
74
|
-
|
|
74
|
+
m,
|
|
75
75
|
s,
|
|
76
76
|
n,
|
|
77
77
|
l,
|
|
@@ -79,11 +79,11 @@ const D = (a, n, d, l, b, r) => {
|
|
|
79
79
|
)
|
|
80
80
|
),
|
|
81
81
|
r.groupedObservations.map(
|
|
82
|
-
(o,
|
|
82
|
+
(o, m) => re(
|
|
83
83
|
o,
|
|
84
84
|
l,
|
|
85
85
|
t,
|
|
86
|
-
|
|
86
|
+
m,
|
|
87
87
|
s,
|
|
88
88
|
n,
|
|
89
89
|
d
|
|
@@ -105,22 +105,22 @@ const D = (a, n, d, l, b, r) => {
|
|
|
105
105
|
)
|
|
106
106
|
}
|
|
107
107
|
);
|
|
108
|
-
}, oe = "_observations_kfbhq_1", ne = "_title_kfbhq_12",
|
|
108
|
+
}, oe = "_observations_kfbhq_1", ne = "_title_kfbhq_12", S = {
|
|
109
109
|
observations: oe,
|
|
110
110
|
title: ne
|
|
111
|
-
}, de = (a) => ["conceptUuid", a], le = (a, n) => ["observations", a, ...n],
|
|
111
|
+
}, de = (a) => ["conceptUuid", a], le = (a, n) => ["observations", a, ...n], pe = ({ config: a }) => {
|
|
112
112
|
const n = a, {
|
|
113
113
|
conceptNames: d = [],
|
|
114
114
|
conceptUuid: l = [],
|
|
115
115
|
hideThumbnail: b = !1
|
|
116
|
-
} = n, r = se(/* @__PURE__ */ new Set()), t = B(), { addNotification: s } = K(), { t: i } =
|
|
116
|
+
} = n, r = se(/* @__PURE__ */ new Set()), t = B(), { addNotification: s } = K(), { t: i } = N(), o = ae({
|
|
117
117
|
queries: d.map((e) => ({
|
|
118
118
|
queryKey: de(e),
|
|
119
119
|
queryFn: () => M(e),
|
|
120
120
|
enabled: !!e
|
|
121
121
|
}))
|
|
122
122
|
});
|
|
123
|
-
|
|
123
|
+
$(() => {
|
|
124
124
|
o.forEach((e, h) => {
|
|
125
125
|
if (e.isError && !r.current.has(h)) {
|
|
126
126
|
const k = d[h];
|
|
@@ -132,73 +132,73 @@ const D = (a, n, d, l, b, r) => {
|
|
|
132
132
|
} else e.isError || r.current.delete(h);
|
|
133
133
|
});
|
|
134
134
|
}, [o, d]);
|
|
135
|
-
const
|
|
135
|
+
const m = E(() => o.map((e) => e.data?.uuid).filter((e) => !!e), [o]), p = E(() => [.../* @__PURE__ */ new Set([...m, ...l])], [m, l]), y = E(() => d.length === 0 ? !0 : o.every((e) => !e.isLoading), [o, d.length]), {
|
|
136
136
|
data: c,
|
|
137
|
-
isLoading:
|
|
137
|
+
isLoading: C,
|
|
138
138
|
isError: R,
|
|
139
139
|
refetch: T
|
|
140
140
|
} = te({
|
|
141
|
-
queryKey: le(t,
|
|
142
|
-
queryFn: () =>
|
|
143
|
-
enabled: !!t &&
|
|
141
|
+
queryKey: le(t, p),
|
|
142
|
+
queryFn: () => w(t, p),
|
|
143
|
+
enabled: !!t && p.length > 0 && y
|
|
144
144
|
});
|
|
145
|
-
|
|
145
|
+
x(
|
|
146
146
|
(e) => {
|
|
147
147
|
e.patientUUID === t && e.updatedConcepts.size > 0 && [...e.updatedConcepts.keys()].some(
|
|
148
|
-
(h) =>
|
|
148
|
+
(h) => p.includes(h)
|
|
149
149
|
) && T();
|
|
150
150
|
},
|
|
151
151
|
[t, T]
|
|
152
|
-
),
|
|
152
|
+
), $(() => {
|
|
153
153
|
R && s({
|
|
154
154
|
title: i("ERROR_DEFAULT_TITLE"),
|
|
155
155
|
message: i("ERROR_FETCHING_OBSERVATIONS"),
|
|
156
156
|
type: "error"
|
|
157
157
|
});
|
|
158
158
|
}, [R]);
|
|
159
|
-
const g =
|
|
159
|
+
const g = E(() => {
|
|
160
160
|
if (!c) return [];
|
|
161
161
|
const e = Q(c), h = j(e);
|
|
162
|
-
return
|
|
163
|
-
}, [c]),
|
|
162
|
+
return z(h);
|
|
163
|
+
}, [c]), D = [
|
|
164
164
|
{ key: "name", header: "name" },
|
|
165
165
|
{ key: "value", header: "value" },
|
|
166
166
|
{ key: "form", header: "form" }
|
|
167
|
-
],
|
|
167
|
+
], O = C || !y, _ = R && y, F = (!c || c.entry?.length === 0 || p.length === 0) && y, L = _ ? i("ERROR_FETCHING_OBSERVATIONS") : null, V = F ? i("NO_OBSERVATIONS_FOUND") : void 0, q = g.length > 0 && !O && !_, f = n.titleTranslationKey, v = f ? i(f) : "";
|
|
168
168
|
return /* @__PURE__ */ I(
|
|
169
169
|
"div",
|
|
170
170
|
{
|
|
171
171
|
id: "observations",
|
|
172
|
-
"data-testid":
|
|
172
|
+
"data-testid": f ? `observations-${v}` : "observations",
|
|
173
173
|
"aria-label": "observations-aria-label",
|
|
174
|
-
className:
|
|
174
|
+
className: S.observations,
|
|
175
175
|
children: [
|
|
176
176
|
/* @__PURE__ */ u(
|
|
177
|
-
|
|
177
|
+
G,
|
|
178
178
|
{
|
|
179
179
|
id: "observations-title",
|
|
180
|
-
testId:
|
|
181
|
-
title:
|
|
182
|
-
className:
|
|
183
|
-
children: /* @__PURE__ */ u("p", { children:
|
|
180
|
+
testId: f ? `observations-title-${v}` : "observations-title",
|
|
181
|
+
title: v,
|
|
182
|
+
className: S.title,
|
|
183
|
+
children: /* @__PURE__ */ u("p", { children: v })
|
|
184
184
|
}
|
|
185
185
|
),
|
|
186
|
-
|
|
186
|
+
q ? /* @__PURE__ */ u(
|
|
187
187
|
ie,
|
|
188
188
|
{
|
|
189
189
|
groupedData: g,
|
|
190
|
-
title:
|
|
190
|
+
title: v,
|
|
191
191
|
hideThumbnail: b
|
|
192
192
|
}
|
|
193
193
|
) : /* @__PURE__ */ u(
|
|
194
194
|
H,
|
|
195
195
|
{
|
|
196
|
-
headers:
|
|
196
|
+
headers: D,
|
|
197
197
|
rows: [],
|
|
198
198
|
ariaLabel: i("OBSERVATIONS"),
|
|
199
|
-
loading:
|
|
199
|
+
loading: O,
|
|
200
200
|
errorStateMessage: L,
|
|
201
|
-
emptyStateMessage:
|
|
201
|
+
emptyStateMessage: V,
|
|
202
202
|
dataTestId: "observations-table"
|
|
203
203
|
}
|
|
204
204
|
)
|
|
@@ -208,6 +208,6 @@ const D = (a, n, d, l, b, r) => {
|
|
|
208
208
|
};
|
|
209
209
|
export {
|
|
210
210
|
de as conceptUuidQueryKeys,
|
|
211
|
-
|
|
211
|
+
pe as default,
|
|
212
212
|
le as observationsQueryKeys
|
|
213
213
|
};
|