@bahmni/widgets 0.0.1-dev.266 → 0.0.1-dev.268
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-25Tv9RFh.js → DocumentsTable-CWc_01xl.js} +15 -15
- package/dist/{FormsTable-DyNaylFb.js → FormsTable-BmPCw62a.js} +54 -54
- package/dist/{Observations-Cv2dOey8.js → Observations-0noP4PJi.js} +16 -16
- package/dist/genericServiceRequest/GenericServiceRequestTable.d.ts.map +1 -1
- package/dist/genericServiceRequest/utils.d.ts +1 -0
- package/dist/genericServiceRequest/utils.d.ts.map +1 -1
- package/dist/{index-c9jI-RE8.js → index-BaQzqsoc.js} +12673 -12645
- package/dist/index.css +1 -1
- package/dist/index.js +22 -22
- package/dist/radiologyInvestigation/RadiologyInvestigationTable.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as s, jsxs as _, Fragment as Q } from "react/jsx-runtime";
|
|
2
|
-
import { u as W, a as X,
|
|
2
|
+
import { u as W, a as X, p as J, f as Z, T as x, m as ee, y as te } from "./index-BaQzqsoc.js";
|
|
3
3
|
import { useQuery as ne } from "@tanstack/react-query";
|
|
4
|
-
import { useState as l, useCallback as
|
|
4
|
+
import { useState as l, useCallback as p, useEffect as N, useMemo as f } from "react";
|
|
5
5
|
import { useTranslation as ae } from "react-i18next";
|
|
6
6
|
const oe = "_documentsTableBody_1voj8_1", re = "_viewAttachmentsLink_1voj8_11", se = "_documentViewerContainer_1voj8_15", ce = "_attachmentItem_1voj8_23", de = "_attachmentCounter_1voj8_27", ie = "_attachmentError_1voj8_36", le = "_documentIframe_1voj8_44", me = "_documentImage_1voj8_50", c = {
|
|
7
7
|
documentsTableBody: oe,
|
|
@@ -34,18 +34,18 @@ const _e = [
|
|
|
34
34
|
"uploadedOn",
|
|
35
35
|
"uploadedBy",
|
|
36
36
|
"action"
|
|
37
|
-
],
|
|
37
|
+
], pe = /\.(jpg|jpeg|png|gif|webp|bmp|svg)$/i, R = (n) => n.attachments.length > 0 ? n.attachments : n.documentUrl ? [{ url: n.documentUrl, contentType: n.contentType }] : [], Ne = ({ config: n, encounterUuids: E }) => {
|
|
38
38
|
const [d, M] = l(!1), [r, U] = l(
|
|
39
39
|
null
|
|
40
40
|
), [P, A] = l(
|
|
41
41
|
/* @__PURE__ */ new Set()
|
|
42
|
-
), T = W(), { t: o } = ae(), { addNotification: w } = X(), F = Number(n?.pageSize) || 5, [D, O] = l(1), [m, $] = l(F), [k, C] = l(void 0), b =
|
|
42
|
+
), T = W(), { t: o } = ae(), { addNotification: w } = X(), F = Number(n?.pageSize) || 5, [D, O] = l(1), [m, $] = l(F), [k, C] = l(void 0), b = p((e) => {
|
|
43
43
|
U(e), M(!0);
|
|
44
|
-
}, []),
|
|
44
|
+
}, []), V = p(() => {
|
|
45
45
|
M(!1), U(null), A(/* @__PURE__ */ new Set());
|
|
46
|
-
}, []), B =
|
|
46
|
+
}, []), B = p((e) => {
|
|
47
47
|
A((t) => new Set(t).add(e));
|
|
48
|
-
}, []), { data: u, isLoading:
|
|
48
|
+
}, []), { data: u, isLoading: z, isError: S, error: y } = ne({
|
|
49
49
|
queryKey: [
|
|
50
50
|
"documents",
|
|
51
51
|
T,
|
|
@@ -90,24 +90,24 @@ const _e = [
|
|
|
90
90
|
e.signal.aborted || A(a);
|
|
91
91
|
})(), () => e.abort();
|
|
92
92
|
}, [d, r]);
|
|
93
|
-
const H =
|
|
93
|
+
const H = p(
|
|
94
94
|
(e, t) => {
|
|
95
95
|
t !== m ? ($(t), O(1), C(void 0)) : O(e);
|
|
96
96
|
},
|
|
97
97
|
[m]
|
|
98
|
-
), g =
|
|
98
|
+
), g = f(
|
|
99
99
|
() => n?.fields ?? _e,
|
|
100
100
|
[n?.fields]
|
|
101
|
-
), q =
|
|
101
|
+
), q = f(() => [...u?.documents ?? []].sort((t, a) => !t.uploadedOn && !a.uploadedOn ? 0 : t.uploadedOn ? a.uploadedOn ? new Date(a.uploadedOn).getTime() - new Date(t.uploadedOn).getTime() : -1 : 1), [u]), G = f(() => he(g, o), [g, o]), Y = f(
|
|
102
102
|
() => g.map((e) => ({
|
|
103
103
|
key: e,
|
|
104
104
|
sortable: e !== "action"
|
|
105
105
|
})),
|
|
106
106
|
[g]
|
|
107
|
-
), h =
|
|
107
|
+
), h = f(
|
|
108
108
|
() => r ? R(r) : [],
|
|
109
109
|
[r]
|
|
110
|
-
), K =
|
|
110
|
+
), K = p(
|
|
111
111
|
(e, t) => {
|
|
112
112
|
switch (t) {
|
|
113
113
|
case "documentIdentifier":
|
|
@@ -145,7 +145,7 @@ const _e = [
|
|
|
145
145
|
headers: G,
|
|
146
146
|
ariaLabel: o("DOCUMENTS_TABLE_HEADING"),
|
|
147
147
|
rows: q,
|
|
148
|
-
loading:
|
|
148
|
+
loading: z,
|
|
149
149
|
errorStateMessage: S ? y?.message : null,
|
|
150
150
|
sortable: Y,
|
|
151
151
|
emptyStateMessage: o("DOCUMENTS_NO_RECORDS"),
|
|
@@ -164,13 +164,13 @@ const _e = [
|
|
|
164
164
|
id: "modalIdForActionAreaLayout",
|
|
165
165
|
portalId: "main-display-area",
|
|
166
166
|
open: d,
|
|
167
|
-
onRequestClose:
|
|
167
|
+
onRequestClose: V,
|
|
168
168
|
modalHeading: r.documentIdentifier,
|
|
169
169
|
passiveModal: !0,
|
|
170
170
|
size: "lg",
|
|
171
171
|
testId: "document-view-modal",
|
|
172
172
|
children: /* @__PURE__ */ s("div", { className: c.documentViewerContainer, children: h.map((e, t) => {
|
|
173
|
-
const a = j(e.url), I = e.contentType?.toLowerCase().includes("pdf"), i = (e.contentType?.toLowerCase().includes("image") ?? !1) ||
|
|
173
|
+
const a = j(e.url), I = e.contentType?.toLowerCase().includes("pdf"), i = (e.contentType?.toLowerCase().includes("image") ?? !1) || pe.test(e.url ?? ""), v = P.has(t);
|
|
174
174
|
return a === "#" || v ? /* @__PURE__ */ _(
|
|
175
175
|
"div",
|
|
176
176
|
{
|
|
@@ -1,55 +1,55 @@
|
|
|
1
1
|
import { jsx as n, jsxs as X, Fragment as Z } from "react/jsx-runtime";
|
|
2
|
-
import {
|
|
2
|
+
import { z as ee, u as re, D as te, K as oe, Y as ae, G as se, I as ne, c as de, M as C, T as ie, f as me, m as U, e as ce, t as le, y as ue, O as fe } from "./index-BaQzqsoc.js";
|
|
3
3
|
import { useQueryClient as ye, useQuery as f } from "@tanstack/react-query";
|
|
4
4
|
import { useState as x, useMemo as d, useCallback as y } from "react";
|
|
5
|
-
import { useTranslation as
|
|
6
|
-
const
|
|
7
|
-
formsTableBody:
|
|
5
|
+
import { useTranslation as be } from "react-i18next";
|
|
6
|
+
const pe = "_formsTableBody_ourq9_5", ge = "_customAccordianItem_ourq9_10", h = {
|
|
7
|
+
formsTableBody: pe,
|
|
8
8
|
customAccordianItem: ge
|
|
9
|
-
},
|
|
10
|
-
(
|
|
9
|
+
}, Ee = (m) => m ? m.extension?.find(
|
|
10
|
+
(b) => b.url === ee
|
|
11
11
|
)?.valueString : void 0, Ie = ({
|
|
12
12
|
episodeOfCareUuids: m,
|
|
13
13
|
encounterUuids: i,
|
|
14
|
-
config:
|
|
14
|
+
config: b
|
|
15
15
|
}) => {
|
|
16
|
-
const { t: s } =
|
|
16
|
+
const { t: s } = be(), c = re(), [l, D] = x(!1), [t, I] = x(null), { numberOfVisits: k, hideThumbnail: K = !1 } = b ?? {}, M = te(
|
|
17
17
|
m,
|
|
18
18
|
i
|
|
19
|
-
),
|
|
20
|
-
data:
|
|
21
|
-
isLoading:
|
|
22
|
-
isError:
|
|
19
|
+
), P = ye(), {
|
|
20
|
+
data: p = [],
|
|
21
|
+
isLoading: v,
|
|
22
|
+
isError: A,
|
|
23
23
|
error: H,
|
|
24
|
-
refetch:
|
|
24
|
+
refetch: j
|
|
25
25
|
} = f({
|
|
26
26
|
queryKey: ["forms", c, m],
|
|
27
27
|
queryFn: () => oe(c, void 0, k),
|
|
28
|
-
enabled: !!c && !
|
|
29
|
-
}),
|
|
28
|
+
enabled: !!c && !M
|
|
29
|
+
}), B = d(() => !i || i.length === 0 ? p : p.filter(
|
|
30
30
|
(e) => i.includes(e.encounterUuid)
|
|
31
|
-
), [
|
|
31
|
+
), [p, i]), { data: T = [] } = f({
|
|
32
32
|
queryKey: ["observationForms"],
|
|
33
33
|
queryFn: () => ae()
|
|
34
|
-
}),
|
|
35
|
-
(e) =>
|
|
36
|
-
[
|
|
34
|
+
}), R = y(
|
|
35
|
+
(e) => T.find((r) => r.name === e)?.uuid,
|
|
36
|
+
[T]
|
|
37
37
|
), g = d(() => {
|
|
38
38
|
if (t)
|
|
39
|
-
return
|
|
40
|
-
}, [t,
|
|
41
|
-
isLoading:
|
|
42
|
-
isError:
|
|
43
|
-
error:
|
|
39
|
+
return R(t.formName);
|
|
40
|
+
}, [t, R]), {
|
|
41
|
+
isLoading: z,
|
|
42
|
+
isError: G,
|
|
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:
|
|
50
|
-
isLoading:
|
|
51
|
-
isError:
|
|
52
|
-
error:
|
|
49
|
+
data: F,
|
|
50
|
+
isLoading: V,
|
|
51
|
+
isError: $,
|
|
52
|
+
error: N
|
|
53
53
|
} = f({
|
|
54
54
|
queryKey: ["formsEncounterFHIR", t?.encounterUuid],
|
|
55
55
|
queryFn: () => ne(t.encounterUuid),
|
|
@@ -57,19 +57,19 @@ const be = "_formsTableBody_ourq9_5", ge = "_customAccordianItem_ourq9_10", h =
|
|
|
57
57
|
});
|
|
58
58
|
de(
|
|
59
59
|
(e) => {
|
|
60
|
-
e.patientUUID === c && e.updatedConcepts.size > 0 && (
|
|
60
|
+
e.patientUUID === c && e.updatedConcepts.size > 0 && (j(), P.invalidateQueries({ queryKey: ["formsEncounterFHIR"] }));
|
|
61
61
|
},
|
|
62
62
|
[c]
|
|
63
63
|
);
|
|
64
|
-
const
|
|
65
|
-
const r =
|
|
64
|
+
const w = 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]), Q = d(() => {
|
|
68
|
+
if (E)
|
|
69
|
+
return C(E).message;
|
|
70
|
+
if (N)
|
|
71
|
+
return C(N).message;
|
|
72
|
+
}, [E, N]), L = d(
|
|
73
73
|
() => [
|
|
74
74
|
{ key: "recordedOn", header: s("RECORDED_ON") },
|
|
75
75
|
{ key: "recordedBy", header: s("RECORDED_BY") }
|
|
@@ -81,17 +81,17 @@ const be = "_formsTableBody_ourq9_5", ge = "_customAccordianItem_ourq9_10", h =
|
|
|
81
81
|
{ key: "recordedBy", sortable: !0 }
|
|
82
82
|
],
|
|
83
83
|
[]
|
|
84
|
-
),
|
|
85
|
-
const e =
|
|
84
|
+
), _ = d(() => {
|
|
85
|
+
const e = B.reduce(
|
|
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,11 +102,11 @@ const be = "_formsTableBody_ourq9_5", ge = "_customAccordianItem_ourq9_10", h =
|
|
|
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
|
-
}, [
|
|
109
|
+
}, [B, s]), q = y((e) => {
|
|
110
110
|
I(e), D(!0);
|
|
111
111
|
}, []), J = y(() => {
|
|
112
112
|
D(!1), I(null);
|
|
@@ -124,20 +124,20 @@ const be = "_formsTableBody_ourq9_5", ge = "_customAccordianItem_ourq9_10", h =
|
|
|
124
124
|
[q]
|
|
125
125
|
);
|
|
126
126
|
return /* @__PURE__ */ X(Z, { children: [
|
|
127
|
-
/* @__PURE__ */ n("div", { id: "forms-table", "data-testid": "forms-table", children:
|
|
127
|
+
/* @__PURE__ */ n("div", { id: "forms-table", "data-testid": "forms-table", children: v || A || _.length === 0 || M ? /* @__PURE__ */ n(
|
|
128
128
|
U,
|
|
129
129
|
{
|
|
130
|
-
headers:
|
|
130
|
+
headers: L,
|
|
131
131
|
ariaLabel: s("FORMS_HEADING"),
|
|
132
132
|
rows: [],
|
|
133
|
-
loading:
|
|
134
|
-
errorStateMessage:
|
|
133
|
+
loading: v,
|
|
134
|
+
errorStateMessage: A ? H?.message : void 0,
|
|
135
135
|
emptyStateMessage: s("FORMS_UNAVAILABLE"),
|
|
136
136
|
renderCell: S,
|
|
137
137
|
className: h.formsTableBody,
|
|
138
138
|
dataTestId: "forms-table"
|
|
139
139
|
}
|
|
140
|
-
) : /* @__PURE__ */ n(ce, { align: "start", children:
|
|
140
|
+
) : /* @__PURE__ */ n(ce, { align: "start", children: _.map((e, a) => {
|
|
141
141
|
const { formName: r, records: o } = e;
|
|
142
142
|
return /* @__PURE__ */ n(
|
|
143
143
|
le,
|
|
@@ -149,7 +149,7 @@ const be = "_formsTableBody_ourq9_5", ge = "_customAccordianItem_ourq9_10", h =
|
|
|
149
149
|
children: /* @__PURE__ */ n(
|
|
150
150
|
U,
|
|
151
151
|
{
|
|
152
|
-
headers:
|
|
152
|
+
headers: L,
|
|
153
153
|
ariaLabel: s("FORMS_HEADING"),
|
|
154
154
|
rows: o,
|
|
155
155
|
loading: !1,
|
|
@@ -180,13 +180,13 @@ const be = "_formsTableBody_ourq9_5", ge = "_customAccordianItem_ourq9_10", h =
|
|
|
180
180
|
children: /* @__PURE__ */ n(
|
|
181
181
|
fe,
|
|
182
182
|
{
|
|
183
|
-
observations:
|
|
184
|
-
isLoading:
|
|
185
|
-
isError:
|
|
186
|
-
errorMessage:
|
|
183
|
+
observations: w,
|
|
184
|
+
isLoading: z || V,
|
|
185
|
+
isError: G || $,
|
|
186
|
+
errorMessage: Q,
|
|
187
187
|
emptyStateMessage: s("NO_FORM_DATA_AVAILABLE"),
|
|
188
188
|
testIdPrefix: t.formName,
|
|
189
|
-
hideThumbnail:
|
|
189
|
+
hideThumbnail: K
|
|
190
190
|
}
|
|
191
191
|
)
|
|
192
192
|
}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { jsx as l, jsxs as S } from "react/jsx-runtime";
|
|
2
|
-
import {
|
|
2
|
+
import { b as V, C as D, d as k, g as K, i as Q, x as q, h as G, j as P, u as j, a as H, k as x, l as z, c as Y, n as J, o as W, s as X, $ as Z, m as ee } from "./index-BaQzqsoc.js";
|
|
3
3
|
import { useQueries as te, useQuery as se } from "@tanstack/react-query";
|
|
4
|
-
import { useRef as oe, useEffect as C, useMemo as
|
|
4
|
+
import { useRef as oe, useEffect as C, useMemo as h } from "react";
|
|
5
5
|
import { useTranslation as U } from "react-i18next";
|
|
6
|
-
const
|
|
7
|
-
const s =
|
|
6
|
+
const B = (t, i, c, d, u, r) => {
|
|
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,
|
|
@@ -44,7 +44,7 @@ const A = (t, i, c, d, u, r) => {
|
|
|
44
44
|
id: `grouped-obs-${t.display}-${d}`,
|
|
45
45
|
open: c,
|
|
46
46
|
children: t.members?.map(
|
|
47
|
-
(o, a) =>
|
|
47
|
+
(o, a) => B(
|
|
48
48
|
o,
|
|
49
49
|
a,
|
|
50
50
|
u,
|
|
@@ -70,7 +70,7 @@ const A = (t, i, c, d, u, r) => {
|
|
|
70
70
|
open: s,
|
|
71
71
|
children: [
|
|
72
72
|
r.observations.map(
|
|
73
|
-
(n, b) =>
|
|
73
|
+
(n, b) => B(
|
|
74
74
|
n,
|
|
75
75
|
b,
|
|
76
76
|
o,
|
|
@@ -133,7 +133,7 @@ const A = (t, i, c, d, u, r) => {
|
|
|
133
133
|
} else e.isError || r.current.delete(v);
|
|
134
134
|
});
|
|
135
135
|
}, [n, c]);
|
|
136
|
-
const b =
|
|
136
|
+
const b = h(() => n.map((e) => e.data?.uuid).filter((e) => !!e), [n]), p = h(() => [.../* @__PURE__ */ new Set([...b, ...d])], [b, d]), f = h(() => c.length === 0 ? !0 : n.every((e) => !e.isLoading), [n, c.length]), {
|
|
137
137
|
data: m,
|
|
138
138
|
isLoading: y,
|
|
139
139
|
isError: g,
|
|
@@ -157,20 +157,20 @@ const A = (t, i, c, d, u, r) => {
|
|
|
157
157
|
type: "error"
|
|
158
158
|
});
|
|
159
159
|
}, [g]);
|
|
160
|
-
const
|
|
160
|
+
const $ = h(() => {
|
|
161
161
|
if (!m) return [];
|
|
162
162
|
const e = J(m), v = W(e);
|
|
163
163
|
return X(v);
|
|
164
|
-
}, [m]),
|
|
164
|
+
}, [m]), A = [
|
|
165
165
|
{ key: "name", header: "name" },
|
|
166
166
|
{ key: "value", header: "value" },
|
|
167
167
|
{ key: "form", header: "form" }
|
|
168
|
-
],
|
|
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, O = i.titleTranslationKey, E = O ? a(O) : "";
|
|
169
169
|
return /* @__PURE__ */ S(
|
|
170
170
|
"div",
|
|
171
171
|
{
|
|
172
172
|
id: "observations",
|
|
173
|
-
"data-testid":
|
|
173
|
+
"data-testid": O ? `observations-${E}` : "observations",
|
|
174
174
|
"aria-label": "observations-aria-label",
|
|
175
175
|
className: N.observations,
|
|
176
176
|
children: [
|
|
@@ -178,7 +178,7 @@ const A = (t, i, c, d, u, r) => {
|
|
|
178
178
|
Z,
|
|
179
179
|
{
|
|
180
180
|
id: "observations-title",
|
|
181
|
-
testId:
|
|
181
|
+
testId: O ? `observations-title-${E}` : "observations-title",
|
|
182
182
|
title: E,
|
|
183
183
|
className: N.title,
|
|
184
184
|
children: /* @__PURE__ */ l("p", { children: E })
|
|
@@ -187,17 +187,17 @@ const A = (t, i, c, d, u, r) => {
|
|
|
187
187
|
M ? /* @__PURE__ */ l(
|
|
188
188
|
ae,
|
|
189
189
|
{
|
|
190
|
-
groupedData:
|
|
190
|
+
groupedData: $,
|
|
191
191
|
title: E,
|
|
192
192
|
hideThumbnail: u
|
|
193
193
|
}
|
|
194
194
|
) : /* @__PURE__ */ l(
|
|
195
195
|
ee,
|
|
196
196
|
{
|
|
197
|
-
headers:
|
|
197
|
+
headers: A,
|
|
198
198
|
rows: [],
|
|
199
199
|
ariaLabel: a("OBSERVATIONS"),
|
|
200
|
-
loading:
|
|
200
|
+
loading: _,
|
|
201
201
|
errorStateMessage: L,
|
|
202
202
|
emptyStateMessage: w,
|
|
203
203
|
dataTestId: "observations-table"
|
|
@@ -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":"AAmBA,OAAO,KAA0C,MAAM,OAAO,CAAC;AAI/D,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAchD,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,CAkOrD,CAAC;AAEF,eAAe,0BAA0B,CAAC"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { Bundle, ServiceRequest } from 'fhir/r4';
|
|
2
2
|
import { ServiceRequestViewModel } from './models';
|
|
3
|
+
export declare const getStatusDotClassName: (status: string, styles: Record<string, string>) => string;
|
|
3
4
|
/**
|
|
4
5
|
* Priority order for service request priorities (case insensitive)
|
|
5
6
|
* Index 0 = highest priority, higher index = lower priority
|
|
@@ -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,
|
|
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,EAAwB,uBAAuB,EAAE,MAAM,UAAU,CAAC;AAEzE,eAAO,MAAM,qBAAqB,GAChC,QAAQ,MAAM,EACd,QAAQ,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,KAC7B,MAWF,CAAC;AAEF;;;;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,EAOzB,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"}
|