@bahmni/widgets 0.0.1-dev.182 → 0.0.1-dev.185
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-LWSWpNu-.js → DocumentsTable-D0IZOs6U.js} +2080 -2191
- package/dist/{FormsTable-yGF0uRTn.js → FormsTable-CK2Zg0wW.js} +34 -34
- package/dist/{Observations-lSueidDj.js → Observations-BOgm8zo7.js} +30 -30
- package/dist/genericServiceRequest/GenericServiceRequestTable.d.ts +3 -2
- package/dist/genericServiceRequest/GenericServiceRequestTable.d.ts.map +1 -1
- package/dist/genericServiceRequest/utils.d.ts.map +1 -1
- package/dist/{index-ByTTSt4p.js → index-DMWvpiRC.js} +54264 -40000
- package/dist/index.css +1 -1
- package/dist/index.js +12 -12
- package/dist/labinvestigation/LabInvestigation.d.ts.map +1 -1
- package/dist/radiologyInvestigation/RadiologyInvestigationTable.d.ts +3 -2
- package/dist/radiologyInvestigation/RadiologyInvestigationTable.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -1,26 +1,26 @@
|
|
|
1
1
|
import { jsxs as b, jsx as n, Fragment as H } from "react/jsx-runtime";
|
|
2
|
-
import {
|
|
2
|
+
import { d as M, Q as re, e as te, f as ae, r as oe, g as se, Y as ne, u as de, A as ie, M as le, L as ce, h as me, O as ue, K as pe, k as be, P as fe, _ as U, j as _e, G as he, b as $e, T as ye, l as k, c as ge } from "./index-DMWvpiRC.js";
|
|
3
3
|
import { useQueryClient as ve, useQuery as L } from "@tanstack/react-query";
|
|
4
|
-
import { useState as
|
|
4
|
+
import { useState as x, useMemo as g, useCallback as F } from "react";
|
|
5
5
|
import { useTranslation as Ne } from "react-i18next";
|
|
6
|
-
const Oe = "_formsTableBody_1pd36_1", Le = "_customAccordianItem_1pd36_6", Fe = "_formContent_1pd36_18", Me = "_formDetailsContainer_1pd36_25", Re = "_observation_1pd36_30", Ce = "_groupContainer_1pd36_39",
|
|
6
|
+
const Oe = "_formsTableBody_1pd36_1", Le = "_customAccordianItem_1pd36_6", Fe = "_formContent_1pd36_18", Me = "_formDetailsContainer_1pd36_25", Re = "_observation_1pd36_30", Ce = "_groupContainer_1pd36_39", Te = "_rowContainer_1pd36_43", we = "_groupLabel_1pd36_48", De = "_rowLabel_1pd36_58", Ve = "_rowValue_1pd36_67", Ae = "_groupMembers_1pd36_75", Ie = "_memberRow_1pd36_81", Ee = "_memberLabel_1pd36_86", Be = "_memberValue_1pd36_94", Ge = "_abnormalValue_1pd36_102", Se = "_commentSection_1pd36_110", Pe = "_commentText_1pd36_116", qe = "_nestedGroup_1pd36_125", Ue = "_nestedGroupLabel_1pd36_132", ke = "_nestedGroupMembers_1pd36_141", o = {
|
|
7
7
|
formsTableBody: Oe,
|
|
8
8
|
customAccordianItem: Le,
|
|
9
9
|
formContent: Fe,
|
|
10
10
|
formDetailsContainer: Me,
|
|
11
11
|
observation: Re,
|
|
12
12
|
groupContainer: Ce,
|
|
13
|
-
rowContainer:
|
|
13
|
+
rowContainer: Te,
|
|
14
14
|
groupLabel: we,
|
|
15
|
-
rowLabel:
|
|
15
|
+
rowLabel: De,
|
|
16
16
|
rowValue: Ve,
|
|
17
|
-
groupMembers:
|
|
18
|
-
memberRow:
|
|
17
|
+
groupMembers: Ae,
|
|
18
|
+
memberRow: Ie,
|
|
19
19
|
memberLabel: Ee,
|
|
20
20
|
memberValue: Be,
|
|
21
21
|
abnormalValue: Ge,
|
|
22
22
|
commentSection: Se,
|
|
23
|
-
commentText:
|
|
23
|
+
commentText: Pe,
|
|
24
24
|
nestedGroup: qe,
|
|
25
25
|
nestedGroupLabel: Ue,
|
|
26
26
|
nestedGroupMembers: ke
|
|
@@ -34,10 +34,10 @@ const Oe = "_formsTableBody_1pd36_1", Le = "_customAccordianItem_1pd36_6", Fe =
|
|
|
34
34
|
id: `${e}-img`
|
|
35
35
|
}
|
|
36
36
|
) : r === "Video" ? /* @__PURE__ */ n(ae, { id: `${e}-video`, videoSrc: e }) : r === "PDF" ? /* @__PURE__ */ n(oe, { id: `${e}-pdf`, src: e }) : e;
|
|
37
|
-
},
|
|
37
|
+
}, j = (e) => {
|
|
38
38
|
const r = e.observationValue?.unit, a = e.observationValue?.referenceRange?.low?.value, d = e.observationValue?.referenceRange?.high?.value, s = a != null, c = d != null, i = s && c ? ` (${a} - ${d})` : s ? ` (>${a})` : c ? ` (<${d})` : "", t = e.observationValue?.isAbnormal === !0;
|
|
39
39
|
return { units: r, rangeString: i, isAbnormal: t };
|
|
40
|
-
},
|
|
40
|
+
}, Q = ({
|
|
41
41
|
member: e,
|
|
42
42
|
depth: r = 0,
|
|
43
43
|
memberIndex: a = 0,
|
|
@@ -67,7 +67,7 @@ const Oe = "_formsTableBody_1pd36_1", Le = "_customAccordianItem_1pd36_6", Fe =
|
|
|
67
67
|
className: o.nestedGroupMembers,
|
|
68
68
|
"data-testid": `${t}obs-nested-group-members-${i}-${a}`,
|
|
69
69
|
children: e.members?.map((v, N) => /* @__PURE__ */ n(
|
|
70
|
-
|
|
70
|
+
Q,
|
|
71
71
|
{
|
|
72
72
|
member: v,
|
|
73
73
|
depth: r + 1,
|
|
@@ -81,7 +81,7 @@ const Oe = "_formsTableBody_1pd36_1", Le = "_customAccordianItem_1pd36_6", Fe =
|
|
|
81
81
|
]
|
|
82
82
|
}
|
|
83
83
|
);
|
|
84
|
-
const { units: p, rangeString: y, isAbnormal: f } =
|
|
84
|
+
const { units: p, rangeString: y, isAbnormal: f } = j(e), _ = e.observationValue?.value?.toString(), h = _ ? K(_) : null;
|
|
85
85
|
return /* @__PURE__ */ b(H, { children: [
|
|
86
86
|
/* @__PURE__ */ b(
|
|
87
87
|
"div",
|
|
@@ -134,13 +134,13 @@ const Oe = "_formsTableBody_1pd36_1", Le = "_customAccordianItem_1pd36_6", Fe =
|
|
|
134
134
|
}
|
|
135
135
|
)
|
|
136
136
|
] });
|
|
137
|
-
},
|
|
137
|
+
}, xe = ({
|
|
138
138
|
observation: e,
|
|
139
139
|
index: r,
|
|
140
140
|
formName: a = "",
|
|
141
141
|
comment: d
|
|
142
142
|
}) => {
|
|
143
|
-
const s = e.members && e.members.length > 0, { units: c, rangeString: i, isAbnormal: t } =
|
|
143
|
+
const s = e.members && e.members.length > 0, { units: c, rangeString: i, isAbnormal: t } = j(e), p = a ? `${a}-` : "", y = e.observationValue?.value?.toString(), f = y ? K(y) : null;
|
|
144
144
|
return /* @__PURE__ */ b(
|
|
145
145
|
"div",
|
|
146
146
|
{
|
|
@@ -173,7 +173,7 @@ const Oe = "_formsTableBody_1pd36_1", Le = "_customAccordianItem_1pd36_6", Fe =
|
|
|
173
173
|
className: o.groupMembers,
|
|
174
174
|
"data-testid": `${p}observation-group-members-${e.display}-${r}`,
|
|
175
175
|
children: e.members?.map((_, h) => /* @__PURE__ */ n(
|
|
176
|
-
|
|
176
|
+
Q,
|
|
177
177
|
{
|
|
178
178
|
member: _,
|
|
179
179
|
depth: 0,
|
|
@@ -220,13 +220,13 @@ const Oe = "_formsTableBody_1pd36_1", Le = "_customAccordianItem_1pd36_6", Fe =
|
|
|
220
220
|
)?.valueString : void 0, Ke = (e) => {
|
|
221
221
|
if (e)
|
|
222
222
|
return e.note?.[0]?.text;
|
|
223
|
-
},
|
|
224
|
-
const a =
|
|
223
|
+
}, je = (e, r) => e.entry?.find((a) => a.resource?.id === r)?.resource, w = (e, r) => {
|
|
224
|
+
const a = je(e, r);
|
|
225
225
|
return a ? {
|
|
226
226
|
formFieldPath: He(a),
|
|
227
227
|
comment: Ke(a)
|
|
228
228
|
} : {};
|
|
229
|
-
},
|
|
229
|
+
}, Qe = (e, r) => {
|
|
230
230
|
if (!e?.entry || !r)
|
|
231
231
|
return [];
|
|
232
232
|
const a = se(e);
|
|
@@ -253,7 +253,7 @@ const Oe = "_formsTableBody_1pd36_1", Le = "_customAccordianItem_1pd36_6", Fe =
|
|
|
253
253
|
encounterUuids: r,
|
|
254
254
|
config: a
|
|
255
255
|
}) => {
|
|
256
|
-
const { t: d } = Ne(), s = de(), [c, i] =
|
|
256
|
+
const { t: d } = Ne(), s = de(), [c, i] = x(!1), [t, p] = x(null), y = a?.numberOfVisits, f = ie(
|
|
257
257
|
e,
|
|
258
258
|
r
|
|
259
259
|
), _ = ve(), {
|
|
@@ -266,24 +266,24 @@ const Oe = "_formsTableBody_1pd36_1", Le = "_customAccordianItem_1pd36_6", Fe =
|
|
|
266
266
|
queryKey: ["forms", s, e],
|
|
267
267
|
queryFn: () => le(s, void 0, y),
|
|
268
268
|
enabled: !!s && !f
|
|
269
|
-
}),
|
|
269
|
+
}), D = g(() => !r || r.length === 0 ? h : h.filter(
|
|
270
270
|
(l) => r.includes(l.encounterUuid)
|
|
271
271
|
), [h, r]), { data: V = [] } = L({
|
|
272
272
|
queryKey: ["observationForms"],
|
|
273
273
|
queryFn: () => ce()
|
|
274
|
-
}),
|
|
274
|
+
}), A = F(
|
|
275
275
|
(l) => V.find((m) => m.name === l)?.uuid,
|
|
276
276
|
[V]
|
|
277
277
|
), R = g(() => {
|
|
278
278
|
if (t)
|
|
279
|
-
return
|
|
280
|
-
}, [t,
|
|
279
|
+
return A(t.formName);
|
|
280
|
+
}, [t, A]), { isLoading: W, error: I } = L({
|
|
281
281
|
queryKey: ["formMetadata", R],
|
|
282
282
|
queryFn: () => me(R),
|
|
283
283
|
enabled: !!R && c
|
|
284
284
|
}), {
|
|
285
285
|
data: C,
|
|
286
|
-
isLoading:
|
|
286
|
+
isLoading: J,
|
|
287
287
|
error: E
|
|
288
288
|
} = L({
|
|
289
289
|
queryKey: ["formsEncounterFHIR", t?.encounterUuid],
|
|
@@ -296,7 +296,7 @@ const Oe = "_formsTableBody_1pd36_1", Le = "_customAccordianItem_1pd36_6", Fe =
|
|
|
296
296
|
},
|
|
297
297
|
[s]
|
|
298
298
|
);
|
|
299
|
-
const B = g(() => !C || !t?.formName ? [] :
|
|
299
|
+
const B = g(() => !C || !t?.formName ? [] : Qe(
|
|
300
300
|
C,
|
|
301
301
|
t.formName
|
|
302
302
|
), [C, t?.formName]), G = g(
|
|
@@ -312,16 +312,16 @@ const Oe = "_formsTableBody_1pd36_1", Le = "_customAccordianItem_1pd36_6", Fe =
|
|
|
312
312
|
],
|
|
313
313
|
[]
|
|
314
314
|
), S = g(() => {
|
|
315
|
-
const l =
|
|
315
|
+
const l = D.reduce(
|
|
316
316
|
(m, u) => {
|
|
317
317
|
const O = u.formName;
|
|
318
318
|
m[O] ??= [];
|
|
319
|
-
const
|
|
319
|
+
const T = u.providers.map((ee) => ee.providerName).filter(Boolean).join(", ");
|
|
320
320
|
return m[O].push({
|
|
321
321
|
id: u.encounterUuid,
|
|
322
322
|
formName: u.formName,
|
|
323
323
|
recordedOn: be(u.encounterDateTime, d, ge).formattedResult,
|
|
324
|
-
recordedBy:
|
|
324
|
+
recordedBy: T ?? "--",
|
|
325
325
|
encounterDateTime: u.encounterDateTime,
|
|
326
326
|
encounterUuid: u.encounterUuid
|
|
327
327
|
}), m;
|
|
@@ -332,11 +332,11 @@ const Oe = "_formsTableBody_1pd36_1", Le = "_customAccordianItem_1pd36_6", Fe =
|
|
|
332
332
|
([m, u]) => ({
|
|
333
333
|
formName: m,
|
|
334
334
|
records: u.sort(
|
|
335
|
-
(O,
|
|
335
|
+
(O, T) => T.encounterDateTime - O.encounterDateTime
|
|
336
336
|
)
|
|
337
337
|
})
|
|
338
338
|
).sort((m, u) => m.formName.localeCompare(u.formName));
|
|
339
|
-
}, [
|
|
339
|
+
}, [D, d]), P = F((l) => {
|
|
340
340
|
p(l), i(!0);
|
|
341
341
|
}, []), Z = F(() => {
|
|
342
342
|
i(!1), p(null);
|
|
@@ -344,14 +344,14 @@ const Oe = "_formsTableBody_1pd36_1", Le = "_customAccordianItem_1pd36_6", Fe =
|
|
|
344
344
|
(l, $) => {
|
|
345
345
|
switch ($) {
|
|
346
346
|
case "recordedOn":
|
|
347
|
-
return /* @__PURE__ */ n(fe, { onClick: () =>
|
|
347
|
+
return /* @__PURE__ */ n(fe, { onClick: () => P(l), children: l.recordedOn });
|
|
348
348
|
case "recordedBy":
|
|
349
349
|
return l.recordedBy;
|
|
350
350
|
default:
|
|
351
351
|
return null;
|
|
352
352
|
}
|
|
353
353
|
},
|
|
354
|
-
[
|
|
354
|
+
[P]
|
|
355
355
|
);
|
|
356
356
|
return /* @__PURE__ */ b(H, { children: [
|
|
357
357
|
/* @__PURE__ */ n("div", { "data-testid": "forms-table", children: v || N || S.length === 0 || f ? /* @__PURE__ */ n(
|
|
@@ -407,8 +407,8 @@ const Oe = "_formsTableBody_1pd36_1", Le = "_customAccordianItem_1pd36_6", Fe =
|
|
|
407
407
|
passiveModal: !0,
|
|
408
408
|
size: "md",
|
|
409
409
|
testId: "form-details-modal",
|
|
410
|
-
children: /* @__PURE__ */ n("div", { className: o.formContent, children:
|
|
411
|
-
|
|
410
|
+
children: /* @__PURE__ */ n("div", { className: o.formContent, children: W || J ? /* @__PURE__ */ n(ye, { width: "100%", lineCount: 3 }) : I ? /* @__PURE__ */ n("div", { children: k(I).message ?? d("ERROR_FETCHING_FORM_METADATA") }) : E ? /* @__PURE__ */ n("div", { children: k(E).message ?? d("ERROR_FETCHING_FORM_DATA") }) : B.length > 0 ? /* @__PURE__ */ n("div", { className: o.formDetailsContainer, children: B.map(({ obs: l, comment: $ }, m) => /* @__PURE__ */ n(
|
|
411
|
+
xe,
|
|
412
412
|
{
|
|
413
413
|
observation: l,
|
|
414
414
|
index: m,
|
|
@@ -1,32 +1,32 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import {
|
|
1
|
+
import { jsx as d, jsxs as S } from "react/jsx-runtime";
|
|
2
|
+
import { m as K, n as C, t as Q, Q as w, o as M, e as V, f as k, r as G, u as P, a as H, q as j, R as z, K as Y, g as J, p as W, s as X, v as Z, _ as x } from "./index-DMWvpiRC.js";
|
|
3
3
|
import { useQueries as ee, useQuery as te } from "@tanstack/react-query";
|
|
4
4
|
import { useRef as se, useEffect as $, useMemo as E } from "react";
|
|
5
5
|
import { useTranslation as D } from "react-i18next";
|
|
6
|
-
const U = (t, c, i,
|
|
6
|
+
const U = (t, c, i, l, a) => {
|
|
7
7
|
const s = Q(t, c), o = s.value, r = w(o);
|
|
8
8
|
let n = o;
|
|
9
|
-
r === "Image" && (n = /* @__PURE__ */
|
|
9
|
+
r === "Image" && (n = /* @__PURE__ */ d(V, { imageSrc: o, alt: o, id: `${o}-img` })), r === "Video" && (n = /* @__PURE__ */ d(k, { id: `${o}-video`, videoSrc: o })), r === "PDF" && (n = /* @__PURE__ */ d(G, { id: `${o}-pdf`, src: o }));
|
|
10
10
|
const u = a("OBSERVATIONS_RECORDED_BY", {
|
|
11
11
|
provider: s.provider
|
|
12
|
-
}), b = t.display, p = t.observationValue?.isAbnormal ? "abnormal-obs" : "obs",
|
|
13
|
-
return /* @__PURE__ */
|
|
12
|
+
}), b = t.display, p = t.observationValue?.isAbnormal ? "abnormal-obs" : "obs", f = l ? `${l}-${p}-${b}-${i}-${c}` : `${p}-${b}-${i}-${c}`;
|
|
13
|
+
return /* @__PURE__ */ d(
|
|
14
14
|
M,
|
|
15
15
|
{
|
|
16
16
|
header: s.header,
|
|
17
17
|
value: n,
|
|
18
18
|
info: u,
|
|
19
|
-
id:
|
|
20
|
-
testId:
|
|
21
|
-
ariaLabel:
|
|
19
|
+
id: f,
|
|
20
|
+
testId: f,
|
|
21
|
+
ariaLabel: f
|
|
22
22
|
},
|
|
23
23
|
`obs-${t.id}`
|
|
24
24
|
);
|
|
25
|
-
}, oe = (t, c, i,
|
|
25
|
+
}, oe = (t, c, i, l, a, s) => /* @__PURE__ */ d(
|
|
26
26
|
C,
|
|
27
27
|
{
|
|
28
28
|
title: t.display,
|
|
29
|
-
id: `grouped-obs-${t.display}-${
|
|
29
|
+
id: `grouped-obs-${t.display}-${l}`,
|
|
30
30
|
open: i,
|
|
31
31
|
children: t.members?.map(
|
|
32
32
|
(o, r) => U(o, r, a, s, c)
|
|
@@ -37,8 +37,8 @@ const U = (t, c, i, d, a) => {
|
|
|
37
37
|
groupedData: t,
|
|
38
38
|
title: c = ""
|
|
39
39
|
}) => {
|
|
40
|
-
const { t: i } = D(),
|
|
41
|
-
const r =
|
|
40
|
+
const { t: i } = D(), l = (a, s, o) => {
|
|
41
|
+
const r = K(a.encounterDetails, i);
|
|
42
42
|
return /* @__PURE__ */ S(
|
|
43
43
|
C,
|
|
44
44
|
{
|
|
@@ -64,14 +64,14 @@ const U = (t, c, i, d, a) => {
|
|
|
64
64
|
`encounter-${a.encounterId}`
|
|
65
65
|
);
|
|
66
66
|
};
|
|
67
|
-
return /* @__PURE__ */
|
|
67
|
+
return /* @__PURE__ */ d(
|
|
68
68
|
"div",
|
|
69
69
|
{
|
|
70
70
|
id: "obs-by-encounter",
|
|
71
71
|
"data-testid": "obs-by-encounter-test-id",
|
|
72
72
|
"aria-label": "obs-by-encounter-aria-label",
|
|
73
73
|
children: t.map(
|
|
74
|
-
(a, s) =>
|
|
74
|
+
(a, s) => l(a, s === 0, s)
|
|
75
75
|
)
|
|
76
76
|
}
|
|
77
77
|
);
|
|
@@ -79,10 +79,10 @@ const U = (t, c, i, d, a) => {
|
|
|
79
79
|
observations: ae,
|
|
80
80
|
title: ne
|
|
81
81
|
}, ie = (t) => ["conceptUuid", t], ce = (t, c) => ["observations", t, ...c], me = ({ config: t }) => {
|
|
82
|
-
const c = t, { conceptNames: i = [], conceptUuid:
|
|
82
|
+
const c = t, { conceptNames: i = [], conceptUuid: l = [] } = c, a = se(/* @__PURE__ */ new Set()), s = P(), { addNotification: o } = H(), { t: r } = D(), n = ee({
|
|
83
83
|
queries: i.map((e) => ({
|
|
84
84
|
queryKey: ie(e),
|
|
85
|
-
queryFn: () =>
|
|
85
|
+
queryFn: () => j(e),
|
|
86
86
|
enabled: !!e
|
|
87
87
|
}))
|
|
88
88
|
});
|
|
@@ -98,17 +98,17 @@ const U = (t, c, i, d, a) => {
|
|
|
98
98
|
} else e.isError || a.current.delete(m);
|
|
99
99
|
});
|
|
100
100
|
}, [n, i]);
|
|
101
|
-
const u = E(() => n.map((e) => e.data?.uuid).filter((e) => !!e), [n]), b = E(() => [.../* @__PURE__ */ new Set([...u, ...
|
|
101
|
+
const u = E(() => n.map((e) => e.data?.uuid).filter((e) => !!e), [n]), b = E(() => [.../* @__PURE__ */ new Set([...u, ...l])], [u, l]), v = E(() => i.length === 0 ? !0 : n.every((e) => !e.isLoading), [n, i.length]), {
|
|
102
102
|
data: p,
|
|
103
|
-
isLoading:
|
|
103
|
+
isLoading: f,
|
|
104
104
|
isError: O,
|
|
105
105
|
refetch: R
|
|
106
106
|
} = te({
|
|
107
107
|
queryKey: ce(s, b),
|
|
108
|
-
queryFn: () =>
|
|
108
|
+
queryFn: () => z(s, b),
|
|
109
109
|
enabled: !!s && b.length > 0 && v
|
|
110
110
|
});
|
|
111
|
-
|
|
111
|
+
Y(
|
|
112
112
|
(e) => {
|
|
113
113
|
e.patientUUID === s && e.updatedConcepts.size > 0 && [...e.updatedConcepts.keys()].some(
|
|
114
114
|
(g) => b.includes(g)
|
|
@@ -130,34 +130,34 @@ const U = (t, c, i, d, a) => {
|
|
|
130
130
|
{ key: "name", header: "name" },
|
|
131
131
|
{ key: "value", header: "value" },
|
|
132
132
|
{ key: "form", header: "form" }
|
|
133
|
-
],
|
|
133
|
+
], _ = f || !v, I = O && v, A = (!p || p.entry?.length === 0 || b.length === 0) && v, F = I ? r("ERROR_FETCHING_OBSERVATIONS") : null, L = A ? r("NO_OBSERVATIONS_FOUND") : void 0, q = T.length > 0 && !_ && !I, h = c.titleTranslationKey, y = h ? r(h) : "";
|
|
134
134
|
return /* @__PURE__ */ S(
|
|
135
135
|
"div",
|
|
136
136
|
{
|
|
137
137
|
id: "observations",
|
|
138
|
-
"data-testid":
|
|
138
|
+
"data-testid": h ? `observations-${y}` : "observations",
|
|
139
139
|
"aria-label": "observations-aria-label",
|
|
140
140
|
className: N.observations,
|
|
141
141
|
children: [
|
|
142
|
-
/* @__PURE__ */
|
|
142
|
+
/* @__PURE__ */ d(
|
|
143
143
|
Z,
|
|
144
144
|
{
|
|
145
145
|
id: "observations-title",
|
|
146
|
-
testId:
|
|
147
|
-
title:
|
|
146
|
+
testId: h ? `observations-title-${y}` : "observations-title",
|
|
147
|
+
title: y,
|
|
148
148
|
className: N.title,
|
|
149
|
-
children: /* @__PURE__ */
|
|
149
|
+
children: /* @__PURE__ */ d("p", { children: y })
|
|
150
150
|
}
|
|
151
151
|
),
|
|
152
|
-
|
|
152
|
+
q ? /* @__PURE__ */ d(re, { groupedData: T, title: y }) : /* @__PURE__ */ d(
|
|
153
153
|
x,
|
|
154
154
|
{
|
|
155
155
|
headers: B,
|
|
156
156
|
rows: [],
|
|
157
157
|
ariaLabel: r("OBSERVATIONS"),
|
|
158
|
-
loading:
|
|
158
|
+
loading: _,
|
|
159
159
|
errorStateMessage: F,
|
|
160
|
-
emptyStateMessage:
|
|
160
|
+
emptyStateMessage: L,
|
|
161
161
|
dataTestId: "observations-table"
|
|
162
162
|
}
|
|
163
163
|
)
|
|
@@ -2,8 +2,9 @@ import { default as React } from 'react';
|
|
|
2
2
|
import { WidgetProps } from '../registry/model';
|
|
3
3
|
export declare const genericServiceRequestQueryKeys: (categoryUuid: string, patientUUID: string, encounterUuids?: string[]) => readonly ["genericServiceRequest", string, string, string[] | undefined];
|
|
4
4
|
/**
|
|
5
|
-
* Component to display patient service requests
|
|
6
|
-
*
|
|
5
|
+
* Component to display patient service requests in a flat sorted table.
|
|
6
|
+
* Items are sorted by orderedDate descending (newest first), with priority
|
|
7
|
+
* (stat before routine) as a tiebreaker for items with the same orderedDate.
|
|
7
8
|
*/
|
|
8
9
|
declare const GenericServiceRequestTable: React.FC<WidgetProps>;
|
|
9
10
|
export default GenericServiceRequestTable;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GenericServiceRequestTable.d.ts","sourceRoot":"","sources":["../../src/genericServiceRequest/GenericServiceRequestTable.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"GenericServiceRequestTable.d.ts","sourceRoot":"","sources":["../../src/genericServiceRequest/GenericServiceRequestTable.tsx"],"names":[],"mappings":"AAUA,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;;;;GAIG;AACH,QAAA,MAAM,0BAA0B,EAAE,KAAK,CAAC,EAAE,CAAC,WAAW,CA+KrD,CAAC;AAEF,eAAe,0BAA0B,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../src/genericServiceRequest/utils.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,MAAM,EAAe,cAAc,EAAE,MAAM,SAAS,CAAC;AAEnE,OAAO,EAAE,uBAAuB,EAAE,MAAM,UAAU,CAAC;AAEnD;;;;GAIG;AACH,eAAO,MAAM,cAAc,UAAsB,CAAC;AAElD;;;;;GAKG;AACH,eAAO,MAAM,yBAAyB,GAAI,UAAU,MAAM,KAAG,MAE5D,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,6BAA6B,GACxC,UAAU,uBAAuB,EAAE,KAClC,uBAAuB,
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../src/genericServiceRequest/utils.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,MAAM,EAAe,cAAc,EAAE,MAAM,SAAS,CAAC;AAEnE,OAAO,EAAE,uBAAuB,EAAE,MAAM,UAAU,CAAC;AAEnD;;;;GAIG;AACH,eAAO,MAAM,cAAc,UAAsB,CAAC;AAElD;;;;;GAKG;AACH,eAAO,MAAM,yBAAyB,GAAI,UAAU,MAAM,KAAG,MAE5D,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,6BAA6B,GACxC,UAAU,uBAAuB,EAAE,KAClC,uBAAuB,EAUzB,CAAC;AAEF;;;;;;GAMG;AACH,eAAO,MAAM,sCAAsC,GACjD,UAAU,uBAAuB,EAAE,KAClC,uBAAuB,EAMzB,CAAC;AAEF;;;;GAIG;AACH,wBAAgB,iBAAiB,CAC/B,MAAM,EAAE,MAAM,CAAC,cAAc,CAAC,GAC7B,uBAAuB,EAAE,CA6B3B"}
|