@bahmni/registration-app 0.0.1-dev.227 → 0.0.1-dev.228
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-shXAD18V-CwTfv8G6.js → DocumentsTable-Dmmx1Tly-Bhr8arPB.js} +14 -14
- package/dist/{FormsTable-c_7c8Ui_-ccwr9UOW.js → FormsTable-BJZSRY_P-BQlMUT6L.js} +24 -24
- package/dist/{LNWAZHJI-BXDK2G0Z.js → LNWAZHJI-D63tdY33.js} +2 -2
- package/dist/{MWZ6AO7Z-CZpyu8pF.js → MWZ6AO7Z-7zfwMBXd.js} +2 -2
- package/dist/{Observations-l5ywNrSr-SLiB8B88.js → Observations-Dj2QMfNh-djN-X2kZ.js} +49 -49
- package/dist/{YPM2AS64-BXOv7LP9.js → YPM2AS64-BwVEx6si.js} +1 -1
- package/dist/{index-Bf5u89c9.js → index-CfOuMw7G.js} +24154 -24101
- package/dist/index.css +1 -1
- package/dist/index.js +1 -1
- package/package.json +1 -1
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsx as r, jsxs as p, Fragment as Y } from "react/jsx-runtime";
|
|
2
|
-
import { t as W, u as K, r as Q,
|
|
2
|
+
import { t as W, u as K, r as Q, l as J, M as X, N as Z, o as ee, s as te } from "./index-CfOuMw7G.js";
|
|
3
3
|
import { useQuery as ae } from "@tanstack/react-query";
|
|
4
|
-
import { useState as
|
|
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",
|
|
4
|
+
import { useState as l, useCallback as h, useEffect as f, useMemo as T } from "react";
|
|
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", le = "_documentImage_1voj8_50", d = {
|
|
6
6
|
documentsTableBody: ne,
|
|
7
7
|
viewAttachmentsLink: oe,
|
|
8
8
|
documentViewerContainer: re,
|
|
@@ -10,8 +10,8 @@ const ne = "_documentsTableBody_1voj8_1", oe = "_viewAttachmentsLink_1voj8_11",
|
|
|
10
10
|
attachmentCounter: se,
|
|
11
11
|
attachmentError: ce,
|
|
12
12
|
documentIframe: ie,
|
|
13
|
-
documentImage:
|
|
14
|
-
},
|
|
13
|
+
documentImage: le
|
|
14
|
+
}, me = {
|
|
15
15
|
documentIdentifier: "DOCUMENTS_DOCUMENT_IDENTIFIER",
|
|
16
16
|
documentType: "DOCUMENTS_TYPE",
|
|
17
17
|
uploadedOn: "DOCUMENTS_UPLOADED_ON",
|
|
@@ -24,7 +24,7 @@ function j(a) {
|
|
|
24
24
|
function ue(a, g) {
|
|
25
25
|
return a.map((s) => ({
|
|
26
26
|
key: s,
|
|
27
|
-
header: g(
|
|
27
|
+
header: g(me[s])
|
|
28
28
|
}));
|
|
29
29
|
}
|
|
30
30
|
const _e = [
|
|
@@ -34,11 +34,11 @@ const _e = [
|
|
|
34
34
|
"uploadedBy",
|
|
35
35
|
"action"
|
|
36
36
|
], pe = /\.(jpg|jpeg|png|gif|webp|bmp|svg)$/i, B = (a) => a.attachments.length > 0 ? a.attachments : a.documentUrl ? [{ url: a.documentUrl, contentType: a.contentType }] : [], Ne = ({ config: a, encounterUuids: g }) => {
|
|
37
|
-
const [s, w] =
|
|
37
|
+
const [s, w] = l(!1), [o, M] = l(
|
|
38
38
|
null
|
|
39
|
-
), [R, I] =
|
|
39
|
+
), [R, I] = l(
|
|
40
40
|
/* @__PURE__ */ new Set()
|
|
41
|
-
), E = W(), { t: n } = K(), { addNotification: L } = Q(), $ = Number(a?.pageSize) || 5, [C, A] =
|
|
41
|
+
), E = W(), { t: n } = K(), { addNotification: L } = Q(), $ = Number(a?.pageSize) || 5, [C, A] = l(1), [m, k] = l($), [V, y] = l(void 0), U = h((e) => {
|
|
42
42
|
M(e), w(!0);
|
|
43
43
|
}, []), F = h(() => {
|
|
44
44
|
w(!1), M(null), I(/* @__PURE__ */ new Set());
|
|
@@ -50,13 +50,13 @@ const _e = [
|
|
|
50
50
|
E,
|
|
51
51
|
g,
|
|
52
52
|
C,
|
|
53
|
-
|
|
53
|
+
m
|
|
54
54
|
],
|
|
55
55
|
enabled: !!E,
|
|
56
56
|
queryFn: () => J(
|
|
57
57
|
E,
|
|
58
58
|
g,
|
|
59
|
-
|
|
59
|
+
m,
|
|
60
60
|
C
|
|
61
61
|
)
|
|
62
62
|
});
|
|
@@ -91,9 +91,9 @@ const _e = [
|
|
|
91
91
|
}, [s, o]);
|
|
92
92
|
const q = h(
|
|
93
93
|
(e, t) => {
|
|
94
|
-
t !==
|
|
94
|
+
t !== m ? (k(t), A(1), y(void 0)) : A(e);
|
|
95
95
|
},
|
|
96
|
-
[
|
|
96
|
+
[m]
|
|
97
97
|
), N = T(
|
|
98
98
|
() => a?.fields ?? _e,
|
|
99
99
|
[a?.fields]
|
|
@@ -151,7 +151,7 @@ const _e = [
|
|
|
151
151
|
renderCell: G,
|
|
152
152
|
className: d.documentsTableBody,
|
|
153
153
|
dataTestId: "documents-table",
|
|
154
|
-
pageSize:
|
|
154
|
+
pageSize: m,
|
|
155
155
|
totalItems: V,
|
|
156
156
|
page: C,
|
|
157
157
|
onPageChange: q
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { jsx as s, jsxs as
|
|
2
|
-
import { u as
|
|
1
|
+
import { jsx as s, jsxs as W, Fragment as X } from "react/jsx-runtime";
|
|
2
|
+
import { u as Z, t as ee, m as re, a as ae, b as te, i as oe, c as se, k as ne, V as U, N as de, M as ie, o as C, G as me, J as ue, s as le, P as ce, d as fe } from "./index-CfOuMw7G.js";
|
|
3
3
|
import { useQueryClient as ye, useQuery as c } from "@tanstack/react-query";
|
|
4
4
|
import { useState as S, useMemo as d, useCallback as f } from "react";
|
|
5
5
|
const be = "_formsTableBody_81hra_1", pe = "_customAccordianItem_81hra_6", O = {
|
|
@@ -12,15 +12,15 @@ const be = "_formsTableBody_81hra_1", pe = "_customAccordianItem_81hra_6", O = {
|
|
|
12
12
|
encounterUuids: n,
|
|
13
13
|
config: q
|
|
14
14
|
}) => {
|
|
15
|
-
const { t: o } =
|
|
15
|
+
const { t: o } = Z(), u = ee(), [l, A] = S(!1), [t, I] = S(null), { numberOfVisits: k, hideThumbnail: V = !1 } = q ?? {}, M = re(
|
|
16
16
|
m,
|
|
17
17
|
n
|
|
18
|
-
),
|
|
18
|
+
), H = ye(), {
|
|
19
19
|
data: y = [],
|
|
20
20
|
isLoading: T,
|
|
21
21
|
isError: B,
|
|
22
|
-
error:
|
|
23
|
-
refetch:
|
|
22
|
+
error: K,
|
|
23
|
+
refetch: j
|
|
24
24
|
} = c({
|
|
25
25
|
queryKey: ["forms", u, m],
|
|
26
26
|
queryFn: () => ae(u, void 0, k),
|
|
@@ -37,8 +37,8 @@ const be = "_formsTableBody_81hra_1", pe = "_customAccordianItem_81hra_6", O = {
|
|
|
37
37
|
if (t)
|
|
38
38
|
return D(t.formName);
|
|
39
39
|
}, [t, D]), {
|
|
40
|
-
isLoading:
|
|
41
|
-
isError:
|
|
40
|
+
isLoading: x,
|
|
41
|
+
isError: G,
|
|
42
42
|
error: p
|
|
43
43
|
} = c({
|
|
44
44
|
queryKey: ["formMetadata", b],
|
|
@@ -46,8 +46,8 @@ const be = "_formsTableBody_81hra_1", pe = "_customAccordianItem_81hra_6", O = {
|
|
|
46
46
|
enabled: !!b && l
|
|
47
47
|
}), {
|
|
48
48
|
data: N,
|
|
49
|
-
isLoading:
|
|
50
|
-
isError:
|
|
49
|
+
isLoading: $,
|
|
50
|
+
isError: w,
|
|
51
51
|
error: g
|
|
52
52
|
} = c({
|
|
53
53
|
queryKey: ["formsEncounterFHIR", t?.encounterUuid],
|
|
@@ -56,14 +56,14 @@ const be = "_formsTableBody_81hra_1", pe = "_customAccordianItem_81hra_6", O = {
|
|
|
56
56
|
});
|
|
57
57
|
ne(
|
|
58
58
|
(e) => {
|
|
59
|
-
e.patientUUID === u && e.updatedConcepts.size > 0 && (
|
|
59
|
+
e.patientUUID === u && e.updatedConcepts.size > 0 && (j(), H.invalidateQueries({ queryKey: ["formsEncounterFHIR"] }));
|
|
60
60
|
},
|
|
61
61
|
[u]
|
|
62
62
|
);
|
|
63
|
-
const
|
|
63
|
+
const P = d(() => !N?.entry || !t?.formName ? [] : N.entry.filter((e) => e.resource?.resourceType === "Observation").map((e) => e.resource).filter((e) => {
|
|
64
64
|
const r = Ne(e);
|
|
65
65
|
return !r || r.includes(t.formName);
|
|
66
|
-
}), [N, t?.formName]),
|
|
66
|
+
}), [N, t?.formName]), Q = d(() => {
|
|
67
67
|
if (p)
|
|
68
68
|
return U(p).message;
|
|
69
69
|
if (g)
|
|
@@ -74,7 +74,7 @@ const be = "_formsTableBody_81hra_1", pe = "_customAccordianItem_81hra_6", O = {
|
|
|
74
74
|
{ key: "recordedBy", header: o("RECORDED_BY") }
|
|
75
75
|
],
|
|
76
76
|
[o]
|
|
77
|
-
),
|
|
77
|
+
), z = d(
|
|
78
78
|
() => [
|
|
79
79
|
{ key: "recordedOn", sortable: !0 },
|
|
80
80
|
{ key: "recordedBy", sortable: !0 }
|
|
@@ -85,7 +85,7 @@ const be = "_formsTableBody_81hra_1", pe = "_customAccordianItem_81hra_6", O = {
|
|
|
85
85
|
(r, a) => {
|
|
86
86
|
const i = a.formName;
|
|
87
87
|
r[i] ??= [];
|
|
88
|
-
const h = a.providers.map((
|
|
88
|
+
const h = a.providers.map((Y) => Y.providerName).filter(Boolean).join(", ");
|
|
89
89
|
return r[i].push({
|
|
90
90
|
id: a.encounterUuid,
|
|
91
91
|
formName: a.formName,
|
|
@@ -107,7 +107,7 @@ const be = "_formsTableBody_81hra_1", pe = "_customAccordianItem_81hra_6", O = {
|
|
|
107
107
|
).sort((r, a) => r.formName.localeCompare(a.formName));
|
|
108
108
|
}, [E, o]), R = f((e) => {
|
|
109
109
|
I(e), A(!0);
|
|
110
|
-
}, []),
|
|
110
|
+
}, []), J = f(() => {
|
|
111
111
|
A(!1), I(null);
|
|
112
112
|
}, []), v = f(
|
|
113
113
|
(e, r) => {
|
|
@@ -122,7 +122,7 @@ const be = "_formsTableBody_81hra_1", pe = "_customAccordianItem_81hra_6", O = {
|
|
|
122
122
|
},
|
|
123
123
|
[R]
|
|
124
124
|
);
|
|
125
|
-
return /* @__PURE__ */
|
|
125
|
+
return /* @__PURE__ */ W(X, { children: [
|
|
126
126
|
/* @__PURE__ */ s("div", { "data-testid": "forms-table", children: T || B || L.length === 0 || M ? /* @__PURE__ */ s(
|
|
127
127
|
C,
|
|
128
128
|
{
|
|
@@ -130,7 +130,7 @@ const be = "_formsTableBody_81hra_1", pe = "_customAccordianItem_81hra_6", O = {
|
|
|
130
130
|
ariaLabel: o("FORMS_HEADING"),
|
|
131
131
|
rows: [],
|
|
132
132
|
loading: T,
|
|
133
|
-
errorStateMessage: B ?
|
|
133
|
+
errorStateMessage: B ? K?.message : void 0,
|
|
134
134
|
emptyStateMessage: o("FORMS_UNAVAILABLE"),
|
|
135
135
|
renderCell: v,
|
|
136
136
|
className: O.formsTableBody,
|
|
@@ -153,7 +153,7 @@ const be = "_formsTableBody_81hra_1", pe = "_customAccordianItem_81hra_6", O = {
|
|
|
153
153
|
rows: i,
|
|
154
154
|
loading: !1,
|
|
155
155
|
errorStateMessage: "",
|
|
156
|
-
sortable:
|
|
156
|
+
sortable: z,
|
|
157
157
|
emptyStateMessage: o("FORMS_UNAVAILABLE"),
|
|
158
158
|
renderCell: v,
|
|
159
159
|
className: O.formsTableBody,
|
|
@@ -170,7 +170,7 @@ const be = "_formsTableBody_81hra_1", pe = "_customAccordianItem_81hra_6", O = {
|
|
|
170
170
|
id: "modalIdForActionAreaLayout",
|
|
171
171
|
portalId: "main-display-area",
|
|
172
172
|
open: l,
|
|
173
|
-
onRequestClose:
|
|
173
|
+
onRequestClose: J,
|
|
174
174
|
modalHeading: t.formName,
|
|
175
175
|
modalLabel: `${t.recordedOn} | ${t.recordedBy}`,
|
|
176
176
|
passiveModal: !0,
|
|
@@ -179,10 +179,10 @@ const be = "_formsTableBody_81hra_1", pe = "_customAccordianItem_81hra_6", O = {
|
|
|
179
179
|
children: /* @__PURE__ */ s(
|
|
180
180
|
ce,
|
|
181
181
|
{
|
|
182
|
-
observations:
|
|
183
|
-
isLoading:
|
|
184
|
-
isError:
|
|
185
|
-
errorMessage:
|
|
182
|
+
observations: P,
|
|
183
|
+
isLoading: x || $,
|
|
184
|
+
isError: G || w,
|
|
185
|
+
errorMessage: Q,
|
|
186
186
|
emptyStateMessage: o("NO_FORM_DATA_AVAILABLE"),
|
|
187
187
|
testIdPrefix: t.formName,
|
|
188
188
|
hideThumbnail: V
|
|
@@ -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 {
|
|
1
|
+
import { c, T as l, P as m, a as u, D as v, Q as i } from "./YPM2AS64-BwVEx6si.js";
|
|
2
|
+
import { y as d, z as f, A as e } from "./index-CfOuMw7G.js";
|
|
3
3
|
var p = (a) => {
|
|
4
4
|
const [r, t] = 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 {
|
|
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-BwVEx6si.js";
|
|
2
|
+
import { y as v, z as C, A as e } from "./index-CfOuMw7G.js";
|
|
3
3
|
var h = (t) => {
|
|
4
4
|
const [r, o] = s({
|
|
5
5
|
prefix: "TanstackQueryDevtools"
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { jsxs as N, jsx as u } from "react/jsx-runtime";
|
|
2
|
-
import { t as
|
|
3
|
-
import { useQueries as
|
|
4
|
-
import { useRef as se, useEffect as $, useMemo as
|
|
5
|
-
const D = (
|
|
6
|
-
const
|
|
2
|
+
import { t as V, r as K, u as S, e as j, n as w, k as x, p as G, f as M, g as Q, h as H, o as P, j as Y, I as U, q as z, v as J, w as W, E as X, T as Z, x as ee } from "./index-CfOuMw7G.js";
|
|
3
|
+
import { useQueries as te, useQuery as ae } from "@tanstack/react-query";
|
|
4
|
+
import { useRef as se, useEffect as $, useMemo as T } from "react";
|
|
5
|
+
const D = (t, n, d, l, b, r) => {
|
|
6
|
+
const a = z(t, n, b), s = a.value, i = J(s);
|
|
7
7
|
let o = s;
|
|
8
8
|
i === "Image" && (o = /* @__PURE__ */ u(
|
|
9
9
|
X,
|
|
@@ -22,51 +22,51 @@ const D = (a, n, d, l, b, r) => {
|
|
|
22
22
|
}
|
|
23
23
|
)), i === "PDF" && (o = /* @__PURE__ */ u(ee, { id: `${s}-pdf`, src: s }));
|
|
24
24
|
const m = b("OBSERVATIONS_RECORDED_BY", {
|
|
25
|
-
provider:
|
|
26
|
-
}), p =
|
|
25
|
+
provider: a.provider
|
|
26
|
+
}), p = t.display, y = t.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
|
-
header:
|
|
30
|
+
header: a.header,
|
|
31
31
|
value: o,
|
|
32
32
|
info: m,
|
|
33
33
|
id: c,
|
|
34
34
|
testId: c,
|
|
35
35
|
ariaLabel: c
|
|
36
36
|
},
|
|
37
|
-
`obs-${
|
|
37
|
+
`obs-${t.id}`
|
|
38
38
|
);
|
|
39
|
-
}, re = (
|
|
39
|
+
}, re = (t, n, d, l, b, r, a) => /* @__PURE__ */ u(
|
|
40
40
|
U,
|
|
41
41
|
{
|
|
42
|
-
title:
|
|
43
|
-
id: `grouped-obs-${
|
|
42
|
+
title: t.display,
|
|
43
|
+
id: `grouped-obs-${t.display}-${l}`,
|
|
44
44
|
open: d,
|
|
45
|
-
children:
|
|
45
|
+
children: t.members?.map(
|
|
46
46
|
(s, i) => D(
|
|
47
47
|
s,
|
|
48
48
|
i,
|
|
49
49
|
b,
|
|
50
50
|
r,
|
|
51
51
|
n,
|
|
52
|
-
|
|
52
|
+
a
|
|
53
53
|
)
|
|
54
54
|
)
|
|
55
55
|
},
|
|
56
|
-
`grouped-obs-${
|
|
56
|
+
`grouped-obs-${t.id}`
|
|
57
57
|
), ie = ({
|
|
58
|
-
groupedData:
|
|
58
|
+
groupedData: t,
|
|
59
59
|
title: n = "",
|
|
60
60
|
hideThumbnail: d
|
|
61
61
|
}) => {
|
|
62
|
-
const { t: l } = S(), b = (r,
|
|
63
|
-
const i =
|
|
62
|
+
const { t: l } = S(), b = (r, a, s) => {
|
|
63
|
+
const i = Y(r.encounterDetails, l);
|
|
64
64
|
return /* @__PURE__ */ N(
|
|
65
65
|
U,
|
|
66
66
|
{
|
|
67
67
|
title: i,
|
|
68
68
|
id: `encounter-${r.encounterId}`,
|
|
69
|
-
open:
|
|
69
|
+
open: a,
|
|
70
70
|
children: [
|
|
71
71
|
r.observations.map(
|
|
72
72
|
(o, m) => D(
|
|
@@ -82,7 +82,7 @@ const D = (a, n, d, l, b, r) => {
|
|
|
82
82
|
(o, m) => re(
|
|
83
83
|
o,
|
|
84
84
|
l,
|
|
85
|
-
|
|
85
|
+
a,
|
|
86
86
|
m,
|
|
87
87
|
s,
|
|
88
88
|
n,
|
|
@@ -100,23 +100,23 @@ const D = (a, n, d, l, b, r) => {
|
|
|
100
100
|
id: "obs-by-encounter",
|
|
101
101
|
"data-testid": "obs-by-encounter-test-id",
|
|
102
102
|
"aria-label": "obs-by-encounter-aria-label",
|
|
103
|
-
children:
|
|
104
|
-
(r,
|
|
103
|
+
children: t.map(
|
|
104
|
+
(r, a) => b(r, a === 0, a)
|
|
105
105
|
)
|
|
106
106
|
}
|
|
107
107
|
);
|
|
108
108
|
}, oe = "_observations_kfbhq_1", ne = "_title_kfbhq_12", I = {
|
|
109
109
|
observations: oe,
|
|
110
110
|
title: ne
|
|
111
|
-
}, de = (
|
|
112
|
-
const n =
|
|
111
|
+
}, de = (t) => ["conceptUuid", t], le = (t, n) => ["observations", t, ...n], pe = ({ config: t }) => {
|
|
112
|
+
const n = t, {
|
|
113
113
|
conceptNames: d = [],
|
|
114
114
|
conceptUuid: l = [],
|
|
115
115
|
hideThumbnail: b = !1
|
|
116
|
-
} = n, r = se(/* @__PURE__ */ new Set()),
|
|
116
|
+
} = n, r = se(/* @__PURE__ */ new Set()), a = V(), { addNotification: s } = K(), { t: i } = S(), o = te({
|
|
117
117
|
queries: d.map((e) => ({
|
|
118
118
|
queryKey: de(e),
|
|
119
|
-
queryFn: () =>
|
|
119
|
+
queryFn: () => j(e),
|
|
120
120
|
enabled: !!e
|
|
121
121
|
}))
|
|
122
122
|
});
|
|
@@ -132,44 +132,44 @@ 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 m =
|
|
135
|
+
const m = T(() => o.map((e) => e.data?.uuid).filter((e) => !!e), [o]), p = T(() => [.../* @__PURE__ */ new Set([...m, ...l])], [m, l]), y = T(() => d.length === 0 ? !0 : o.every((e) => !e.isLoading), [o, d.length]), {
|
|
136
136
|
data: c,
|
|
137
137
|
isLoading: F,
|
|
138
|
-
isError:
|
|
139
|
-
refetch:
|
|
140
|
-
} =
|
|
141
|
-
queryKey: le(
|
|
142
|
-
queryFn: () =>
|
|
143
|
-
enabled: !!
|
|
138
|
+
isError: f,
|
|
139
|
+
refetch: R
|
|
140
|
+
} = ae({
|
|
141
|
+
queryKey: le(a, p),
|
|
142
|
+
queryFn: () => w(a, p),
|
|
143
|
+
enabled: !!a && p.length > 0 && y
|
|
144
144
|
});
|
|
145
|
-
|
|
145
|
+
x(
|
|
146
146
|
(e) => {
|
|
147
|
-
e.patientUUID ===
|
|
147
|
+
e.patientUUID === a && e.updatedConcepts.size > 0 && [...e.updatedConcepts.keys()].some(
|
|
148
148
|
(h) => p.includes(h)
|
|
149
|
-
) &&
|
|
149
|
+
) && R();
|
|
150
150
|
},
|
|
151
|
-
[
|
|
151
|
+
[a, R]
|
|
152
152
|
), $(() => {
|
|
153
|
-
|
|
153
|
+
f && s({
|
|
154
154
|
title: i("ERROR_DEFAULT_TITLE"),
|
|
155
155
|
message: i("ERROR_FETCHING_OBSERVATIONS"),
|
|
156
156
|
type: "error"
|
|
157
157
|
});
|
|
158
|
-
}, [
|
|
159
|
-
const g =
|
|
158
|
+
}, [f]);
|
|
159
|
+
const g = T(() => {
|
|
160
160
|
if (!c) return [];
|
|
161
|
-
const e =
|
|
162
|
-
return
|
|
161
|
+
const e = G(c), h = M(e);
|
|
162
|
+
return Q(h);
|
|
163
163
|
}, [c]), q = [
|
|
164
164
|
{ key: "name", header: "name" },
|
|
165
165
|
{ key: "value", header: "value" },
|
|
166
166
|
{ key: "form", header: "form" }
|
|
167
|
-
], O = F || !
|
|
167
|
+
], O = F || !y, _ = f && y, A = (!c || c.entry?.length === 0 || p.length === 0) && y, L = _ ? i("ERROR_FETCHING_OBSERVATIONS") : null, k = A ? i("NO_OBSERVATIONS_FOUND") : void 0, C = g.length > 0 && !O && !_, E = n.titleTranslationKey, v = E ? i(E) : "";
|
|
168
168
|
return /* @__PURE__ */ N(
|
|
169
169
|
"div",
|
|
170
170
|
{
|
|
171
171
|
id: "observations",
|
|
172
|
-
"data-testid": E ? `observations-${
|
|
172
|
+
"data-testid": E ? `observations-${v}` : "observations",
|
|
173
173
|
"aria-label": "observations-aria-label",
|
|
174
174
|
className: I.observations,
|
|
175
175
|
children: [
|
|
@@ -177,21 +177,21 @@ const D = (a, n, d, l, b, r) => {
|
|
|
177
177
|
H,
|
|
178
178
|
{
|
|
179
179
|
id: "observations-title",
|
|
180
|
-
testId: E ? `observations-title-${
|
|
181
|
-
title:
|
|
180
|
+
testId: E ? `observations-title-${v}` : "observations-title",
|
|
181
|
+
title: v,
|
|
182
182
|
className: I.title,
|
|
183
|
-
children: /* @__PURE__ */ u("p", { children:
|
|
183
|
+
children: /* @__PURE__ */ u("p", { children: v })
|
|
184
184
|
}
|
|
185
185
|
),
|
|
186
186
|
C ? /* @__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
|
+
P,
|
|
195
195
|
{
|
|
196
196
|
headers: q,
|
|
197
197
|
rows: [],
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { B as we, C as z, D as xt, F as B, z as q, A as y, H as Ro, K as ye, S as R, L as _, O as k, Q as N, R as A, U as bs, W as ir, X as $e, Y as U, Z as Hn, _ as Vn, $ 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-CfOuMw7G.js";
|
|
2
2
|
var Os = (e) => e != null, qs = (e) => e.filter(Os);
|
|
3
3
|
function _s(e) {
|
|
4
4
|
return (...t) => {
|