@bahmni/clinical-app 0.0.1-dev.244 → 0.0.1-dev.246
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-DEmnzSjR-ZRNUP_ej.js → DocumentsTable-YDhjKVF1-CHfHhESd.js} +1 -1
- package/dist/{FormsTable-CXitFQpW-cpYGlA3u.js → FormsTable-Db-oc-9c-DyMFJFSL.js} +30 -30
- package/dist/{LNWAZHJI-Dz1XQ8Ii.js → LNWAZHJI-DeBVfGup.js} +2 -2
- package/dist/{MWZ6AO7Z-CH_GibF9.js → MWZ6AO7Z-BhWDEMFG.js} +2 -2
- package/dist/{Observations-DsQfPuhO--RBfTCHG.js → Observations-DIUn-YMi-C75Ix317.js} +19 -19
- package/dist/{YPM2AS64-pi4FYggm.js → YPM2AS64-CGyL4NAP.js} +1 -1
- package/dist/components/forms/{immunizationHistory/ImmunizationHistoryForm.d.ts → immunization/ImmunizationForm.d.ts} +3 -3
- package/dist/components/forms/immunization/ImmunizationForm.d.ts.map +1 -0
- package/dist/components/forms/{immunizationHistory/__tests__/__mocks__/immunizationHistoryMocks.d.ts → immunization/__tests__/__mocks__/immunizationMocks.d.ts} +44 -37
- package/dist/components/forms/immunization/__tests__/__mocks__/immunizationMocks.d.ts.map +1 -0
- package/dist/components/forms/immunization/components/SelectedImmunizationItem.d.ts.map +1 -0
- package/dist/components/forms/immunization/constants.d.ts.map +1 -0
- package/dist/components/forms/immunization/index.d.ts +2 -0
- package/dist/components/forms/immunization/index.d.ts.map +1 -0
- package/dist/components/forms/{immunizationHistory → immunization}/models.d.ts +1 -0
- package/dist/components/forms/immunization/models.d.ts.map +1 -0
- package/dist/components/forms/immunization/stores.d.ts.map +1 -0
- package/dist/components/forms/immunization/utils.d.ts.map +1 -0
- package/dist/components/forms/index.d.ts.map +1 -1
- package/dist/components/patientHeader/ConsultationActionButton.d.ts +2 -0
- package/dist/components/patientHeader/ConsultationActionButton.d.ts.map +1 -1
- package/dist/components/patientHeader/PatientHeader.d.ts.map +1 -1
- package/dist/hooks/useEncounterSession.d.ts +4 -10
- package/dist/hooks/useEncounterSession.d.ts.map +1 -1
- package/dist/{index-CGT6bMT6.js → index-CJnq-JxP.js} +10989 -10862
- package/dist/index.js +1 -1
- package/dist/locales/locale_en.json +36 -28
- package/dist/locales/locale_es.json +36 -28
- package/package.json +1 -1
- package/dist/components/forms/immunizationHistory/ImmunizationHistoryForm.d.ts.map +0 -1
- package/dist/components/forms/immunizationHistory/__tests__/__mocks__/immunizationHistoryMocks.d.ts.map +0 -1
- package/dist/components/forms/immunizationHistory/components/SelectedImmunizationItem.d.ts.map +0 -1
- package/dist/components/forms/immunizationHistory/constants.d.ts.map +0 -1
- package/dist/components/forms/immunizationHistory/index.d.ts +0 -2
- package/dist/components/forms/immunizationHistory/index.d.ts.map +0 -1
- package/dist/components/forms/immunizationHistory/models.d.ts.map +0 -1
- package/dist/components/forms/immunizationHistory/stores.d.ts.map +0 -1
- package/dist/components/forms/immunizationHistory/utils.d.ts.map +0 -1
- /package/dist/components/forms/{immunizationHistory → immunization}/components/SelectedImmunizationItem.d.ts +0 -0
- /package/dist/components/forms/{immunizationHistory → immunization}/constants.d.ts +0 -0
- /package/dist/components/forms/{immunizationHistory → immunization}/stores.d.ts +0 -0
- /package/dist/components/forms/{immunizationHistory → immunization}/utils.d.ts +0 -0
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as r, jsxs as p, Fragment as Y } from "react/jsx-runtime";
|
|
2
|
-
import { c as K, u as Q, d as W, a as J, l as X, m as Z, b as ee, w as te, e as ae } from "./index-
|
|
2
|
+
import { c as K, u as Q, d as W, a as J, l as X, m as Z, b as ee, w as te, e as ae } from "./index-CJnq-JxP.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,17 +1,17 @@
|
|
|
1
|
-
import { jsx as s, jsxs as
|
|
2
|
-
import { u as
|
|
1
|
+
import { jsx as s, jsxs as J, Fragment as W } from "react/jsx-runtime";
|
|
2
|
+
import { u as X, c as ee, f as re, g as ae, a as c, Q as te, N as U, m as oe, l as se, b as S, x as ne, h as de, w as ie, $ as ue, o as me, i as le, s as ce, j as fe, k as ye } from "./index-CJnq-JxP.js";
|
|
3
3
|
import { useState as q, useMemo as d, useCallback as f } from "react";
|
|
4
|
-
const pe = "_formsTableBody_81hra_1", be = "_customAccordianItem_81hra_6",
|
|
4
|
+
const pe = "_formsTableBody_81hra_1", be = "_customAccordianItem_81hra_6", O = {
|
|
5
5
|
formsTableBody: pe,
|
|
6
6
|
customAccordianItem: be
|
|
7
7
|
}, Ne = (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
12
|
config: C
|
|
13
13
|
}) => {
|
|
14
|
-
const { t: o } =
|
|
14
|
+
const { t: o } = X(), m = ee(), [l, A] = q(!1), [t, I] = q(null), { numberOfVisits: k, hideThumbnail: x = !1 } = C ?? {}, T = re(
|
|
15
15
|
u,
|
|
16
16
|
n
|
|
17
17
|
), $ = ae(), {
|
|
@@ -22,20 +22,20 @@ const pe = "_formsTableBody_81hra_1", be = "_customAccordianItem_81hra_6", I = {
|
|
|
22
22
|
refetch: w
|
|
23
23
|
} = c({
|
|
24
24
|
queryKey: ["forms", m, u],
|
|
25
|
-
queryFn: () => le(m, void 0,
|
|
25
|
+
queryFn: () => le(m, void 0, k),
|
|
26
26
|
enabled: !!m && !T
|
|
27
|
-
}),
|
|
27
|
+
}), _ = d(() => !n || n.length === 0 ? y : y.filter(
|
|
28
28
|
(e) => n.includes(e.encounterUuid)
|
|
29
|
-
), [y, n]), { data:
|
|
29
|
+
), [y, n]), { data: D = [] } = c({
|
|
30
30
|
queryKey: ["observationForms"],
|
|
31
31
|
queryFn: () => ce()
|
|
32
|
-
}),
|
|
33
|
-
(e) =>
|
|
34
|
-
[
|
|
32
|
+
}), F = f(
|
|
33
|
+
(e) => D.find((r) => r.name === e)?.uuid,
|
|
34
|
+
[D]
|
|
35
35
|
), p = d(() => {
|
|
36
36
|
if (t)
|
|
37
|
-
return
|
|
38
|
-
}, [t,
|
|
37
|
+
return F(t.formName);
|
|
38
|
+
}, [t, F]), {
|
|
39
39
|
isLoading: H,
|
|
40
40
|
isError: K,
|
|
41
41
|
error: b
|
|
@@ -67,7 +67,7 @@ const pe = "_formsTableBody_81hra_1", be = "_customAccordianItem_81hra_6", I = {
|
|
|
67
67
|
return U(b).message;
|
|
68
68
|
if (g)
|
|
69
69
|
return U(g).message;
|
|
70
|
-
}, [b, g]),
|
|
70
|
+
}, [b, g]), L = d(
|
|
71
71
|
() => [
|
|
72
72
|
{ key: "recordedOn", header: o("RECORDED_ON") },
|
|
73
73
|
{ key: "recordedBy", header: o("RECORDED_BY") }
|
|
@@ -79,12 +79,12 @@ const pe = "_formsTableBody_81hra_1", be = "_customAccordianItem_81hra_6", I = {
|
|
|
79
79
|
{ key: "recordedBy", sortable: !0 }
|
|
80
80
|
],
|
|
81
81
|
[]
|
|
82
|
-
),
|
|
83
|
-
const e =
|
|
82
|
+
), M = d(() => {
|
|
83
|
+
const e = _.reduce(
|
|
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((Z) => Z.providerName).filter(Boolean).join(", ");
|
|
88
88
|
return r[i].push({
|
|
89
89
|
id: a.encounterUuid,
|
|
90
90
|
formName: a.formName,
|
|
@@ -104,10 +104,10 @@ const pe = "_formsTableBody_81hra_1", be = "_customAccordianItem_81hra_6", I = {
|
|
|
104
104
|
)
|
|
105
105
|
})
|
|
106
106
|
).sort((r, a) => r.formName.localeCompare(a.formName));
|
|
107
|
-
}, [
|
|
108
|
-
|
|
107
|
+
}, [_, o]), R = f((e) => {
|
|
108
|
+
I(e), A(!0);
|
|
109
109
|
}, []), Y = f(() => {
|
|
110
|
-
|
|
110
|
+
A(!1), I(null);
|
|
111
111
|
}, []), v = f(
|
|
112
112
|
(e, r) => {
|
|
113
113
|
switch (r) {
|
|
@@ -121,33 +121,33 @@ const pe = "_formsTableBody_81hra_1", be = "_customAccordianItem_81hra_6", I = {
|
|
|
121
121
|
},
|
|
122
122
|
[R]
|
|
123
123
|
);
|
|
124
|
-
return /* @__PURE__ */ W
|
|
125
|
-
/* @__PURE__ */ s("div", { "data-testid": "forms-table", children: B || E ||
|
|
124
|
+
return /* @__PURE__ */ J(W, { children: [
|
|
125
|
+
/* @__PURE__ */ s("div", { "data-testid": "forms-table", children: B || E || M.length === 0 || T ? /* @__PURE__ */ s(
|
|
126
126
|
S,
|
|
127
127
|
{
|
|
128
|
-
headers:
|
|
128
|
+
headers: L,
|
|
129
129
|
ariaLabel: o("FORMS_HEADING"),
|
|
130
130
|
rows: [],
|
|
131
131
|
loading: B,
|
|
132
132
|
errorStateMessage: E ? j?.message : void 0,
|
|
133
133
|
emptyStateMessage: o("FORMS_UNAVAILABLE"),
|
|
134
134
|
renderCell: v,
|
|
135
|
-
className:
|
|
135
|
+
className: O.formsTableBody,
|
|
136
136
|
dataTestId: "forms-table"
|
|
137
137
|
}
|
|
138
|
-
) : /* @__PURE__ */ s(ne, { align: "start", children:
|
|
138
|
+
) : /* @__PURE__ */ s(ne, { align: "start", children: M.map((e, r) => {
|
|
139
139
|
const { formName: a, records: i } = e;
|
|
140
140
|
return /* @__PURE__ */ s(
|
|
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__ */ s(
|
|
148
148
|
S,
|
|
149
149
|
{
|
|
150
|
-
headers:
|
|
150
|
+
headers: L,
|
|
151
151
|
ariaLabel: o("FORMS_HEADING"),
|
|
152
152
|
rows: i,
|
|
153
153
|
loading: !1,
|
|
@@ -155,7 +155,7 @@ const pe = "_formsTableBody_81hra_1", be = "_customAccordianItem_81hra_6", I = {
|
|
|
155
155
|
sortable: P,
|
|
156
156
|
emptyStateMessage: o("FORMS_UNAVAILABLE"),
|
|
157
157
|
renderCell: v,
|
|
158
|
-
className:
|
|
158
|
+
className: O.formsTableBody,
|
|
159
159
|
dataTestId: `forms-table-${a}`
|
|
160
160
|
}
|
|
161
161
|
)
|
|
@@ -184,7 +184,7 @@ const pe = "_formsTableBody_81hra_1", be = "_customAccordianItem_81hra_6", I = {
|
|
|
184
184
|
errorMessage: G,
|
|
185
185
|
emptyStateMessage: o("NO_FORM_DATA_AVAILABLE"),
|
|
186
186
|
testIdPrefix: t.formName,
|
|
187
|
-
hideThumbnail:
|
|
187
|
+
hideThumbnail: x
|
|
188
188
|
}
|
|
189
189
|
)
|
|
190
190
|
}
|
|
@@ -192,5 +192,5 @@ const pe = "_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 { E as d, F as f, G as e } from "./index-
|
|
1
|
+
import { c, T as l, P as m, a as u, D as v, Q as i } from "./YPM2AS64-CGyL4NAP.js";
|
|
2
|
+
import { E as d, F as f, G as e } from "./index-CJnq-JxP.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 { E as v, F as C, G 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-CGyL4NAP.js";
|
|
2
|
+
import { E as v, F as C, G as e } from "./index-CJnq-JxP.js";
|
|
3
3
|
var h = (t) => {
|
|
4
4
|
const [r, o] = s({
|
|
5
5
|
prefix: "TanstackQueryDevtools"
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsxs as N, jsx as u } from "react/jsx-runtime";
|
|
2
|
-
import { c as Q, d as
|
|
3
|
-
import { useRef as se, useEffect as
|
|
2
|
+
import { c as Q, d as V, u as S, n as H, p as K, a as w, Q as x, q as G, r as M, t as X, H as j, b as z, v as P, Z as D, y as Z, z as Y, R as J, A as W, B as ee, C as ae, D as te } from "./index-CJnq-JxP.js";
|
|
3
|
+
import { useRef as se, useEffect as O, useMemo as R } from "react";
|
|
4
4
|
const A = (a, n, d, l, b, r) => {
|
|
5
5
|
const t = Z(a, n, b), s = t.value, i = Y(s);
|
|
6
6
|
let o = s;
|
|
@@ -112,20 +112,20 @@ const A = (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 = Q(), { addNotification: s } =
|
|
115
|
+
} = n, r = se(/* @__PURE__ */ new Set()), t = Q(), { addNotification: s } = V(), { t: i } = S(), o = H({
|
|
116
116
|
queries: d.map((e) => ({
|
|
117
117
|
queryKey: de(e),
|
|
118
118
|
queryFn: () => K(e),
|
|
119
119
|
enabled: !!e
|
|
120
120
|
}))
|
|
121
121
|
});
|
|
122
|
-
|
|
122
|
+
O(() => {
|
|
123
123
|
o.forEach((e, h) => {
|
|
124
124
|
if (e.isError && !r.current.has(h)) {
|
|
125
|
-
const
|
|
125
|
+
const k = 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: k }),
|
|
129
129
|
type: "error"
|
|
130
130
|
}), r.current.add(h);
|
|
131
131
|
} else e.isError || r.current.delete(h);
|
|
@@ -135,35 +135,35 @@ const A = (a, n, d, l, b, r) => {
|
|
|
135
135
|
data: c,
|
|
136
136
|
isLoading: F,
|
|
137
137
|
isError: f,
|
|
138
|
-
refetch:
|
|
138
|
+
refetch: g
|
|
139
139
|
} = w({
|
|
140
140
|
queryKey: le(t, m),
|
|
141
141
|
queryFn: () => te(t, m),
|
|
142
142
|
enabled: !!t && m.length > 0 && y
|
|
143
143
|
});
|
|
144
|
-
|
|
144
|
+
x(
|
|
145
145
|
(e) => {
|
|
146
146
|
e.patientUUID === t && e.updatedConcepts.size > 0 && [...e.updatedConcepts.keys()].some(
|
|
147
147
|
(h) => m.includes(h)
|
|
148
|
-
) &&
|
|
148
|
+
) && g();
|
|
149
149
|
},
|
|
150
|
-
[t,
|
|
151
|
-
),
|
|
150
|
+
[t, g]
|
|
151
|
+
), O(() => {
|
|
152
152
|
f && s({
|
|
153
153
|
title: i("ERROR_DEFAULT_TITLE"),
|
|
154
154
|
message: i("ERROR_FETCHING_OBSERVATIONS"),
|
|
155
155
|
type: "error"
|
|
156
156
|
});
|
|
157
157
|
}, [f]);
|
|
158
|
-
const
|
|
158
|
+
const T = R(() => {
|
|
159
159
|
if (!c) return [];
|
|
160
|
-
const e =
|
|
160
|
+
const e = G(c), h = M(e);
|
|
161
161
|
return X(h);
|
|
162
|
-
}, [c]),
|
|
162
|
+
}, [c]), q = [
|
|
163
163
|
{ key: "name", header: "name" },
|
|
164
164
|
{ key: "value", header: "value" },
|
|
165
165
|
{ key: "form", header: "form" }
|
|
166
|
-
],
|
|
166
|
+
], _ = F || !y, $ = f && y, C = (!c || c.entry?.length === 0 || m.length === 0) && y, L = $ ? i("ERROR_FETCHING_OBSERVATIONS") : null, B = C ? i("NO_OBSERVATIONS_FOUND") : void 0, U = T.length > 0 && !_ && !$, E = n.titleTranslationKey, v = E ? i(E) : "";
|
|
167
167
|
return /* @__PURE__ */ N(
|
|
168
168
|
"div",
|
|
169
169
|
{
|
|
@@ -185,18 +185,18 @@ const A = (a, n, d, l, b, r) => {
|
|
|
185
185
|
U ? /* @__PURE__ */ u(
|
|
186
186
|
ie,
|
|
187
187
|
{
|
|
188
|
-
groupedData:
|
|
188
|
+
groupedData: T,
|
|
189
189
|
title: v,
|
|
190
190
|
hideThumbnail: b
|
|
191
191
|
}
|
|
192
192
|
) : /* @__PURE__ */ u(
|
|
193
193
|
z,
|
|
194
194
|
{
|
|
195
|
-
headers:
|
|
195
|
+
headers: q,
|
|
196
196
|
rows: [],
|
|
197
197
|
ariaLabel: i("OBSERVATIONS"),
|
|
198
|
-
loading:
|
|
199
|
-
errorStateMessage:
|
|
198
|
+
loading: _,
|
|
199
|
+
errorStateMessage: L,
|
|
200
200
|
emptyStateMessage: B,
|
|
201
201
|
dataTestId: "observations-table"
|
|
202
202
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { I as we, J as z, K as xt, L as B, F as q, G as y, P as Ro, M as ye, S as R, O as _, T as k, U as N, V as A, W as bs, X as ir, Y 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 { I as we, J as z, K as xt, L as B, F as q, G as y, P as Ro, M as ye, S as R, O as _, T as k, U as N, V as A, W as bs, X as ir, Y 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-CJnq-JxP.js";
|
|
2
2
|
var Os = (e) => e != null, qs = (e) => e.filter(Os);
|
|
3
3
|
function _s(e) {
|
|
4
4
|
return (...t) => {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { EncounterSessionStartContext } from '../../../events/startConsultation';
|
|
2
2
|
import { InputControl as ClinicalInputControlConfig } from '../../../providers/clinicalConfig/models';
|
|
3
|
-
declare const
|
|
3
|
+
declare const ImmunizationForm: ({ encounterSessionStartContext, inputControlConfig, }: {
|
|
4
4
|
encounterSessionStartContext?: EncounterSessionStartContext;
|
|
5
5
|
inputControlConfig?: ClinicalInputControlConfig;
|
|
6
6
|
}) => import("react/jsx-runtime").JSX.Element;
|
|
7
|
-
export default
|
|
8
|
-
//# sourceMappingURL=
|
|
7
|
+
export default ImmunizationForm;
|
|
8
|
+
//# sourceMappingURL=ImmunizationForm.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ImmunizationForm.d.ts","sourceRoot":"","sources":["../../../../src/components/forms/immunization/ImmunizationForm.tsx"],"names":[],"mappings":"AAkBA,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,mCAAmC,CAAC;AAEtF,OAAO,KAAK,EAAE,YAAY,IAAI,0BAA0B,EAAE,MAAM,0CAA0C,CAAC;AAe3G,QAAA,MAAM,gBAAgB,GAAI,uDAGvB;IACD,4BAA4B,CAAC,EAAE,4BAA4B,CAAC;IAC5D,kBAAkB,CAAC,EAAE,0BAA0B,CAAC;CACjD,4CAqUA,CAAC;AAEF,eAAe,gBAAgB,CAAC"}
|
|
@@ -1,52 +1,53 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Location, AvailableStockResponse } from '@bahmni/services';
|
|
2
2
|
import { Medication, MedicationRequest, Reference } from 'fhir/r4';
|
|
3
3
|
import { InputControlAttributes } from '../../../../../providers/clinicalConfig/models';
|
|
4
4
|
import { ImmunizationInputEntry } from '../../models';
|
|
5
|
-
export declare const
|
|
5
|
+
export declare const mockImmunizationInputControlConfig: {
|
|
6
|
+
type: string;
|
|
7
|
+
encounterTypes: string[];
|
|
8
|
+
privileges: string[];
|
|
9
|
+
attributes: InputControlAttributes[];
|
|
6
10
|
metadata: {
|
|
7
11
|
routeConceptUuid: string;
|
|
8
12
|
vaccineConceptSetUuid: string;
|
|
9
13
|
siteConceptUuid: string;
|
|
10
14
|
administeredLocationTag: string;
|
|
11
15
|
};
|
|
12
|
-
encounterType: string[];
|
|
13
|
-
privilege: string[];
|
|
14
|
-
attributes: InputControlAttributes[];
|
|
15
16
|
};
|
|
16
|
-
export declare const
|
|
17
|
+
export declare const mockAdministrationInputControlConfigAllowed: {
|
|
17
18
|
type: string;
|
|
19
|
+
encounterTypes: string[];
|
|
20
|
+
privileges: string[];
|
|
21
|
+
attributes: InputControlAttributes[];
|
|
18
22
|
metadata: {
|
|
19
23
|
routeConceptUuid: string;
|
|
20
24
|
vaccineConceptSetUuid: string;
|
|
21
25
|
siteConceptUuid: string;
|
|
22
26
|
administeredLocationTag: string;
|
|
23
27
|
};
|
|
24
|
-
encounterTypes: string[];
|
|
25
|
-
privileges: string[];
|
|
26
|
-
attributes: InputControlAttributes[];
|
|
27
28
|
};
|
|
28
|
-
export declare const
|
|
29
|
+
export declare const mockAdministrationInputControlConfig: {
|
|
30
|
+
type: string;
|
|
29
31
|
metadata: {
|
|
30
|
-
|
|
32
|
+
disableAdditionalAdministrations: boolean;
|
|
31
33
|
routeConceptUuid: string;
|
|
32
34
|
vaccineConceptSetUuid: string;
|
|
33
35
|
siteConceptUuid: string;
|
|
34
36
|
administeredLocationTag: string;
|
|
35
37
|
};
|
|
36
|
-
type: string;
|
|
37
38
|
encounterTypes: string[];
|
|
38
39
|
privileges: string[];
|
|
39
40
|
attributes: InputControlAttributes[];
|
|
40
41
|
};
|
|
41
|
-
export declare const
|
|
42
|
-
type: string;
|
|
42
|
+
export declare const mockImmunizationInputControlConfigWithFetchStockBatches: {
|
|
43
43
|
metadata: {
|
|
44
|
-
|
|
44
|
+
fetchStockBatches: boolean;
|
|
45
45
|
routeConceptUuid: string;
|
|
46
46
|
vaccineConceptSetUuid: string;
|
|
47
47
|
siteConceptUuid: string;
|
|
48
48
|
administeredLocationTag: string;
|
|
49
49
|
};
|
|
50
|
+
type: string;
|
|
50
51
|
encounterTypes: string[];
|
|
51
52
|
privileges: string[];
|
|
52
53
|
attributes: InputControlAttributes[];
|
|
@@ -55,6 +56,7 @@ export declare const mockClinicalConfigContext: {
|
|
|
55
56
|
clinicalConfig: {
|
|
56
57
|
consultationPad: {
|
|
57
58
|
inputControls: {
|
|
59
|
+
type: string;
|
|
58
60
|
metadata: {
|
|
59
61
|
routeConceptUuid: string;
|
|
60
62
|
vaccineConceptSetUuid: string;
|
|
@@ -64,7 +66,6 @@ export declare const mockClinicalConfigContext: {
|
|
|
64
66
|
encounterType: string[];
|
|
65
67
|
privilege: string[];
|
|
66
68
|
attributes: InputControlAttributes[];
|
|
67
|
-
type: string;
|
|
68
69
|
}[];
|
|
69
70
|
};
|
|
70
71
|
};
|
|
@@ -75,27 +76,32 @@ export declare const mockVaccineValueSet: {
|
|
|
75
76
|
resourceType: "ValueSet";
|
|
76
77
|
status: "active";
|
|
77
78
|
expansion: {
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
code: string;
|
|
79
|
+
contains?: {
|
|
80
|
+
code?: string;
|
|
81
81
|
display: string;
|
|
82
|
-
}[];
|
|
82
|
+
}[] | undefined;
|
|
83
|
+
timestamp: string;
|
|
83
84
|
};
|
|
84
85
|
};
|
|
85
86
|
export declare const mockValueSetWithPartialItem: {
|
|
86
87
|
resourceType: "ValueSet";
|
|
87
88
|
status: "active";
|
|
88
89
|
expansion: {
|
|
89
|
-
|
|
90
|
-
|
|
90
|
+
contains?: {
|
|
91
|
+
code?: string;
|
|
91
92
|
display: string;
|
|
92
|
-
}[];
|
|
93
|
+
}[] | undefined;
|
|
94
|
+
timestamp: string;
|
|
93
95
|
};
|
|
94
96
|
};
|
|
95
97
|
export declare const mockValueSetWithoutContains: {
|
|
96
98
|
resourceType: "ValueSet";
|
|
97
99
|
status: "active";
|
|
98
100
|
expansion: {
|
|
101
|
+
contains?: {
|
|
102
|
+
code?: string;
|
|
103
|
+
display: string;
|
|
104
|
+
}[] | undefined;
|
|
99
105
|
timestamp: string;
|
|
100
106
|
};
|
|
101
107
|
};
|
|
@@ -103,22 +109,22 @@ export declare const mockRoutesValueSet: {
|
|
|
103
109
|
resourceType: "ValueSet";
|
|
104
110
|
status: "active";
|
|
105
111
|
expansion: {
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
code: string;
|
|
112
|
+
contains?: {
|
|
113
|
+
code?: string;
|
|
109
114
|
display: string;
|
|
110
|
-
}[];
|
|
115
|
+
}[] | undefined;
|
|
116
|
+
timestamp: string;
|
|
111
117
|
};
|
|
112
118
|
};
|
|
113
119
|
export declare const mockSitesValueSet: {
|
|
114
120
|
resourceType: "ValueSet";
|
|
115
121
|
status: "active";
|
|
116
122
|
expansion: {
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
code: string;
|
|
123
|
+
contains?: {
|
|
124
|
+
code?: string;
|
|
120
125
|
display: string;
|
|
121
|
-
}[];
|
|
126
|
+
}[] | undefined;
|
|
127
|
+
timestamp: string;
|
|
122
128
|
};
|
|
123
129
|
};
|
|
124
130
|
export declare const mockLocations: Location[];
|
|
@@ -142,9 +148,9 @@ export declare const mockVaccineCode: {
|
|
|
142
148
|
};
|
|
143
149
|
/** All 10 form fields present, drug and administered fields required, others optional */
|
|
144
150
|
export declare const mockFullAttributes: InputControlAttributes[];
|
|
145
|
-
/** All 10 form fields present, all fields required
|
|
151
|
+
/** All 10 form fields present, all fields required */
|
|
146
152
|
export declare const mockAllRequiredAttributes: InputControlAttributes[];
|
|
147
|
-
/** All 10 form fields present,
|
|
153
|
+
/** All 10 form fields present, all fields optional */
|
|
148
154
|
export declare const mockAttributesWithOptionalAdministered: InputControlAttributes[];
|
|
149
155
|
export declare const mockImmunizationEntryWithDate: ImmunizationInputEntry;
|
|
150
156
|
export declare const mockImmunizationEntryWithErrors: ImmunizationInputEntry;
|
|
@@ -159,7 +165,11 @@ export declare const mockImmunizationEntryWithBasedOnAndNullFields: Immunization
|
|
|
159
165
|
export declare const mockImmunizationEntryWithCustomDrug: ImmunizationInputEntry;
|
|
160
166
|
export declare const mockImmunizationEntryWithCustomLocation: ImmunizationInputEntry;
|
|
161
167
|
export declare const mockMedicationRequest: MedicationRequest;
|
|
168
|
+
export declare const mockMedicationRequestNoMedRef: MedicationRequest;
|
|
162
169
|
export declare const mockFetchedMedication: Medication;
|
|
170
|
+
export declare const mockAvailableStockResponse: AvailableStockResponse;
|
|
171
|
+
export declare const mockAvailableStockWithEmptyBatch: AvailableStockResponse;
|
|
172
|
+
export declare const mockEmptyAvailableStockResponse: AvailableStockResponse;
|
|
163
173
|
export declare const mockVaccinationBundleWithCovid: {
|
|
164
174
|
resourceType: string;
|
|
165
175
|
type: string;
|
|
@@ -167,9 +177,6 @@ export declare const mockVaccinationBundleWithCovid: {
|
|
|
167
177
|
resource: Medication;
|
|
168
178
|
}[];
|
|
169
179
|
};
|
|
170
|
-
export declare const mockAvailableStockResponse: AvailableStockResponse;
|
|
171
|
-
export declare const mockAvailableStockWithEmptyBatch: AvailableStockResponse;
|
|
172
|
-
export declare const mockEmptyAvailableStockResponse: AvailableStockResponse;
|
|
173
180
|
export declare const mockStore: {
|
|
174
181
|
selectedImmunizations: never[];
|
|
175
182
|
attributes: undefined;
|
|
@@ -190,4 +197,4 @@ export declare const mockStore: {
|
|
|
190
197
|
reset: any;
|
|
191
198
|
getState: any;
|
|
192
199
|
};
|
|
193
|
-
//# sourceMappingURL=
|
|
200
|
+
//# sourceMappingURL=immunizationMocks.d.ts.map
|
|
@@ -0,0 +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;AACnE,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,yBAAyB;;;;;;;;;;;;;;;;;;;CAgBrC,CAAC;AAEF,eAAO,MAAM,mBAAmB;;;;;mBAzEW,MAAM;qBAAW,MAAM;;;;CA4EhE,CAAC;AAEH,eAAO,MAAM,2BAA2B;;;;;mBA9EG,MAAM;qBAAW,MAAM;;;;CAgFhE,CAAC;AAEH,eAAO,MAAM,2BAA2B;;;;;mBAlFG,MAAM;qBAAW,MAAM;;;;CAkFR,CAAC;AAE3D,eAAO,MAAM,kBAAkB;;;;;mBApFY,MAAM;qBAAW,MAAM;;;;CAsFhE,CAAC;AAEH,eAAO,MAAM,iBAAiB;;;;;mBAxFa,MAAM;qBAAW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C;AAEF,eAAO,MAAM,0BAA0B,EAAE,sBAoBxC,CAAC;AAEF,eAAO,MAAM,gCAAgC,EAAE,sBA4B9C,CAAC;AAEF,eAAO,MAAM,+BAA+B,EAAE,sBAG7C,CAAC;AAEF,eAAO,MAAM,8BAA8B;;;;;;CAI1C,CAAC;AAEF,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;CAmBrB,CAAC"}
|
|
@@ -0,0 +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,EAC5B,MAAM,kBAAkB,CAAC;AAC1B,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,oBAAoB,EAAE,MAAM,WAAW,CAAC;AAYzE,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;IACvC,QAAQ,EAAE,oBAAoB,CAAC;IAC/B,eAAe,EAAE,sBAAsB,GAAG,SAAS,CAAC;IACpD,WAAW,EAAE,OAAO,CAAC;IACrB,mBAAmB,EAAE,OAAO,CAAC;CAC9B;AAED,QAAA,MAAM,wBAAwB,EAAE,KAAK,CAAC,EAAE,CAAC,6BAA6B,CA8crE,CAAC;AAEF,eAAe,wBAAwB,CAAC"}
|
|
@@ -0,0 +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,wBAAwB,kDACY,CAAC;AAClD,eAAO,MAAM,sBAAsB,OAAO,CAAC;AAC3C,eAAO,MAAM,yBAAyB,sBAAsB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/forms/immunization/index.ts"],"names":[],"mappings":"AAiCA,OAAO,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"models.d.ts","sourceRoot":"","sources":["../../../../src/components/forms/immunization/models.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AACpC,OAAO,EAAE,sBAAsB,EAAE,MAAM,0CAA0C,CAAC;AAClF,OAAO,EACL,6CAA6C,EAC7C,sCAAsC,EACvC,MAAM,aAAa,CAAC;AAErB,MAAM,MAAM,oBAAoB,GAC5B,OAAO,sCAAsC,GAC7C,OAAO,6CAA6C,CAAC;AAEzD,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;Q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C;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"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"stores.d.ts","sourceRoot":"","sources":["../../../../src/components/forms/immunization/stores.ts"],"names":[],"mappings":"AAIA,OAAO,EAEL,wBAAwB,EAGxB,oBAAoB,EACrB,MAAM,UAAU,CAAC;AAGlB,KAAK,2BAA2B,GAAG,UAAU,CAC3C,OAAO,8BAA8B,CACtC,CAAC;AAuPF,iBAAS,8BAA8B,yDAwJtC;AAED,wBAAgB,oBAAoB,CAClC,GAAG,EAAE,oBAAoB,GACxB,2BAA2B,CAK7B;AAED,wBAAgB,2BAA2B,CACzC,GAAG,EAAE,oBAAoB,GACxB,wBAAwB,CAE1B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../src/components/forms/immunization/utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAIL,QAAQ,EACR,K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AAO,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,6BAA6B,CAC3C,OAAO,EAAE,iBAAiB,EAC1B,iBAAiB,EAAE,UAAU,EAC7B,aAAa,EAAE;IAAE,IAAI,CAAC,EAAE,MAAM,CAAC;IAAC,OAAO,CAAC,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,MAAM,CAAA;CAAE;;;;;;;;;;;;;;;;;EA0BjE;AAED,wBAAgB,+BAA+B,CAAC,EAC9C,qBAAqB,EACrB,gBAAgB,EAChB,kBAAkB,EAClB,gBAAgB,GACjB,EAAE,qCAAqC,GAAG,WAAW,EAAE,CA2DvD"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/forms/index.ts"],"names":[],"mappings":"AAAA,OAAO,oBAAoB,CAAC;AAC5B,OAAO,aAAa,CAAC;AACrB,OAAO,kBAAkB,CAAC;AAC1B,OAAO,0BAA0B,CAAC;AAClC,OAAO,eAAe,CAAC;AACvB,OAAO,gBAAgB,CAAC;AACxB,OAAO,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/forms/index.ts"],"names":[],"mappings":"AAAA,OAAO,oBAAoB,CAAC;AAC5B,OAAO,aAAa,CAAC;AACrB,OAAO,kBAAkB,CAAC;AAC1B,OAAO,0BAA0B,CAAC;AAClC,OAAO,eAAe,CAAC;AACvB,OAAO,gBAAgB,CAAC;AACxB,OAAO,gBAAgB,CAAC;AACxB,OAAO,gBAAgB,CAAC;AAExB,YAAY,EAAE,YAAY,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAC;AAC/D,OAAO,EAAE,OAAO,IAAI,oBAAoB,EAAE,MAAM,YAAY,CAAC;AAE7D,OAAO,EAAE,0BAA0B,EAAE,MAAM,YAAY,CAAC"}
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
2
|
interface ConsultationActionButtonProps {
|
|
3
3
|
isActionAreaVisible: boolean;
|
|
4
|
+
editActiveEncounter: boolean;
|
|
5
|
+
isLoading: boolean;
|
|
4
6
|
}
|
|
5
7
|
declare const ConsultationActionButton: React.FC<ConsultationActionButtonProps>;
|
|
6
8
|
export default ConsultationActionButton;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ConsultationActionButton.d.ts","sourceRoot":"","sources":["../../../src/components/patientHeader/ConsultationActionButton.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ConsultationActionButton.d.ts","sourceRoot":"","sources":["../../../src/components/patientHeader/ConsultationActionButton.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,UAAU,6BAA6B;IACrC,mBAAmB,EAAE,OAAO,CAAC;IAC7B,mBAAmB,EAAE,OAAO,CAAC;IAC7B,SAAS,EAAE,OAAO,CAAC;CACpB;AAED,QAAA,MAAM,wBAAwB,EAAE,KAAK,CAAC,EAAE,CAAC,6BAA6B,CA4BrE,CAAC;AAEF,eAAe,wBAAwB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PatientHeader.d.ts","sourceRoot":"","sources":["../../../src/components/patientHeader/PatientHeader.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"PatientHeader.d.ts","sourceRoot":"","sources":["../../../src/components/patientHeader/PatientHeader.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,MAAM,OAAO,CAAC;AAK1B,UAAU,kBAAkB;IAC1B,mBAAmB,EAAE,OAAO,CAAC;CAC9B;AAED;;;;;;GAMG;AACH,QAAA,MAAM,aAAa,EAAE,KAAK,CAAC,EAAE,CAAC,kBAAkB,CAgC/C,CAAC;AAEF,eAAe,aAAa,CAAC"}
|
|
@@ -1,24 +1,18 @@
|
|
|
1
|
-
import { Provider } from '@bahmni/services';
|
|
1
|
+
import { Provider, MatchReasonCode } from '@bahmni/services';
|
|
2
2
|
import { Encounter } from 'fhir/r4';
|
|
3
|
-
interface UseEncounterSessionOptions {
|
|
3
|
+
export interface UseEncounterSessionOptions {
|
|
4
4
|
practitioner: Provider | null;
|
|
5
5
|
encounterTypeUUID?: string;
|
|
6
6
|
}
|
|
7
|
-
interface UseEncounterSessionReturn {
|
|
7
|
+
export interface UseEncounterSessionReturn {
|
|
8
8
|
hasActiveSession: boolean;
|
|
9
9
|
activeEncounter: Encounter | null;
|
|
10
10
|
isPractitionerMatch: boolean;
|
|
11
|
+
matchReason: MatchReasonCode[];
|
|
11
12
|
editActiveEncounter: boolean;
|
|
12
13
|
isLoading: boolean;
|
|
13
14
|
error: string | null;
|
|
14
15
|
refetch: () => Promise<void>;
|
|
15
16
|
}
|
|
16
|
-
/**
|
|
17
|
-
* Hook to manage encounter session state
|
|
18
|
-
* Determines if there's an active encounter session for the current patient
|
|
19
|
-
* @param options - Options containing the practitioner to use for session filtering
|
|
20
|
-
* @returns Object containing session state and utilities
|
|
21
|
-
*/
|
|
22
17
|
export declare function useEncounterSession(options: UseEncounterSessionOptions): UseEncounterSessionReturn;
|
|
23
|
-
export {};
|
|
24
18
|
//# sourceMappingURL=useEncounterSession.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useEncounterSession.d.ts","sourceRoot":"","sources":["../../src/hooks/useEncounterSession.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"useEncounterSession.d.ts","sourceRoot":"","sources":["../../src/hooks/useEncounterSession.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EAGR,eAAe,EAEhB,MAAM,kBAAkB,CAAC;AAE1B,OAAO,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAGpC,MAAM,WAAW,0BAA0B;IACzC,YAAY,EAAE,QAAQ,GAAG,IAAI,CAAC;IAC9B,iBAAiB,CAAC,EAAE,MAAM,CAAC;CAC5B;AAED,MAAM,WAAW,yBAAyB;IACxC,gBAAgB,EAAE,OAAO,CAAC;IAC1B,eAAe,EAAE,SAAS,GAAG,IAAI,CAAC;IAClC,mBAAmB,EAAE,OAAO,CAAC;IAC7B,WAAW,EAAE,eAAe,EAAE,CAAC;IAC/B,mBAAmB,EAAE,OAAO,CAAC;IAC7B,SAAS,EAAE,OAAO,CAAC;IACnB,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,OAAO,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC;CAC9B;AAED,wBAAgB,mBAAmB,CACjC,OAAO,EAAE,0BAA0B,GAClC,yBAAyB,CAiG3B"}
|