@bahmni/clinical-app 0.0.1-dev.398 → 0.0.1-dev.400
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/{ConsultationPage-Dzvkm4mR.js → ConsultationPage-B-5-OpXJ.js} +9171 -9177
- package/dist/{DocumentsTable-CyCmTrjB-DY8J4Lae.js → DocumentsTable-BYyXnEYb-C0mlvJ8e.js} +23 -23
- package/dist/{FormsTable-CMtT3i5o-BDw5pw6q.js → FormsTable-lAAkDRQQ-DvB9kgY6.js} +11 -11
- package/dist/{LNWAZHJI-BFap1j6S.js → LNWAZHJI-CZK8OYmD.js} +2 -2
- package/dist/{MWZ6AO7Z-CifPGyH-.js → MWZ6AO7Z-BID7wQYV.js} +2 -2
- package/dist/{Observations-Cco2HyR_-EXZuSbFR.js → Observations-DGEkuYFv-tFtk5RTO.js} +14 -14
- package/dist/{YPM2AS64-BIEW8lXA.js → YPM2AS64-DQaf2uNr.js} +1 -1
- package/dist/components/forms/stopMedications/StopMedicationForm.d.ts.map +1 -1
- package/dist/{hook-A1_aCTdq.js → hook-C21TecEn.js} +1 -1
- package/dist/{index-D0FIR-wI.js → index-BU_uycvJ.js} +3 -3
- package/dist/{index-Dwt8W_hk.js → index-Cb0GtWTp.js} +16 -16
- package/dist/{index-KKjsUkCr.js → index-CfNYk04x.js} +10274 -10235
- package/dist/index.js +1 -1
- package/dist/services/stopMedicationService.d.ts +1 -10
- package/dist/services/stopMedicationService.d.ts.map +1 -1
- package/dist/stores/stopMedicationsStore.d.ts +3 -1
- package/dist/stores/stopMedicationsStore.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as r, jsxs as p, Fragment as G } from "react/jsx-runtime";
|
|
2
|
-
import { g as Q, u as Y,
|
|
2
|
+
import { g as Q, u as Y, C as W, B as J, q as X, w as Z, K as ee, p as te } from "./index-CfNYk04x.js";
|
|
3
3
|
import { useQuery as ae } from "@tanstack/react-query";
|
|
4
|
-
import { useState as l, useCallback as h, useEffect as
|
|
4
|
+
import { useState as l, useCallback as h, useEffect as D, useMemo as _ } from "react";
|
|
5
5
|
const ne = "DocumentsTable-module_documentsTableBody__6iR3w", oe = "DocumentsTable-module_viewAttachmentsLink__aQ1on", re = "DocumentsTable-module_documentViewerContainer__F5m8D", de = "DocumentsTable-module_attachmentItem__17KA7", se = "DocumentsTable-module_attachmentCounter__WFiI3", me = "DocumentsTable-module_attachmentError__RI4U2", ce = "DocumentsTable-module_documentIframe__ptq5I", le = "DocumentsTable-module_documentImage__KQVgS", d = {
|
|
6
6
|
documentsTableBody: ne,
|
|
7
7
|
viewAttachmentsLink: oe,
|
|
@@ -34,22 +34,22 @@ const Te = [
|
|
|
34
34
|
"uploadedOn",
|
|
35
35
|
"uploadedBy"
|
|
36
36
|
], pe = /\.(jpg|jpeg|png|gif|webp|bmp|svg)$/i, R = (a) => a.attachments.length > 0 ? a.attachments : a.documentUrl ? [{ url: a.documentUrl, contentType: a.contentType }] : [], Ne = ({ config: a, encounterUuids: g }) => {
|
|
37
|
-
const [s, w] = l(!1), [o,
|
|
37
|
+
const [s, w] = l(!1), [o, U] = l(
|
|
38
38
|
null
|
|
39
|
-
), [$,
|
|
39
|
+
), [$, I] = l(
|
|
40
40
|
/* @__PURE__ */ new Set()
|
|
41
|
-
), E = Q(), { t: n } = Y(), { addNotification:
|
|
42
|
-
|
|
41
|
+
), E = Q(), { t: n } = Y(), { addNotification: L } = W(), k = Number(a?.pageSize) || 5, [O, f] = l(1), [u, V] = l(k), [q, A] = l(void 0), M = h((e) => {
|
|
42
|
+
U(e), w(!0);
|
|
43
43
|
}, []), F = h(() => {
|
|
44
|
-
w(!1),
|
|
44
|
+
w(!1), U(null), I(/* @__PURE__ */ new Set());
|
|
45
45
|
}, []), v = h((e) => {
|
|
46
|
-
|
|
46
|
+
I((t) => new Set(t).add(e));
|
|
47
47
|
}, []), { data: i, isLoading: H, isError: y, error: b } = ae({
|
|
48
48
|
queryKey: [
|
|
49
49
|
"documents",
|
|
50
50
|
E,
|
|
51
51
|
g,
|
|
52
|
-
|
|
52
|
+
O,
|
|
53
53
|
u
|
|
54
54
|
],
|
|
55
55
|
enabled: !!E,
|
|
@@ -57,20 +57,20 @@ const Te = [
|
|
|
57
57
|
E,
|
|
58
58
|
g,
|
|
59
59
|
u,
|
|
60
|
-
|
|
60
|
+
O
|
|
61
61
|
)
|
|
62
62
|
});
|
|
63
|
-
|
|
63
|
+
D(() => {
|
|
64
64
|
i && A(i.total);
|
|
65
|
-
}, [i]),
|
|
66
|
-
|
|
67
|
-
}, [E]),
|
|
68
|
-
y &&
|
|
65
|
+
}, [i]), D(() => {
|
|
66
|
+
f(1), A(void 0);
|
|
67
|
+
}, [E]), D(() => {
|
|
68
|
+
y && L({
|
|
69
69
|
title: n("ERROR_DEFAULT_TITLE"),
|
|
70
70
|
message: b?.message ?? "",
|
|
71
71
|
type: "error"
|
|
72
72
|
});
|
|
73
|
-
}, [y, b,
|
|
73
|
+
}, [y, b, L, n]), D(() => {
|
|
74
74
|
const e = new AbortController();
|
|
75
75
|
return (async () => {
|
|
76
76
|
if (!s || !o) return;
|
|
@@ -82,16 +82,16 @@ const Te = [
|
|
|
82
82
|
method: "HEAD",
|
|
83
83
|
signal: e.signal
|
|
84
84
|
})).ok || t.add(c);
|
|
85
|
-
} catch (
|
|
86
|
-
|
|
85
|
+
} catch (C) {
|
|
86
|
+
C instanceof Error && C.name !== "AbortError" && t.add(c);
|
|
87
87
|
}
|
|
88
88
|
}
|
|
89
|
-
e.signal.aborted ||
|
|
89
|
+
e.signal.aborted || I(t);
|
|
90
90
|
})(), () => e.abort();
|
|
91
91
|
}, [s, o]);
|
|
92
92
|
const K = h(
|
|
93
93
|
(e, t) => {
|
|
94
|
-
t !== u ? (V(t),
|
|
94
|
+
t !== u ? (V(t), f(1), A(void 0)) : f(e);
|
|
95
95
|
},
|
|
96
96
|
[u]
|
|
97
97
|
), N = _(
|
|
@@ -153,7 +153,7 @@ const Te = [
|
|
|
153
153
|
dataTestId: "documents-table",
|
|
154
154
|
pageSize: u,
|
|
155
155
|
totalItems: q,
|
|
156
|
-
page:
|
|
156
|
+
page: O,
|
|
157
157
|
onPageChange: K
|
|
158
158
|
}
|
|
159
159
|
) }),
|
|
@@ -169,8 +169,8 @@ const Te = [
|
|
|
169
169
|
size: "lg",
|
|
170
170
|
testId: "document-view-modal",
|
|
171
171
|
children: /* @__PURE__ */ r("div", { className: d.documentViewerContainer, children: T.map((e, t) => {
|
|
172
|
-
const m = B(e.url), c = e.contentType?.toLowerCase().includes("pdf"), S = (e.contentType?.toLowerCase().includes("image") ?? !1) || pe.test(e.url ?? ""),
|
|
173
|
-
return m === "#" ||
|
|
172
|
+
const m = B(e.url), c = e.contentType?.toLowerCase().includes("pdf"), S = (e.contentType?.toLowerCase().includes("image") ?? !1) || pe.test(e.url ?? ""), C = $.has(t);
|
|
173
|
+
return m === "#" || C ? /* @__PURE__ */ p(
|
|
174
174
|
"div",
|
|
175
175
|
{
|
|
176
176
|
className: d.attachmentError,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as i, jsxs as P, Fragment as ye } from "react/jsx-runtime";
|
|
2
|
-
import { u as ge, g as be,
|
|
2
|
+
import { u as ge, g as be, e as Ne, a as Oe, v as Te, k as Ee, o as Ie, Z as ve, F as Ae, m as _e, Y as Fe, G as Se, b as $, w as Be, N as x, E as G, q as Me, K as Y, c as Re, P as Ce, p as Le, d as Ue, n as ke } from "./index-CfNYk04x.js";
|
|
3
3
|
import { useQueryClient as De, useQuery as O } from "@tanstack/react-query";
|
|
4
4
|
import { useState as Q, useMemo as d, useCallback as c } from "react";
|
|
5
5
|
const qe = "FormsTable-module_formsTableBody__SvGha", we = "FormsTable-module_modalHeading__wnTmA", He = "FormsTable-module_customAccordianItem__isszs", T = {
|
|
@@ -66,28 +66,28 @@ const qe = "FormsTable-module_formsTableBody__SvGha", we = "FormsTable-module_mo
|
|
|
66
66
|
data: l,
|
|
67
67
|
isLoading: te,
|
|
68
68
|
isError: se,
|
|
69
|
-
error:
|
|
69
|
+
error: v
|
|
70
70
|
} = O({
|
|
71
71
|
queryKey: ["formMetadata", I],
|
|
72
|
-
queryFn: () =>
|
|
72
|
+
queryFn: () => ve(I),
|
|
73
73
|
enabled: !!I && y
|
|
74
74
|
}), {
|
|
75
|
-
data:
|
|
75
|
+
data: A,
|
|
76
76
|
isLoading: ne,
|
|
77
77
|
isError: ie,
|
|
78
|
-
error:
|
|
78
|
+
error: _
|
|
79
79
|
} = O({
|
|
80
80
|
queryKey: ["formsEncounterFHIR", s?.encounterUuid],
|
|
81
|
-
queryFn: () =>
|
|
81
|
+
queryFn: () => Ae(s.encounterUuid),
|
|
82
82
|
enabled: !!s?.encounterUuid && y
|
|
83
83
|
});
|
|
84
|
-
|
|
84
|
+
_e(
|
|
85
85
|
(e) => {
|
|
86
86
|
e.patientUUID === u && (ae(), re.invalidateQueries({ queryKey: ["formsEncounterFHIR"] }));
|
|
87
87
|
},
|
|
88
88
|
[u]
|
|
89
89
|
);
|
|
90
|
-
const de = d(() => !
|
|
90
|
+
const de = d(() => !A?.entry || !s?.formName ? [] : A.entry.filter((e) => e.resource?.resourceType === "Observation").map((e) => e.resource).filter((e) => Fe(e) ? Se(e)?.toLowerCase() === s.formName.toLowerCase() : !0), [A, s?.formName]), le = d(() => {
|
|
91
91
|
if (!l?.schema) return;
|
|
92
92
|
const e = [], r = (o) => {
|
|
93
93
|
(o ?? []).forEach((t) => {
|
|
@@ -124,11 +124,11 @@ const qe = "FormsTable-module_formsTableBody__SvGha", we = "FormsTable-module_mo
|
|
|
124
124
|
l.schema.controls ?? []
|
|
125
125
|
), Object.keys(e).length > 0 ? e : void 0;
|
|
126
126
|
}, [l]), ue = d(() => {
|
|
127
|
+
if (v)
|
|
128
|
+
return $(v).message;
|
|
127
129
|
if (_)
|
|
128
130
|
return $(_).message;
|
|
129
|
-
|
|
130
|
-
return $(A).message;
|
|
131
|
-
}, [_, A]), p = d(
|
|
131
|
+
}, [v, _]), p = d(
|
|
132
132
|
() => [
|
|
133
133
|
{ key: "recordedOn", header: n("RECORDED_ON") },
|
|
134
134
|
{ key: "recordedBy", header: n("RECORDED_BY") }
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { c, T as l, P as m, a as u, D as v, Q as i } from "./YPM2AS64-
|
|
2
|
-
import {
|
|
1
|
+
import { c, T as l, P as m, a as u, D as v, Q as i } from "./YPM2AS64-DQaf2uNr.js";
|
|
2
|
+
import { bY as d, bZ as f, b_ as e } from "./index-CfNYk04x.js";
|
|
3
3
|
var p = (a) => {
|
|
4
4
|
const [r, t] = c({
|
|
5
5
|
prefix: "TanstackQueryDevtools"
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { c as s, T as c, P as u, a as i, b as m, C as P, Q as d } from "./YPM2AS64-
|
|
2
|
-
import {
|
|
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-DQaf2uNr.js";
|
|
2
|
+
import { bY as v, bZ as C, b_ as e } from "./index-CfNYk04x.js";
|
|
3
3
|
var h = (t) => {
|
|
4
4
|
const [r, o] = s({
|
|
5
5
|
prefix: "TanstackQueryDevtools"
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsxs as S, jsx as u } from "react/jsx-runtime";
|
|
2
|
-
import { g as q,
|
|
2
|
+
import { g as q, C as k, u as N, $ as x, I as G, m as Q, f as j, h as w, J as H, i as J, K as M, j as z, l as C, r as P, s as Y, y as W, t as X, V as Z, x as ee } from "./index-CfNYk04x.js";
|
|
3
3
|
import { useQueries as ae, useQuery as te } from "@tanstack/react-query";
|
|
4
4
|
import { useRef as se, useEffect as $, useMemo as g } from "react";
|
|
5
|
-
const
|
|
5
|
+
const D = (a, n, d, l, b, r) => {
|
|
6
6
|
const t = P(a, n, b), s = t.value, i = Y(s);
|
|
7
7
|
let o = s;
|
|
8
8
|
i === "Image" && (o = /* @__PURE__ */ u(
|
|
@@ -37,13 +37,13 @@ const C = (a, n, d, l, b, r) => {
|
|
|
37
37
|
`obs-${a.id}`
|
|
38
38
|
);
|
|
39
39
|
}, re = (a, n, d, l, b, r, t) => /* @__PURE__ */ u(
|
|
40
|
-
|
|
40
|
+
C,
|
|
41
41
|
{
|
|
42
42
|
title: a.display,
|
|
43
43
|
id: `grouped-obs-${a.display}-${l}`,
|
|
44
44
|
open: d,
|
|
45
45
|
children: a.members?.map(
|
|
46
|
-
(s, i) =>
|
|
46
|
+
(s, i) => D(
|
|
47
47
|
s,
|
|
48
48
|
i,
|
|
49
49
|
b,
|
|
@@ -62,14 +62,14 @@ const C = (a, n, d, l, b, r) => {
|
|
|
62
62
|
const { t: l } = N(), b = (r, t, s) => {
|
|
63
63
|
const i = z(r.encounterDetails, l);
|
|
64
64
|
return /* @__PURE__ */ S(
|
|
65
|
-
|
|
65
|
+
C,
|
|
66
66
|
{
|
|
67
67
|
title: i,
|
|
68
68
|
id: `encounter-${r.encounterId}`,
|
|
69
69
|
open: t,
|
|
70
70
|
children: [
|
|
71
71
|
r.observations.map(
|
|
72
|
-
(o, m) =>
|
|
72
|
+
(o, m) => D(
|
|
73
73
|
o,
|
|
74
74
|
m,
|
|
75
75
|
s,
|
|
@@ -116,7 +116,7 @@ const C = (a, n, d, l, b, r) => {
|
|
|
116
116
|
} = n, r = se(/* @__PURE__ */ new Set()), t = q(), { addNotification: s } = k(), { t: i } = N(), o = ae({
|
|
117
117
|
queries: d.map((e) => ({
|
|
118
118
|
queryKey: de(e),
|
|
119
|
-
queryFn: () =>
|
|
119
|
+
queryFn: () => x(e),
|
|
120
120
|
enabled: !!e
|
|
121
121
|
}))
|
|
122
122
|
});
|
|
@@ -134,15 +134,15 @@ const C = (a, n, d, l, b, r) => {
|
|
|
134
134
|
}, [o, d]);
|
|
135
135
|
const m = g(() => o.map((e) => e.data?.uuid).filter((e) => !!e), [o]), p = g(() => [.../* @__PURE__ */ new Set([...m, ...l])], [m, l]), h = g(() => d.length === 0 ? !0 : o.every((e) => !e.isLoading), [o, d.length]), {
|
|
136
136
|
data: c,
|
|
137
|
-
isLoading:
|
|
137
|
+
isLoading: F,
|
|
138
138
|
isError: R,
|
|
139
139
|
refetch: T
|
|
140
140
|
} = te({
|
|
141
141
|
queryKey: le(t, p),
|
|
142
|
-
queryFn: () =>
|
|
142
|
+
queryFn: () => G(t, p),
|
|
143
143
|
enabled: !!t && p.length > 0 && h
|
|
144
144
|
});
|
|
145
|
-
|
|
145
|
+
Q(
|
|
146
146
|
(e) => {
|
|
147
147
|
e.patientUUID === t && e.updatedConcepts.size > 0 && [...e.updatedConcepts.keys()].some(
|
|
148
148
|
(y) => p.includes(y)
|
|
@@ -158,13 +158,13 @@ const C = (a, n, d, l, b, r) => {
|
|
|
158
158
|
}, [R]);
|
|
159
159
|
const f = g(() => {
|
|
160
160
|
if (!c) return [];
|
|
161
|
-
const e =
|
|
161
|
+
const e = j(c), y = w(e);
|
|
162
162
|
return H(y);
|
|
163
|
-
}, [c]),
|
|
163
|
+
}, [c]), K = [
|
|
164
164
|
{ key: "name", header: "name" },
|
|
165
165
|
{ key: "value", header: "value" },
|
|
166
166
|
{ key: "form", header: "form" }
|
|
167
|
-
], I =
|
|
167
|
+
], I = F || !h, O = R && h, L = (!c || c.entry?.length === 0 || p.length === 0) && h, V = O ? i("ERROR_FETCHING_OBSERVATIONS") : null, A = L ? i("NO_OBSERVATIONS_FOUND") : void 0, U = f.length > 0 && !I && !O, E = n.titleTranslationKey, v = E ? i(E) : "";
|
|
168
168
|
return /* @__PURE__ */ S(
|
|
169
169
|
"div",
|
|
170
170
|
{
|
|
@@ -193,7 +193,7 @@ const C = (a, n, d, l, b, r) => {
|
|
|
193
193
|
) : /* @__PURE__ */ u(
|
|
194
194
|
M,
|
|
195
195
|
{
|
|
196
|
-
headers:
|
|
196
|
+
headers: K,
|
|
197
197
|
rows: [],
|
|
198
198
|
ariaLabel: i("OBSERVATIONS"),
|
|
199
199
|
loading: I,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { b$ as we, c0 as z, c1 as xt, c2 as B, bZ as q, b_ as y, c3 as Ro, c4 as ye, c5 as R, c6 as _, c7 as k, c8 as N, c9 as A, ca as bs, cb as ir, cc as $e, cd as G, ce as Hn, cf as Vn, cg as dt, ch as D, ci as xs, cj as cn, ck as Be, cl as ws, cm as qt, cn as zt, co as $s, cp as Cs, cq as $n, cr as Ss, cs as Nr, ct as Bt, cu as zo, cv as ks, cw as Es, cx as j, cy as Gr, cz as Ms, cA as Ds, cB as sr, cC as As, cD as Ts, cE as zn, cF as Fs, cG as Is, cH as Z, cI as Ps, cJ as Ls } from "./index-CfNYk04x.js";
|
|
2
2
|
var Os = (e) => e != null, qs = (e) => e.filter(Os);
|
|
3
3
|
function _s(e) {
|
|
4
4
|
return (...t) => {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StopMedicationForm.d.ts","sourceRoot":"","sources":["../../../../src/components/forms/stopMedications/StopMedicationForm.tsx"],"names":[],"mappings":"AAmBA,OAAO,KAA+C,MAAM,OAAO,CAAC;AAGpE,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,mCAAmC,CAAC;AAKtF,OAAO,KAAK,EAAE,YAAY,IAAI,0BAA0B,EAAE,MAAM,0CAA0C,CAAC;AAU3G,UAAU,uBAAuB;IAC/B,4BAA4B,CAAC,EAAE,4BAA4B,CAAC;IAC5D,kBAAkB,CAAC,EAAE,0BAA0B,CAAC;CACjD;AAED,QAAA,MAAM,kBAAkB,EAAE,KAAK,CAAC,EAAE,CAAC,uBAAuB,
|
|
1
|
+
{"version":3,"file":"StopMedicationForm.d.ts","sourceRoot":"","sources":["../../../../src/components/forms/stopMedications/StopMedicationForm.tsx"],"names":[],"mappings":"AAmBA,OAAO,KAA+C,MAAM,OAAO,CAAC;AAGpE,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,mCAAmC,CAAC;AAKtF,OAAO,KAAK,EAAE,YAAY,IAAI,0BAA0B,EAAE,MAAM,0CAA0C,CAAC;AAU3G,UAAU,uBAAuB;IAC/B,4BAA4B,CAAC,EAAE,4BAA4B,CAAC;IAC5D,kBAAkB,CAAC,EAAE,0BAA0B,CAAC;CACjD;AAED,QAAA,MAAM,kBAAkB,EAAE,KAAK,CAAC,EAAE,CAAC,uBAAuB,CAuQzD,CAAC;AAIF,eAAe,kBAAkB,CAAC"}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { jsxs as d, jsx as e } from "react/jsx-runtime";
|
|
2
|
-
import { u as r,
|
|
2
|
+
import { u as r, cK as l, cL as o, cM as c, b9 as m, ba as g, cN as h, cO as p, cP as b, aH as u } from "./index-CfNYk04x.js";
|
|
3
3
|
import { Suspense as _ } from "react";
|
|
4
4
|
import "@tanstack/react-query";
|
|
5
5
|
const y = "index-module_loading__eyE2k", E = "index-module_message__95HmH", $ = "index-module_panel__8VJh2", s = {
|
|
6
6
|
loading: y,
|
|
7
7
|
message: E,
|
|
8
8
|
panel: $
|
|
9
|
-
},
|
|
9
|
+
}, T = ({ extensions: i }) => {
|
|
10
10
|
const { t: n } = r();
|
|
11
11
|
return i.length === 0 ? null : /* @__PURE__ */ d(l, { children: [
|
|
12
12
|
/* @__PURE__ */ e(
|
|
@@ -77,5 +77,5 @@ const y = "index-module_loading__eyE2k", E = "index-module_message__95HmH", $ =
|
|
|
77
77
|
] });
|
|
78
78
|
};
|
|
79
79
|
export {
|
|
80
|
-
|
|
80
|
+
T as default
|
|
81
81
|
};
|
|
@@ -1,37 +1,37 @@
|
|
|
1
1
|
import { jsx as s } from "react/jsx-runtime";
|
|
2
|
-
import { u as g,
|
|
2
|
+
import { u as g, a as u, bJ as b, bT as f, bU as p, bV as x, aH as _, bP as N } from "./index-CfNYk04x.js";
|
|
3
3
|
import { lazy as h, useMemo as t, Suspense as C } from "react";
|
|
4
4
|
import "@tanstack/react-query";
|
|
5
|
-
import { u as E } from "./hook-
|
|
5
|
+
import { u as E } from "./hook-C21TecEn.js";
|
|
6
6
|
const L = {
|
|
7
7
|
"org.bahmni.clinical.v2.search": h(
|
|
8
|
-
() => import("./index-
|
|
8
|
+
() => import("./index-BU_uycvJ.js")
|
|
9
9
|
)
|
|
10
|
-
}, v = "index-module_page__16xxw",
|
|
10
|
+
}, v = "index-module_page__16xxw", P = "index-module_loading__wNI-4", H = "index-module_message__Ib5Iw", l = {
|
|
11
11
|
page: v,
|
|
12
|
-
loading:
|
|
13
|
-
message:
|
|
12
|
+
loading: P,
|
|
13
|
+
message: H
|
|
14
14
|
}, T = () => {
|
|
15
|
-
const { t:
|
|
15
|
+
const { t: i } = g(), { clinicalConfig: o } = E(), { userPrivileges: r } = u(), m = t(
|
|
16
16
|
() => [
|
|
17
|
-
{ id: "home", label:
|
|
18
|
-
{ id: "clinical", label:
|
|
17
|
+
{ id: "home", label: i("HOME_LABEL"), href: b },
|
|
18
|
+
{ id: "clinical", label: i("CLINICAL_LABEL"), isCurrentPage: !0 }
|
|
19
19
|
],
|
|
20
|
-
[
|
|
20
|
+
[i]
|
|
21
21
|
), c = t(
|
|
22
22
|
() => f(o?.extensions ?? []),
|
|
23
23
|
[o]
|
|
24
24
|
), d = t(
|
|
25
|
-
() => Array.from(c.entries()).map(([e,
|
|
25
|
+
() => Array.from(c.entries()).map(([e, a]) => ({
|
|
26
26
|
pointId: e,
|
|
27
27
|
Handler: L[e],
|
|
28
28
|
filtered: p(
|
|
29
|
-
|
|
29
|
+
a,
|
|
30
30
|
r
|
|
31
31
|
).filter(
|
|
32
32
|
(n) => !!n.extensionParams && "searchHandler" in n.extensionParams
|
|
33
33
|
)
|
|
34
|
-
})).filter(({ Handler: e, filtered:
|
|
34
|
+
})).filter(({ Handler: e, filtered: a }) => !!e && a.length > 0),
|
|
35
35
|
[c, r]
|
|
36
36
|
);
|
|
37
37
|
return /* @__PURE__ */ s(
|
|
@@ -45,7 +45,7 @@ const L = {
|
|
|
45
45
|
"data-testid": "clinical-list-page-test-id",
|
|
46
46
|
"aria-label": "Clinical List Page",
|
|
47
47
|
className: l.page,
|
|
48
|
-
children: d.length > 0 ? d.map(({ pointId: e, Handler:
|
|
48
|
+
children: d.length > 0 ? d.map(({ pointId: e, Handler: a, filtered: n }) => /* @__PURE__ */ s(
|
|
49
49
|
"div",
|
|
50
50
|
{
|
|
51
51
|
id: e,
|
|
@@ -60,7 +60,7 @@ const L = {
|
|
|
60
60
|
className: l.loading
|
|
61
61
|
}
|
|
62
62
|
),
|
|
63
|
-
children: /* @__PURE__ */ s(
|
|
63
|
+
children: /* @__PURE__ */ s(a, { extensions: n })
|
|
64
64
|
}
|
|
65
65
|
)
|
|
66
66
|
},
|
|
@@ -72,7 +72,7 @@ const L = {
|
|
|
72
72
|
"data-testid": "no-extensions-configured-test-id",
|
|
73
73
|
"aria-label": "No extensions configured",
|
|
74
74
|
className: l.message,
|
|
75
|
-
children:
|
|
75
|
+
children: i("NO_EXTENSIONS_CONFIGURED")
|
|
76
76
|
}
|
|
77
77
|
)
|
|
78
78
|
}
|