@bahmni/clinical-app 0.0.1-dev.341 → 0.0.1-dev.343
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-BAe10hfD.js → ConsultationPage-BeKYTYYP.js} +11911 -11741
- package/dist/{DocumentsTable-DLUCAqub-_5zSPjzB.js → DocumentsTable-CheKYrjG-vpgCMI-7.js} +58 -58
- package/dist/{FormsTable-DfcTBBcW-fb_Dj6Vy.js → FormsTable-CvUMV-vH-B3iQM1aV.js} +68 -68
- package/dist/{LNWAZHJI-Cg2p80j5.js → LNWAZHJI-gNfvtQJS.js} +2 -2
- package/dist/{MWZ6AO7Z-CtTBlEpy.js → MWZ6AO7Z-C7azs-8Z.js} +2 -2
- package/dist/{Observations-d1dtuDfC-BZryyXrA.js → Observations-Cpt8CO48-DlVIowqc.js} +37 -37
- package/dist/{YPM2AS64-B8DpDBBB.js → YPM2AS64-DEp7s3Qr.js} +1 -1
- package/dist/components/consultationPad/utils.d.ts.map +1 -1
- package/dist/components/forms/immunization/ImmunizationForm.d.ts.map +1 -1
- package/dist/components/forms/immunization/__tests__/__mocks__/immunizationMocks.d.ts +63 -0
- package/dist/components/forms/immunization/__tests__/__mocks__/immunizationMocks.d.ts.map +1 -1
- package/dist/components/forms/immunization/components/SelectedImmunizationItem.d.ts +2 -0
- package/dist/components/forms/immunization/components/SelectedImmunizationItem.d.ts.map +1 -1
- package/dist/components/forms/immunization/constants.d.ts +1 -0
- package/dist/components/forms/immunization/constants.d.ts.map +1 -1
- package/dist/components/forms/immunization/index.d.ts.map +1 -1
- package/dist/components/forms/immunization/models.d.ts +15 -2
- package/dist/components/forms/immunization/models.d.ts.map +1 -1
- package/dist/components/forms/immunization/stores.d.ts.map +1 -1
- package/dist/components/forms/immunization/utils.d.ts +3 -1
- package/dist/components/forms/immunization/utils.d.ts.map +1 -1
- package/dist/{hook-CEX1xw06.js → hook-CLgCYVOd.js} +1 -1
- package/dist/{index-BlRHR230.js → index-B7ZynpI4.js} +61081 -56811
- package/dist/{index-CGe6v1xL.js → index-CEEpoKY4.js} +7 -7
- package/dist/{index-CAbD6V_D.js → index-Dec9PNZn.js} +13 -13
- package/dist/index.css +1 -1
- package/dist/index.js +1 -1
- package/dist/locales/locale_en.json +95 -66
- package/dist/locales/locale_es.json +88 -64
- package/package.json +1 -1
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { jsxs as S, jsx as u } from "react/jsx-runtime";
|
|
2
|
-
import {
|
|
2
|
+
import { y as k, r as q, u as N, j as x, U as Q, a as j, n as M, o as P, c as w, P as G, X as H, f as z, x as D, g as X, h as J, R as Y, i as W, k as Z, p as ee } from "./index-B7ZynpI4.js";
|
|
3
3
|
import { useQueries as ae, useQuery as te } from "@tanstack/react-query";
|
|
4
|
-
import { useRef as se, useEffect as
|
|
5
|
-
const
|
|
6
|
-
const t =
|
|
4
|
+
import { useRef as se, useEffect as _, useMemo as E } from "react";
|
|
5
|
+
const F = (a, n, d, l, b, r) => {
|
|
6
|
+
const t = X(a, n, b), s = t.value, o = J(s);
|
|
7
7
|
let i = s;
|
|
8
8
|
o === "Image" && (i = /* @__PURE__ */ u(
|
|
9
|
-
|
|
9
|
+
W,
|
|
10
10
|
{
|
|
11
11
|
imageSrc: s,
|
|
12
12
|
alt: s,
|
|
@@ -25,7 +25,7 @@ const C = (a, n, d, l, b, r) => {
|
|
|
25
25
|
provider: t.provider
|
|
26
26
|
}), p = a.display, y = a.observationValue?.isAbnormal ? "abnormal-obs" : "obs", c = l ? `${l}-${y}-${p}-${d}-${n}` : `${y}-${p}-${d}-${n}`;
|
|
27
27
|
return /* @__PURE__ */ u(
|
|
28
|
-
|
|
28
|
+
Y,
|
|
29
29
|
{
|
|
30
30
|
header: t.header,
|
|
31
31
|
value: i,
|
|
@@ -37,13 +37,13 @@ const C = (a, n, d, l, b, r) => {
|
|
|
37
37
|
`obs-${a.id}`
|
|
38
38
|
);
|
|
39
39
|
}, re = (a, n, d, l, b, r, t) => /* @__PURE__ */ u(
|
|
40
|
-
|
|
40
|
+
D,
|
|
41
41
|
{
|
|
42
42
|
title: a.display,
|
|
43
43
|
id: `grouped-obs-${a.display}-${l}`,
|
|
44
44
|
open: d,
|
|
45
45
|
children: a.members?.map(
|
|
46
|
-
(s, o) =>
|
|
46
|
+
(s, o) => F(
|
|
47
47
|
s,
|
|
48
48
|
o,
|
|
49
49
|
b,
|
|
@@ -60,16 +60,16 @@ const C = (a, n, d, l, b, r) => {
|
|
|
60
60
|
hideThumbnail: d
|
|
61
61
|
}) => {
|
|
62
62
|
const { t: l } = N(), b = (r, t, s) => {
|
|
63
|
-
const o =
|
|
63
|
+
const o = z(r.encounterDetails, l);
|
|
64
64
|
return /* @__PURE__ */ S(
|
|
65
|
-
|
|
65
|
+
D,
|
|
66
66
|
{
|
|
67
67
|
title: o,
|
|
68
68
|
id: `encounter-${r.encounterId}`,
|
|
69
69
|
open: t,
|
|
70
70
|
children: [
|
|
71
71
|
r.observations.map(
|
|
72
|
-
(i, m) =>
|
|
72
|
+
(i, m) => F(
|
|
73
73
|
i,
|
|
74
74
|
m,
|
|
75
75
|
s,
|
|
@@ -113,92 +113,92 @@ const C = (a, n, d, l, b, r) => {
|
|
|
113
113
|
conceptNames: d = [],
|
|
114
114
|
conceptUuid: l = [],
|
|
115
115
|
hideThumbnail: b = !1
|
|
116
|
-
} = n, r = se(/* @__PURE__ */ new Set()), t =
|
|
116
|
+
} = n, r = se(/* @__PURE__ */ new Set()), t = k(), { addNotification: s } = q(), { t: o } = N(), i = ae({
|
|
117
117
|
queries: d.map((e) => ({
|
|
118
118
|
queryKey: de(e),
|
|
119
|
-
queryFn: () =>
|
|
119
|
+
queryFn: () => x(e),
|
|
120
120
|
enabled: !!e
|
|
121
121
|
}))
|
|
122
122
|
});
|
|
123
|
-
|
|
123
|
+
_(() => {
|
|
124
124
|
i.forEach((e, h) => {
|
|
125
125
|
if (e.isError && !r.current.has(h)) {
|
|
126
|
-
const
|
|
126
|
+
const K = d[h];
|
|
127
127
|
s({
|
|
128
128
|
title: o("ERROR_DEFAULT_TITLE"),
|
|
129
|
-
message: o("ERROR_FETCHING_CONCEPT", { conceptName:
|
|
129
|
+
message: o("ERROR_FETCHING_CONCEPT", { conceptName: K }),
|
|
130
130
|
type: "error"
|
|
131
131
|
}), r.current.add(h);
|
|
132
132
|
} else e.isError || r.current.delete(h);
|
|
133
133
|
});
|
|
134
134
|
}, [i, d]);
|
|
135
|
-
const m =
|
|
135
|
+
const m = E(() => i.map((e) => e.data?.uuid).filter((e) => !!e), [i]), p = E(() => [.../* @__PURE__ */ new Set([...m, ...l])], [m, l]), y = E(() => d.length === 0 ? !0 : i.every((e) => !e.isLoading), [i, d.length]), {
|
|
136
136
|
data: c,
|
|
137
|
-
isLoading:
|
|
137
|
+
isLoading: L,
|
|
138
138
|
isError: T,
|
|
139
|
-
refetch:
|
|
139
|
+
refetch: g
|
|
140
140
|
} = te({
|
|
141
141
|
queryKey: le(t, p),
|
|
142
|
-
queryFn: () =>
|
|
142
|
+
queryFn: () => Q(t, p),
|
|
143
143
|
enabled: !!t && p.length > 0 && y
|
|
144
144
|
});
|
|
145
|
-
|
|
145
|
+
j(
|
|
146
146
|
(e) => {
|
|
147
147
|
e.patientUUID === t && e.updatedConcepts.size > 0 && [...e.updatedConcepts.keys()].some(
|
|
148
148
|
(h) => p.includes(h)
|
|
149
|
-
) &&
|
|
149
|
+
) && g();
|
|
150
150
|
},
|
|
151
|
-
[t,
|
|
152
|
-
),
|
|
151
|
+
[t, g]
|
|
152
|
+
), _(() => {
|
|
153
153
|
T && s({
|
|
154
154
|
title: o("ERROR_DEFAULT_TITLE"),
|
|
155
155
|
message: o("ERROR_FETCHING_OBSERVATIONS"),
|
|
156
156
|
type: "error"
|
|
157
157
|
});
|
|
158
158
|
}, [T]);
|
|
159
|
-
const
|
|
159
|
+
const f = E(() => {
|
|
160
160
|
if (!c) return [];
|
|
161
|
-
const e =
|
|
161
|
+
const e = M(c), h = P(e);
|
|
162
162
|
return w(h);
|
|
163
|
-
}, [c]),
|
|
163
|
+
}, [c]), U = [
|
|
164
164
|
{ key: "name", header: "name" },
|
|
165
165
|
{ key: "value", header: "value" },
|
|
166
166
|
{ key: "form", header: "form" }
|
|
167
|
-
], O =
|
|
167
|
+
], O = L || !y, I = T && y, A = (!c || c.entry?.length === 0 || p.length === 0) && y, C = I ? o("ERROR_FETCHING_OBSERVATIONS") : null, B = A ? o("NO_OBSERVATIONS_FOUND") : void 0, V = f.length > 0 && !O && !I, R = n.titleTranslationKey, v = R ? o(R) : "";
|
|
168
168
|
return /* @__PURE__ */ S(
|
|
169
169
|
"div",
|
|
170
170
|
{
|
|
171
171
|
id: "observations",
|
|
172
|
-
"data-testid":
|
|
172
|
+
"data-testid": R ? `observations-${v}` : "observations",
|
|
173
173
|
"aria-label": "observations-aria-label",
|
|
174
174
|
className: $.observations,
|
|
175
175
|
children: [
|
|
176
176
|
/* @__PURE__ */ u(
|
|
177
|
-
|
|
177
|
+
G,
|
|
178
178
|
{
|
|
179
179
|
id: "observations-title",
|
|
180
|
-
testId:
|
|
180
|
+
testId: R ? `observations-title-${v}` : "observations-title",
|
|
181
181
|
title: v,
|
|
182
182
|
className: $.title,
|
|
183
183
|
children: /* @__PURE__ */ u("p", { children: v })
|
|
184
184
|
}
|
|
185
185
|
),
|
|
186
|
-
|
|
186
|
+
V ? /* @__PURE__ */ u(
|
|
187
187
|
oe,
|
|
188
188
|
{
|
|
189
|
-
groupedData:
|
|
189
|
+
groupedData: f,
|
|
190
190
|
title: v,
|
|
191
191
|
hideThumbnail: b
|
|
192
192
|
}
|
|
193
193
|
) : /* @__PURE__ */ u(
|
|
194
|
-
|
|
194
|
+
H,
|
|
195
195
|
{
|
|
196
|
-
headers:
|
|
196
|
+
headers: U,
|
|
197
197
|
rows: [],
|
|
198
198
|
ariaLabel: o("OBSERVATIONS"),
|
|
199
199
|
loading: O,
|
|
200
|
-
errorStateMessage:
|
|
201
|
-
emptyStateMessage:
|
|
200
|
+
errorStateMessage: C,
|
|
201
|
+
emptyStateMessage: B,
|
|
202
202
|
dataTestId: "observations-table"
|
|
203
203
|
}
|
|
204
204
|
)
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { bL as we, bM as z, bN as xt, bO as B, bJ as q, bK as y, bP as Ro, bQ as ye, bR as R, bS as _, bT as k, bU as N, bV as A, bW as bs, bX as ir, bY as $e, bZ as U, b_ as Hn, b$ as Vn, c0 as dt, c1 as D, c2 as xs, c3 as cn, c4 as Be, c5 as ws, c6 as qt, c7 as zt, c8 as $s, c9 as Cs, ca as $n, cb as Ss, cc as Nr, cd as Bt, ce as zo, cf as ks, cg as Es, ch as j, ci as Ur, cj as Ms, ck as Ds, cl as sr, cm as As, cn as Ts, co as zn, cp as Fs, cq as Is, cr as Z, cs as Ps, ct as Ls } from "./index-
|
|
1
|
+
import { bL as we, bM as z, bN as xt, bO as B, bJ as q, bK as y, bP as Ro, bQ as ye, bR as R, bS as _, bT as k, bU as N, bV as A, bW as bs, bX as ir, bY as $e, bZ as U, b_ as Hn, b$ as Vn, c0 as dt, c1 as D, c2 as xs, c3 as cn, c4 as Be, c5 as ws, c6 as qt, c7 as zt, c8 as $s, c9 as Cs, ca as $n, cb as Ss, cc as Nr, cd as Bt, ce as zo, cf as ks, cg as Es, ch as j, ci as Ur, cj as Ms, ck as Ds, cl as sr, cm as As, cn as Ts, co as zn, cp as Fs, cq as Is, cr as Z, cs as Ps, ct as Ls } from "./index-B7ZynpI4.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":"utils.d.ts","sourceRoot":"","sources":["../../../src/components/consultationPad/utils.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,uCAAuC,CAAC;AAE7E,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AAI7C,wBAAgB,0BAA0B,CACxC,MAAM,EAAE,eAAe,GAAG,SAAS,GAClC,YAAY,EAAE,CA6BhB;AAED,wBAAgB,gBAAgB,CAC9B,QAAQ,EAAE,YAAY,EAAE,EACxB,aAAa,EAAE,MAAM,EACrB,WAAW,CAAC,EAAE,MAAM,GACnB,YAAY,EAAE,CAiBhB;AAED,wBAAgB,uBAAuB,CAAC,OAAO,EAAE,YAAY,EAAE;;;;;;;
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../src/components/consultationPad/utils.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,uCAAuC,CAAC;AAE7E,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AAI7C,wBAAgB,0BAA0B,CACxC,MAAM,EAAE,eAAe,GAAG,SAAS,GAClC,YAAY,EAAE,CA6BhB;AAED,wBAAgB,gBAAgB,CAC9B,QAAQ,EAAE,YAAY,EAAE,EACxB,aAAa,EAAE,MAAM,EACrB,WAAW,CAAC,EAAE,MAAM,GACnB,YAAY,EAAE,CAiBhB;AAED,wBAAgB,uBAAuB,CAAC,OAAO,EAAE,YAAY,EAAE;;;;;;;EAiC9D"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ImmunizationForm.d.ts","sourceRoot":"","sources":["../../../../src/components/forms/immunization/ImmunizationForm.tsx"],"names":[],"mappings":"AAoBA,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,mCAAmC,CAAC;AAEtF,OAAO,KAAK,EAAE,YAAY,IAAI,0BAA0B,EAAE,MAAM,0CAA0C,CAAC;
|
|
1
|
+
{"version":3,"file":"ImmunizationForm.d.ts","sourceRoot":"","sources":["../../../../src/components/forms/immunization/ImmunizationForm.tsx"],"names":[],"mappings":"AAoBA,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,mCAAmC,CAAC;AAEtF,OAAO,KAAK,EAAE,YAAY,IAAI,0BAA0B,EAAE,MAAM,0CAA0C,CAAC;AAkB3G,QAAA,MAAM,gBAAgB,GAAI,uDAGvB;IACD,4BAA4B,CAAC,EAAE,4BAA4B,CAAC;IAC5D,kBAAkB,CAAC,EAAE,0BAA0B,CAAC;CACjD,4CAmZA,CAAC;AAEF,eAAe,gBAAgB,CAAC"}
|
|
@@ -14,6 +14,19 @@ export declare const mockImmunizationInputControlConfig: {
|
|
|
14
14
|
administeredLocationTag: string;
|
|
15
15
|
};
|
|
16
16
|
};
|
|
17
|
+
export declare const mockMisconfiguredHistoryInputControlConfig: {
|
|
18
|
+
metadata: {
|
|
19
|
+
statusReasonValueSetUuid: string;
|
|
20
|
+
routeConceptUuid: string;
|
|
21
|
+
vaccineConceptSetUuid: string;
|
|
22
|
+
siteConceptUuid: string;
|
|
23
|
+
administeredLocationTag: string;
|
|
24
|
+
};
|
|
25
|
+
type: string;
|
|
26
|
+
encounterTypes: string[];
|
|
27
|
+
privileges: string[];
|
|
28
|
+
attributes: InputControlAttributes[];
|
|
29
|
+
};
|
|
17
30
|
export declare const mockAdministrationInputControlConfigAllowed: {
|
|
18
31
|
type: string;
|
|
19
32
|
encounterTypes: string[];
|
|
@@ -39,6 +52,35 @@ export declare const mockAdministrationInputControlConfig: {
|
|
|
39
52
|
privileges: string[];
|
|
40
53
|
attributes: InputControlAttributes[];
|
|
41
54
|
};
|
|
55
|
+
export declare const mockWaiverInputControlConfig: {
|
|
56
|
+
encounterTypes: string[];
|
|
57
|
+
privileges: string[];
|
|
58
|
+
attributes: {
|
|
59
|
+
name: string;
|
|
60
|
+
required: boolean;
|
|
61
|
+
}[];
|
|
62
|
+
metadata: {
|
|
63
|
+
vaccineConceptSetUuid: string;
|
|
64
|
+
statusReasonValueSetUuid: string;
|
|
65
|
+
otherReasonConceptUuid: string;
|
|
66
|
+
};
|
|
67
|
+
type: string;
|
|
68
|
+
};
|
|
69
|
+
export declare const mockMisconfiguredWaiverInputControlConfig: {
|
|
70
|
+
attributes: InputControlAttributes[];
|
|
71
|
+
metadata: {
|
|
72
|
+
fetchStockBatches: boolean;
|
|
73
|
+
statusReasonValueSetUuid: string;
|
|
74
|
+
otherReasonConceptUuid: string;
|
|
75
|
+
routeConceptUuid: string;
|
|
76
|
+
vaccineConceptSetUuid: string;
|
|
77
|
+
siteConceptUuid: string;
|
|
78
|
+
administeredLocationTag: string;
|
|
79
|
+
};
|
|
80
|
+
type: string;
|
|
81
|
+
encounterTypes: string[];
|
|
82
|
+
privileges: string[];
|
|
83
|
+
};
|
|
42
84
|
export declare const mockImmunizationInputControlConfigWithFetchStockBatches: {
|
|
43
85
|
metadata: {
|
|
44
86
|
fetchStockBatches: boolean;
|
|
@@ -144,6 +186,18 @@ export declare const mockSitesValueSet: {
|
|
|
144
186
|
timestamp: string;
|
|
145
187
|
};
|
|
146
188
|
};
|
|
189
|
+
export declare const OTHER_REASON_CONCEPT_UUID = "other-uuid";
|
|
190
|
+
export declare const mockStatusReasonsValueSet: {
|
|
191
|
+
resourceType: "ValueSet";
|
|
192
|
+
status: "active";
|
|
193
|
+
expansion: {
|
|
194
|
+
contains?: {
|
|
195
|
+
code?: string;
|
|
196
|
+
display: string;
|
|
197
|
+
}[] | undefined;
|
|
198
|
+
timestamp: string;
|
|
199
|
+
};
|
|
200
|
+
};
|
|
147
201
|
export declare const mockLocations: Location[];
|
|
148
202
|
export declare const mockLocationsWithChildren: Location[];
|
|
149
203
|
export declare const mockImmunizationEntry: ImmunizationInputEntry;
|
|
@@ -163,6 +217,11 @@ export declare const mockVaccineDrugs: Medication[];
|
|
|
163
217
|
export declare const mockCovid19VaccineDrug: Medication;
|
|
164
218
|
export declare const mockInfluenzaVaccineDrug: Medication;
|
|
165
219
|
export declare const mockCovid19VaccineDrugs: Medication[];
|
|
220
|
+
export declare const mockCovidVaccineMedicationWithDisplay: Medication;
|
|
221
|
+
export declare const mockDuplicateCovidVaccineMedication: Medication;
|
|
222
|
+
export declare const mockFluVaccineMedicationWithDisplay: Medication;
|
|
223
|
+
export declare const mockVaccineMedicationWithoutCoding: Medication;
|
|
224
|
+
export declare const mockVaccineMedicationsWithDisplay: Medication[];
|
|
166
225
|
export declare const mockVaccinationBundle: {
|
|
167
226
|
resourceType: string;
|
|
168
227
|
type: string;
|
|
@@ -179,6 +238,7 @@ export declare const mockMixedVaccinationBundle: {
|
|
|
179
238
|
};
|
|
180
239
|
export declare const mockEncounterSubject: Reference;
|
|
181
240
|
export declare const mockImmunizationEntryComplete: ImmunizationInputEntry;
|
|
241
|
+
export declare const mockImmunizationEntryWaiver: ImmunizationInputEntry;
|
|
182
242
|
export declare const mockImmunizationEntryWithBasedOn: ImmunizationInputEntry;
|
|
183
243
|
export declare const mockImmunizationEntryWithBasedOnNoDrug: ImmunizationInputEntry;
|
|
184
244
|
export declare const mockImmunizationEntryWithBasedOnAndNullFields: ImmunizationInputEntry;
|
|
@@ -200,9 +260,11 @@ export declare const mockVaccinationBundleWithCovid: {
|
|
|
200
260
|
export declare const mockStore: {
|
|
201
261
|
selectedImmunizations: never[];
|
|
202
262
|
attributes: undefined;
|
|
263
|
+
waiverReasonConfig: undefined;
|
|
203
264
|
addImmunization: any;
|
|
204
265
|
removeImmunization: any;
|
|
205
266
|
setAttributes: any;
|
|
267
|
+
setWaiverReasonConfig: any;
|
|
206
268
|
updateAdministeredOn: any;
|
|
207
269
|
updateVaccineDrug: any;
|
|
208
270
|
updateAdministeredLocation: any;
|
|
@@ -213,6 +275,7 @@ export declare const mockStore: {
|
|
|
213
275
|
updateBatchNumber: any;
|
|
214
276
|
updateStockLocation: any;
|
|
215
277
|
updateDoseSequence: any;
|
|
278
|
+
updateStatusReason: any;
|
|
216
279
|
updateNote: any;
|
|
217
280
|
validateAll: any;
|
|
218
281
|
reset: any;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"immunizationMocks.d.ts","sourceRoot":"","sources":["../../../../../../src/components/forms/immunization/__tests__/__mocks__/immunizationMocks.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,KAAK,sBAAsB,EAAE,MAAM,kBAAkB,CAAC;AACzE,OAAO,EAAE,UAAU,EAAE,iBAAiB,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAEnE,OAAO,EAAE,sBAAsB,EAAE,MAAM,gDAAgD,CAAC;AACxF,OAAO,EAAE,sBAAsB,EAAE,MAAM,cAAc,CAAC;AAwDtD,eAAO,MAAM,kCAAkC;;;;;;;;;;;CAG9C,CAAC;AAEF,eAAO,MAAM,2CAA2C;;;;;;;;;;;CAGvD,CAAC;AAEF,eAAO,MAAM,oCAAoC;;;;;;;;;;;;CAIhD,CAAC;AAEF,eAAO,MAAM,uDAAuD;;;;;;;;;;;;CAMnE,CAAC;AAEF,eAAO,MAAM,0CAA0C;;;;;;;;;;;;;;;;CAStD,CAAC;AAEF,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;;;;;CAgBrC,CAAC;AAEF,eAAO,MAAM,mBAAmB;;;;;
|
|
1
|
+
{"version":3,"file":"immunizationMocks.d.ts","sourceRoot":"","sources":["../../../../../../src/components/forms/immunization/__tests__/__mocks__/immunizationMocks.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,KAAK,sBAAsB,EAAE,MAAM,kBAAkB,CAAC;AACzE,OAAO,EAAE,UAAU,EAAE,iBAAiB,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAEnE,OAAO,EAAE,sBAAsB,EAAE,MAAM,gDAAgD,CAAC;AACxF,OAAO,EAAE,sBAAsB,EAAE,MAAM,cAAc,CAAC;AAwDtD,eAAO,MAAM,kCAAkC;;;;;;;;;;;CAG9C,CAAC;AAEF,eAAO,MAAM,0CAA0C;;;;;;;;;;;;CAOtD,CAAC;AAEF,eAAO,MAAM,2CAA2C;;;;;;;;;;;CAGvD,CAAC;AAEF,eAAO,MAAM,oCAAoC;;;;;;;;;;;;CAIhD,CAAC;AAEF,eAAO,MAAM,4BAA4B;;;;;;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;CAI1C,CAAC;AAEF,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;CAyBrB,CAAC;AAEF,eAAO,MAAM,WAAW,oCAKvB,CAAC;AAEF,eAAO,MAAM,mBAAmB,oCAM/B,CAAC"}
|
|
@@ -7,6 +7,8 @@ interface SelectedImmunizationItemProps {
|
|
|
7
7
|
immunization: ImmunizationInputEntry;
|
|
8
8
|
routes: ValueSet | undefined;
|
|
9
9
|
sites: ValueSet | undefined;
|
|
10
|
+
statusReasons?: ValueSet;
|
|
11
|
+
otherReasonConceptUuid?: string;
|
|
10
12
|
administeredLocationTag: Location[] | undefined;
|
|
11
13
|
attributes: InputControlAttributes[] | undefined;
|
|
12
14
|
vaccineDrugs: Medication[] | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SelectedImmunizationItem.d.ts","sourceRoot":"","sources":["../../../../../src/components/forms/immunization/components/SelectedImmunizationItem.tsx"],"names":[],"mappings":"AAWA,OAAO,EAEL,QAAQ,EACR,KAAK,sBAAsB,EAC3B,KAAK,QAAQ,EAEd,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AAC/C,OAAO,KAAuC,MAAM,OAAO,CAAC;AAC5D,OAAO,EAAE,sBAAsB,EAAE,MAAM,6CAA6C,CAAC;AACrF,OAAO,EACL,sBAAsB,EACtB,oBAAoB,EACpB,uBAAuB,EACxB,MAAM,WAAW,CAAC;
|
|
1
|
+
{"version":3,"file":"SelectedImmunizationItem.d.ts","sourceRoot":"","sources":["../../../../../src/components/forms/immunization/components/SelectedImmunizationItem.tsx"],"names":[],"mappings":"AAWA,OAAO,EAEL,QAAQ,EACR,KAAK,sBAAsB,EAC3B,KAAK,QAAQ,EAEd,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AAC/C,OAAO,KAAuC,MAAM,OAAO,CAAC;AAC5D,OAAO,EAAE,sBAAsB,EAAE,MAAM,6CAA6C,CAAC;AACrF,OAAO,EACL,sBAAsB,EACtB,oBAAoB,EACpB,uBAAuB,EACxB,MAAM,WAAW,CAAC;AAanB,UAAU,6BAA6B;IACrC,YAAY,EAAE,sBAAsB,CAAC;IACrC,MAAM,EAAE,QAAQ,GAAG,SAAS,CAAC;IAC7B,KAAK,EAAE,QAAQ,GAAG,SAAS,CAAC;IAC5B,aAAa,CAAC,EAAE,QAAQ,CAAC;IACzB,sBAAsB,CAAC,EAAE,MAAM,CAAC;IAChC,uBAAuB,EAAE,QAAQ,EAAE,GAAG,SAAS,CAAC;IAChD,UAAU,EAAE,sBAAsB,EAAE,GAAG,SAAS,CAAC;IACjD,YAAY,EAAE,UAAU,EAAE,GAAG,SAAS,CAAC;IACvC,QAAQ,EAAE,oBAAoB,CAAC;IAC/B,eAAe,EAAE,sBAAsB,GAAG,SAAS,CAAC;IACpD,WAAW,EAAE,OAAO,CAAC;IACrB,mBAAmB,EAAE,OAAO,CAAC;IAC7B,SAAS,CAAC,EAAE,QAAQ,EAAE,CAAC;CACxB;AAED,MAAM,WAAW,qBAAqB;IACpC,YAAY,CAAC,EAAE,uBAAuB,GAAG,IAAI,CAAC;IAC9C,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CAC5B;AAED,QAAA,MAAM,wBAAwB,EAAE,KAAK,CAAC,EAAE,CAAC,6BAA6B,CAojBrE,CAAC;AAEF,eAAe,wBAAwB,CAAC"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
export declare const IMMUNIZATION_HISTORY_INPUT_CONTROL_KEY = "immunizationHistory";
|
|
2
2
|
export declare const IMMUNIZATION_ADMINISTRATION_INPUT_CONTROL_KEY = "immunizationAdministration";
|
|
3
|
+
export declare const IMMUNIZATION_WAIVER_INPUT_CONTROL_KEY = "immunizationWaiver";
|
|
3
4
|
export declare const ADMINISTERED_PRODUCT_EXTENSION_URL = "http://fhir.bahmni.org/ext/immunization/administeredProduct";
|
|
4
5
|
export declare const BASED_ON_EXTENSION_URL = "http://fhir.bahmni.org/ext/immunization/basedOn";
|
|
5
6
|
export declare const STOCK_LOCATION_EXTENSION_URL = "http://fhir.bahmni.org/ext/immunization/stockLocation";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../../src/components/forms/immunization/constants.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,sCAAsC,wBAAwB,CAAC;AAC5E,eAAO,MAAM,6CAA6C,+BAC5B,CAAC;AAC/B,eAAO,MAAM,kCAAkC,gEACgB,CAAC;AAChE,eAAO,MAAM,sBAAsB,oDACgB,CAAC;AACpD,eAAO,MAAM,4BAA4B,0DACgB,CAAC;AAC1D,eAAO,MAAM,wBAAwB,kDACY,CAAC;AAClD,eAAO,MAAM,sBAAsB,OAAO,CAAC;AAC3C,eAAO,MAAM,yBAAyB,sBAAsB,CAAC"}
|
|
1
|
+
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../../src/components/forms/immunization/constants.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,sCAAsC,wBAAwB,CAAC;AAC5E,eAAO,MAAM,6CAA6C,+BAC5B,CAAC;AAC/B,eAAO,MAAM,qCAAqC,uBAAuB,CAAC;AAC1E,eAAO,MAAM,kCAAkC,gEACgB,CAAC;AAChE,eAAO,MAAM,sBAAsB,oDACgB,CAAC;AACpD,eAAO,MAAM,4BAA4B,0DACgB,CAAC;AAC1D,eAAO,MAAM,wBAAwB,kDACY,CAAC;AAClD,eAAO,MAAM,sBAAsB,OAAO,CAAC;AAC3C,eAAO,MAAM,yBAAyB,sBAAsB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/forms/immunization/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/forms/immunization/index.ts"],"names":[],"mappings":"AA2CA,OAAO,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { CDSCard } from '@bahmni/services';
|
|
2
2
|
import { Reference } from 'fhir/r4';
|
|
3
3
|
import { InputControlAttributes } from '../../../providers/clinicalConfig/models';
|
|
4
|
-
import { IMMUNIZATION_ADMINISTRATION_INPUT_CONTROL_KEY, IMMUNIZATION_HISTORY_INPUT_CONTROL_KEY } from './constants';
|
|
5
|
-
export type ImmunizationStoreKey = typeof IMMUNIZATION_HISTORY_INPUT_CONTROL_KEY | typeof IMMUNIZATION_ADMINISTRATION_INPUT_CONTROL_KEY;
|
|
4
|
+
import { IMMUNIZATION_ADMINISTRATION_INPUT_CONTROL_KEY, IMMUNIZATION_HISTORY_INPUT_CONTROL_KEY, IMMUNIZATION_WAIVER_INPUT_CONTROL_KEY } from './constants';
|
|
5
|
+
export type ImmunizationStoreKey = typeof IMMUNIZATION_HISTORY_INPUT_CONTROL_KEY | typeof IMMUNIZATION_ADMINISTRATION_INPUT_CONTROL_KEY | typeof IMMUNIZATION_WAIVER_INPUT_CONTROL_KEY;
|
|
6
6
|
export interface ImmunizationDrug {
|
|
7
7
|
code?: string;
|
|
8
8
|
display: string;
|
|
@@ -11,6 +11,10 @@ export interface ImmunizationLocation {
|
|
|
11
11
|
uuid?: string;
|
|
12
12
|
display: string;
|
|
13
13
|
}
|
|
14
|
+
export interface ImmunizationStatusReason {
|
|
15
|
+
code: string;
|
|
16
|
+
display: string;
|
|
17
|
+
}
|
|
14
18
|
export interface ImmunizationInputEntry {
|
|
15
19
|
id: string;
|
|
16
20
|
drug: ImmunizationDrug | null;
|
|
@@ -27,6 +31,7 @@ export interface ImmunizationInputEntry {
|
|
|
27
31
|
batchNumber: string | null;
|
|
28
32
|
stockLocation: string | null;
|
|
29
33
|
doseSequence: number | null;
|
|
34
|
+
statusReason: ImmunizationStatusReason | null;
|
|
30
35
|
note?: string;
|
|
31
36
|
basedOnReference?: string | null;
|
|
32
37
|
cdsCards?: CDSCard[];
|
|
@@ -40,6 +45,7 @@ export interface ImmunizationInputEntry {
|
|
|
40
45
|
manufacturer?: string;
|
|
41
46
|
batchNumber?: string;
|
|
42
47
|
doseSequence?: string;
|
|
48
|
+
statusReason?: string;
|
|
43
49
|
note?: string;
|
|
44
50
|
};
|
|
45
51
|
hasBeenValidated: boolean;
|
|
@@ -65,10 +71,16 @@ export interface CreateImmunizationBundleEntriesParams {
|
|
|
65
71
|
encounterReference: string;
|
|
66
72
|
practitionerUUID: string;
|
|
67
73
|
isAdministration: boolean;
|
|
74
|
+
isWaiver: boolean;
|
|
75
|
+
}
|
|
76
|
+
export interface WaiverReasonConfig {
|
|
77
|
+
otherReasonConceptUuid?: string;
|
|
68
78
|
}
|
|
69
79
|
export interface ImmunizationHistoryState {
|
|
70
80
|
selectedImmunizations: ImmunizationInputEntry[];
|
|
71
81
|
attributes: InputControlAttributes[] | undefined;
|
|
82
|
+
waiverReasonConfig: WaiverReasonConfig | undefined;
|
|
83
|
+
setWaiverReasonConfig: (config: WaiverReasonConfig) => void;
|
|
72
84
|
addImmunization: (vaccineCode: {
|
|
73
85
|
code: string;
|
|
74
86
|
display: string;
|
|
@@ -90,6 +102,7 @@ export interface ImmunizationHistoryState {
|
|
|
90
102
|
updateBatchNumber: (id: string, value: string) => void;
|
|
91
103
|
updateStockLocation: (id: string, value: string | null) => void;
|
|
92
104
|
updateDoseSequence: (id: string, value: number | null) => void;
|
|
105
|
+
updateStatusReason: (id: string, value: ImmunizationStatusReason | null) => void;
|
|
93
106
|
updateNote: (id: string, value: string) => void;
|
|
94
107
|
validateAll: () => boolean;
|
|
95
108
|
updateItemCDSCards: (itemId: string, cards: CDSCard[]) => void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"models.d.ts","sourceRoot":"","sources":["../../../../src/components/forms/immunization/models.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAChD,OAAO,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AACpC,OAAO,EAAE,sBAAsB,EAAE,MAAM,0CAA0C,CAAC;AAClF,OAAO,EACL,6CAA6C,EAC7C,sCAAsC,
|
|
1
|
+
{"version":3,"file":"models.d.ts","sourceRoot":"","sources":["../../../../src/components/forms/immunization/models.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAChD,OAAO,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AACpC,OAAO,EAAE,sBAAsB,EAAE,MAAM,0CAA0C,CAAC;AAClF,OAAO,EACL,6CAA6C,EAC7C,sCAAsC,EACtC,qCAAqC,EACtC,MAAM,aAAa,CAAC;AAErB,MAAM,MAAM,oBAAoB,GAC5B,OAAO,sCAAsC,GAC7C,OAAO,6CAA6C,GACpD,OAAO,qCAAqC,CAAC;AAEjD,MAAM,WAAW,gBAAgB;IAC/B,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,WAAW,oBAAoB;IACnC,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,WAAW,wBAAwB;IACvC,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,WAAW,sBAAsB;IACrC,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,gBAAgB,GAAG,IAAI,CAAC;IAC9B,WAAW,EAAE;QACX,IAAI,EAAE,MAAM,CAAC;QACb,OAAO,EAAE,MAAM,CAAC;KACjB,CAAC;IACF,cAAc,EAAE,IAAI,GAAG,IAAI,CAAC;IAC5B,oBAAoB,EAAE,oBAAoB,GAAG,IAAI,CAAC;IAClD,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,IAAI,EAAE,MAAM,GAA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ores.d.ts","sourceRoot":"","sources":["../../../../src/components/forms/immunization/stores.ts"],"names":[],"mappings":"AAIA,OAAO,EAEL,wBAAwB,
|
|
1
|
+
{"version":3,"file":"stores.d.ts","sourceRoot":"","sources":["../../../../src/components/forms/immunization/stores.ts"],"names":[],"mappings":"AAIA,OAAO,EAEL,wBAAwB,EAIxB,oBAAoB,EAErB,MAAM,UAAU,CAAC;AAGlB,KAAK,2BAA2B,GAAG,UAAU,CAC3C,OAAO,8BAA8B,CACtC,CAAC;AA2RF,iBAAS,8BAA8B,yDAqMtC;AAED,wBAAgB,oBAAoB,CAClC,GAAG,EAAE,oBAAoB,GACxB,2BAA2B,CAK7B;AAED,wBAAgB,2BAA2B,CACzC,GAAG,EAAE,oBAAoB,GACxB,wBAAwB,CAE1B"}
|
|
@@ -4,6 +4,8 @@ import { InputControlAttributes } from '../../../providers/clinicalConfig/models
|
|
|
4
4
|
import { BatchNumberComboBoxItem, CreateImmunizationBundleEntriesParams, LocationComboBoxItem, ValueSetComboBoxItem } from './models';
|
|
5
5
|
export declare function findAttr(name: string, attributes: InputControlAttributes[] | undefined): InputControlAttributes | undefined;
|
|
6
6
|
export declare function getValueSetComboBoxItems(searchTerm: string, valueSet: ValueSet | undefined, emptyMessage: string): ValueSetComboBoxItem[];
|
|
7
|
+
export declare function getAllValueSetComboBoxItems(searchTerm: string, valueSet: ValueSet | undefined, emptyMessage: string): ValueSetComboBoxItem[];
|
|
8
|
+
export declare function getVaccineComboBoxItems(searchTerm: string, medications: Medication[] | undefined, emptyMessage: string): ValueSetComboBoxItem[];
|
|
7
9
|
export declare function getMedicationComboBoxItems(searchTerm: string, medications: Medication[] | undefined, vaccineCode: string, emptyMessage: string): ValueSetComboBoxItem[];
|
|
8
10
|
export declare function getBatchNumberComboBoxItems(availableStocks: AvailableStockResponse | undefined, errorMessage?: string, emptyMessage?: string): BatchNumberComboBoxItem[];
|
|
9
11
|
export declare function formatBatchItemDisplay(item: BatchNumberComboBoxItem | null, t: (key: string) => string): string;
|
|
@@ -37,5 +39,5 @@ export declare function buildBasedOnImmunizationEntry(basedOn: MedicationRequest
|
|
|
37
39
|
basedOnReference: string | undefined;
|
|
38
40
|
};
|
|
39
41
|
};
|
|
40
|
-
export declare function createImmunizationBundleEntries({ selectedImmunizations, encounterSubject, encounterReference, practitionerUUID, isAdministration, }: CreateImmunizationBundleEntriesParams): BundleEntry[];
|
|
42
|
+
export declare function createImmunizationBundleEntries({ selectedImmunizations, encounterSubject, encounterReference, practitionerUUID, isAdministration, isWaiver, }: CreateImmunizationBundleEntriesParams): BundleEntry[];
|
|
41
43
|
//# sourceMappingURL=utils.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../src/components/forms/immunization/utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAIL,QAAQ,EACR,KAAK,sBAAsB,EAC5B,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EACL,WAAW,EAGX,UAAU,EACV,iBAAiB,EACjB,QAAQ,EACR,yBAAyB,EAC1B,MAAM,SAAS,CAAC;AACjB,OAAO,EAAE,sBAAsB,EAAE,MAAM,0CAA0C,CAAC;AAclF,OAAO,EACL,uBAAuB,EACvB,qCAAqC,EAGrC,oBAAoB,EACpB,oBAAoB,EACrB,MAAM,UAAU,CAAC;AAgDlB,wBAAgB,QAAQ,CACtB,IAAI,EAAE,MAAM,EACZ,UAAU,EAAE,sBAAsB,EAAE,GAAG,SAAS,GAC/C,sBAAsB,GAAG,SAAS,CAEpC;AAED,wBAAgB,wBAAwB,CACtC,UAAU,EAAE,MAAM,EAClB,QAAQ,EAAE,QAAQ,GAAG,SAAS,EAC9B,YAAY,EAAE,MAAM,GACnB,oBAAoB,EAAE,CAWxB;AAED,wBAAgB,0BAA0B,CACxC,UAAU,EAAE,MAAM,EAClB,WAAW,EAAE,UAAU,EAAE,GAAG,SAAS,EACrC,WAAW,EAAE,MAAM,EACnB,YAAY,EAAE,MAAM,G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