@bahmni/widgets 0.0.1-dev.461 → 0.0.1-dev.462
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-CWtmCWHw.js → DocumentsTable-DMbBOpq1.js} +115 -120
- package/dist/FormsTable-BIuqPYyM.js +250 -0
- package/dist/{Observations-ByFseCbp.js → Observations-03_fSy1N.js} +31 -31
- package/dist/allergies/AllergiesTable.d.ts.map +1 -1
- package/dist/documents/DocumentsTable.d.ts.map +1 -1
- package/dist/forms/FormsTable.d.ts.map +1 -1
- package/dist/immunizationHistory/ImmunizationHistory.d.ts.map +1 -1
- package/dist/immunizationHistory/model.d.ts +0 -6
- package/dist/immunizationHistory/model.d.ts.map +1 -1
- package/dist/{index-RIPNlc6y.js → index-UBpwKR4V.js} +13669 -13742
- package/dist/index.js +9 -9
- package/dist/medications/MedicationsTable.d.ts.map +1 -1
- package/dist/medications/components/Actions.d.ts +0 -1
- package/dist/medications/components/Actions.d.ts.map +1 -1
- package/dist/medications/components/actionHandlers.d.ts +1 -1
- package/dist/medications/components/actionHandlers.d.ts.map +1 -1
- package/dist/tasks/actions/actionHandlers.d.ts.map +1 -1
- package/package.json +1 -1
- package/dist/FormsTable-Cdfw4nlS.js +0 -253
|
@@ -0,0 +1,250 @@
|
|
|
1
|
+
import { jsx as n, jsxs as q, Fragment as ie } from "react/jsx-runtime";
|
|
2
|
+
import { u as de, b as le, l as me, U as ce, m as ue, o as fe, q as be, n as ye, r as pe, t as he, Q as ge, e as Ne, s as Oe, z as x, F as V, $ as Fe, L as $, v as Te, w as Ie, W as Ee, O as ve, C as Ae } from "./index-UBpwKR4V.js";
|
|
3
|
+
import { useQueryClient as Re, useQuery as E } 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 De = "FormsTable-module_formsTableBody__SvGha", Le = "FormsTable-module_modalHeading__wnTmA", Be = "FormsTable-module_customAccordianItem__isszs", h = {
|
|
7
|
+
formsTableBody: De,
|
|
8
|
+
modalHeading: Le,
|
|
9
|
+
customAccordianItem: Be
|
|
10
|
+
}, He = ({
|
|
11
|
+
episodeOfCareUuids: v,
|
|
12
|
+
encounterUuids: m,
|
|
13
|
+
config: j,
|
|
14
|
+
disableActions: G = !1,
|
|
15
|
+
activeEncounterUuid: b = null
|
|
16
|
+
}) => {
|
|
17
|
+
const { t: o } = _e(), c = de(), [g, A] = z(!1), [a, R] = z(null), {
|
|
18
|
+
numberOfVisits: Q,
|
|
19
|
+
hideThumbnail: K = !1,
|
|
20
|
+
forms: y
|
|
21
|
+
} = j ?? {}, W = le(
|
|
22
|
+
Ae.EDIT_OBSERVATIONS
|
|
23
|
+
), { userPrivileges: p } = me(), N = W && !G && !!b, _ = ce(
|
|
24
|
+
v,
|
|
25
|
+
m
|
|
26
|
+
), Y = Re(), {
|
|
27
|
+
data: D = [],
|
|
28
|
+
isLoading: L,
|
|
29
|
+
isError: B,
|
|
30
|
+
error: J,
|
|
31
|
+
refetch: X
|
|
32
|
+
} = E({
|
|
33
|
+
queryKey: ["forms", c, v],
|
|
34
|
+
queryFn: () => ue(c, void 0, Q),
|
|
35
|
+
enabled: !!c && !_
|
|
36
|
+
}), C = i(() => {
|
|
37
|
+
let e = D;
|
|
38
|
+
return m && m.length > 0 && (e = e.filter(
|
|
39
|
+
(s) => m.includes(s.encounterUuid)
|
|
40
|
+
)), Array.isArray(y) && y.length > 0 && (e = e.filter(
|
|
41
|
+
(s) => y.some((t) => t.toLowerCase() === s.formName.toLowerCase())
|
|
42
|
+
)), e;
|
|
43
|
+
}, [D, m, y]), { data: M = [] } = E({
|
|
44
|
+
queryKey: ["observationForms"],
|
|
45
|
+
queryFn: () => fe()
|
|
46
|
+
}), S = d(
|
|
47
|
+
(e) => {
|
|
48
|
+
const s = M.find(
|
|
49
|
+
(r) => r.name.toLowerCase() === e.toLowerCase()
|
|
50
|
+
);
|
|
51
|
+
if (!s?.privileges || s.privileges.length === 0) return !0;
|
|
52
|
+
if (!p || p.length === 0) return !1;
|
|
53
|
+
const t = new Set(p.map((r) => r.name));
|
|
54
|
+
return s.privileges.some(
|
|
55
|
+
(r) => t.has(r.privilegeName) && r.editable
|
|
56
|
+
);
|
|
57
|
+
},
|
|
58
|
+
[M, p]
|
|
59
|
+
), u = d(
|
|
60
|
+
(e) => !b || e.encounterUuid !== b ? !1 : S(e.formName),
|
|
61
|
+
[b, S]
|
|
62
|
+
), {
|
|
63
|
+
data: O,
|
|
64
|
+
isLoading: Z,
|
|
65
|
+
isError: ee,
|
|
66
|
+
error: F
|
|
67
|
+
} = E({
|
|
68
|
+
queryKey: ["formsEncounterFHIR", a?.encounterUuid],
|
|
69
|
+
queryFn: () => be(a.encounterUuid),
|
|
70
|
+
enabled: !!a?.encounterUuid && g
|
|
71
|
+
});
|
|
72
|
+
ye(
|
|
73
|
+
(e) => {
|
|
74
|
+
e.patientUUID === c && (X(), Y.invalidateQueries({ queryKey: ["formsEncounterFHIR"] }));
|
|
75
|
+
},
|
|
76
|
+
[c]
|
|
77
|
+
);
|
|
78
|
+
const re = i(() => !O?.entry || !a?.formName ? [] : O.entry.filter((s) => s.resource?.resourceType === "Observation").map((s) => s.resource).filter((s) => pe(s) ? he(s)?.toLowerCase() === a.formName.toLowerCase() : !0), [O, a?.formName]), se = i(() => {
|
|
79
|
+
if (F)
|
|
80
|
+
return ge(F).message;
|
|
81
|
+
}, [F]), f = i(
|
|
82
|
+
() => [
|
|
83
|
+
{ key: "recordedOn", header: o("RECORDED_ON") },
|
|
84
|
+
{ key: "recordedBy", header: o("RECORDED_BY") }
|
|
85
|
+
],
|
|
86
|
+
[o]
|
|
87
|
+
), w = i(
|
|
88
|
+
() => [...f, { key: "actions", header: o("ACTIONS") }],
|
|
89
|
+
[f, o]
|
|
90
|
+
), te = d(
|
|
91
|
+
(e) => N && e.some((t) => u(t)) ? w : f,
|
|
92
|
+
[N, u, w, f]
|
|
93
|
+
), oe = f, ae = i(
|
|
94
|
+
() => [
|
|
95
|
+
{ key: "recordedOn", sortable: !0 },
|
|
96
|
+
{ key: "recordedBy", sortable: !0 }
|
|
97
|
+
],
|
|
98
|
+
[]
|
|
99
|
+
), U = i(() => {
|
|
100
|
+
const e = C.reduce(
|
|
101
|
+
(t, r) => {
|
|
102
|
+
const l = r.formName;
|
|
103
|
+
t[l] ??= [];
|
|
104
|
+
const I = r.providers.map((ne) => ne.providerName).filter(Boolean).join(", ");
|
|
105
|
+
return t[l].push({
|
|
106
|
+
id: r.encounterUuid,
|
|
107
|
+
formName: r.formName,
|
|
108
|
+
recordedOn: Ne(r.encounterDateTime, o, !0).formattedResult,
|
|
109
|
+
recordedBy: I ?? "--",
|
|
110
|
+
encounterDateTime: r.encounterDateTime,
|
|
111
|
+
encounterUuid: r.encounterUuid
|
|
112
|
+
}), t;
|
|
113
|
+
},
|
|
114
|
+
{}
|
|
115
|
+
);
|
|
116
|
+
return Object.entries(e).map(
|
|
117
|
+
([t, r]) => ({
|
|
118
|
+
formName: t,
|
|
119
|
+
records: r.sort(
|
|
120
|
+
(l, I) => I.encounterDateTime - l.encounterDateTime
|
|
121
|
+
)
|
|
122
|
+
})
|
|
123
|
+
).sort((t, r) => t.formName.localeCompare(r.formName));
|
|
124
|
+
}, [C, o]), H = d((e) => {
|
|
125
|
+
R(e), A(!0);
|
|
126
|
+
}, []), k = d(() => {
|
|
127
|
+
A(!1), R(null);
|
|
128
|
+
}, []), T = d((e) => {
|
|
129
|
+
Oe({
|
|
130
|
+
context: {
|
|
131
|
+
encounter: { resourceType: "Encounter", id: e.encounterUuid },
|
|
132
|
+
formName: e.formName,
|
|
133
|
+
directFormMode: !0
|
|
134
|
+
},
|
|
135
|
+
action: { type: "update", resourceType: "Observation" }
|
|
136
|
+
});
|
|
137
|
+
}, []), P = d(
|
|
138
|
+
(e, s) => {
|
|
139
|
+
switch (s) {
|
|
140
|
+
case "recordedOn":
|
|
141
|
+
return /* @__PURE__ */ n(Fe, { onClick: () => H(e), children: e.recordedOn });
|
|
142
|
+
case "recordedBy":
|
|
143
|
+
return e.recordedBy;
|
|
144
|
+
case "actions":
|
|
145
|
+
return u(e) ? /* @__PURE__ */ n(
|
|
146
|
+
x,
|
|
147
|
+
{
|
|
148
|
+
label: o("EDIT_OBSERVATION_FORM"),
|
|
149
|
+
kind: "ghost",
|
|
150
|
+
size: "sm",
|
|
151
|
+
testId: `edit-form-${e.encounterUuid}`,
|
|
152
|
+
onClick: () => T(e),
|
|
153
|
+
children: /* @__PURE__ */ n(V, {})
|
|
154
|
+
}
|
|
155
|
+
) : null;
|
|
156
|
+
default:
|
|
157
|
+
return null;
|
|
158
|
+
}
|
|
159
|
+
},
|
|
160
|
+
[H, T, u, o]
|
|
161
|
+
);
|
|
162
|
+
return /* @__PURE__ */ q(ie, { children: [
|
|
163
|
+
/* @__PURE__ */ n("div", { id: "forms-table", "data-testid": "forms-table", children: L || B || U.length === 0 || _ ? /* @__PURE__ */ n(
|
|
164
|
+
$,
|
|
165
|
+
{
|
|
166
|
+
headers: oe,
|
|
167
|
+
ariaLabel: o("FORMS_HEADING"),
|
|
168
|
+
rows: [],
|
|
169
|
+
loading: L,
|
|
170
|
+
errorStateMessage: B ? J?.message : void 0,
|
|
171
|
+
emptyStateMessage: o("FORMS_UNAVAILABLE"),
|
|
172
|
+
renderCell: P,
|
|
173
|
+
className: h.formsTableBody,
|
|
174
|
+
dataTestId: "forms-table"
|
|
175
|
+
}
|
|
176
|
+
) : /* @__PURE__ */ n(Te, { align: "start", children: U.map((e, s) => {
|
|
177
|
+
const { formName: t, records: r } = e, l = te(r);
|
|
178
|
+
return /* @__PURE__ */ n(
|
|
179
|
+
Ie,
|
|
180
|
+
{
|
|
181
|
+
title: t,
|
|
182
|
+
className: h.customAccordianItem,
|
|
183
|
+
testId: `accordian-title-${t}`,
|
|
184
|
+
open: s === 0,
|
|
185
|
+
children: /* @__PURE__ */ n(
|
|
186
|
+
$,
|
|
187
|
+
{
|
|
188
|
+
headers: l,
|
|
189
|
+
ariaLabel: o("FORMS_HEADING"),
|
|
190
|
+
rows: r,
|
|
191
|
+
loading: !1,
|
|
192
|
+
errorStateMessage: "",
|
|
193
|
+
sortable: ae,
|
|
194
|
+
emptyStateMessage: o("FORMS_UNAVAILABLE"),
|
|
195
|
+
renderCell: P,
|
|
196
|
+
className: h.formsTableBody,
|
|
197
|
+
dataTestId: `forms-table-${t}`
|
|
198
|
+
}
|
|
199
|
+
)
|
|
200
|
+
},
|
|
201
|
+
t
|
|
202
|
+
);
|
|
203
|
+
}) }) }),
|
|
204
|
+
g && a && /* @__PURE__ */ n(
|
|
205
|
+
Ee,
|
|
206
|
+
{
|
|
207
|
+
id: "modalIdForActionAreaLayout",
|
|
208
|
+
portalId: "main-display-area",
|
|
209
|
+
open: g,
|
|
210
|
+
onRequestClose: k,
|
|
211
|
+
modalHeading: /* @__PURE__ */ q("div", { className: h.modalHeading, children: [
|
|
212
|
+
/* @__PURE__ */ n("span", { children: a.formName }),
|
|
213
|
+
N && u(a) && /* @__PURE__ */ n(
|
|
214
|
+
x,
|
|
215
|
+
{
|
|
216
|
+
label: o("EDIT_OBSERVATION_FORM"),
|
|
217
|
+
kind: "ghost",
|
|
218
|
+
size: "sm",
|
|
219
|
+
testId: `edit-form-modal-${a.encounterUuid}`,
|
|
220
|
+
onClick: () => {
|
|
221
|
+
k(), T(a);
|
|
222
|
+
},
|
|
223
|
+
children: /* @__PURE__ */ n(V, {})
|
|
224
|
+
}
|
|
225
|
+
)
|
|
226
|
+
] }),
|
|
227
|
+
modalLabel: `${a.recordedOn} | ${a.recordedBy}`,
|
|
228
|
+
passiveModal: !0,
|
|
229
|
+
size: "md",
|
|
230
|
+
testId: "form-details-modal",
|
|
231
|
+
children: /* @__PURE__ */ n(
|
|
232
|
+
ve,
|
|
233
|
+
{
|
|
234
|
+
observations: re,
|
|
235
|
+
isLoading: Z,
|
|
236
|
+
isError: ee,
|
|
237
|
+
errorMessage: se,
|
|
238
|
+
emptyStateMessage: o("NO_FORM_DATA_AVAILABLE"),
|
|
239
|
+
testIdPrefix: a.formName,
|
|
240
|
+
hideThumbnail: K,
|
|
241
|
+
formName: a.formName
|
|
242
|
+
}
|
|
243
|
+
)
|
|
244
|
+
}
|
|
245
|
+
)
|
|
246
|
+
] });
|
|
247
|
+
};
|
|
248
|
+
export {
|
|
249
|
+
He as default
|
|
250
|
+
};
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { jsx as i, jsxs as N } from "react/jsx-runtime";
|
|
2
|
-
import {
|
|
2
|
+
import { x as G, y as C, B as H, Z as P, e as j, D as x, G as z, H as J, I as Z, u as W, a as Y, J as X, U as ee, K as se, M as te, n as re, N as ae, P as oe, R as ne, S as ie, f as ce, L as le } from "./index-UBpwKR4V.js";
|
|
3
3
|
import { useQueries as de, useQuery as ue } from "@tanstack/react-query";
|
|
4
|
-
import { useRef as pe, useEffect as
|
|
5
|
-
import { useTranslation as
|
|
4
|
+
import { useRef as pe, useEffect as U, useMemo as I } from "react";
|
|
5
|
+
import { useTranslation as F } from "react-i18next";
|
|
6
6
|
const be = "Observations-module_observations__RKSyo", me = "Observations-module_title__TJL3z", ve = "Observations-module_wrapper__muk2L", fe = "Observations-module_secondary__14nuS", f = {
|
|
7
7
|
observations: be,
|
|
8
8
|
title: me,
|
|
9
9
|
wrapper: ve,
|
|
10
10
|
secondary: fe
|
|
11
|
-
},
|
|
11
|
+
}, w = (t, l, n, c, u, r) => {
|
|
12
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(
|
|
@@ -26,7 +26,7 @@ const be = "Observations-module_observations__RKSyo", me = "Observations-module_
|
|
|
26
26
|
videoSrc: e,
|
|
27
27
|
hideThumbnail: r
|
|
28
28
|
}
|
|
29
|
-
)), p === "PDF" && (o = /* @__PURE__ */ i(
|
|
29
|
+
)), p === "PDF" && (o = /* @__PURE__ */ i(Z, { 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 })
|
|
@@ -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
|
+
C,
|
|
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) => w(
|
|
59
59
|
e,
|
|
60
60
|
p,
|
|
61
61
|
u,
|
|
@@ -71,17 +71,17 @@ const be = "Observations-module_observations__RKSyo", me = "Observations-module_
|
|
|
71
71
|
title: l = "",
|
|
72
72
|
hideThumbnail: n
|
|
73
73
|
}) => {
|
|
74
|
-
const { t: c } =
|
|
74
|
+
const { t: c } = F(), u = (r, a, e) => {
|
|
75
75
|
const p = G(r.encounterDetails, c);
|
|
76
76
|
return /* @__PURE__ */ N(
|
|
77
|
-
|
|
77
|
+
C,
|
|
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) => w(
|
|
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
|
+
}, Ee = (t) => ["conceptUuid", t], he = (t, l, n, c) => [
|
|
121
121
|
"observations",
|
|
122
122
|
t,
|
|
123
123
|
...l,
|
|
@@ -133,14 +133,14 @@ 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 = W(), { addNotification: b } = Y(), { t: d } =
|
|
136
|
+
} = c, p = pe(/* @__PURE__ */ new Set()), o = W(), { addNotification: b } = Y(), { t: d } = F(), m = de({
|
|
137
137
|
queries: u.map((s) => ({
|
|
138
|
-
queryKey:
|
|
139
|
-
queryFn: () =>
|
|
138
|
+
queryKey: Ee(s),
|
|
139
|
+
queryFn: () => X(s),
|
|
140
140
|
enabled: !!s
|
|
141
141
|
}))
|
|
142
142
|
});
|
|
143
|
-
|
|
143
|
+
U(() => {
|
|
144
144
|
const s = m.some(($) => $.isError), R = p.current.size > 0;
|
|
145
145
|
s && !R ? (b({
|
|
146
146
|
title: d("ERROR_DEFAULT_TITLE"),
|
|
@@ -152,12 +152,12 @@ const be = "Observations-module_observations__RKSyo", me = "Observations-module_
|
|
|
152
152
|
l,
|
|
153
153
|
n
|
|
154
154
|
), {
|
|
155
|
-
data:
|
|
155
|
+
data: E,
|
|
156
156
|
isLoading: V,
|
|
157
157
|
isError: S,
|
|
158
158
|
refetch: D
|
|
159
159
|
} = ue({
|
|
160
|
-
queryKey:
|
|
160
|
+
queryKey: he(
|
|
161
161
|
o,
|
|
162
162
|
v,
|
|
163
163
|
n,
|
|
@@ -181,7 +181,7 @@ const be = "Observations-module_observations__RKSyo", me = "Observations-module_
|
|
|
181
181
|
) && D();
|
|
182
182
|
},
|
|
183
183
|
[o, D]
|
|
184
|
-
),
|
|
184
|
+
), U(() => {
|
|
185
185
|
S && b({
|
|
186
186
|
title: d("ERROR_DEFAULT_TITLE"),
|
|
187
187
|
message: d("ERROR_FETCHING_OBSERVATIONS"),
|
|
@@ -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 (!E) return [];
|
|
193
|
+
let s = ae(E);
|
|
194
194
|
e === "latest-encounter" && (s = oe(s));
|
|
195
195
|
const R = ne(s);
|
|
196
196
|
return ie(R);
|
|
197
|
-
}, [
|
|
197
|
+
}, [E, 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, M = (!
|
|
201
|
+
], A = V || !y, B = S && y, M = (!E || E.entry?.length === 0 || v.length === 0) && y, Q = B ? d("ERROR_FETCHING_OBSERVATIONS") : null, k = M ? d("NO_OBSERVATIONS_FOUND") : void 0, q = L.length > 0 && !A && !B, T = c.titleTranslationKey, h = 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-${h}` : "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-${h}` : "observations-title",
|
|
215
|
+
title: h,
|
|
216
216
|
className: f.title,
|
|
217
|
-
children: /* @__PURE__ */ i("p", { children:
|
|
217
|
+
children: /* @__PURE__ */ i("p", { children: h })
|
|
218
218
|
}
|
|
219
219
|
),
|
|
220
220
|
q ? /* @__PURE__ */ i(
|
|
221
221
|
Oe,
|
|
222
222
|
{
|
|
223
223
|
groupedData: L,
|
|
224
|
-
title:
|
|
224
|
+
title: h,
|
|
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: Q,
|
|
235
|
+
emptyStateMessage: k ?? 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
|
+
Ee as conceptUuidQueryKeys,
|
|
245
245
|
Ne as default,
|
|
246
|
-
|
|
246
|
+
he as observationsQueryKeys
|
|
247
247
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AllergiesTable.d.ts","sourceRoot":"","sources":["../../src/allergies/AllergiesTable.tsx"],"names":[],"mappings":"AAoBA,OAAO,KAAoD,MAAM,OAAO,CAAC;AAGzE,OAAO,EAAsB,WAAW,EAAE,MAAM,mBAAmB,CAAC;
|
|
1
|
+
{"version":3,"file":"AllergiesTable.d.ts","sourceRoot":"","sources":["../../src/allergies/AllergiesTable.tsx"],"names":[],"mappings":"AAoBA,OAAO,KAAoD,MAAM,OAAO,CAAC;AAGzE,OAAO,EAAsB,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAyBpE,QAAA,MAAM,cAAc,EAAE,KAAK,CAAC,EAAE,CAAC,WAAW,CAuLzC,CAAC;AAEF,eAAe,cAAc,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DocumentsTable.d.ts","sourceRoot":"","sources":["../../src/documents/DocumentsTable.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"DocumentsTable.d.ts","sourceRoot":"","sources":["../../src/documents/DocumentsTable.tsx"],"names":[],"mappings":"AAsBA,OAAO,KAMN,MAAM,OAAO,CAAC;AAGf,OAAO,EAAsB,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAkDpE,QAAA,MAAM,cAAc,EAAE,KAAK,CAAC,EAAE,CAAC,WAAW,CAogBzC,CAAC;AAEF,eAAe,cAAc,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FormsTable.d.ts","sourceRoot":"","sources":["../../src/forms/FormsTable.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"FormsTable.d.ts","sourceRoot":"","sources":["../../src/forms/FormsTable.tsx"],"names":[],"mappings":"AAyBA,OAAO,KAAyC,MAAM,OAAO,CAAC;AAI9D,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAahD,uEAAuE;AACvE,QAAA,MAAM,UAAU,EAAE,KAAK,CAAC,EAAE,CAAC,WAAW,CAkXrC,CAAC;AAEF,eAAe,UAAU,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ImmunizationHistory.d.ts","sourceRoot":"","sources":["../../src/immunizationHistory/ImmunizationHistory.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ImmunizationHistory.d.ts","sourceRoot":"","sources":["../../src/immunizationHistory/ImmunizationHistory.tsx"],"names":[],"mappings":"AAgBA,OAAO,KAAmB,MAAM,OAAO,CAAC;AAExC,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAqChD,QAAA,MAAM,mBAAmB,EAAE,KAAK,CAAC,EAAE,CAAC,WAAW,CA4I9C,CAAC;AAEF,eAAe,mBAAmB,CAAC"}
|
|
@@ -38,11 +38,5 @@ export interface ImmunizationHistoryWidgetConfig {
|
|
|
38
38
|
startEncounterPrivilege?: string;
|
|
39
39
|
administeredFields?: string[];
|
|
40
40
|
notAdministeredFields?: string[];
|
|
41
|
-
inputControlKey?: string;
|
|
42
|
-
administeredInputControlKey?: string;
|
|
43
|
-
notAdministeredInputControlKey?: string;
|
|
44
|
-
editTitle?: string;
|
|
45
|
-
administeredEditTitle?: string;
|
|
46
|
-
notAdministeredEditTitle?: string;
|
|
47
41
|
}
|
|
48
42
|
//# sourceMappingURL=model.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"model.d.ts","sourceRoot":"","sources":["../../src/immunizationHistory/model.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,iCAAiC;IAChD,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,GAAG,IAAI,CAAC;IACpB,YAAY,EAAE,MAAM,GAAG,IAAI,CAAC;IAC5B,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;IACxB,cAAc,EAAE,MAAM,GAAG,IAAI,CAAC;IAC9B,oBAAoB,EAAE,MAAM,GAAG,IAAI,CAAC;IACpC,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,IAAI,EAAE,MAAM,GAAG,IAAI,CAAC;IACpB,YAAY,EAAE,MAAM,GAAG,IAAI,CAAC;IAC5B,WAAW,EAAE,MAAM,GAAG,IAAI,CAAC;IAC3B,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1B,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1B,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;IACzB,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,UAAU,EAAE,OAAO,CAAC;CACrB;AAED,MAAM,WAAW,oCAAoC;IACnD,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,GAAG,IAAI,CAAC;IACpB,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC;IACtB,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