@baravak/risloo-profile-cli 4.85.0 → 4.86.0

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.
@@ -0,0 +1,219 @@
1
+ {
2
+ "id": "$X1HXXXXX",
3
+ "scale": {
4
+ "id": "$ISI-93",
5
+ "title": "شاخص شدت بی‌خوابی مورین"
6
+ },
7
+ "chain": null,
8
+ "version": "1",
9
+ "edition": "صادقی‌نیت",
10
+ "edition_version": null,
11
+ "client": {
12
+ "id": "GH966XXXX",
13
+ "name": "مراجع"
14
+ },
15
+ "room": {
16
+ "id": "RS96XXXX",
17
+ "manager": {
18
+ "id": "GH9XXXXX",
19
+ "name": "درمانگر",
20
+ "user_id": "IR9XXXX"
21
+ },
22
+ "center": {
23
+ "id": "RS966XXXX",
24
+ "acceptation": null,
25
+ "status": "active",
26
+ "type": "personal_clinic",
27
+ "detail": {
28
+ "title": "درمانگر"
29
+ }
30
+ },
31
+ "acceptation": null,
32
+ "status": "active",
33
+ "type": "personal_clinic"
34
+ },
35
+ "case": null,
36
+ "code": null,
37
+ "created_at": 1694157079,
38
+ "started_at": 1694157198,
39
+ "scored_at": 1694242467,
40
+ "closed_at": 1694160574,
41
+ "total_amount": 100000,
42
+ "prepayment": true,
43
+ "purchased": true,
44
+ "amount": 100000,
45
+ "description": "برای هر پرسش، لطفاً گزینه‌ای را که پاسخ شما را بهتر از همه توصیف می‌کند **انتخاب کنید**.\n\nلطفاً **شدت فعلی** (یعنی **دو هفتهٔ اخیر**) مشکل یا مشکلات بی‌خوابی خود را درجه‌بندی کنید.\n\nلطفا فقط یک گزینه را انتخاب نمایید",
46
+ "items": [
47
+ {
48
+ "type": "text",
49
+ "text": "به سختی به خواب رفتن",
50
+ "answer": {
51
+ "type": "optional",
52
+ "options": [
53
+ "بدون مشکل",
54
+ "کم",
55
+ "متوسط",
56
+ "شدید",
57
+ "بسیار شدید"
58
+ ]
59
+ },
60
+ "user_answered": "4"
61
+ },
62
+ {
63
+ "type": "text",
64
+ "text": "به سختی در خواب باقی ماندن",
65
+ "answer": {
66
+ "type": "optional",
67
+ "options": [
68
+ "بدون مشکل",
69
+ "کم",
70
+ "متوسط",
71
+ "شدید",
72
+ "بسیار شدید"
73
+ ]
74
+ },
75
+ "user_answered": "4"
76
+ },
77
+ {
78
+ "type": "text",
79
+ "text": "مشکل زود بیدار شدن بیش از حد (صبح خیلی زود بیدارشدن)",
80
+ "answer": {
81
+ "type": "optional",
82
+ "options": [
83
+ "بدون مشکل",
84
+ "کم",
85
+ "متوسط",
86
+ "شدید",
87
+ "بسیار شدید"
88
+ ]
89
+ },
90
+ "user_answered": "4"
91
+ },
92
+ {
93
+ "type": "text",
94
+ "text": "از وضعیت اخیر خواب خود تا چه حد راضی یا ناراضی هستید ؟",
95
+ "answer": {
96
+ "type": "optional",
97
+ "options": [
98
+ "خیلی راضی",
99
+ "راضی",
100
+ "متوسط",
101
+ "ناراضی",
102
+ "خیلی ناراضی"
103
+ ]
104
+ },
105
+ "user_answered": "3"
106
+ },
107
+ {
108
+ "type": "text",
109
+ "text": "فکر می کنید مشکل خواب در ایجاد اختلال در کیفیت زندگی شما تا چه حد برای دیگران قابل توجه است؟",
110
+ "answer": {
111
+ "type": "optional",
112
+ "options": [
113
+ "اصلا",
114
+ "کمی",
115
+ "متوسط",
116
+ "زیاد",
117
+ "خیلی زیاد"
118
+ ]
119
+ },
120
+ "user_answered": "3"
121
+ },
122
+ {
123
+ "type": "text",
124
+ "text": "تا چه حد نسبت به مشکل اخیر خواب خود نگران یا مشوش هستید؟",
125
+ "answer": {
126
+ "type": "optional",
127
+ "options": [
128
+ "اصلا",
129
+ "کمی",
130
+ "متوسط",
131
+ "زیاد",
132
+ "خیلی زیاد"
133
+ ]
134
+ },
135
+ "user_answered": "4"
136
+ },
137
+ {
138
+ "type": "text",
139
+ "text": "به نظر شما مشکل خواب تا چه اندازه با عملکرد روزانه شما تداخل دارد؟ (مثل خستگی روزانه، توانایی عملکرد حین کار/ وظایف روزانه، تمرکز، حافظه، خلق و غیره)",
140
+ "answer": {
141
+ "type": "optional",
142
+ "options": [
143
+ "اصلا",
144
+ "کمی",
145
+ "متوسط",
146
+ "زیاد",
147
+ "خیلی زیاد"
148
+ ]
149
+ },
150
+ "user_answered": "3"
151
+ }
152
+ ],
153
+ "prerequisites": [
154
+ {
155
+ "type": "text",
156
+ "label": "gender",
157
+ "text": "جنسیت",
158
+ "answer": {
159
+ "type": "select",
160
+ "options": [
161
+ "زن",
162
+ "مرد"
163
+ ]
164
+ },
165
+ "alias": "gender",
166
+ "force": true,
167
+ "user_answered": "1"
168
+ },
169
+ {
170
+ "type": "text",
171
+ "label": "age",
172
+ "text": "سن",
173
+ "answer": {
174
+ "type": "number"
175
+ },
176
+ "alias": "age",
177
+ "force": true,
178
+ "user_answered": "35"
179
+ },
180
+ {
181
+ "type": "text",
182
+ "label": "education",
183
+ "text": "تحصیلات",
184
+ "answer": {
185
+ "type": "select",
186
+ "options": [
187
+ "ابتدایی اول",
188
+ "ابتدایی دوم",
189
+ "متوسطه اول",
190
+ "متوسطه دوم",
191
+ "دیپلم",
192
+ "کارشناسی",
193
+ "کارشناسی ارشد",
194
+ "پزشکی عمومی",
195
+ "متخصص",
196
+ "دکتری تخصصی",
197
+ "حوزوی مقدمات",
198
+ "حوزوی سطح۱",
199
+ "حوزوی سطح۲",
200
+ "حوزوی سطح۳",
201
+ "حوزوی سطح۴"
202
+ ]
203
+ },
204
+ "alias": "education",
205
+ "force": true,
206
+ "user_answered": "6"
207
+ }
208
+ ],
209
+ "cornometer": 743,
210
+ "score": {
211
+ "status": "valid",
212
+ "nocturnal": 11,
213
+ "daytime": 7,
214
+ "total": 18,
215
+ "severity": "moderate"
216
+ },
217
+ "score_current_version": "1.0.0",
218
+ "score_last_version": "1.0.0"
219
+ }
@@ -0,0 +1,88 @@
1
+ const { Profile } = require("../Profile");
2
+
3
+ // ---------------------------------------------------------------------------
4
+ // AIS93 — مقیاس بی‌خوابی آتن (AIS-8 فارسی). No Figma source: the chart is
5
+ // designed from the approved individual-result specification of the science
6
+ // package (AIS-FA8-C2), whose rules this layout enforces rather than decorates:
7
+ // - one score only, the 0–24 total, drawn as its position on one line with
8
+ // that range; no night/day subscore, no component, no comparison;
9
+ // - classification is off: one neutral hue, no coloured zone, no threshold,
10
+ // no label, no warning, no percentile or norm;
11
+ // - the only interpretation is the two approved sentences, verbatim;
12
+ // - the reference cut-off (6) is text only, with its source, sample and year,
13
+ // because the profile is read by the authorised specialist and never handed
14
+ // to the respondent; the score is never compared with it;
15
+ // - all-or-nothing: unless scoring/AIS93.py returns status "valid", only the
16
+ // no-result message is drawn — never a partial or zero score.
17
+ // Chart 863 × 674, centred on the 943 × 754 design page.
18
+ // ---------------------------------------------------------------------------
19
+ const CHART = { width: 863, height: 674 };
20
+
21
+ // The total's own axis: 0 at x=LINE.left, 24 at x=LINE.right.
22
+ const LINE = { left: 20, right: 640, y: 112 };
23
+
24
+ class AIS93 extends Profile {
25
+ static pages = 1;
26
+
27
+ labels = {
28
+ L1: { eng: "total", title: "نمرهٔ کل", max: 24 },
29
+ L2: { eng: "status" }, // valid | incomplete | invalid
30
+ };
31
+
32
+ profileSpec = {
33
+ sample: {
34
+ name: "مقیاس بی‌خوابی آتن",
35
+ multiProfile: false,
36
+ questions: false,
37
+ defaultFields: true,
38
+ fields: [],
39
+ },
40
+ profile: {
41
+ get dimensions() {
42
+ return {
43
+ width: CHART.width + 2 * this.padding.x, // 863 → 903
44
+ height: CHART.height + 2 * this.padding.y, // 674 → 714
45
+ };
46
+ },
47
+ // Chart inset inside the 943 × 754 design page minus the 20 px the layout
48
+ // owns on every side, so the with-sidebar page renders at scale 1.
49
+ padding: {
50
+ x: (943 - CHART.width) / 2 - 20, // 20
51
+ y: (754 - CHART.height) / 2 - 20, // 20
52
+ },
53
+ },
54
+ labels: Object.values(this.labels),
55
+ };
56
+
57
+ constructor(dataset, options, config = {}) {
58
+ super();
59
+ this._init(dataset, options, config);
60
+ }
61
+
62
+ _calcContext() {
63
+ const s = this.dataset.score;
64
+
65
+ // Anything but an explicit "valid" is no result: a missing status must not
66
+ // let `?? 0` read as the lowest valid score.
67
+ if (s[1].mark !== "valid") return [{ valid: false }];
68
+
69
+ const mark = s[0].mark ?? 0;
70
+ const max = s[0].label.max;
71
+
72
+ return [
73
+ {
74
+ valid: true,
75
+ total: {
76
+ mark,
77
+ max,
78
+ left: LINE.left,
79
+ right: LINE.right,
80
+ y: LINE.y,
81
+ x: LINE.left + ((LINE.right - LINE.left) * mark) / max,
82
+ },
83
+ },
84
+ ];
85
+ }
86
+ }
87
+
88
+ module.exports = AIS93;
@@ -0,0 +1,93 @@
1
+ const { Profile } = require("../Profile");
2
+
3
+ // ---------------------------------------------------------------------------
4
+ // CAARS93 — مقیاس درجه‌بندی ADHD بزرگسالان کانرز، نسخهٔ غربالگری خودگزارشی.
5
+ // No Figma source: the chart is designed from the approved individual-result
6
+ // specification of the science package (CAARS-FA30-C1), whose rules this
7
+ // layout enforces rather than decorates:
8
+ // - three raw scores, each on its own separate line with its own range
9
+ // (0–27, 0–27, 0–36) and the score's position on it; never one shared
10
+ // axis, never a combined or comparative chart;
11
+ // - classification is off: one neutral hue, no coloured zone, no threshold,
12
+ // no label, no warning, no T, percentile or norm;
13
+ // - the only interpretation is the two approved sentences, verbatim;
14
+ // - the reference cut-off is text only, with all its caveats, because the
15
+ // profile is read by the authorised specialist and never handed to the
16
+ // respondent; no score is ever compared with it;
17
+ // - all-or-nothing: unless scoring/CAARS93.py returns status "valid", only
18
+ // the no-result message is drawn — never a partial or zero score.
19
+ // Chart 863 × 674, centred on the 943 × 754 design page.
20
+ // ---------------------------------------------------------------------------
21
+ const CHART = { width: 863, height: 674 };
22
+
23
+ // Each scale owns its axis: 0 at x=LINE.left, its own maximum at x=LINE.right.
24
+ const LINE = { left: 20, right: 560, top: 92, pitch: 64 };
25
+
26
+ class CAARS93 extends Profile {
27
+ static pages = 1;
28
+
29
+ labels = {
30
+ L1: { eng: "inattention", title: "کمبود توجه", max: 27 },
31
+ L2: { eng: "hyperactivity", title: "پرتحرکی–کنترل تکانه", max: 27 },
32
+ L3: { eng: "adhd_index", title: "شاخص ADHD", max: 36 },
33
+ L4: { eng: "status" }, // valid | incomplete | invalid
34
+ };
35
+
36
+ profileSpec = {
37
+ sample: {
38
+ name: "مقیاس درجه‌بندی اختلال کمبود توجه/بیش‌فعالی بزرگسالان کانرز — نسخهٔ غربالگری خودگزارشی",
39
+ multiProfile: false,
40
+ questions: false,
41
+ defaultFields: true,
42
+ fields: [],
43
+ },
44
+ profile: {
45
+ get dimensions() {
46
+ return {
47
+ width: CHART.width + 2 * this.padding.x, // 863 → 903
48
+ height: CHART.height + 2 * this.padding.y, // 674 → 714
49
+ };
50
+ },
51
+ // Chart inset inside the 943 × 754 design page minus the 20 px the layout
52
+ // owns on every side, so the with-sidebar page renders at scale 1.
53
+ padding: {
54
+ x: (943 - CHART.width) / 2 - 20, // 20
55
+ y: (754 - CHART.height) / 2 - 20, // 20
56
+ },
57
+ },
58
+ labels: Object.values(this.labels),
59
+ };
60
+
61
+ constructor(dataset, options, config = {}) {
62
+ super();
63
+ this._init(dataset, options, config);
64
+ }
65
+
66
+ _calcContext() {
67
+ const s = this.dataset.score;
68
+
69
+ // Anything but an explicit "valid" is no result: a missing status must not
70
+ // let `?? 0` zeros read as the lowest valid score.
71
+ if (s[3].mark !== "valid") return [{ valid: false }];
72
+
73
+ const scales = s.slice(0, 3).map((data, i) => {
74
+ const mark = data.mark ?? 0;
75
+ const max = data.label.max;
76
+ const y = LINE.top + i * LINE.pitch;
77
+ return {
78
+ title: data.label.title,
79
+ mark,
80
+ max,
81
+ left: LINE.left,
82
+ right: LINE.right,
83
+ valueX: LINE.right + 16,
84
+ y,
85
+ x: LINE.left + ((LINE.right - LINE.left) * mark) / max,
86
+ };
87
+ });
88
+
89
+ return [{ valid: true, scales }];
90
+ }
91
+ }
92
+
93
+ module.exports = CAARS93;
@@ -0,0 +1,146 @@
1
+ const { Profile } = require("../Profile");
2
+
3
+ // ---------------------------------------------------------------------------
4
+ // ISI93 — شاخص شدت بی‌خوابی مورین. Layout assembled from two existing Figma
5
+ // components (Assessments v3.0.0):
6
+ // - the severity strip on top is the BDI "Total" piece (node 5069:129385):
7
+ // one bar over the total with dashed band edges, the band's upper score
8
+ // above each edge and the respondent's band highlighted in its colour;
9
+ // - each component is a 270° ring gauge, the "P Total" piece (node
10
+ // 4729:125971): 0 at the top, filling clockwise to 100 % on the left,
11
+ // percentage and "mark از max" in the centre, title underneath.
12
+ // Rules kept from the science record: the two components are drawn in one
13
+ // neutral hue and without a class, each against its own maximum (the "از max"
14
+ // readout keeps their unequal ranges visible); all-or-nothing — unless scoring
15
+ // returns status "valid", only the no-result message is drawn.
16
+ // Chart 545 × 289, centred on the 943 × 754 design page; the strip bar and the
17
+ // gauge pair are both centred on the Chart, so both sit mid-page.
18
+ // ---------------------------------------------------------------------------
19
+ const CHART = { width: 545, height: 289 };
20
+
21
+ // Severity strip: the piece sits at the Chart origin, its bar starts at x = 48
22
+ // and 28 points span its 449 px, so score s ends at s * STRIP.unit on the bar.
23
+ const STRIP = { width: 449, max: 28 };
24
+ STRIP.unit = STRIP.width / STRIP.max;
25
+ const INSIDE_MIN = 34; // narrowest bar that still holds a two-digit score inside
26
+
27
+ // Severity bands over the total; each edge sits on its band's upper score.
28
+ // Colours are the BDI severity palette [gradient start, gradient end / accent].
29
+ const BANDS = [
30
+ { key: "none", to: 7, title: "ناچیز", colors: ["#CBD5E1", "#475569"] },
31
+ { key: "subthreshold", to: 14, title: "زیرآستانه", colors: ["#FDE047", "#EAB308"] },
32
+ { key: "moderate", to: 21, title: "متوسط", colors: ["#FDBA74", "#EA580C"] },
33
+ { key: "severe", to: 28, title: "شدید", colors: ["#FDA4AF", "#E11D48"] },
34
+ ];
35
+
36
+ // Component gauges: ring centres, symmetric about the strip bar's centre
37
+ // (x = 272.5, also the Chart's centre); in RTL order the first component is
38
+ // on the right.
39
+ const GAUGE = { centers: [372.5, 172.5], y: 195 };
40
+ const SWEEP = { start: -Math.PI / 2, end: Math.PI }; // clockwise 270°
41
+
42
+ class ISI93 extends Profile {
43
+ static pages = 1;
44
+
45
+ labels = {
46
+ L1: { eng: "nocturnal", title: "شدت نشانه‌های شبانه", max: 16 },
47
+ L2: { eng: "daytime", title: "اثرهای روزانهٔ بی‌خوابی", max: 12 },
48
+ L3: { eng: "total", title: "نمرهٔ کل", max: 28 },
49
+ L4: { eng: "status" }, // valid | incomplete | invalid
50
+ L5: { eng: "severity" }, // none | subthreshold | moderate | severe
51
+ };
52
+
53
+ profileSpec = {
54
+ sample: {
55
+ name: "شاخص شدت بی‌خوابی مورین",
56
+ multiProfile: false,
57
+ questions: false,
58
+ defaultFields: true,
59
+ fields: [],
60
+ },
61
+ profile: {
62
+ get dimensions() {
63
+ return {
64
+ width: CHART.width + 2 * this.padding.x, // 545 → 903
65
+ height: CHART.height + 2 * this.padding.y, // 289 → 714
66
+ };
67
+ },
68
+ // Chart inset inside the 943 × 754 design page minus the 20 px the layout
69
+ // owns on every side, so the with-sidebar page renders at scale 1.
70
+ padding: {
71
+ x: (943 - CHART.width) / 2 - 20, // 179
72
+ y: (754 - CHART.height) / 2 - 20, // 212.5
73
+ },
74
+ },
75
+ labels: Object.values(this.labels),
76
+ };
77
+
78
+ constructor(dataset, options, config = {}) {
79
+ super();
80
+ this._init(dataset, options, config);
81
+ }
82
+
83
+ _calcContext() {
84
+ const s = this.dataset.score;
85
+ const status = s[3].mark;
86
+ const active = BANDS.findIndex((band) => band.key === s[4].mark);
87
+
88
+ // Anything but an explicit "valid" with a known class is no result: a
89
+ // missing status must not let `?? 0` zeros read as "no insomnia".
90
+ if (status !== "valid" || active === -1) return [{ valid: false }];
91
+
92
+ const bands = BANDS.map((band, i) => {
93
+ const from = i === 0 ? 0 : BANDS[i - 1].to * STRIP.unit;
94
+ const edge = band.to * STRIP.unit;
95
+ return {
96
+ to: band.to,
97
+ edge,
98
+ center: (from + edge) / 2,
99
+ title: band.title,
100
+ active: i === active,
101
+ };
102
+ });
103
+
104
+ const mark = s[2].mark ?? 0;
105
+ const max = s[2].label.max;
106
+ const pct = Math.round((mark / max) * 100);
107
+ const width = mark * STRIP.unit;
108
+ const inside = width >= INSIDE_MIN;
109
+ const colors = BANDS[active].colors;
110
+
111
+ const components = s.slice(0, 2).map((data, i) => {
112
+ const value = data.mark ?? 0;
113
+ const p = Math.min(value / data.label.max, 1);
114
+ return {
115
+ title: data.label.title,
116
+ mark: value,
117
+ max: data.label.max,
118
+ pct: Math.round(p * 100),
119
+ zeta: SWEEP.start + p * (SWEEP.end - SWEEP.start),
120
+ x: GAUGE.centers[i],
121
+ y: GAUGE.y,
122
+ };
123
+ });
124
+
125
+ return [
126
+ {
127
+ valid: true,
128
+ bands,
129
+ total: {
130
+ mark,
131
+ max,
132
+ pct,
133
+ width,
134
+ colors,
135
+ // Score inside the tip when it fits, otherwise just past it.
136
+ labelX: inside ? width - 8 : width + 8,
137
+ labelAnchor: inside ? "start" : "end",
138
+ labelFill: inside ? "#FFFFFF" : colors[1],
139
+ },
140
+ components,
141
+ },
142
+ ];
143
+ }
144
+ }
145
+
146
+ module.exports = ISI93;
@@ -0,0 +1,63 @@
1
+ {{#> layout}}
2
+
3
+ <g transform="translate({{spec.profile.padding.x}}, {{spec.profile.padding.y}})">
4
+
5
+ {{#if valid}}
6
+
7
+ {{! ===================== The total, on its own 0–24 line ===================== }}
8
+ {{! One neutral hue; no zone, no threshold, no tick at the reference cut-off. }}
9
+ <text x="843" y="24" text-anchor="start" font-size="16" font-weight="600" fill="#1E293B">نمرهٔ کل</text>
10
+
11
+ <line x1="{{total.left}}" y1="{{total.y}}" x2="{{total.right}}" y2="{{total.y}}" stroke="#CBD5E1" stroke-width="4" stroke-linecap="round"/>
12
+ <line x1="{{total.left}}" y1="{{math total.y '-' 7}}" x2="{{total.left}}" y2="{{math total.y '+' 7}}" stroke="#94A3B8" stroke-width="1.5"/>
13
+ <line x1="{{total.right}}" y1="{{math total.y '-' 7}}" x2="{{total.right}}" y2="{{math total.y '+' 7}}" stroke="#94A3B8" stroke-width="1.5"/>
14
+ <text x="{{total.left}}" y="{{math total.y '+' 24}}" text-anchor="middle" font-size="11" fill="#94A3B8">0</text>
15
+ <text x="{{total.right}}" y="{{math total.y '+' 24}}" text-anchor="middle" font-size="11" fill="#94A3B8">{{total.max}}</text>
16
+
17
+ <circle cx="{{total.x}}" cy="{{total.y}}" r="7" fill="#475569" stroke="white" stroke-width="2"/>
18
+ <text x="{{total.x}}" y="{{math total.y '-' 14}}" text-anchor="middle" font-size="13" font-weight="700" fill="#1E293B">{{total.mark}}</text>
19
+
20
+ {{! Total card (right of the line) }}
21
+ <rect x="693.5" y="52.5" width="169" height="120" rx="8" fill="#F8FAFC" stroke="#E2E8F0"/>
22
+ <text x="778" y="82" text-anchor="middle" font-size="14" font-weight="600" fill="#475569">نمرهٔ کل</text>
23
+ <text x="778" y="134" text-anchor="middle" font-size="44" font-weight="700" fill="#1E293B">{{total.mark}}</text>
24
+ <text x="778" y="158" text-anchor="middle" font-size="13" fill="#64748B">از {{total.max}}</text>
25
+
26
+ {{! ===================== Interpretation, uncertainty, reference cut-off ===================== }}
27
+ {{! Fixed text from the science package; the profile is read by the authorised specialist. }}
28
+ <rect x="0.5" y="204.5" width="862" height="401" rx="8" fill="#F8FAFC" stroke="#E2E8F0"/>
29
+
30
+ <text x="843" y="236" text-anchor="start" font-size="15" font-weight="600" fill="#1E293B">تفسیر</text>
31
+ <text x="843" y="264" text-anchor="start" font-size="13.5" fill="#334155">نمرهٔ بالاتر، دشواری بیشتری در خواب را نشان می‌دهد، همان‌طور که پاسخ‌دهنده خودش گزارش کرده است.</text>
32
+ <text x="843" y="288" text-anchor="start" font-size="13.5" fill="#334155">این نمره تشخیص نیست.</text>
33
+
34
+ <text x="843" y="326" text-anchor="start" font-size="15" font-weight="600" fill="#1E293B">عدم قطعیت و محدودیت</text>
35
+ <circle cx="840" cy="349.5" r="2" fill="#334155"/>
36
+ <text x="831" y="354" text-anchor="start" font-size="13.5" fill="#334155">این نسخهٔ فارسی اعتبارسنجی نشده و برش بومی ندارد.</text>
37
+ <circle cx="840" cy="373.5" r="2" fill="#334155"/>
38
+ <text x="831" y="378" text-anchor="start" font-size="13.5" fill="#334155">این ابزار غربال است، نه تشخیص.</text>
39
+ <circle cx="840" cy="397.5" r="2" fill="#334155"/>
40
+ <text x="831" y="402" text-anchor="start" font-size="13.5" fill="#334155">آزمون تصمیم‌یار است، نه تصمیم‌گیر قطعی.</text>
41
+
42
+ <text x="843" y="440" text-anchor="start" font-size="15" font-weight="600" fill="#1E293B">نقطهٔ برش مرجع</text>
43
+ <text x="843" y="468" text-anchor="start" font-size="13" fill="#334155">نمرهٔ کل <tspan font-weight="700">6</tspan> — فقط اطلاعات مرجع برای متخصص؛ نمرهٔ این پاسخ‌نامه با آن طبقه‌بندی نمی‌شود.</text>
44
+ <text x="843" y="496" text-anchor="start" font-size="13" fill="#334155">منبع: مطالعهٔ روایی تشخیصیِ نسخهٔ یونانی، در برابر تشخیص بی‌خوابی غیرارگانیک در <tspan class="eng-font" font-family="Dana">ICD-10</tspan>.</text>
45
+ <text x="843" y="520" text-anchor="start" font-size="13" fill="#334155">جامعه: نمونهٔ بالینی/مختلط آتن، 299 نفر.</text>
46
+ <text x="843" y="544" text-anchor="start" font-size="13" fill="#334155">سال: 2003.</text>
47
+ <text x="843" y="572" text-anchor="start" font-size="13" font-weight="600" fill="#334155">این عدد به نسخهٔ فارسی و به فرم پنج‌گویه‌ای تعلق ندارد.</text>
48
+
49
+ {{else}}
50
+
51
+ {{! ===================== No result (all-or-nothing) ===================== }}
52
+ <rect x="181.5" y="237.5" width="500" height="199" rx="12" fill="#F8FAFC" stroke="#E2E8F0"/>
53
+ <circle cx="431.5" cy="288" r="17" fill="none" stroke="#64748B" stroke-width="2"/>
54
+ <line x1="431.5" y1="279" x2="431.5" y2="291" stroke="#64748B" stroke-width="2.5" stroke-linecap="round"/>
55
+ <circle cx="431.5" cy="297.5" r="1.6" fill="#64748B"/>
56
+ <text x="431.5" y="344" text-anchor="middle" font-size="17" font-weight="600" fill="#1E293B">نمره تولید نشد</text>
57
+ <text x="431.5" y="376" text-anchor="middle" font-size="13" fill="#64748B">پاسخ ناقص یا نامعتبر است؛ هیچ نمره‌ای، حتی نمرهٔ جزئی، گزارش نمی‌شود.</text>
58
+
59
+ {{/if}}
60
+
61
+ </g>
62
+
63
+ {{/layout}}