@bahmni/clinical-app 0.0.1-dev.439 → 0.0.1-dev.441
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/{ConsultationPage-nPYT9Y19.js → ConsultationPage-DlEUYH9D.js} +7654 -7514
- package/dist/{DocumentsTable-DOPEQt14-CqCk4rt4.js → DocumentsTable-BCWUH3WY-yIxEOeqS.js} +14 -14
- package/dist/{FormsTable-5kbGeeFq-DrJXsY_l.js → FormsTable-Bb-cDsSI-D6U8Jnch.js} +84 -84
- package/dist/{LNWAZHJI-CjKDCEXQ.js → LNWAZHJI-BzOZnN3F.js} +5 -5
- package/dist/{MWZ6AO7Z-BN1CxgzQ.js → MWZ6AO7Z-C-pbv8MM.js} +2 -2
- package/dist/{Observations-BUz9smcC-DxJuZdK1.js → Observations-B5TN5tfi-DBfEHkT6.js} +59 -59
- package/dist/{YPM2AS64-9e9ECVpU.js → YPM2AS64-DHndX1Gs.js} +1 -1
- package/dist/components/consultationPad/index.d.ts.map +1 -1
- package/dist/components/consultationPad/utils.d.ts +13 -0
- package/dist/components/consultationPad/utils.d.ts.map +1 -1
- package/dist/components/forms/allergies/AllergiesForm.d.ts.map +1 -1
- package/dist/components/forms/allergies/SelectedAllergyItem.d.ts +12 -3
- package/dist/components/forms/allergies/SelectedAllergyItem.d.ts.map +1 -1
- package/dist/components/forms/allergies/index.d.ts.map +1 -1
- package/dist/components/forms/models.d.ts +8 -0
- package/dist/components/forms/models.d.ts.map +1 -1
- package/dist/constants/errors.d.ts +1 -0
- package/dist/constants/errors.d.ts.map +1 -1
- package/dist/{hook-DFRmaZrJ.js → hook-CTrQG8ZB.js} +1 -1
- package/dist/{index-CyvuKZwu.js → index-CXVD8oVf.js} +32101 -32028
- package/dist/{index-Zds56XNI.js → index-DIdgceKI.js} +16 -16
- package/dist/{index-BP7diYfY.js → index-Da-7cqE_.js} +27 -27
- package/dist/index.js +1 -1
- package/dist/locales/locale_en.json +3 -0
- package/dist/locales/locale_es.json +3 -0
- package/dist/services/encounterBundleService.d.ts.map +1 -1
- package/dist/stores/allergyStore.d.ts +15 -5
- package/dist/stores/allergyStore.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { jsxs as I, jsx as o } from "react/jsx-runtime";
|
|
2
|
-
import { d as
|
|
2
|
+
import { d as G, z as H, u as F, I as j, H as J, i as M, Z as Y, w as x, Y as P, Q as X, J as Z, X as W, j as ee, $ as ae, G as se, E as U, K as te, l as re, h as ie, m as ne, n as oe, o as de, F as le } from "./index-CXVD8oVf.js";
|
|
3
3
|
import { useQueries as ue, useQuery as ce } from "@tanstack/react-query";
|
|
4
|
-
import { useRef as
|
|
5
|
-
const
|
|
6
|
-
observations:
|
|
4
|
+
import { useRef as me, useEffect as D, useMemo as g } from "react";
|
|
5
|
+
const pe = "Observations-module_observations__RKSyo", be = "Observations-module_title__TJL3z", he = "Observations-module_wrapper__muk2L", ve = "Observations-module_secondary__14nuS", O = {
|
|
6
|
+
observations: pe,
|
|
7
7
|
title: be,
|
|
8
8
|
wrapper: he,
|
|
9
9
|
secondary: ve
|
|
10
|
-
},
|
|
11
|
-
const r = te(s, l, c), e = r.value,
|
|
10
|
+
}, w = (s, l, n, d, c, t) => {
|
|
11
|
+
const r = te(s, l, c), e = r.value, m = re(e);
|
|
12
12
|
let i = e;
|
|
13
|
-
|
|
13
|
+
m === "Image" && (i = /* @__PURE__ */ o(
|
|
14
14
|
oe,
|
|
15
15
|
{
|
|
16
16
|
imageSrc: e,
|
|
@@ -18,29 +18,29 @@ const me = "Observations-module_observations__RKSyo", be = "Observations-module_
|
|
|
18
18
|
id: `${e}-img`,
|
|
19
19
|
hideThumbnail: t
|
|
20
20
|
}
|
|
21
|
-
)),
|
|
21
|
+
)), m === "Video" && (i = /* @__PURE__ */ o(
|
|
22
22
|
de,
|
|
23
23
|
{
|
|
24
24
|
id: `${e}-video`,
|
|
25
25
|
videoSrc: e,
|
|
26
26
|
hideThumbnail: t
|
|
27
27
|
}
|
|
28
|
-
)),
|
|
29
|
-
const
|
|
28
|
+
)), m === "PDF" && (i = /* @__PURE__ */ o(le, { id: `${e}-pdf`, src: e }));
|
|
29
|
+
const p = /* @__PURE__ */ I("div", { className: O.wrapper, children: [
|
|
30
30
|
/* @__PURE__ */ o("span", { children: r.header.display }),
|
|
31
31
|
r.header.referenceRange && /* @__PURE__ */ o("span", { className: O.secondary, children: r.header.referenceRange })
|
|
32
32
|
] }), u = c("OBSERVATIONS_RECORDED_BY", {
|
|
33
33
|
provider: r.provider
|
|
34
|
-
}), b = s.effectiveDateTime ? ie(s.effectiveDateTime, c, !0).formattedResult : void 0,
|
|
34
|
+
}), b = s.effectiveDateTime ? ie(s.effectiveDateTime, c, !0).formattedResult : void 0, E = /* @__PURE__ */ I("div", { className: O.wrapper, children: [
|
|
35
35
|
/* @__PURE__ */ o("span", { children: u }),
|
|
36
36
|
b && /* @__PURE__ */ o("span", { className: O.secondary, children: b })
|
|
37
37
|
] }), h = s.display, v = s.observationValue?.isAbnormal ? "abnormal-obs" : "obs", R = d ? `${d}-${v}-${h}-${n}-${l}` : `${v}-${h}-${n}-${l}`;
|
|
38
38
|
return /* @__PURE__ */ o(
|
|
39
39
|
ne,
|
|
40
40
|
{
|
|
41
|
-
header:
|
|
41
|
+
header: p,
|
|
42
42
|
value: i,
|
|
43
|
-
info:
|
|
43
|
+
info: E,
|
|
44
44
|
id: R,
|
|
45
45
|
testId: R,
|
|
46
46
|
ariaLabel: R
|
|
@@ -54,9 +54,9 @@ const me = "Observations-module_observations__RKSyo", be = "Observations-module_
|
|
|
54
54
|
id: `grouped-obs-${s.display}-${d}`,
|
|
55
55
|
open: n,
|
|
56
56
|
children: s.members?.map(
|
|
57
|
-
(e,
|
|
57
|
+
(e, m) => w(
|
|
58
58
|
e,
|
|
59
|
-
|
|
59
|
+
m,
|
|
60
60
|
c,
|
|
61
61
|
t,
|
|
62
62
|
l,
|
|
@@ -70,19 +70,19 @@ const me = "Observations-module_observations__RKSyo", be = "Observations-module_
|
|
|
70
70
|
title: l = "",
|
|
71
71
|
hideThumbnail: n
|
|
72
72
|
}) => {
|
|
73
|
-
const { t: d } =
|
|
74
|
-
const
|
|
73
|
+
const { t: d } = F(), c = (t, r, e) => {
|
|
74
|
+
const m = se(t.encounterDetails, d);
|
|
75
75
|
return /* @__PURE__ */ I(
|
|
76
76
|
U,
|
|
77
77
|
{
|
|
78
|
-
title:
|
|
78
|
+
title: m,
|
|
79
79
|
id: `encounter-${t.encounterId}`,
|
|
80
80
|
open: r,
|
|
81
81
|
children: [
|
|
82
82
|
t.observations.map(
|
|
83
|
-
(i,
|
|
83
|
+
(i, p) => w(
|
|
84
84
|
i,
|
|
85
|
-
|
|
85
|
+
p,
|
|
86
86
|
e,
|
|
87
87
|
l,
|
|
88
88
|
d,
|
|
@@ -90,11 +90,11 @@ const me = "Observations-module_observations__RKSyo", be = "Observations-module_
|
|
|
90
90
|
)
|
|
91
91
|
),
|
|
92
92
|
t.groupedObservations.map(
|
|
93
|
-
(i,
|
|
93
|
+
(i, p) => ye(
|
|
94
94
|
i,
|
|
95
95
|
d,
|
|
96
96
|
r,
|
|
97
|
-
|
|
97
|
+
p,
|
|
98
98
|
e,
|
|
99
99
|
l,
|
|
100
100
|
n
|
|
@@ -116,7 +116,7 @@ const me = "Observations-module_observations__RKSyo", be = "Observations-module_
|
|
|
116
116
|
)
|
|
117
117
|
}
|
|
118
118
|
);
|
|
119
|
-
}, Re = (s) => ["conceptUuid", s],
|
|
119
|
+
}, Re = (s) => ["conceptUuid", s], _e = (s, l, n, d) => [
|
|
120
120
|
"observations",
|
|
121
121
|
s,
|
|
122
122
|
...l,
|
|
@@ -132,77 +132,77 @@ const me = "Observations-module_observations__RKSyo", be = "Observations-module_
|
|
|
132
132
|
conceptUuid: t = [],
|
|
133
133
|
hideThumbnail: r = !1,
|
|
134
134
|
scope: e = "all"
|
|
135
|
-
} = d,
|
|
135
|
+
} = d, m = me(/* @__PURE__ */ new Set()), i = G(), { addNotification: p } = H(), { t: u } = F(), b = ue({
|
|
136
136
|
queries: c.map((a) => ({
|
|
137
137
|
queryKey: Re(a),
|
|
138
|
-
queryFn: () =>
|
|
138
|
+
queryFn: () => j(a),
|
|
139
139
|
enabled: !!a
|
|
140
140
|
}))
|
|
141
141
|
});
|
|
142
142
|
D(() => {
|
|
143
|
-
const a = b.some((
|
|
144
|
-
a && !y ? (
|
|
143
|
+
const a = b.some((z) => z.isError), y = m.current.size > 0;
|
|
144
|
+
a && !y ? (p({
|
|
145
145
|
title: u("ERROR_DEFAULT_TITLE"),
|
|
146
146
|
message: u("ERROR_FETCHING_OBSERVATIONS"),
|
|
147
147
|
type: "error"
|
|
148
|
-
}),
|
|
149
|
-
}, [b,
|
|
150
|
-
const
|
|
148
|
+
}), m.current.add(0)) : !a && y && m.current.clear();
|
|
149
|
+
}, [b, p, u]);
|
|
150
|
+
const E = g(() => b.map((a) => a.data?.uuid).filter((a) => !!a), [b]), h = g(() => [.../* @__PURE__ */ new Set([...E, ...t])], [E, t]), v = g(() => c.length === 0 ? !0 : b.every((a) => !a.isLoading), [b, c.length]), R = e === "latest" || e === "latest-encounter", B = J(
|
|
151
151
|
l,
|
|
152
152
|
n
|
|
153
153
|
), {
|
|
154
|
-
data:
|
|
155
|
-
isLoading:
|
|
154
|
+
data: _,
|
|
155
|
+
isLoading: V,
|
|
156
156
|
isError: S,
|
|
157
|
-
refetch:
|
|
157
|
+
refetch: $
|
|
158
158
|
} = ce({
|
|
159
|
-
queryKey:
|
|
159
|
+
queryKey: _e(
|
|
160
160
|
i,
|
|
161
161
|
h,
|
|
162
162
|
n,
|
|
163
163
|
e
|
|
164
164
|
),
|
|
165
|
-
queryFn: () => R ?
|
|
165
|
+
queryFn: () => R ? M(
|
|
166
166
|
i,
|
|
167
167
|
h,
|
|
168
168
|
n
|
|
169
|
-
) :
|
|
169
|
+
) : Y(
|
|
170
170
|
i,
|
|
171
171
|
h,
|
|
172
172
|
n
|
|
173
173
|
),
|
|
174
|
-
enabled: !!i && h.length > 0 && v && !
|
|
174
|
+
enabled: !!i && h.length > 0 && v && !B
|
|
175
175
|
});
|
|
176
|
-
|
|
176
|
+
x(
|
|
177
177
|
(a) => {
|
|
178
178
|
a.patientUUID === i && a.updatedConcepts.size > 0 && [...a.updatedConcepts.keys()].some(
|
|
179
179
|
(y) => h.includes(y)
|
|
180
|
-
) &&
|
|
180
|
+
) && $();
|
|
181
181
|
},
|
|
182
|
-
[i,
|
|
182
|
+
[i, $]
|
|
183
183
|
), D(() => {
|
|
184
|
-
S &&
|
|
184
|
+
S && p({
|
|
185
185
|
title: u("ERROR_DEFAULT_TITLE"),
|
|
186
186
|
message: u("ERROR_FETCHING_OBSERVATIONS"),
|
|
187
187
|
type: "error"
|
|
188
188
|
});
|
|
189
189
|
}, [S]);
|
|
190
|
-
const
|
|
191
|
-
if (!
|
|
192
|
-
let a =
|
|
193
|
-
e === "latest-encounter" && (a =
|
|
194
|
-
const y =
|
|
195
|
-
return
|
|
196
|
-
}, [
|
|
190
|
+
const N = g(() => {
|
|
191
|
+
if (!_) return [];
|
|
192
|
+
let a = P(_);
|
|
193
|
+
e === "latest-encounter" && (a = X(a));
|
|
194
|
+
const y = Z(a);
|
|
195
|
+
return W(y);
|
|
196
|
+
}, [_, e]), K = [
|
|
197
197
|
{ key: "name", header: "name" },
|
|
198
198
|
{ key: "value", header: "value" },
|
|
199
199
|
{ key: "form", header: "form" }
|
|
200
|
-
], A =
|
|
200
|
+
], A = V || !v, L = S && v, k = (!_ || _.entry?.length === 0 || h.length === 0) && v, C = L ? u("ERROR_FETCHING_OBSERVATIONS") : null, Q = k ? u("NO_OBSERVATIONS_FOUND") : void 0, q = N.length > 0 && !A && !L, T = d.titleTranslationKey, f = T ? u(T) : "";
|
|
201
201
|
return /* @__PURE__ */ I(
|
|
202
202
|
"div",
|
|
203
203
|
{
|
|
204
204
|
id: "observations",
|
|
205
|
-
"data-testid":
|
|
205
|
+
"data-testid": T ? `observations-${f}` : "observations",
|
|
206
206
|
"aria-label": "observations-aria-label",
|
|
207
207
|
className: O.observations,
|
|
208
208
|
children: [
|
|
@@ -210,28 +210,28 @@ const me = "Observations-module_observations__RKSyo", be = "Observations-module_
|
|
|
210
210
|
ee,
|
|
211
211
|
{
|
|
212
212
|
id: "observations-title",
|
|
213
|
-
testId:
|
|
214
|
-
title:
|
|
213
|
+
testId: T ? `observations-title-${f}` : "observations-title",
|
|
214
|
+
title: f,
|
|
215
215
|
className: O.title,
|
|
216
|
-
children: /* @__PURE__ */ o("p", { children:
|
|
216
|
+
children: /* @__PURE__ */ o("p", { children: f })
|
|
217
217
|
}
|
|
218
218
|
),
|
|
219
|
-
|
|
219
|
+
q ? /* @__PURE__ */ o(
|
|
220
220
|
Oe,
|
|
221
221
|
{
|
|
222
|
-
groupedData:
|
|
223
|
-
title:
|
|
222
|
+
groupedData: N,
|
|
223
|
+
title: f,
|
|
224
224
|
hideThumbnail: r
|
|
225
225
|
}
|
|
226
226
|
) : /* @__PURE__ */ o(
|
|
227
227
|
ae,
|
|
228
228
|
{
|
|
229
|
-
headers:
|
|
229
|
+
headers: K,
|
|
230
230
|
rows: [],
|
|
231
231
|
ariaLabel: u("OBSERVATIONS"),
|
|
232
232
|
loading: A,
|
|
233
233
|
errorStateMessage: C,
|
|
234
|
-
emptyStateMessage:
|
|
234
|
+
emptyStateMessage: Q ?? u("NO_OBSERVATIONS_AVAILABLE"),
|
|
235
235
|
dataTestId: "observations-table"
|
|
236
236
|
}
|
|
237
237
|
)
|
|
@@ -242,5 +242,5 @@ const me = "Observations-module_observations__RKSyo", be = "Observations-module_
|
|
|
242
242
|
export {
|
|
243
243
|
Re as conceptUuidQueryKeys,
|
|
244
244
|
Ie as default,
|
|
245
|
-
|
|
245
|
+
_e as observationsQueryKeys
|
|
246
246
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { c6 as we, c7 as z, c8 as xt, c9 as B, c4 as q, c5 as y, ca as Ro, cb as ye, cc as R, cd as _, ce as k, cf as N, cg as A, ch as bs, ci as ir, cj as $e, ck as G, cl as Hn, cm as Vn, cn as dt, co as D, cp as xs, cq as cn, cr as Be, cs as ws, ct as qt, cu as zt, cv as $s, cw as Cs, cx as $n, cy as Ss, cz as Nr, cA as Bt, cB as zo, cC as ks, cD as Es, cE as j, cF as Gr, cG as Ms, cH as Ds, cI as sr, cJ as As, cK as Ts, cL as zn, cM as Fs, cN as Is, cO as Z, cP as Ps, cQ as Ls } from "./index-CXVD8oVf.js";
|
|
2
2
|
var Os = (e) => e != null, qs = (e) => e.filter(Os);
|
|
3
3
|
function _s(e) {
|
|
4
4
|
return (...t) => {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/consultationPad/index.tsx"],"names":[],"mappings":"AAmBA,OAAO,KAON,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/consultationPad/index.tsx"],"names":[],"mappings":"AAmBA,OAAO,KAON,MAAM,OAAO,CAAC;AAOf,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,gCAAgC,CAAC;AAwBnF,UAAU,oBAAoB;IAC5B,4BAA4B,EAAE,4BAA4B,CAAC;IAC3D,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,oBAAoB,CAAC,EAAE,OAAO,CAAC;IAC/B,wBAAwB,CAAC,EAAE,MAAM,IAAI,CAAC;CACvC;AAED,QAAA,MAAM,eAAe,EAAE,KAAK,CAAC,EAAE,CAAC,oBAAoB,CAykBnD,CAAC;AAEF,eAAe,eAAe,CAAC"}
|
|
@@ -10,6 +10,19 @@ export declare function getActiveEncounter(args: {
|
|
|
10
10
|
}): Encounter | null | undefined;
|
|
11
11
|
export declare function loadEncounterInputControls(config: ConsultationPad | undefined): InputControl[];
|
|
12
12
|
export declare function getActiveEntries(registry: InputControl[], encounterType: string, editOnlyKey?: string): InputControl[];
|
|
13
|
+
/**
|
|
14
|
+
* Splits the active entries into those that submit directly (REST) and
|
|
15
|
+
* those that go through the encounter bundle. An entry may do both:
|
|
16
|
+
* controls that can only save part of their data through the bundle
|
|
17
|
+
* (allergies) declare hasBundleData() to say whether the bundle flow is
|
|
18
|
+
* still needed. hasBundleData() may be async (e.g. allergies awaits its
|
|
19
|
+
* install-specific concept uuid before deciding), so this resolves before
|
|
20
|
+
* createBundleEntries runs.
|
|
21
|
+
*/
|
|
22
|
+
export declare function resolveSubmissionEntries(activeEntries: InputControl[]): Promise<{
|
|
23
|
+
directSubmitEntries: InputControl[];
|
|
24
|
+
bundleEntries: InputControl[];
|
|
25
|
+
}>;
|
|
13
26
|
export declare function captureUpdatedResources(entries: InputControl[]): {
|
|
14
27
|
conditions: boolean;
|
|
15
28
|
allergies: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../src/components/consultationPad/utils.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAEzC,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,uCAAuC,CAAC;AAE7E,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AAI7C,KAAK,WAAW,GAAG,SAAS,GAAG,OAAO,GAAG,SAAS,CAAC;AAEnD,wBAAgB,kBAAkB,CAAC,IAAI,EAAE;IACvC,mBAAmB,EAAE,MAAM,GAAG,SAAS,CAAC;IACxC,eAAe,EAAE,SAAS,GAAG,IAAI,GAAG,SAAS,CAAC;IAC9C,gBAAgB,EAAE,SAAS,GAAG,IAAI,GAAG,SAAS,CAAC;IAC/C,sBAAsB,EAAE,WAAW,CAAC;CACrC,GAAG,SAAS,GAAG,IAAI,GAAG,SAAS,CAe/B;AAED,wBAAgB,0BAA0B,CACxC,MAAM,EAAE,eAAe,GAAG,SAAS,GAClC,YAAY,EAAE,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B,CAAC,OAAO,EAAE,YAAY,EAAE;;;;;;;EAkC9D"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AllergiesForm.d.ts","sourceRoot":"","sources":["../../../../src/components/forms/allergies/AllergiesForm.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"AllergiesForm.d.ts","sourceRoot":"","sources":["../../../../src/components/forms/allergies/AllergiesForm.tsx"],"names":[],"mappings":"AAoBA,OAAO,KAAoD,MAAM,OAAO,CAAC;AACzE,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,mCAAmC,CAAC;AAYtF;;;;;GAKG;AACH,QAAA,MAAM,aAAa,EAAE,KAAK,CAAC,EAAE,CAAC;IAC5B,4BAA4B,CAAC,EAAE,4BAA4B,CAAC;CAC7D,CA+TC,CAAC;AAIH,eAAe,aAAa,CAAC"}
|
|
@@ -8,14 +8,23 @@ import { AllergyInputEntry } from '../../../models/allergy';
|
|
|
8
8
|
export interface SelectedAllergyItemProps {
|
|
9
9
|
/** The allergy input entry containing all allergy data */
|
|
10
10
|
allergy: AllergyInputEntry;
|
|
11
|
+
/**
|
|
12
|
+
* Whether `allergy` is on the Other, Non-Coded concept. Computed by the
|
|
13
|
+
* parent (which knows the install's resolved concept uuid) rather than
|
|
14
|
+
* read here, since this component is memoized and would otherwise miss a
|
|
15
|
+
* change to that resolved uuid — none of its other props depend on it.
|
|
16
|
+
*/
|
|
17
|
+
isNonCoded: boolean;
|
|
11
18
|
/** Available reaction concepts for the multiselect */
|
|
12
19
|
reactionConcepts: Coding[];
|
|
13
20
|
/** Callback function to update allergy severity */
|
|
14
|
-
updateSeverity: (
|
|
21
|
+
updateSeverity: (entryId: string, severity: Coding | null) => void;
|
|
15
22
|
/** Callback function to update allergy reactions */
|
|
16
|
-
updateReactions: (
|
|
23
|
+
updateReactions: (entryId: string, reactions: Coding[]) => void;
|
|
17
24
|
/** Callback function to update allergy note */
|
|
18
|
-
updateNote: (
|
|
25
|
+
updateNote: (entryId: string, note: string) => void;
|
|
26
|
+
/** Callback to update the free-text name of a non-coded allergen */
|
|
27
|
+
updateNonCodedAllergen: (entryId: string, name: string) => void;
|
|
19
28
|
}
|
|
20
29
|
/**
|
|
21
30
|
* Component for rendering a selected allergy with severity dropdown and reactions multiselect
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SelectedAllergyItem.d.ts","sourceRoot":"","sources":["../../../../src/components/forms/allergies/SelectedAllergyItem.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"SelectedAllergyItem.d.ts","sourceRoot":"","sources":["../../../../src/components/forms/allergies/SelectedAllergyItem.tsx"],"names":[],"mappings":"AAUA,OAAO,EAAE,MAAM,EAAE,MAAM,SAAS,CAAC;AACjC,OAAO,KAAmB,MAAM,OAAO,CAAC;AAExC,OAAO,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AAI5D;;;GAGG;AACH,MAAM,WAAW,wBAAwB;IACvC,0DAA0D;IAC1D,OAAO,EAAE,iBAAiB,CAAC;IAC3B;;;;;OAKG;IACH,UAAU,EAAE,OAAO,CAAC;IACpB,sDAAsD;IACtD,gBAAgB,EAAE,MAAM,EAAE,CAAC;IAC3B,mDAAmD;IACnD,cAAc,EAAE,CAAC,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,GAAG,IAAI,KAAK,IAAI,CAAC;IACnE,oDAAoD;IACpD,eAAe,EAAE,CAAC,OAAO,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,EAAE,KAAK,IAAI,CAAC;IAChE,+CAA+C;IAC/C,UAAU,EAAE,CAAC,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;IACpD,oEAAoE;IACpE,sBAAsB,EAAE,CAAC,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;CACjE;AAED;;;;GAIG;AACH,QAAA,MAAM,mBAAmB,EAAE,KAAK,CAAC,EAAE,CAAC,wBAAwB,CAyI3D,CAAC;AAIF,eAAe,mBAAmB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/forms/allergies/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/forms/allergies/index.ts"],"names":[],"mappings":"AAqIA,OAAO,EAAE,OAAO,EAAE,MAAM,iBAAiB,CAAC"}
|
|
@@ -22,6 +22,14 @@ export interface InputControl {
|
|
|
22
22
|
hasData: () => boolean;
|
|
23
23
|
subscribe: (cb: () => void) => () => void;
|
|
24
24
|
createBundleEntries?: (ctx: EncounterContext) => BundleEntry[];
|
|
25
|
+
/**
|
|
26
|
+
* Only consulted when onDirectSubmit is also defined. A control with
|
|
27
|
+
* onDirectSubmit but no hasBundleData is assumed to have moved all its data
|
|
28
|
+
* to the direct-submit path and will NOT contribute to the bundle. May
|
|
29
|
+
* return a promise if answering requires resolving install-specific
|
|
30
|
+
* config first; consultationPad awaits it before building the bundle.
|
|
31
|
+
*/
|
|
32
|
+
hasBundleData?: () => boolean | Promise<boolean>;
|
|
25
33
|
updateItemCDSCards?: (itemId: string, cards: CDSCard[]) => void;
|
|
26
34
|
hasCriticalCDSCards?: () => boolean;
|
|
27
35
|
onDirectSubmit?: () => Promise<void>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"models.d.ts","sourceRoot":"","sources":["../../../src/components/forms/models.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAChD,OAAO,KAAK,EAAE,WAAW,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AACtD,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,gCAAgC,CAAC;AACnF,OAAO,KAAK,EAAE,YAAY,IAAI,0BAA0B,EAAE,MAAM,uCAAuC,CAAC;AAExG,MAAM,WAAW,g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,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,OAAO,EAAE,KAAK,IAAI,CAAC;IAChE,mBAAmB,CAAC,EAAE,MAAM,OAAO,CAAC;IACpC,cAAc,CAAC,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC;IACrC,eAAe,CAAC,EAAE,CAAC,MAAM,EAAE,gBAAgB,KAAK,IAAI,CAAC;CACtD;AAED,MAAM,WAAW,gBAAgB;IAC/B,gBAAgB,EAAE,SAAS,CAAC;IAC5B,kBAAkB,EAAE,MAAM,CAAC;IAC3B,gBAAgB,EAAE,MAAM,CAAC;IACzB,gBAAgB,EAAE,IAAI,CAAC;IACvB,0BAA0B,CAAC,EAAE,MAAM,CAAC;CACrC"}
|
|
@@ -15,6 +15,7 @@ export declare const CONSULTATION_ERROR_MESSAGES: {
|
|
|
15
15
|
INVALID_PRACTITIONER: string;
|
|
16
16
|
INVALID_ALLERGY_PARAMS: string;
|
|
17
17
|
INVALID_CONDITION_PARAMS: string;
|
|
18
|
+
PARTIAL_SAVE: string;
|
|
18
19
|
};
|
|
19
20
|
export declare const PINNED_FORMS_ERROR_MESSAGES: {
|
|
20
21
|
USER_NOT_FOUND: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"errors.d.ts","sourceRoot":"","sources":["../../src/constants/errors.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,qBAAqB;;;;CAIjC,CAAC;AAEF,eAAO,MAAM,YAAY;;;;CAIxB,CAAC;AAEF,eAAO,MAAM,2BAA2B
|
|
1
|
+
{"version":3,"file":"errors.d.ts","sourceRoot":"","sources":["../../src/constants/errors.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,qBAAqB;;;;CAIjC,CAAC;AAEF,eAAO,MAAM,YAAY;;;;CAIxB,CAAC;AAEF,eAAO,MAAM,2BAA2B;;;;;;;;CAQvC,CAAC;AAEF,eAAO,MAAM,2BAA2B;;;;;CAKvC,CAAC;AAEF,eAAO,MAAM,yBAAyB;;;CAGrC,CAAC"}
|