@bahmni/clinical-app 0.0.1-dev.233 → 0.0.1-dev.234
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-BIJPXmK5-guY0uGrY.js → DocumentsTable-Cl0S6I_z-B75ryDWx.js} +1 -1
- package/dist/{FormsTable-9HO9pDns-B8RXskfd.js → FormsTable-Iqc9AxOy-BngfAGDQ.js} +1 -1
- package/dist/{LNWAZHJI-Zi7shbWu.js → LNWAZHJI-Dwq7nBJL.js} +2 -2
- package/dist/{MWZ6AO7Z-Cvt7B651.js → MWZ6AO7Z-BNhh8ALs.js} +2 -2
- package/dist/{Observations-BmK9dOSk-CZ3gI1Ix.js → Observations-DBbsNLYV-hNkKte-q.js} +5 -5
- package/dist/{YPM2AS64-HtncoTEw.js → YPM2AS64-gkojpX4s.js} +1 -1
- package/dist/{index-DA8gCjHw.js → index-jae7GJTx.js} +192 -192
- package/dist/index.css +1 -1
- package/dist/index.js +1 -1
- package/package.json +1 -1
|
@@ -36765,7 +36765,7 @@ function Jt$2({
|
|
|
36765
36765
|
}, d), l));
|
|
36766
36766
|
}
|
|
36767
36767
|
const {
|
|
36768
|
-
open:
|
|
36768
|
+
open: bh2,
|
|
36769
36769
|
...eZ1
|
|
36770
36770
|
} = L3$1.propTypes ?? {};
|
|
36771
36771
|
Jt$2.propTypes = {
|
|
@@ -57889,7 +57889,7 @@ const MF1 = ({
|
|
|
57889
57889
|
"data-testid": e,
|
|
57890
57890
|
children: r,
|
|
57891
57891
|
...a
|
|
57892
|
-
}) => /* @__PURE__ */ jsx(V2$1, { ...a, "data-testid": n ?? e, children: r }),
|
|
57892
|
+
}) => /* @__PURE__ */ jsx(V2$1, { ...a, "data-testid": n ?? e, children: r }), Nh2 = ({
|
|
57893
57893
|
testId: n,
|
|
57894
57894
|
"data-testid": e,
|
|
57895
57895
|
children: r,
|
|
@@ -68522,13 +68522,13 @@ var Ys2 = {
|
|
|
68522
68522
|
faTurnUp: Li1,
|
|
68523
68523
|
faLevelUpAlt: Gs2
|
|
68524
68524
|
};
|
|
68525
|
-
const
|
|
68525
|
+
const Th2 = () => {
|
|
68526
68526
|
kj1.add(Ys2);
|
|
68527
|
-
},
|
|
68527
|
+
}, Bh2 = ({
|
|
68528
68528
|
testId: n,
|
|
68529
68529
|
"data-testid": e,
|
|
68530
68530
|
...r
|
|
68531
|
-
}) => /* @__PURE__ */ jsx(Dn1, { ...r, "data-testid": n ?? e }),
|
|
68531
|
+
}) => /* @__PURE__ */ jsx(Dn1, { ...r, "data-testid": n ?? e }), Ph2 = ({
|
|
68532
68532
|
testId: n,
|
|
68533
68533
|
"data-testid": e,
|
|
68534
68534
|
selectedItem: r,
|
|
@@ -68554,38 +68554,38 @@ const Ah2 = () => {
|
|
|
68554
68554
|
"data-testid": n ?? e
|
|
68555
68555
|
}
|
|
68556
68556
|
);
|
|
68557
|
-
},
|
|
68557
|
+
}, Fh2 = ({
|
|
68558
68558
|
testId: n,
|
|
68559
68559
|
"data-testid": e,
|
|
68560
68560
|
...r
|
|
68561
|
-
}) => /* @__PURE__ */ jsx(hr$2, { ...r, "data-testid": n ?? e }),
|
|
68561
|
+
}) => /* @__PURE__ */ jsx(hr$2, { ...r, "data-testid": n ?? e }), Jh2 = ({
|
|
68562
68562
|
testId: n,
|
|
68563
68563
|
...e
|
|
68564
|
-
}) => /* @__PURE__ */ jsx(e61, { ...e, "data-testid": n }),
|
|
68564
|
+
}) => /* @__PURE__ */ jsx(e61, { ...e, "data-testid": n }), Xh2 = ({
|
|
68565
68565
|
testId: n,
|
|
68566
68566
|
...e
|
|
68567
|
-
}) => /* @__PURE__ */ jsx(dn1, { ...e, "data-testid": n }),
|
|
68567
|
+
}) => /* @__PURE__ */ jsx(dn1, { ...e, "data-testid": n }), Qh2 = ({
|
|
68568
68568
|
testId: n,
|
|
68569
68569
|
...e
|
|
68570
|
-
}) => /* @__PURE__ */ jsx(T61, { ...e, "data-testid": n }),
|
|
68570
|
+
}) => /* @__PURE__ */ jsx(T61, { ...e, "data-testid": n }), ed2 = ({
|
|
68571
68571
|
testId: n,
|
|
68572
68572
|
"data-testid": e,
|
|
68573
68573
|
...r
|
|
68574
|
-
}) => /* @__PURE__ */ jsx(ar$2, { ...r, "data-testid": n ?? e }),
|
|
68574
|
+
}) => /* @__PURE__ */ jsx(ar$2, { ...r, "data-testid": n ?? e }), td2 = ({
|
|
68575
68575
|
testId: n,
|
|
68576
68576
|
"data-testid": e,
|
|
68577
68577
|
...r
|
|
68578
|
-
}) => /* @__PURE__ */ jsx(e6$1, { ...r, "data-testid": n ?? e }),
|
|
68578
|
+
}) => /* @__PURE__ */ jsx(e6$1, { ...r, "data-testid": n ?? e }), cd2 = ({
|
|
68579
68579
|
testId: n,
|
|
68580
68580
|
"data-testid": e,
|
|
68581
68581
|
children: r,
|
|
68582
68582
|
...a
|
|
68583
|
-
}) => /* @__PURE__ */ jsx(v6$1, { ...a, "data-testid": n ?? e, children: r }),
|
|
68583
|
+
}) => /* @__PURE__ */ jsx(v6$1, { ...a, "data-testid": n ?? e, children: r }), ad2 = ({
|
|
68584
68584
|
testId: n,
|
|
68585
68585
|
"data-testid": e,
|
|
68586
68586
|
children: r,
|
|
68587
68587
|
...a
|
|
68588
|
-
}) => /* @__PURE__ */ jsx(ge$1, { ...a, "data-testid": n ?? e, children: r }),
|
|
68588
|
+
}) => /* @__PURE__ */ jsx(ge$1, { ...a, "data-testid": n ?? e, children: r }), od2 = ({
|
|
68589
68589
|
testId: n,
|
|
68590
68590
|
"data-testid": e,
|
|
68591
68591
|
children: r,
|
|
@@ -68657,7 +68657,7 @@ function xi1() {
|
|
|
68657
68657
|
const e = bf2(n);
|
|
68658
68658
|
return { dateFnsFormat: n, flatpickrFormat: e };
|
|
68659
68659
|
}
|
|
68660
|
-
const
|
|
68660
|
+
const ld2 = ({
|
|
68661
68661
|
testId: n,
|
|
68662
68662
|
"data-testid": e,
|
|
68663
68663
|
dateFormat: r,
|
|
@@ -68674,7 +68674,7 @@ const ad2 = ({
|
|
|
68674
68674
|
children: a
|
|
68675
68675
|
}
|
|
68676
68676
|
);
|
|
68677
|
-
},
|
|
68677
|
+
}, id2 = ({
|
|
68678
68678
|
testId: n,
|
|
68679
68679
|
"data-testid": e,
|
|
68680
68680
|
placeholder: r,
|
|
@@ -70657,7 +70657,7 @@ const op2 = "_layout_vvtyi_85", lp2 = "_collapsedModal_vvtyi_96", ip2 = "_mainDi
|
|
|
70657
70657
|
separator: dp2,
|
|
70658
70658
|
separatorGrip: up2,
|
|
70659
70659
|
panelGroup: mp2
|
|
70660
|
-
}, wp2 = 40, vp2 = 60, dt1 = 40,
|
|
70660
|
+
}, wp2 = 40, vp2 = 60, dt1 = 40, pd2 = ({
|
|
70661
70661
|
headerWSideNav: n,
|
|
70662
70662
|
mainDisplay: e,
|
|
70663
70663
|
actionArea: r,
|
|
@@ -70752,7 +70752,7 @@ const op2 = "_layout_vvtyi_85", lp2 = "_collapsedModal_vvtyi_96", ip2 = "_mainDi
|
|
|
70752
70752
|
] })
|
|
70753
70753
|
]
|
|
70754
70754
|
}
|
|
70755
|
-
),
|
|
70755
|
+
), dd2 = ({ testId: n, ...e }) => /* @__PURE__ */ jsx(Kc$2, { ...e, "data-testid": n }), Ep2 = "_breadcrumb_7z10y_70", Vp2 = "_sideNavItems_7z10y_82", mt1 = {
|
|
70756
70756
|
breadcrumb: Ep2,
|
|
70757
70757
|
sideNavItems: Vp2
|
|
70758
70758
|
}, Hp2 = (n, e = !0) => {
|
|
@@ -70862,7 +70862,7 @@ const Cp2 = t__default.memo(
|
|
|
70862
70862
|
}
|
|
70863
70863
|
);
|
|
70864
70864
|
Cp2.displayName = "Header";
|
|
70865
|
-
const
|
|
70865
|
+
const ud2 = (n) => {
|
|
70866
70866
|
const [e, r] = useState(null), a = useMemo(() => n.length ? e && n.some((f) => f.id === e) ? e : n[0].id : null, [e, n]), l = useCallback((f) => {
|
|
70867
70867
|
r(f);
|
|
70868
70868
|
}, []);
|
|
@@ -70870,11 +70870,11 @@ const hd2 = (n) => {
|
|
|
70870
70870
|
activeItemId: a,
|
|
70871
70871
|
handleItemClick: l
|
|
70872
70872
|
};
|
|
70873
|
-
},
|
|
70873
|
+
}, md2 = ({
|
|
70874
70874
|
testId: n,
|
|
70875
70875
|
children: e,
|
|
70876
70876
|
...r
|
|
70877
|
-
}) => /* @__PURE__ */ jsx(s6$1, { ...r, "data-testid": n, children: e }),
|
|
70877
|
+
}) => /* @__PURE__ */ jsx(s6$1, { ...r, "data-testid": n, children: e }), wd2 = ({
|
|
70878
70878
|
testId: n,
|
|
70879
70879
|
"data-testid": e,
|
|
70880
70880
|
...r
|
|
@@ -70888,7 +70888,7 @@ const hd2 = (n) => {
|
|
|
70888
70888
|
grid: xp2,
|
|
70889
70889
|
children: zp2,
|
|
70890
70890
|
close: bp2
|
|
70891
|
-
},
|
|
70891
|
+
}, gd2 = ({
|
|
70892
70892
|
children: n,
|
|
70893
70893
|
onClose: e,
|
|
70894
70894
|
className: r,
|
|
@@ -70986,7 +70986,7 @@ Ap2.displayName = "TextAreaWClose";
|
|
|
70986
70986
|
const $p2 = "_box_1jr6a_1", Tp2 = "_header_1jr6a_8", wt1 = {
|
|
70987
70987
|
box: $p2,
|
|
70988
70988
|
header: Tp2
|
|
70989
|
-
},
|
|
70989
|
+
}, Md2 = ({
|
|
70990
70990
|
title: n,
|
|
70991
70991
|
children: e,
|
|
70992
70992
|
className: r,
|
|
@@ -71006,7 +71006,7 @@ const $p2 = "_box_1jr6a_1", Tp2 = "_header_1jr6a_8", wt1 = {
|
|
|
71006
71006
|
/* @__PURE__ */ jsx(ge$1, { sm: 4, md: 8, lg: 16, xlg: 16, children: e })
|
|
71007
71007
|
]
|
|
71008
71008
|
}
|
|
71009
|
-
), Qp2 = "
|
|
71009
|
+
), Qp2 = "_actionArea_1rrq1_1", eh2 = "_hidden_1rrq1_11", th2 = "_title_1rrq1_16", nh2 = "_content_1rrq1_25", ch2 = "_buttonSet_1rrq1_30", rh2 = "_twoButtons_1rrq1_36", ah2 = "_threeButtons_1rrq1_39", ze$1 = {
|
|
71010
71010
|
actionArea: Qp2,
|
|
71011
71011
|
hidden: eh2,
|
|
71012
71012
|
title: th2,
|
|
@@ -71014,7 +71014,7 @@ const $p2 = "_box_1jr6a_1", Tp2 = "_header_1jr6a_8", wt1 = {
|
|
|
71014
71014
|
buttonSet: ch2,
|
|
71015
71015
|
twoButtons: rh2,
|
|
71016
71016
|
threeButtons: ah2
|
|
71017
|
-
},
|
|
71017
|
+
}, Cd2 = ({
|
|
71018
71018
|
title: n,
|
|
71019
71019
|
primaryButtonText: e,
|
|
71020
71020
|
onPrimaryButtonClick: r,
|
|
@@ -71093,7 +71093,7 @@ const $p2 = "_box_1jr6a_1", Tp2 = "_header_1jr6a_8", wt1 = {
|
|
|
71093
71093
|
]
|
|
71094
71094
|
}
|
|
71095
71095
|
);
|
|
71096
|
-
},
|
|
71096
|
+
}, zd2 = ({
|
|
71097
71097
|
testId: n,
|
|
71098
71098
|
...e
|
|
71099
71099
|
}) => /* @__PURE__ */ jsx(k81, { ...e, "data-testid": n }), oh2 = "_formCardContainer_1rru0_1", lh2 = "_title_1rru0_6", ih2 = "_formsGrid_1rru0_12", sh2 = "_noFormsMessage_1rru0_19", Y4$1 = {
|
|
@@ -71101,7 +71101,7 @@ const $p2 = "_box_1jr6a_1", Tp2 = "_header_1jr6a_8", wt1 = {
|
|
|
71101
71101
|
title: lh2,
|
|
71102
71102
|
formsGrid: ih2,
|
|
71103
71103
|
noFormsMessage: sh2
|
|
71104
|
-
},
|
|
71104
|
+
}, yd2 = ({
|
|
71105
71105
|
title: n,
|
|
71106
71106
|
children: e,
|
|
71107
71107
|
noFormsMessage: r = "No forms found",
|
|
@@ -71201,7 +71201,7 @@ const $p2 = "_box_1jr6a_1", Tp2 = "_header_1jr6a_8", wt1 = {
|
|
|
71201
71201
|
},
|
|
71202
71202
|
hasClickHandler: !!l
|
|
71203
71203
|
};
|
|
71204
|
-
},
|
|
71204
|
+
}, _d2 = ({
|
|
71205
71205
|
title: n,
|
|
71206
71206
|
icon: e,
|
|
71207
71207
|
iconSize: r = qe$2.LG,
|
|
@@ -71263,7 +71263,7 @@ const $p2 = "_box_1jr6a_1", Tp2 = "_header_1jr6a_8", wt1 = {
|
|
|
71263
71263
|
]
|
|
71264
71264
|
}
|
|
71265
71265
|
);
|
|
71266
|
-
},
|
|
71266
|
+
}, Ad2 = ({
|
|
71267
71267
|
testId: n,
|
|
71268
71268
|
...e
|
|
71269
71269
|
}) => /* @__PURE__ */ jsx(Nn1, { ...e, "data-testid": n }), warn = (n, e, r, a) => {
|
|
@@ -146492,7 +146492,7 @@ const Nqe = "_bahmniIcon_1cg5e_1", zqe = "_paddingNone_1cg5e_1", Aqe = "_padding
|
|
|
146492
146492
|
...a
|
|
146493
146493
|
}) => /* @__PURE__ */ jsx(B2, { ...a, "data-testid": n ?? e, children: r });
|
|
146494
146494
|
createContext$1(null);
|
|
146495
|
-
const rUe = "
|
|
146495
|
+
const rUe = "_breadcrumb_7z10y_70", nUe = "_sideNavItems_7z10y_82", Iae = {
|
|
146496
146496
|
breadcrumb: rUe,
|
|
146497
146497
|
sideNavItems: nUe
|
|
146498
146498
|
}, oUe = (n, e = !0) => {
|
|
@@ -146817,7 +146817,7 @@ const O2 = "/openmrs/auth?requested_document=/document_images/", uUe = "_thumbna
|
|
|
146817
146817
|
}
|
|
146818
146818
|
)
|
|
146819
146819
|
] });
|
|
146820
|
-
}, HUe = "
|
|
146820
|
+
}, HUe = "_thumbnailButton_1y563_1", bUe = "_hideThumbnail_1y563_29", MUe = "_videoIcon_1y563_35", xUe = "_thumbnailVideo_1y563_39", NUe = "_playIconOverlay_1y563_46", zUe = "_modalVideoContainer_1y563_68", AUe = "_modalVideo_1y563_68", Vn = {
|
|
146821
146821
|
thumbnailButton: HUe,
|
|
146822
146822
|
hideThumbnail: bUe,
|
|
146823
146823
|
videoIcon: MUe,
|
|
@@ -164277,7 +164277,7 @@ const D0t = [
|
|
|
164277
164277
|
},
|
|
164278
164278
|
{
|
|
164279
164279
|
type: "patientDocuments",
|
|
164280
|
-
component: lazy$1(() => import("./DocumentsTable-
|
|
164280
|
+
component: lazy$1(() => import("./DocumentsTable-Cl0S6I_z-B75ryDWx.js"))
|
|
164281
164281
|
},
|
|
164282
164282
|
{
|
|
164283
164283
|
type: "flowSheet",
|
|
@@ -164285,7 +164285,7 @@ const D0t = [
|
|
|
164285
164285
|
},
|
|
164286
164286
|
{
|
|
164287
164287
|
type: "forms",
|
|
164288
|
-
component: lazy$1(() => import("./FormsTable-
|
|
164288
|
+
component: lazy$1(() => import("./FormsTable-Iqc9AxOy-BngfAGDQ.js"))
|
|
164289
164289
|
},
|
|
164290
164290
|
{
|
|
164291
164291
|
type: "labOrders",
|
|
@@ -164293,7 +164293,7 @@ const D0t = [
|
|
|
164293
164293
|
},
|
|
164294
164294
|
{
|
|
164295
164295
|
type: "observations",
|
|
164296
|
-
component: lazy$1(() => import("./Observations-
|
|
164296
|
+
component: lazy$1(() => import("./Observations-DBbsNLYV-hNkKte-q.js"))
|
|
164297
164297
|
},
|
|
164298
164298
|
{
|
|
164299
164299
|
type: "ordersControl",
|
|
@@ -166198,7 +166198,7 @@ var displayValue = (n, e = !1) => {
|
|
|
166198
166198
|
const e = render(() => {
|
|
166199
166199
|
const r = this, [a] = this.#o, [l] = this.#d, [f] = this.#f, [d] = this.#u, [p] = this.#h, [m] = this.#t;
|
|
166200
166200
|
let g;
|
|
166201
|
-
return this.#s ? g = this.#s : (g = lazy(() => import("./LNWAZHJI-
|
|
166201
|
+
return this.#s ? g = this.#s : (g = lazy(() => import("./LNWAZHJI-Dwq7nBJL.js")), this.#s = g), setupStyleSheet(this.#i, this.#l), createComponent(g, mergeProps({
|
|
166202
166202
|
get queryFlavor() {
|
|
166203
166203
|
return r.#n;
|
|
166204
166204
|
},
|
|
@@ -166296,7 +166296,7 @@ var displayValue = (n, e = !1) => {
|
|
|
166296
166296
|
const e = render(() => {
|
|
166297
166297
|
const r = this, [a] = this.#o, [l] = this.#d, [f] = this.#f, [d] = this.#u, [p] = this.#h, [m] = this.#t, [g] = this.#s;
|
|
166298
166298
|
let w;
|
|
166299
|
-
return this.#c ? w = this.#c : (w = lazy(() => import("./MWZ6AO7Z-
|
|
166299
|
+
return this.#c ? w = this.#c : (w = lazy(() => import("./MWZ6AO7Z-BNhh8ALs.js")), this.#c = w), setupStyleSheet(this.#i, this.#l), createComponent(w, mergeProps({
|
|
166300
166300
|
get queryFlavor() {
|
|
166301
166301
|
return r.#n;
|
|
166302
166302
|
},
|
|
@@ -208395,7 +208395,7 @@ const formView = "_formView_12lp6_1", errorNotificationWrapper = "_errorNotifica
|
|
|
208395
208395
|
Or(P).message ?? f("ERROR_FETCHING_FORM_METADATA")
|
|
208396
208396
|
) : null, a5e = /* @__PURE__ */ jsxs("div", { className: styles$k.formView, "data-testid": "observation-form-view", children: [
|
|
208397
208397
|
H && H !== VALIDATION_STATE_SCRIPT_ERROR && /* @__PURE__ */ jsx("div", { className: styles$k.errorNotificationWrapper, children: /* @__PURE__ */ jsx(
|
|
208398
|
-
|
|
208398
|
+
Ad2,
|
|
208399
208399
|
{
|
|
208400
208400
|
kind: "error",
|
|
208401
208401
|
title: f(
|
|
@@ -208410,7 +208410,7 @@ const formView = "_formView_12lp6_1", errorNotificationWrapper = "_errorNotifica
|
|
|
208410
208410
|
}
|
|
208411
208411
|
) }),
|
|
208412
208412
|
H === VALIDATION_STATE_SCRIPT_ERROR && C && /* @__PURE__ */ jsx("div", { className: styles$k.errorNotificationWrapper, children: /* @__PURE__ */ jsx(
|
|
208413
|
-
|
|
208413
|
+
Ad2,
|
|
208414
208414
|
{
|
|
208415
208415
|
kind: "error",
|
|
208416
208416
|
title: f("OBSERVATION_FORM_SCRIPT_ERROR_TITLE"),
|
|
@@ -208428,7 +208428,7 @@ const formView = "_formView_12lp6_1", errorNotificationWrapper = "_errorNotifica
|
|
|
208428
208428
|
className: styles$k.formContent,
|
|
208429
208429
|
"data-testid": "observation-form-content",
|
|
208430
208430
|
children: T ? /* @__PURE__ */ jsx(
|
|
208431
|
-
|
|
208431
|
+
Jh2,
|
|
208432
208432
|
{
|
|
208433
208433
|
width: "100%",
|
|
208434
208434
|
lineCount: 3,
|
|
@@ -208475,7 +208475,7 @@ const formView = "_formView_12lp6_1", errorNotificationWrapper = "_errorNotifica
|
|
|
208475
208475
|
}
|
|
208476
208476
|
);
|
|
208477
208477
|
return e ? /* @__PURE__ */ jsx(
|
|
208478
|
-
|
|
208478
|
+
Cd2,
|
|
208479
208479
|
{
|
|
208480
208480
|
className: styles$k.formViewActionArea,
|
|
208481
208481
|
title: j,
|
|
@@ -208501,7 +208501,7 @@ const formView = "_formView_12lp6_1", errorNotificationWrapper = "_errorNotifica
|
|
|
208501
208501
|
const a = n.component;
|
|
208502
208502
|
return /* @__PURE__ */ jsxs("div", { children: [
|
|
208503
208503
|
/* @__PURE__ */ jsx(a, {}),
|
|
208504
|
-
/* @__PURE__ */ jsx(
|
|
208504
|
+
/* @__PURE__ */ jsx(zd2, { "data-testid": `${n.key}-divider` })
|
|
208505
208505
|
] });
|
|
208506
208506
|
}, createCodeableConcept = (n, e) => {
|
|
208507
208507
|
const r = {
|
|
@@ -209702,9 +209702,9 @@ const useAllergyStore = create((n, e) => ({
|
|
|
209702
209702
|
hasBeenValidated: b
|
|
209703
209703
|
} = n, H = !!(b && E.severity), y = !!(b && E.reactions), [C, z] = useState(!!v);
|
|
209704
209704
|
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
209705
|
-
/* @__PURE__ */ jsxs(
|
|
209705
|
+
/* @__PURE__ */ jsxs(cd2, { "data-testid": `selected-allergy-item-grid-${d}`, children: [
|
|
209706
209706
|
/* @__PURE__ */ jsxs(
|
|
209707
|
-
|
|
209707
|
+
ad2,
|
|
209708
209708
|
{
|
|
209709
209709
|
sm: 4,
|
|
209710
209710
|
md: 5,
|
|
@@ -209719,7 +209719,7 @@ const useAllergyStore = create((n, e) => ({
|
|
|
209719
209719
|
"]"
|
|
209720
209720
|
] }),
|
|
209721
209721
|
!C && /* @__PURE__ */ jsx(
|
|
209722
|
-
|
|
209722
|
+
od2,
|
|
209723
209723
|
{
|
|
209724
209724
|
href: "#",
|
|
209725
209725
|
"data-testid": `allergy-add-note-link-${d}`,
|
|
@@ -209734,7 +209734,7 @@ const useAllergyStore = create((n, e) => ({
|
|
|
209734
209734
|
}
|
|
209735
209735
|
),
|
|
209736
209736
|
/* @__PURE__ */ jsx(
|
|
209737
|
-
|
|
209737
|
+
ad2,
|
|
209738
209738
|
{
|
|
209739
209739
|
sm: 4,
|
|
209740
209740
|
md: 3,
|
|
@@ -209742,7 +209742,7 @@ const useAllergyStore = create((n, e) => ({
|
|
|
209742
209742
|
xlg: 3,
|
|
209743
209743
|
className: styles$j.selectedAllergySeverity,
|
|
209744
209744
|
children: /* @__PURE__ */ jsx(
|
|
209745
|
-
|
|
209745
|
+
ed2,
|
|
209746
209746
|
{
|
|
209747
209747
|
id: `allergy-severity-dropdown-${d}`,
|
|
209748
209748
|
"data-testid": `allergy-severity-dropdown-${d}`,
|
|
@@ -209765,7 +209765,7 @@ const useAllergyStore = create((n, e) => ({
|
|
|
209765
209765
|
}
|
|
209766
209766
|
),
|
|
209767
209767
|
/* @__PURE__ */ jsx(
|
|
209768
|
-
|
|
209768
|
+
ad2,
|
|
209769
209769
|
{
|
|
209770
209770
|
sm: 4,
|
|
209771
209771
|
md: 4,
|
|
@@ -209773,7 +209773,7 @@ const useAllergyStore = create((n, e) => ({
|
|
|
209773
209773
|
xlg: 4,
|
|
209774
209774
|
className: styles$j.selectedAllergyReactions,
|
|
209775
209775
|
children: /* @__PURE__ */ jsx(
|
|
209776
|
-
|
|
209776
|
+
wd2,
|
|
209777
209777
|
{
|
|
209778
209778
|
id: `allergy-reactions-multiselect-${d}`,
|
|
209779
209779
|
"data-testid": `allergy-reactions-multiselect-${d}`,
|
|
@@ -209942,7 +209942,7 @@ const allergiesFormTile = "_allergiesFormTile_1g1wd_1", allergiesFormTitle = "_a
|
|
|
209942
209942
|
n
|
|
209943
209943
|
]);
|
|
209944
209944
|
return a ? /* @__PURE__ */ jsxs(
|
|
209945
|
-
|
|
209945
|
+
Nh2,
|
|
209946
209946
|
{
|
|
209947
209947
|
className: styles$i.allergiesFormTile,
|
|
209948
209948
|
"data-testid": "allergies-form-tile",
|
|
@@ -209956,7 +209956,7 @@ const allergiesFormTile = "_allergiesFormTile_1g1wd_1", allergiesFormTitle = "_a
|
|
|
209956
209956
|
}
|
|
209957
209957
|
),
|
|
209958
209958
|
/* @__PURE__ */ jsx(
|
|
209959
|
-
|
|
209959
|
+
Ph2,
|
|
209960
209960
|
{
|
|
209961
209961
|
id: "allergies-search",
|
|
209962
209962
|
"data-testid": "allergies-search-combobox",
|
|
@@ -209977,7 +209977,7 @@ const allergiesFormTile = "_allergiesFormTile_1g1wd_1", allergiesFormTitle = "_a
|
|
|
209977
209977
|
}
|
|
209978
209978
|
),
|
|
209979
209979
|
m && /* @__PURE__ */ jsx(
|
|
209980
|
-
|
|
209980
|
+
Ad2,
|
|
209981
209981
|
{
|
|
209982
209982
|
kind: "error",
|
|
209983
209983
|
lowContrast: !0,
|
|
@@ -209988,12 +209988,12 @@ const allergiesFormTile = "_allergiesFormTile_1g1wd_1", allergiesFormTitle = "_a
|
|
|
209988
209988
|
}
|
|
209989
209989
|
),
|
|
209990
209990
|
E && E.length > 0 && /* @__PURE__ */ jsx(
|
|
209991
|
-
|
|
209991
|
+
Md2,
|
|
209992
209992
|
{
|
|
209993
209993
|
title: n("ALLERGIES_ADDED_ALLERGIES"),
|
|
209994
209994
|
className: styles$i.allergiesBox,
|
|
209995
209995
|
children: E.map((Lle) => /* @__PURE__ */ jsx(
|
|
209996
|
-
|
|
209996
|
+
gd2,
|
|
209997
209997
|
{
|
|
209998
209998
|
className: styles$i.selectedAllergyItem,
|
|
209999
209999
|
onClose: () => H(Lle.id),
|
|
@@ -210057,9 +210057,9 @@ const useConceptSearch = (n, e = 20, r = 500) => {
|
|
|
210057
210057
|
errors: p,
|
|
210058
210058
|
hasBeenValidated: m
|
|
210059
210059
|
} = n, g = !!(m && p.durationValue), w = !!(m && p.durationUnit);
|
|
210060
|
-
return /* @__PURE__ */ jsxs(
|
|
210060
|
+
return /* @__PURE__ */ jsxs(cd2, { children: [
|
|
210061
210061
|
/* @__PURE__ */ jsx(
|
|
210062
|
-
|
|
210062
|
+
ad2,
|
|
210063
210063
|
{
|
|
210064
210064
|
sm: 4,
|
|
210065
210065
|
md: 7,
|
|
@@ -210070,7 +210070,7 @@ const useConceptSearch = (n, e = 20, r = 500) => {
|
|
|
210070
210070
|
}
|
|
210071
210071
|
),
|
|
210072
210072
|
/* @__PURE__ */ jsxs(
|
|
210073
|
-
|
|
210073
|
+
ad2,
|
|
210074
210074
|
{
|
|
210075
210075
|
sm: 4,
|
|
210076
210076
|
md: 2,
|
|
@@ -210079,7 +210079,7 @@ const useConceptSearch = (n, e = 20, r = 500) => {
|
|
|
210079
210079
|
className: styles$h.selectedConditionDuration,
|
|
210080
210080
|
children: [
|
|
210081
210081
|
/* @__PURE__ */ jsx(
|
|
210082
|
-
|
|
210082
|
+
Fh2,
|
|
210083
210083
|
{
|
|
210084
210084
|
id: `condition-duration-value-${a}`,
|
|
210085
210085
|
labelText: r("CONDITIONS_DURATION_VALUE_LABEL"),
|
|
@@ -210104,7 +210104,7 @@ const useConceptSearch = (n, e = 20, r = 500) => {
|
|
|
210104
210104
|
}
|
|
210105
210105
|
),
|
|
210106
210106
|
/* @__PURE__ */ jsx(
|
|
210107
|
-
|
|
210107
|
+
ed2,
|
|
210108
210108
|
{
|
|
210109
210109
|
id: `condition-duration-unit-${a}`,
|
|
210110
210110
|
titleText: r("CONDITIONS_DURATION_UNIT_LABEL"),
|
|
@@ -210154,9 +210154,9 @@ const CERTAINITY_CONCEPTS = [
|
|
|
210154
210154
|
doesConditionExist: a = !1
|
|
210155
210155
|
}) => {
|
|
210156
210156
|
const { t: l } = useTranslation(), { id: f, display: d, selectedCertainty: p, errors: m, hasBeenValidated: g } = n, w = !!(g && m.certainty);
|
|
210157
|
-
return /* @__PURE__ */ jsxs(
|
|
210157
|
+
return /* @__PURE__ */ jsxs(cd2, { "data-testid": "selected-diagnosis-item-grid", children: [
|
|
210158
210158
|
/* @__PURE__ */ jsxs(
|
|
210159
|
-
|
|
210159
|
+
ad2,
|
|
210160
210160
|
{
|
|
210161
210161
|
sm: 4,
|
|
210162
210162
|
md: 7,
|
|
@@ -210166,7 +210166,7 @@ const CERTAINITY_CONCEPTS = [
|
|
|
210166
210166
|
children: [
|
|
210167
210167
|
/* @__PURE__ */ jsx("span", { "data-testid": `diagnosis-display-name-${f}`, children: d }),
|
|
210168
210168
|
/* @__PURE__ */ jsx(
|
|
210169
|
-
|
|
210169
|
+
od2,
|
|
210170
210170
|
{
|
|
210171
210171
|
"data-testid": "add-as-condition-link",
|
|
210172
210172
|
href: "#",
|
|
@@ -210183,7 +210183,7 @@ const CERTAINITY_CONCEPTS = [
|
|
|
210183
210183
|
}
|
|
210184
210184
|
),
|
|
210185
210185
|
/* @__PURE__ */ jsx(
|
|
210186
|
-
|
|
210186
|
+
ad2,
|
|
210187
210187
|
{
|
|
210188
210188
|
sm: 4,
|
|
210189
210189
|
md: 2,
|
|
@@ -210191,7 +210191,7 @@ const CERTAINITY_CONCEPTS = [
|
|
|
210191
210191
|
xlg: 4,
|
|
210192
210192
|
className: styles$g.selectedDiagnosisCertainty,
|
|
210193
210193
|
children: /* @__PURE__ */ jsx(
|
|
210194
|
-
|
|
210194
|
+
ed2,
|
|
210195
210195
|
{
|
|
210196
210196
|
id: `diagnoses-certainty-dropdown-${f}`,
|
|
210197
210197
|
testId: `diagnoses-certainty-dropdown-${f}`,
|
|
@@ -210343,7 +210343,7 @@ const conditionsAndDiagnosesTile = "_conditionsAndDiagnosesTile_1xfrl_1", condit
|
|
|
210343
210343
|
n
|
|
210344
210344
|
]);
|
|
210345
210345
|
return a ? /* @__PURE__ */ jsxs(
|
|
210346
|
-
|
|
210346
|
+
Nh2,
|
|
210347
210347
|
{
|
|
210348
210348
|
className: styles$f.conditionsAndDiagnosesTile,
|
|
210349
210349
|
"data-testid": "conditions-and-diagnoses-tile",
|
|
@@ -210357,7 +210357,7 @@ const conditionsAndDiagnosesTile = "_conditionsAndDiagnosesTile_1xfrl_1", condit
|
|
|
210357
210357
|
}
|
|
210358
210358
|
),
|
|
210359
210359
|
/* @__PURE__ */ jsx(
|
|
210360
|
-
|
|
210360
|
+
Ph2,
|
|
210361
210361
|
{
|
|
210362
210362
|
id: "diagnoses-search",
|
|
210363
210363
|
"data-testid": "diagnoses-search-combobox",
|
|
@@ -210375,7 +210375,7 @@ const conditionsAndDiagnosesTile = "_conditionsAndDiagnosesTile_1xfrl_1", condit
|
|
|
210375
210375
|
}
|
|
210376
210376
|
),
|
|
210377
210377
|
m && /* @__PURE__ */ jsx(
|
|
210378
|
-
|
|
210378
|
+
Ad2,
|
|
210379
210379
|
{
|
|
210380
210380
|
kind: "error",
|
|
210381
210381
|
lowContrast: !0,
|
|
@@ -210386,12 +210386,12 @@ const conditionsAndDiagnosesTile = "_conditionsAndDiagnosesTile_1xfrl_1", condit
|
|
|
210386
210386
|
}
|
|
210387
210387
|
),
|
|
210388
210388
|
w && w.length > 0 && /* @__PURE__ */ jsx(
|
|
210389
|
-
|
|
210389
|
+
Md2,
|
|
210390
210390
|
{
|
|
210391
210391
|
title: n("DIAGNOSES_ADDED_DIAGNOSES"),
|
|
210392
210392
|
className: styles$f.conditionsAndDiagnosesBox,
|
|
210393
210393
|
children: w.map((H1) => /* @__PURE__ */ jsx(
|
|
210394
|
-
|
|
210394
|
+
gd2,
|
|
210395
210395
|
{
|
|
210396
210396
|
className: styles$f.selectedDiagnosisItem,
|
|
210397
210397
|
onClose: () => b(H1.id),
|
|
@@ -210410,12 +210410,12 @@ const conditionsAndDiagnosesTile = "_conditionsAndDiagnosesTile_1xfrl_1", condit
|
|
|
210410
210410
|
}
|
|
210411
210411
|
),
|
|
210412
210412
|
v && v.length > 0 && /* @__PURE__ */ jsx(
|
|
210413
|
-
|
|
210413
|
+
Md2,
|
|
210414
210414
|
{
|
|
210415
210415
|
title: n("CONDITIONS_SECTION_TITLE"),
|
|
210416
210416
|
className: styles$f.conditionsAndDiagnosesBox,
|
|
210417
210417
|
children: v.map((H1) => /* @__PURE__ */ jsx(
|
|
210418
|
-
|
|
210418
|
+
gd2,
|
|
210419
210419
|
{
|
|
210420
210420
|
className: styles$f.selectedConditionItem,
|
|
210421
210421
|
onClose: () => C(H1.id),
|
|
@@ -210637,14 +210637,14 @@ const useLocations = () => {
|
|
|
210637
210637
|
y,
|
|
210638
210638
|
f,
|
|
210639
210639
|
H1
|
|
210640
|
-
]), /* @__PURE__ */ jsxs(
|
|
210641
|
-
/* @__PURE__ */ jsx(
|
|
210640
|
+
]), /* @__PURE__ */ jsxs(cd2, { condensed: !1, narrow: !1, "data-testid": "encounter-details-grid", children: [
|
|
210641
|
+
/* @__PURE__ */ jsx(ad2, { sm: 4, md: 8, lg: 5, xl: 12, className: styles$e.column, children: /* @__PURE__ */ jsx(
|
|
210642
210642
|
FormField,
|
|
210643
210643
|
{
|
|
210644
210644
|
isLoading: !C && !m,
|
|
210645
210645
|
placeholder: /* @__PURE__ */ jsx(DropdownPlaceholder, {}),
|
|
210646
210646
|
children: /* @__PURE__ */ jsx(
|
|
210647
|
-
|
|
210647
|
+
ed2,
|
|
210648
210648
|
{
|
|
210649
210649
|
id: "location-dropdown",
|
|
210650
210650
|
"data-testid": "location-dropdown",
|
|
@@ -210659,13 +210659,13 @@ const useLocations = () => {
|
|
|
210659
210659
|
)
|
|
210660
210660
|
}
|
|
210661
210661
|
) }),
|
|
210662
|
-
/* @__PURE__ */ jsx(
|
|
210662
|
+
/* @__PURE__ */ jsx(ad2, { sm: 4, md: 8, lg: 5, xl: 12, className: styles$e.column, children: /* @__PURE__ */ jsx(
|
|
210663
210663
|
FormField,
|
|
210664
210664
|
{
|
|
210665
210665
|
isLoading: !z && !v,
|
|
210666
210666
|
placeholder: /* @__PURE__ */ jsx(DropdownPlaceholder, {}),
|
|
210667
210667
|
children: /* @__PURE__ */ jsx(
|
|
210668
|
-
|
|
210668
|
+
ed2,
|
|
210669
210669
|
{
|
|
210670
210670
|
id: "encounter-type-dropdown",
|
|
210671
210671
|
"data-testid": "encounter-type-dropdown",
|
|
@@ -210680,13 +210680,13 @@ const useLocations = () => {
|
|
|
210680
210680
|
)
|
|
210681
210681
|
}
|
|
210682
210682
|
) }),
|
|
210683
|
-
/* @__PURE__ */ jsx(
|
|
210683
|
+
/* @__PURE__ */ jsx(ad2, { sm: 4, md: 8, lg: 5, xl: 12, className: styles$e.column, children: /* @__PURE__ */ jsx(
|
|
210684
210684
|
FormField,
|
|
210685
210685
|
{
|
|
210686
210686
|
isLoading: !_ && !v,
|
|
210687
210687
|
placeholder: /* @__PURE__ */ jsx(DropdownPlaceholder, {}),
|
|
210688
210688
|
children: /* @__PURE__ */ jsx(
|
|
210689
|
-
|
|
210689
|
+
ed2,
|
|
210690
210690
|
{
|
|
210691
210691
|
id: "visit-type-dropdown",
|
|
210692
210692
|
"data-testid": "visit-type-dropdown",
|
|
@@ -210701,13 +210701,13 @@ const useLocations = () => {
|
|
|
210701
210701
|
)
|
|
210702
210702
|
}
|
|
210703
210703
|
) }),
|
|
210704
|
-
/* @__PURE__ */ jsx(
|
|
210704
|
+
/* @__PURE__ */ jsx(ad2, { sm: 4, md: 8, lg: 5, className: styles$e.column, children: /* @__PURE__ */ jsx(
|
|
210705
210705
|
FormField,
|
|
210706
210706
|
{
|
|
210707
210707
|
isLoading: !E && !y,
|
|
210708
210708
|
placeholder: /* @__PURE__ */ jsx(DropdownPlaceholder, {}),
|
|
210709
210709
|
children: /* @__PURE__ */ jsx(
|
|
210710
|
-
|
|
210710
|
+
ed2,
|
|
210711
210711
|
{
|
|
210712
210712
|
id: "practitioner-dropdown",
|
|
210713
210713
|
"data-testid": "practitioner-dropdown",
|
|
@@ -210722,8 +210722,8 @@ const useLocations = () => {
|
|
|
210722
210722
|
)
|
|
210723
210723
|
}
|
|
210724
210724
|
) }),
|
|
210725
|
-
/* @__PURE__ */ jsx(
|
|
210726
|
-
|
|
210725
|
+
/* @__PURE__ */ jsx(ad2, { sm: 4, md: 8, lg: 5, className: styles$e.column, children: /* @__PURE__ */ jsx(ld2, { datePickerType: "single", "data-testid": "encounter-date-picker", children: /* @__PURE__ */ jsx(
|
|
210726
|
+
id2,
|
|
210727
210727
|
{
|
|
210728
210728
|
id: "encounter-date-picker-input",
|
|
210729
210729
|
"data-testid": "encounter-date-picker-input",
|
|
@@ -210739,8 +210739,8 @@ const useLocations = () => {
|
|
|
210739
210739
|
placeholder: e,
|
|
210740
210740
|
children: r
|
|
210741
210741
|
}) => n ? e : r, DropdownPlaceholder = t__default.memo(() => /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
210742
|
-
/* @__PURE__ */ jsx(
|
|
210743
|
-
/* @__PURE__ */ jsx(
|
|
210742
|
+
/* @__PURE__ */ jsx(Jh2, { className: styles$e.skeletonTitle }),
|
|
210743
|
+
/* @__PURE__ */ jsx(Jh2, { className: styles$e.skeletonBody })
|
|
210744
210744
|
] }));
|
|
210745
210745
|
DropdownPlaceholder.displayName = "DropdownPlaceholder";
|
|
210746
210746
|
const FHIR_MEDICATION_EXTENSION_URL = "http://fhir.openmrs.org/ext/medicine", FHIR_MEDICATION_NAME_EXTENSION_URL = "http://fhir.openmrs.org/ext/medicine#drugName";
|
|
@@ -211125,13 +211125,13 @@ const useImmunizationHistoryStore = create(
|
|
|
211125
211125
|
}
|
|
211126
211126
|
),
|
|
211127
211127
|
/* @__PURE__ */ jsxs(
|
|
211128
|
-
|
|
211128
|
+
cd2,
|
|
211129
211129
|
{
|
|
211130
211130
|
id: `selected-immunization-item-grid-${z}`,
|
|
211131
211131
|
"data-testid": `selected-immunization-item-grid-${z}-test-id`,
|
|
211132
211132
|
children: [
|
|
211133
|
-
findAttr("drug", a) && /* @__PURE__ */ jsx(
|
|
211134
|
-
|
|
211133
|
+
findAttr("drug", a) && /* @__PURE__ */ jsx(ad2, { sm: 4, md: 8, lg: 16, className: styles$d.column, children: /* @__PURE__ */ jsx(
|
|
211134
|
+
Ph2,
|
|
211135
211135
|
{
|
|
211136
211136
|
id: `immunization-drug-name-combobox-${z}`,
|
|
211137
211137
|
"data-testid": `immunization-drug-name-combobox-${z}-test-id`,
|
|
@@ -211155,8 +211155,8 @@ const useImmunizationHistoryStore = create(
|
|
|
211155
211155
|
invalidText: n.errors.drug ? d(n.errors.drug) : ""
|
|
211156
211156
|
}
|
|
211157
211157
|
) }),
|
|
211158
|
-
findAttr("administeredOn", a) && /* @__PURE__ */ jsx(
|
|
211159
|
-
|
|
211158
|
+
findAttr("administeredOn", a) && /* @__PURE__ */ jsx(ad2, { sm: 4, md: 2, lg: 5, className: styles$d.column, children: /* @__PURE__ */ jsx(
|
|
211159
|
+
ld2,
|
|
211160
211160
|
{
|
|
211161
211161
|
datePickerType: "single",
|
|
211162
211162
|
value: n.administeredOn ?? void 0,
|
|
@@ -211164,7 +211164,7 @@ const useImmunizationHistoryStore = create(
|
|
|
211164
211164
|
maxDate: /* @__PURE__ */ new Date(),
|
|
211165
211165
|
className: styles$d.datePicker,
|
|
211166
211166
|
children: /* @__PURE__ */ jsx(
|
|
211167
|
-
|
|
211167
|
+
id2,
|
|
211168
211168
|
{
|
|
211169
211169
|
id: `immunization-administered-on-${z}`,
|
|
211170
211170
|
"data-testid": `immunization-administered-on-input-${z}-test-id`,
|
|
@@ -211178,8 +211178,8 @@ const useImmunizationHistoryStore = create(
|
|
|
211178
211178
|
)
|
|
211179
211179
|
}
|
|
211180
211180
|
) }),
|
|
211181
|
-
findAttr("administeredLocation", a) && /* @__PURE__ */ jsx(
|
|
211182
|
-
|
|
211181
|
+
findAttr("administeredLocation", a) && /* @__PURE__ */ jsx(ad2, { sm: 4, md: 2, lg: 5, className: styles$d.column, children: /* @__PURE__ */ jsx(
|
|
211182
|
+
Ph2,
|
|
211183
211183
|
{
|
|
211184
211184
|
id: `immunization-administered-location-combobox-${z}`,
|
|
211185
211185
|
"data-testid": `immunization-administered-location-${z}-test-id`,
|
|
@@ -211204,8 +211204,8 @@ const useImmunizationHistoryStore = create(
|
|
|
211204
211204
|
invalidText: n.errors.administeredLocation ? d(n.errors.administeredLocation) : ""
|
|
211205
211205
|
}
|
|
211206
211206
|
) }),
|
|
211207
|
-
findAttr("route", a) && /* @__PURE__ */ jsx(
|
|
211208
|
-
|
|
211207
|
+
findAttr("route", a) && /* @__PURE__ */ jsx(ad2, { sm: 4, md: 2, lg: 5, className: styles$d.column, children: /* @__PURE__ */ jsx(
|
|
211208
|
+
Ph2,
|
|
211209
211209
|
{
|
|
211210
211210
|
id: `immunization-route-combobox-${z}`,
|
|
211211
211211
|
"data-testid": `immunization-route-${z}-test-id`,
|
|
@@ -211222,8 +211222,8 @@ const useImmunizationHistoryStore = create(
|
|
|
211222
211222
|
invalidText: n.errors.route ? d(n.errors.route) : ""
|
|
211223
211223
|
}
|
|
211224
211224
|
) }),
|
|
211225
|
-
findAttr("site", a) && /* @__PURE__ */ jsx(
|
|
211226
|
-
|
|
211225
|
+
findAttr("site", a) && /* @__PURE__ */ jsx(ad2, { sm: 4, md: 2, lg: 5, className: styles$d.column, children: /* @__PURE__ */ jsx(
|
|
211226
|
+
Ph2,
|
|
211227
211227
|
{
|
|
211228
211228
|
id: `immunization-site-combobox-${z}`,
|
|
211229
211229
|
"data-testid": `immunization-site-${z}-test-id`,
|
|
@@ -211240,8 +211240,8 @@ const useImmunizationHistoryStore = create(
|
|
|
211240
211240
|
invalidText: n.errors.site ? d(n.errors.site) : ""
|
|
211241
211241
|
}
|
|
211242
211242
|
) }),
|
|
211243
|
-
findAttr("manufacturer", a) && /* @__PURE__ */ jsx(
|
|
211244
|
-
|
|
211243
|
+
findAttr("manufacturer", a) && /* @__PURE__ */ jsx(ad2, { sm: 4, md: 2, lg: 5, className: styles$d.column, children: /* @__PURE__ */ jsx(
|
|
211244
|
+
Fh2,
|
|
211245
211245
|
{
|
|
211246
211246
|
id: `immunization-manufacturer-${z}`,
|
|
211247
211247
|
"data-testid": `immunization-manufacturer-${z}`,
|
|
@@ -211255,8 +211255,8 @@ const useImmunizationHistoryStore = create(
|
|
|
211255
211255
|
invalidText: n.errors.manufacturer ? d(n.errors.manufacturer) : ""
|
|
211256
211256
|
}
|
|
211257
211257
|
) }),
|
|
211258
|
-
findAttr("batchNumber", a) && /* @__PURE__ */ jsx(
|
|
211259
|
-
|
|
211258
|
+
findAttr("batchNumber", a) && /* @__PURE__ */ jsx(ad2, { sm: 4, md: 2, lg: 5, className: styles$d.column, children: /* @__PURE__ */ jsx(
|
|
211259
|
+
Fh2,
|
|
211260
211260
|
{
|
|
211261
211261
|
id: `immunization-batch-number-${z}`,
|
|
211262
211262
|
"data-testid": `immunization-batch-number-${z}`,
|
|
@@ -211270,8 +211270,8 @@ const useImmunizationHistoryStore = create(
|
|
|
211270
211270
|
invalidText: n.errors.batchNumber ? d(n.errors.batchNumber) : ""
|
|
211271
211271
|
}
|
|
211272
211272
|
) }),
|
|
211273
|
-
findAttr("doseSequence", a) && /* @__PURE__ */ jsx(
|
|
211274
|
-
|
|
211273
|
+
findAttr("doseSequence", a) && /* @__PURE__ */ jsx(ad2, { sm: 4, md: 2, lg: 5, className: styles$d.column, children: /* @__PURE__ */ jsx(
|
|
211274
|
+
Bh2,
|
|
211275
211275
|
{
|
|
211276
211276
|
id: `immunization-dose-sequence-${z}`,
|
|
211277
211277
|
"data-testid": `immunization-dose-sequence-${z}`,
|
|
@@ -211286,8 +211286,8 @@ const useImmunizationHistoryStore = create(
|
|
|
211286
211286
|
invalidText: n.errors.doseSequence ? d(n.errors.doseSequence) : ""
|
|
211287
211287
|
}
|
|
211288
211288
|
) }),
|
|
211289
|
-
findAttr("expiryDate", a) && /* @__PURE__ */ jsx(
|
|
211290
|
-
|
|
211289
|
+
findAttr("expiryDate", a) && /* @__PURE__ */ jsx(ad2, { sm: 4, md: 2, lg: 5, className: styles$d.column, children: /* @__PURE__ */ jsx(
|
|
211290
|
+
ld2,
|
|
211291
211291
|
{
|
|
211292
211292
|
datePickerType: "single",
|
|
211293
211293
|
value: n.expiryDate ?? void 0,
|
|
@@ -211299,7 +211299,7 @@ const useImmunizationHistoryStore = create(
|
|
|
211299
211299
|
) : void 0,
|
|
211300
211300
|
className: styles$d.datePicker,
|
|
211301
211301
|
children: /* @__PURE__ */ jsx(
|
|
211302
|
-
|
|
211302
|
+
id2,
|
|
211303
211303
|
{
|
|
211304
211304
|
id: `immunization-expiry-date-${z}`,
|
|
211305
211305
|
"data-testid": `immunization-expiry-date-input-${z}`,
|
|
@@ -211313,9 +211313,9 @@ const useImmunizationHistoryStore = create(
|
|
|
211313
211313
|
)
|
|
211314
211314
|
}
|
|
211315
211315
|
) }),
|
|
211316
|
-
findAttr("note", a) && /* @__PURE__ */ jsxs(
|
|
211316
|
+
findAttr("note", a) && /* @__PURE__ */ jsxs(ad2, { sm: 4, md: 8, lg: 16, className: styles$d.column, children: [
|
|
211317
211317
|
!_ && /* @__PURE__ */ jsx(
|
|
211318
|
-
|
|
211318
|
+
od2,
|
|
211319
211319
|
{
|
|
211320
211320
|
href: "#",
|
|
211321
211321
|
"data-testid": `immunization-add-note-link-${z}-test-id`,
|
|
@@ -211458,7 +211458,7 @@ const useImmunizationHistoryStore = create(
|
|
|
211458
211458
|
}
|
|
211459
211459
|
),
|
|
211460
211460
|
/* @__PURE__ */ jsx(
|
|
211461
|
-
|
|
211461
|
+
Ph2,
|
|
211462
211462
|
{
|
|
211463
211463
|
id: "immunization-history-search",
|
|
211464
211464
|
"data-testid": "immunization-history-search-combobox",
|
|
@@ -211479,7 +211479,7 @@ const useImmunizationHistoryStore = create(
|
|
|
211479
211479
|
}
|
|
211480
211480
|
),
|
|
211481
211481
|
H1 ? /* @__PURE__ */ jsx(
|
|
211482
|
-
|
|
211482
|
+
Qh2,
|
|
211483
211483
|
{
|
|
211484
211484
|
id: "immunization-history-loading",
|
|
211485
211485
|
testId: "immunization-history-loading-test-id",
|
|
@@ -211497,12 +211497,12 @@ const useImmunizationHistoryStore = create(
|
|
|
211497
211497
|
}
|
|
211498
211498
|
) : null,
|
|
211499
211499
|
j && /* @__PURE__ */ jsx(
|
|
211500
|
-
|
|
211500
|
+
Md2,
|
|
211501
211501
|
{
|
|
211502
211502
|
title: n("IMMUNIZATION_HISTORY_ADDED_ITEMS"),
|
|
211503
211503
|
className: styles$d.box,
|
|
211504
211504
|
children: f.map((G) => /* @__PURE__ */ jsx(
|
|
211505
|
-
|
|
211505
|
+
gd2,
|
|
211506
211506
|
{
|
|
211507
211507
|
className: styles$d.selectedItem,
|
|
211508
211508
|
onClose: () => l(G.id),
|
|
@@ -211567,9 +211567,9 @@ const useImmunizationHistoryStore = create(
|
|
|
211567
211567
|
e(w ? "stat" : "routine");
|
|
211568
211568
|
};
|
|
211569
211569
|
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
211570
|
-
/* @__PURE__ */ jsxs(
|
|
211570
|
+
/* @__PURE__ */ jsxs(cd2, { "data-testid": `selected-investigation-item-grid-${a}`, children: [
|
|
211571
211571
|
/* @__PURE__ */ jsxs(
|
|
211572
|
-
|
|
211572
|
+
ad2,
|
|
211573
211573
|
{
|
|
211574
211574
|
sm: 4,
|
|
211575
211575
|
md: 7,
|
|
@@ -211579,7 +211579,7 @@ const useImmunizationHistoryStore = create(
|
|
|
211579
211579
|
children: [
|
|
211580
211580
|
/* @__PURE__ */ jsx("span", { "data-testid": `investigation-display-name-${a}`, children: l }),
|
|
211581
211581
|
!p && /* @__PURE__ */ jsx(
|
|
211582
|
-
|
|
211582
|
+
od2,
|
|
211583
211583
|
{
|
|
211584
211584
|
href: "#",
|
|
211585
211585
|
"data-testid": `investigation-add-note-link-${a}`,
|
|
@@ -211594,7 +211594,7 @@ const useImmunizationHistoryStore = create(
|
|
|
211594
211594
|
}
|
|
211595
211595
|
),
|
|
211596
211596
|
/* @__PURE__ */ jsx(
|
|
211597
|
-
|
|
211597
|
+
ad2,
|
|
211598
211598
|
{
|
|
211599
211599
|
sm: 4,
|
|
211600
211600
|
md: 2,
|
|
@@ -211602,7 +211602,7 @@ const useImmunizationHistoryStore = create(
|
|
|
211602
211602
|
xlg: 4,
|
|
211603
211603
|
className: styles$c.selectedInvestigationUrgentPriority,
|
|
211604
211604
|
children: /* @__PURE__ */ jsx(
|
|
211605
|
-
|
|
211605
|
+
td2,
|
|
211606
211606
|
{
|
|
211607
211607
|
id: `investigation-priority-checkbox-${a}`,
|
|
211608
211608
|
"data-testid": `investigation-priority-checkbox-${a}`,
|
|
@@ -211714,7 +211714,7 @@ const investigationsFormTile = "_investigationsFormTile_1fcx2_1", investigations
|
|
|
211714
211714
|
), a(""), f(_));
|
|
211715
211715
|
};
|
|
211716
211716
|
return e ? /* @__PURE__ */ jsxs(
|
|
211717
|
-
|
|
211717
|
+
Nh2,
|
|
211718
211718
|
{
|
|
211719
211719
|
className: styles$b.investigationsFormTile,
|
|
211720
211720
|
"data-testid": "investigations-form-tile",
|
|
@@ -211728,7 +211728,7 @@ const investigationsFormTile = "_investigationsFormTile_1fcx2_1", investigations
|
|
|
211728
211728
|
}
|
|
211729
211729
|
),
|
|
211730
211730
|
/* @__PURE__ */ jsx(
|
|
211731
|
-
|
|
211731
|
+
Ph2,
|
|
211732
211732
|
{
|
|
211733
211733
|
id: "investigations-procedures-search",
|
|
211734
211734
|
"data-testid": "investigations-search-combobox",
|
|
@@ -211746,14 +211746,14 @@ const investigationsFormTile = "_investigationsFormTile_1fcx2_1", investigations
|
|
|
211746
211746
|
}
|
|
211747
211747
|
),
|
|
211748
211748
|
g && g.size > 0 && Array.from(g.keys()).map((_) => /* @__PURE__ */ jsx(
|
|
211749
|
-
|
|
211749
|
+
Md2,
|
|
211750
211750
|
{
|
|
211751
211751
|
title: n("INVESTIGATIONS_ADDED", {
|
|
211752
211752
|
investigationType: H(_)
|
|
211753
211753
|
}),
|
|
211754
211754
|
className: styles$b.addedInvestigationsBox,
|
|
211755
211755
|
children: g.get(_)?.map((M) => /* @__PURE__ */ jsx(
|
|
211756
|
-
|
|
211756
|
+
gd2,
|
|
211757
211757
|
{
|
|
211758
211758
|
onClose: () => b(_, M.uid),
|
|
211759
211759
|
className: styles$b.selectedInvestigationItem,
|
|
@@ -211954,13 +211954,13 @@ const useMedicationSearch = (n, e = 20, r = 500) => {
|
|
|
211954
211954
|
const U = xe.split("(")[0], J = xe.includes("(") ? "(" + xe.split("(").slice(1).join("(") : "";
|
|
211955
211955
|
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
211956
211956
|
/* @__PURE__ */ jsxs(
|
|
211957
|
-
|
|
211957
|
+
cd2,
|
|
211958
211958
|
{
|
|
211959
211959
|
condensed: !1,
|
|
211960
211960
|
narrow: !1,
|
|
211961
211961
|
"data-testid": `selected-medication-item-grid-${C}`,
|
|
211962
211962
|
children: [
|
|
211963
|
-
/* @__PURE__ */ jsxs(
|
|
211963
|
+
/* @__PURE__ */ jsxs(ad2, { sm: 2, md: 4, lg: 8, className: styles$a.medicationTitle, children: [
|
|
211964
211964
|
/* @__PURE__ */ jsx("span", { "data-testid": `medication-name-${C}`, children: U }),
|
|
211965
211965
|
J && /* @__PURE__ */ jsx(
|
|
211966
211966
|
"span",
|
|
@@ -211979,9 +211979,9 @@ const useMedicationSearch = (n, e = 20, r = 500) => {
|
|
|
211979
211979
|
}
|
|
211980
211980
|
)
|
|
211981
211981
|
] }),
|
|
211982
|
-
/* @__PURE__ */ jsxs(
|
|
211982
|
+
/* @__PURE__ */ jsxs(ad2, { sm: 2, md: 4, lg: 8, className: styles$a.medicationActions, children: [
|
|
211983
211983
|
/* @__PURE__ */ jsx(
|
|
211984
|
-
|
|
211984
|
+
td2,
|
|
211985
211985
|
{
|
|
211986
211986
|
id: `stat-${C}`,
|
|
211987
211987
|
"data-testid": `medication-stat-checkbox-${C}`,
|
|
@@ -211993,7 +211993,7 @@ const useMedicationSearch = (n, e = 20, r = 500) => {
|
|
|
211993
211993
|
}
|
|
211994
211994
|
),
|
|
211995
211995
|
/* @__PURE__ */ jsx(
|
|
211996
|
-
|
|
211996
|
+
td2,
|
|
211997
211997
|
{
|
|
211998
211998
|
id: `prn-${C}`,
|
|
211999
211999
|
"data-testid": `medication-prn-checkbox-${C}`,
|
|
@@ -212004,9 +212004,9 @@ const useMedicationSearch = (n, e = 20, r = 500) => {
|
|
|
212004
212004
|
}
|
|
212005
212005
|
)
|
|
212006
212006
|
] }),
|
|
212007
|
-
/* @__PURE__ */ jsxs(
|
|
212007
|
+
/* @__PURE__ */ jsxs(ad2, { sm: 2, md: 3, lg: 6, className: styles$a.dosageControls, children: [
|
|
212008
212008
|
/* @__PURE__ */ jsx(
|
|
212009
|
-
|
|
212009
|
+
Bh2,
|
|
212010
212010
|
{
|
|
212011
212011
|
id: `dosage-unit-${C}`,
|
|
212012
212012
|
"data-testid": `medication-dosage-input-${C}`,
|
|
@@ -212027,7 +212027,7 @@ const useMedicationSearch = (n, e = 20, r = 500) => {
|
|
|
212027
212027
|
}
|
|
212028
212028
|
),
|
|
212029
212029
|
/* @__PURE__ */ jsx(
|
|
212030
|
-
|
|
212030
|
+
ed2,
|
|
212031
212031
|
{
|
|
212032
212032
|
id: `dosage-unit-${C}`,
|
|
212033
212033
|
"data-testid": `medication-dosage-unit-dropdown-${C}`,
|
|
@@ -212049,8 +212049,8 @@ const useMedicationSearch = (n, e = 20, r = 500) => {
|
|
|
212049
212049
|
}
|
|
212050
212050
|
)
|
|
212051
212051
|
] }),
|
|
212052
|
-
/* @__PURE__ */ jsx(
|
|
212053
|
-
|
|
212052
|
+
/* @__PURE__ */ jsx(ad2, { sm: 1, md: 2, lg: 4, className: styles$a.column, children: /* @__PURE__ */ jsx(
|
|
212053
|
+
ed2,
|
|
212054
212054
|
{
|
|
212055
212055
|
id: `frequency-${C}`,
|
|
212056
212056
|
"data-testid": `medication-frequency-dropdown-${C}`,
|
|
@@ -212073,9 +212073,9 @@ const useMedicationSearch = (n, e = 20, r = 500) => {
|
|
|
212073
212073
|
disabled: S && !n1
|
|
212074
212074
|
}
|
|
212075
212075
|
) }),
|
|
212076
|
-
/* @__PURE__ */ jsxs(
|
|
212076
|
+
/* @__PURE__ */ jsxs(ad2, { sm: 2, md: 3, lg: 6, className: styles$a.durationControls, children: [
|
|
212077
212077
|
/* @__PURE__ */ jsx(
|
|
212078
|
-
|
|
212078
|
+
Bh2,
|
|
212079
212079
|
{
|
|
212080
212080
|
id: `duration-${C}`,
|
|
212081
212081
|
"data-testid": `medication-duration-input-${C}`,
|
|
@@ -212097,7 +212097,7 @@ const useMedicationSearch = (n, e = 20, r = 500) => {
|
|
|
212097
212097
|
}
|
|
212098
212098
|
),
|
|
212099
212099
|
/* @__PURE__ */ jsx(
|
|
212100
|
-
|
|
212100
|
+
ed2,
|
|
212101
212101
|
{
|
|
212102
212102
|
id: `duration-unit-${C}`,
|
|
212103
212103
|
"data-testid": `medication-duration-unit-dropdown-${C}`,
|
|
@@ -212120,8 +212120,8 @@ const useMedicationSearch = (n, e = 20, r = 500) => {
|
|
|
212120
212120
|
}
|
|
212121
212121
|
)
|
|
212122
212122
|
] }),
|
|
212123
|
-
/* @__PURE__ */ jsx(
|
|
212124
|
-
|
|
212123
|
+
/* @__PURE__ */ jsx(ad2, { sm: 1, md: 2, lg: 4, className: styles$a.column, children: /* @__PURE__ */ jsx(
|
|
212124
|
+
ed2,
|
|
212125
212125
|
{
|
|
212126
212126
|
id: `med-instructions-${C}`,
|
|
212127
212127
|
"data-testid": `medication-instructions-dropdown-${C}`,
|
|
@@ -212139,8 +212139,8 @@ const useMedicationSearch = (n, e = 20, r = 500) => {
|
|
|
212139
212139
|
autoAlign: !0
|
|
212140
212140
|
}
|
|
212141
212141
|
) }),
|
|
212142
|
-
/* @__PURE__ */ jsx(
|
|
212143
|
-
|
|
212142
|
+
/* @__PURE__ */ jsx(ad2, { sm: 1, md: 2, lg: 4, className: styles$a.column, children: /* @__PURE__ */ jsx(
|
|
212143
|
+
ed2,
|
|
212144
212144
|
{
|
|
212145
212145
|
id: `route-${C}`,
|
|
212146
212146
|
"data-testid": `medication-route-dropdown-${C}`,
|
|
@@ -212160,8 +212160,8 @@ const useMedicationSearch = (n, e = 20, r = 500) => {
|
|
|
212160
212160
|
invalidText: y(hYe.route ?? "")
|
|
212161
212161
|
}
|
|
212162
212162
|
) }),
|
|
212163
|
-
/* @__PURE__ */ jsx(
|
|
212164
|
-
|
|
212163
|
+
/* @__PURE__ */ jsx(ad2, { sm: 2, md: 4, lg: 8, className: styles$a.column, children: /* @__PURE__ */ jsx(
|
|
212164
|
+
ld2,
|
|
212165
212165
|
{
|
|
212166
212166
|
datePickerType: "single",
|
|
212167
212167
|
"data-testid": `medication-start-date-picker-${C}`,
|
|
@@ -212171,7 +212171,7 @@ const useMedicationSearch = (n, e = 20, r = 500) => {
|
|
|
212171
212171
|
F?.[0] && F[0] >= Ny$1() && v(C, F[0]);
|
|
212172
212172
|
},
|
|
212173
212173
|
children: /* @__PURE__ */ jsx(
|
|
212174
|
-
|
|
212174
|
+
id2,
|
|
212175
212175
|
{
|
|
212176
212176
|
id: `start-date-${C}`,
|
|
212177
212177
|
"data-testid": `medication-start-date-input-${C}`,
|
|
@@ -212184,9 +212184,9 @@ const useMedicationSearch = (n, e = 20, r = 500) => {
|
|
|
212184
212184
|
)
|
|
212185
212185
|
}
|
|
212186
212186
|
) }),
|
|
212187
|
-
/* @__PURE__ */ jsxs(
|
|
212187
|
+
/* @__PURE__ */ jsxs(ad2, { sm: 4, md: 8, lg: 16, className: styles$a.footerRow, children: [
|
|
212188
212188
|
!H1 && /* @__PURE__ */ jsx(
|
|
212189
|
-
|
|
212189
|
+
od2,
|
|
212190
212190
|
{
|
|
212191
212191
|
href: "#",
|
|
212192
212192
|
"data-testid": `medication-add-note-link-${C}`,
|
|
@@ -212335,7 +212335,7 @@ const medicationsFormTile = "_medicationsFormTile_d57cm_1", medicationsFormTitle
|
|
|
212335
212335
|
n
|
|
212336
212336
|
]);
|
|
212337
212337
|
return a ? /* @__PURE__ */ jsxs(
|
|
212338
|
-
|
|
212338
|
+
Nh2,
|
|
212339
212339
|
{
|
|
212340
212340
|
className: styles$9.medicationsFormTile,
|
|
212341
212341
|
"data-testid": "medications-form-tile",
|
|
@@ -212348,12 +212348,12 @@ const medicationsFormTile = "_medicationsFormTile_d57cm_1", medicationsFormTitle
|
|
|
212348
212348
|
children: n("MEDICATIONS_FORM_TITLE")
|
|
212349
212349
|
}
|
|
212350
212350
|
),
|
|
212351
|
-
w && /* @__PURE__ */ jsx(
|
|
212351
|
+
w && /* @__PURE__ */ jsx(Xh2, {}),
|
|
212352
212352
|
v && /* @__PURE__ */ jsx("div", { children: n("ERROR_FETCHING_MEDICATION_CONFIG", {
|
|
212353
212353
|
error: v.message
|
|
212354
212354
|
}) }),
|
|
212355
212355
|
!w && !v && /* @__PURE__ */ jsx(
|
|
212356
|
-
|
|
212356
|
+
Ph2,
|
|
212357
212357
|
{
|
|
212358
212358
|
id: "medications-search",
|
|
212359
212359
|
"data-testid": "medications-search-combobox",
|
|
@@ -212372,12 +212372,12 @@ const medicationsFormTile = "_medicationsFormTile_d57cm_1", medicationsFormTitle
|
|
|
212372
212372
|
}
|
|
212373
212373
|
),
|
|
212374
212374
|
g && y && y.length > 0 && /* @__PURE__ */ jsx(
|
|
212375
|
-
|
|
212375
|
+
Md2,
|
|
212376
212376
|
{
|
|
212377
212377
|
title: n("MEDICATIONS_ADDED_MEDICATIONS"),
|
|
212378
212378
|
className: styles$9.medicationsBox,
|
|
212379
212379
|
children: y.map((G) => /* @__PURE__ */ jsx(
|
|
212380
|
-
|
|
212380
|
+
gd2,
|
|
212381
212381
|
{
|
|
212382
212382
|
onClose: () => z(G.id),
|
|
212383
212383
|
className: styles$9.selectedMedicationItem,
|
|
@@ -212533,13 +212533,13 @@ const column = "_column_yv0pp_1", vaccinationTitle = "_vaccinationTitle_yv0pp_6"
|
|
|
212533
212533
|
const j = P.split("(")[0], G = P.includes("(") ? "(" + P.split("(").slice(1).join("(") : "";
|
|
212534
212534
|
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
212535
212535
|
/* @__PURE__ */ jsxs(
|
|
212536
|
-
|
|
212536
|
+
cd2,
|
|
212537
212537
|
{
|
|
212538
212538
|
condensed: !1,
|
|
212539
212539
|
narrow: !1,
|
|
212540
212540
|
"data-testid": `selected-vaccination-item-grid-${y}`,
|
|
212541
212541
|
children: [
|
|
212542
|
-
/* @__PURE__ */ jsxs(
|
|
212542
|
+
/* @__PURE__ */ jsxs(ad2, { sm: 2, md: 4, lg: 8, className: styles$8.vaccinationTitle, children: [
|
|
212543
212543
|
/* @__PURE__ */ jsx("span", { "data-testid": `vaccination-name-${y}`, children: j }),
|
|
212544
212544
|
G && /* @__PURE__ */ jsx(
|
|
212545
212545
|
"span",
|
|
@@ -212558,8 +212558,8 @@ const column = "_column_yv0pp_1", vaccinationTitle = "_vaccinationTitle_yv0pp_6"
|
|
|
212558
212558
|
}
|
|
212559
212559
|
)
|
|
212560
212560
|
] }),
|
|
212561
|
-
/* @__PURE__ */ jsx(
|
|
212562
|
-
|
|
212561
|
+
/* @__PURE__ */ jsx(ad2, { sm: 2, md: 4, lg: 8, className: styles$8.vaccinationActions, children: /* @__PURE__ */ jsx(
|
|
212562
|
+
td2,
|
|
212563
212563
|
{
|
|
212564
212564
|
id: `stat-${y}`,
|
|
212565
212565
|
"data-testid": `vaccination-stat-checkbox-${y}`,
|
|
@@ -212570,9 +212570,9 @@ const column = "_column_yv0pp_1", vaccinationTitle = "_vaccinationTitle_yv0pp_6"
|
|
|
212570
212570
|
className: styles$8.statControl
|
|
212571
212571
|
}
|
|
212572
212572
|
) }),
|
|
212573
|
-
/* @__PURE__ */ jsxs(
|
|
212573
|
+
/* @__PURE__ */ jsxs(ad2, { sm: 2, md: 3, lg: 6, className: styles$8.dosageControls, children: [
|
|
212574
212574
|
/* @__PURE__ */ jsx(
|
|
212575
|
-
|
|
212575
|
+
Bh2,
|
|
212576
212576
|
{
|
|
212577
212577
|
id: `dosage-unit-${y}`,
|
|
212578
212578
|
"data-testid": `vaccination-dosage-input-${y}`,
|
|
@@ -212593,7 +212593,7 @@ const column = "_column_yv0pp_1", vaccinationTitle = "_vaccinationTitle_yv0pp_6"
|
|
|
212593
212593
|
}
|
|
212594
212594
|
),
|
|
212595
212595
|
/* @__PURE__ */ jsx(
|
|
212596
|
-
|
|
212596
|
+
ed2,
|
|
212597
212597
|
{
|
|
212598
212598
|
id: `dosage-unit-${y}`,
|
|
212599
212599
|
"data-testid": `vaccination-dosage-unit-dropdown-${y}`,
|
|
@@ -212615,8 +212615,8 @@ const column = "_column_yv0pp_1", vaccinationTitle = "_vaccinationTitle_yv0pp_6"
|
|
|
212615
212615
|
}
|
|
212616
212616
|
)
|
|
212617
212617
|
] }),
|
|
212618
|
-
/* @__PURE__ */ jsx(
|
|
212619
|
-
|
|
212618
|
+
/* @__PURE__ */ jsx(ad2, { sm: 1, md: 2, lg: 4, className: styles$8.column, children: /* @__PURE__ */ jsx(
|
|
212619
|
+
ed2,
|
|
212620
212620
|
{
|
|
212621
212621
|
id: `frequency-${y}`,
|
|
212622
212622
|
"data-testid": `vaccination-frequency-dropdown-${y}`,
|
|
@@ -212639,9 +212639,9 @@ const column = "_column_yv0pp_1", vaccinationTitle = "_vaccinationTitle_yv0pp_6"
|
|
|
212639
212639
|
disabled: xe
|
|
212640
212640
|
}
|
|
212641
212641
|
) }),
|
|
212642
|
-
/* @__PURE__ */ jsxs(
|
|
212642
|
+
/* @__PURE__ */ jsxs(ad2, { sm: 2, md: 3, lg: 6, className: styles$8.durationControls, children: [
|
|
212643
212643
|
/* @__PURE__ */ jsx(
|
|
212644
|
-
|
|
212644
|
+
Bh2,
|
|
212645
212645
|
{
|
|
212646
212646
|
id: `duration-${y}`,
|
|
212647
212647
|
"data-testid": `vaccination-duration-input-${y}`,
|
|
@@ -212663,7 +212663,7 @@ const column = "_column_yv0pp_1", vaccinationTitle = "_vaccinationTitle_yv0pp_6"
|
|
|
212663
212663
|
}
|
|
212664
212664
|
),
|
|
212665
212665
|
/* @__PURE__ */ jsx(
|
|
212666
|
-
|
|
212666
|
+
ed2,
|
|
212667
212667
|
{
|
|
212668
212668
|
id: `duration-unit-${y}`,
|
|
212669
212669
|
"data-testid": `vaccination-duration-unit-dropdown-${y}`,
|
|
@@ -212686,8 +212686,8 @@ const column = "_column_yv0pp_1", vaccinationTitle = "_vaccinationTitle_yv0pp_6"
|
|
|
212686
212686
|
}
|
|
212687
212687
|
)
|
|
212688
212688
|
] }),
|
|
212689
|
-
/* @__PURE__ */ jsx(
|
|
212690
|
-
|
|
212689
|
+
/* @__PURE__ */ jsx(ad2, { sm: 1, md: 2, lg: 4, className: styles$8.column, children: /* @__PURE__ */ jsx(
|
|
212690
|
+
ed2,
|
|
212691
212691
|
{
|
|
212692
212692
|
id: `vac-instructions-${y}`,
|
|
212693
212693
|
"data-testid": `vaccination-instructions-dropdown-${y}`,
|
|
@@ -212705,8 +212705,8 @@ const column = "_column_yv0pp_1", vaccinationTitle = "_vaccinationTitle_yv0pp_6"
|
|
|
212705
212705
|
autoAlign: !0
|
|
212706
212706
|
}
|
|
212707
212707
|
) }),
|
|
212708
|
-
/* @__PURE__ */ jsx(
|
|
212709
|
-
|
|
212708
|
+
/* @__PURE__ */ jsx(ad2, { sm: 1, md: 2, lg: 4, className: styles$8.column, children: /* @__PURE__ */ jsx(
|
|
212709
|
+
ed2,
|
|
212710
212710
|
{
|
|
212711
212711
|
id: `route-${y}`,
|
|
212712
212712
|
"data-testid": `vaccination-route-dropdown-${y}`,
|
|
@@ -212726,8 +212726,8 @@ const column = "_column_yv0pp_1", vaccinationTitle = "_vaccinationTitle_yv0pp_6"
|
|
|
212726
212726
|
invalidText: H(i5e.route ?? "")
|
|
212727
212727
|
}
|
|
212728
212728
|
) }),
|
|
212729
|
-
/* @__PURE__ */ jsx(
|
|
212730
|
-
|
|
212729
|
+
/* @__PURE__ */ jsx(ad2, { sm: 2, md: 4, lg: 8, className: styles$8.column, children: /* @__PURE__ */ jsx(
|
|
212730
|
+
ld2,
|
|
212731
212731
|
{
|
|
212732
212732
|
datePickerType: "single",
|
|
212733
212733
|
"data-testid": `vaccination-start-date-picker-${y}`,
|
|
@@ -212737,7 +212737,7 @@ const column = "_column_yv0pp_1", vaccinationTitle = "_vaccinationTitle_yv0pp_6"
|
|
|
212737
212737
|
U?.[0] && U[0] > Ny$1() && w(y, U[0]);
|
|
212738
212738
|
},
|
|
212739
212739
|
children: /* @__PURE__ */ jsx(
|
|
212740
|
-
|
|
212740
|
+
id2,
|
|
212741
212741
|
{
|
|
212742
212742
|
id: `start-date-${y}`,
|
|
212743
212743
|
"data-testid": `vaccination-start-date-input-${y}`,
|
|
@@ -212750,9 +212750,9 @@ const column = "_column_yv0pp_1", vaccinationTitle = "_vaccinationTitle_yv0pp_6"
|
|
|
212750
212750
|
)
|
|
212751
212751
|
}
|
|
212752
212752
|
) }),
|
|
212753
|
-
/* @__PURE__ */ jsxs(
|
|
212753
|
+
/* @__PURE__ */ jsxs(ad2, { sm: 4, md: 8, lg: 16, className: styles$8.footerRow, children: [
|
|
212754
212754
|
!_2t && /* @__PURE__ */ jsx(
|
|
212755
|
-
|
|
212755
|
+
od2,
|
|
212756
212756
|
{
|
|
212757
212757
|
href: "#",
|
|
212758
212758
|
"data-testid": `vaccination-add-note-link-${y}`,
|
|
@@ -212922,7 +212922,7 @@ const vaccinationFormTile = "_vaccinationFormTile_1k71a_1", vaccinationFormTitle
|
|
|
212922
212922
|
n
|
|
212923
212923
|
]);
|
|
212924
212924
|
return r ? /* @__PURE__ */ jsxs(
|
|
212925
|
-
|
|
212925
|
+
Nh2,
|
|
212926
212926
|
{
|
|
212927
212927
|
className: styles$7.vaccinationFormTile,
|
|
212928
212928
|
"data-testid": "vaccination-form-tile",
|
|
@@ -212935,12 +212935,12 @@ const vaccinationFormTile = "_vaccinationFormTile_1k71a_1", vaccinationFormTitle
|
|
|
212935
212935
|
children: n("VACCINATION_FORM_TITLE")
|
|
212936
212936
|
}
|
|
212937
212937
|
),
|
|
212938
|
-
m && /* @__PURE__ */ jsx(
|
|
212938
|
+
m && /* @__PURE__ */ jsx(Xh2, {}),
|
|
212939
212939
|
g && /* @__PURE__ */ jsx("div", { children: n("ERROR_FETCHING_VACCINATION_CONFIG", {
|
|
212940
212940
|
error: g.message
|
|
212941
212941
|
}) }),
|
|
212942
212942
|
!m && !g && /* @__PURE__ */ jsx(
|
|
212943
|
-
|
|
212943
|
+
Ph2,
|
|
212944
212944
|
{
|
|
212945
212945
|
id: "vaccinations-search",
|
|
212946
212946
|
"data-testid": "vaccinations-search-combobox",
|
|
@@ -212959,12 +212959,12 @@ const vaccinationFormTile = "_vaccinationFormTile_1k71a_1", vaccinationFormTitle
|
|
|
212959
212959
|
}
|
|
212960
212960
|
),
|
|
212961
212961
|
p && C && C.length > 0 && /* @__PURE__ */ jsx(
|
|
212962
|
-
|
|
212962
|
+
Md2,
|
|
212963
212963
|
{
|
|
212964
212964
|
title: n("VACCINATION_ADDED_VACCINATIONS"),
|
|
212965
212965
|
className: styles$7.vaccinationBox,
|
|
212966
212966
|
children: C.map((H1) => /* @__PURE__ */ jsx(
|
|
212967
|
-
|
|
212967
|
+
gd2,
|
|
212968
212968
|
{
|
|
212969
212969
|
onClose: () => _(H1.id),
|
|
212970
212970
|
className: styles$7.selectedVaccinationItem,
|
|
@@ -213082,7 +213082,7 @@ const observationFormsTile = "_observationFormsTile_83y6q_1", observationFormsTi
|
|
|
213082
213082
|
g
|
|
213083
213083
|
]);
|
|
213084
213084
|
return w ? /* @__PURE__ */ jsxs(
|
|
213085
|
-
|
|
213085
|
+
Nh2,
|
|
213086
213086
|
{
|
|
213087
213087
|
className: styles$6.observationFormsTile,
|
|
213088
213088
|
"data-testid": "observation-forms-tile",
|
|
@@ -213096,7 +213096,7 @@ const observationFormsTile = "_observationFormsTile_83y6q_1", observationFormsTi
|
|
|
213096
213096
|
}
|
|
213097
213097
|
),
|
|
213098
213098
|
/* @__PURE__ */ jsx("div", { "data-testid": "observation-forms-search-section", children: /* @__PURE__ */ jsx(
|
|
213099
|
-
|
|
213099
|
+
Ph2,
|
|
213100
213100
|
{
|
|
213101
213101
|
id: "observation-forms-search",
|
|
213102
213102
|
placeholder: g("OBSERVATION_FORMS_SEARCH_PLACEHOLDER"),
|
|
@@ -213115,7 +213115,7 @@ const observationFormsTile = "_observationFormsTile_83y6q_1", observationFormsTi
|
|
|
213115
213115
|
}
|
|
213116
213116
|
) }),
|
|
213117
213117
|
e && e.length > 0 && /* @__PURE__ */ jsx("div", { "data-testid": "added-forms-section", children: /* @__PURE__ */ jsx(
|
|
213118
|
-
|
|
213118
|
+
yd2,
|
|
213119
213119
|
{
|
|
213120
213120
|
title: g("OBSERVATION_FORMS_ADDED_FORMS"),
|
|
213121
213121
|
dataTestId: "added-forms-container",
|
|
@@ -213124,7 +213124,7 @@ const observationFormsTile = "_observationFormsTile_83y6q_1", observationFormsTi
|
|
|
213124
213124
|
`OBSERVATION_ADDED_FORM_VALIDATION_ERROR_TITLE_${i5e.toUpperCase()}`
|
|
213125
213125
|
) : void 0;
|
|
213126
213126
|
return /* @__PURE__ */ jsx(
|
|
213127
|
-
|
|
213127
|
+
_d2,
|
|
213128
213128
|
{
|
|
213129
213129
|
title: Lle.name,
|
|
213130
213130
|
icon: "fa-file-lines",
|
|
@@ -213141,21 +213141,21 @@ const observationFormsTile = "_observationFormsTile_83y6q_1", observationFormsTi
|
|
|
213141
213141
|
}
|
|
213142
213142
|
) }),
|
|
213143
213143
|
/* @__PURE__ */ jsx("div", { "data-testid": "pinned-forms-section", children: /* @__PURE__ */ jsx(
|
|
213144
|
-
|
|
213144
|
+
yd2,
|
|
213145
213145
|
{
|
|
213146
213146
|
title: g("DEFAULT_AND_PINNED_FORMS_TITLE"),
|
|
213147
213147
|
showNoFormsMessage: !p && xe.length === 0 && O.length === 0,
|
|
213148
213148
|
noFormsMessage: g("DEFAULT_AND_PINNED_FORMS_NO_FORMS_FOUND"),
|
|
213149
213149
|
dataTestId: "pinned-forms-container",
|
|
213150
213150
|
children: p || f ? /* @__PURE__ */ jsx(
|
|
213151
|
-
|
|
213151
|
+
Jh2,
|
|
213152
213152
|
{
|
|
213153
213153
|
width: "100%",
|
|
213154
213154
|
lineCount: 3,
|
|
213155
213155
|
testId: "pinned-forms-skeleton"
|
|
213156
213156
|
}
|
|
213157
213157
|
) : xe.map((Lle) => /* @__PURE__ */ jsx(
|
|
213158
|
-
|
|
213158
|
+
_d2,
|
|
213159
213159
|
{
|
|
213160
213160
|
title: Lle.name,
|
|
213161
213161
|
icon: "fa-file-lines",
|
|
@@ -213569,7 +213569,7 @@ const ConsultationPad = ({
|
|
|
213569
213569
|
);
|
|
213570
213570
|
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
213571
213571
|
/* @__PURE__ */ jsx(
|
|
213572
|
-
|
|
213572
|
+
Cd2,
|
|
213573
213573
|
{
|
|
213574
213574
|
"data-testid": "consultation-pad-action-area",
|
|
213575
213575
|
title: i5e ? "" : r("CONSULTATION_ACTION_NEW"),
|
|
@@ -213642,7 +213642,7 @@ const ConsultationPad = ({
|
|
|
213642
213642
|
"data-testid": `dashboard-section-wrapper-${n.name}`,
|
|
213643
213643
|
children: [
|
|
213644
213644
|
/* @__PURE__ */ jsx(
|
|
213645
|
-
|
|
213645
|
+
Nh2,
|
|
213646
213646
|
{
|
|
213647
213647
|
id: `section-${n.id}`,
|
|
213648
213648
|
className: styles$4.sectionName,
|
|
@@ -213694,7 +213694,7 @@ const ConsultationPad = ({
|
|
|
213694
213694
|
});
|
|
213695
213695
|
}
|
|
213696
213696
|
}, [e, n]), n.length ? /* @__PURE__ */ jsx(
|
|
213697
|
-
|
|
213697
|
+
dd2,
|
|
213698
213698
|
{
|
|
213699
213699
|
className: styles$3.sectionContainer,
|
|
213700
213700
|
"data-testid": "dashboard-container",
|
|
@@ -213876,7 +213876,7 @@ const ConsultationPad = ({
|
|
|
213876
213876
|
className: styles$1.patientSearchContainer,
|
|
213877
213877
|
"data-testid": "patient-search-container",
|
|
213878
213878
|
children: /* @__PURE__ */ jsx(
|
|
213879
|
-
|
|
213879
|
+
Ph2,
|
|
213880
213880
|
{
|
|
213881
213881
|
id: "patient-search-combobox",
|
|
213882
213882
|
"data-testid": "patient-search-combobox",
|
|
@@ -213932,7 +213932,7 @@ const ConsultationPad = ({
|
|
|
213932
213932
|
error: d
|
|
213933
213933
|
};
|
|
213934
213934
|
}, [l, e, f, d]);
|
|
213935
|
-
return f && e.length > 0 ? /* @__PURE__ */ jsx(
|
|
213935
|
+
return f && e.length > 0 ? /* @__PURE__ */ jsx(md2, { description: r("LOADING_CLINICAL_DATA"), role: "status" }) : d ? /* @__PURE__ */ jsx("div", { className: "alert alert-danger", children: r("ERROR_FETCHING_CLINICAL_DATA") }) : /* @__PURE__ */ jsx(ClinicalAppContext.Provider, { value: p, children: n });
|
|
213936
213936
|
};
|
|
213937
213937
|
ClinicalAppProvider.displayName = "clinical apps provider";
|
|
213938
213938
|
const DASHBOARD_CONFIG_URL = (n) => `${CLINICAL_V2_CONFIG_BASE_URL}/dashboards/${n}`, EPISODE_UUID_SEARCH_PARAMS_KEY = "episodeUuid", CURRENT_DASHBOARD_SEARCH_PARAMS_KEY = "currentDashboard", PROGRAM_UUID_SEARCH_PARAMS_KEY = "programUuid", $schema = "http://json-schema.org/draft-07/schema#", title = "Clinical Dashboard Configuration Schema", description = "Schema for dashboards in clinical app which contains sections and associated controls", type = "object", additionalProperties = !1, required = ["sections"], properties = { sections: { type: "array", description: "Section in a dashboard", items: { type: "object", additionalProperties: !1, required: ["name", "icon", "controls"], properties: { name: { type: "string", description: "Display name of the section" }, translationKey: { type: "string", description: "Translation key for the section name" }, icon: { type: "string", description: "Fontawesome Icon name for the section" }, controls: { type: "array", description: "List of controls in the section", items: [{ type: "object", additionalProperties: !1, required: ["type"], properties: { type: { type: "string", description: "Type of the control" }, requiredPrivileges: { type: "array", description: "List of required privileges for the control", items: { type: "string" } }, config: { type: "object", description: "Configuration for the control" } } }] } } } } }, dashboardConfigSchema = {
|
|
@@ -214035,10 +214035,10 @@ const DASHBOARD_CONFIG_URL = (n) => `${CLINICAL_V2_CONFIG_BASE_URL}/dashboards/$
|
|
|
214035
214035
|
const P = useMemo(() => !N || !a ? null : {
|
|
214036
214036
|
...N,
|
|
214037
214037
|
sections: filterSectionsByPrivileges(N.sections)
|
|
214038
|
-
}, [N, a]), xe = useMemo(() => P ? getSidebarItems(P, n) : [], [P, n]), { activeItemId: S, handleItemClick: n1 } =
|
|
214038
|
+
}, [N, a]), xe = useMemo(() => P ? getSidebarItems(P, n) : [], [P, n]), { activeItemId: S, handleItemClick: n1 } = ud2(xe);
|
|
214039
214039
|
if (r)
|
|
214040
214040
|
return /* @__PURE__ */ jsx(
|
|
214041
|
-
|
|
214041
|
+
md2,
|
|
214042
214042
|
{
|
|
214043
214043
|
id: "loading-clinical-config",
|
|
214044
214044
|
description: n("LOADING_CLINICAL_CONFIG"),
|
|
@@ -214046,7 +214046,7 @@ const DASHBOARD_CONFIG_URL = (n) => `${CLINICAL_V2_CONFIG_BASE_URL}/dashboards/$
|
|
|
214046
214046
|
}
|
|
214047
214047
|
);
|
|
214048
214048
|
if (!a)
|
|
214049
|
-
return /* @__PURE__ */ jsx(
|
|
214049
|
+
return /* @__PURE__ */ jsx(md2, { description: n("LOADING_USER_PRIVILEGES"), role: "status" });
|
|
214050
214050
|
if (!M) {
|
|
214051
214051
|
const Lle = _ ? n("ERROR_DASHBOARD_NOT_CONFIGURED", {
|
|
214052
214052
|
dashboardName: _
|
|
@@ -214065,7 +214065,7 @@ const DASHBOARD_CONFIG_URL = (n) => `${CLINICAL_V2_CONFIG_BASE_URL}/dashboards/$
|
|
|
214065
214065
|
}
|
|
214066
214066
|
if (k)
|
|
214067
214067
|
return /* @__PURE__ */ jsx(
|
|
214068
|
-
|
|
214068
|
+
md2,
|
|
214069
214069
|
{
|
|
214070
214070
|
id: "loading-dashboard-config",
|
|
214071
214071
|
"data-testid": "loading-dashboard-config-test-id",
|
|
@@ -214088,7 +214088,7 @@ const DASHBOARD_CONFIG_URL = (n) => `${CLINICAL_V2_CONFIG_BASE_URL}/dashboards/$
|
|
|
214088
214088
|
return /* @__PURE__ */ jsxs(ClinicalAppProvider, { episodeUuids: z, children: [
|
|
214089
214089
|
/* @__PURE__ */ jsx(PatientSearch, { isOpen: g, onClose: b }),
|
|
214090
214090
|
/* @__PURE__ */ jsx(
|
|
214091
|
-
|
|
214091
|
+
pd2,
|
|
214092
214092
|
{
|
|
214093
214093
|
headerWSideNav: /* @__PURE__ */ jsx(
|
|
214094
214094
|
Cp2,
|
|
@@ -214106,7 +214106,7 @@ const DASHBOARD_CONFIG_URL = (n) => `${CLINICAL_V2_CONFIG_BASE_URL}/dashboards/$
|
|
|
214106
214106
|
{
|
|
214107
214107
|
"data-testid": "suspense-dashboard-container-test-id",
|
|
214108
214108
|
fallback: /* @__PURE__ */ jsx(
|
|
214109
|
-
|
|
214109
|
+
md2,
|
|
214110
214110
|
{
|
|
214111
214111
|
id: "loading-dashboard-content",
|
|
214112
214112
|
"data-testid": "loading-dashboard-content-test-id",
|
|
@@ -214156,7 +214156,7 @@ const DASHBOARD_CONFIG_URL = (n) => `${CLINICAL_V2_CONFIG_BASE_URL}/dashboards/$
|
|
|
214156
214156
|
return useEffect(() => {
|
|
214157
214157
|
(async () => {
|
|
214158
214158
|
try {
|
|
214159
|
-
await _g$1(CLINICAL_NAMESPACE),
|
|
214159
|
+
await _g$1(CLINICAL_NAMESPACE), Th2(), Cw$1(), e(!0);
|
|
214160
214160
|
} catch (a) {
|
|
214161
214161
|
console.error("Failed to initialize app:", a), e(!0);
|
|
214162
214162
|
}
|
|
@@ -214167,7 +214167,7 @@ const DASHBOARD_CONFIG_URL = (n) => `${CLINICAL_V2_CONFIG_BASE_URL}/dashboards/$
|
|
|
214167
214167
|
/* @__PURE__ */ jsx(Routes, { children: /* @__PURE__ */ jsx(Route, { path: ":patientUuid", element: /* @__PURE__ */ jsx(ConsultationPage, {}) }) }),
|
|
214168
214168
|
/* @__PURE__ */ jsx(ReactQueryDevtools2, { initialIsOpen: !1 })
|
|
214169
214169
|
] }) }) }) })
|
|
214170
|
-
] }) }) : /* @__PURE__ */ jsx(
|
|
214170
|
+
] }) }) : /* @__PURE__ */ jsx(md2, {});
|
|
214171
214171
|
};
|
|
214172
214172
|
export {
|
|
214173
214173
|
onCleanup as $,
|