@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.
- package/package.json +1 -1
- package/src/handlebars/helpers/profiles/gauge.js +14 -2
- package/src/publish/json/profiles/AIS93.json +223 -0
- package/src/publish/json/profiles/CAARS93.json +533 -0
- package/src/publish/json/profiles/ISI93.json +219 -0
- package/src/samples/AIS93.js +88 -0
- package/src/samples/CAARS93.js +93 -0
- package/src/samples/ISI93.js +146 -0
- package/views/profiles/samples/AIS93.hbs +63 -0
- package/views/profiles/samples/CAARS93.hbs +67 -0
- package/views/profiles/samples/ISI93.hbs +82 -0
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
{{#> layout}}
|
|
2
|
+
|
|
3
|
+
<g transform="translate({{spec.profile.padding.x}}, {{spec.profile.padding.y}})">
|
|
4
|
+
|
|
5
|
+
{{#if valid}}
|
|
6
|
+
|
|
7
|
+
{{! ===================== Three raw scores, three separate lines ===================== }}
|
|
8
|
+
{{! Each line is its own axis (0 to that scale's maximum); one neutral hue, no zone, no threshold. }}
|
|
9
|
+
<text x="843" y="24" text-anchor="start" font-size="16" font-weight="600" fill="#1E293B">نمرهها</text>
|
|
10
|
+
|
|
11
|
+
{{#each scales as |item|}}
|
|
12
|
+
<text x="843" y="{{math item.y '+' 5}}" text-anchor="start" font-size="14" font-weight="600" fill="#334155">{{item.title}}</text>
|
|
13
|
+
<text x="{{item.valueX}}" y="{{math item.y '+' 5}}" text-anchor="end" font-size="13" fill="#334155"><tspan font-weight="700">{{item.mark}}</tspan> از {{item.max}}</text>
|
|
14
|
+
|
|
15
|
+
<line x1="{{item.left}}" y1="{{item.y}}" x2="{{item.right}}" y2="{{item.y}}" stroke="#CBD5E1" stroke-width="4" stroke-linecap="round"/>
|
|
16
|
+
<line x1="{{item.left}}" y1="{{math item.y '-' 7}}" x2="{{item.left}}" y2="{{math item.y '+' 7}}" stroke="#94A3B8" stroke-width="1.5"/>
|
|
17
|
+
<line x1="{{item.right}}" y1="{{math item.y '-' 7}}" x2="{{item.right}}" y2="{{math item.y '+' 7}}" stroke="#94A3B8" stroke-width="1.5"/>
|
|
18
|
+
<text x="{{item.left}}" y="{{math item.y '+' 24}}" text-anchor="middle" font-size="11" fill="#94A3B8">0</text>
|
|
19
|
+
<text x="{{item.right}}" y="{{math item.y '+' 24}}" text-anchor="middle" font-size="11" fill="#94A3B8">{{item.max}}</text>
|
|
20
|
+
|
|
21
|
+
<circle cx="{{item.x}}" cy="{{item.y}}" r="7" fill="#475569" stroke="white" stroke-width="2"/>
|
|
22
|
+
<text x="{{item.x}}" y="{{math item.y '-' 14}}" text-anchor="middle" font-size="13" font-weight="700" fill="#1E293B">{{item.mark}}</text>
|
|
23
|
+
{{/each}}
|
|
24
|
+
|
|
25
|
+
{{! ===================== Interpretation, uncertainty, reference cut-off ===================== }}
|
|
26
|
+
{{! Fixed text from the science package; the profile is read by the authorised specialist. }}
|
|
27
|
+
<rect x="0.5" y="272.5" width="862" height="401" rx="8" fill="#F8FAFC" stroke="#E2E8F0"/>
|
|
28
|
+
|
|
29
|
+
<text x="843" y="302" text-anchor="start" font-size="15" font-weight="600" fill="#1E293B">تفسیر</text>
|
|
30
|
+
<text x="843" y="330" text-anchor="start" font-size="13.5" fill="#334155">نمرهٔ بالاتر در هر مقیاس یعنی پاسخدهنده نشانههای بیشتری از همان مقیاس گزارش کرده است.</text>
|
|
31
|
+
<text x="843" y="354" text-anchor="start" font-size="13.5" fill="#334155">این نمره تشخیص نیست.</text>
|
|
32
|
+
|
|
33
|
+
<text x="843" y="390" text-anchor="start" font-size="15" font-weight="600" fill="#1E293B">عدم قطعیت و محدودیت</text>
|
|
34
|
+
<circle cx="840" cy="413.5" r="2" fill="#334155"/>
|
|
35
|
+
<text x="831" y="418" text-anchor="start" font-size="13.5" fill="#334155">این ابزار غربال است، نه تشخیص.</text>
|
|
36
|
+
<circle cx="840" cy="437.5" r="2" fill="#334155"/>
|
|
37
|
+
<text x="831" y="442" text-anchor="start" font-size="13.5" fill="#334155">برای این نسخه هنجار ایرانی و برش قابل محاسبه وجود ندارد.</text>
|
|
38
|
+
<circle cx="840" cy="461.5" r="2" fill="#334155"/>
|
|
39
|
+
<text x="831" y="466" text-anchor="start" font-size="13.5" fill="#334155">نمرهٔ بالا ممکن است از افسردگی یا اضطراب هم بیاید.</text>
|
|
40
|
+
<circle cx="840" cy="485.5" r="2" fill="#334155"/>
|
|
41
|
+
<text x="831" y="490" text-anchor="start" font-size="13.5" fill="#334155">آزمون تصمیمیار است، نه تصمیمگیر قطعی.</text>
|
|
42
|
+
|
|
43
|
+
<text x="843" y="526" text-anchor="start" font-size="15" font-weight="600" fill="#1E293B">نقطهٔ برش مرجع</text>
|
|
44
|
+
{{! "T ≥ 65" is its own left-to-right text: inside a right-to-left run it reorders to "65 ≥ T". }}
|
|
45
|
+
<text x="843" y="552" direction="ltr" text-anchor="end" font-size="13" font-weight="600" fill="#334155">T ≥ 65</text>
|
|
46
|
+
<text x="790" y="552" text-anchor="start" font-size="13" fill="#334155">— حساسیت 59٪، ویژگی 92٪</text>
|
|
47
|
+
<text x="843" y="576" direction="ltr" text-anchor="end" font-size="13" font-weight="600" fill="#334155">T ≥ 55</text>
|
|
48
|
+
<text x="790" y="576" text-anchor="start" font-size="13" fill="#334155">— حساسیت 89٪، ویژگی 68٪</text>
|
|
49
|
+
<text x="843" y="602" text-anchor="start" font-size="13" fill="#334155">منبع: مطالعهٔ روایی ملاکیِ یک ترجمهٔ فارسیِ دیگر از همین فرم، 1393.</text>
|
|
50
|
+
<text x="843" y="626" text-anchor="start" font-size="13" fill="#334155">جامعه: 100 والدِ کودکانِ مبتلا به ADHD؛ ملاک بیرونی: مصاحبهٔ روانپزشکی بر پایهٔ ملاکهای یوتا.</text>
|
|
51
|
+
<text x="843" y="654" text-anchor="start" font-size="13" font-weight="600" fill="#334155">این دو عدد روی مقیاس T تعریف شدهاند و با نمرههای خامِ این نسخه قابل مقایسه نیستند.</text>
|
|
52
|
+
|
|
53
|
+
{{else}}
|
|
54
|
+
|
|
55
|
+
{{! ===================== No result (all-or-nothing) ===================== }}
|
|
56
|
+
<rect x="181.5" y="237.5" width="500" height="199" rx="12" fill="#F8FAFC" stroke="#E2E8F0"/>
|
|
57
|
+
<circle cx="431.5" cy="288" r="17" fill="none" stroke="#64748B" stroke-width="2"/>
|
|
58
|
+
<line x1="431.5" y1="279" x2="431.5" y2="291" stroke="#64748B" stroke-width="2.5" stroke-linecap="round"/>
|
|
59
|
+
<circle cx="431.5" cy="297.5" r="1.6" fill="#64748B"/>
|
|
60
|
+
<text x="431.5" y="344" text-anchor="middle" font-size="17" font-weight="600" fill="#1E293B">نمره تولید نشد</text>
|
|
61
|
+
<text x="431.5" y="376" text-anchor="middle" font-size="13" fill="#64748B">پاسخ ناقص یا نامعتبر است؛ هیچ نمرهای، حتی نمرهٔ جزئی، گزارش نمیشود.</text>
|
|
62
|
+
|
|
63
|
+
{{/if}}
|
|
64
|
+
|
|
65
|
+
</g>
|
|
66
|
+
|
|
67
|
+
{{/layout}}
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
{{#> layout}}
|
|
2
|
+
|
|
3
|
+
<defs>
|
|
4
|
+
{{#if valid}}
|
|
5
|
+
{{! Severity strip fill, in the respondent's band colour (BDI "Total") }}
|
|
6
|
+
<linearGradient id="isiTotal" x1="-4.8" y1="14" x2="{{total.width}}" y2="14" gradientUnits="userSpaceOnUse">
|
|
7
|
+
<stop stop-color="{{total.colors.[0]}}"/>
|
|
8
|
+
<stop offset="1" stop-color="{{total.colors.[1]}}"/>
|
|
9
|
+
</linearGradient>
|
|
10
|
+
<clipPath id="isiTotalTrack">
|
|
11
|
+
{{bar 449 28 (object tl=0 bl=0 tr=4 br=4) (toRad 0)}}
|
|
12
|
+
</clipPath>
|
|
13
|
+
|
|
14
|
+
{{! Component ring gauge ("P Total" at 6/7 scale: R 60, r 42), neutral slate: gradient local to the ring centre }}
|
|
15
|
+
<linearGradient id="isiGauge" x1="60" y1="-59.34" x2="-50.43" y2="107.66" gradientUnits="userSpaceOnUse">
|
|
16
|
+
<stop stop-color="#94A3B8"/>
|
|
17
|
+
<stop offset="0.5" stop-color="#475569"/>
|
|
18
|
+
<stop offset="1" stop-color="#475569"/>
|
|
19
|
+
</linearGradient>
|
|
20
|
+
<clipPath id="isiGaugeTrack">
|
|
21
|
+
{{gauge 60 42 (object tl=6 tr=6 bl=6 br=6) (object start=(toRad -90) end=(toRad 180)) false}}
|
|
22
|
+
</clipPath>
|
|
23
|
+
{{/if}}
|
|
24
|
+
</defs>
|
|
25
|
+
|
|
26
|
+
<g transform="translate({{spec.profile.padding.x}}, {{spec.profile.padding.y}})">
|
|
27
|
+
|
|
28
|
+
{{#if valid}}
|
|
29
|
+
|
|
30
|
+
{{! ===================== Severity strip (BDI "Total" piece) ===================== }}
|
|
31
|
+
<g>
|
|
32
|
+
<g transform="translate(48, 44)">
|
|
33
|
+
<text y="0" x="-8" dy=".85em" text-anchor="start" font-size="13" font-weight="500" fill="#64748B">نمره کل</text>
|
|
34
|
+
<text y="0" x="-8" dy="2.1em" text-anchor="start" font-size="13" font-weight="600" fill="#475569">{{total.pct}} ٪</text>
|
|
35
|
+
{{bar 449 28 (object tl=0 bl=0 tr=4 br=4) (toRad 0) fill="#F8FAFC"}}
|
|
36
|
+
{{#if total.width}}
|
|
37
|
+
{{bar total.width 28 (object tl=0 bl=0 tr=4 br=4) (toRad 0) fill="url(#isiTotal)" clip-path="url(#isiTotalTrack)"}}
|
|
38
|
+
{{/if}}
|
|
39
|
+
<text y="14" x="{{total.labelX}}" dy=".3em" text-anchor="{{total.labelAnchor}}" font-size="16" font-weight="600" fill="{{total.labelFill}}">{{total.mark}}</text>
|
|
40
|
+
</g>
|
|
41
|
+
|
|
42
|
+
{{! Band edges: upper score above a dashed line, band title centred in the band }}
|
|
43
|
+
<g transform="translate(48, 16)">
|
|
44
|
+
{{#each bands as |band|}}
|
|
45
|
+
<text y="-16" x="{{band.edge}}" dy=".85em" text-anchor="middle" font-size="12" font-weight="400" fill="#94A3B8">{{band.to}}</text>
|
|
46
|
+
<text y="3" x="{{band.center}}" dy=".85em" text-anchor="middle" font-size="13" font-weight="{{ternary band.active 600 400}}" fill="{{ternary band.active ../total.colors.[1] '#64748B'}}">{{band.title}}</text>
|
|
47
|
+
<line x1="{{math band.edge '-' 0.5}}" y1="{{ternary @last -0.5 2}}" x2="{{math band.edge '-' 0.5}}" y2="23" stroke="#E2E8F0" stroke-linecap="round" stroke-dasharray="4 4"/>
|
|
48
|
+
{{/each}}
|
|
49
|
+
</g>
|
|
50
|
+
</g>
|
|
51
|
+
|
|
52
|
+
{{! ===================== Components: 270° ring gauges ("P Total") ===================== }}
|
|
53
|
+
{{#each components as |item|}}
|
|
54
|
+
<g transform="translate({{item.x}}, {{item.y}})">
|
|
55
|
+
{{gauge 60 42 (object tl=6 tr=6 bl=6 br=6) (object start=(toRad -90) end=(toRad 180)) false clip-path="url(#isiGaugeTrack)" fill="#F1F5F9"}}
|
|
56
|
+
{{#if item.mark}}{{gauge 60 42 (object tl=6 tr=6 bl=6 br=6) (object start=(toRad -90) end=item.zeta) false clip-path="url(#isiGaugeTrack)" fill="url(#isiGauge)"}}{{/if}}
|
|
57
|
+
|
|
58
|
+
<text x="0" y="-3" text-anchor="middle" font-size="21" font-weight="600" fill="#334155" direction="ltr">٪ {{item.pct}}</text>
|
|
59
|
+
<text x="0" y="19" text-anchor="middle" font-size="13" font-weight="500" fill="#64748B">{{item.mark}} از {{item.max}}</text>
|
|
60
|
+
|
|
61
|
+
<text x="-51" y="-7" text-anchor="middle" font-size="12" fill="#64748B" direction="ltr">٪ 100</text>
|
|
62
|
+
<text x="-9" y="-48" text-anchor="middle" font-size="12" fill="#64748B">0</text>
|
|
63
|
+
|
|
64
|
+
<text x="0" y="88" text-anchor="middle" font-size="14" font-weight="500" fill="#475569">{{item.title}}</text>
|
|
65
|
+
</g>
|
|
66
|
+
{{/each}}
|
|
67
|
+
|
|
68
|
+
{{else}}
|
|
69
|
+
|
|
70
|
+
{{! ===================== No result (all-or-nothing) ===================== }}
|
|
71
|
+
<rect x="22.5" y="45" width="500" height="199" rx="12" fill="#F8FAFC" stroke="#E2E8F0"/>
|
|
72
|
+
<circle cx="272.5" cy="95.5" r="17" fill="none" stroke="#64748B" stroke-width="2"/>
|
|
73
|
+
<line x1="272.5" y1="86.5" x2="272.5" y2="98.5" stroke="#64748B" stroke-width="2.5" stroke-linecap="round"/>
|
|
74
|
+
<circle cx="272.5" cy="105" r="1.6" fill="#64748B"/>
|
|
75
|
+
<text x="272.5" y="151.5" text-anchor="middle" font-size="17" font-weight="600" fill="#1E293B">نمره تولید نشد</text>
|
|
76
|
+
<text x="272.5" y="183.5" text-anchor="middle" font-size="13" fill="#64748B">پاسخ ناقص یا نامعتبر است؛ هیچ نمرهای، حتی نمرهٔ جزئی، گزارش نمیشود.</text>
|
|
77
|
+
|
|
78
|
+
{{/if}}
|
|
79
|
+
|
|
80
|
+
</g>
|
|
81
|
+
|
|
82
|
+
{{/layout}}
|