@bahmni/clinical-app 0.0.1-dev.265 → 0.0.1-dev.267
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-CTpGjHXi-BS3py5vP.js → DocumentsTable-B5KzNxpE-KfBmAKld.js} +1 -1
- package/dist/{FormsTable-BIz1A-5g-D_GWAQ4K.js → FormsTable-E-Ya0wBK-CUXgYJAT.js} +21 -21
- package/dist/{LNWAZHJI-TFLuXN4b.js → LNWAZHJI-B2-i45tX.js} +2 -2
- package/dist/{MWZ6AO7Z-C5UZFVIw.js → MWZ6AO7Z-T340-MgP.js} +2 -2
- package/dist/{Observations-Cf7HY6Zc-DupzN5D2.js → Observations-DO36Czp5-CwJZbuAF.js} +6 -6
- package/dist/{YPM2AS64-LcL8zpT_.js → YPM2AS64-CVTL7vE4.js} +1 -1
- package/dist/__mocks__/cdssMocks.d.ts +3 -0
- package/dist/__mocks__/cdssMocks.d.ts.map +1 -0
- package/dist/components/cdsCardAlert/CDSCardAlert.d.ts +9 -0
- package/dist/components/cdsCardAlert/CDSCardAlert.d.ts.map +1 -0
- package/dist/components/consultationPad/__tests__/__mocks__/indexMocks.d.ts +26 -0
- package/dist/components/consultationPad/__tests__/__mocks__/indexMocks.d.ts.map +1 -1
- package/dist/components/consultationPad/cdssConfigSchema.json.d.ts +69 -0
- package/dist/components/consultationPad/index.d.ts.map +1 -1
- package/dist/components/forms/immunization/ImmunizationForm.d.ts.map +1 -1
- package/dist/components/forms/immunization/__tests__/__mocks__/immunizationMocks.d.ts +36 -12
- package/dist/components/forms/immunization/__tests__/__mocks__/immunizationMocks.d.ts.map +1 -1
- package/dist/components/forms/immunization/components/SelectedImmunizationItem.d.ts +2 -1
- package/dist/components/forms/immunization/components/SelectedImmunizationItem.d.ts.map +1 -1
- package/dist/components/forms/immunization/index.d.ts.map +1 -1
- package/dist/components/forms/immunization/models.d.ts +5 -1
- package/dist/components/forms/immunization/models.d.ts.map +1 -1
- package/dist/components/forms/immunization/stores.d.ts.map +1 -1
- package/dist/components/forms/immunization/utils.d.ts.map +1 -1
- package/dist/components/forms/medicationRequest/MedicationRequestForm.d.ts.map +1 -1
- package/dist/components/forms/medicationRequest/__tests__/__mocks__/MedicationRequestFormMocks.d.ts +11 -0
- package/dist/components/forms/medicationRequest/__tests__/__mocks__/MedicationRequestFormMocks.d.ts.map +1 -1
- package/dist/components/forms/medicationRequest/components/SelectedMedicationRequestItem.d.ts +2 -0
- package/dist/components/forms/medicationRequest/components/SelectedMedicationRequestItem.d.ts.map +1 -1
- package/dist/components/forms/medicationRequest/index.d.ts.map +1 -1
- package/dist/components/forms/medicationRequest/store.d.ts +4 -2
- package/dist/components/forms/medicationRequest/store.d.ts.map +1 -1
- package/dist/components/forms/models.d.ts +3 -0
- package/dist/components/forms/models.d.ts.map +1 -1
- package/dist/constants/app.d.ts +1 -0
- package/dist/constants/app.d.ts.map +1 -1
- package/dist/contexts/ClinicalAppContext.d.ts +3 -0
- package/dist/contexts/ClinicalAppContext.d.ts.map +1 -1
- package/dist/{index-BY_FXoBB.js → index-BtzcJ4Ep.js} +32912 -32575
- package/dist/index.css +1 -1
- package/dist/index.js +1 -1
- package/dist/locales/locale_en.json +4 -0
- package/dist/locales/locale_es.json +4 -0
- package/dist/models/medication.d.ts +2 -1
- package/dist/models/medication.d.ts.map +1 -1
- package/dist/providers/ClinicalAppProvider.d.ts +1 -0
- package/dist/providers/ClinicalAppProvider.d.ts.map +1 -1
- package/dist/providers/clinicalConfig/models.d.ts +2 -0
- package/dist/providers/clinicalConfig/models.d.ts.map +1 -1
- package/dist/providers/clinicalConfig/schema.json.d.ts +30 -1
- package/dist/utils/fhir/medicationRequestResourceCreator.d.ts +1 -0
- package/dist/utils/fhir/medicationRequestResourceCreator.d.ts.map +1 -1
- 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 { d as K, u as Q, a as W, b as J, c as X, m as Z, e as ee, r as te, F as ae } from "./index-
|
|
2
|
+
import { d as K, u as Q, a as W, b as J, c as X, m as Z, e as ee, r as te, F as ae } from "./index-BtzcJ4Ep.js";
|
|
3
3
|
import { useState as m, 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", me = "_documentImage_1voj8_50", d = {
|
|
5
5
|
documentsTableBody: ne,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as s, jsxs as J, Fragment as W } from "react/jsx-runtime";
|
|
2
|
-
import { u as Z, d as ee, f as re, g as ae, b as c, X as te, R as
|
|
2
|
+
import { u as Z, d as ee, f as re, g as ae, b as c, X as te, R as v, m as oe, c as se, e as U, A as ne, _ as de, r as ie, Y as ue, I as me, j as le, B as ce, P as fe, k as ye } from "./index-BtzcJ4Ep.js";
|
|
3
3
|
import { useState as S, useMemo as d, useCallback as f } from "react";
|
|
4
|
-
const pe = "_formsTableBody_ourq9_5", be = "_customAccordianItem_ourq9_10",
|
|
4
|
+
const pe = "_formsTableBody_ourq9_5", be = "_customAccordianItem_ourq9_10", A = {
|
|
5
5
|
formsTableBody: pe,
|
|
6
6
|
customAccordianItem: be
|
|
7
7
|
}, ge = (u) => u ? u.extension?.find(
|
|
@@ -14,12 +14,12 @@ const pe = "_formsTableBody_ourq9_5", be = "_customAccordianItem_ourq9_10", I =
|
|
|
14
14
|
const { t: o } = Z(), m = ee(), [l, h] = S(!1), [t, O] = S(null), { numberOfVisits: k, hideThumbnail: j = !1 } = C ?? {}, B = re(
|
|
15
15
|
u,
|
|
16
16
|
n
|
|
17
|
-
),
|
|
17
|
+
), H = ae(), {
|
|
18
18
|
data: y = [],
|
|
19
19
|
isLoading: _,
|
|
20
20
|
isError: E,
|
|
21
|
-
error:
|
|
22
|
-
refetch:
|
|
21
|
+
error: K,
|
|
22
|
+
refetch: x
|
|
23
23
|
} = c({
|
|
24
24
|
queryKey: ["forms", m, u],
|
|
25
25
|
queryFn: () => le(m, void 0, k),
|
|
@@ -55,7 +55,7 @@ const pe = "_formsTableBody_ourq9_5", be = "_customAccordianItem_ourq9_10", I =
|
|
|
55
55
|
});
|
|
56
56
|
te(
|
|
57
57
|
(e) => {
|
|
58
|
-
e.patientUUID === m && e.updatedConcepts.size > 0 && (
|
|
58
|
+
e.patientUUID === m && e.updatedConcepts.size > 0 && (x(), H.invalidateQueries({ queryKey: ["formsEncounterFHIR"] }));
|
|
59
59
|
},
|
|
60
60
|
[m]
|
|
61
61
|
);
|
|
@@ -64,9 +64,9 @@ const pe = "_formsTableBody_ourq9_5", be = "_customAccordianItem_ourq9_10", I =
|
|
|
64
64
|
return !r || r.includes(t.formName);
|
|
65
65
|
}), [g, t?.formName]), Y = d(() => {
|
|
66
66
|
if (b)
|
|
67
|
-
return
|
|
67
|
+
return v(b).message;
|
|
68
68
|
if (N)
|
|
69
|
-
return
|
|
69
|
+
return v(N).message;
|
|
70
70
|
}, [b, N]), L = d(
|
|
71
71
|
() => [
|
|
72
72
|
{ key: "recordedOn", header: o("RECORDED_ON") },
|
|
@@ -84,12 +84,12 @@ const pe = "_formsTableBody_ourq9_5", be = "_customAccordianItem_ourq9_10", I =
|
|
|
84
84
|
(r, a) => {
|
|
85
85
|
const i = a.formName;
|
|
86
86
|
r[i] ??= [];
|
|
87
|
-
const
|
|
87
|
+
const I = a.providers.map((X) => X.providerName).filter(Boolean).join(", ");
|
|
88
88
|
return r[i].push({
|
|
89
89
|
id: a.encounterUuid,
|
|
90
90
|
formName: a.formName,
|
|
91
91
|
recordedOn: oe(a.encounterDateTime, o, !0).formattedResult,
|
|
92
|
-
recordedBy:
|
|
92
|
+
recordedBy: I ?? "--",
|
|
93
93
|
encounterDateTime: a.encounterDateTime,
|
|
94
94
|
encounterUuid: a.encounterUuid
|
|
95
95
|
}), r;
|
|
@@ -100,26 +100,26 @@ const pe = "_formsTableBody_ourq9_5", be = "_customAccordianItem_ourq9_10", I =
|
|
|
100
100
|
([r, a]) => ({
|
|
101
101
|
formName: r,
|
|
102
102
|
records: a.sort(
|
|
103
|
-
(i,
|
|
103
|
+
(i, I) => I.encounterDateTime - i.encounterDateTime
|
|
104
104
|
)
|
|
105
105
|
})
|
|
106
106
|
).sort((r, a) => r.formName.localeCompare(a.formName));
|
|
107
|
-
}, [T, o]),
|
|
107
|
+
}, [T, o]), D = f((e) => {
|
|
108
108
|
O(e), h(!0);
|
|
109
109
|
}, []), G = f(() => {
|
|
110
110
|
h(!1), O(null);
|
|
111
|
-
}, []),
|
|
111
|
+
}, []), q = f(
|
|
112
112
|
(e, r) => {
|
|
113
113
|
switch (r) {
|
|
114
114
|
case "recordedOn":
|
|
115
|
-
return /* @__PURE__ */ s(se, { onClick: () =>
|
|
115
|
+
return /* @__PURE__ */ s(se, { onClick: () => D(e), children: e.recordedOn });
|
|
116
116
|
case "recordedBy":
|
|
117
117
|
return e.recordedBy;
|
|
118
118
|
default:
|
|
119
119
|
return null;
|
|
120
120
|
}
|
|
121
121
|
},
|
|
122
|
-
[
|
|
122
|
+
[D]
|
|
123
123
|
);
|
|
124
124
|
return /* @__PURE__ */ J(W, { children: [
|
|
125
125
|
/* @__PURE__ */ s("div", { id: "forms-table", "data-testid": "forms-table", children: _ || E || M.length === 0 || B ? /* @__PURE__ */ s(
|
|
@@ -129,10 +129,10 @@ const pe = "_formsTableBody_ourq9_5", be = "_customAccordianItem_ourq9_10", I =
|
|
|
129
129
|
ariaLabel: o("FORMS_HEADING"),
|
|
130
130
|
rows: [],
|
|
131
131
|
loading: _,
|
|
132
|
-
errorStateMessage: E ?
|
|
132
|
+
errorStateMessage: E ? K?.message : void 0,
|
|
133
133
|
emptyStateMessage: o("FORMS_UNAVAILABLE"),
|
|
134
|
-
renderCell:
|
|
135
|
-
className:
|
|
134
|
+
renderCell: q,
|
|
135
|
+
className: A.formsTableBody,
|
|
136
136
|
dataTestId: "forms-table"
|
|
137
137
|
}
|
|
138
138
|
) : /* @__PURE__ */ s(ne, { align: "start", children: M.map((e, r) => {
|
|
@@ -141,7 +141,7 @@ const pe = "_formsTableBody_ourq9_5", be = "_customAccordianItem_ourq9_10", I =
|
|
|
141
141
|
de,
|
|
142
142
|
{
|
|
143
143
|
title: a,
|
|
144
|
-
className:
|
|
144
|
+
className: A.customAccordianItem,
|
|
145
145
|
testId: `accordian-title-${a}`,
|
|
146
146
|
open: r === 0,
|
|
147
147
|
children: /* @__PURE__ */ s(
|
|
@@ -154,8 +154,8 @@ const pe = "_formsTableBody_ourq9_5", be = "_customAccordianItem_ourq9_10", I =
|
|
|
154
154
|
errorStateMessage: "",
|
|
155
155
|
sortable: z,
|
|
156
156
|
emptyStateMessage: o("FORMS_UNAVAILABLE"),
|
|
157
|
-
renderCell:
|
|
158
|
-
className:
|
|
157
|
+
renderCell: q,
|
|
158
|
+
className: A.formsTableBody,
|
|
159
159
|
dataTestId: `forms-table-${a}`
|
|
160
160
|
}
|
|
161
161
|
)
|
|
@@ -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 { n as p, o as d, p as e } from "./index-
|
|
1
|
+
import { c, T as l, P as m, a as u, D as v, Q as i } from "./YPM2AS64-CVTL7vE4.js";
|
|
2
|
+
import { n as p, o as d, p as e } from "./index-BtzcJ4Ep.js";
|
|
3
3
|
var f = (a) => {
|
|
4
4
|
const [r, o] = 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 { n as v, o as C, p 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-CVTL7vE4.js";
|
|
2
|
+
import { n as v, o as C, p as e } from "./index-BtzcJ4Ep.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 I, jsx as u } from "react/jsx-runtime";
|
|
2
|
-
import { d as V, a as w, u as S, h as q, $ as G, b as H, X as Q, i as X, G as k, J as M, x as W, e as j, W as J, E as D, K as P, v as Y, l as Z, H as z, D as ee, N as ae, Z as te } from "./index-
|
|
3
|
-
import { useRef as se, useEffect as
|
|
2
|
+
import { d as V, a as w, u as S, h as q, $ as G, b as H, X as Q, i as X, G as k, J as M, x as W, e as j, W as J, E as D, K as P, v as Y, l as Z, H as z, D as ee, N as ae, Z as te } from "./index-BtzcJ4Ep.js";
|
|
3
|
+
import { useRef as se, useEffect as f, useMemo as R } from "react";
|
|
4
4
|
const F = (a, n, d, l, p, r) => {
|
|
5
5
|
const t = P(a, n, p), s = t.value, i = Y(s);
|
|
6
6
|
let o = s;
|
|
@@ -119,7 +119,7 @@ const F = (a, n, d, l, p, r) => {
|
|
|
119
119
|
enabled: !!e
|
|
120
120
|
}))
|
|
121
121
|
});
|
|
122
|
-
|
|
122
|
+
f(() => {
|
|
123
123
|
o.forEach((e, h) => {
|
|
124
124
|
if (e.isError && !r.current.has(h)) {
|
|
125
125
|
const K = d[h];
|
|
@@ -148,7 +148,7 @@ const F = (a, n, d, l, p, r) => {
|
|
|
148
148
|
) && g();
|
|
149
149
|
},
|
|
150
150
|
[t, g]
|
|
151
|
-
),
|
|
151
|
+
), f(() => {
|
|
152
152
|
T && s({
|
|
153
153
|
title: i("ERROR_DEFAULT_TITLE"),
|
|
154
154
|
message: i("ERROR_FETCHING_OBSERVATIONS"),
|
|
@@ -163,7 +163,7 @@ const F = (a, n, d, l, p, r) => {
|
|
|
163
163
|
{ key: "name", header: "name" },
|
|
164
164
|
{ key: "value", header: "value" },
|
|
165
165
|
{ key: "form", header: "form" }
|
|
166
|
-
],
|
|
166
|
+
], O = A || !v, _ = T && v, C = (!c || c.entry?.length === 0 || m.length === 0) && v, U = _ ? i("ERROR_FETCHING_OBSERVATIONS") : null, x = C ? i("NO_OBSERVATIONS_FOUND") : void 0, B = $.length > 0 && !O && !_, E = n.titleTranslationKey, y = E ? i(E) : "";
|
|
167
167
|
return /* @__PURE__ */ I(
|
|
168
168
|
"div",
|
|
169
169
|
{
|
|
@@ -195,7 +195,7 @@ const F = (a, n, d, l, p, r) => {
|
|
|
195
195
|
headers: L,
|
|
196
196
|
rows: [],
|
|
197
197
|
ariaLabel: i("OBSERVATIONS"),
|
|
198
|
-
loading:
|
|
198
|
+
loading: O,
|
|
199
199
|
errorStateMessage: U,
|
|
200
200
|
emptyStateMessage: x,
|
|
201
201
|
dataTestId: "observations-table"
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { q as we, s as z, t as xt, w as B, o as q, p as y, y as Ro, z as ye, S as R, C as _, L as k, M as N, O as A, Q as bs, T as ir, U as $e, V 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 { q as we, s as z, t as xt, w as B, o as q, p as y, y as Ro, z as ye, S as R, C as _, L as k, M as N, O as A, Q as bs, T as ir, U as $e, V 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-BtzcJ4Ep.js";
|
|
2
2
|
var Os = (e) => e != null, qs = (e) => e.filter(Os);
|
|
3
3
|
function _s(e) {
|
|
4
4
|
return (...t) => {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cdssMocks.d.ts","sourceRoot":"","sources":["../../src/__mocks__/cdssMocks.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAEhD,eAAO,MAAM,iBAAiB,GAC5B,cAAc,MAAM,EACpB,YAAY,MAAM,EAClB,SAAS,MAAM,EACf,iBAAiB,MAAM,EACvB,YAAW,MAAM,GAAG,SAAS,GAAG,UAAsB,KACrD,OAyBD,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { CDSCard } from '@bahmni/services';
|
|
2
|
+
import { default as React } from 'react';
|
|
3
|
+
interface CDSCardAlertProps {
|
|
4
|
+
card: CDSCard;
|
|
5
|
+
className?: string;
|
|
6
|
+
}
|
|
7
|
+
declare const CDSCardAlert: React.FC<CDSCardAlertProps>;
|
|
8
|
+
export default CDSCardAlert;
|
|
9
|
+
//# sourceMappingURL=CDSCardAlert.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CDSCardAlert.d.ts","sourceRoot":"","sources":["../../../src/components/cdsCardAlert/CDSCardAlert.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAChD,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,UAAU,iBAAiB;IACzB,IAAI,EAAE,OAAO,CAAC;IACd,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,QAAA,MAAM,YAAY,EAAE,KAAK,CAAC,EAAE,CAAC,iBAAiB,CAyB7C,CAAC;AAEF,eAAe,YAAY,CAAC"}
|
|
@@ -29,4 +29,30 @@ export declare const mockUpdatedResources: {
|
|
|
29
29
|
immunizationHistory: boolean;
|
|
30
30
|
serviceRequests: Record<string, boolean>;
|
|
31
31
|
};
|
|
32
|
+
export declare const mockCDSSServerConfig: {
|
|
33
|
+
server: string;
|
|
34
|
+
url: string;
|
|
35
|
+
services: {
|
|
36
|
+
name: string;
|
|
37
|
+
description: string;
|
|
38
|
+
contextResourceMap: {
|
|
39
|
+
type: string;
|
|
40
|
+
attribute: string;
|
|
41
|
+
}[];
|
|
42
|
+
prefetch: {
|
|
43
|
+
patient: string;
|
|
44
|
+
};
|
|
45
|
+
}[];
|
|
46
|
+
}[];
|
|
47
|
+
export declare const mockCDSSCards: import('@bahmni/services').CDSCard[];
|
|
48
|
+
export declare const mockEmptyCDSSConfig: any[];
|
|
49
|
+
export declare const mockCDSSCheckEvent: {
|
|
50
|
+
controlKey: string;
|
|
51
|
+
itemId: string;
|
|
52
|
+
rules: {
|
|
53
|
+
event: string;
|
|
54
|
+
server: string;
|
|
55
|
+
service: string;
|
|
56
|
+
}[];
|
|
57
|
+
};
|
|
32
58
|
//# sourceMappingURL=indexMocks.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"indexMocks.d.ts","sourceRoot":"","sources":["../../../../../src/components/consultationPad/__tests__/__mocks__/indexMocks.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"indexMocks.d.ts","sourceRoot":"","sources":["../../../../../src/components/consultationPad/__tests__/__mocks__/indexMocks.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAEnD,eAAO,MAAM,YAAY,EAAE,YAAY,EAyBtC,CAAC;AAEF,eAAO,MAAM,aAAa,GACxB,MAAK,YAAY,CAAC,KAAK,CAAe,EACtC,YAAW,OAAO,CAAC,YAAY,CAAM,KACpC,YAQD,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;AAEF,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;GAkBhC,CAAC;AAEF,eAAO,MAAM,aAAa,sCAOzB,CAAC;AAEF,eAAO,MAAM,mBAAmB,EAAE,GAAG,EAAO,CAAC;AAE7C,eAAO,MAAM,kBAAkB;;;;;;;;CAU9B,CAAC"}
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
+
"title": "CDSS Servers Configuration Schema",
|
|
4
|
+
"description": "Schema for CDSS (Clinical Decision Support System) server configurations",
|
|
5
|
+
"type": "array",
|
|
6
|
+
"items": {
|
|
7
|
+
"type": "object",
|
|
8
|
+
"required": ["server", "url", "services"],
|
|
9
|
+
"additionalProperties": false,
|
|
10
|
+
"properties": {
|
|
11
|
+
"server": {
|
|
12
|
+
"type": "string",
|
|
13
|
+
"description": "CDSS server identifier"
|
|
14
|
+
},
|
|
15
|
+
"url": {
|
|
16
|
+
"type": "string",
|
|
17
|
+
"description": "Base URL for the CDSS server"
|
|
18
|
+
},
|
|
19
|
+
"services": {
|
|
20
|
+
"type": "array",
|
|
21
|
+
"description": "List of CDS Hooks services provided by this server",
|
|
22
|
+
"items": {
|
|
23
|
+
"type": "object",
|
|
24
|
+
"required": ["name", "description"],
|
|
25
|
+
"additionalProperties": false,
|
|
26
|
+
"properties": {
|
|
27
|
+
"name": {
|
|
28
|
+
"type": "string",
|
|
29
|
+
"description": "Service/hook name"
|
|
30
|
+
},
|
|
31
|
+
"description": {
|
|
32
|
+
"type": "string",
|
|
33
|
+
"description": "Service description"
|
|
34
|
+
},
|
|
35
|
+
"contextResourceMap": {
|
|
36
|
+
"type": "array",
|
|
37
|
+
"description": "Mapping of FHIR resources to context attributes",
|
|
38
|
+
"items": {
|
|
39
|
+
"type": "object",
|
|
40
|
+
"required": ["type", "attribute"],
|
|
41
|
+
"additionalProperties": false,
|
|
42
|
+
"properties": {
|
|
43
|
+
"type": {
|
|
44
|
+
"type": "string",
|
|
45
|
+
"description": "FHIR resource type"
|
|
46
|
+
},
|
|
47
|
+
"attribute": {
|
|
48
|
+
"type": "string",
|
|
49
|
+
"description": "Context attribute name"
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
},
|
|
54
|
+
"prefetch": {
|
|
55
|
+
"type": "object",
|
|
56
|
+
"description": "Prefetch templates for the service",
|
|
57
|
+
"additionalProperties": {
|
|
58
|
+
"type": "string"
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
;
|
|
68
|
+
|
|
69
|
+
export default _default;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/consultationPad/index.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/consultationPad/index.tsx"],"names":[],"mappings":"AAiBA,OAAO,KAON,MAAM,OAAO,CAAC;AAGf,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,gCAAgC,CAAC;AAqBnF,UAAU,oBAAoB;IAC5B,4BAA4B,EAAE,4BAA4B,CAAC;IAC3D,OAAO,EAAE,MAAM,IAAI,CAAC;CACrB;AAED,QAAA,MAAM,eAAe,EAAE,KAAK,CAAC,EAAE,CAAC,oBAAoB,CA4ZnD,CAAC;AAEF,eAAe,eAAe,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ImmunizationForm.d.ts","sourceRoot":"","sources":["../../../../src/components/forms/immunization/ImmunizationForm.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ImmunizationForm.d.ts","sourceRoot":"","sources":["../../../../src/components/forms/immunization/ImmunizationForm.tsx"],"names":[],"mappings":"AAoBA,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,mCAAmC,CAAC;AAEtF,OAAO,KAAK,EAAE,YAAY,IAAI,0BAA0B,EAAE,MAAM,0CAA0C,CAAC;AAgB3G,QAAA,MAAM,gBAAgB,GAAI,uDAGvB;IACD,4BAA4B,CAAC,EAAE,4BAA4B,CAAC;IAC5D,kBAAkB,CAAC,EAAE,0BAA0B,CAAC;CACjD,4CA8VA,CAAC;AAEF,eAAe,gBAAgB,CAAC"}
|
|
@@ -52,6 +52,23 @@ export declare const mockImmunizationInputControlConfigWithFetchStockBatches: {
|
|
|
52
52
|
privileges: string[];
|
|
53
53
|
attributes: InputControlAttributes[];
|
|
54
54
|
};
|
|
55
|
+
export declare const mockImmunizationInputControlConfigWithCDSS: {
|
|
56
|
+
cdss: {
|
|
57
|
+
server: string;
|
|
58
|
+
service: string;
|
|
59
|
+
event: string;
|
|
60
|
+
}[];
|
|
61
|
+
type: string;
|
|
62
|
+
encounterTypes: string[];
|
|
63
|
+
privileges: string[];
|
|
64
|
+
attributes: InputControlAttributes[];
|
|
65
|
+
metadata: {
|
|
66
|
+
routeConceptUuid: string;
|
|
67
|
+
vaccineConceptSetUuid: string;
|
|
68
|
+
siteConceptUuid: string;
|
|
69
|
+
administeredLocationTag: string;
|
|
70
|
+
};
|
|
71
|
+
};
|
|
55
72
|
export declare const mockClinicalConfigContext: {
|
|
56
73
|
clinicalConfig: {
|
|
57
74
|
consultationPad: {
|
|
@@ -129,18 +146,6 @@ export declare const mockSitesValueSet: {
|
|
|
129
146
|
};
|
|
130
147
|
export declare const mockLocations: Location[];
|
|
131
148
|
export declare const mockLocationsWithChildren: Location[];
|
|
132
|
-
export declare const mockVaccinationBundle: {
|
|
133
|
-
resourceType: string;
|
|
134
|
-
type: string;
|
|
135
|
-
entry: never[];
|
|
136
|
-
};
|
|
137
|
-
export declare const mockMixedVaccinationBundle: {
|
|
138
|
-
resourceType: string;
|
|
139
|
-
type: string;
|
|
140
|
-
entry: {
|
|
141
|
-
resource: Medication;
|
|
142
|
-
}[];
|
|
143
|
-
};
|
|
144
149
|
export declare const mockImmunizationEntry: ImmunizationInputEntry;
|
|
145
150
|
export declare const mockVaccineCode: {
|
|
146
151
|
code: string;
|
|
@@ -156,7 +161,22 @@ export declare const mockImmunizationEntryWithDate: ImmunizationInputEntry;
|
|
|
156
161
|
export declare const mockImmunizationEntryWithErrors: ImmunizationInputEntry;
|
|
157
162
|
export declare const mockVaccineDrugs: Medication[];
|
|
158
163
|
export declare const mockCovid19VaccineDrug: Medication;
|
|
164
|
+
export declare const mockInfluenzaVaccineDrug: Medication;
|
|
159
165
|
export declare const mockCovid19VaccineDrugs: Medication[];
|
|
166
|
+
export declare const mockVaccinationBundle: {
|
|
167
|
+
resourceType: string;
|
|
168
|
+
type: string;
|
|
169
|
+
entry: {
|
|
170
|
+
resource: Medication;
|
|
171
|
+
}[];
|
|
172
|
+
};
|
|
173
|
+
export declare const mockMixedVaccinationBundle: {
|
|
174
|
+
resourceType: string;
|
|
175
|
+
type: string;
|
|
176
|
+
entry: {
|
|
177
|
+
resource: Medication;
|
|
178
|
+
}[];
|
|
179
|
+
};
|
|
160
180
|
export declare const mockEncounterSubject: Reference;
|
|
161
181
|
export declare const mockImmunizationEntryComplete: ImmunizationInputEntry;
|
|
162
182
|
export declare const mockImmunizationEntryWithBasedOn: ImmunizationInputEntry;
|
|
@@ -197,5 +217,9 @@ export declare const mockStore: {
|
|
|
197
217
|
validateAll: any;
|
|
198
218
|
reset: any;
|
|
199
219
|
getState: any;
|
|
220
|
+
updateItemCDSCards: any;
|
|
221
|
+
hasCriticalCDSCards: any;
|
|
200
222
|
};
|
|
223
|
+
export declare const mockCDSCard: import('@bahmni/services').CDSCard;
|
|
224
|
+
export declare const mockCriticalCDSCard: import('@bahmni/services').CDSCard;
|
|
201
225
|
//# sourceMappingURL=immunizationMocks.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"immunizationMocks.d.ts","sourceRoot":"","sources":["../../../../../../src/components/forms/immunization/__tests__/__mocks__/immunizationMocks.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,KAAK,sBAAsB,EAAE,MAAM,kBAAkB,CAAC;AACzE,OAAO,EAAE,UAAU,EAAE,iBAAiB,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"immunizationMocks.d.ts","sourceRoot":"","sources":["../../../../../../src/components/forms/immunization/__tests__/__mocks__/immunizationMocks.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,KAAK,sBAAsB,EAAE,MAAM,kBAAkB,CAAC;AACzE,OAAO,EAAE,UAAU,EAAE,iBAAiB,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAEnE,OAAO,EAAE,sBAAsB,EAAE,MAAM,gDAAgD,CAAC;AACxF,OAAO,EAAE,sBAAsB,EAAE,MAAM,cAAc,CAAC;AAwDtD,eAAO,MAAM,kCAAkC;;;;;;;;;;;CAG9C,CAAC;AAEF,eAAO,MAAM,2CAA2C;;;;;;;;;;;CAGvD,CAAC;AAEF,eAAO,MAAM,oCAAoC;;;;;;;;;;;;CAIhD,CAAC;AAEF,eAAO,MAAM,uDAAuD;;;;;;;;;;;;CAMnE,CAAC;AAEF,eAAO,MAAM,0CAA0C;;;;;;;;;;;;;;;;CAStD,CAAC;AAEF,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;;;;;CAgBrC,CAAC;AAEF,eAAO,MAAM,mBAAmB;;;;;mBApFW,MAAM;qBAAW,MAAM;;;;CAuFhE,CAAC;AAEH,eAAO,MAAM,2BAA2B;;;;;mBAzFG,MAAM;qBAAW,MAAM;;;;CA2FhE,CAAC;AAEH,eAAO,MAAM,2BAA2B;;;;;mBA7FG,MAAM;q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,EAAE,sBAGjD,CAAC;AAEF,eAAO,MAAM,uCAAuC,EAAE,sBAGrD,CAAC;AAEF,eAAO,MAAM,qBAAqB,EAAE,iBAUnC,CAAC;AAEF,eAAO,MAAM,6BAA6B,EAAE,iBAM3C,CAAC;AAEF,eAAO,MAAM,qBAAqB,EAAE,UAInC,CAAC;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;;;;;;;;;;;;;;;;;;;;;;CAsBrB,CAAC;AAEF,eAAO,MAAM,WAAW,oCAKvB,CAAC;AAEF,eAAO,MAAM,mBAAmB,oCAM/B,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Location, AvailableStockResponse } from '@bahmni/services';
|
|
1
|
+
import { Location, AvailableStockResponse, CDSSRule } from '@bahmni/services';
|
|
2
2
|
import { Medication, ValueSet } from 'fhir/r4';
|
|
3
3
|
import { default as React } from 'react';
|
|
4
4
|
import { InputControlAttributes } from '../../../../providers/clinicalConfig/models';
|
|
@@ -14,6 +14,7 @@ interface SelectedImmunizationItemProps {
|
|
|
14
14
|
availableStocks: AvailableStockResponse | undefined;
|
|
15
15
|
stocksError: boolean;
|
|
16
16
|
stockBatchesEnabled: boolean;
|
|
17
|
+
cdssRules?: CDSSRule[];
|
|
17
18
|
}
|
|
18
19
|
export interface BatchNumberChangeData {
|
|
19
20
|
selectedItem?: BatchNumberComboBoxItem | null;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SelectedImmunizationItem.d.ts","sourceRoot":"","sources":["../../../../../src/components/forms/immunization/components/SelectedImmunizationItem.tsx"],"names":[],"mappings":"AAWA,OAAO,EAEL,QAAQ,EACR,KAAK,sBAAsB,
|
|
1
|
+
{"version":3,"file":"SelectedImmunizationItem.d.ts","sourceRoot":"","sources":["../../../../../src/components/forms/immunization/components/SelectedImmunizationItem.tsx"],"names":[],"mappings":"AAWA,OAAO,EAEL,QAAQ,EACR,KAAK,sBAAsB,EAC3B,KAAK,QAAQ,EAEd,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AAC/C,OAAO,KAAuC,MAAM,OAAO,CAAC;AAC5D,OAAO,EAAE,sBAAsB,EAAE,MAAM,6CAA6C,CAAC;AACrF,OAAO,EACL,sBAAsB,EACtB,oBAAoB,EACpB,uBAAuB,EACxB,MAAM,WAAW,CAAC;AAYnB,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;IAC7B,SAAS,CAAC,EAAE,QAAQ,EAAE,CAAC;CACxB;AAED,MAAM,WAAW,qBAAqB;IACpC,YAAY,CAAC,EAAE,uBAAuB,GAAG,IAAI,CAAC;IAC9C,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CAC5B;AAED,QAAA,MAAM,wBAAwB,EAAE,KAAK,CAAC,EAAE,CAAC,6BAA6B,CA4erE,CAAC;AAEF,eAAe,wBAAwB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/forms/immunization/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/forms/immunization/index.ts"],"names":[],"mappings":"AAuCA,OAAO,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { CDSCard } from '@bahmni/services';
|
|
1
2
|
import { Reference } from 'fhir/r4';
|
|
2
3
|
import { InputControlAttributes } from '../../../providers/clinicalConfig/models';
|
|
3
4
|
import { IMMUNIZATION_ADMINISTRATION_INPUT_CONTROL_KEY, IMMUNIZATION_HISTORY_INPUT_CONTROL_KEY } from './constants';
|
|
@@ -28,6 +29,7 @@ export interface ImmunizationInputEntry {
|
|
|
28
29
|
doseSequence: number | null;
|
|
29
30
|
note?: string;
|
|
30
31
|
basedOnReference?: string | null;
|
|
32
|
+
cdsCards?: CDSCard[];
|
|
31
33
|
errors: {
|
|
32
34
|
drug?: string;
|
|
33
35
|
administeredOn?: string;
|
|
@@ -75,7 +77,7 @@ export interface ImmunizationHistoryState {
|
|
|
75
77
|
drug?: ImmunizationDrug | null;
|
|
76
78
|
administeredOn?: Date | null;
|
|
77
79
|
administeredLocation?: ImmunizationLocation | null;
|
|
78
|
-
}) =>
|
|
80
|
+
}) => string;
|
|
79
81
|
removeImmunization: (id: string) => void;
|
|
80
82
|
setAttributes: (attrs: InputControlAttributes[]) => void;
|
|
81
83
|
updateAdministeredOn: (id: string, value: Date | null) => void;
|
|
@@ -90,6 +92,8 @@ export interface ImmunizationHistoryState {
|
|
|
90
92
|
updateDoseSequence: (id: string, value: number | null) => void;
|
|
91
93
|
updateNote: (id: string, value: string) => void;
|
|
92
94
|
validateAll: () => boolean;
|
|
95
|
+
updateItemCDSCards: (itemId: string, cards: CDSCard[]) => void;
|
|
96
|
+
hasCriticalCDSCards: () => boolean;
|
|
93
97
|
reset: () => void;
|
|
94
98
|
getState: () => ImmunizationHistoryState;
|
|
95
99
|
}
|
|
@@ -1 +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;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,aAAa,EAAE,MAAM,GAAG,IAAI,CAAC;IAC7B,YAAY,EAAE,MAAM,GAAG,IAAI,CAAC;IAC5B,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,gBAAgB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACjC,MAAM,EAAE;QACN,IAAI,CAAC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AgB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;QACjC,IAAI,CAAC,EAAE,gBAAgB,GAAG,IAAI,CAAC;QAC/B,cAAc,CAAC,EAAE,IAAI,GAAG,IAAI,CAAC;QAC7B,oBAAoB,CAAC,EAAE,oBAAoB,GAAG,IAAI,CAAC;KACpD,KACE,
|
|
1
|
+
{"version":3,"file":"models.d.ts","sourceRoot":"","sources":["../../../../src/components/forms/immunization/models.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAChD,OAAO,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AACpC,OAAO,EAAE,sBAAsB,EAAE,MAAM,0CAA0C,CAAC;AAClF,OAAO,EACL,6CAA6C,EAC7C,sCAAsC,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;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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E,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,mBAAmB,EAAE,CAAC,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,IAAI,KAAK,IAAI,CAAC;IAChE,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,kBAAkB,EAAE,CAAC,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,OAAO,EAAE,KAAK,IAAI,CAAC;IAC/D,mBAAmB,EAAE,MAAM,OAAO,CAAC;IACnC,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/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;AA8PF,iBAAS,8BAA8B,
|
|
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;AA8PF,iBAAS,8BAA8B,yDAoLtC;AAED,wBAAgB,oBAAoB,CAClC,GAAG,EAAE,oBAAoB,GACxB,2BAA2B,CAK7B;AAED,wBAAgB,2BAA2B,CACzC,GAAG,EAAE,oBAAoB,GACxB,wBAAwB,CAE1B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../src/components/forms/immunization/utils.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../src/components/forms/immunization/utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,QAAQ,EACR,KAAK,sBAAsB,EAC5B,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EACL,WAAW,EAGX,UAAU,EACV,iBAAiB,EACjB,QAAQ,EACR,yBAAyB,EAC1B,MAAM,SAAS,CAAC;AACjB,OAAO,EAAE,sBAAsB,EAAE,MAAM,0CAA0C,CAAC;AAelF,OAAO,EACL,uBAAuB,EACvB,qCAAqC,EAGrC,oBAAoB,EACpB,oBAAoB,EACrB,MAAM,UAAU,CAAC;AAgDlB,wBAAgB,QAAQ,CACtB,IAAI,EAAE,MAAM,EACZ,UAAU,EAAE,sBAAsB,EAAE,GAAG,SAAS,GAC/C,sBAAsB,GAAG,SAAS,CAEpC;AAED,wBAAgB,wBAAwB,CACtC,UAAU,EAAE,MAAM,EAClB,QAAQ,EAAE,QAAQ,GAAG,SAAS,EAC9B,YAAY,EAAE,MAAM,GACnB,oBAAoB,EAAE,CAWxB;AAED,wBAAgB,0BAA0B,CACxC,UAAU,EAAE,MAAM,EAClB,WAAW,EAAE,UAAU,EAAE,GAAG,SAAS,EACrC,WAAW,EAAE,MAAM,EACnB,YAAY,EAAE,MAAM,GACnB,oBAAoB,EAAE,CAkBxB;AAED,wBAAgB,2BAA2B,CACzC,eAAe,EAAE,sBAAsB,GAAG,SAAS,EACnD,YAAY,CAAC,EAAE,MAAM,EACrB,YAAY,CAAC,EAAE,MAAM,GACpB,uBAAuB,EAAE,CA4B3B;AAED,wBAAgB,sBAAsB,CACpC,IAAI,EAAE,uBAAuB,GAAG,IAAI,EACpC,CAAC,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,MAAM,GACzB,MAAM,CASR;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,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,EAChB,gBAAgB,GACjB,EAAE,qCAAqC,GAAG,WAAW,EAAE,CA8DvD"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MedicationRequestForm.d.ts","sourceRoot":"","sources":["../../../../src/components/forms/medicationRequest/MedicationRequestForm.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"MedicationRequestForm.d.ts","sourceRoot":"","sources":["../../../../src/components/forms/medicationRequest/MedicationRequestForm.tsx"],"names":[],"mappings":"AAgBA,OAAO,KAAuC,MAAM,OAAO,CAAC;AAI5D,OAAO,KAAK,EAAE,YAAY,IAAI,0BAA0B,EAAE,MAAM,0CAA0C,CAAC;AAoB3G,QAAA,MAAM,qBAAqB,EAAE,KAAK,CAAC,EAAE,CAAC;IACpC,kBAAkB,CAAC,EAAE,0BAA0B,CAAC;CACjD,CAyNC,CAAC;AAIH,eAAe,qBAAqB,CAAC"}
|
package/dist/components/forms/medicationRequest/__tests__/__mocks__/MedicationRequestFormMocks.d.ts
CHANGED
|
@@ -87,4 +87,15 @@ export declare const makeMockStore: (overrides?: {}) => {
|
|
|
87
87
|
getState: any;
|
|
88
88
|
};
|
|
89
89
|
export declare const mockMedicationEntry: MedicationInputEntry;
|
|
90
|
+
export declare const mockCDSCard: import('@bahmni/services').CDSCard;
|
|
91
|
+
export declare const mockCriticalCDSCard: import('@bahmni/services').CDSCard;
|
|
92
|
+
export declare const mockInputControlConfigWithCDSS: {
|
|
93
|
+
type: string;
|
|
94
|
+
label: string;
|
|
95
|
+
cdss: {
|
|
96
|
+
server: string;
|
|
97
|
+
service: string;
|
|
98
|
+
event: string;
|
|
99
|
+
}[];
|
|
100
|
+
};
|
|
90
101
|
//# sourceMappingURL=MedicationRequestFormMocks.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MedicationRequestFormMocks.d.ts","sourceRoot":"","sources":["../../../../../../src/components/forms/medicationRequest/__tests__/__mocks__/MedicationRequestFormMocks.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"MedicationRequestFormMocks.d.ts","sourceRoot":"","sources":["../../../../../../src/components/forms/medicationRequest/__tests__/__mocks__/MedicationRequestFormMocks.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAErC,OAAO,EAAE,oBAAoB,EAAE,MAAM,kCAAkC,CAAC;AACxE,OAAO,EAAE,gBAAgB,E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AC;AACF,eAAO,MAAM,eAAe;;;CAG3B,CAAC;AACF,eAAO,MAAM,gBAAgB;;;CAAkC,CAAC;AAEhE,eAAO,MAAM,aAAa,GAAI,cAAc;;;;;;;;;;;;;;;;;;;;;;CAuB1C,CAAC;AAEH,eAAO,MAAM,mBAAmB,EAAE,oBAoBjC,CAAC;AAEF,eAAO,MAAM,WAAW,oCAKvB,CAAC;AAEF,eAAO,MAAM,mBAAmB,oCAM/B,CAAC;AAEF,eAAO,MAAM,8BAA8B;;;;;;;;CAU1C,CAAC"}
|
package/dist/components/forms/medicationRequest/components/SelectedMedicationRequestItem.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { CDSSRule } from '@bahmni/services';
|
|
1
2
|
import { default as React } from 'react';
|
|
2
3
|
import { MedicationInputEntry } from '../../../../models/medication';
|
|
3
4
|
import { MedicationConfig } from '../../../../models/medicationConfig';
|
|
@@ -8,6 +9,7 @@ export interface SelectedMedicationRequestItemProps {
|
|
|
8
9
|
medicationConfig: MedicationConfig;
|
|
9
10
|
inputControlType: MedicationRequestStoreKey;
|
|
10
11
|
attributes: InputControlAttributes[];
|
|
12
|
+
cdssRules?: CDSSRule[];
|
|
11
13
|
}
|
|
12
14
|
declare const SelectedMedicationRequestItem: React.FC<SelectedMedicationRequestItemProps>;
|
|
13
15
|
export default SelectedMedicationRequestItem;
|
package/dist/components/forms/medicationRequest/components/SelectedMedicationRequestItem.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SelectedMedicationRequestItem.d.ts","sourceRoot":"","sources":["../../../../../src/components/forms/medicationRequest/components/SelectedMedicationRequestItem.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"SelectedMedicationRequestItem.d.ts","sourceRoot":"","sources":["../../../../../src/components/forms/medicationRequest/components/SelectedMedicationRequestItem.tsx"],"names":[],"mappings":"AAWA,OAAO,EAAgC,KAAK,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAE/E,OAAO,KAA8B,MAAM,OAAO,CAAC;AACnD,OAAO,EAAE,oBAAoB,EAAE,MAAM,+BAA+B,CAAC;AACrE,OAAO,EAAE,gBAAgB,EAAE,MAAM,qCAAqC,CAAC;AACvE,OAAO,EAAE,sBAAsB,EAAE,MAAM,6CAA6C,CAAC;AAKrF,OAAO,EAAE,yBAAyB,EAAE,MAAM,WAAW,CAAC;AAUtD,MAAM,WAAW,kCAAkC;IACjD,KAAK,EAAE,oBAAoB,CAAC;IAC5B,gBAAgB,EAAE,gBAAgB,CAAC;IACnC,gBAAgB,EAAE,yBAAyB,CAAC;IAC5C,UAAU,EAAE,sBAAsB,EAAE,CAAC;IACrC,SAAS,CAAC,EAAE,QAAQ,EAAE,CAAC;CACxB;AAED,QAAA,MAAM,6BAA6B,EAAE,KAAK,CAAC,EAAE,CAAC,kCAAkC,CA4e7E,CAAC;AAIJ,eAAe,6BAA6B,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/forms/medicationRequest/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/forms/medicationRequest/index.ts"],"names":[],"mappings":"AAsCA,OAAO,EAAE,OAAO,EAAE,MAAM,yBAAyB,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { MedicationFrequency as Frequency } from '@bahmni/services';
|
|
1
|
+
import { MedicationFrequency as Frequency, CDSCard } from '@bahmni/services';
|
|
2
2
|
import { Medication } from 'fhir/r4';
|
|
3
3
|
import { Concept } from '../../../models/encounterConcepts';
|
|
4
4
|
import { DurationUnitOption, MedicationInputEntry } from '../../../models/medication';
|
|
@@ -8,7 +8,7 @@ export interface MedicationRequestState {
|
|
|
8
8
|
selectedMedicationRequests: MedicationInputEntry[];
|
|
9
9
|
attributes: InputControlAttributes[] | undefined;
|
|
10
10
|
setAttributes: (attrs: InputControlAttributes[]) => void;
|
|
11
|
-
addItem: (medication: Medication, displayName: string) =>
|
|
11
|
+
addItem: (medication: Medication, displayName: string) => string;
|
|
12
12
|
removeItem: (id: string) => void;
|
|
13
13
|
updateDosage: (id: string, dosage: number) => void;
|
|
14
14
|
updateDosageUnit: (id: string, unit: Concept) => void;
|
|
@@ -24,6 +24,8 @@ export interface MedicationRequestState {
|
|
|
24
24
|
updateDispenseUnit: (id: string, unit: Concept) => void;
|
|
25
25
|
updateNote: (id: string, note: string) => void;
|
|
26
26
|
validateAll: () => boolean;
|
|
27
|
+
updateItemCDSCards: (itemId: string, cards: CDSCard[]) => void;
|
|
28
|
+
hasCriticalCDSCards: () => boolean;
|
|
27
29
|
reset: () => void;
|
|
28
30
|
getState: () => MedicationRequestState;
|
|
29
31
|
}
|