@alfadocs/ui-kit-debug 1.4.9 → 1.4.10
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/_chunks/anamnesis-summary-card-CpQViN5l.js +392 -0
- package/dist/_chunks/anamnesis-summary-card-CpQViN5l.js.map +1 -0
- package/dist/_chunks/{anamnesis-summary-rows-6tOCXdoz.js → anamnesis-summary-rows-BWjPUp0m.js} +152 -145
- package/dist/_chunks/anamnesis-summary-rows-BWjPUp0m.js.map +1 -0
- package/dist/_chunks/{booking-BHziT711.js → booking-DuSkvE5x.js} +2 -2
- package/dist/_chunks/{booking-BHziT711.js.map → booking-DuSkvE5x.js.map} +1 -1
- package/dist/_chunks/{link-cell-renderer-DIKlJhEq.js → link-cell-renderer-C8npOgmM.js} +2 -2
- package/dist/_chunks/{link-cell-renderer-DIKlJhEq.js.map → link-cell-renderer-C8npOgmM.js.map} +1 -1
- package/dist/_chunks/{multi-select-CC52Qws6.js → multi-select-DqL4o0qV.js} +2 -1
- package/dist/_chunks/{multi-select-CC52Qws6.js.map → multi-select-DqL4o0qV.js.map} +1 -1
- package/dist/_chunks/{patient-table-DQKcWowi.js → patient-table-zifAcsjV.js} +2 -2
- package/dist/_chunks/{patient-table-DQKcWowi.js.map → patient-table-zifAcsjV.js.map} +1 -1
- package/dist/agent-catalog.json +1 -1
- package/dist/components/anamnesis-summary-card/anamnesis-summary-card.d.ts +6 -0
- package/dist/components/anamnesis-summary-card/anamnesis-summary-card.d.ts.map +1 -1
- package/dist/components/anamnesis-summary-card/index.js +1 -1
- package/dist/components/booking/index.js +1 -1
- package/dist/components/data-table/index.js +1 -1
- package/dist/components/multi-select/index.js +1 -1
- package/dist/components/multi-select/multi-select.d.ts.map +1 -1
- package/dist/components/patient-table/index.js +1 -1
- package/dist/index.js +6 -6
- package/dist/patterns/anamnesis/anamnesis-format.d.ts.map +1 -1
- package/dist/patterns/anamnesis/anamnesis-i18n.d.ts.map +1 -1
- package/dist/patterns/anamnesis/index.js +1 -1
- package/dist/tokens.css +1 -1
- package/package.json +1 -1
- package/dist/_chunks/anamnesis-summary-card-FNSkuUMB.js +0 -346
- package/dist/_chunks/anamnesis-summary-card-FNSkuUMB.js.map +0 -1
- package/dist/_chunks/anamnesis-summary-rows-6tOCXdoz.js.map +0 -1
package/dist/_chunks/{anamnesis-summary-rows-6tOCXdoz.js → anamnesis-summary-rows-BWjPUp0m.js}
RENAMED
|
@@ -7,7 +7,7 @@ import { C as ue } from "./card-DPmk26CL.js";
|
|
|
7
7
|
import { C as ca, b as Za, a as da } from "./collapsible-CTjxzGuF.js";
|
|
8
8
|
import { E as Ue } from "./empty-state-Df0tM6Kn.js";
|
|
9
9
|
import { F as V } from "./form-field-M5UpX65Z.js";
|
|
10
|
-
import { M as ua } from "./multi-select-
|
|
10
|
+
import { M as ua } from "./multi-select-DqL4o0qV.js";
|
|
11
11
|
import { N as yn } from "./number-input-DOe5VYei.js";
|
|
12
12
|
import { R as ke } from "./radio-TWf9Q-mp.js";
|
|
13
13
|
import { R as vn } from "./radio-group-CI-6SmSw.js";
|
|
@@ -51,21 +51,21 @@ import { I as Sn } from "./icon-button-group-DrvuWPGJ.js";
|
|
|
51
51
|
import { L as en } from "./list-DgE1xWBM.js";
|
|
52
52
|
import { S as ha } from "./switch-OILsBLWo.js";
|
|
53
53
|
import { G as Ii } from "./grip-vertical-onSb1JXO.js";
|
|
54
|
-
import { L as
|
|
55
|
-
import { N as
|
|
54
|
+
import { L as Li } from "./lock-ClAFG1gy.js";
|
|
55
|
+
import { N as Ra } from "./notebook-pen-CO7HoM-W.js";
|
|
56
56
|
/**
|
|
57
57
|
* @license lucide-react v1.22.0 - ISC
|
|
58
58
|
*
|
|
59
59
|
* This source code is licensed under the ISC license.
|
|
60
60
|
* See the LICENSE file in the root directory of this source tree.
|
|
61
61
|
*/
|
|
62
|
-
const
|
|
62
|
+
const Ri = [
|
|
63
63
|
["rect", { width: "20", height: "5", x: "2", y: "3", rx: "1", key: "1wp1u1" }],
|
|
64
64
|
["path", { d: "M4 8v11a2 2 0 0 0 2 2h2", key: "tvwodi" }],
|
|
65
65
|
["path", { d: "M20 8v11a2 2 0 0 1-2 2h-2", key: "1gkqxj" }],
|
|
66
66
|
["path", { d: "m9 15 3-3 3 3", key: "1pd0qc" }],
|
|
67
67
|
["path", { d: "M12 12v9", key: "192myk" }]
|
|
68
|
-
], An = pa("archive-restore",
|
|
68
|
+
], An = pa("archive-restore", Ri);
|
|
69
69
|
/**
|
|
70
70
|
* @license lucide-react v1.22.0 - ISC
|
|
71
71
|
*
|
|
@@ -274,7 +274,7 @@ const Pi = [
|
|
|
274
274
|
...zi
|
|
275
275
|
];
|
|
276
276
|
Object.fromEntries(tt.map((e) => [e.key, e]));
|
|
277
|
-
const
|
|
277
|
+
const Ln = [
|
|
278
278
|
{ code: "E66" },
|
|
279
279
|
{ code: "E66.0", parentCode: "E66" },
|
|
280
280
|
{ code: "E66.9", parentCode: "E66" },
|
|
@@ -288,10 +288,10 @@ const Rn = [
|
|
|
288
288
|
{ code: "D50" },
|
|
289
289
|
{ code: "E55" }
|
|
290
290
|
];
|
|
291
|
-
Object.fromEntries(
|
|
291
|
+
Object.fromEntries(Ln.map((e) => [e.code, e]));
|
|
292
292
|
const Oi = (e) => `anamnesis.pathology.${e.replace(/\./g, "_")}`;
|
|
293
|
-
|
|
294
|
-
(e) => !
|
|
293
|
+
Ln.filter(
|
|
294
|
+
(e) => !Ln.some((n) => n.parentCode === e.code)
|
|
295
295
|
).map((e) => e.code);
|
|
296
296
|
const it = [
|
|
297
297
|
{
|
|
@@ -445,7 +445,7 @@ function Ui(e) {
|
|
|
445
445
|
const We = {
|
|
446
446
|
parameters: tt,
|
|
447
447
|
intakeSections: it,
|
|
448
|
-
pathologies:
|
|
448
|
+
pathologies: Ln
|
|
449
449
|
};
|
|
450
450
|
function dn(e) {
|
|
451
451
|
return {
|
|
@@ -459,7 +459,7 @@ function Ye(e) {
|
|
|
459
459
|
(n, a) => (n.item.order ?? n.index) - (a.item.order ?? a.index) || n.index - a.index
|
|
460
460
|
).map((n) => n.item);
|
|
461
461
|
}
|
|
462
|
-
function
|
|
462
|
+
function Rn(e) {
|
|
463
463
|
return e.enabled !== !1;
|
|
464
464
|
}
|
|
465
465
|
function st(e) {
|
|
@@ -475,7 +475,7 @@ function ot(e) {
|
|
|
475
475
|
);
|
|
476
476
|
}
|
|
477
477
|
function Ne(e, n) {
|
|
478
|
-
const i = dn(e).parameters.map(st).filter((o) =>
|
|
478
|
+
const i = dn(e).parameters.map(st).filter((o) => Rn(o) || o.locked), s = n ? i.filter((o) => o.group === n) : i;
|
|
479
479
|
return ot(s);
|
|
480
480
|
}
|
|
481
481
|
function _e(e, n) {
|
|
@@ -486,16 +486,16 @@ function Ki(e) {
|
|
|
486
486
|
return { ...e, fields: Ye(e.fields) };
|
|
487
487
|
}
|
|
488
488
|
function ga(e) {
|
|
489
|
-
return Ye(dn(e).intakeSections).filter(
|
|
489
|
+
return Ye(dn(e).intakeSections).filter(Rn).map((n) => ({
|
|
490
490
|
...n,
|
|
491
|
-
fields: Ye(n.fields.filter(
|
|
491
|
+
fields: Ye(n.fields.filter(Rn))
|
|
492
492
|
})).filter((n) => n.fields.length > 0);
|
|
493
493
|
}
|
|
494
494
|
function Ge(e) {
|
|
495
495
|
return Ye(dn(e).intakeSections).map(Ki);
|
|
496
496
|
}
|
|
497
497
|
function rt(e) {
|
|
498
|
-
return Ye(dn(e).pathologies.filter(
|
|
498
|
+
return Ye(dn(e).pathologies.filter(Rn));
|
|
499
499
|
}
|
|
500
500
|
function sa(e) {
|
|
501
501
|
return Ye(dn(e).pathologies);
|
|
@@ -793,8 +793,11 @@ function pt(e, n, a, i = !1) {
|
|
|
793
793
|
index: n + 1,
|
|
794
794
|
visitType: a(`anamnesis.visitType.${e.visitType}`),
|
|
795
795
|
date: re(e.dateIso, a)
|
|
796
|
-
})
|
|
797
|
-
|
|
796
|
+
}), o = e.sourceLabel ? a("anamnesis.compare.visitOptionSource", {
|
|
797
|
+
label: s,
|
|
798
|
+
source: e.sourceLabel
|
|
799
|
+
}) : s;
|
|
800
|
+
return i ? a("anamnesis.window.optionHasNote", { label: o }) : o;
|
|
798
801
|
}
|
|
799
802
|
function ls(e, n, a) {
|
|
800
803
|
const i = Qi(e, n);
|
|
@@ -1355,7 +1358,7 @@ function Is({
|
|
|
1355
1358
|
return i ? /* @__PURE__ */ t(
|
|
1356
1359
|
ce,
|
|
1357
1360
|
{
|
|
1358
|
-
icon: /* @__PURE__ */ t(
|
|
1361
|
+
icon: /* @__PURE__ */ t(Ra, { "aria-hidden": "true" }),
|
|
1359
1362
|
intent: "ghost",
|
|
1360
1363
|
size: "sm",
|
|
1361
1364
|
"aria-label": l,
|
|
@@ -1366,7 +1369,7 @@ function Is({
|
|
|
1366
1369
|
/* @__PURE__ */ t(ye.Trigger, { asChild: !0, children: /* @__PURE__ */ t(
|
|
1367
1370
|
ce,
|
|
1368
1371
|
{
|
|
1369
|
-
icon: /* @__PURE__ */ t(
|
|
1372
|
+
icon: /* @__PURE__ */ t(Ra, { "aria-hidden": "true" }),
|
|
1370
1373
|
intent: "ghost",
|
|
1371
1374
|
size: "sm",
|
|
1372
1375
|
"aria-label": l,
|
|
@@ -1415,7 +1418,7 @@ function Is({
|
|
|
1415
1418
|
)
|
|
1416
1419
|
] });
|
|
1417
1420
|
}
|
|
1418
|
-
const xa = "ds:min-w-[11rem]", bn = "ds:min-w-[8rem]", ka = "ds:w-[40%] ds:min-w-[14rem]",
|
|
1421
|
+
const xa = "ds:min-w-[11rem]", bn = "ds:min-w-[8rem]", ka = "ds:w-[40%] ds:min-w-[14rem]", Ls = "type-label ds:sticky ds:start-0 ds:top-0 ds:z-[3] ds:bg-[color:var(--card)] ds:px-[var(--spacing-sm)] ds:py-[var(--spacing-sm)] ds:text-start ds:shadow-[var(--shadow-chrome-end)]", Ct = "ds:sticky ds:top-0 ds:z-[2] ds:px-[var(--spacing-sm)] ds:py-[var(--spacing-sm)] ds:text-start ds:shadow-[var(--shadow-chrome-down)]", Rs = "type-label ds:sticky ds:end-0 ds:top-0 ds:z-[3] ds:bg-[color:var(--card)] ds:px-[var(--spacing-sm)] ds:py-[var(--spacing-sm)] ds:text-start ds:shadow-[var(--shadow-chrome-start)]", Fs = "ds:sticky ds:end-0 ds:z-[1] ds:bg-[color:var(--card)] ds:shadow-[var(--shadow-chrome-start)]", je = "ds:px-[var(--spacing-sm)] ds:py-[var(--spacing-xs)] ds:align-top";
|
|
1419
1422
|
function Tt({
|
|
1420
1423
|
column: e,
|
|
1421
1424
|
t: n,
|
|
@@ -1511,7 +1514,7 @@ function St({
|
|
|
1511
1514
|
"th",
|
|
1512
1515
|
{
|
|
1513
1516
|
scope: "col",
|
|
1514
|
-
className: `${xa} ${
|
|
1517
|
+
className: `${xa} ${Ls}`,
|
|
1515
1518
|
children: a
|
|
1516
1519
|
}
|
|
1517
1520
|
),
|
|
@@ -1535,7 +1538,7 @@ function St({
|
|
|
1535
1538
|
{
|
|
1536
1539
|
scope: "col",
|
|
1537
1540
|
"data-testid": l,
|
|
1538
|
-
className: `${bn} ${
|
|
1541
|
+
className: `${bn} ${Rs}`,
|
|
1539
1542
|
children: r
|
|
1540
1543
|
}
|
|
1541
1544
|
) : null
|
|
@@ -1685,9 +1688,9 @@ function Ks({
|
|
|
1685
1688
|
framed: g = !0
|
|
1686
1689
|
}) {
|
|
1687
1690
|
const p = Qe(), [k, v] = z(""), f = q(
|
|
1688
|
-
() => e.map((T,
|
|
1691
|
+
() => e.map((T, R) => ({
|
|
1689
1692
|
value: T.id,
|
|
1690
|
-
label: pt(T,
|
|
1693
|
+
label: pt(T, R, u)
|
|
1691
1694
|
})),
|
|
1692
1695
|
[e, u]
|
|
1693
1696
|
), C = q(
|
|
@@ -1695,10 +1698,10 @@ function Ks({
|
|
|
1695
1698
|
[s, u, r, o]
|
|
1696
1699
|
), w = q(() => {
|
|
1697
1700
|
var m, N;
|
|
1698
|
-
const T = (m = n[0]) == null ? void 0 : m.visit.dateIso,
|
|
1701
|
+
const T = (m = n[0]) == null ? void 0 : m.visit.dateIso, R = (N = n[n.length - 1]) == null ? void 0 : N.visit.dateIso, S = u("anamnesis.compare.selected", {
|
|
1699
1702
|
total: n.length,
|
|
1700
1703
|
from: T ? re(T, u) : "",
|
|
1701
|
-
to:
|
|
1704
|
+
to: R ? re(R, u) : ""
|
|
1702
1705
|
});
|
|
1703
1706
|
return n.length === 2 ? `${S} · ${u("anamnesis.compare.minimum")}` : S;
|
|
1704
1707
|
}, [n, u]), A = q(
|
|
@@ -1713,11 +1716,11 @@ function Ks({
|
|
|
1713
1716
|
T.key
|
|
1714
1717
|
)),
|
|
1715
1718
|
[n, u]
|
|
1716
|
-
),
|
|
1719
|
+
), L = q(() => {
|
|
1717
1720
|
const T = [];
|
|
1718
|
-
let
|
|
1721
|
+
let R = null;
|
|
1719
1722
|
for (const S of C)
|
|
1720
|
-
S.categoryId !==
|
|
1723
|
+
S.categoryId !== R && (R = S.categoryId, T.push({
|
|
1721
1724
|
key: `group-${S.categoryId}`,
|
|
1722
1725
|
banner: u(`anamnesis.compare.category.${S.categoryId}`)
|
|
1723
1726
|
})), T.push({
|
|
@@ -1851,7 +1854,7 @@ function Ks({
|
|
|
1851
1854
|
trailingLabel: u("anamnesis.compare.column.change"),
|
|
1852
1855
|
trailingTestId: "anamnesis-compare-change-column",
|
|
1853
1856
|
visitHeaders: A,
|
|
1854
|
-
rows:
|
|
1857
|
+
rows: L,
|
|
1855
1858
|
testId: "anamnesis-compare-table",
|
|
1856
1859
|
framed: g
|
|
1857
1860
|
}
|
|
@@ -2035,16 +2038,16 @@ function Zs({
|
|
|
2035
2038
|
annotations: g,
|
|
2036
2039
|
onSelectAnnotation: p
|
|
2037
2040
|
}) {
|
|
2038
|
-
const k = Qe(), v = Ie(a), f = va(e, n), C = e.visits, w = C.length - 1, A = u ?? It(C),
|
|
2041
|
+
const k = Qe(), v = Ie(a), f = va(e, n), C = e.visits, w = C.length - 1, A = u ?? It(C), L = [];
|
|
2039
2042
|
let T = null;
|
|
2040
|
-
const
|
|
2043
|
+
const R = (m) => (o == null ? void 0 : o.visitIds.has(m)) ?? !1;
|
|
2041
2044
|
if (f.forEach((m) => {
|
|
2042
|
-
m.def.group !== T && (T = m.def.group,
|
|
2045
|
+
m.def.group !== T && (T = m.def.group, L.push({
|
|
2043
2046
|
key: `group-${m.def.group}`,
|
|
2044
2047
|
banner: a(`anamnesis.group.${m.def.group}`)
|
|
2045
2048
|
}));
|
|
2046
2049
|
const N = Js(m.def.referenceRange, a, v), x = A.map((P, $) => {
|
|
2047
|
-
const { visit: F, index: E } = P, H = m.cells[E] ?? Ys, j = E === w, M = h == null || h.has(m.def.key), U = i && j && M && !m.def.computed, Y = !Xs(A, $), ae = o != null && o.changedCells.has(`${F.id}:${m.def.key}`), me =
|
|
2050
|
+
const { visit: F, index: E } = P, H = m.cells[E] ?? Ys, j = E === w, M = h == null || h.has(m.def.key), U = i && j && M && !m.def.computed, Y = !Xs(A, $), ae = o != null && o.changedCells.has(`${F.id}:${m.def.key}`), me = R(F.id);
|
|
2048
2051
|
return /* @__PURE__ */ t(
|
|
2049
2052
|
"td",
|
|
2050
2053
|
{
|
|
@@ -2081,7 +2084,7 @@ function Zs({
|
|
|
2081
2084
|
P.key
|
|
2082
2085
|
);
|
|
2083
2086
|
});
|
|
2084
|
-
|
|
2087
|
+
L.push({
|
|
2085
2088
|
key: m.def.key,
|
|
2086
2089
|
// Sticky parameter column (inline-start). The shell splices the trend
|
|
2087
2090
|
// in after the first value cell — the order is not decided here.
|
|
@@ -2140,7 +2143,7 @@ function Zs({
|
|
|
2140
2143
|
{
|
|
2141
2144
|
column: m,
|
|
2142
2145
|
t: a,
|
|
2143
|
-
emphasised:
|
|
2146
|
+
emphasised: R(m.visit.id),
|
|
2144
2147
|
editable: i && m.index === w,
|
|
2145
2148
|
defaultOpenNoteVisitId: l,
|
|
2146
2149
|
onOpenNote: c
|
|
@@ -2156,7 +2159,7 @@ function Zs({
|
|
|
2156
2159
|
trendLabel: a("anamnesis.grid.trend"),
|
|
2157
2160
|
trendTestId: "anamnesis-grid-trend",
|
|
2158
2161
|
visitHeaders: S,
|
|
2159
|
-
rows:
|
|
2162
|
+
rows: L,
|
|
2160
2163
|
framed: r
|
|
2161
2164
|
}
|
|
2162
2165
|
);
|
|
@@ -2178,11 +2181,11 @@ function Na({
|
|
|
2178
2181
|
const { visits: p } = e, k = p.length >= 2, v = Qe(), f = Qe(), C = q(() => _e(o), [o]), w = q(
|
|
2179
2182
|
() => new Set(Ne(o).map((O) => O.key)),
|
|
2180
2183
|
[o]
|
|
2181
|
-
), A = q(() => zn(o), [o]), [
|
|
2184
|
+
), A = q(() => zn(o), [o]), [L, T] = z(r), [R, S] = z(""), m = we(null), N = we(null), x = we(!1);
|
|
2182
2185
|
on(() => {
|
|
2183
2186
|
var O;
|
|
2184
|
-
x.current &&
|
|
2185
|
-
}, [
|
|
2187
|
+
x.current && L && ((O = m.current) == null || O.scrollIntoView({ block: "start" })), x.current = !0;
|
|
2188
|
+
}, [L]);
|
|
2186
2189
|
const P = () => {
|
|
2187
2190
|
var O;
|
|
2188
2191
|
T(!1), (O = N.current) == null || O.focus();
|
|
@@ -2196,10 +2199,10 @@ function Na({
|
|
|
2196
2199
|
}, [$, p]), H = q(
|
|
2197
2200
|
() => Fn(p, E).columns,
|
|
2198
2201
|
[p, E]
|
|
2199
|
-
), j = q(() =>
|
|
2202
|
+
), j = q(() => L ? ns(
|
|
2200
2203
|
H.map((O) => O.visit),
|
|
2201
2204
|
C
|
|
2202
|
-
) : null, [
|
|
2205
|
+
) : null, [L, H, C]), M = q(() => {
|
|
2203
2206
|
const O = /* @__PURE__ */ new Map();
|
|
2204
2207
|
for (const G of va(e, C))
|
|
2205
2208
|
O.set(G.def.key, G.series);
|
|
@@ -2214,16 +2217,16 @@ function Na({
|
|
|
2214
2217
|
// A compared visit is always a column, so compare always marks its
|
|
2215
2218
|
// columns in the grid — comparing a visit the picker left out brings
|
|
2216
2219
|
// it back on screen rather than marking nothing.
|
|
2217
|
-
alsoShowIds:
|
|
2220
|
+
alsoShowIds: L ? E : []
|
|
2218
2221
|
}),
|
|
2219
|
-
[p, me,
|
|
2220
|
-
),
|
|
2222
|
+
[p, me, L, E]
|
|
2223
|
+
), Le = q(
|
|
2221
2224
|
() => J.columns.map((O) => O.visit.id),
|
|
2222
2225
|
[J]
|
|
2223
2226
|
);
|
|
2224
2227
|
on(() => {
|
|
2225
|
-
h == null || h(
|
|
2226
|
-
}, [
|
|
2228
|
+
h == null || h(Le);
|
|
2229
|
+
}, [Le, h]);
|
|
2227
2230
|
const D = q(
|
|
2228
2231
|
() => p.map((O, G) => ({
|
|
2229
2232
|
value: O.id,
|
|
@@ -2247,12 +2250,12 @@ function Na({
|
|
|
2247
2250
|
[e.events, p]
|
|
2248
2251
|
), [pe, de] = z(
|
|
2249
2252
|
() => u ? [...u] : []
|
|
2250
|
-
),
|
|
2253
|
+
), Re = q(() => {
|
|
2251
2254
|
const O = new Set(ee.map((G) => G.event.id));
|
|
2252
2255
|
return new Set(pe.filter((G) => O.has(G)));
|
|
2253
2256
|
}, [pe, ee]), Fe = q(
|
|
2254
|
-
() => js(ee,
|
|
2255
|
-
[ee,
|
|
2257
|
+
() => js(ee, Re, n),
|
|
2258
|
+
[ee, Re, n]
|
|
2256
2259
|
), Pe = (O) => de(
|
|
2257
2260
|
(G) => G.includes(O) ? G.filter((W) => W !== O) : [...G, O]
|
|
2258
2261
|
), Nn = q(
|
|
@@ -2320,7 +2323,7 @@ function Na({
|
|
|
2320
2323
|
role: "status",
|
|
2321
2324
|
"data-testid": "anamnesis-window-floor",
|
|
2322
2325
|
className: "ds:sr-only",
|
|
2323
|
-
children:
|
|
2326
|
+
children: R
|
|
2324
2327
|
}
|
|
2325
2328
|
)
|
|
2326
2329
|
]
|
|
@@ -2340,13 +2343,13 @@ function Na({
|
|
|
2340
2343
|
{
|
|
2341
2344
|
ref: N,
|
|
2342
2345
|
id: f,
|
|
2343
|
-
intent:
|
|
2346
|
+
intent: L ? "primary" : "outline",
|
|
2344
2347
|
"data-testid": "anamnesis-compare-toggle",
|
|
2345
|
-
"aria-pressed":
|
|
2346
|
-
"aria-expanded":
|
|
2348
|
+
"aria-pressed": L,
|
|
2349
|
+
"aria-expanded": L,
|
|
2347
2350
|
"aria-controls": v,
|
|
2348
2351
|
onClick: () => T((O) => !O),
|
|
2349
|
-
children: n(
|
|
2352
|
+
children: n(L ? "anamnesis.compare.stop" : "anamnesis.compare.start")
|
|
2350
2353
|
}
|
|
2351
2354
|
)
|
|
2352
2355
|
] })
|
|
@@ -2358,7 +2361,7 @@ function Na({
|
|
|
2358
2361
|
Ws,
|
|
2359
2362
|
{
|
|
2360
2363
|
marks: ee,
|
|
2361
|
-
activeIds:
|
|
2364
|
+
activeIds: Re,
|
|
2362
2365
|
onToggle: Pe,
|
|
2363
2366
|
t: n
|
|
2364
2367
|
}
|
|
@@ -2380,7 +2383,7 @@ function Na({
|
|
|
2380
2383
|
onOpenNote: g
|
|
2381
2384
|
}
|
|
2382
2385
|
),
|
|
2383
|
-
k ? /* @__PURE__ */ t(ca, { open:
|
|
2386
|
+
k ? /* @__PURE__ */ t(ca, { open: L, onOpenChange: T, children: /* @__PURE__ */ t(
|
|
2384
2387
|
da,
|
|
2385
2388
|
{
|
|
2386
2389
|
ref: m,
|
|
@@ -2599,7 +2602,7 @@ const Hn = "export.tabDocument";
|
|
|
2599
2602
|
function te(e, n) {
|
|
2600
2603
|
return ao(n, e.audience) ? !0 : (e.withheld.add(n), !1);
|
|
2601
2604
|
}
|
|
2602
|
-
function
|
|
2605
|
+
function Lt(e) {
|
|
2603
2606
|
if (e.key === "bmi") return "derived.bmi";
|
|
2604
2607
|
switch (e.group) {
|
|
2605
2608
|
case "anthropometric":
|
|
@@ -2610,7 +2613,7 @@ function Rt(e) {
|
|
|
2610
2613
|
return "lab.values";
|
|
2611
2614
|
}
|
|
2612
2615
|
}
|
|
2613
|
-
function
|
|
2616
|
+
function Rt(e) {
|
|
2614
2617
|
return { kind: "section", cells: [e] };
|
|
2615
2618
|
}
|
|
2616
2619
|
function oe(e) {
|
|
@@ -2709,7 +2712,7 @@ function so(e) {
|
|
|
2709
2712
|
for (const f of Ge(s)) {
|
|
2710
2713
|
const C = f.fields.filter((w) => un(w, n.patient.sex)).filter((w) => g.answers[w.key]);
|
|
2711
2714
|
if (C.length !== 0) {
|
|
2712
|
-
v.push(
|
|
2715
|
+
v.push(Rt(fe(f, i)));
|
|
2713
2716
|
for (const w of C) {
|
|
2714
2717
|
const A = g.answers[w.key];
|
|
2715
2718
|
A && v.push({
|
|
@@ -2760,7 +2763,7 @@ function Wn(e, n, a, i, s, o, r) {
|
|
|
2760
2763
|
const l = [];
|
|
2761
2764
|
let c = !1;
|
|
2762
2765
|
for (const h of a) {
|
|
2763
|
-
if (!te(s,
|
|
2766
|
+
if (!te(s, Lt(h))) continue;
|
|
2764
2767
|
c = !0;
|
|
2765
2768
|
const g = $e(i, h), p = [
|
|
2766
2769
|
ze(h, o),
|
|
@@ -2889,11 +2892,11 @@ function oo(e) {
|
|
|
2889
2892
|
}), oe(w.stage) && A.push({
|
|
2890
2893
|
cells: [i("anamnesis.field.stage.label"), oe(w.stage)]
|
|
2891
2894
|
}), w.metastases) {
|
|
2892
|
-
const
|
|
2895
|
+
const L = i(`anamnesis.common.${w.metastases.present}`), T = oe(w.metastases.site);
|
|
2893
2896
|
A.push({
|
|
2894
2897
|
cells: [
|
|
2895
2898
|
i("anamnesis.field.metastases.label"),
|
|
2896
|
-
T ? `${
|
|
2899
|
+
T ? `${L} — ${T}` : L
|
|
2897
2900
|
]
|
|
2898
2901
|
});
|
|
2899
2902
|
}
|
|
@@ -2960,16 +2963,16 @@ function oo(e) {
|
|
|
2960
2963
|
}), te(r, "annual.programme")) {
|
|
2961
2964
|
const w = u.annualProgramme, A = [];
|
|
2962
2965
|
if (w) {
|
|
2963
|
-
const
|
|
2966
|
+
const L = (T) => i(T ? "anamnesis.common.yes" : "anamnesis.common.no");
|
|
2964
2967
|
A.push({
|
|
2965
2968
|
cells: [
|
|
2966
2969
|
i("anamnesis.field.annualProposed.label"),
|
|
2967
|
-
|
|
2970
|
+
L(w.proposed)
|
|
2968
2971
|
]
|
|
2969
2972
|
}), A.push({
|
|
2970
2973
|
cells: [
|
|
2971
2974
|
i("anamnesis.field.annualAccepted.label"),
|
|
2972
|
-
|
|
2975
|
+
L(w.accepted)
|
|
2973
2976
|
]
|
|
2974
2977
|
}), oe(w.declineReason) && A.push({
|
|
2975
2978
|
cells: [
|
|
@@ -3053,7 +3056,7 @@ function co(e) {
|
|
|
3053
3056
|
total: n.visits.length
|
|
3054
3057
|
})
|
|
3055
3058
|
}), te(l, "visit.date") && v.length > 0) {
|
|
3056
|
-
const w = _e(s), A = va(n, w),
|
|
3059
|
+
const w = _e(s), A = va(n, w), L = re(v[0].visit.dateIso, i), T = re(v[v.length - 1].visit.dateIso, i), R = [
|
|
3057
3060
|
{ key: "parameter", header: i("anamnesis.grid.parameter") },
|
|
3058
3061
|
{ key: "unit", header: i("anamnesis.export.column.unit") },
|
|
3059
3062
|
{
|
|
@@ -3073,7 +3076,7 @@ function co(e) {
|
|
|
3073
3076
|
{
|
|
3074
3077
|
key: "change",
|
|
3075
3078
|
header: i("anamnesis.export.column.change", {
|
|
3076
|
-
from:
|
|
3079
|
+
from: L,
|
|
3077
3080
|
to: T
|
|
3078
3081
|
}),
|
|
3079
3082
|
numeric: !0
|
|
@@ -3082,7 +3085,7 @@ function co(e) {
|
|
|
3082
3085
|
], S = [];
|
|
3083
3086
|
let m = null;
|
|
3084
3087
|
for (const N of A)
|
|
3085
|
-
te(l,
|
|
3088
|
+
te(l, Lt(N.def)) && (N.def.group !== m && (m = N.def.group, S.push(Rt(i(`anamnesis.group.${N.def.group}`)))), S.push({
|
|
3086
3089
|
precision: N.def.precision,
|
|
3087
3090
|
cells: [
|
|
3088
3091
|
ze(N.def, i),
|
|
@@ -3100,7 +3103,7 @@ function co(e) {
|
|
|
3100
3103
|
h.push({
|
|
3101
3104
|
id: "matrix",
|
|
3102
3105
|
title: i("anamnesis.section.evolution"),
|
|
3103
|
-
columns:
|
|
3106
|
+
columns: R,
|
|
3104
3107
|
rows: S,
|
|
3105
3108
|
emptyText: i("anamnesis.export.none")
|
|
3106
3109
|
});
|
|
@@ -3413,7 +3416,7 @@ function qe(e) {
|
|
|
3413
3416
|
n.includes(a) && (n = n.split(a).join(i));
|
|
3414
3417
|
return n;
|
|
3415
3418
|
}
|
|
3416
|
-
const se = 14, Io = 6,
|
|
3419
|
+
const se = 14, Io = 6, Lo = 15, Ro = 9, Fo = 11, Ha = 8.5, Ga = 8, Me = 5;
|
|
3417
3420
|
function Po(e) {
|
|
3418
3421
|
return e.tables.some(
|
|
3419
3422
|
(n) => n.columns.length > Io
|
|
@@ -3457,13 +3460,13 @@ async function Mt(e, n = {}) {
|
|
|
3457
3460
|
r.setFont("helvetica", f), r.setFontSize(C), r.setTextColor(w[0], w[1], w[2]);
|
|
3458
3461
|
};
|
|
3459
3462
|
let g = se;
|
|
3460
|
-
h("bold",
|
|
3463
|
+
h("bold", Lo, s.headerText);
|
|
3461
3464
|
for (const f of r.splitTextToSize(
|
|
3462
3465
|
qe(e.title),
|
|
3463
3466
|
u
|
|
3464
3467
|
))
|
|
3465
3468
|
r.text(f, se, g), g += Me + 1;
|
|
3466
|
-
g += 1, h("normal",
|
|
3469
|
+
g += 1, h("normal", Ro, s.mutedText);
|
|
3467
3470
|
for (const f of e.meta)
|
|
3468
3471
|
r.text(qe(`${f.label}: ${f.value}`), se, g), g += Me - 0.6;
|
|
3469
3472
|
for (const f of e.tables) {
|
|
@@ -3471,10 +3474,10 @@ async function Mt(e, n = {}) {
|
|
|
3471
3474
|
g += Me, h("normal", Ha, s.mutedText), r.text(qe(f.emptyText), se, g), g += 1;
|
|
3472
3475
|
continue;
|
|
3473
3476
|
}
|
|
3474
|
-
const C = /* @__PURE__ */ new Set(), w = f.rows.map((T,
|
|
3477
|
+
const C = /* @__PURE__ */ new Set(), w = f.rows.map((T, R) => T.kind === "section" ? (C.add(R), [
|
|
3475
3478
|
zt(T.cells[0] ?? null, void 0, o),
|
|
3476
3479
|
...f.columns.slice(1).map(() => "")
|
|
3477
|
-
]) : $o(T, f, o)), A = {},
|
|
3480
|
+
]) : $o(T, f, o)), A = {}, L = {
|
|
3478
3481
|
head: [f.columns.map((T) => qe(T.header))],
|
|
3479
3482
|
body: w,
|
|
3480
3483
|
startY: g + 2,
|
|
@@ -3496,8 +3499,8 @@ async function Mt(e, n = {}) {
|
|
|
3496
3499
|
},
|
|
3497
3500
|
alternateRowStyles: { fillColor: s.zebraFill },
|
|
3498
3501
|
columnStyles: Object.fromEntries(
|
|
3499
|
-
f.columns.map((T,
|
|
3500
|
-
|
|
3502
|
+
f.columns.map((T, R) => [
|
|
3503
|
+
R,
|
|
3501
3504
|
T.numeric ? { halign: "right" } : {}
|
|
3502
3505
|
])
|
|
3503
3506
|
),
|
|
@@ -3508,7 +3511,7 @@ async function Mt(e, n = {}) {
|
|
|
3508
3511
|
A.table = T.table;
|
|
3509
3512
|
}
|
|
3510
3513
|
};
|
|
3511
|
-
i(r,
|
|
3514
|
+
i(r, L), g = ((v = A.table) == null ? void 0 : v.finalY) ?? g + Me;
|
|
3512
3515
|
}
|
|
3513
3516
|
if (e.footnotes.length > 0) {
|
|
3514
3517
|
g += Me + 1, g > c - se * 2 && (r.addPage(), g = se), h("normal", Ga, s.mutedText);
|
|
@@ -3551,7 +3554,7 @@ function Oo({
|
|
|
3551
3554
|
defaultShareOpen: r = !1,
|
|
3552
3555
|
defaultAudience: l = "clinician"
|
|
3553
3556
|
}) {
|
|
3554
|
-
const [c, u] = z(l), [h, g] = z(!1), [p, k] = z(o), [v, f] = z(r), [C, w] = z(l), [A,
|
|
3557
|
+
const [c, u] = z(l), [h, g] = z(!1), [p, k] = z(o), [v, f] = z(r), [C, w] = z(l), [A, L] = z({ text: "", seq: 0 }), T = we(null), R = we(null), S = we(null), m = we(!1), N = Qe();
|
|
3555
3558
|
on(
|
|
3556
3559
|
() => () => {
|
|
3557
3560
|
S.current && URL.revokeObjectURL(S.current);
|
|
@@ -3581,7 +3584,7 @@ function Oo({
|
|
|
3581
3584
|
}, H = q(
|
|
3582
3585
|
() => v ? Va(x(C), a) : { included: [], excluded: [] },
|
|
3583
3586
|
[v, x, C, a]
|
|
3584
|
-
), j = (B) =>
|
|
3587
|
+
), j = (B) => L((ee) => ({ text: B, seq: ee.seq + 1 })), M = (B, ee) => {
|
|
3585
3588
|
if (m.current) return;
|
|
3586
3589
|
m.current = !0;
|
|
3587
3590
|
const pe = x(c);
|
|
@@ -3595,7 +3598,7 @@ function Oo({
|
|
|
3595
3598
|
m.current = !1;
|
|
3596
3599
|
});
|
|
3597
3600
|
}, U = () => Eo(T.current), Y = () => M("pdf", (B) => zo(B, { palette: U() })), ae = () => M("xlsx", Ao), me = () => M("csv", So), J = () => {
|
|
3598
|
-
m.current || (m.current = !0, Mo(x(c),
|
|
3601
|
+
m.current || (m.current = !0, Mo(x(c), R.current, { palette: U() }).then((B) => {
|
|
3599
3602
|
if (!B) {
|
|
3600
3603
|
j(a("anamnesis.export.control.failed"));
|
|
3601
3604
|
return;
|
|
@@ -3604,7 +3607,7 @@ function Oo({
|
|
|
3604
3607
|
}).catch(() => j(a("anamnesis.export.control.failed"))).finally(() => {
|
|
3605
3608
|
m.current = !1;
|
|
3606
3609
|
}));
|
|
3607
|
-
},
|
|
3610
|
+
}, Le = () => {
|
|
3608
3611
|
w(c), f(!0);
|
|
3609
3612
|
}, D = () => {
|
|
3610
3613
|
u(C), f(!1), j(
|
|
@@ -3702,7 +3705,7 @@ function Oo({
|
|
|
3702
3705
|
le.Item,
|
|
3703
3706
|
{
|
|
3704
3707
|
startIcon: /* @__PURE__ */ t(pi, { "aria-hidden": "true" }),
|
|
3705
|
-
onSelect:
|
|
3708
|
+
onSelect: Le,
|
|
3706
3709
|
children: a("anamnesis.export.control.share")
|
|
3707
3710
|
}
|
|
3708
3711
|
),
|
|
@@ -3759,7 +3762,7 @@ function Oo({
|
|
|
3759
3762
|
/* @__PURE__ */ t(
|
|
3760
3763
|
"iframe",
|
|
3761
3764
|
{
|
|
3762
|
-
ref:
|
|
3765
|
+
ref: R,
|
|
3763
3766
|
title: a("anamnesis.export.control.printFrame"),
|
|
3764
3767
|
"aria-hidden": "true",
|
|
3765
3768
|
tabIndex: -1,
|
|
@@ -4578,7 +4581,7 @@ function tr({
|
|
|
4578
4581
|
defaultShareOpen: v = !1,
|
|
4579
4582
|
defaultExportAudience: f = "clinician"
|
|
4580
4583
|
}) {
|
|
4581
|
-
var
|
|
4584
|
+
var La;
|
|
4582
4585
|
const [C, w] = z(
|
|
4583
4586
|
() => structuredClone(e)
|
|
4584
4587
|
), A = we(!1);
|
|
@@ -4589,7 +4592,7 @@ function tr({
|
|
|
4589
4592
|
}
|
|
4590
4593
|
u == null || u(C);
|
|
4591
4594
|
}, [C]);
|
|
4592
|
-
const
|
|
4595
|
+
const L = we(0), { patient: T, visits: R } = C, S = R[R.length - 1], m = R.length > 1 ? R[R.length - 2] : void 0, N = q(
|
|
4593
4596
|
() => new Map(C.targets.map((y) => [y.parameterKey, y.target])),
|
|
4594
4597
|
[C.targets]
|
|
4595
4598
|
), x = q(
|
|
@@ -4614,11 +4617,11 @@ function tr({
|
|
|
4614
4617
|
), Y = q(
|
|
4615
4618
|
() => Ge(i),
|
|
4616
4619
|
[i]
|
|
4617
|
-
), ae = q(() => ga(i), [i]), me = q(() => zn(i), [i]), [J,
|
|
4620
|
+
), ae = q(() => ga(i), [i]), me = q(() => zn(i), [i]), [J, Le] = z(p), [D, B] = z(!0), [ee, pe] = z([]), de = tn((y) => {
|
|
4618
4621
|
pe(
|
|
4619
4622
|
(b) => b.length === y.length && b.every((I, K) => I === y[K]) ? b : [...y]
|
|
4620
4623
|
);
|
|
4621
|
-
}, []), { containerRef:
|
|
4624
|
+
}, []), { containerRef: Re, requestJump: Fe } = ft(), Pe = tn(
|
|
4622
4625
|
(y) => {
|
|
4623
4626
|
var b, I;
|
|
4624
4627
|
return (I = (b = C.intake) == null ? void 0 : b.answers[y]) == null ? void 0 : I.value;
|
|
@@ -4635,7 +4638,7 @@ function tr({
|
|
|
4635
4638
|
c(y);
|
|
4636
4639
|
return;
|
|
4637
4640
|
}
|
|
4638
|
-
|
|
4641
|
+
Le("compile"), B(!0), Fe(y.key);
|
|
4639
4642
|
};
|
|
4640
4643
|
if (!S)
|
|
4641
4644
|
return /* @__PURE__ */ t(Qa, { embedded: a, children: /* @__PURE__ */ t(ue, { variant: "elevated", children: /* @__PURE__ */ t(ue.Body, { children: /* @__PURE__ */ t(
|
|
@@ -4667,15 +4670,15 @@ function tr({
|
|
|
4667
4670
|
...b,
|
|
4668
4671
|
therapy: b.therapy.filter((I) => I.id !== y)
|
|
4669
4672
|
})), Xt = () => {
|
|
4670
|
-
|
|
4671
|
-
const y = `new-${
|
|
4673
|
+
L.current += 1;
|
|
4674
|
+
const y = `new-${L.current}`;
|
|
4672
4675
|
W((b) => ({
|
|
4673
4676
|
...b,
|
|
4674
4677
|
therapy: [...b.therapy, { id: y, name: "", dose: "", kind: "medication" }]
|
|
4675
4678
|
}));
|
|
4676
4679
|
}, Jt = () => {
|
|
4677
|
-
|
|
4678
|
-
const y = `new-visit-${
|
|
4680
|
+
L.current += 1;
|
|
4681
|
+
const y = `new-visit-${L.current}`;
|
|
4679
4682
|
w((b) => {
|
|
4680
4683
|
const I = b.visits[b.visits.length - 1];
|
|
4681
4684
|
if (!I) return b;
|
|
@@ -4735,7 +4738,7 @@ function tr({
|
|
|
4735
4738
|
/* @__PURE__ */ d("p", { className: "type-body-sm ds:m-0 ds:text-[color:var(--muted-foreground)]", children: [
|
|
4736
4739
|
Vn(C, n),
|
|
4737
4740
|
" · ",
|
|
4738
|
-
n("anamnesis.compile.visitCount", { visits:
|
|
4741
|
+
n("anamnesis.compile.visitCount", { visits: R.length })
|
|
4739
4742
|
] })
|
|
4740
4743
|
] }),
|
|
4741
4744
|
r ? /* @__PURE__ */ t(
|
|
@@ -4750,7 +4753,7 @@ function tr({
|
|
|
4750
4753
|
o ? null : /* @__PURE__ */ t(
|
|
4751
4754
|
Ut,
|
|
4752
4755
|
{
|
|
4753
|
-
visits:
|
|
4756
|
+
visits: R,
|
|
4754
4757
|
defs: F,
|
|
4755
4758
|
targets: N,
|
|
4756
4759
|
t: n,
|
|
@@ -4761,7 +4764,7 @@ function tr({
|
|
|
4761
4764
|
Q,
|
|
4762
4765
|
{
|
|
4763
4766
|
value: J,
|
|
4764
|
-
onValueChange: (y) =>
|
|
4767
|
+
onValueChange: (y) => Le(y),
|
|
4765
4768
|
children: [
|
|
4766
4769
|
/* @__PURE__ */ d("div", { className: "ds:flex ds:flex-wrap ds:items-center ds:justify-between ds:gap-[var(--spacing-sm)]", children: [
|
|
4767
4770
|
/* @__PURE__ */ d(Q.List, { "aria-label": n("anamnesis.compile.viewsLabel"), children: [
|
|
@@ -4875,7 +4878,7 @@ function tr({
|
|
|
4875
4878
|
/* @__PURE__ */ t(
|
|
4876
4879
|
"div",
|
|
4877
4880
|
{
|
|
4878
|
-
ref:
|
|
4881
|
+
ref: Re,
|
|
4879
4882
|
className: "ds:flex ds:flex-col ds:gap-[var(--spacing-lg)]",
|
|
4880
4883
|
children: ae.map((y) => {
|
|
4881
4884
|
const b = y.fields.filter((I) => un(I, T.sex)).filter((I) => O.has(I.key));
|
|
@@ -4999,7 +5002,7 @@ function tr({
|
|
|
4999
5002
|
{
|
|
5000
5003
|
label: n("anamnesis.field.metastases.label"),
|
|
5001
5004
|
variant: "horizontal",
|
|
5002
|
-
value: ((
|
|
5005
|
+
value: ((La = Cn.metastases) == null ? void 0 : La.present) ?? "unknown",
|
|
5003
5006
|
onValueChange: (y) => W((b) => {
|
|
5004
5007
|
var I, K;
|
|
5005
5008
|
return {
|
|
@@ -5352,9 +5355,9 @@ function Kt({
|
|
|
5352
5355
|
return M ? [M] : [];
|
|
5353
5356
|
}, [w, A] = z(
|
|
5354
5357
|
() => C()
|
|
5355
|
-
),
|
|
5358
|
+
), L = (M) => A((U) => U.includes(M) ? U : [...U, M]), [T, R] = z(e.intake);
|
|
5356
5359
|
if (e.intake !== T) {
|
|
5357
|
-
|
|
5360
|
+
R(e.intake);
|
|
5358
5361
|
const M = Ya(e);
|
|
5359
5362
|
g(M), A(C());
|
|
5360
5363
|
}
|
|
@@ -5367,14 +5370,14 @@ function Kt({
|
|
|
5367
5370
|
),
|
|
5368
5371
|
[f, h, c.sex, n]
|
|
5369
5372
|
), x = (M) => {
|
|
5370
|
-
|
|
5373
|
+
L(M.sectionKey), m(M.key);
|
|
5371
5374
|
};
|
|
5372
5375
|
on(() => {
|
|
5373
5376
|
if (!r) return;
|
|
5374
5377
|
const M = f.find(
|
|
5375
5378
|
(U) => U.fields.some((Y) => Y.key === r)
|
|
5376
5379
|
);
|
|
5377
|
-
M && (
|
|
5380
|
+
M && (L(M.key), m(r));
|
|
5378
5381
|
}, [r]);
|
|
5379
5382
|
const { answeredCount: P, totalCount: $ } = q(() => {
|
|
5380
5383
|
let M = 0, U = 0;
|
|
@@ -5815,10 +5818,10 @@ function Ht({
|
|
|
5815
5818
|
var F;
|
|
5816
5819
|
return f ?? ((F = c[0]) == null ? void 0 : F.value) ?? "questionnaire";
|
|
5817
5820
|
}
|
|
5818
|
-
), A = k ?? C,
|
|
5821
|
+
), A = k ?? C, L = (F) => {
|
|
5819
5822
|
k === void 0 && w(F), v == null || v(F);
|
|
5820
|
-
}, [T,
|
|
5821
|
-
e !== S && (m(e),
|
|
5823
|
+
}, [T, R] = z(e), [S, m] = z(e);
|
|
5824
|
+
e !== S && (m(e), R(e));
|
|
5822
5825
|
const N = q(
|
|
5823
5826
|
() => new Map(T.targets.map((F) => [F.parameterKey, F.target])),
|
|
5824
5827
|
[T.targets]
|
|
@@ -5826,7 +5829,7 @@ function Ht({
|
|
|
5826
5829
|
() => _e(a),
|
|
5827
5830
|
[a]
|
|
5828
5831
|
), $ = (F, E) => {
|
|
5829
|
-
|
|
5832
|
+
R((H) => dt(H, F.key, E)), r == null || r(F.key, E);
|
|
5830
5833
|
};
|
|
5831
5834
|
return (
|
|
5832
5835
|
// The goals strip and the tabs are two objects, not one run-on block: an
|
|
@@ -5843,7 +5846,7 @@ function Ht({
|
|
|
5843
5846
|
onTargetChange: $
|
|
5844
5847
|
}
|
|
5845
5848
|
),
|
|
5846
|
-
/* @__PURE__ */ d(Q, { value: A, onValueChange:
|
|
5849
|
+
/* @__PURE__ */ d(Q, { value: A, onValueChange: L, children: [
|
|
5847
5850
|
/* @__PURE__ */ d("div", { className: "ds:flex ds:flex-wrap ds:items-center ds:justify-between ds:gap-[var(--spacing-sm)]", children: [
|
|
5848
5851
|
/* @__PURE__ */ d(Q.List, { "aria-label": n("anamnesis.compile.viewsLabel"), children: [
|
|
5849
5852
|
c.map((F) => /* @__PURE__ */ t(Q.Trigger, { value: F.value, children: F.label }, F.value)),
|
|
@@ -5952,9 +5955,9 @@ function El({
|
|
|
5952
5955
|
questionnaireTab: C,
|
|
5953
5956
|
onQuestionnaireTabChange: w,
|
|
5954
5957
|
questionnaireSlot: A,
|
|
5955
|
-
questionnaireHeaderSlot:
|
|
5958
|
+
questionnaireHeaderSlot: L,
|
|
5956
5959
|
emptyState: T,
|
|
5957
|
-
defaultQuestionnaireTab:
|
|
5960
|
+
defaultQuestionnaireTab: R,
|
|
5958
5961
|
practitioners: S,
|
|
5959
5962
|
newVisitDateIso: m,
|
|
5960
5963
|
defaultView: N,
|
|
@@ -5987,10 +5990,10 @@ function El({
|
|
|
5987
5990
|
leadingTabs: f,
|
|
5988
5991
|
tab: C,
|
|
5989
5992
|
onTabChange: w,
|
|
5990
|
-
defaultTab:
|
|
5993
|
+
defaultTab: R,
|
|
5991
5994
|
readOnly: p,
|
|
5992
5995
|
questionnaireSlot: A,
|
|
5993
|
-
questionnaireHeaderSlot:
|
|
5996
|
+
questionnaireHeaderSlot: L,
|
|
5994
5997
|
emptyState: T
|
|
5995
5998
|
}
|
|
5996
5999
|
) : e === "compile" ? /* @__PURE__ */ t(
|
|
@@ -6239,10 +6242,10 @@ function Il({
|
|
|
6239
6242
|
}, C = Ne(e).length, w = _e(e).length, A = ga(e).reduce(
|
|
6240
6243
|
(m, N) => m + N.fields.length,
|
|
6241
6244
|
0
|
|
6242
|
-
),
|
|
6245
|
+
), L = Ge(e).reduce(
|
|
6243
6246
|
(m, N) => m + N.fields.length,
|
|
6244
6247
|
0
|
|
6245
|
-
), T = rt(e).length,
|
|
6248
|
+
), T = rt(e).length, R = sa(e).length, S = Ne(e).filter(
|
|
6246
6249
|
(m) => m.goal === !0
|
|
6247
6250
|
).length;
|
|
6248
6251
|
return /* @__PURE__ */ d(
|
|
@@ -6269,7 +6272,7 @@ function Il({
|
|
|
6269
6272
|
})} · ${a("anamnesis.configEditor.panelNotCaptured", {
|
|
6270
6273
|
// Not "archived": this also counts live questions inside
|
|
6271
6274
|
// an archived section, which capture drops as a whole.
|
|
6272
|
-
count:
|
|
6275
|
+
count: L - A
|
|
6273
6276
|
})}` }),
|
|
6274
6277
|
/* @__PURE__ */ t(
|
|
6275
6278
|
Zn,
|
|
@@ -6589,7 +6592,7 @@ function Il({
|
|
|
6589
6592
|
{
|
|
6590
6593
|
size: "sm",
|
|
6591
6594
|
variant: "neutral",
|
|
6592
|
-
leading: /* @__PURE__ */ t(
|
|
6595
|
+
leading: /* @__PURE__ */ t(Li, { "aria-hidden": "true" }),
|
|
6593
6596
|
children: a("anamnesis.configEditor.locked")
|
|
6594
6597
|
}
|
|
6595
6598
|
) : null,
|
|
@@ -6711,7 +6714,7 @@ function Il({
|
|
|
6711
6714
|
/* @__PURE__ */ t("p", { className: "type-meta ds:m-0 ds:text-[color:var(--muted-foreground)]", children: `${a("anamnesis.configEditor.panelLive", {
|
|
6712
6715
|
count: T
|
|
6713
6716
|
})} · ${a("anamnesis.configEditor.panelArchived", {
|
|
6714
|
-
count:
|
|
6717
|
+
count: R - T
|
|
6715
6718
|
})}` }),
|
|
6716
6719
|
/* @__PURE__ */ t(en, { divider: "divided", children: sa(e).map((m) => {
|
|
6717
6720
|
const N = e.pathologies.some(
|
|
@@ -6917,10 +6920,10 @@ function pr({
|
|
|
6917
6920
|
e.kind === "field" && e.entry.required === !0
|
|
6918
6921
|
), k = e.kind === "field" ? e.entry : null, v = k !== null && (k.type === "choice" || k.type === "multiChoice"), f = v && !lr.has(k.key), [C, w] = z(
|
|
6919
6922
|
f ? (k.options ?? []).join(", ") : ""
|
|
6920
|
-
), A = C.split(",").map((
|
|
6921
|
-
const
|
|
6923
|
+
), A = C.split(",").map((R) => R.trim()).filter(Boolean), L = !f || A.length > 0, T = () => {
|
|
6924
|
+
const R = l.trim(), S = (m) => {
|
|
6922
6925
|
const N = { ...m };
|
|
6923
|
-
return
|
|
6926
|
+
return R ? N.label = R : delete N.label, N;
|
|
6924
6927
|
};
|
|
6925
6928
|
if (e.kind === "parameter")
|
|
6926
6929
|
i({
|
|
@@ -6983,7 +6986,7 @@ function pr({
|
|
|
6983
6986
|
ie,
|
|
6984
6987
|
{
|
|
6985
6988
|
value: l,
|
|
6986
|
-
onChange: (
|
|
6989
|
+
onChange: (R) => c(R.target.value),
|
|
6987
6990
|
placeholder: r
|
|
6988
6991
|
}
|
|
6989
6992
|
)
|
|
@@ -6993,7 +6996,7 @@ function pr({
|
|
|
6993
6996
|
sn,
|
|
6994
6997
|
{
|
|
6995
6998
|
value: u,
|
|
6996
|
-
onChange: (
|
|
6999
|
+
onChange: (R) => h(R.target.value),
|
|
6997
7000
|
minRows: 2
|
|
6998
7001
|
}
|
|
6999
7002
|
) }) : null,
|
|
@@ -7002,7 +7005,7 @@ function pr({
|
|
|
7002
7005
|
{
|
|
7003
7006
|
label: s("anamnesis.configEditor.requiredField"),
|
|
7004
7007
|
checked: g,
|
|
7005
|
-
onCheckedChange: (
|
|
7008
|
+
onCheckedChange: (R) => p(R === !0)
|
|
7006
7009
|
}
|
|
7007
7010
|
) : null,
|
|
7008
7011
|
f ? /* @__PURE__ */ t(
|
|
@@ -7015,21 +7018,21 @@ function pr({
|
|
|
7015
7018
|
ie,
|
|
7016
7019
|
{
|
|
7017
7020
|
value: C,
|
|
7018
|
-
onChange: (
|
|
7021
|
+
onChange: (R) => w(R.target.value)
|
|
7019
7022
|
}
|
|
7020
7023
|
)
|
|
7021
7024
|
}
|
|
7022
7025
|
) : v ? /* @__PURE__ */ t("p", { className: "type-body-sm ds:m-0 ds:text-[color:var(--muted-foreground)]", children: s("anamnesis.configEditor.optionsCurrent", {
|
|
7023
7026
|
list: (k.options ?? []).map(
|
|
7024
|
-
(
|
|
7025
|
-
defaultValue:
|
|
7027
|
+
(R) => s(`anamnesis.field.${k.key}.option.${R}`, {
|
|
7028
|
+
defaultValue: R
|
|
7026
7029
|
})
|
|
7027
7030
|
).join(", ")
|
|
7028
7031
|
}) }) : null
|
|
7029
7032
|
] }),
|
|
7030
7033
|
/* @__PURE__ */ d(Z.Footer, { children: [
|
|
7031
7034
|
/* @__PURE__ */ t(ne, { intent: "ghost", onClick: n, children: s("anamnesis.configEditor.cancel") }),
|
|
7032
|
-
/* @__PURE__ */ t(ne, { intent: "primary", onClick: T, disabled: !
|
|
7035
|
+
/* @__PURE__ */ t(ne, { intent: "primary", onClick: T, disabled: !L, children: s("anamnesis.configEditor.save") })
|
|
7033
7036
|
] })
|
|
7034
7037
|
] });
|
|
7035
7038
|
}
|
|
@@ -7077,7 +7080,7 @@ function fr({
|
|
|
7077
7080
|
onConfigChange: i,
|
|
7078
7081
|
t: s
|
|
7079
7082
|
}) {
|
|
7080
|
-
const [o, r] = z(""), [l, c] = z(""), [u, h] = z(""), [g, p] = z(""), [k, v] = z(""), [f, C] = z(""), [w, A] = z("0"), [
|
|
7083
|
+
const [o, r] = z(""), [l, c] = z(""), [u, h] = z(""), [g, p] = z(""), [k, v] = z(""), [f, C] = z(""), [w, A] = z("0"), [L, T] = z(""), [R, S] = z(""), [m, N] = z(""), [x, P] = z(""), [$, F] = z(!1), [E, H] = z(""), j = la.map((D) => ({
|
|
7081
7084
|
value: D,
|
|
7082
7085
|
label: s(`anamnesis.group.${D}`)
|
|
7083
7086
|
})), M = cr.map((D) => ({
|
|
@@ -7089,7 +7092,7 @@ function fr({
|
|
|
7089
7092
|
})), Y = a.pathologies.filter((D) => !D.parentCode && D.enabled !== !1).map((D) => ({
|
|
7090
7093
|
value: D.code,
|
|
7091
7094
|
label: Se(D.code, s, D)
|
|
7092
|
-
})), ae =
|
|
7095
|
+
})), ae = R.split(",").map((D) => D.trim()).filter(Boolean), me = e.kind === "parameter" ? o.trim() !== "" && l !== "" && u !== "" : e.kind === "field" ? o.trim() !== "" && L !== "" && (!ta(L) || ae.length > 0) : e.kind === "section" ? o.trim() !== "" : o.trim() !== "" && x.trim() !== "" && // A duplicate code would collide with the existing entry
|
|
7093
7096
|
// everywhere codes are matched (lookup, archive, edit) —
|
|
7094
7097
|
// uniqueness is the add gate, matching keyFromLabel's guarantee
|
|
7095
7098
|
// on the other vocabularies.
|
|
@@ -7102,7 +7105,7 @@ function fr({
|
|
|
7102
7105
|
if (Fe.trim() === "") return;
|
|
7103
7106
|
const Pe = Number(Fe);
|
|
7104
7107
|
return Number.isFinite(Pe) ? Pe : void 0;
|
|
7105
|
-
}, pe = ee(k), de = ee(f),
|
|
7108
|
+
}, pe = ee(k), de = ee(f), Re = {
|
|
7106
7109
|
key: na(D, B),
|
|
7107
7110
|
label: D,
|
|
7108
7111
|
group: l,
|
|
@@ -7116,19 +7119,19 @@ function fr({
|
|
|
7116
7119
|
}
|
|
7117
7120
|
} : {}
|
|
7118
7121
|
};
|
|
7119
|
-
i({ ...a, parameters: [...a.parameters,
|
|
7122
|
+
i({ ...a, parameters: [...a.parameters, Re] });
|
|
7120
7123
|
} else if (e.kind === "field") {
|
|
7121
7124
|
const B = new Set(
|
|
7122
7125
|
a.intakeSections.flatMap(
|
|
7123
|
-
(de) => de.fields.map((
|
|
7126
|
+
(de) => de.fields.map((Re) => Re.key)
|
|
7124
7127
|
)
|
|
7125
|
-
), ee =
|
|
7128
|
+
), ee = L === "numberInteger" || L === "numberDecimal" ? "number" : L === "choiceWithText" ? "choice" : L, pe = {
|
|
7126
7129
|
key: na(D, B),
|
|
7127
7130
|
label: D,
|
|
7128
7131
|
type: ee,
|
|
7129
|
-
...
|
|
7130
|
-
...
|
|
7131
|
-
...ta(
|
|
7132
|
+
...L === "numberDecimal" ? { decimal: !0 } : {},
|
|
7133
|
+
...L === "choiceWithText" ? { detail: !0 } : {},
|
|
7134
|
+
...ta(L) ? { options: ae } : {},
|
|
7132
7135
|
...m.trim() ? { helpText: m.trim() } : {},
|
|
7133
7136
|
...$ ? { required: !0 } : {}
|
|
7134
7137
|
};
|
|
@@ -7162,12 +7165,12 @@ function fr({
|
|
|
7162
7165
|
});
|
|
7163
7166
|
}
|
|
7164
7167
|
n();
|
|
7165
|
-
},
|
|
7168
|
+
}, Le = e.kind === "parameter" ? s("anamnesis.configEditor.addParameterTitle") : e.kind === "field" ? s("anamnesis.configEditor.addQuestionTitle", {
|
|
7166
7169
|
section: vr(a, e.sectionKey, s)
|
|
7167
7170
|
}) : e.kind === "section" ? s("anamnesis.configEditor.addSectionTitle") : s("anamnesis.configEditor.addCodeTitle");
|
|
7168
7171
|
return /* @__PURE__ */ d(Z.Content, { size: "sm", children: [
|
|
7169
7172
|
/* @__PURE__ */ d(Z.Header, { children: [
|
|
7170
|
-
/* @__PURE__ */ t(Z.Title, { children:
|
|
7173
|
+
/* @__PURE__ */ t(Z.Title, { children: Le }),
|
|
7171
7174
|
/* @__PURE__ */ t(Z.Description, { children: s("anamnesis.configEditor.addNote") })
|
|
7172
7175
|
] }),
|
|
7173
7176
|
/* @__PURE__ */ d(Z.Body, { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-md)]", children: [
|
|
@@ -7280,13 +7283,13 @@ function fr({
|
|
|
7280
7283
|
Ve,
|
|
7281
7284
|
{
|
|
7282
7285
|
options: U,
|
|
7283
|
-
value:
|
|
7286
|
+
value: L,
|
|
7284
7287
|
onValueChange: (D) => T(D),
|
|
7285
7288
|
placeholder: s("anamnesis.configEditor.selectPlaceholder"),
|
|
7286
7289
|
"aria-label": s("anamnesis.configEditor.typeField")
|
|
7287
7290
|
}
|
|
7288
7291
|
) }),
|
|
7289
|
-
ta(
|
|
7292
|
+
ta(L) ? /* @__PURE__ */ t(
|
|
7290
7293
|
V,
|
|
7291
7294
|
{
|
|
7292
7295
|
label: s("anamnesis.configEditor.optionsField"),
|
|
@@ -7295,7 +7298,7 @@ function fr({
|
|
|
7295
7298
|
children: /* @__PURE__ */ t(
|
|
7296
7299
|
ie,
|
|
7297
7300
|
{
|
|
7298
|
-
value:
|
|
7301
|
+
value: R,
|
|
7299
7302
|
onChange: (D) => S(D.target.value)
|
|
7300
7303
|
}
|
|
7301
7304
|
)
|
|
@@ -7354,7 +7357,7 @@ function vr(e, n, a) {
|
|
|
7354
7357
|
function Ja(e) {
|
|
7355
7358
|
return e.kind === "visit" ? `anamnesis-visit-${e.visitId}` : `anamnesis-event-${e.eventId}`;
|
|
7356
7359
|
}
|
|
7357
|
-
function
|
|
7360
|
+
function Ll(e, n) {
|
|
7358
7361
|
const a = e.visits.filter(Nt).map((s) => ({
|
|
7359
7362
|
id: Ja({ kind: "visit", visitId: s.id }),
|
|
7360
7363
|
dateIso: s.dateIso,
|
|
@@ -7621,6 +7624,7 @@ const ia = "patterns", yr = {
|
|
|
7621
7624
|
compare: {
|
|
7622
7625
|
visitsLabel: "Visits compared",
|
|
7623
7626
|
visitOption: "{{index}}. {{visitType}} · {{date}}",
|
|
7627
|
+
visitOptionSource: "{{label}} · {{source}}",
|
|
7624
7628
|
// `total`, not `count` — a plural-suffixed key would need six forms in
|
|
7625
7629
|
// Arabic to say a number the sentence already carries.
|
|
7626
7630
|
selected: "{{total}} visits compared · {{from}} – {{to}}",
|
|
@@ -8260,6 +8264,7 @@ const ia = "patterns", yr = {
|
|
|
8260
8264
|
compare: {
|
|
8261
8265
|
visitsLabel: "Visite confrontate",
|
|
8262
8266
|
visitOption: "{{index}}. {{visitType}} · {{date}}",
|
|
8267
|
+
visitOptionSource: "{{label}} · {{source}}",
|
|
8263
8268
|
selected: "{{total}} visite confrontate · {{from}} – {{to}}",
|
|
8264
8269
|
minimum: "Restano confrontate almeno due visite",
|
|
8265
8270
|
start: "Confronta",
|
|
@@ -8700,6 +8705,7 @@ const ia = "patterns", yr = {
|
|
|
8700
8705
|
compare: {
|
|
8701
8706
|
visitsLabel: "الزيارات المقارَنة",
|
|
8702
8707
|
visitOption: "{{index}}. {{visitType}} · {{date}}",
|
|
8708
|
+
visitOptionSource: "{{label}} · {{source}}",
|
|
8703
8709
|
selected: "مقارنة {{total}} زيارة · {{from}} – {{to}}",
|
|
8704
8710
|
minimum: "تبقى زيارتان على الأقل قيد المقارنة",
|
|
8705
8711
|
start: "قارن",
|
|
@@ -8986,6 +8992,7 @@ const ia = "patterns", yr = {
|
|
|
8986
8992
|
compare: {
|
|
8987
8993
|
visitsLabel: "比較する受診",
|
|
8988
8994
|
visitOption: "{{index}}. {{visitType}} · {{date}}",
|
|
8995
|
+
visitOptionSource: "{{label}} · {{source}}",
|
|
8989
8996
|
selected: "{{total}}回の受診を比較 · {{from}} – {{to}}",
|
|
8990
8997
|
minimum: "受診は2件以上比較されます",
|
|
8991
8998
|
start: "比較",
|
|
@@ -9238,7 +9245,7 @@ const ia = "patterns", yr = {
|
|
|
9238
9245
|
ar: xr,
|
|
9239
9246
|
ja: kr
|
|
9240
9247
|
};
|
|
9241
|
-
function
|
|
9248
|
+
function Rl(e) {
|
|
9242
9249
|
for (const [n, a] of Object.entries(wr))
|
|
9243
9250
|
e.hasResourceBundle(n, ia) ? e.addResourceBundle(n, ia, a, !0, !1) : e.addResourceBundle(n, ia, a);
|
|
9244
9251
|
}
|
|
@@ -9310,7 +9317,7 @@ export {
|
|
|
9310
9317
|
sa as c,
|
|
9311
9318
|
Ge as d,
|
|
9312
9319
|
Ja as e,
|
|
9313
|
-
|
|
9320
|
+
Ll as f,
|
|
9314
9321
|
Hi as g,
|
|
9315
9322
|
Ne as h,
|
|
9316
9323
|
rt as i,
|
|
@@ -9322,9 +9329,9 @@ export {
|
|
|
9322
9329
|
Ui as o,
|
|
9323
9330
|
na as p,
|
|
9324
9331
|
dn as q,
|
|
9325
|
-
|
|
9332
|
+
Rl as r,
|
|
9326
9333
|
Dl as s,
|
|
9327
9334
|
Vt as t,
|
|
9328
9335
|
Fl as u
|
|
9329
9336
|
};
|
|
9330
|
-
//# sourceMappingURL=anamnesis-summary-rows-
|
|
9337
|
+
//# sourceMappingURL=anamnesis-summary-rows-BWjPUp0m.js.map
|