@bahmni/widgets 0.0.1-dev.264 → 0.0.1-dev.265
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-Ddj98VqX.js → DocumentsTable-BAI2j9Ue.js} +1 -1
- package/dist/{FormsTable-CLewAjcq.js → FormsTable-CbjYhFmJ.js} +27 -27
- package/dist/{Observations-DsWHnOt2.js → Observations-DkAARn33.js} +10 -10
- package/dist/genericServiceRequest/GenericServiceRequestTable.d.ts.map +1 -1
- package/dist/{index-BhoSY1KM.js → index-BBIrtGWB.js} +81 -72
- package/dist/index.css +1 -1
- package/dist/index.js +1 -1
- package/dist/labinvestigation/LabInvestigation.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as s, jsxs as _, Fragment as Q } from "react/jsx-runtime";
|
|
2
|
-
import { u as W, a as X, U as J, f as Z, e as x, m as ee, y as te } from "./index-
|
|
2
|
+
import { u as W, a as X, U as J, f as Z, e as x, m as ee, y as te } from "./index-BBIrtGWB.js";
|
|
3
3
|
import { useQuery as ne } from "@tanstack/react-query";
|
|
4
4
|
import { useState as l, useCallback as f, useEffect as N, useMemo as p } from "react";
|
|
5
5
|
import { useTranslation as ae } from "react-i18next";
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { jsx as n, jsxs as X, Fragment as Z } from "react/jsx-runtime";
|
|
2
|
-
import { w as ee, u as re, o as te, v as oe, _ as ae, b as se, s as ne, k as de, T as C, e as ie, f as me, m as U, c as ce, t as le, y as ue, O as fe } from "./index-
|
|
2
|
+
import { w as ee, u as re, o as te, v as oe, _ as ae, b as se, s as ne, k as de, T as C, e as ie, f as me, m as U, c as ce, t as le, y as ue, O as fe } from "./index-BBIrtGWB.js";
|
|
3
3
|
import { useQueryClient as ye, useQuery as f } from "@tanstack/react-query";
|
|
4
4
|
import { useState as k, useMemo as d, useCallback as y } from "react";
|
|
5
5
|
import { useTranslation as pe } from "react-i18next";
|
|
6
|
-
const be = "
|
|
6
|
+
const be = "_formsTableBody_ourq9_5", ge = "_customAccordianItem_ourq9_10", h = {
|
|
7
7
|
formsTableBody: be,
|
|
8
8
|
customAccordianItem: ge
|
|
9
|
-
},
|
|
9
|
+
}, Ee = (m) => m ? m.extension?.find(
|
|
10
10
|
(p) => p.url === ee
|
|
11
11
|
)?.valueString : void 0, ve = ({
|
|
12
12
|
episodeOfCareUuids: m,
|
|
@@ -40,16 +40,16 @@ const be = "_formsTableBody_81hra_1", ge = "_customAccordianItem_81hra_6", O = {
|
|
|
40
40
|
}, [t, T]), {
|
|
41
41
|
isLoading: j,
|
|
42
42
|
isError: V,
|
|
43
|
-
error:
|
|
43
|
+
error: E
|
|
44
44
|
} = f({
|
|
45
45
|
queryKey: ["formMetadata", g],
|
|
46
46
|
queryFn: () => se(g),
|
|
47
47
|
enabled: !!g && l
|
|
48
48
|
}), {
|
|
49
|
-
data:
|
|
49
|
+
data: F,
|
|
50
50
|
isLoading: $,
|
|
51
51
|
isError: Q,
|
|
52
|
-
error:
|
|
52
|
+
error: N
|
|
53
53
|
} = f({
|
|
54
54
|
queryKey: ["formsEncounterFHIR", t?.encounterUuid],
|
|
55
55
|
queryFn: () => ne(t.encounterUuid),
|
|
@@ -61,15 +61,15 @@ const be = "_formsTableBody_81hra_1", ge = "_customAccordianItem_81hra_6", O = {
|
|
|
61
61
|
},
|
|
62
62
|
[c]
|
|
63
63
|
);
|
|
64
|
-
const z = d(() => !
|
|
65
|
-
const r =
|
|
64
|
+
const z = d(() => !F?.entry || !t?.formName ? [] : F.entry.filter((a) => a.resource?.resourceType === "Observation").map((a) => a.resource).filter((a) => {
|
|
65
|
+
const r = Ee(a);
|
|
66
66
|
return !r || r.includes(t.formName);
|
|
67
|
-
}), [
|
|
68
|
-
if (
|
|
69
|
-
return C(
|
|
70
|
-
if (
|
|
71
|
-
return C(
|
|
72
|
-
}, [
|
|
67
|
+
}), [F, t?.formName]), G = d(() => {
|
|
68
|
+
if (E)
|
|
69
|
+
return C(E).message;
|
|
70
|
+
if (N)
|
|
71
|
+
return C(N).message;
|
|
72
|
+
}, [E, N]), R = d(
|
|
73
73
|
() => [
|
|
74
74
|
{ key: "recordedOn", header: s("RECORDED_ON") },
|
|
75
75
|
{ key: "recordedBy", header: s("RECORDED_BY") }
|
|
@@ -86,12 +86,12 @@ const be = "_formsTableBody_81hra_1", ge = "_customAccordianItem_81hra_6", O = {
|
|
|
86
86
|
(r, o) => {
|
|
87
87
|
const u = o.formName;
|
|
88
88
|
r[u] ??= [];
|
|
89
|
-
const
|
|
89
|
+
const O = o.providers.map((W) => W.providerName).filter(Boolean).join(", ");
|
|
90
90
|
return r[u].push({
|
|
91
91
|
id: o.encounterUuid,
|
|
92
92
|
formName: o.formName,
|
|
93
93
|
recordedOn: ie(o.encounterDateTime, s, !0).formattedResult,
|
|
94
|
-
recordedBy:
|
|
94
|
+
recordedBy: O ?? "--",
|
|
95
95
|
encounterDateTime: o.encounterDateTime,
|
|
96
96
|
encounterUuid: o.encounterUuid
|
|
97
97
|
}), r;
|
|
@@ -102,29 +102,29 @@ const be = "_formsTableBody_81hra_1", ge = "_customAccordianItem_81hra_6", O = {
|
|
|
102
102
|
([r, o]) => ({
|
|
103
103
|
formName: r,
|
|
104
104
|
records: o.sort(
|
|
105
|
-
(u,
|
|
105
|
+
(u, O) => O.encounterDateTime - u.encounterDateTime
|
|
106
106
|
)
|
|
107
107
|
})
|
|
108
108
|
).sort((r, o) => r.formName.localeCompare(o.formName));
|
|
109
|
-
}, [A, s]),
|
|
109
|
+
}, [A, s]), q = y((e) => {
|
|
110
110
|
v(e), _(!0);
|
|
111
111
|
}, []), J = y(() => {
|
|
112
112
|
_(!1), v(null);
|
|
113
|
-
}, []),
|
|
113
|
+
}, []), S = y(
|
|
114
114
|
(e, a) => {
|
|
115
115
|
switch (a) {
|
|
116
116
|
case "recordedOn":
|
|
117
|
-
return /* @__PURE__ */ n(me, { onClick: () =>
|
|
117
|
+
return /* @__PURE__ */ n(me, { onClick: () => q(e), children: e.recordedOn });
|
|
118
118
|
case "recordedBy":
|
|
119
119
|
return e.recordedBy;
|
|
120
120
|
default:
|
|
121
121
|
return null;
|
|
122
122
|
}
|
|
123
123
|
},
|
|
124
|
-
[
|
|
124
|
+
[q]
|
|
125
125
|
);
|
|
126
126
|
return /* @__PURE__ */ X(Z, { children: [
|
|
127
|
-
/* @__PURE__ */ n("div", { "data-testid": "forms-table", children: I || M || L.length === 0 || D ? /* @__PURE__ */ n(
|
|
127
|
+
/* @__PURE__ */ n("div", { id: "forms-table", "data-testid": "forms-table", children: I || M || L.length === 0 || D ? /* @__PURE__ */ n(
|
|
128
128
|
U,
|
|
129
129
|
{
|
|
130
130
|
headers: R,
|
|
@@ -133,8 +133,8 @@ const be = "_formsTableBody_81hra_1", ge = "_customAccordianItem_81hra_6", O = {
|
|
|
133
133
|
loading: I,
|
|
134
134
|
errorStateMessage: M ? H?.message : void 0,
|
|
135
135
|
emptyStateMessage: s("FORMS_UNAVAILABLE"),
|
|
136
|
-
renderCell:
|
|
137
|
-
className:
|
|
136
|
+
renderCell: S,
|
|
137
|
+
className: h.formsTableBody,
|
|
138
138
|
dataTestId: "forms-table"
|
|
139
139
|
}
|
|
140
140
|
) : /* @__PURE__ */ n(ce, { align: "start", children: L.map((e, a) => {
|
|
@@ -143,7 +143,7 @@ const be = "_formsTableBody_81hra_1", ge = "_customAccordianItem_81hra_6", O = {
|
|
|
143
143
|
le,
|
|
144
144
|
{
|
|
145
145
|
title: r,
|
|
146
|
-
className:
|
|
146
|
+
className: h.customAccordianItem,
|
|
147
147
|
testId: `accordian-title-${r}`,
|
|
148
148
|
open: a === 0,
|
|
149
149
|
children: /* @__PURE__ */ n(
|
|
@@ -156,8 +156,8 @@ const be = "_formsTableBody_81hra_1", ge = "_customAccordianItem_81hra_6", O = {
|
|
|
156
156
|
errorStateMessage: "",
|
|
157
157
|
sortable: Y,
|
|
158
158
|
emptyStateMessage: s("FORMS_UNAVAILABLE"),
|
|
159
|
-
renderCell:
|
|
160
|
-
className:
|
|
159
|
+
renderCell: S,
|
|
160
|
+
className: h.formsTableBody,
|
|
161
161
|
dataTestId: `forms-table-${r}`
|
|
162
162
|
}
|
|
163
163
|
)
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { jsx as l, jsxs as S } from "react/jsx-runtime";
|
|
2
|
-
import { d as
|
|
2
|
+
import { d as V, C as D, g as k, n as K, i as Q, x as q, h as G, z as P, u as j, a as z, j as H, l as x, k as Y, p as J, q as W, r as X, $ as Z, m as ee } from "./index-BBIrtGWB.js";
|
|
3
3
|
import { useQueries as te, useQuery as se } from "@tanstack/react-query";
|
|
4
4
|
import { useRef as oe, useEffect as C, useMemo as O } from "react";
|
|
5
5
|
import { useTranslation as U } from "react-i18next";
|
|
6
6
|
const B = (t, i, c, d, u, r) => {
|
|
7
|
-
const s =
|
|
7
|
+
const s = k(t, i, u), o = s.value, a = K(o);
|
|
8
8
|
let n = o;
|
|
9
9
|
a === "Image" && (n = /* @__PURE__ */ l(
|
|
10
|
-
|
|
10
|
+
q,
|
|
11
11
|
{
|
|
12
12
|
imageSrc: o,
|
|
13
13
|
alt: o,
|
|
@@ -61,7 +61,7 @@ const B = (t, i, c, d, u, r) => {
|
|
|
61
61
|
hideThumbnail: c
|
|
62
62
|
}) => {
|
|
63
63
|
const { t: d } = U(), u = (r, s, o) => {
|
|
64
|
-
const a =
|
|
64
|
+
const a = V(r.encounterDetails, d);
|
|
65
65
|
return /* @__PURE__ */ S(
|
|
66
66
|
D,
|
|
67
67
|
{
|
|
@@ -106,7 +106,7 @@ const B = (t, i, c, d, u, r) => {
|
|
|
106
106
|
)
|
|
107
107
|
}
|
|
108
108
|
);
|
|
109
|
-
}, ne = "
|
|
109
|
+
}, ne = "_observations_w45xp_1", ie = "_title_w45xp_18", N = {
|
|
110
110
|
observations: ne,
|
|
111
111
|
title: ie
|
|
112
112
|
}, ce = (t) => ["conceptUuid", t], de = (t, i) => ["observations", t, ...i], ve = ({ config: t }) => {
|
|
@@ -140,10 +140,10 @@ const B = (t, i, c, d, u, r) => {
|
|
|
140
140
|
refetch: T
|
|
141
141
|
} = se({
|
|
142
142
|
queryKey: de(s, p),
|
|
143
|
-
queryFn: () =>
|
|
143
|
+
queryFn: () => x(s, p),
|
|
144
144
|
enabled: !!s && p.length > 0 && f
|
|
145
145
|
});
|
|
146
|
-
|
|
146
|
+
Y(
|
|
147
147
|
(e) => {
|
|
148
148
|
e.patientUUID === s && e.updatedConcepts.size > 0 && [...e.updatedConcepts.keys()].some(
|
|
149
149
|
(R) => p.includes(R)
|
|
@@ -165,7 +165,7 @@ const B = (t, i, c, d, u, r) => {
|
|
|
165
165
|
{ key: "name", header: "name" },
|
|
166
166
|
{ key: "value", header: "value" },
|
|
167
167
|
{ key: "form", header: "form" }
|
|
168
|
-
], $ = y || !f, I = g && f, F = (!m || m.entry?.length === 0 || p.length === 0) && f, L = I ? a("ERROR_FETCHING_OBSERVATIONS") : null,
|
|
168
|
+
], $ = y || !f, I = g && f, F = (!m || m.entry?.length === 0 || p.length === 0) && f, L = I ? a("ERROR_FETCHING_OBSERVATIONS") : null, w = F ? a("NO_OBSERVATIONS_FOUND") : void 0, M = _.length > 0 && !$ && !I, h = i.titleTranslationKey, E = h ? a(h) : "";
|
|
169
169
|
return /* @__PURE__ */ S(
|
|
170
170
|
"div",
|
|
171
171
|
{
|
|
@@ -184,7 +184,7 @@ const B = (t, i, c, d, u, r) => {
|
|
|
184
184
|
children: /* @__PURE__ */ l("p", { children: E })
|
|
185
185
|
}
|
|
186
186
|
),
|
|
187
|
-
|
|
187
|
+
M ? /* @__PURE__ */ l(
|
|
188
188
|
ae,
|
|
189
189
|
{
|
|
190
190
|
groupedData: _,
|
|
@@ -199,7 +199,7 @@ const B = (t, i, c, d, u, r) => {
|
|
|
199
199
|
ariaLabel: a("OBSERVATIONS"),
|
|
200
200
|
loading: $,
|
|
201
201
|
errorStateMessage: L,
|
|
202
|
-
emptyStateMessage:
|
|
202
|
+
emptyStateMessage: w,
|
|
203
203
|
dataTestId: "observations-table"
|
|
204
204
|
}
|
|
205
205
|
)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GenericServiceRequestTable.d.ts","sourceRoot":"","sources":["../../src/genericServiceRequest/GenericServiceRequestTable.tsx"],"names":[],"mappings":"AAkBA,OAAO,KAA0C,MAAM,OAAO,CAAC;AAI/D,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAahD,eAAO,MAAM,8BAA8B,GACzC,cAAc,MAAM,EACpB,aAAa,MAAM,EACnB,iBAAiB,MAAM,EAAE,6EAEoD,CAAC;AAehF;;;GAGG;AACH,QAAA,MAAM,0BAA0B,EAAE,KAAK,CAAC,EAAE,CAAC,WAAW,
|
|
1
|
+
{"version":3,"file":"GenericServiceRequestTable.d.ts","sourceRoot":"","sources":["../../src/genericServiceRequest/GenericServiceRequestTable.tsx"],"names":[],"mappings":"AAkBA,OAAO,KAA0C,MAAM,OAAO,CAAC;AAI/D,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAahD,eAAO,MAAM,8BAA8B,GACzC,cAAc,MAAM,EACpB,aAAa,MAAM,EACnB,iBAAiB,MAAM,EAAE,6EAEoD,CAAC;AAehF;;;GAGG;AACH,QAAA,MAAM,0BAA0B,EAAE,KAAK,CAAC,EAAE,CAAC,WAAW,CAgOrD,CAAC;AAEF,eAAe,0BAA0B,CAAC"}
|
|
@@ -62725,7 +62725,7 @@ const pXe = ({
|
|
|
62725
62725
|
testId: t,
|
|
62726
62726
|
children: e,
|
|
62727
62727
|
...r
|
|
62728
|
-
}) => /* @__PURE__ */ Y(Is, { ...r, "data-testid": t, children: e }), fXe = "
|
|
62728
|
+
}) => /* @__PURE__ */ Y(Is, { ...r, "data-testid": t, children: e }), fXe = "_container_iixgz_1", mXe = "_accordion_iixgz_5", wXe = "_rows_iixgz_36", Ec = {
|
|
62729
62729
|
container: fXe,
|
|
62730
62730
|
accordion: mXe,
|
|
62731
62731
|
rows: wXe
|
|
@@ -83564,7 +83564,7 @@ const o4t = ({
|
|
|
83564
83564
|
);
|
|
83565
83565
|
};
|
|
83566
83566
|
var Qu = /* @__PURE__ */ ((t) => (t.STAT = "stat", t.ROUTINE = "routine", t.URGENT = "urgent", t.ASAP = "asap", t))(Qu || {});
|
|
83567
|
-
const f4t = "
|
|
83567
|
+
const f4t = "_medicationTableEmpty_16to4_1", m4t = "_medicationTabList_16to4_12", w4t = "_medicationTabs_16to4_16", g4t = "_columnDataBold_16to4_20", v4t = "_medicationName_16to4_27", E4t = "_medicineDetails_16to4_37", y4t = "_PRN_16to4_45", V4t = "_STAT_16to4_50", H4t = "_activeStatus_16to4_55", b4t = "_scheduledStatus_16to4_59", M4t = "_cancelledStatus_16to4_63", x4t = "_completedStatus_16to4_67", N4t = "_stoppedStatus_16to4_71", z4t = "_unknownStatus_16to4_75", A4t = "_rowSeperator_16to4_79", _4t = "_medicationsTableBody_16to4_83", C4t = "_customAccordianItem_16to4_90", Jt = {
|
|
83568
83568
|
medicationTableEmpty: f4t,
|
|
83569
83569
|
medicationTabList: m4t,
|
|
83570
83570
|
medicationTabs: w4t,
|
|
@@ -83953,7 +83953,7 @@ const G4t = (t) => !t || t.length === 0 ? [] : [...t].sort((e, r) => {
|
|
|
83953
83953
|
return null;
|
|
83954
83954
|
}
|
|
83955
83955
|
};
|
|
83956
|
-
return E ? /* @__PURE__ */ Y("div", { "data-testid": "medications-table-error", children: /* @__PURE__ */ Y("p", { className: Jt.medicationTableEmpty, children: n("MEDICATIONS_ERROR_FETCHING") }) }) : /* @__PURE__ */ Y("div", { "data-testid": "medications-table", children: /* @__PURE__ */ Ce(
|
|
83956
|
+
return E ? /* @__PURE__ */ Y("div", { "data-testid": "medications-table-error", children: /* @__PURE__ */ Y("p", { className: Jt.medicationTableEmpty, children: n("MEDICATIONS_ERROR_FETCHING") }) }) : /* @__PURE__ */ Y("div", { id: "medications-table", "data-testid": "medications-table", children: /* @__PURE__ */ Ce(
|
|
83957
83957
|
pu,
|
|
83958
83958
|
{
|
|
83959
83959
|
selectedIndex: u,
|
|
@@ -84608,7 +84608,7 @@ function e7e(t) {
|
|
|
84608
84608
|
}));
|
|
84609
84609
|
return e.length > 0 ? e : void 0;
|
|
84610
84610
|
}
|
|
84611
|
-
const Cdt = "
|
|
84611
|
+
const Cdt = "_investigationName_1j8fh_17", Tdt = "_resultsCell_1j8fh_27", Odt = "_radiologyInvestigationTableBody_1j8fh_33", Ldt = "_customAccordianItem_1j8fh_46", Ddt = "_linkedOrderRow_1j8fh_67", Rdt = "_expandableContentSpacer_1j8fh_74", Sdt = "_reportSection_1j8fh_78", $dt = "_reportTitle_1j8fh_81", Idt = "_reportDetails_1j8fh_87", Zdt = "_reportTile_1j8fh_95", w1 = {
|
|
84612
84612
|
investigationName: Cdt,
|
|
84613
84613
|
resultsCell: Tdt,
|
|
84614
84614
|
radiologyInvestigationTableBody: Odt,
|
|
@@ -85147,7 +85147,7 @@ const r7e = (t) => ["radiologyInvestigation", t], Qdt = async (t, e, r, n) => {
|
|
|
85147
85147
|
__proto__: null,
|
|
85148
85148
|
default: Xdt,
|
|
85149
85149
|
radiologyInvestigationQueryKeys: r7e
|
|
85150
|
-
}, Symbol.toStringTag, { value: "Module" })), tut = "
|
|
85150
|
+
}, Symbol.toStringTag, { value: "Module" })), tut = "_labSkeleton_ogyfk_5", rut = "_labTest_ogyfk_9", nut = "_labTestHeader_ogyfk_14", out = "_labTestInfo_ogyfk_23", aut = "_testName_ogyfk_35", iut = "_result_ogyfk_43", sut = "_abnormalResult_ogyfk_57", lut = "_testDetails_ogyfk_73", cut = "_testResultsPending_ogyfk_81", dut = "_accordionItem_ogyfk_90", uut = "_labInvestigationTableBodyError_ogyfk_101", hut = "_labTestResultsTable_ogyfk_110", put = "_viewAttachmentsLink_ogyfk_116", fut = "_attachmentsContainer_ogyfk_120", mut = "_attachmentViewer_ogyfk_127", wut = "_attachmentIframe_ogyfk_135", gut = "_attachmentImage_ogyfk_141", vut = "_attachmentNumber_ogyfk_146", tr = {
|
|
85151
85151
|
labSkeleton: tut,
|
|
85152
85152
|
labTest: rut,
|
|
85153
85153
|
labTestHeader: nut,
|
|
@@ -85527,31 +85527,33 @@ const _ut = ({
|
|
|
85527
85527
|
className: tr.labSkeleton,
|
|
85528
85528
|
testId: "lab-skeleton"
|
|
85529
85529
|
}
|
|
85530
|
-
) : !A && (N.length === 0 || g) ? /* @__PURE__ */ Y("div", { className: tr.labInvestigationTableBodyError, children: n("LAB_TEST_UNAVAILABLE") }) : /* @__PURE__ */ Y(
|
|
85531
|
-
|
|
85532
|
-
|
|
85533
|
-
|
|
85534
|
-
|
|
85535
|
-
|
|
85536
|
-
|
|
85537
|
-
|
|
85538
|
-
|
|
85539
|
-
|
|
85540
|
-
|
|
85541
|
-
title: K.date,
|
|
85542
|
-
children: K.tests?.map((X) => /* @__PURE__ */ Y(
|
|
85543
|
-
_ut,
|
|
85544
|
-
{
|
|
85545
|
-
test: X,
|
|
85546
|
-
isOpen: c.has(Q),
|
|
85547
|
-
hasProcessedReport: !!X.reportId,
|
|
85548
|
-
reportId: X.reportId
|
|
85530
|
+
) : !A && (N.length === 0 || g) ? /* @__PURE__ */ Y("div", { className: tr.labInvestigationTableBodyError, children: n("LAB_TEST_UNAVAILABLE") }) : /* @__PURE__ */ Y("div", { id: "lab-investigations", children: /* @__PURE__ */ Y(Ao, { align: "start", children: F.map(
|
|
85531
|
+
(K, Q) => /* @__PURE__ */ Y(
|
|
85532
|
+
_o,
|
|
85533
|
+
{
|
|
85534
|
+
className: tr.accordionItem,
|
|
85535
|
+
open: c.has(Q),
|
|
85536
|
+
onHeadingClick: () => {
|
|
85537
|
+
u((X) => {
|
|
85538
|
+
const B = new Set(X);
|
|
85539
|
+
return B.has(Q) ? B.delete(Q) : (B.add(Q), m(Q)), B;
|
|
85540
|
+
});
|
|
85549
85541
|
},
|
|
85550
|
-
|
|
85551
|
-
|
|
85552
|
-
|
|
85553
|
-
|
|
85554
|
-
|
|
85542
|
+
title: K.date,
|
|
85543
|
+
children: K.tests?.map((X) => /* @__PURE__ */ Y(
|
|
85544
|
+
_ut,
|
|
85545
|
+
{
|
|
85546
|
+
test: X,
|
|
85547
|
+
isOpen: c.has(Q),
|
|
85548
|
+
hasProcessedReport: !!X.reportId,
|
|
85549
|
+
reportId: X.reportId
|
|
85550
|
+
},
|
|
85551
|
+
X.id ?? `${K.date}-${X.testName}`
|
|
85552
|
+
))
|
|
85553
|
+
},
|
|
85554
|
+
K.date
|
|
85555
|
+
)
|
|
85556
|
+
) }) });
|
|
85555
85557
|
}, Out = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
85556
85558
|
__proto__: null,
|
|
85557
85559
|
default: Tut
|
|
@@ -86349,7 +86351,7 @@ ${A.formattedResult}`
|
|
|
86349
86351
|
}, aht = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
86350
86352
|
__proto__: null,
|
|
86351
86353
|
default: oht
|
|
86352
|
-
}, Symbol.toStringTag, { value: "Module" })), iht = "
|
|
86354
|
+
}, Symbol.toStringTag, { value: "Module" })), iht = "_requestName_1khlg_5", sht = "_serviceRequestTableBody_1khlg_16", lht = "_customAccordianItem_1khlg_29", ei = {
|
|
86353
86355
|
requestName: iht,
|
|
86354
86356
|
serviceRequestTableBody: sht,
|
|
86355
86357
|
customAccordianItem: lht
|
|
@@ -86503,47 +86505,54 @@ const o7e = (t, e, r) => ["genericServiceRequest", t, e, r], pht = async (t, e,
|
|
|
86503
86505
|
},
|
|
86504
86506
|
[a]
|
|
86505
86507
|
);
|
|
86506
|
-
return /* @__PURE__ */ Y(
|
|
86507
|
-
|
|
86508
|
+
return /* @__PURE__ */ Y(
|
|
86509
|
+
"div",
|
|
86508
86510
|
{
|
|
86509
|
-
|
|
86510
|
-
|
|
86511
|
-
|
|
86512
|
-
|
|
86513
|
-
|
|
86514
|
-
|
|
86515
|
-
|
|
86516
|
-
|
|
86517
|
-
|
|
86518
|
-
|
|
86519
|
-
|
|
86520
|
-
|
|
86521
|
-
|
|
86522
|
-
|
|
86523
|
-
|
|
86524
|
-
|
|
86525
|
-
|
|
86526
|
-
|
|
86527
|
-
|
|
86528
|
-
children: /* @__PURE__ */ Y(
|
|
86529
|
-
cr,
|
|
86511
|
+
id: "generic-service-request-table",
|
|
86512
|
+
"data-testid": "generic-service-request-table",
|
|
86513
|
+
children: y || x || z.length === 0 || c ? /* @__PURE__ */ Y(
|
|
86514
|
+
cr,
|
|
86515
|
+
{
|
|
86516
|
+
headers: N,
|
|
86517
|
+
ariaLabel: a("SERVICE_REQUEST_HEADING"),
|
|
86518
|
+
rows: [],
|
|
86519
|
+
loading: y,
|
|
86520
|
+
errorStateMessage: x ? H?.message : void 0,
|
|
86521
|
+
emptyStateMessage: a("NO_SERVICE_REQUESTS"),
|
|
86522
|
+
renderCell: O,
|
|
86523
|
+
className: ei.serviceRequestTableBody,
|
|
86524
|
+
dataTestId: "generic-service-request-table"
|
|
86525
|
+
}
|
|
86526
|
+
) : /* @__PURE__ */ Y(Ao, { align: "start", children: z.map((T, L) => {
|
|
86527
|
+
const { date: $, requests: j } = T;
|
|
86528
|
+
return /* @__PURE__ */ Y(
|
|
86529
|
+
_o,
|
|
86530
86530
|
{
|
|
86531
|
-
|
|
86532
|
-
|
|
86533
|
-
|
|
86534
|
-
|
|
86535
|
-
|
|
86536
|
-
|
|
86537
|
-
|
|
86538
|
-
|
|
86539
|
-
|
|
86540
|
-
|
|
86541
|
-
|
|
86542
|
-
|
|
86543
|
-
|
|
86544
|
-
|
|
86545
|
-
|
|
86546
|
-
|
|
86531
|
+
title: $,
|
|
86532
|
+
className: ei.customAccordianItem,
|
|
86533
|
+
testId: "accordian-table-title",
|
|
86534
|
+
open: L === 0,
|
|
86535
|
+
children: /* @__PURE__ */ Y(
|
|
86536
|
+
cr,
|
|
86537
|
+
{
|
|
86538
|
+
headers: N,
|
|
86539
|
+
ariaLabel: a("SERVICE_REQUEST_HEADING"),
|
|
86540
|
+
rows: j,
|
|
86541
|
+
loading: y,
|
|
86542
|
+
errorStateMessage: "",
|
|
86543
|
+
sortable: A,
|
|
86544
|
+
emptyStateMessage: a("NO_SERVICE_REQUESTS"),
|
|
86545
|
+
renderCell: O,
|
|
86546
|
+
className: ei.serviceRequestTableBody,
|
|
86547
|
+
dataTestId: `generic-service-request-table-${$}`
|
|
86548
|
+
}
|
|
86549
|
+
)
|
|
86550
|
+
},
|
|
86551
|
+
$
|
|
86552
|
+
);
|
|
86553
|
+
}) })
|
|
86554
|
+
}
|
|
86555
|
+
);
|
|
86547
86556
|
}, mht = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
86548
86557
|
__proto__: null,
|
|
86549
86558
|
default: fht,
|
|
@@ -87502,7 +87511,7 @@ const ipt = [
|
|
|
87502
87511
|
},
|
|
87503
87512
|
{
|
|
87504
87513
|
type: "patientDocuments",
|
|
87505
|
-
component: Br(() => import("./DocumentsTable-
|
|
87514
|
+
component: Br(() => import("./DocumentsTable-BAI2j9Ue.js"))
|
|
87506
87515
|
},
|
|
87507
87516
|
{
|
|
87508
87517
|
type: "flowSheet",
|
|
@@ -87510,7 +87519,7 @@ const ipt = [
|
|
|
87510
87519
|
},
|
|
87511
87520
|
{
|
|
87512
87521
|
type: "forms",
|
|
87513
|
-
component: Br(() => import("./FormsTable-
|
|
87522
|
+
component: Br(() => import("./FormsTable-CbjYhFmJ.js"))
|
|
87514
87523
|
},
|
|
87515
87524
|
{
|
|
87516
87525
|
type: "labOrders",
|
|
@@ -87518,7 +87527,7 @@ const ipt = [
|
|
|
87518
87527
|
},
|
|
87519
87528
|
{
|
|
87520
87529
|
type: "observations",
|
|
87521
|
-
component: Br(() => import("./Observations-
|
|
87530
|
+
component: Br(() => import("./Observations-DkAARn33.js"))
|
|
87522
87531
|
},
|
|
87523
87532
|
{
|
|
87524
87533
|
type: "ordersControl",
|