@bahmni/clinical-app 0.0.1-dev.227 → 0.0.1-dev.228
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-shXAD18V-CLy1uCRP.js → DocumentsTable-Dmmx1Tly-HT1IKtpP.js} +1 -1
- package/dist/{FormsTable-c_7c8Ui_-D2rS8QNB.js → FormsTable-BJZSRY_P-CIzujjAS.js} +24 -24
- package/dist/{LNWAZHJI-C5_I8BNt.js → LNWAZHJI-CTBcK3dm.js} +4 -4
- package/dist/{MWZ6AO7Z-JKmkvujq.js → MWZ6AO7Z-4z3Ut9mc.js} +3 -3
- package/dist/{Observations-l5ywNrSr-g-pYEiY3.js → Observations-Dj2QMfNh-Cskv3r-W.js} +19 -19
- package/dist/{YPM2AS64-Y5VFVly-.js → YPM2AS64-CrwxRaZi.js} +1 -1
- package/dist/components/forms/immunizationHistory/__tests__/__mocks__/immunizationHistoryMocks.d.ts +4 -3
- package/dist/components/forms/immunizationHistory/__tests__/__mocks__/immunizationHistoryMocks.d.ts.map +1 -1
- package/dist/components/forms/immunizationHistory/components/SelectedImmunizationItem.d.ts.map +1 -1
- package/dist/components/forms/immunizationHistory/models.d.ts +3 -0
- package/dist/components/forms/immunizationHistory/models.d.ts.map +1 -1
- package/dist/components/forms/immunizationHistory/stores.d.ts.map +1 -1
- package/dist/components/forms/immunizationHistory/utils.d.ts.map +1 -1
- package/dist/{index-BFhERFMd.js → index-B2p_rK5A.js} +27983 -27896
- package/dist/index.css +1 -1
- package/dist/index.js +1 -1
- package/dist/locales/locale_en.json +4 -1
- package/dist/locales/locale_es.json +3 -0
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as r, jsxs as p, Fragment as Y } from "react/jsx-runtime";
|
|
2
|
-
import { t as W, u as K, r as Q, a as J, M as X, N as Z, o as ee, s as te,
|
|
2
|
+
import { t as W, u as K, r as Q, a as J, M as X, N as Z, o as ee, s as te, l as ae } from "./index-B2p_rK5A.js";
|
|
3
3
|
import { useState as l, useCallback as h, useEffect as f, useMemo as T } from "react";
|
|
4
4
|
const ne = "_documentsTableBody_1voj8_1", oe = "_viewAttachmentsLink_1voj8_11", re = "_documentViewerContainer_1voj8_15", de = "_attachmentItem_1voj8_23", se = "_attachmentCounter_1voj8_27", ce = "_attachmentError_1voj8_36", ie = "_documentIframe_1voj8_44", le = "_documentImage_1voj8_50", d = {
|
|
5
5
|
documentsTableBody: ne,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { jsx as o, jsxs as
|
|
2
|
-
import { u as
|
|
1
|
+
import { jsx as o, jsxs as W, Fragment as X } from "react/jsx-runtime";
|
|
2
|
+
import { u as Z, t as ee, m as re, b as ae, a as c, k as te, V as U, N as se, M as oe, o as C, G as ne, J as de, s as ie, P as ue, c as me, d as le, e as ce, i as fe, f as ye } from "./index-B2p_rK5A.js";
|
|
3
3
|
import { useState as S, useMemo as d, useCallback as f } from "react";
|
|
4
4
|
const be = "_formsTableBody_81hra_1", Ne = "_customAccordianItem_81hra_6", O = {
|
|
5
5
|
formsTableBody: be,
|
|
@@ -11,15 +11,15 @@ const be = "_formsTableBody_81hra_1", Ne = "_customAccordianItem_81hra_6", O = {
|
|
|
11
11
|
encounterUuids: n,
|
|
12
12
|
config: q
|
|
13
13
|
}) => {
|
|
14
|
-
const { t: s } =
|
|
14
|
+
const { t: s } = Z(), m = ee(), [l, A] = S(!1), [t, I] = S(null), { numberOfVisits: k, hideThumbnail: V = !1 } = q ?? {}, M = re(
|
|
15
15
|
u,
|
|
16
16
|
n
|
|
17
|
-
),
|
|
17
|
+
), H = ae(), {
|
|
18
18
|
data: y = [],
|
|
19
19
|
isLoading: T,
|
|
20
20
|
isError: B,
|
|
21
|
-
error:
|
|
22
|
-
refetch:
|
|
21
|
+
error: K,
|
|
22
|
+
refetch: j
|
|
23
23
|
} = c({
|
|
24
24
|
queryKey: ["forms", m, u],
|
|
25
25
|
queryFn: () => le(m, void 0, k),
|
|
@@ -36,8 +36,8 @@ const be = "_formsTableBody_81hra_1", Ne = "_customAccordianItem_81hra_6", O = {
|
|
|
36
36
|
if (t)
|
|
37
37
|
return D(t.formName);
|
|
38
38
|
}, [t, D]), {
|
|
39
|
-
isLoading:
|
|
40
|
-
isError:
|
|
39
|
+
isLoading: x,
|
|
40
|
+
isError: G,
|
|
41
41
|
error: N
|
|
42
42
|
} = c({
|
|
43
43
|
queryKey: ["formMetadata", b],
|
|
@@ -45,8 +45,8 @@ const be = "_formsTableBody_81hra_1", Ne = "_customAccordianItem_81hra_6", O = {
|
|
|
45
45
|
enabled: !!b && l
|
|
46
46
|
}), {
|
|
47
47
|
data: p,
|
|
48
|
-
isLoading:
|
|
49
|
-
isError:
|
|
48
|
+
isLoading: $,
|
|
49
|
+
isError: w,
|
|
50
50
|
error: g
|
|
51
51
|
} = c({
|
|
52
52
|
queryKey: ["formsEncounterFHIR", t?.encounterUuid],
|
|
@@ -55,14 +55,14 @@ const be = "_formsTableBody_81hra_1", Ne = "_customAccordianItem_81hra_6", O = {
|
|
|
55
55
|
});
|
|
56
56
|
te(
|
|
57
57
|
(e) => {
|
|
58
|
-
e.patientUUID === m && e.updatedConcepts.size > 0 && (
|
|
58
|
+
e.patientUUID === m && e.updatedConcepts.size > 0 && (j(), H.invalidateQueries({ queryKey: ["formsEncounterFHIR"] }));
|
|
59
59
|
},
|
|
60
60
|
[m]
|
|
61
61
|
);
|
|
62
|
-
const
|
|
62
|
+
const P = d(() => !p?.entry || !t?.formName ? [] : p.entry.filter((e) => e.resource?.resourceType === "Observation").map((e) => e.resource).filter((e) => {
|
|
63
63
|
const r = pe(e);
|
|
64
64
|
return !r || r.includes(t.formName);
|
|
65
|
-
}), [p, t?.formName]),
|
|
65
|
+
}), [p, t?.formName]), Q = d(() => {
|
|
66
66
|
if (N)
|
|
67
67
|
return U(N).message;
|
|
68
68
|
if (g)
|
|
@@ -73,7 +73,7 @@ const be = "_formsTableBody_81hra_1", Ne = "_customAccordianItem_81hra_6", O = {
|
|
|
73
73
|
{ key: "recordedBy", header: s("RECORDED_BY") }
|
|
74
74
|
],
|
|
75
75
|
[s]
|
|
76
|
-
),
|
|
76
|
+
), z = d(
|
|
77
77
|
() => [
|
|
78
78
|
{ key: "recordedOn", sortable: !0 },
|
|
79
79
|
{ key: "recordedBy", sortable: !0 }
|
|
@@ -84,7 +84,7 @@ const be = "_formsTableBody_81hra_1", Ne = "_customAccordianItem_81hra_6", O = {
|
|
|
84
84
|
(r, a) => {
|
|
85
85
|
const i = a.formName;
|
|
86
86
|
r[i] ??= [];
|
|
87
|
-
const h = a.providers.map((
|
|
87
|
+
const h = a.providers.map((Y) => Y.providerName).filter(Boolean).join(", ");
|
|
88
88
|
return r[i].push({
|
|
89
89
|
id: a.encounterUuid,
|
|
90
90
|
formName: a.formName,
|
|
@@ -106,7 +106,7 @@ const be = "_formsTableBody_81hra_1", Ne = "_customAccordianItem_81hra_6", O = {
|
|
|
106
106
|
).sort((r, a) => r.formName.localeCompare(a.formName));
|
|
107
107
|
}, [E, s]), R = f((e) => {
|
|
108
108
|
I(e), A(!0);
|
|
109
|
-
}, []),
|
|
109
|
+
}, []), J = f(() => {
|
|
110
110
|
A(!1), I(null);
|
|
111
111
|
}, []), v = f(
|
|
112
112
|
(e, r) => {
|
|
@@ -121,7 +121,7 @@ const be = "_formsTableBody_81hra_1", Ne = "_customAccordianItem_81hra_6", O = {
|
|
|
121
121
|
},
|
|
122
122
|
[R]
|
|
123
123
|
);
|
|
124
|
-
return /* @__PURE__ */
|
|
124
|
+
return /* @__PURE__ */ W(X, { children: [
|
|
125
125
|
/* @__PURE__ */ o("div", { "data-testid": "forms-table", children: T || B || L.length === 0 || M ? /* @__PURE__ */ o(
|
|
126
126
|
C,
|
|
127
127
|
{
|
|
@@ -129,7 +129,7 @@ const be = "_formsTableBody_81hra_1", Ne = "_customAccordianItem_81hra_6", O = {
|
|
|
129
129
|
ariaLabel: s("FORMS_HEADING"),
|
|
130
130
|
rows: [],
|
|
131
131
|
loading: T,
|
|
132
|
-
errorStateMessage: B ?
|
|
132
|
+
errorStateMessage: B ? K?.message : void 0,
|
|
133
133
|
emptyStateMessage: s("FORMS_UNAVAILABLE"),
|
|
134
134
|
renderCell: v,
|
|
135
135
|
className: O.formsTableBody,
|
|
@@ -152,7 +152,7 @@ const be = "_formsTableBody_81hra_1", Ne = "_customAccordianItem_81hra_6", O = {
|
|
|
152
152
|
rows: i,
|
|
153
153
|
loading: !1,
|
|
154
154
|
errorStateMessage: "",
|
|
155
|
-
sortable:
|
|
155
|
+
sortable: z,
|
|
156
156
|
emptyStateMessage: s("FORMS_UNAVAILABLE"),
|
|
157
157
|
renderCell: v,
|
|
158
158
|
className: O.formsTableBody,
|
|
@@ -169,7 +169,7 @@ const be = "_formsTableBody_81hra_1", Ne = "_customAccordianItem_81hra_6", O = {
|
|
|
169
169
|
id: "modalIdForActionAreaLayout",
|
|
170
170
|
portalId: "main-display-area",
|
|
171
171
|
open: l,
|
|
172
|
-
onRequestClose:
|
|
172
|
+
onRequestClose: J,
|
|
173
173
|
modalHeading: t.formName,
|
|
174
174
|
modalLabel: `${t.recordedOn} | ${t.recordedBy}`,
|
|
175
175
|
passiveModal: !0,
|
|
@@ -178,10 +178,10 @@ const be = "_formsTableBody_81hra_1", Ne = "_customAccordianItem_81hra_6", O = {
|
|
|
178
178
|
children: /* @__PURE__ */ o(
|
|
179
179
|
ue,
|
|
180
180
|
{
|
|
181
|
-
observations:
|
|
182
|
-
isLoading:
|
|
183
|
-
isError:
|
|
184
|
-
errorMessage:
|
|
181
|
+
observations: P,
|
|
182
|
+
isLoading: x || $,
|
|
183
|
+
isError: G || w,
|
|
184
|
+
errorMessage: Q,
|
|
185
185
|
emptyStateMessage: s("NO_FORM_DATA_AVAILABLE"),
|
|
186
186
|
testIdPrefix: t.formName,
|
|
187
187
|
hideThumbnail: V
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { c, T as l, P as m, a as u, D as v, Q as i } from "./YPM2AS64-
|
|
2
|
-
import {
|
|
1
|
+
import { c, T as l, P as m, a as u, D as v, Q as i } from "./YPM2AS64-CrwxRaZi.js";
|
|
2
|
+
import { B as d, C as f, D as e } from "./index-B2p_rK5A.js";
|
|
3
3
|
var p = (a) => {
|
|
4
4
|
const [r, t] = c({
|
|
5
5
|
prefix: "TanstackQueryDevtools"
|
|
@@ -27,7 +27,7 @@ var p = (a) => {
|
|
|
27
27
|
});
|
|
28
28
|
}
|
|
29
29
|
});
|
|
30
|
-
},
|
|
30
|
+
}, P = p;
|
|
31
31
|
export {
|
|
32
|
-
|
|
32
|
+
P as default
|
|
33
33
|
};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { c as s, T as c, P as u, a as i, b as m, C as P, Q as d } from "./YPM2AS64-
|
|
2
|
-
import {
|
|
1
|
+
import { c as s, T as c, P as u, a as i, b as m, C as P, Q as d } from "./YPM2AS64-CrwxRaZi.js";
|
|
2
|
+
import { B as C, C as v, D as e } from "./index-B2p_rK5A.js";
|
|
3
3
|
var h = (t) => {
|
|
4
4
|
const [r, o] = s({
|
|
5
5
|
prefix: "TanstackQueryDevtools"
|
|
6
|
-
}), a =
|
|
6
|
+
}), a = C(), l = v(() => {
|
|
7
7
|
const n = r.theme_preference || c;
|
|
8
8
|
return n !== "system" ? n : a();
|
|
9
9
|
});
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsxs as N, jsx as u } from "react/jsx-runtime";
|
|
2
|
-
import { t as
|
|
3
|
-
import { useRef as se, useEffect as $, useMemo as
|
|
4
|
-
const
|
|
2
|
+
import { t as V, r as K, u as S, g as j, h as w, a as x, k as G, p as M, j as Q, n as H, q as z, o as P, v as Y, I as U, w as J, x as W, y as X, E as Z, T as ee, z as ae, A as te } from "./index-B2p_rK5A.js";
|
|
3
|
+
import { useRef as se, useEffect as $, useMemo as T } from "react";
|
|
4
|
+
const A = (a, n, d, l, b, r) => {
|
|
5
5
|
const t = J(a, n, b), s = t.value, i = W(s);
|
|
6
6
|
let o = s;
|
|
7
7
|
i === "Image" && (o = /* @__PURE__ */ u(
|
|
@@ -42,7 +42,7 @@ const D = (a, n, d, l, b, r) => {
|
|
|
42
42
|
id: `grouped-obs-${a.display}-${l}`,
|
|
43
43
|
open: d,
|
|
44
44
|
children: a.members?.map(
|
|
45
|
-
(s, i) =>
|
|
45
|
+
(s, i) => A(
|
|
46
46
|
s,
|
|
47
47
|
i,
|
|
48
48
|
b,
|
|
@@ -59,7 +59,7 @@ const D = (a, n, d, l, b, r) => {
|
|
|
59
59
|
hideThumbnail: d
|
|
60
60
|
}) => {
|
|
61
61
|
const { t: l } = S(), b = (r, t, s) => {
|
|
62
|
-
const i =
|
|
62
|
+
const i = Y(r.encounterDetails, l);
|
|
63
63
|
return /* @__PURE__ */ N(
|
|
64
64
|
U,
|
|
65
65
|
{
|
|
@@ -68,7 +68,7 @@ const D = (a, n, d, l, b, r) => {
|
|
|
68
68
|
open: t,
|
|
69
69
|
children: [
|
|
70
70
|
r.observations.map(
|
|
71
|
-
(o, p) =>
|
|
71
|
+
(o, p) => A(
|
|
72
72
|
o,
|
|
73
73
|
p,
|
|
74
74
|
s,
|
|
@@ -112,7 +112,7 @@ const D = (a, n, d, l, b, r) => {
|
|
|
112
112
|
conceptNames: d = [],
|
|
113
113
|
conceptUuid: l = [],
|
|
114
114
|
hideThumbnail: b = !1
|
|
115
|
-
} = n, r = se(/* @__PURE__ */ new Set()), t =
|
|
115
|
+
} = n, r = se(/* @__PURE__ */ new Set()), t = V(), { addNotification: s } = K(), { t: i } = S(), o = j({
|
|
116
116
|
queries: d.map((e) => ({
|
|
117
117
|
queryKey: de(e),
|
|
118
118
|
queryFn: () => w(e),
|
|
@@ -131,17 +131,17 @@ const D = (a, n, d, l, b, r) => {
|
|
|
131
131
|
} else e.isError || r.current.delete(h);
|
|
132
132
|
});
|
|
133
133
|
}, [o, d]);
|
|
134
|
-
const p =
|
|
134
|
+
const p = T(() => o.map((e) => e.data?.uuid).filter((e) => !!e), [o]), m = T(() => [.../* @__PURE__ */ new Set([...p, ...l])], [p, l]), y = T(() => d.length === 0 ? !0 : o.every((e) => !e.isLoading), [o, d.length]), {
|
|
135
135
|
data: c,
|
|
136
|
-
isLoading:
|
|
137
|
-
isError:
|
|
136
|
+
isLoading: D,
|
|
137
|
+
isError: R,
|
|
138
138
|
refetch: f
|
|
139
139
|
} = x({
|
|
140
140
|
queryKey: le(t, m),
|
|
141
141
|
queryFn: () => te(t, m),
|
|
142
142
|
enabled: !!t && m.length > 0 && y
|
|
143
143
|
});
|
|
144
|
-
|
|
144
|
+
G(
|
|
145
145
|
(e) => {
|
|
146
146
|
e.patientUUID === t && e.updatedConcepts.size > 0 && [...e.updatedConcepts.keys()].some(
|
|
147
147
|
(h) => m.includes(h)
|
|
@@ -149,21 +149,21 @@ const D = (a, n, d, l, b, r) => {
|
|
|
149
149
|
},
|
|
150
150
|
[t, f]
|
|
151
151
|
), $(() => {
|
|
152
|
-
|
|
152
|
+
R && s({
|
|
153
153
|
title: i("ERROR_DEFAULT_TITLE"),
|
|
154
154
|
message: i("ERROR_FETCHING_OBSERVATIONS"),
|
|
155
155
|
type: "error"
|
|
156
156
|
});
|
|
157
|
-
}, [
|
|
158
|
-
const g =
|
|
157
|
+
}, [R]);
|
|
158
|
+
const g = T(() => {
|
|
159
159
|
if (!c) return [];
|
|
160
|
-
const e =
|
|
160
|
+
const e = M(c), h = Q(e);
|
|
161
161
|
return H(h);
|
|
162
|
-
}, [c]),
|
|
162
|
+
}, [c]), F = [
|
|
163
163
|
{ key: "name", header: "name" },
|
|
164
164
|
{ key: "value", header: "value" },
|
|
165
165
|
{ key: "form", header: "form" }
|
|
166
|
-
], O =
|
|
166
|
+
], O = D || !y, _ = R && y, q = (!c || c.entry?.length === 0 || m.length === 0) && y, L = _ ? i("ERROR_FETCHING_OBSERVATIONS") : null, k = q ? i("NO_OBSERVATIONS_FOUND") : void 0, C = g.length > 0 && !O && !_, E = n.titleTranslationKey, v = E ? i(E) : "";
|
|
167
167
|
return /* @__PURE__ */ N(
|
|
168
168
|
"div",
|
|
169
169
|
{
|
|
@@ -173,7 +173,7 @@ const D = (a, n, d, l, b, r) => {
|
|
|
173
173
|
className: I.observations,
|
|
174
174
|
children: [
|
|
175
175
|
/* @__PURE__ */ u(
|
|
176
|
-
|
|
176
|
+
z,
|
|
177
177
|
{
|
|
178
178
|
id: "observations-title",
|
|
179
179
|
testId: E ? `observations-title-${v}` : "observations-title",
|
|
@@ -192,7 +192,7 @@ const D = (a, n, d, l, b, r) => {
|
|
|
192
192
|
) : /* @__PURE__ */ u(
|
|
193
193
|
P,
|
|
194
194
|
{
|
|
195
|
-
headers:
|
|
195
|
+
headers: F,
|
|
196
196
|
rows: [],
|
|
197
197
|
ariaLabel: i("OBSERVATIONS"),
|
|
198
198
|
loading: O,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { F as we, H as z, K as xt, L as B, C as q, D as y, O as Ro, Q as ye, S as R, R as _, U as k, W as N, X as A, Y as bs, Z as ir, _ as $e, $ as U, a0 as Hn, a1 as Vn, a2 as dt, a3 as D, a4 as xs, a5 as cn, a6 as Be, a7 as ws, a8 as qt, a9 as zt, aa as $s, ab as Cs, ac as $n, ad as Ss, ae as Nr, af as Bt, ag as zo, ah as ks, ai as Es, aj as j, ak as Ur, al as Ms, am as Ds, an as sr, ao as As, ap as Ts, aq as zn, ar as Fs, as as Is, at as Z, au as Ps, av as Ls } from "./index-B2p_rK5A.js";
|
|
2
2
|
var Os = (e) => e != null, qs = (e) => e.filter(Os);
|
|
3
3
|
function _s(e) {
|
|
4
4
|
return (...t) => {
|
package/dist/components/forms/immunizationHistory/__tests__/__mocks__/immunizationHistoryMocks.d.ts
CHANGED
|
@@ -101,11 +101,11 @@ export declare const mockVaccineCode: {
|
|
|
101
101
|
code: string;
|
|
102
102
|
display: string;
|
|
103
103
|
};
|
|
104
|
-
/** All
|
|
104
|
+
/** All 10 form fields present, drug and administered fields required, others optional */
|
|
105
105
|
export declare const mockFullAttributes: InputControlAttributes[];
|
|
106
|
-
/** All
|
|
106
|
+
/** All 10 form fields present, all fields required (note is never required) */
|
|
107
107
|
export declare const mockAllRequiredAttributes: InputControlAttributes[];
|
|
108
|
-
/** All
|
|
108
|
+
/** All 10 form fields present, administered fields optional, others optional */
|
|
109
109
|
export declare const mockAttributesWithOptionalAdministered: InputControlAttributes[];
|
|
110
110
|
export declare const mockImmunizationEntryWithDate: ImmunizationInputEntry;
|
|
111
111
|
export declare const mockImmunizationEntryWithErrors: ImmunizationInputEntry;
|
|
@@ -128,6 +128,7 @@ export declare const mockStore: {
|
|
|
128
128
|
updateExpiryDate: any;
|
|
129
129
|
updateManufacturer: any;
|
|
130
130
|
updateBatchNumber: any;
|
|
131
|
+
updateDoseSequence: any;
|
|
131
132
|
updateNote: any;
|
|
132
133
|
validateAll: any;
|
|
133
134
|
reset: any;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"immunizationHistoryMocks.d.ts","sourceRoot":"","sources":["../../../../../../src/components/forms/immunizationHistory/__tests__/__mocks__/immunizationHistoryMocks.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAC5C,OAAO,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAChD,OAAO,EAAE,sBAAsB,EAAE,MAAM,gDAAgD,CAAC;AACxF,OAAO,EAAE,sBAAsB,EAAE,MAAM,cAAc,CAAC;AAyBtD,eAAO,MAAM,uBAAuB;;;;;;;;;gBAe7B,sBAAsB,EAAE;CAC9B,CAAC;AAEF,eAAO,MAAM,yBAAyB;;;;;;;;;;;;4BAH/B,sBAAsB,EAAE;;;;;;CAW9B,CAAC;AAEF,eAAO,MAAM,mBAAmB;;;;;;;;;;CAU/B,CAAC;AAEF,eAAO,MAAM,2BAA2B;;;;;;;;;CAOvC,CAAC;AAEF,eAAO,MAAM,2BAA2B;;;;;;CAIvC,CAAC;AAEF,eAAO,MAAM,kBAAkB;;;;;;;;;;CAO9B,CAAC;AAEF,eAAO,MAAM,iBAAiB;;;;;;;;;;CAO7B,CAAC;AAEF,eAAO,MAAM,aAAa,EAAE,QAAQ,EAEnC,CAAC;AAEF,eAAO,MAAM,yBAAyB,EAAE,QAAQ,EAM/C,CAAC;AAEF,eAAO,MAAM,qBAAqB;;;;CAIjC,CAAC;AAEF,eAAO,MAAM,0BAA0B;;;;kBA9FhC,UAAU;;CAqGhB,CAAC;AAEF,eAAO,MAAM,qBAAqB,EAAE,
|
|
1
|
+
{"version":3,"file":"immunizationHistoryMocks.d.ts","sourceRoot":"","sources":["../../../../../../src/components/forms/immunizationHistory/__tests__/__mocks__/immunizationHistoryMocks.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAC5C,OAAO,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAChD,OAAO,EAAE,sBAAsB,EAAE,MAAM,gDAAgD,CAAC;AACxF,OAAO,EAAE,sBAAsB,EAAE,MAAM,cAAc,CAAC;AAyBtD,eAAO,MAAM,uBAAuB;;;;;;;;;gBAe7B,sBAAsB,EAAE;CAC9B,CAAC;AAEF,eAAO,MAAM,yBAAyB;;;;;;;;;;;;4BAH/B,sBAAsB,EAAE;;;;;;CAW9B,CAAC;AAEF,eAAO,MAAM,mBAAmB;;;;;;;;;;CAU/B,CAAC;AAEF,eAAO,MAAM,2BAA2B;;;;;;;;;CAOvC,CAAC;AAEF,eAAO,MAAM,2BAA2B;;;;;;CAIvC,CAAC;AAEF,eAAO,MAAM,kBAAkB;;;;;;;;;;CAO9B,CAAC;AAEF,eAAO,MAAM,iBAAiB;;;;;;;;;;CAO7B,CAAC;AAEF,eAAO,MAAM,aAAa,EAAE,QAAQ,EAEnC,CAAC;AAEF,eAAO,MAAM,yBAAyB,EAAE,QAAQ,EAM/C,CAAC;AAEF,eAAO,MAAM,qBAAqB;;;;CAIjC,CAAC;AAEF,eAAO,MAAM,0BAA0B;;;;kBA9FhC,UAAU;;CAqGhB,CAAC;AAEF,eAAO,MAAM,qBAAqB,EAAE,sBAcnC,CAAC;AAEF,eAAO,MAAM,eAAe;;;CAG3B,CAAC;AAEF,yFAAyF;AACzF,eAAO,MAAM,kBAAkB,EAAE,sBAAsB,EAWtD,CAAC;AAEF,+EAA+E;AAC/E,eAAO,MAAM,yBAAyB,EAAE,sBAAsB,EAW7D,CAAC;AAEF,gFAAgF;AAChF,eAAO,MAAM,sCAAsC,EAAE,sBAAsB,EAYxE,CAAC;AAEJ,eAAO,MAAM,6BAA6B,EAAE,sBAG3C,CAAC;AAEF,eAAO,MAAM,+BAA+B,EAAE,sBAc7C,CAAC;AAEF,eAAO,MAAM,gBAAgB,EAAE,UAAU,EAcxC,CAAC;AAEF,eAAO,MAAM,sBAAsB,EAAE,UAYpC,CAAC;AAEF,eAAO,MAAM,uBAAuB,EAAE,UAAU,EAA6B,CAAC;AAE9E,eAAO,MAAM,oBAAoB,EAAE,SAElC,CAAC;AAEF,eAAO,MAAM,6BAA6B,EAAE,sBAY3C,CAAC;AAEF,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;CAmBrB,CAAC"}
|
package/dist/components/forms/immunizationHistory/components/SelectedImmunizationItem.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SelectedImmunizationItem.d.ts","sourceRoot":"","sources":["../../../../../src/components/forms/immunizationHistory/components/SelectedImmunizationItem.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"SelectedImmunizationItem.d.ts","sourceRoot":"","sources":["../../../../../src/components/forms/immunizationHistory/components/SelectedImmunizationItem.tsx"],"names":[],"mappings":"AAWA,OAAO,EAAkB,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAC5D,OAAO,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AAC/C,OAAO,KAA4B,MAAM,OAAO,CAAC;AACjD,OAAO,EAAE,sBAAsB,EAAE,MAAM,6CAA6C,CAAC;AACrF,OAAO,EAAE,sBAAsB,EAAE,MAAM,WAAW,CAAC;AAUnD,UAAU,6BAA6B;IACrC,YAAY,EAAE,sBAAsB,CAAC;IACrC,MAAM,EAAE,QAAQ,GAAG,SAAS,CAAC;IAC7B,KAAK,EAAE,QAAQ,GAAG,SAAS,CAAC;IAC5B,uBAAuB,EAAE,QAAQ,EAAE,GAAG,SAAS,CAAC;IAChD,UAAU,EAAE,sBAAsB,EAAE,GAAG,SAAS,CAAC;IACjD,YAAY,EAAE,UAAU,EAAE,GAAG,SAAS,CAAC;CACxC;AAED,QAAA,MAAM,wBAAwB,EAAE,KAAK,CAAC,EAAE,CAAC,6BAA6B,CAmYrE,CAAC;AAEF,eAAe,wBAAwB,CAAC"}
|
|
@@ -22,6 +22,7 @@ export interface ImmunizationInputEntry {
|
|
|
22
22
|
expiryDate: Date | null;
|
|
23
23
|
manufacturer: string | null;
|
|
24
24
|
batchNumber: string | null;
|
|
25
|
+
doseSequence: number | null;
|
|
25
26
|
note?: string;
|
|
26
27
|
errors: {
|
|
27
28
|
drug?: string;
|
|
@@ -32,6 +33,7 @@ export interface ImmunizationInputEntry {
|
|
|
32
33
|
expiryDate?: string;
|
|
33
34
|
manufacturer?: string;
|
|
34
35
|
batchNumber?: string;
|
|
36
|
+
doseSequence?: string;
|
|
35
37
|
};
|
|
36
38
|
hasBeenValidated: boolean;
|
|
37
39
|
}
|
|
@@ -67,6 +69,7 @@ export interface ImmunizationHistoryState {
|
|
|
67
69
|
updateExpiryDate: (id: string, value: Date | null) => void;
|
|
68
70
|
updateManufacturer: (id: string, value: string) => void;
|
|
69
71
|
updateBatchNumber: (id: string, value: string) => void;
|
|
72
|
+
updateDoseSequence: (id: string, value: number | null) => void;
|
|
70
73
|
updateNote: (id: string, value: string) => void;
|
|
71
74
|
validateAll: () => boolean;
|
|
72
75
|
reset: () => void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"models.d.ts","sourceRoot":"","sources":["../../../../src/components/forms/immunizationHistory/models.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AACpC,OAAO,EAAE,sBAAsB,EAAE,MAAM,0CAA0C,CAAC;AAElF,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,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,GAAG,IAAI,CAAC;IACpB,UAAU,EAAE,IAAI,GAAG,IAAI,CAAC;IACxB,YAAY,EAAE,MAAM,GAAG,IAAI,CAAC;IAC5B,WAAW,EAAE,MAAM,GAAG,IAAI,CAAC;IAC3B,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,MAAM,EAAE;QACN,IAAI,CAAC,EAAE,MAAM,CAAC;QACd,cAAc,CAAC,EAAE,MAAM,CAAC;QACxB,oBAAoB,CAAC,EAAE,MAAM,CAAC;QAC9B,KAAK,CAAC,EAAE,MAAM,CAAC;QACf,IAAI,CAAC,EAAE,MAAM,CAAC;QACd,UAAU,CAAC,EAAE,MAAM,CAAC;QACpB,YAAY,CAAC,EAAE,MAAM,CAAC;QACtB,WAAW,CAAC,EAAE,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"models.d.ts","sourceRoot":"","sources":["../../../../src/components/forms/immunizationHistory/models.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AACpC,OAAO,EAAE,sBAAsB,EAAE,MAAM,0CAA0C,CAAC;AAElF,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,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,GAAG,IAAI,CAAC;IACpB,UAAU,EAAE,IAAI,GAAG,IAAI,CAAC;IACxB,YAAY,EAAE,MAAM,GAAG,IAAI,CAAC;IAC5B,WAAW,EAAE,MAAM,GAAG,IAAI,CAAC;IAC3B,YAAY,EAAE,MAAM,GAAG,IAAI,CAAC;IAC5B,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,MAAM,EAAE;QACN,IAAI,CAAC,EAAE,MAAM,CAAC;QACd,cAAc,CAAC,EAAE,MAAM,CAAC;QACxB,oBAAoB,CAAC,EAAE,MAAM,CAAC;QAC9B,KAAK,CAAC,EAAE,MAAM,CAAC;QACf,IAAI,CAAC,EAAE,MAAM,CAAC;QACd,UAAU,CAAC,EAAE,MAAM,CAAC;QACpB,YAAY,CAAC,EAAE,MAAM,CAAC;QAC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AAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACjD,UAAU,EAAE,CAAC,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IAChD,gBAAgB,EAAE,CAAC,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,IAAI,GAAG,IAAI,KAAK,IAAI,CAAC;IAC3D,kBAAkB,EAAE,CAAC,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACxD,iBAAiB,EAAE,CAAC,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACvD,kBAAkB,EAAE,CAAC,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,IAAI,KAAK,IAAI,CAAC;IAC/D,UAAU,EAAE,CAAC,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IAChD,WAAW,EAAE,MAAM,OAAO,CAAC;IAC3B,KAAK,EAAE,MAAM,IAAI,CAAC;IAClB,QAAQ,EAAE,MAAM,wBAAwB,CAAC;CAC1C"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"stores.d.ts","sourceRoot":"","sources":["../../../../src/components/forms/immunizationHistory/stores.ts"],"names":[],"mappings":"AAGA,OAAO,EAEL,wBAAwB,EAGzB,MAAM,UAAU,CAAC;AAGlB,eAAO,MAAM,2BAA2B,
|
|
1
|
+
{"version":3,"file":"stores.d.ts","sourceRoot":"","sources":["../../../../src/components/forms/immunizationHistory/stores.ts"],"names":[],"mappings":"AAGA,OAAO,EAEL,wBAAwB,EAGzB,MAAM,UAAU,CAAC;AAGlB,eAAO,MAAM,2BAA2B,uFA2SvC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../src/components/forms/immunizationHistory/utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAsC,QAAQ,EAA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