@bahmni/widgets 0.0.1-dev.458 → 0.0.1-dev.461
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-BgmDp581.js → DocumentsTable-CWtmCWHw.js} +63 -63
- package/dist/{FormsTable-Cekdbhbb.js → FormsTable-Cdfw4nlS.js} +66 -66
- package/dist/{Observations-DMNiLVdz.js → Observations-ByFseCbp.js} +35 -35
- package/dist/{index-DepMUZYx.js → index-RIPNlc6y.js} +46 -45
- package/dist/index.js +9 -9
- package/dist/search/searchPatient/actions/appointmentSearchResultActionHandler.d.ts +1 -1
- package/dist/search/searchPatient/actions/appointmentSearchResultActionHandler.d.ts.map +1 -1
- package/package.json +4 -4
|
@@ -1,26 +1,26 @@
|
|
|
1
1
|
import { jsx as a, jsxs as T, Fragment as _e } from "react/jsx-runtime";
|
|
2
|
-
import { u as pe, a as Ae, b as Ee,
|
|
3
|
-
import { useQuery as
|
|
4
|
-
import { useState as _, useRef as
|
|
2
|
+
import { u as pe, a as Ae, b as Ee, d as ge, r as fe, c as Ce, e as S, p as Ne, $ as Ie, f as De, E as Le, g as be, z as Q, A as Oe, h as Se, L as ve, W as ye, i as we, j as J, k as ee } from "./index-RIPNlc6y.js";
|
|
3
|
+
import { useQuery as Ue } from "@tanstack/react-query";
|
|
4
|
+
import { useState as _, useRef as Me, useEffect as A, useMemo as E, useCallback as p } from "react";
|
|
5
5
|
import { useTranslation as Re } from "react-i18next";
|
|
6
|
-
const
|
|
7
|
-
documentsTableBody:
|
|
8
|
-
viewAttachmentsLink:
|
|
6
|
+
const ke = "DocumentsTable-module_documentsTableBody__6iR3w", Pe = "DocumentsTable-module_viewAttachmentsLink__aQ1on", Be = "DocumentsTable-module_documentViewerContainer__F5m8D", He = "DocumentsTable-module_printContainer__rtarJ", $e = "DocumentsTable-module_attachmentItem__17KA7", ze = "DocumentsTable-module_attachmentCounter__WFiI3", Fe = "DocumentsTable-module_attachmentError__RI4U2", Ve = "DocumentsTable-module_documentIframe__ptq5I", We = "DocumentsTable-module_attachmentContent__IaCEe", Ge = "DocumentsTable-module_attachmentLoading__FAR6p", qe = "DocumentsTable-module_hiddenWhileLoading__IxocW", Ke = "DocumentsTable-module_documentImage__KQVgS", je = "DocumentsTable-module_header__345GY", Ye = "DocumentsTable-module_documentTypeCell__uWGM8", Qe = "DocumentsTable-module_printAllButton__IVYUW", Je = "DocumentsTable-module_attachmentHeader__yI2xn", s = {
|
|
7
|
+
documentsTableBody: ke,
|
|
8
|
+
viewAttachmentsLink: Pe,
|
|
9
9
|
documentViewerContainer: Be,
|
|
10
10
|
printContainer: He,
|
|
11
11
|
attachmentItem: $e,
|
|
12
|
-
attachmentCounter:
|
|
13
|
-
attachmentError:
|
|
14
|
-
documentIframe:
|
|
15
|
-
attachmentContent:
|
|
12
|
+
attachmentCounter: ze,
|
|
13
|
+
attachmentError: Fe,
|
|
14
|
+
documentIframe: Ve,
|
|
15
|
+
attachmentContent: We,
|
|
16
16
|
attachmentLoading: Ge,
|
|
17
17
|
hiddenWhileLoading: qe,
|
|
18
18
|
documentImage: Ke,
|
|
19
|
-
header:
|
|
20
|
-
documentTypeCell:
|
|
21
|
-
printAllButton:
|
|
22
|
-
attachmentHeader:
|
|
23
|
-
},
|
|
19
|
+
header: je,
|
|
20
|
+
documentTypeCell: Ye,
|
|
21
|
+
printAllButton: Qe,
|
|
22
|
+
attachmentHeader: Je
|
|
23
|
+
}, Xe = "startConsultation", Ze = "add", xe = "documents", X = "document-print-container", Z = () => /* @__PURE__ */ a(ee, {}), et = /* @__PURE__ */ new Set([
|
|
24
24
|
"ArrowUp",
|
|
25
25
|
"ArrowDown",
|
|
26
26
|
"PageUp",
|
|
@@ -41,26 +41,26 @@ const Pe = "DocumentsTable-module_documentsTableBody__6iR3w", ke = "DocumentsTab
|
|
|
41
41
|
/* @__PURE__ */ new Set()
|
|
42
42
|
), [L, y] = _(
|
|
43
43
|
/* @__PURE__ */ new Set()
|
|
44
|
-
), C =
|
|
44
|
+
), C = Me(null), [w, z] = _(
|
|
45
45
|
null
|
|
46
|
-
),
|
|
46
|
+
), F = w !== null;
|
|
47
47
|
A(() => () => C.current?.abort(), []);
|
|
48
48
|
const g = pe(), { t: o } = Re(), { addNotification: b } = Ae(), m = E(
|
|
49
49
|
() => l?.actions?.find(
|
|
50
|
-
(e) => e.type ===
|
|
50
|
+
(e) => e.type === Ze
|
|
51
51
|
),
|
|
52
52
|
[l?.actions]
|
|
53
|
-
), te = Ee(m?.requiredPrivilege), ne = !!m && te, ae = Number(l?.pageSize) || 5, [
|
|
53
|
+
), te = Ee(m?.requiredPrivilege), ne = !!m && te, ae = Number(l?.pageSize) || 5, [U, M] = _(1), [N, oe] = _(ae), [se, R] = _(void 0), V = p((e) => {
|
|
54
54
|
$(e), H(!0);
|
|
55
55
|
}, []), re = p(() => {
|
|
56
56
|
C.current?.abort(), y(/* @__PURE__ */ new Set()), H(!1), $(null), v(/* @__PURE__ */ new Set());
|
|
57
|
-
}, []),
|
|
57
|
+
}, []), W = p((e) => {
|
|
58
58
|
y((t) => new Set(t).add(e));
|
|
59
59
|
}, []), G = p((e) => {
|
|
60
60
|
v((t) => new Set(t).add(e));
|
|
61
61
|
}, []), ce = p(() => {
|
|
62
62
|
m && globalThis.dispatchEvent(
|
|
63
|
-
new CustomEvent(
|
|
63
|
+
new CustomEvent(Xe, {
|
|
64
64
|
detail: {
|
|
65
65
|
encounterType: m.encounterType,
|
|
66
66
|
editOnly: m.editOnly ?? xe,
|
|
@@ -68,23 +68,23 @@ const Pe = "DocumentsTable-module_documentsTableBody__6iR3w", ke = "DocumentsTab
|
|
|
68
68
|
}
|
|
69
69
|
})
|
|
70
70
|
);
|
|
71
|
-
}, [m]), { data: I, isLoading: le, isError:
|
|
71
|
+
}, [m]), { data: I, isLoading: le, isError: k, error: P, refetch: q } = Ue({
|
|
72
72
|
queryKey: [
|
|
73
73
|
"documents",
|
|
74
74
|
g,
|
|
75
75
|
B,
|
|
76
|
-
|
|
77
|
-
|
|
76
|
+
U,
|
|
77
|
+
N
|
|
78
78
|
],
|
|
79
79
|
enabled: !!g,
|
|
80
80
|
queryFn: () => ge(
|
|
81
81
|
g,
|
|
82
82
|
B,
|
|
83
|
-
|
|
84
|
-
|
|
83
|
+
N,
|
|
84
|
+
U
|
|
85
85
|
)
|
|
86
86
|
});
|
|
87
|
-
|
|
87
|
+
fe(
|
|
88
88
|
(e) => {
|
|
89
89
|
e.patientUUID === g && e.updatedResources.documents && q();
|
|
90
90
|
},
|
|
@@ -92,22 +92,22 @@ const Pe = "DocumentsTable-module_documentsTableBody__6iR3w", ke = "DocumentsTab
|
|
|
92
92
|
), A(() => {
|
|
93
93
|
I && R(I.total);
|
|
94
94
|
}, [I]), A(() => {
|
|
95
|
-
|
|
95
|
+
M(1), R(void 0);
|
|
96
96
|
}, [g]), A(() => {
|
|
97
|
-
|
|
97
|
+
k && b({
|
|
98
98
|
title: o("ERROR_DEFAULT_TITLE"),
|
|
99
|
-
message:
|
|
99
|
+
message: P?.message ?? "",
|
|
100
100
|
type: "error"
|
|
101
101
|
});
|
|
102
|
-
}, [
|
|
102
|
+
}, [k, P, b, o]), A(() => {
|
|
103
103
|
const e = new AbortController();
|
|
104
104
|
return (async () => {
|
|
105
105
|
if (!u || !r) return;
|
|
106
106
|
const n = /* @__PURE__ */ new Set(), i = x(r);
|
|
107
107
|
for (let c = 0; c < i.length; c++) {
|
|
108
|
-
const
|
|
108
|
+
const f = S(i[c].url);
|
|
109
109
|
try {
|
|
110
|
-
(await fetch(
|
|
110
|
+
(await fetch(f, {
|
|
111
111
|
method: "HEAD",
|
|
112
112
|
signal: e.signal
|
|
113
113
|
})).ok || n.add(c);
|
|
@@ -131,18 +131,18 @@ const Pe = "DocumentsTable-module_documentsTableBody__6iR3w", ke = "DocumentsTab
|
|
|
131
131
|
}, c = (h) => {
|
|
132
132
|
const Te = h.target;
|
|
133
133
|
et.has(h.key) && !Te?.closest("button, input, textarea, select, a") && n();
|
|
134
|
-
},
|
|
134
|
+
}, f = () => {
|
|
135
135
|
!t && e.scrollTop !== 0 && (e.scrollTop = 0);
|
|
136
136
|
};
|
|
137
|
-
return e.addEventListener("wheel", n, { passive: !0 }), e.addEventListener("touchmove", n, { passive: !0 }), e.addEventListener("mousedown", i), e.addEventListener("keydown", c), e.addEventListener("scroll",
|
|
138
|
-
e.removeEventListener("wheel", n), e.removeEventListener("touchmove", n), e.removeEventListener("mousedown", i), e.removeEventListener("keydown", c), e.removeEventListener("scroll",
|
|
137
|
+
return e.addEventListener("wheel", n, { passive: !0 }), e.addEventListener("touchmove", n, { passive: !0 }), e.addEventListener("mousedown", i), e.addEventListener("keydown", c), e.addEventListener("scroll", f), () => {
|
|
138
|
+
e.removeEventListener("wheel", n), e.removeEventListener("touchmove", n), e.removeEventListener("mousedown", i), e.removeEventListener("keydown", c), e.removeEventListener("scroll", f);
|
|
139
139
|
};
|
|
140
140
|
}, [u, r]);
|
|
141
141
|
const de = p(
|
|
142
142
|
(e, t) => {
|
|
143
|
-
t !==
|
|
143
|
+
t !== N ? (oe(t), M(1), R(void 0)) : M(e);
|
|
144
144
|
},
|
|
145
|
-
[
|
|
145
|
+
[N]
|
|
146
146
|
), O = E(
|
|
147
147
|
() => l?.fields ?? nt,
|
|
148
148
|
[l?.fields]
|
|
@@ -166,14 +166,14 @@ const Pe = "DocumentsTable-module_documentsTableBody__6iR3w", ke = "DocumentsTab
|
|
|
166
166
|
);
|
|
167
167
|
return () => clearTimeout(e);
|
|
168
168
|
}, [u, d]);
|
|
169
|
-
const
|
|
169
|
+
const j = p(
|
|
170
170
|
async (e, t) => {
|
|
171
171
|
if (!r || C.current) return;
|
|
172
172
|
const n = new AbortController(), { signal: i } = n;
|
|
173
|
-
C.current = n,
|
|
174
|
-
const c = document.getElementById(
|
|
173
|
+
C.current = n, z(t);
|
|
174
|
+
const c = document.getElementById(X);
|
|
175
175
|
try {
|
|
176
|
-
await
|
|
176
|
+
await Ne(
|
|
177
177
|
e,
|
|
178
178
|
r.documentIdentifier,
|
|
179
179
|
{ container: c, signal: i }
|
|
@@ -185,11 +185,11 @@ const Pe = "DocumentsTable-module_documentsTableBody__6iR3w", ke = "DocumentsTab
|
|
|
185
185
|
type: "error"
|
|
186
186
|
});
|
|
187
187
|
} finally {
|
|
188
|
-
C.current = null,
|
|
188
|
+
C.current = null, z(null);
|
|
189
189
|
}
|
|
190
190
|
},
|
|
191
191
|
[r, b, o]
|
|
192
|
-
),
|
|
192
|
+
), Y = E(
|
|
193
193
|
() => d.filter(
|
|
194
194
|
(e, t) => S(e.url) !== "#" && !D.has(t)
|
|
195
195
|
),
|
|
@@ -224,7 +224,7 @@ const Pe = "DocumentsTable-module_documentsTableBody__6iR3w", ke = "DocumentsTab
|
|
|
224
224
|
return e.attachments.length > 0 || !!e.documentUrl ? /* @__PURE__ */ a(
|
|
225
225
|
Ie,
|
|
226
226
|
{
|
|
227
|
-
onClick: () =>
|
|
227
|
+
onClick: () => V(e),
|
|
228
228
|
className: s.viewAttachmentsLink,
|
|
229
229
|
"data-testid": `view-attachments-${e.id}`,
|
|
230
230
|
children: o("DOCUMENTS_VIEW_ATTACHMENTS")
|
|
@@ -234,13 +234,13 @@ const Pe = "DocumentsTable-module_documentsTableBody__6iR3w", ke = "DocumentsTab
|
|
|
234
234
|
return null;
|
|
235
235
|
}
|
|
236
236
|
},
|
|
237
|
-
[
|
|
237
|
+
[V, o]
|
|
238
238
|
);
|
|
239
239
|
return /* @__PURE__ */ T(_e, { children: [
|
|
240
240
|
ne && /* @__PURE__ */ T(be, { className: s.header, testId: "documents-header", children: [
|
|
241
241
|
/* @__PURE__ */ a("p", { children: o("DOCUMENTS_TABLE_HEADING") }),
|
|
242
242
|
/* @__PURE__ */ a(
|
|
243
|
-
|
|
243
|
+
Q,
|
|
244
244
|
{
|
|
245
245
|
autoAlign: !0,
|
|
246
246
|
size: "lg",
|
|
@@ -259,15 +259,15 @@ const Pe = "DocumentsTable-module_documentsTableBody__6iR3w", ke = "DocumentsTab
|
|
|
259
259
|
ariaLabel: o("DOCUMENTS_TABLE_HEADING"),
|
|
260
260
|
rows: ie,
|
|
261
261
|
loading: le,
|
|
262
|
-
errorStateMessage:
|
|
262
|
+
errorStateMessage: k ? P?.message : null,
|
|
263
263
|
sortable: ue,
|
|
264
264
|
emptyStateMessage: o("DOCUMENTS_NO_RECORDS"),
|
|
265
265
|
renderCell: he,
|
|
266
266
|
className: s.documentsTableBody,
|
|
267
267
|
dataTestId: "documents-table",
|
|
268
|
-
pageSize:
|
|
268
|
+
pageSize: N,
|
|
269
269
|
totalItems: se,
|
|
270
|
-
page:
|
|
270
|
+
page: U,
|
|
271
271
|
onPageChange: de
|
|
272
272
|
}
|
|
273
273
|
) }),
|
|
@@ -283,22 +283,22 @@ const Pe = "DocumentsTable-module_documentsTableBody__6iR3w", ke = "DocumentsTab
|
|
|
283
283
|
size: "lg",
|
|
284
284
|
testId: "document-view-modal",
|
|
285
285
|
children: /* @__PURE__ */ T("div", { className: s.documentViewerContainer, children: [
|
|
286
|
-
|
|
286
|
+
Y.length > 1 && /* @__PURE__ */ a(
|
|
287
287
|
we,
|
|
288
288
|
{
|
|
289
289
|
kind: "tertiary",
|
|
290
290
|
size: "sm",
|
|
291
291
|
className: s.printAllButton,
|
|
292
|
-
renderIcon: w === "all" ?
|
|
293
|
-
disabled:
|
|
292
|
+
renderIcon: w === "all" ? Z : J,
|
|
293
|
+
disabled: F || !K,
|
|
294
294
|
testId: "print-all-attachments",
|
|
295
|
-
onClick: () =>
|
|
295
|
+
onClick: () => j(Y, "all"),
|
|
296
296
|
children: o("DOCUMENTS_PRINT_ALL")
|
|
297
297
|
}
|
|
298
298
|
),
|
|
299
299
|
d.map((e, t) => {
|
|
300
|
-
const n = S(e.url), i = e.contentType?.toLowerCase().includes("pdf"), c = (e.contentType?.toLowerCase().includes("image") ?? !1) || at.test(e.url ?? ""),
|
|
301
|
-
return n === "#" ||
|
|
300
|
+
const n = S(e.url), i = e.contentType?.toLowerCase().includes("pdf"), c = (e.contentType?.toLowerCase().includes("image") ?? !1) || at.test(e.url ?? ""), f = D.has(t);
|
|
301
|
+
return n === "#" || f ? /* @__PURE__ */ T(
|
|
302
302
|
"div",
|
|
303
303
|
{
|
|
304
304
|
className: s.attachmentError,
|
|
@@ -324,17 +324,17 @@ const Pe = "DocumentsTable-module_documentsTableBody__6iR3w", ke = "DocumentsTab
|
|
|
324
324
|
total: d.length
|
|
325
325
|
}) }) : /* @__PURE__ */ a("span", {}),
|
|
326
326
|
/* @__PURE__ */ a(
|
|
327
|
-
|
|
327
|
+
Q,
|
|
328
328
|
{
|
|
329
329
|
kind: "ghost",
|
|
330
330
|
size: "sm",
|
|
331
331
|
label: o("DOCUMENTS_PRINT_ATTACHMENT", {
|
|
332
332
|
index: t + 1
|
|
333
333
|
}),
|
|
334
|
-
disabled:
|
|
334
|
+
disabled: F || !K,
|
|
335
335
|
testId: `print-attachment-${t}`,
|
|
336
|
-
onClick: () =>
|
|
337
|
-
children: w === t ? /* @__PURE__ */ a(
|
|
336
|
+
onClick: () => j([e], t),
|
|
337
|
+
children: w === t ? /* @__PURE__ */ a(Z, {}) : /* @__PURE__ */ a(J, {})
|
|
338
338
|
}
|
|
339
339
|
)
|
|
340
340
|
] }),
|
|
@@ -358,7 +358,7 @@ const Pe = "DocumentsTable-module_documentsTableBody__6iR3w", ke = "DocumentsTab
|
|
|
358
358
|
src: n,
|
|
359
359
|
alt: r.documentIdentifier,
|
|
360
360
|
className: `${s.documentImage} ${L.has(t) ? "" : s.hiddenWhileLoading}`,
|
|
361
|
-
onLoad: () =>
|
|
361
|
+
onLoad: () => W(t),
|
|
362
362
|
onError: () => G(t)
|
|
363
363
|
}
|
|
364
364
|
) : /* @__PURE__ */ a(
|
|
@@ -367,7 +367,7 @@ const Pe = "DocumentsTable-module_documentsTableBody__6iR3w", ke = "DocumentsTab
|
|
|
367
367
|
src: i ? `${n}#toolbar=0` : n,
|
|
368
368
|
className: `${s.documentIframe} ${L.has(t) ? "" : s.hiddenWhileLoading}`,
|
|
369
369
|
title: r.documentIdentifier,
|
|
370
|
-
onLoad: () =>
|
|
370
|
+
onLoad: () => W(t),
|
|
371
371
|
onError: () => G(t)
|
|
372
372
|
}
|
|
373
373
|
)
|
|
@@ -377,7 +377,7 @@ const Pe = "DocumentsTable-module_documentsTableBody__6iR3w", ke = "DocumentsTab
|
|
|
377
377
|
`${r.id}-${e.url}`
|
|
378
378
|
);
|
|
379
379
|
}),
|
|
380
|
-
/* @__PURE__ */ a("div", { id:
|
|
380
|
+
/* @__PURE__ */ a("div", { id: X, className: s.printContainer })
|
|
381
381
|
] })
|
|
382
382
|
}
|
|
383
383
|
)
|
|
@@ -1,46 +1,46 @@
|
|
|
1
|
-
import { jsx as n, jsxs as
|
|
2
|
-
import { u as de, b as le,
|
|
3
|
-
import { useQueryClient as
|
|
4
|
-
import { useState as
|
|
5
|
-
import { useTranslation as
|
|
6
|
-
const Re = "FormsTable-module_formsTableBody__SvGha",
|
|
1
|
+
import { jsx as n, jsxs as P, Fragment as ie } from "react/jsx-runtime";
|
|
2
|
+
import { u as de, b as le, l as me, m as ce, q as ue, n as fe, y as be, r as ye, o as he, s as Ne, Q as Oe, f as ge, z as V, F as x, $ as Te, L as $, t as pe, v as Ee, W as Ie, O as Fe, C as Ae } from "./index-RIPNlc6y.js";
|
|
3
|
+
import { useQueryClient as ve, useQuery as F } from "@tanstack/react-query";
|
|
4
|
+
import { useState as z, useMemo as i, useCallback as d } from "react";
|
|
5
|
+
import { useTranslation as _e } from "react-i18next";
|
|
6
|
+
const Re = "FormsTable-module_formsTableBody__SvGha", De = "FormsTable-module_modalHeading__wnTmA", Le = "FormsTable-module_customAccordianItem__isszs", N = {
|
|
7
7
|
formsTableBody: Re,
|
|
8
|
-
modalHeading:
|
|
9
|
-
customAccordianItem:
|
|
10
|
-
}, Ce = "startConsultation",
|
|
11
|
-
episodeOfCareUuids:
|
|
8
|
+
modalHeading: De,
|
|
9
|
+
customAccordianItem: Le
|
|
10
|
+
}, Ce = "startConsultation", Ue = ({
|
|
11
|
+
episodeOfCareUuids: A,
|
|
12
12
|
encounterUuids: m,
|
|
13
|
-
config:
|
|
14
|
-
disableActions:
|
|
13
|
+
config: G,
|
|
14
|
+
disableActions: Q = !1,
|
|
15
15
|
activeEncounterUuid: b = null
|
|
16
16
|
}) => {
|
|
17
|
-
const { t: o } =
|
|
18
|
-
numberOfVisits:
|
|
19
|
-
hideThumbnail:
|
|
20
|
-
forms:
|
|
21
|
-
} =
|
|
22
|
-
|
|
23
|
-
), { userPrivileges:
|
|
24
|
-
|
|
17
|
+
const { t: o } = _e(), c = de(), [O, v] = z(!1), [a, _] = z(null), {
|
|
18
|
+
numberOfVisits: j,
|
|
19
|
+
hideThumbnail: K = !1,
|
|
20
|
+
forms: y
|
|
21
|
+
} = G ?? {}, W = le(
|
|
22
|
+
Ae.EDIT_OBSERVATIONS
|
|
23
|
+
), { userPrivileges: h } = me(), g = W && !Q && !!b, R = ce(
|
|
24
|
+
A,
|
|
25
25
|
m
|
|
26
|
-
),
|
|
27
|
-
data:
|
|
28
|
-
isLoading:
|
|
26
|
+
), Y = ve(), {
|
|
27
|
+
data: D = [],
|
|
28
|
+
isLoading: L,
|
|
29
29
|
isError: C,
|
|
30
|
-
error:
|
|
31
|
-
refetch:
|
|
32
|
-
} =
|
|
33
|
-
queryKey: ["forms", c,
|
|
34
|
-
queryFn: () => ue(c, void 0,
|
|
30
|
+
error: J,
|
|
31
|
+
refetch: X
|
|
32
|
+
} = F({
|
|
33
|
+
queryKey: ["forms", c, A],
|
|
34
|
+
queryFn: () => ue(c, void 0, j),
|
|
35
35
|
enabled: !!c && !R
|
|
36
36
|
}), S = i(() => {
|
|
37
|
-
let e =
|
|
37
|
+
let e = D;
|
|
38
38
|
return m && m.length > 0 && (e = e.filter(
|
|
39
39
|
(t) => m.includes(t.encounterUuid)
|
|
40
|
-
)), Array.isArray(
|
|
41
|
-
(t) =>
|
|
40
|
+
)), Array.isArray(y) && y.length > 0 && (e = e.filter(
|
|
41
|
+
(t) => y.some((s) => s.toLowerCase() === t.formName.toLowerCase())
|
|
42
42
|
)), e;
|
|
43
|
-
}, [
|
|
43
|
+
}, [D, m, y]), { data: B = [] } = F({
|
|
44
44
|
queryKey: ["observationForms"],
|
|
45
45
|
queryFn: () => fe()
|
|
46
46
|
}), M = d(
|
|
@@ -49,33 +49,33 @@ const Re = "FormsTable-module_formsTableBody__SvGha", Le = "FormsTable-module_mo
|
|
|
49
49
|
(r) => r.name.toLowerCase() === e.toLowerCase()
|
|
50
50
|
);
|
|
51
51
|
if (!t?.privileges || t.privileges.length === 0) return !0;
|
|
52
|
-
if (!
|
|
53
|
-
const s = new Set(
|
|
52
|
+
if (!h || h.length === 0) return !1;
|
|
53
|
+
const s = new Set(h.map((r) => r.name));
|
|
54
54
|
return t.privileges.some(
|
|
55
55
|
(r) => s.has(r.privilegeName) && r.editable
|
|
56
56
|
);
|
|
57
57
|
},
|
|
58
|
-
[B,
|
|
58
|
+
[B, h]
|
|
59
59
|
), u = d(
|
|
60
60
|
(e) => !b || e.encounterUuid !== b ? !1 : M(e.formName),
|
|
61
61
|
[b, M]
|
|
62
62
|
), {
|
|
63
63
|
data: T,
|
|
64
|
-
isLoading:
|
|
64
|
+
isLoading: Z,
|
|
65
65
|
isError: ee,
|
|
66
66
|
error: p
|
|
67
|
-
} =
|
|
67
|
+
} = F({
|
|
68
68
|
queryKey: ["formsEncounterFHIR", a?.encounterUuid],
|
|
69
69
|
queryFn: () => be(a.encounterUuid),
|
|
70
70
|
enabled: !!a?.encounterUuid && O
|
|
71
71
|
});
|
|
72
|
-
|
|
72
|
+
ye(
|
|
73
73
|
(e) => {
|
|
74
|
-
e.patientUUID === c && (
|
|
74
|
+
e.patientUUID === c && (X(), Y.invalidateQueries({ queryKey: ["formsEncounterFHIR"] }));
|
|
75
75
|
},
|
|
76
76
|
[c]
|
|
77
77
|
);
|
|
78
|
-
const re = i(() => !T?.entry || !a?.formName ? [] : T.entry.filter((t) => t.resource?.resourceType === "Observation").map((t) => t.resource).filter((t) =>
|
|
78
|
+
const re = i(() => !T?.entry || !a?.formName ? [] : T.entry.filter((t) => t.resource?.resourceType === "Observation").map((t) => t.resource).filter((t) => he(t) ? Ne(t)?.toLowerCase() === a.formName.toLowerCase() : !0), [T, a?.formName]), te = i(() => {
|
|
79
79
|
if (p)
|
|
80
80
|
return Oe(p).message;
|
|
81
81
|
}, [p]), f = i(
|
|
@@ -96,7 +96,7 @@ const Re = "FormsTable-module_formsTableBody__SvGha", Le = "FormsTable-module_mo
|
|
|
96
96
|
{ key: "recordedBy", sortable: !0 }
|
|
97
97
|
],
|
|
98
98
|
[]
|
|
99
|
-
),
|
|
99
|
+
), k = i(() => {
|
|
100
100
|
const e = S.reduce(
|
|
101
101
|
(s, r) => {
|
|
102
102
|
const l = r.formName;
|
|
@@ -121,10 +121,10 @@ const Re = "FormsTable-module_formsTableBody__SvGha", Le = "FormsTable-module_mo
|
|
|
121
121
|
)
|
|
122
122
|
})
|
|
123
123
|
).sort((s, r) => s.formName.localeCompare(r.formName));
|
|
124
|
-
}, [S, o]),
|
|
125
|
-
|
|
124
|
+
}, [S, o]), U = d((e) => {
|
|
125
|
+
_(e), v(!0);
|
|
126
126
|
}, []), H = d(() => {
|
|
127
|
-
|
|
127
|
+
v(!1), _(null);
|
|
128
128
|
}, []), E = d((e) => {
|
|
129
129
|
globalThis.dispatchEvent(
|
|
130
130
|
new CustomEvent(Ce, {
|
|
@@ -137,52 +137,52 @@ const Re = "FormsTable-module_formsTableBody__SvGha", Le = "FormsTable-module_mo
|
|
|
137
137
|
}
|
|
138
138
|
})
|
|
139
139
|
);
|
|
140
|
-
}, []),
|
|
140
|
+
}, []), q = d(
|
|
141
141
|
(e, t) => {
|
|
142
142
|
switch (t) {
|
|
143
143
|
case "recordedOn":
|
|
144
|
-
return /* @__PURE__ */ n(Te, { onClick: () =>
|
|
144
|
+
return /* @__PURE__ */ n(Te, { onClick: () => U(e), children: e.recordedOn });
|
|
145
145
|
case "recordedBy":
|
|
146
146
|
return e.recordedBy;
|
|
147
147
|
case "actions":
|
|
148
148
|
return u(e) ? /* @__PURE__ */ n(
|
|
149
|
-
|
|
149
|
+
V,
|
|
150
150
|
{
|
|
151
151
|
label: o("EDIT_OBSERVATION_FORM"),
|
|
152
152
|
kind: "ghost",
|
|
153
153
|
size: "sm",
|
|
154
154
|
testId: `edit-form-${e.encounterUuid}`,
|
|
155
155
|
onClick: () => E(e),
|
|
156
|
-
children: /* @__PURE__ */ n(
|
|
156
|
+
children: /* @__PURE__ */ n(x, {})
|
|
157
157
|
}
|
|
158
158
|
) : null;
|
|
159
159
|
default:
|
|
160
160
|
return null;
|
|
161
161
|
}
|
|
162
162
|
},
|
|
163
|
-
[
|
|
163
|
+
[U, E, u, o]
|
|
164
164
|
);
|
|
165
|
-
return /* @__PURE__ */
|
|
166
|
-
/* @__PURE__ */ n("div", { id: "forms-table", "data-testid": "forms-table", children:
|
|
165
|
+
return /* @__PURE__ */ P(ie, { children: [
|
|
166
|
+
/* @__PURE__ */ n("div", { id: "forms-table", "data-testid": "forms-table", children: L || C || k.length === 0 || R ? /* @__PURE__ */ n(
|
|
167
167
|
$,
|
|
168
168
|
{
|
|
169
169
|
headers: oe,
|
|
170
170
|
ariaLabel: o("FORMS_HEADING"),
|
|
171
171
|
rows: [],
|
|
172
|
-
loading:
|
|
173
|
-
errorStateMessage: C ?
|
|
172
|
+
loading: L,
|
|
173
|
+
errorStateMessage: C ? J?.message : void 0,
|
|
174
174
|
emptyStateMessage: o("FORMS_UNAVAILABLE"),
|
|
175
|
-
renderCell:
|
|
176
|
-
className:
|
|
175
|
+
renderCell: q,
|
|
176
|
+
className: N.formsTableBody,
|
|
177
177
|
dataTestId: "forms-table"
|
|
178
178
|
}
|
|
179
|
-
) : /* @__PURE__ */ n(pe, { align: "start", children:
|
|
179
|
+
) : /* @__PURE__ */ n(pe, { align: "start", children: k.map((e, t) => {
|
|
180
180
|
const { formName: s, records: r } = e, l = se(r);
|
|
181
181
|
return /* @__PURE__ */ n(
|
|
182
182
|
Ee,
|
|
183
183
|
{
|
|
184
184
|
title: s,
|
|
185
|
-
className:
|
|
185
|
+
className: N.customAccordianItem,
|
|
186
186
|
testId: `accordian-title-${s}`,
|
|
187
187
|
open: t === 0,
|
|
188
188
|
children: /* @__PURE__ */ n(
|
|
@@ -195,8 +195,8 @@ const Re = "FormsTable-module_formsTableBody__SvGha", Le = "FormsTable-module_mo
|
|
|
195
195
|
errorStateMessage: "",
|
|
196
196
|
sortable: ae,
|
|
197
197
|
emptyStateMessage: o("FORMS_UNAVAILABLE"),
|
|
198
|
-
renderCell:
|
|
199
|
-
className:
|
|
198
|
+
renderCell: q,
|
|
199
|
+
className: N.formsTableBody,
|
|
200
200
|
dataTestId: `forms-table-${s}`
|
|
201
201
|
}
|
|
202
202
|
)
|
|
@@ -211,10 +211,10 @@ const Re = "FormsTable-module_formsTableBody__SvGha", Le = "FormsTable-module_mo
|
|
|
211
211
|
portalId: "main-display-area",
|
|
212
212
|
open: O,
|
|
213
213
|
onRequestClose: H,
|
|
214
|
-
modalHeading: /* @__PURE__ */
|
|
214
|
+
modalHeading: /* @__PURE__ */ P("div", { className: N.modalHeading, children: [
|
|
215
215
|
/* @__PURE__ */ n("span", { children: a.formName }),
|
|
216
216
|
g && u(a) && /* @__PURE__ */ n(
|
|
217
|
-
|
|
217
|
+
V,
|
|
218
218
|
{
|
|
219
219
|
label: o("EDIT_OBSERVATION_FORM"),
|
|
220
220
|
kind: "ghost",
|
|
@@ -223,7 +223,7 @@ const Re = "FormsTable-module_formsTableBody__SvGha", Le = "FormsTable-module_mo
|
|
|
223
223
|
onClick: () => {
|
|
224
224
|
H(), E(a);
|
|
225
225
|
},
|
|
226
|
-
children: /* @__PURE__ */ n(
|
|
226
|
+
children: /* @__PURE__ */ n(x, {})
|
|
227
227
|
}
|
|
228
228
|
)
|
|
229
229
|
] }),
|
|
@@ -232,15 +232,15 @@ const Re = "FormsTable-module_formsTableBody__SvGha", Le = "FormsTable-module_mo
|
|
|
232
232
|
size: "md",
|
|
233
233
|
testId: "form-details-modal",
|
|
234
234
|
children: /* @__PURE__ */ n(
|
|
235
|
-
|
|
235
|
+
Fe,
|
|
236
236
|
{
|
|
237
237
|
observations: re,
|
|
238
|
-
isLoading:
|
|
238
|
+
isLoading: Z,
|
|
239
239
|
isError: ee,
|
|
240
240
|
errorMessage: te,
|
|
241
241
|
emptyStateMessage: o("NO_FORM_DATA_AVAILABLE"),
|
|
242
242
|
testIdPrefix: a.formName,
|
|
243
|
-
hideThumbnail:
|
|
243
|
+
hideThumbnail: K,
|
|
244
244
|
formName: a.formName
|
|
245
245
|
}
|
|
246
246
|
)
|
|
@@ -249,5 +249,5 @@ const Re = "FormsTable-module_formsTableBody__SvGha", Le = "FormsTable-module_mo
|
|
|
249
249
|
] });
|
|
250
250
|
};
|
|
251
251
|
export {
|
|
252
|
-
|
|
252
|
+
Ue as default
|
|
253
253
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as i, jsxs as N } from "react/jsx-runtime";
|
|
2
|
-
import {
|
|
2
|
+
import { w as G, x as U, B as H, X as P, f as j, D as x, G as z, U as J, H as X, u as W, a as Y, I as Z, m as ee, J as se, K as te, r as re, M as ae, N as oe, P as ne, R as ie, g as ce, L as le } from "./index-RIPNlc6y.js";
|
|
3
3
|
import { useQueries as de, useQuery as ue } from "@tanstack/react-query";
|
|
4
4
|
import { useRef as pe, useEffect as C, useMemo as I } from "react";
|
|
5
5
|
import { useTranslation as w } from "react-i18next";
|
|
@@ -8,11 +8,11 @@ const be = "Observations-module_observations__RKSyo", me = "Observations-module_
|
|
|
8
8
|
title: me,
|
|
9
9
|
wrapper: ve,
|
|
10
10
|
secondary: fe
|
|
11
|
-
},
|
|
12
|
-
const a =
|
|
11
|
+
}, F = (t, l, n, c, u, r) => {
|
|
12
|
+
const a = H(t, l, u), e = a.value, p = P(e);
|
|
13
13
|
let o = e;
|
|
14
14
|
p === "Image" && (o = /* @__PURE__ */ i(
|
|
15
|
-
|
|
15
|
+
z,
|
|
16
16
|
{
|
|
17
17
|
imageSrc: e,
|
|
18
18
|
alt: e,
|
|
@@ -20,28 +20,28 @@ const be = "Observations-module_observations__RKSyo", me = "Observations-module_
|
|
|
20
20
|
hideThumbnail: r
|
|
21
21
|
}
|
|
22
22
|
)), p === "Video" && (o = /* @__PURE__ */ i(
|
|
23
|
-
|
|
23
|
+
J,
|
|
24
24
|
{
|
|
25
25
|
id: `${e}-video`,
|
|
26
26
|
videoSrc: e,
|
|
27
27
|
hideThumbnail: r
|
|
28
28
|
}
|
|
29
|
-
)), p === "PDF" && (o = /* @__PURE__ */ i(
|
|
29
|
+
)), p === "PDF" && (o = /* @__PURE__ */ i(X, { id: `${e}-pdf`, src: e }));
|
|
30
30
|
const b = /* @__PURE__ */ N("div", { className: f.wrapper, children: [
|
|
31
31
|
/* @__PURE__ */ i("span", { children: a.header.display }),
|
|
32
32
|
a.header.referenceRange && /* @__PURE__ */ i("span", { className: f.secondary, children: a.header.referenceRange })
|
|
33
33
|
] }), d = u("OBSERVATIONS_RECORDED_BY", {
|
|
34
34
|
provider: a.provider
|
|
35
|
-
}), m = t.effectiveDateTime ?
|
|
35
|
+
}), m = t.effectiveDateTime ? j(t.effectiveDateTime, u, !0).formattedResult : void 0, g = /* @__PURE__ */ N("div", { className: f.wrapper, children: [
|
|
36
36
|
/* @__PURE__ */ i("span", { children: d }),
|
|
37
37
|
m && /* @__PURE__ */ i("span", { className: f.secondary, children: m })
|
|
38
|
-
] }), v = t.display,
|
|
38
|
+
] }), v = t.display, _ = t.observationValue?.isAbnormal ? "abnormal-obs" : "obs", O = c ? `${c}-${_}-${v}-${n}-${l}` : `${_}-${v}-${n}-${l}`;
|
|
39
39
|
return /* @__PURE__ */ i(
|
|
40
|
-
|
|
40
|
+
x,
|
|
41
41
|
{
|
|
42
42
|
header: b,
|
|
43
43
|
value: o,
|
|
44
|
-
info:
|
|
44
|
+
info: g,
|
|
45
45
|
id: O,
|
|
46
46
|
testId: O,
|
|
47
47
|
ariaLabel: O
|
|
@@ -49,13 +49,13 @@ const be = "Observations-module_observations__RKSyo", me = "Observations-module_
|
|
|
49
49
|
`obs-${t.id}`
|
|
50
50
|
);
|
|
51
51
|
}, ye = (t, l, n, c, u, r, a) => /* @__PURE__ */ i(
|
|
52
|
-
|
|
52
|
+
U,
|
|
53
53
|
{
|
|
54
54
|
title: t.display,
|
|
55
55
|
id: `grouped-obs-${t.display}-${c}`,
|
|
56
56
|
open: n,
|
|
57
57
|
children: t.members?.map(
|
|
58
|
-
(e, p) =>
|
|
58
|
+
(e, p) => F(
|
|
59
59
|
e,
|
|
60
60
|
p,
|
|
61
61
|
u,
|
|
@@ -74,14 +74,14 @@ const be = "Observations-module_observations__RKSyo", me = "Observations-module_
|
|
|
74
74
|
const { t: c } = w(), u = (r, a, e) => {
|
|
75
75
|
const p = G(r.encounterDetails, c);
|
|
76
76
|
return /* @__PURE__ */ N(
|
|
77
|
-
|
|
77
|
+
U,
|
|
78
78
|
{
|
|
79
79
|
title: p,
|
|
80
80
|
id: `encounter-${r.encounterId}`,
|
|
81
81
|
open: a,
|
|
82
82
|
children: [
|
|
83
83
|
r.observations.map(
|
|
84
|
-
(o, b) =>
|
|
84
|
+
(o, b) => F(
|
|
85
85
|
o,
|
|
86
86
|
b,
|
|
87
87
|
e,
|
|
@@ -117,7 +117,7 @@ const be = "Observations-module_observations__RKSyo", me = "Observations-module_
|
|
|
117
117
|
)
|
|
118
118
|
}
|
|
119
119
|
);
|
|
120
|
-
},
|
|
120
|
+
}, he = (t) => ["conceptUuid", t], Ee = (t, l, n, c) => [
|
|
121
121
|
"observations",
|
|
122
122
|
t,
|
|
123
123
|
...l,
|
|
@@ -133,10 +133,10 @@ const be = "Observations-module_observations__RKSyo", me = "Observations-module_
|
|
|
133
133
|
conceptUuid: r = [],
|
|
134
134
|
hideThumbnail: a = !1,
|
|
135
135
|
scope: e = "all"
|
|
136
|
-
} = c, p = pe(/* @__PURE__ */ new Set()), o =
|
|
136
|
+
} = c, p = pe(/* @__PURE__ */ new Set()), o = W(), { addNotification: b } = Y(), { t: d } = w(), m = de({
|
|
137
137
|
queries: u.map((s) => ({
|
|
138
|
-
queryKey:
|
|
139
|
-
queryFn: () =>
|
|
138
|
+
queryKey: he(s),
|
|
139
|
+
queryFn: () => Z(s),
|
|
140
140
|
enabled: !!s
|
|
141
141
|
}))
|
|
142
142
|
});
|
|
@@ -148,22 +148,22 @@ const be = "Observations-module_observations__RKSyo", me = "Observations-module_
|
|
|
148
148
|
type: "error"
|
|
149
149
|
}), p.current.add(0)) : !s && R && p.current.clear();
|
|
150
150
|
}, [m, b, d]);
|
|
151
|
-
const
|
|
151
|
+
const g = I(() => m.map((s) => s.data?.uuid).filter((s) => !!s), [m]), v = I(() => [.../* @__PURE__ */ new Set([...g, ...r])], [g, r]), y = I(() => u.length === 0 ? !0 : m.every((s) => !s.isLoading), [m, u.length]), _ = e === "latest" || e === "latest-encounter", O = ee(
|
|
152
152
|
l,
|
|
153
153
|
n
|
|
154
154
|
), {
|
|
155
|
-
data:
|
|
155
|
+
data: h,
|
|
156
156
|
isLoading: V,
|
|
157
157
|
isError: S,
|
|
158
158
|
refetch: D
|
|
159
159
|
} = ue({
|
|
160
|
-
queryKey:
|
|
160
|
+
queryKey: Ee(
|
|
161
161
|
o,
|
|
162
162
|
v,
|
|
163
163
|
n,
|
|
164
164
|
e
|
|
165
165
|
),
|
|
166
|
-
queryFn: () =>
|
|
166
|
+
queryFn: () => _ ? se(
|
|
167
167
|
o,
|
|
168
168
|
v,
|
|
169
169
|
n
|
|
@@ -189,21 +189,21 @@ const be = "Observations-module_observations__RKSyo", me = "Observations-module_
|
|
|
189
189
|
});
|
|
190
190
|
}, [S]);
|
|
191
191
|
const L = I(() => {
|
|
192
|
-
if (!
|
|
193
|
-
let s = ae(
|
|
192
|
+
if (!h) return [];
|
|
193
|
+
let s = ae(h);
|
|
194
194
|
e === "latest-encounter" && (s = oe(s));
|
|
195
195
|
const R = ne(s);
|
|
196
196
|
return ie(R);
|
|
197
|
-
}, [
|
|
197
|
+
}, [h, e]), K = [
|
|
198
198
|
{ key: "name", header: "name" },
|
|
199
199
|
{ key: "value", header: "value" },
|
|
200
200
|
{ key: "form", header: "form" }
|
|
201
|
-
], A = V || !y, B = S && y,
|
|
201
|
+
], A = V || !y, B = S && y, M = (!h || h.entry?.length === 0 || v.length === 0) && y, k = B ? d("ERROR_FETCHING_OBSERVATIONS") : null, Q = M ? d("NO_OBSERVATIONS_FOUND") : void 0, q = L.length > 0 && !A && !B, T = c.titleTranslationKey, E = T ? d(T) : "";
|
|
202
202
|
return /* @__PURE__ */ N(
|
|
203
203
|
"div",
|
|
204
204
|
{
|
|
205
205
|
id: "observations",
|
|
206
|
-
"data-testid": T ? `observations-${
|
|
206
|
+
"data-testid": T ? `observations-${E}` : "observations",
|
|
207
207
|
"aria-label": "observations-aria-label",
|
|
208
208
|
className: f.observations,
|
|
209
209
|
children: [
|
|
@@ -211,17 +211,17 @@ const be = "Observations-module_observations__RKSyo", me = "Observations-module_
|
|
|
211
211
|
ce,
|
|
212
212
|
{
|
|
213
213
|
id: "observations-title",
|
|
214
|
-
testId: T ? `observations-title-${
|
|
215
|
-
title:
|
|
214
|
+
testId: T ? `observations-title-${E}` : "observations-title",
|
|
215
|
+
title: E,
|
|
216
216
|
className: f.title,
|
|
217
|
-
children: /* @__PURE__ */ i("p", { children:
|
|
217
|
+
children: /* @__PURE__ */ i("p", { children: E })
|
|
218
218
|
}
|
|
219
219
|
),
|
|
220
220
|
q ? /* @__PURE__ */ i(
|
|
221
221
|
Oe,
|
|
222
222
|
{
|
|
223
223
|
groupedData: L,
|
|
224
|
-
title:
|
|
224
|
+
title: E,
|
|
225
225
|
hideThumbnail: a
|
|
226
226
|
}
|
|
227
227
|
) : /* @__PURE__ */ i(
|
|
@@ -231,8 +231,8 @@ const be = "Observations-module_observations__RKSyo", me = "Observations-module_
|
|
|
231
231
|
rows: [],
|
|
232
232
|
ariaLabel: d("OBSERVATIONS"),
|
|
233
233
|
loading: A,
|
|
234
|
-
errorStateMessage:
|
|
235
|
-
emptyStateMessage:
|
|
234
|
+
errorStateMessage: k,
|
|
235
|
+
emptyStateMessage: Q ?? d("NO_OBSERVATIONS_AVAILABLE"),
|
|
236
236
|
dataTestId: "observations-table"
|
|
237
237
|
}
|
|
238
238
|
)
|
|
@@ -241,7 +241,7 @@ const be = "Observations-module_observations__RKSyo", me = "Observations-module_
|
|
|
241
241
|
);
|
|
242
242
|
};
|
|
243
243
|
export {
|
|
244
|
-
|
|
244
|
+
he as conceptUuidQueryKeys,
|
|
245
245
|
Ne as default,
|
|
246
|
-
|
|
246
|
+
Ee as observationsQueryKeys
|
|
247
247
|
};
|
|
@@ -6,7 +6,7 @@ import * as Eh from "react-dom";
|
|
|
6
6
|
import hye, { createPortal as Qa } from "react-dom";
|
|
7
7
|
import { useTranslation as st } from "react-i18next";
|
|
8
8
|
import { useQuery as Mt, useQueryClient as Hc, useQueries as pye, useMutation as D6 } from "@tanstack/react-query";
|
|
9
|
-
import { useParams as G_e, useNavigate as K_e } from "react-router
|
|
9
|
+
import { useParams as G_e, useNavigate as K_e } from "react-router";
|
|
10
10
|
function Y_e(t, e, r) {
|
|
11
11
|
return (e = Q_e(e)) in t ? Object.defineProperty(t, e, {
|
|
12
12
|
value: r,
|
|
@@ -64700,6 +64700,7 @@ pp.propTypes = {
|
|
|
64700
64700
|
*/
|
|
64701
64701
|
tabIndex: f.number
|
|
64702
64702
|
};
|
|
64703
|
+
f.string, f.string, f.bool, f.string.isRequired, f.number, f.oneOf(["small", "big"]), f.oneOf(["active", "finished", "error"]), f.oneOf(["default", "inline", "indented"]), f.number;
|
|
64703
64704
|
const Nn = ({
|
|
64704
64705
|
testId: t,
|
|
64705
64706
|
"data-testid": e,
|
|
@@ -107253,7 +107254,7 @@ const q$t = [
|
|
|
107253
107254
|
},
|
|
107254
107255
|
{
|
|
107255
107256
|
type: "patientDocuments",
|
|
107256
|
-
component: Qr(() => import("./DocumentsTable-
|
|
107257
|
+
component: Qr(() => import("./DocumentsTable-CWtmCWHw.js"))
|
|
107257
107258
|
},
|
|
107258
107259
|
{
|
|
107259
107260
|
type: "flowSheet",
|
|
@@ -107261,7 +107262,7 @@ const q$t = [
|
|
|
107261
107262
|
},
|
|
107262
107263
|
{
|
|
107263
107264
|
type: "forms",
|
|
107264
|
-
component: Qr(() => import("./FormsTable-
|
|
107265
|
+
component: Qr(() => import("./FormsTable-Cdfw4nlS.js"))
|
|
107265
107266
|
},
|
|
107266
107267
|
{
|
|
107267
107268
|
type: "labOrders",
|
|
@@ -107269,7 +107270,7 @@ const q$t = [
|
|
|
107269
107270
|
},
|
|
107270
107271
|
{
|
|
107271
107272
|
type: "observations",
|
|
107272
|
-
component: Qr(() => import("./Observations-
|
|
107273
|
+
component: Qr(() => import("./Observations-ByFseCbp.js"))
|
|
107273
107274
|
},
|
|
107274
107275
|
{
|
|
107275
107276
|
type: "ordersControl",
|
|
@@ -107736,34 +107737,34 @@ const j_e = o.createContext(void 0), ckt = () => {
|
|
|
107736
107737
|
);
|
|
107737
107738
|
};
|
|
107738
107739
|
export {
|
|
107739
|
-
|
|
107740
|
-
|
|
107741
|
-
|
|
107740
|
+
Kn as $,
|
|
107741
|
+
J1 as A,
|
|
107742
|
+
uZt as B,
|
|
107742
107743
|
yZt as C,
|
|
107743
|
-
|
|
107744
|
-
|
|
107745
|
-
|
|
107746
|
-
|
|
107747
|
-
|
|
107748
|
-
|
|
107749
|
-
|
|
107750
|
-
|
|
107751
|
-
|
|
107752
|
-
|
|
107753
|
-
|
|
107744
|
+
lht as D,
|
|
107745
|
+
O2 as E,
|
|
107746
|
+
zc as F,
|
|
107747
|
+
txe as G,
|
|
107748
|
+
rxe as H,
|
|
107749
|
+
q7t as I,
|
|
107750
|
+
Xkt as J,
|
|
107751
|
+
Jkt as K,
|
|
107752
|
+
Ir as L,
|
|
107753
|
+
hZt as M,
|
|
107754
|
+
mZt as N,
|
|
107754
107755
|
N6 as O,
|
|
107755
|
-
|
|
107756
|
-
|
|
107756
|
+
pZt as P,
|
|
107757
|
+
Rr as Q,
|
|
107757
107758
|
fZt as R,
|
|
107758
107759
|
f6t as S,
|
|
107759
107760
|
tZt as T,
|
|
107760
|
-
|
|
107761
|
+
nxe as U,
|
|
107761
107762
|
oZt as V,
|
|
107762
107763
|
Kr as W,
|
|
107763
|
-
|
|
107764
|
-
|
|
107765
|
-
|
|
107766
|
-
|
|
107764
|
+
t9e as X,
|
|
107765
|
+
$me as Y,
|
|
107766
|
+
ayt as Z,
|
|
107767
|
+
nZt as _,
|
|
107767
107768
|
zr as a,
|
|
107768
107769
|
aZt as a0,
|
|
107769
107770
|
$Ne as a1,
|
|
@@ -107823,28 +107824,28 @@ export {
|
|
|
107823
107824
|
bZt as ay,
|
|
107824
107825
|
WAe as az,
|
|
107825
107826
|
s6 as b,
|
|
107826
|
-
|
|
107827
|
-
|
|
107827
|
+
iZt as c,
|
|
107828
|
+
eZt as d,
|
|
107828
107829
|
Ta as e,
|
|
107829
107830
|
ht as f,
|
|
107830
|
-
|
|
107831
|
-
|
|
107832
|
-
|
|
107833
|
-
|
|
107834
|
-
|
|
107835
|
-
|
|
107836
|
-
|
|
107837
|
-
|
|
107838
|
-
|
|
107831
|
+
hi as g,
|
|
107832
|
+
L1 as h,
|
|
107833
|
+
Nn as i,
|
|
107834
|
+
Q3 as j,
|
|
107835
|
+
K4 as k,
|
|
107836
|
+
Z1 as l,
|
|
107837
|
+
Vi as m,
|
|
107838
|
+
bNe as n,
|
|
107839
|
+
kAe as o,
|
|
107839
107840
|
sZt as p,
|
|
107840
|
-
|
|
107841
|
-
|
|
107842
|
-
|
|
107843
|
-
|
|
107841
|
+
Qkt as q,
|
|
107842
|
+
w1 as r,
|
|
107843
|
+
_zt as s,
|
|
107844
|
+
Wo as t,
|
|
107844
107845
|
un as u,
|
|
107845
|
-
|
|
107846
|
-
|
|
107847
|
-
|
|
107848
|
-
|
|
107849
|
-
|
|
107846
|
+
Go as v,
|
|
107847
|
+
dZt as w,
|
|
107848
|
+
Okt as x,
|
|
107849
|
+
bvt as y,
|
|
107850
|
+
Uo as z
|
|
107850
107851
|
};
|
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { aw as o, au as r, a4 as n, at as c, aR as g, a5 as l, a9 as m, C as d, al as P, aC as u, a6 as v, S as T, a7 as C, a2 as D, T as p, V as A, af as S, ai as b, ac as L, aN as N, aP as y, aQ as E, aT as I, a8 as U, aS as f, an as h, ao as O, O as R, a3 as W, ah as _, aj as x, ab as
|
|
1
|
+
import { aw as o, au as r, a4 as n, at as c, aR as g, a5 as l, a9 as m, C as d, al as P, aC as u, a6 as v, S as T, a7 as C, a2 as D, T as p, V as A, af as S, ai as b, ac as L, aN as N, aP as y, aQ as E, aT as I, a8 as U, aS as f, an as h, ao as O, O as R, a3 as W, ah as _, aj as x, ab as F, aa as G, ad as M, ag as V, aL as k, aK as w, as as H, ak as K, ae as q, aB as z, ay as B, ax as Y, Y as j, aU as J, s as Q, aI as Z, aH as X, Z as $, aA as aa, aE as ea, aF as sa, aG as ta, _ as ia, az as oa, aD as ra, a0 as na, aJ as ca, a1 as ga, av as la, am as ma, ap as da, ar as Pa, b as ua, aO as va, a as Ta, aq as Ca, u as Da, aM as pa, l as Aa } from "./index-RIPNlc6y.js";
|
|
2
2
|
import "react/jsx-runtime";
|
|
3
3
|
import "@tanstack/react-query";
|
|
4
4
|
import "react";
|
|
@@ -34,11 +34,11 @@ export {
|
|
|
34
34
|
W as PatientDetails,
|
|
35
35
|
_ as PatientProgramsTable,
|
|
36
36
|
x as ProgramDetails,
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
37
|
+
F as RadiologyInvestigationReport,
|
|
38
|
+
G as RadiologyInvestigationTable,
|
|
39
|
+
M as SearchPatient,
|
|
40
|
+
V as TaskList,
|
|
41
|
+
k as UserActionProvider,
|
|
42
42
|
w as UserGlobalAction,
|
|
43
43
|
H as UserPrivilegeProvider,
|
|
44
44
|
K as VisitsTable,
|
|
@@ -49,9 +49,9 @@ export {
|
|
|
49
49
|
j as createEmptyDocumentEntry,
|
|
50
50
|
J as deriveFormSchemaData,
|
|
51
51
|
Q as extractFormName,
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
52
|
+
Z as getAllWidgetConfigs,
|
|
53
|
+
X as getAllWidgetTypes,
|
|
54
|
+
$ as getDefaultDocumentType,
|
|
55
55
|
aa as getSearchWidget,
|
|
56
56
|
ea as getWidget,
|
|
57
57
|
sa as getWidgetConfig,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { AppointmentSearchResult, SearchActionConfig, UserPrivilege, PatientSearchResultBundle, Notification } from '@bahmni/services';
|
|
2
|
-
import { NavigateFunction } from 'react-router
|
|
2
|
+
import { NavigateFunction } from 'react-router';
|
|
3
3
|
import { PatientSearchViewModel } from '../utils';
|
|
4
4
|
export declare const getAppointmentStatusClassName: (status: string) => string;
|
|
5
5
|
export declare const updateAppointmentStatusInResults: (appointmentPatientData: AppointmentSearchResult[], responseUuid: string, responseStatus: string) => AppointmentSearchResult[];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"appointmentSearchResultActionHandler.d.ts","sourceRoot":"","sources":["../../../../src/search/searchPatient/actions/appointmentSearchResultActionHandler.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,uBAAuB,EACvB,kBAAkB,EAGlB,aAAa,EAEb,yBAAyB,EAEzB,KAAK,YAAY,EAClB,MAAM,kBAAkB,CAAC;AAE1B,OAAO,EAAE,gBAAgB,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"appointmentSearchResultActionHandler.d.ts","sourceRoot":"","sources":["../../../../src/search/searchPatient/actions/appointmentSearchResultActionHandler.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,uBAAuB,EACvB,kBAAkB,EAGlB,aAAa,EAEb,yBAAyB,EAEzB,KAAK,YAAY,EAClB,MAAM,kBAAkB,CAAC;AAE1B,OAAO,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAC;AAChD,OAAO,EAAE,sBAAsB,EAAE,MAAM,UAAU,CAAC;AAElD,eAAO,MAAM,6BAA6B,GAAI,QAAQ,MAAM,KAAG,MAkB9D,CAAC;AAEF,eAAO,MAAM,gCAAgC,GAC3C,wBAAwB,uBAAuB,EAAE,EACjD,cAAc,MAAM,EACpB,gBAAgB,MAAM,KACrB,uBAAuB,EAOzB,CAAC;AAEF,eAAO,MAAM,sBAAsB,GACjC,eAAe,MAAM,EACrB,SAAS,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,EAC/B,UAAU,gBAAgB,SAU3B,CAAC;AAEF,eAAO,MAAM,uBAAuB,GAClC,QAAQ,kBAAkB,EAC1B,KAAK,sBAAsB,CAAC,uBAAuB,CAAC,EACpD,mBAAmB,yBAAyB,EAC5C,sBAAsB,CAAC,IAAI,EAAE,yBAAyB,KAAK,IAAI,EAC/D,UAAU,gBAAgB,EAC1B,iBAAiB,CAAC,YAAY,EAAE,IAAI,CAAC,YAAY,EAAE,IAAI,CAAC,KAAK,IAAI,EACjE,GAAG,CAAC,GAAG,EAAE,MAAM,KAAK,MAAM,kBAiE3B,CAAC;AAQF,eAAO,MAAM,wBAAwB,GACnC,QAAQ,kBAAkB,EAC1B,gBAAgB,aAAa,EAAE,EAC/B,KAAK,sBAAsB,CAAC,uBAAuB,CAAC,KACnD,OAcF,CAAC;AAEF,eAAO,MAAM,2BAA2B,GACtC,QAAQ,MAAM,EAAE,GAAG,SAAS,EAC5B,eAAe,MAAM,EAAE,GAAG,SAAS,EACnC,KAAK,sBAAsB,CAAC,uBAAuB,CAAC,KACnD,OASF,CAAC;AAEF,eAAO,MAAM,kBAAkB,GAC5B,gBAAgB,aAAa,EAAE,MAAM,OAAO,MAAM,EAAE,YAEpD,CAAC;AAEJ,eAAO,MAAM,eAAe,GAC1B,OAAO,MAAM,EAAE,EACf,KAAK,sBAAsB,CAAC,uBAAuB,CAAC,YAIrD,CAAC;AAEF,eAAO,MAAM,gBAAgB,GAC3B,OAAO,MAAM,EAAE,EACf,KAAK,sBAAsB,CAAC,uBAAuB,CAAC,YAkBrD,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bahmni/widgets",
|
|
3
|
-
"version": "0.0.1-dev.
|
|
3
|
+
"version": "0.0.1-dev.461",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"module": "./dist/index.js",
|
|
@@ -35,9 +35,9 @@
|
|
|
35
35
|
"@carbon/icons-react": "^11.65.0",
|
|
36
36
|
"@carbon/react": "^1.83.0",
|
|
37
37
|
"@tanstack/react-query": "^5.85.5",
|
|
38
|
-
"react": ">=
|
|
39
|
-
"react-dom": ">=
|
|
40
|
-
"react-router
|
|
38
|
+
"react": ">=19.2.7",
|
|
39
|
+
"react-dom": ">=19.2.7",
|
|
40
|
+
"react-router": ">=7.0.0"
|
|
41
41
|
},
|
|
42
42
|
"description": "Reusable React display controls and components extracted for sharing across Bahmni modules. Includes common clinical widgets and notification provider to avoid duplication across different Bahmni applications.",
|
|
43
43
|
"files": [
|