@bahmni/clinical-app 0.0.1-dev.221 → 0.0.1-dev.222
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-BZHe_sb0-CvhGvt6W.js → DocumentsTable-CxTI1Hgb-DwoYlX4u.js} +2 -2
- package/dist/{FormsTable-BztxQbBL-BtibKCgi.js → FormsTable-DvLskkhx-Wx17ryEW.js} +35 -35
- package/dist/{LNWAZHJI-CuEz9LcO.js → LNWAZHJI-DI225q7c.js} +2 -2
- package/dist/{MWZ6AO7Z-8MIaTO_r.js → MWZ6AO7Z-CguRAJpQ.js} +2 -2
- package/dist/{Observations-Cnt-RGWx-6neapwA3.js → Observations-BU9Xc30t-alt_7jLA.js} +4 -4
- package/dist/{YPM2AS64-BKd6hzl1.js → YPM2AS64-uUkV26GU.js} +1 -1
- package/dist/components/consultationPad/__tests__/__mocks__/indexMocks.d.ts +1 -0
- package/dist/components/consultationPad/__tests__/__mocks__/indexMocks.d.ts.map +1 -1
- package/dist/components/consultationPad/__tests__/__mocks__/inputControlRegistryMocks.d.ts.map +1 -1
- package/dist/components/consultationPad/inputControlRegistry.d.ts.map +1 -1
- package/dist/components/consultationPad/models.d.ts +1 -1
- package/dist/components/consultationPad/models.d.ts.map +1 -1
- package/dist/components/consultationPad/utils.d.ts +1 -0
- package/dist/components/consultationPad/utils.d.ts.map +1 -1
- package/dist/components/forms/immunizationHistory/ImmunizationHistoryForm.d.ts +3 -0
- package/dist/components/forms/immunizationHistory/ImmunizationHistoryForm.d.ts.map +1 -0
- package/dist/components/forms/immunizationHistory/__tests__/__mocks__/immunizationHistoryMocks.d.ts +135 -0
- package/dist/components/forms/immunizationHistory/__tests__/__mocks__/immunizationHistoryMocks.d.ts.map +1 -0
- package/dist/components/forms/immunizationHistory/components/SelectedImmunizationItem.d.ts +16 -0
- package/dist/components/forms/immunizationHistory/components/SelectedImmunizationItem.d.ts.map +1 -0
- package/dist/components/forms/immunizationHistory/constants.d.ts +2 -0
- package/dist/components/forms/immunizationHistory/constants.d.ts.map +1 -0
- package/dist/components/forms/immunizationHistory/index.d.ts +4 -0
- package/dist/components/forms/immunizationHistory/index.d.ts.map +1 -0
- package/dist/components/forms/immunizationHistory/models.d.ts +73 -0
- package/dist/components/forms/immunizationHistory/models.d.ts.map +1 -0
- package/dist/components/forms/immunizationHistory/stores.d.ts +3 -0
- package/dist/components/forms/immunizationHistory/stores.d.ts.map +1 -0
- package/dist/components/forms/immunizationHistory/utils.d.ts +17 -0
- package/dist/components/forms/immunizationHistory/utils.d.ts.map +1 -0
- package/dist/components/forms/index.d.ts +1 -0
- package/dist/components/forms/index.d.ts.map +1 -1
- package/dist/{index-DMl1m_nU.js → index-CP_FtC4s.js} +7877 -7126
- package/dist/index.css +1 -1
- package/dist/index.js +1 -1
- package/dist/locales/locale_en.json +44 -13
- package/dist/locales/locale_es.json +44 -13
- package/dist/providers/clinicalConfig/models.d.ts +6 -12
- package/dist/providers/clinicalConfig/models.d.ts.map +1 -1
- package/dist/providers/clinicalConfig/schema.json.d.ts +9 -9
- 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
|
|
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, b as ae } from "./index-CP_FtC4s.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,
|
|
@@ -37,7 +37,7 @@ const _e = [
|
|
|
37
37
|
null
|
|
38
38
|
), [R, I] = l(
|
|
39
39
|
/* @__PURE__ */ new Set()
|
|
40
|
-
), E =
|
|
40
|
+
), E = W(), { t: n } = K(), { addNotification: L } = Q(), $ = Number(a?.pageSize) || 5, [C, A] = l(1), [m, k] = l($), [V, y] = l(void 0), U = h((e) => {
|
|
41
41
|
M(e), w(!0);
|
|
42
42
|
}, []), F = h(() => {
|
|
43
43
|
w(!1), M(null), I(/* @__PURE__ */ new Set());
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import { jsx as o, jsxs as Y, Fragment as Z } from "react/jsx-runtime";
|
|
2
|
-
import { u as W, t as ee, m as re, c as ae, a as c, k as te, V as U, N as se, M as oe, o as
|
|
3
|
-
import { useState as
|
|
4
|
-
const
|
|
5
|
-
formsTableBody:
|
|
6
|
-
customAccordianItem:
|
|
2
|
+
import { u as W, t as ee, m as re, c 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, Z as ue, d as me, e as le, X as ce, f as fe, Q as ye } from "./index-CP_FtC4s.js";
|
|
3
|
+
import { useState as S, useMemo as d, useCallback as f } from "react";
|
|
4
|
+
const be = "_formsTableBody_81hra_1", Ne = "_customAccordianItem_81hra_6", O = {
|
|
5
|
+
formsTableBody: be,
|
|
6
|
+
customAccordianItem: Ne
|
|
7
7
|
}, pe = (u) => u ? u.extension?.find(
|
|
8
8
|
(n) => n.url === me
|
|
9
|
-
)?.valueString : void 0,
|
|
9
|
+
)?.valueString : void 0, Ae = ({
|
|
10
10
|
episodeOfCareUuids: u,
|
|
11
11
|
encounterUuids: n,
|
|
12
|
-
config:
|
|
12
|
+
config: q
|
|
13
13
|
}) => {
|
|
14
|
-
const { t: s } = W(), m = ee(), [l,
|
|
14
|
+
const { t: s } = W(), 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
|
), G = ae(), {
|
|
@@ -26,23 +26,23 @@ const Ne = "_formsTableBody_81hra_1", be = "_customAccordianItem_81hra_6", I = {
|
|
|
26
26
|
enabled: !!m && !M
|
|
27
27
|
}), E = d(() => !n || n.length === 0 ? y : y.filter(
|
|
28
28
|
(e) => n.includes(e.encounterUuid)
|
|
29
|
-
), [y, n]), { data:
|
|
29
|
+
), [y, n]), { data: _ = [] } = c({
|
|
30
30
|
queryKey: ["observationForms"],
|
|
31
31
|
queryFn: () => ce()
|
|
32
|
-
}),
|
|
33
|
-
(e) =>
|
|
34
|
-
[
|
|
35
|
-
),
|
|
32
|
+
}), D = f(
|
|
33
|
+
(e) => _.find((r) => r.name === e)?.uuid,
|
|
34
|
+
[_]
|
|
35
|
+
), b = d(() => {
|
|
36
36
|
if (t)
|
|
37
|
-
return
|
|
38
|
-
}, [t,
|
|
37
|
+
return D(t.formName);
|
|
38
|
+
}, [t, D]), {
|
|
39
39
|
isLoading: Q,
|
|
40
40
|
isError: j,
|
|
41
|
-
error:
|
|
41
|
+
error: N
|
|
42
42
|
} = c({
|
|
43
|
-
queryKey: ["formMetadata",
|
|
44
|
-
queryFn: () => fe(
|
|
45
|
-
enabled: !!
|
|
43
|
+
queryKey: ["formMetadata", b],
|
|
44
|
+
queryFn: () => fe(b),
|
|
45
|
+
enabled: !!b && l
|
|
46
46
|
}), {
|
|
47
47
|
data: p,
|
|
48
48
|
isLoading: x,
|
|
@@ -63,11 +63,11 @@ const Ne = "_formsTableBody_81hra_1", be = "_customAccordianItem_81hra_6", I = {
|
|
|
63
63
|
const r = pe(e);
|
|
64
64
|
return !r || r.includes(t.formName);
|
|
65
65
|
}), [p, t?.formName]), z = d(() => {
|
|
66
|
-
if (
|
|
67
|
-
return U(
|
|
66
|
+
if (N)
|
|
67
|
+
return U(N).message;
|
|
68
68
|
if (g)
|
|
69
69
|
return U(g).message;
|
|
70
|
-
}, [
|
|
70
|
+
}, [N, g]), F = d(
|
|
71
71
|
() => [
|
|
72
72
|
{ key: "recordedOn", header: s("RECORDED_ON") },
|
|
73
73
|
{ key: "recordedBy", header: s("RECORDED_BY") }
|
|
@@ -79,7 +79,7 @@ const Ne = "_formsTableBody_81hra_1", be = "_customAccordianItem_81hra_6", I = {
|
|
|
79
79
|
{ key: "recordedBy", sortable: !0 }
|
|
80
80
|
],
|
|
81
81
|
[]
|
|
82
|
-
),
|
|
82
|
+
), L = d(() => {
|
|
83
83
|
const e = E.reduce(
|
|
84
84
|
(r, a) => {
|
|
85
85
|
const i = a.formName;
|
|
@@ -105,9 +105,9 @@ const Ne = "_formsTableBody_81hra_1", be = "_customAccordianItem_81hra_6", I = {
|
|
|
105
105
|
})
|
|
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
|
}, []), P = f(() => {
|
|
110
|
-
|
|
110
|
+
A(!1), I(null);
|
|
111
111
|
}, []), v = f(
|
|
112
112
|
(e, r) => {
|
|
113
113
|
switch (r) {
|
|
@@ -122,32 +122,32 @@ const Ne = "_formsTableBody_81hra_1", be = "_customAccordianItem_81hra_6", I = {
|
|
|
122
122
|
[R]
|
|
123
123
|
);
|
|
124
124
|
return /* @__PURE__ */ Y(Z, { children: [
|
|
125
|
-
/* @__PURE__ */ o("div", { "data-testid": "forms-table", children: T || B ||
|
|
126
|
-
|
|
125
|
+
/* @__PURE__ */ o("div", { "data-testid": "forms-table", children: T || B || L.length === 0 || M ? /* @__PURE__ */ o(
|
|
126
|
+
C,
|
|
127
127
|
{
|
|
128
|
-
headers:
|
|
128
|
+
headers: F,
|
|
129
129
|
ariaLabel: s("FORMS_HEADING"),
|
|
130
130
|
rows: [],
|
|
131
131
|
loading: T,
|
|
132
132
|
errorStateMessage: B ? H?.message : void 0,
|
|
133
133
|
emptyStateMessage: s("FORMS_UNAVAILABLE"),
|
|
134
134
|
renderCell: v,
|
|
135
|
-
className:
|
|
135
|
+
className: O.formsTableBody,
|
|
136
136
|
dataTestId: "forms-table"
|
|
137
137
|
}
|
|
138
|
-
) : /* @__PURE__ */ o(ne, { align: "start", children:
|
|
138
|
+
) : /* @__PURE__ */ o(ne, { align: "start", children: L.map((e, r) => {
|
|
139
139
|
const { formName: a, records: i } = e;
|
|
140
140
|
return /* @__PURE__ */ o(
|
|
141
141
|
de,
|
|
142
142
|
{
|
|
143
143
|
title: a,
|
|
144
|
-
className:
|
|
144
|
+
className: O.customAccordianItem,
|
|
145
145
|
testId: `accordian-title-${a}`,
|
|
146
146
|
open: r === 0,
|
|
147
147
|
children: /* @__PURE__ */ o(
|
|
148
|
-
|
|
148
|
+
C,
|
|
149
149
|
{
|
|
150
|
-
headers:
|
|
150
|
+
headers: F,
|
|
151
151
|
ariaLabel: s("FORMS_HEADING"),
|
|
152
152
|
rows: i,
|
|
153
153
|
loading: !1,
|
|
@@ -155,7 +155,7 @@ const Ne = "_formsTableBody_81hra_1", be = "_customAccordianItem_81hra_6", I = {
|
|
|
155
155
|
sortable: J,
|
|
156
156
|
emptyStateMessage: s("FORMS_UNAVAILABLE"),
|
|
157
157
|
renderCell: v,
|
|
158
|
-
className:
|
|
158
|
+
className: O.formsTableBody,
|
|
159
159
|
dataTestId: `forms-table-${a}`
|
|
160
160
|
}
|
|
161
161
|
)
|
|
@@ -192,5 +192,5 @@ const Ne = "_formsTableBody_81hra_1", be = "_customAccordianItem_81hra_6", I = {
|
|
|
192
192
|
] });
|
|
193
193
|
};
|
|
194
194
|
export {
|
|
195
|
-
|
|
195
|
+
Ae as default
|
|
196
196
|
};
|
|
@@ -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 { z as d, A as f, B as e } from "./index-
|
|
1
|
+
import { c, T as l, P as m, a as u, D as v, Q as i } from "./YPM2AS64-uUkV26GU.js";
|
|
2
|
+
import { z as d, A as f, B as e } from "./index-CP_FtC4s.js";
|
|
3
3
|
var p = (a) => {
|
|
4
4
|
const [r, t] = c({
|
|
5
5
|
prefix: "TanstackQueryDevtools"
|
|
@@ -1,5 +1,5 @@
|
|
|
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 { z as v, A as C, B as e } from "./index-
|
|
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-uUkV26GU.js";
|
|
2
|
+
import { z as v, A as C, B as e } from "./index-CP_FtC4s.js";
|
|
3
3
|
var h = (t) => {
|
|
4
4
|
const [r, o] = s({
|
|
5
5
|
prefix: "TanstackQueryDevtools"
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsxs as N, jsx as u } from "react/jsx-runtime";
|
|
2
|
-
import { t as
|
|
2
|
+
import { t as K, r as V, u as S, g as G, Y as w, a as x, k as M, h as Q, l as j, i as H, j as Y, o as P, n as z, O as U, p as J, q as W, I as X, v as Z, w as ee, x as ae, y as te } from "./index-CP_FtC4s.js";
|
|
3
3
|
import { useRef as se, useEffect as $, useMemo as R } from "react";
|
|
4
4
|
const D = (a, n, d, l, b, r) => {
|
|
5
5
|
const t = J(a, n, b), s = t.value, i = W(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 = K(), { addNotification: s } = V(), { t: i } = S(), o = G({
|
|
116
116
|
queries: d.map((e) => ({
|
|
117
117
|
queryKey: de(e),
|
|
118
118
|
queryFn: () => w(e),
|
|
@@ -122,10 +122,10 @@ const D = (a, n, d, l, b, r) => {
|
|
|
122
122
|
$(() => {
|
|
123
123
|
o.forEach((e, h) => {
|
|
124
124
|
if (e.isError && !r.current.has(h)) {
|
|
125
|
-
const
|
|
125
|
+
const B = d[h];
|
|
126
126
|
s({
|
|
127
127
|
title: i("ERROR_DEFAULT_TITLE"),
|
|
128
|
-
message: i("ERROR_FETCHING_CONCEPT", { conceptName:
|
|
128
|
+
message: i("ERROR_FETCHING_CONCEPT", { conceptName: B }),
|
|
129
129
|
type: "error"
|
|
130
130
|
}), r.current.add(h);
|
|
131
131
|
} else e.isError || r.current.delete(h);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { C as we, D as z, E as xt, F as B, A as q, B as y, P as Ro, H as ye, S as R, K as _, L as k, R as N, T as A, U as bs, W 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-
|
|
1
|
+
import { C as we, D as z, E as xt, F as B, A as q, B as y, P as Ro, H as ye, S as R, K as _, L as k, R as N, T as A, U as bs, W 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-CP_FtC4s.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":"indexMocks.d.ts","sourceRoot":"","sources":["../../../../../src/components/consultationPad/__tests__/__mocks__/indexMocks.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,cAAc,CAAC;AAE1D,eAAO,MAAM,YAAY,EAAE,qBAAqB,EAyB/C,CAAC;AAEF,eAAO,MAAM,aAAa,GACxB,MAAK,qBAAqB,CAAC,KAAK,CAAe,EAC/C,YAAW,OAAO,CAAC,qBAAqB,CAAM,KAC7C,qBAQD,CAAC;AAEH,eAAO,MAAM,iBAAiB;;;;;;CAM7B,CAAC;AAEF,eAAO,MAAM,gBAAgB;;;;CAI5B,CAAC;AAEF,eAAO,MAAM,qBAAqB;;;;;;;;CAQjC,CAAC;AAEF,eAAO,MAAM,oBAAoB
|
|
1
|
+
{"version":3,"file":"indexMocks.d.ts","sourceRoot":"","sources":["../../../../../src/components/consultationPad/__tests__/__mocks__/indexMocks.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,cAAc,CAAC;AAE1D,eAAO,MAAM,YAAY,EAAE,qBAAqB,EAyB/C,CAAC;AAEF,eAAO,MAAM,aAAa,GACxB,MAAK,qBAAqB,CAAC,KAAK,CAAe,EAC/C,YAAW,OAAO,CAAC,qBAAqB,CAAM,KAC7C,qBAQD,CAAC;AAEH,eAAO,MAAM,iBAAiB;;;;;;CAM7B,CAAC;AAEF,eAAO,MAAM,gBAAgB;;;;CAI5B,CAAC;AAEF,eAAO,MAAM,qBAAqB;;;;;;;;CAQjC,CAAC;AAEF,eAAO,MAAM,oBAAoB;;;;;qBAKR,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;CAC/C,CAAC"}
|
package/dist/components/consultationPad/__tests__/__mocks__/inputControlRegistryMocks.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"inputControlRegistryMocks.d.ts","sourceRoot":"","sources":["../../../../../src/components/consultationPad/__tests__/__mocks__/inputControlRegistryMocks.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,6CAA6C,CAAC;AAEnF,eAAO,MAAM,yBAAyB,EAAE,
|
|
1
|
+
{"version":3,"file":"inputControlRegistryMocks.d.ts","sourceRoot":"","sources":["../../../../../src/components/consultationPad/__tests__/__mocks__/inputControlRegistryMocks.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,6CAA6C,CAAC;AAEnF,eAAO,MAAM,yBAAyB,EAAE,eA4DvC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"inputControlRegistry.d.ts","sourceRoot":"","sources":["../../../src/components/consultationPad/inputControlRegistry.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,uCAAuC,CAAC;
|
|
1
|
+
{"version":3,"file":"inputControlRegistry.d.ts","sourceRoot":"","sources":["../../../src/components/consultationPad/inputControlRegistry.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,uCAAuC,CAAC;AAgC7E,OAAO,KAAK,EAAoB,qBAAqB,EAAE,MAAM,UAAU,CAAC;AAmJxE,wBAAgB,0BAA0B,CACxC,MAAM,EAAE,eAAe,GAAG,SAAS,GAClC,qBAAqB,EAAE,CAsBzB"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { BundleEntry, Reference } from 'fhir/r4';
|
|
2
|
-
export type InputControlKey = 'encounterDetails' | 'allergies' | 'investigations' | 'conditionsAndDiagnoses' | 'medications' | 'vaccinations' | 'observationForms';
|
|
2
|
+
export type InputControlKey = 'encounterDetails' | 'allergies' | 'investigations' | 'conditionsAndDiagnoses' | 'medications' | 'vaccinations' | 'immunizationHistory' | 'observationForms';
|
|
3
3
|
export interface EncounterContext {
|
|
4
4
|
encounterSubject: Reference;
|
|
5
5
|
encounterReference: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"models.d.ts","sourceRoot":"","sources":["../../../src/components/consultationPad/models.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAEtD,MAAM,MAAM,eAAe,GACvB,kBAAkB,GAClB,WAAW,GACX,gBAAgB,GAChB,wBAAwB,GACxB,aAAa,GACb,cAAc,GACd,kBAAkB,CAAC;AAEvB,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;AAED,MAAM,WAAW,qBAAqB;IACpC,GAAG,EAAE,eAAe,CAAC;IACrB,cAAc,CAAC,EAAE,MAAM,EAAE,CAAC;IAC1B,SAAS,CAAC,EAAE,MAAM,EAAE,CAAC;IACrB,SAAS,EAAE,KAAK,CAAC,aAAa,CAAC;IAC/B,KAAK,EAAE,MAAM,IAAI,CAAC;IAClB,QAAQ,EAAE,MAAM,OAAO,CAAC;IACxB,OAAO,EAAE,MAAM,OAAO,CAAC;IACvB,SAAS,EAAE,CAAC,EAAE,EAAE,MAAM,IAAI,KAAK,MAAM,IAAI,CAAC;IAC1C,mBAAmB,CAAC,EAAE,CAAC,GAAG,EAAE,gBAAgB,KAAK,WAAW,EAAE,CAAC;CAChE"}
|
|
1
|
+
{"version":3,"file":"models.d.ts","sourceRoot":"","sources":["../../../src/components/consultationPad/models.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAEtD,MAAM,MAAM,eAAe,GACvB,kBAAkB,GAClB,WAAW,GACX,gBAAgB,GAChB,wBAAwB,GACxB,aAAa,GACb,cAAc,GACd,qBAAqB,GACrB,kBAAkB,CAAC;AAEvB,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;AAED,MAAM,WAAW,qBAAqB;IACpC,GAAG,EAAE,eAAe,CAAC;IACrB,cAAc,CAAC,EAAE,MAAM,EAAE,CAAC;IAC1B,SAAS,CAAC,EAAE,MAAM,EAAE,CAAC;IACrB,SAAS,EAAE,KAAK,CAAC,aAAa,CAAC;IAC/B,KAAK,EAAE,MAAM,IAAI,CAAC;IAClB,QAAQ,EAAE,MAAM,OAAO,CAAC;IACxB,OAAO,EAAE,MAAM,OAAO,CAAC;IACvB,SAAS,EAAE,CAAC,EAAE,EAAE,MAAM,IAAI,KAAK,MAAM,IAAI,CAAC;IAC1C,mBAAmB,CAAC,EAAE,CAAC,GAAG,EAAE,gBAAgB,KAAK,WAAW,EAAE,CAAC;CAChE"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../src/components/consultationPad/utils.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,UAAU,CAAC;AAEtD,wBAAgB,gBAAgB,CAC9B,QAAQ,EAAE,qBAAqB,EAAE,EACjC,aAAa,EAAE,MAAM,GACpB,qBAAqB,EAAE,CAKzB;AAED,wBAAgB,uBAAuB,CAAC,OAAO,EAAE,qBAAqB,EAAE
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../src/components/consultationPad/utils.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,UAAU,CAAC;AAEtD,wBAAgB,gBAAgB,CAC9B,QAAQ,EAAE,qBAAqB,EAAE,EACjC,aAAa,EAAE,MAAM,GACpB,qBAAqB,EAAE,CAKzB;AAED,wBAAgB,uBAAuB,CAAC,OAAO,EAAE,qBAAqB,EAAE;;;;;;EAkBvE"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ImmunizationHistoryForm.d.ts","sourceRoot":"","sources":["../../../../src/components/forms/immunizationHistory/ImmunizationHistoryForm.tsx"],"names":[],"mappings":"AAsBA,QAAA,MAAM,uBAAuB,+CAgQ5B,CAAC;AAEF,eAAe,uBAAuB,CAAC"}
|
package/dist/components/forms/immunizationHistory/__tests__/__mocks__/immunizationHistoryMocks.d.ts
ADDED
|
@@ -0,0 +1,135 @@
|
|
|
1
|
+
import { Location } from '@bahmni/services';
|
|
2
|
+
import { Medication, Reference } from 'fhir/r4';
|
|
3
|
+
import { InputControlAttributes } from '../../../../../providers/clinicalConfig/models';
|
|
4
|
+
import { ImmunizationInputEntry } from '../../models';
|
|
5
|
+
export declare const mockImmunizationHistory: {
|
|
6
|
+
metadata: {
|
|
7
|
+
routeConceptUuid: string;
|
|
8
|
+
vaccineConceptSetUuid: string;
|
|
9
|
+
siteConceptUuid: string;
|
|
10
|
+
administeredLocationTag: string;
|
|
11
|
+
};
|
|
12
|
+
encounterType: string[];
|
|
13
|
+
privilege: string[];
|
|
14
|
+
attributes: InputControlAttributes[];
|
|
15
|
+
};
|
|
16
|
+
export declare const mockClinicalConfigContext: {
|
|
17
|
+
clinicalConfig: {
|
|
18
|
+
consultationPad: {
|
|
19
|
+
immunizationHistory: {
|
|
20
|
+
metadata: {
|
|
21
|
+
routeConceptUuid: string;
|
|
22
|
+
vaccineConceptSetUuid: string;
|
|
23
|
+
siteConceptUuid: string;
|
|
24
|
+
administeredLocationTag: string;
|
|
25
|
+
};
|
|
26
|
+
encounterType: string[];
|
|
27
|
+
privilege: string[];
|
|
28
|
+
attributes: InputControlAttributes[];
|
|
29
|
+
};
|
|
30
|
+
};
|
|
31
|
+
};
|
|
32
|
+
isLoading: boolean;
|
|
33
|
+
error: null;
|
|
34
|
+
};
|
|
35
|
+
export declare const mockVaccineValueSet: {
|
|
36
|
+
resourceType: "ValueSet";
|
|
37
|
+
status: "active";
|
|
38
|
+
expansion: {
|
|
39
|
+
timestamp: string;
|
|
40
|
+
contains: {
|
|
41
|
+
code: string;
|
|
42
|
+
display: string;
|
|
43
|
+
}[];
|
|
44
|
+
};
|
|
45
|
+
};
|
|
46
|
+
export declare const mockValueSetWithPartialItem: {
|
|
47
|
+
resourceType: "ValueSet";
|
|
48
|
+
status: "active";
|
|
49
|
+
expansion: {
|
|
50
|
+
timestamp: string;
|
|
51
|
+
contains: {
|
|
52
|
+
display: string;
|
|
53
|
+
}[];
|
|
54
|
+
};
|
|
55
|
+
};
|
|
56
|
+
export declare const mockValueSetWithoutContains: {
|
|
57
|
+
resourceType: "ValueSet";
|
|
58
|
+
status: "active";
|
|
59
|
+
expansion: {
|
|
60
|
+
timestamp: string;
|
|
61
|
+
};
|
|
62
|
+
};
|
|
63
|
+
export declare const mockRoutesValueSet: {
|
|
64
|
+
resourceType: "ValueSet";
|
|
65
|
+
status: "active";
|
|
66
|
+
expansion: {
|
|
67
|
+
timestamp: string;
|
|
68
|
+
contains: {
|
|
69
|
+
code: string;
|
|
70
|
+
display: string;
|
|
71
|
+
}[];
|
|
72
|
+
};
|
|
73
|
+
};
|
|
74
|
+
export declare const mockSitesValueSet: {
|
|
75
|
+
resourceType: "ValueSet";
|
|
76
|
+
status: "active";
|
|
77
|
+
expansion: {
|
|
78
|
+
timestamp: string;
|
|
79
|
+
contains: {
|
|
80
|
+
code: string;
|
|
81
|
+
display: string;
|
|
82
|
+
}[];
|
|
83
|
+
};
|
|
84
|
+
};
|
|
85
|
+
export declare const mockLocations: Location[];
|
|
86
|
+
export declare const mockLocationsWithChildren: Location[];
|
|
87
|
+
export declare const mockVaccinationBundle: {
|
|
88
|
+
resourceType: string;
|
|
89
|
+
type: string;
|
|
90
|
+
entry: never[];
|
|
91
|
+
};
|
|
92
|
+
export declare const mockMixedVaccinationBundle: {
|
|
93
|
+
resourceType: string;
|
|
94
|
+
type: string;
|
|
95
|
+
entry: {
|
|
96
|
+
resource: Medication;
|
|
97
|
+
}[];
|
|
98
|
+
};
|
|
99
|
+
export declare const mockImmunizationEntry: ImmunizationInputEntry;
|
|
100
|
+
export declare const mockVaccineCode: {
|
|
101
|
+
code: string;
|
|
102
|
+
display: string;
|
|
103
|
+
};
|
|
104
|
+
/** All 7 form fields present, administered fields required, others optional */
|
|
105
|
+
export declare const mockFullAttributes: InputControlAttributes[];
|
|
106
|
+
/** All 7 form fields present, all fields required */
|
|
107
|
+
export declare const mockAllRequiredAttributes: InputControlAttributes[];
|
|
108
|
+
/** All 7 form fields present, administered fields optional, others optional */
|
|
109
|
+
export declare const mockAttributesWithOptionalAdministered: InputControlAttributes[];
|
|
110
|
+
export declare const mockImmunizationEntryWithDate: ImmunizationInputEntry;
|
|
111
|
+
export declare const mockImmunizationEntryWithErrors: ImmunizationInputEntry;
|
|
112
|
+
export declare const mockVaccineDrugs: Medication[];
|
|
113
|
+
export declare const mockCovid19VaccineDrug: Medication;
|
|
114
|
+
export declare const mockCovid19VaccineDrugs: Medication[];
|
|
115
|
+
export declare const mockEncounterSubject: Reference;
|
|
116
|
+
export declare const mockImmunizationEntryComplete: ImmunizationInputEntry;
|
|
117
|
+
export declare const mockStore: {
|
|
118
|
+
selectedImmunizations: never[];
|
|
119
|
+
attributes: undefined;
|
|
120
|
+
addImmunization: any;
|
|
121
|
+
removeImmunization: any;
|
|
122
|
+
setAttributes: any;
|
|
123
|
+
updateAdministeredOn: any;
|
|
124
|
+
updateVaccineDrug: any;
|
|
125
|
+
updateAdministeredLocation: any;
|
|
126
|
+
updateRoute: any;
|
|
127
|
+
updateSite: any;
|
|
128
|
+
updateExpiryDate: any;
|
|
129
|
+
updateManufacturer: any;
|
|
130
|
+
updateBatchNumber: any;
|
|
131
|
+
validateAll: any;
|
|
132
|
+
reset: any;
|
|
133
|
+
getState: any;
|
|
134
|
+
};
|
|
135
|
+
//# sourceMappingURL=immunizationHistoryMocks.d.ts.map
|
|
@@ -0,0 +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;;;;;;;;;gBAc7B,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;;;;kBA7FhC,UAAU;;CAoGhB,CAAC;AAEF,eAAO,MAAM,qBAAqB,EAAE,sBAanC,CAAC;AAEF,eAAO,MAAM,eAAe;;;CAG3B,CAAC;AAEF,+EAA+E;AAC/E,eAAO,MAAM,kBAAkB,EAAE,sBAAsB,EAQtD,CAAC;AAEF,qDAAqD;AACrD,eAAO,MAAM,yBAAyB,EAAE,sBAAsB,EAQ7D,CAAC;AAEF,+EAA+E;AAC/E,eAAO,MAAM,sCAAsC,EAAE,sBAAsB,EASxE,CAAC;AAEJ,eAAO,MAAM,6BAA6B,EAAE,sBAG3C,CAAC;AAEF,eAAO,MAAM,+BAA+B,EAAE,sBAa7C,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,sBAU3C,CAAC;AAEF,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;CAiBrB,CAAC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { Location } from '@bahmni/services';
|
|
2
|
+
import { Medication, ValueSet } from 'fhir/r4';
|
|
3
|
+
import { default as React } from 'react';
|
|
4
|
+
import { InputControlAttributes } from '../../../../providers/clinicalConfig/models';
|
|
5
|
+
import { ImmunizationInputEntry } from '../models';
|
|
6
|
+
interface SelectedImmunizationItemProps {
|
|
7
|
+
immunization: ImmunizationInputEntry;
|
|
8
|
+
routes: ValueSet | undefined;
|
|
9
|
+
sites: ValueSet | undefined;
|
|
10
|
+
administeredLocationTag: Location[] | undefined;
|
|
11
|
+
attributes: InputControlAttributes[] | undefined;
|
|
12
|
+
vaccineDrugs: Medication[] | undefined;
|
|
13
|
+
}
|
|
14
|
+
declare const SelectedImmunizationItem: React.FC<SelectedImmunizationItemProps>;
|
|
15
|
+
export default SelectedImmunizationItem;
|
|
16
|
+
//# sourceMappingURL=SelectedImmunizationItem.d.ts.map
|
package/dist/components/forms/immunizationHistory/components/SelectedImmunizationItem.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SelectedImmunizationItem.d.ts","sourceRoot":"","sources":["../../../../../src/components/forms/immunizationHistory/components/SelectedImmunizationItem.tsx"],"names":[],"mappings":"AAQA,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,CAiUrE,CAAC;AAEF,eAAe,wBAAwB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../../src/components/forms/immunizationHistory/constants.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,kCAAkC,gEACgB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/forms/immunizationHistory/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,uBAAuB,EAAE,MAAM,2BAA2B,CAAC;AAC/E,OAAO,EAAE,2BAA2B,EAAE,MAAM,UAAU,CAAC;AACvD,OAAO,EAAE,+BAA+B,EAAE,MAAM,SAAS,CAAC"}
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
import { Reference } from 'fhir/r4';
|
|
2
|
+
import { InputControlAttributes } from '../../../providers/clinicalConfig/models';
|
|
3
|
+
export interface ImmunizationDrug {
|
|
4
|
+
code?: string;
|
|
5
|
+
display: string;
|
|
6
|
+
}
|
|
7
|
+
export interface ImmunizationLocation {
|
|
8
|
+
uuid?: string;
|
|
9
|
+
display: string;
|
|
10
|
+
}
|
|
11
|
+
export interface ImmunizationInputEntry {
|
|
12
|
+
id: string;
|
|
13
|
+
drug: ImmunizationDrug | null;
|
|
14
|
+
vaccineCode: {
|
|
15
|
+
code: string;
|
|
16
|
+
display: string;
|
|
17
|
+
};
|
|
18
|
+
administeredOn: Date | null;
|
|
19
|
+
administeredLocation: ImmunizationLocation | null;
|
|
20
|
+
route: string | null;
|
|
21
|
+
site: string | null;
|
|
22
|
+
expiryDate: Date | null;
|
|
23
|
+
manufacturer: string | null;
|
|
24
|
+
batchNumber: string | null;
|
|
25
|
+
errors: {
|
|
26
|
+
drug?: string;
|
|
27
|
+
administeredOn?: string;
|
|
28
|
+
administeredLocation?: string;
|
|
29
|
+
route?: string;
|
|
30
|
+
site?: string;
|
|
31
|
+
expiryDate?: string;
|
|
32
|
+
manufacturer?: string;
|
|
33
|
+
batchNumber?: string;
|
|
34
|
+
};
|
|
35
|
+
hasBeenValidated: boolean;
|
|
36
|
+
}
|
|
37
|
+
export interface ValueSetComboBoxItem {
|
|
38
|
+
code: string;
|
|
39
|
+
display: string;
|
|
40
|
+
disabled?: boolean;
|
|
41
|
+
}
|
|
42
|
+
export interface LocationComboBoxItem {
|
|
43
|
+
uuid: string;
|
|
44
|
+
display: string;
|
|
45
|
+
}
|
|
46
|
+
export interface CreateImmunizationBundleEntriesParams {
|
|
47
|
+
selectedImmunizations: ImmunizationInputEntry[];
|
|
48
|
+
encounterSubject: Reference;
|
|
49
|
+
encounterReference: string;
|
|
50
|
+
practitionerUUID: string;
|
|
51
|
+
}
|
|
52
|
+
export interface ImmunizationHistoryState {
|
|
53
|
+
selectedImmunizations: ImmunizationInputEntry[];
|
|
54
|
+
attributes: InputControlAttributes[] | undefined;
|
|
55
|
+
addImmunization: (vaccineCode: {
|
|
56
|
+
code: string;
|
|
57
|
+
display: string;
|
|
58
|
+
}) => void;
|
|
59
|
+
removeImmunization: (id: string) => void;
|
|
60
|
+
setAttributes: (attrs: InputControlAttributes[]) => void;
|
|
61
|
+
updateAdministeredOn: (id: string, value: Date | null) => void;
|
|
62
|
+
updateVaccineDrug: (id: string, drug: ImmunizationDrug | null) => void;
|
|
63
|
+
updateAdministeredLocation: (id: string, value: ImmunizationLocation | null) => void;
|
|
64
|
+
updateRoute: (id: string, value: string) => void;
|
|
65
|
+
updateSite: (id: string, value: string) => void;
|
|
66
|
+
updateExpiryDate: (id: string, value: Date | null) => void;
|
|
67
|
+
updateManufacturer: (id: string, value: string) => void;
|
|
68
|
+
updateBatchNumber: (id: string, value: string) => void;
|
|
69
|
+
validateAll: () => boolean;
|
|
70
|
+
reset: () => void;
|
|
71
|
+
getState: () => ImmunizationHistoryState;
|
|
72
|
+
}
|
|
73
|
+
//# sourceMappingURL=models.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"models.d.ts","sourceRoot":"","sources":["../../../../src/components/forms/immunizationHistory/models.ts"],"names":[],"mappings":"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"}
|
|
@@ -0,0 +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,uFAmPvC,CAAC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { Location } from '@bahmni/services';
|
|
2
|
+
import { Medication, ValueSet, ValueSetExpansionContains, BundleEntry } from 'fhir/r4';
|
|
3
|
+
import { InputControlAttributes } from '../../../providers/clinicalConfig/models';
|
|
4
|
+
import { CreateImmunizationBundleEntriesParams, LocationComboBoxItem, ValueSetComboBoxItem } from './models';
|
|
5
|
+
export declare function findAttr(name: string, attributes: InputControlAttributes[] | undefined): InputControlAttributes | undefined;
|
|
6
|
+
export declare function getValueSetComboBoxItems(searchTerm: string, valueSet: ValueSet | undefined, emptyMessage: string): ValueSetComboBoxItem[];
|
|
7
|
+
export declare function getMedicationComboBoxItems(searchTerm: string, medications: Medication[] | undefined, vaccineCode: string, emptyMessage: string): ValueSetComboBoxItem[];
|
|
8
|
+
export declare function getLocationComboBoxItems(searchTerm: string, locations: Location[] | undefined): LocationComboBoxItem[];
|
|
9
|
+
export declare function getComboBoxItems(searchTerm: string, codeableConcepts: ValueSet | undefined, isLoading: boolean, isError: boolean, messages: {
|
|
10
|
+
loading: string;
|
|
11
|
+
error: string;
|
|
12
|
+
empty: string;
|
|
13
|
+
}): (ValueSetExpansionContains & {
|
|
14
|
+
disabled?: boolean;
|
|
15
|
+
})[];
|
|
16
|
+
export declare function createImmunizationBundleEntries({ selectedImmunizations, encounterSubject, encounterReference, practitionerUUID, }: CreateImmunizationBundleEntriesParams): BundleEntry[];
|
|
17
|
+
//# sourceMappingURL=utils.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../src/components/forms/immunizationHistory/utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAsC,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAChF,OAAO,EAEL,UAAU,EACV,QAAQ,EACR,yBAAyB,EACzB,WAAW,EAEZ,MAAM,SAAS,CAAC;AACjB,OAAO,EAAE,sBAAsB,EAAE,MAAM,0CAA0C,CAAC;AAQlF,OAAO,EACL,qCAAqC,EAGrC,oBAAoB,EACpB,oBAAoB,EACrB,MAAM,UAAU,CAAC;AAwBlB,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,GACnB,oBAAoB,EAAE,CAkBxB;AAED,wBAAgB,wBAAwB,CACtC,UAAU,EAAE,MAAM,EAClB,SAAS,EAAE,QAAQ,EAAE,GAAG,SAAS,GAChC,oBAAoB,EAAE,CAQxB;AAED,wBAAgB,gBAAgB,CAC9B,UAAU,EAAE,MAAM,EAClB,gBAAgB,EAAE,QAAQ,GAAG,SAAS,EACtC,SAAS,EAAE,OAAO,EAClB,OAAO,EAAE,OAAO,EAChB,QAAQ,EAAE;IAAE,OAAO,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAE,GAC1D,CAAC,yBAAyB,GAAG;IAAE,QAAQ,CAAC,EAAE,OAAO,CAAA;CAAE,CAAC,EAAE,CAaxD;AAED,wBAAgB,+BAA+B,CAAC,EAC9C,qBAAqB,EACrB,gBAAgB,EAChB,kBAAkB,EAClB,gBAAgB,GACjB,EAAE,qCAAqC,GAAG,WAAW,EAAE,CA8CvD"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
export { default as AllergiesForm } from './allergies/AllergiesForm';
|
|
2
2
|
export { default as ConditionsAndDiagnoses } from './conditionsAndDiagnoses/ConditionsAndDiagnoses';
|
|
3
3
|
export { default as EncounterDetails } from './encounterDetails/EncounterDetails';
|
|
4
|
+
export { ImmunizationHistoryForm } from './immunizationHistory';
|
|
4
5
|
export { default as InvestigationsForm } from './investigations/InvestigationsForm';
|
|
5
6
|
export { default as MedicationsForm } from './medications/MedicationsForm';
|
|
6
7
|
export { default as VaccinationForm } from './vaccinations/VaccinationForm';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/forms/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,2BAA2B,CAAC;AACrE,OAAO,EAAE,OAAO,IAAI,sBAAsB,EAAE,MAAM,iDAAiD,CAAC;AACpG,OAAO,EAAE,OAAO,IAAI,gBAAgB,EAAE,MAAM,qCAAqC,CAAC;AAClF,OAAO,EAAE,OAAO,IAAI,kBAAkB,EAAE,MAAM,qCAAqC,CAAC;AACpF,OAAO,EAAE,OAAO,IAAI,eAAe,EAAE,MAAM,+BAA+B,CAAC;AAC3E,OAAO,EAAE,OAAO,IAAI,eAAe,EAAE,MAAM,gCAAgC,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/forms/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,2BAA2B,CAAC;AACrE,OAAO,EAAE,OAAO,IAAI,sBAAsB,EAAE,MAAM,iDAAiD,CAAC;AACpG,OAAO,EAAE,OAAO,IAAI,gBAAgB,EAAE,MAAM,qCAAqC,CAAC;AAClF,OAAO,EAAE,uBAAuB,EAAE,MAAM,uBAAuB,CAAC;AAChE,OAAO,EAAE,OAAO,IAAI,kBAAkB,EAAE,MAAM,qCAAqC,CAAC;AACpF,OAAO,EAAE,OAAO,IAAI,eAAe,EAAE,MAAM,+BAA+B,CAAC;AAC3E,OAAO,EAAE,OAAO,IAAI,eAAe,EAAE,MAAM,gCAAgC,CAAC"}
|