psytools 0.3.0 → 0.3.2
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/README.md +37 -16
- package/SOURCES.md +81 -0
- package/dist/cjs/assessment.d.ts +3 -2
- package/dist/cjs/assessment.js +13 -3
- package/dist/cjs/evaluation.d.ts +5 -3
- package/dist/cjs/evaluation.js +49 -8
- package/dist/cjs/index.d.ts +2 -2
- package/dist/cjs/index.js +6 -1
- package/dist/cjs/inventories/aq10.d.ts +12 -0
- package/dist/cjs/inventories/aq10.js +183 -0
- package/dist/cjs/inventories/asrs6.d.ts +11 -0
- package/dist/cjs/inventories/asrs6.js +130 -0
- package/dist/cjs/inventories/audit.d.ts +10 -0
- package/dist/cjs/inventories/audit.js +231 -0
- package/dist/cjs/inventories/dass21.js +3 -1
- package/dist/cjs/inventories/gad7.js +3 -1
- package/dist/cjs/inventories/index.d.ts +7 -2
- package/dist/cjs/inventories/index.js +16 -1
- package/dist/cjs/inventories/mini-ipip.d.ts +11 -0
- package/dist/cjs/inventories/mini-ipip.js +272 -0
- package/dist/cjs/inventories/phq9.js +3 -1
- package/dist/cjs/inventories/who5.d.ts +11 -0
- package/dist/cjs/inventories/who5.js +152 -0
- package/dist/cjs/types.d.ts +24 -2
- package/dist/esm/assessment.d.ts +3 -2
- package/dist/esm/assessment.js +13 -3
- package/dist/esm/evaluation.d.ts +5 -3
- package/dist/esm/evaluation.js +49 -8
- package/dist/esm/index.d.ts +2 -2
- package/dist/esm/index.js +1 -1
- package/dist/esm/inventories/aq10.d.ts +12 -0
- package/dist/esm/inventories/aq10.js +180 -0
- package/dist/esm/inventories/asrs6.d.ts +11 -0
- package/dist/esm/inventories/asrs6.js +127 -0
- package/dist/esm/inventories/audit.d.ts +10 -0
- package/dist/esm/inventories/audit.js +228 -0
- package/dist/esm/inventories/dass21.js +3 -1
- package/dist/esm/inventories/gad7.js +3 -1
- package/dist/esm/inventories/index.d.ts +7 -2
- package/dist/esm/inventories/index.js +11 -1
- package/dist/esm/inventories/mini-ipip.d.ts +11 -0
- package/dist/esm/inventories/mini-ipip.js +269 -0
- package/dist/esm/inventories/phq9.js +3 -1
- package/dist/esm/inventories/who5.d.ts +11 -0
- package/dist/esm/inventories/who5.js +149 -0
- package/dist/esm/types.d.ts +24 -2
- package/package.json +14 -3
- package/schema/assessment-definition.schema.json +27 -1
- package/src/assessment.ts +14 -3
- package/src/evaluation.ts +55 -9
- package/src/index.ts +7 -0
- package/src/inventories/aq10.ts +185 -0
- package/src/inventories/asrs6.ts +132 -0
- package/src/inventories/audit.ts +234 -0
- package/src/inventories/dass21.ts +4 -1
- package/src/inventories/gad7.ts +4 -1
- package/src/inventories/index.ts +20 -2
- package/src/inventories/mini-ipip.ts +274 -0
- package/src/inventories/phq9.ts +4 -1
- package/src/inventories/who5.ts +153 -0
- package/src/types.ts +26 -2
package/src/evaluation.ts
CHANGED
|
@@ -9,6 +9,7 @@ import type {
|
|
|
9
9
|
ScaleResult,
|
|
10
10
|
ScoreBand,
|
|
11
11
|
ScoreFlag,
|
|
12
|
+
SumScoring,
|
|
12
13
|
TriggeredFlag,
|
|
13
14
|
} from "./types.ts";
|
|
14
15
|
import { PsytoolsError } from "./errors.ts";
|
|
@@ -16,16 +17,19 @@ import { PsytoolsError } from "./errors.ts";
|
|
|
16
17
|
/**
|
|
17
18
|
* Evaluates answers against an assessment definition.
|
|
18
19
|
*
|
|
19
|
-
*
|
|
20
|
-
*
|
|
20
|
+
* Every answer is first validated against the assessment: the question must
|
|
21
|
+
* exist and the value must belong to its option scale. Then `evaluator` is
|
|
22
|
+
* used when given; otherwise the definition's declarative `scoring`
|
|
23
|
+
* (`sum` or `subscales`) applies.
|
|
21
24
|
*
|
|
22
|
-
* @throws PsytoolsError `
|
|
25
|
+
* @throws PsytoolsError `unknown_question` | `invalid_value` | `no_scoring`
|
|
23
26
|
*/
|
|
24
27
|
export function evaluate(
|
|
25
28
|
definition: AssessmentDefinition,
|
|
26
29
|
answers: AnswerMap,
|
|
27
30
|
evaluator?: Evaluator,
|
|
28
31
|
): EvaluationResult {
|
|
32
|
+
assertValidAnswers(definition, answers);
|
|
29
33
|
if (evaluator) return evaluator(definition, answers);
|
|
30
34
|
|
|
31
35
|
const scoring = definition.scoring;
|
|
@@ -37,7 +41,28 @@ export function evaluate(
|
|
|
37
41
|
}
|
|
38
42
|
switch (scoring.kind) {
|
|
39
43
|
case "sum":
|
|
40
|
-
return evaluateSum(definition, answers, scoring
|
|
44
|
+
return evaluateSum(definition, answers, scoring);
|
|
45
|
+
case "count": {
|
|
46
|
+
let score = 0;
|
|
47
|
+
for (const item of scoring.items) {
|
|
48
|
+
const question = requireQuestion(definition, item.questionId);
|
|
49
|
+
const answered = answers[question.id];
|
|
50
|
+
if (answered === undefined) continue;
|
|
51
|
+
const values = (question.options ?? definition.options).map((o) => o.value);
|
|
52
|
+
const effective = question.reverseScored
|
|
53
|
+
? Math.max(...values) + Math.min(...values) - answered
|
|
54
|
+
: answered;
|
|
55
|
+
if (effective >= item.minValue) score += 1;
|
|
56
|
+
}
|
|
57
|
+
return {
|
|
58
|
+
kind: "scale",
|
|
59
|
+
score,
|
|
60
|
+
min: 0,
|
|
61
|
+
max: scoring.items.length,
|
|
62
|
+
...bandOf(score, scoring.bands),
|
|
63
|
+
flags: triggeredFlags(answers, scoring.flags),
|
|
64
|
+
};
|
|
65
|
+
}
|
|
41
66
|
case "subscales": {
|
|
42
67
|
const scales: MultiScaleResult["scales"] = scoring.subscales.map((subscale) => {
|
|
43
68
|
const questions = subscale.questionIds.map((id) => requireQuestion(definition, id));
|
|
@@ -66,20 +91,41 @@ export function evaluate(
|
|
|
66
91
|
}
|
|
67
92
|
}
|
|
68
93
|
|
|
94
|
+
function assertValidAnswers(definition: AssessmentDefinition, answers: AnswerMap): void {
|
|
95
|
+
const questions = new Map(definition.questions.map((q) => [q.id, q]));
|
|
96
|
+
for (const [questionId, value] of Object.entries(answers)) {
|
|
97
|
+
const question = questions.get(questionId);
|
|
98
|
+
if (!question) {
|
|
99
|
+
throw new PsytoolsError(
|
|
100
|
+
"unknown_question",
|
|
101
|
+
`Answers reference unknown question "${questionId}" in assessment "${definition.id}"`,
|
|
102
|
+
);
|
|
103
|
+
}
|
|
104
|
+
const options = question.options ?? definition.options;
|
|
105
|
+
if (!options.some((option) => option.value === value)) {
|
|
106
|
+
const allowed = options.map((option) => option.value).join(", ");
|
|
107
|
+
throw new PsytoolsError(
|
|
108
|
+
"invalid_value",
|
|
109
|
+
`Value ${value} is not a valid option for question "${questionId}" (allowed: ${allowed})`,
|
|
110
|
+
);
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
|
|
69
115
|
function evaluateSum(
|
|
70
116
|
definition: AssessmentDefinition,
|
|
71
117
|
answers: AnswerMap,
|
|
72
|
-
|
|
73
|
-
flags?: ScoreFlag[],
|
|
118
|
+
scoring: SumScoring,
|
|
74
119
|
): ScaleResult {
|
|
75
|
-
const
|
|
120
|
+
const multiplier = scoring.multiplier ?? 1;
|
|
121
|
+
const { score, min, max } = sumQuestions(definition, definition.questions, answers, multiplier);
|
|
76
122
|
return {
|
|
77
123
|
kind: "scale",
|
|
78
124
|
score,
|
|
79
125
|
min,
|
|
80
126
|
max,
|
|
81
|
-
...bandOf(score, bands),
|
|
82
|
-
flags: triggeredFlags(answers, flags),
|
|
127
|
+
...bandOf(score, scoring.bands),
|
|
128
|
+
flags: triggeredFlags(answers, scoring.flags),
|
|
83
129
|
};
|
|
84
130
|
}
|
|
85
131
|
|
package/src/index.ts
CHANGED
|
@@ -8,6 +8,8 @@ export type {
|
|
|
8
8
|
SumScoring,
|
|
9
9
|
SubscaleDefinition,
|
|
10
10
|
SubscaleScoring,
|
|
11
|
+
CountScoringItem,
|
|
12
|
+
CountScoring,
|
|
11
13
|
ScoringDefinition,
|
|
12
14
|
AnswerMap,
|
|
13
15
|
ResponseStatus,
|
|
@@ -35,6 +37,11 @@ export {
|
|
|
35
37
|
phq9,
|
|
36
38
|
gad7,
|
|
37
39
|
dass21,
|
|
40
|
+
who5,
|
|
41
|
+
asrs6,
|
|
42
|
+
aq10,
|
|
43
|
+
audit,
|
|
44
|
+
miniIpip,
|
|
38
45
|
inventories,
|
|
39
46
|
loadInventory,
|
|
40
47
|
twoWeekFrequencyOptions,
|
|
@@ -0,0 +1,185 @@
|
|
|
1
|
+
import type { AssessmentDefinition } from "../types.ts";
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* AQ-10 — Autism Spectrum Quotient, 10-item version (adults).
|
|
5
|
+
*
|
|
6
|
+
* Recommended by NICE (UK) for quick screening of autistic traits in
|
|
7
|
+
* adults. Each item is answered on a 4-point agree/disagree scale but
|
|
8
|
+
* scores binary: one point per item answered in the trait direction
|
|
9
|
+
* ("agree" on items 1, 7, 8, 10; "disagree" on the rest, modeled here as
|
|
10
|
+
* `reverseScored`). A total of 6 or more suggests referral for a
|
|
11
|
+
* specialist autism assessment (Allison et al., 2012). Free to use.
|
|
12
|
+
*/
|
|
13
|
+
export const aq10: AssessmentDefinition = {
|
|
14
|
+
id: "aq10",
|
|
15
|
+
version: "1.0.0",
|
|
16
|
+
title: {
|
|
17
|
+
en: "Autism Spectrum Quotient (AQ-10) — Adult",
|
|
18
|
+
tr: "Otizm Spektrum Anketi (AQ-10) — Yetişkin",
|
|
19
|
+
de: "Autismus-Spektrum-Quotient (AQ-10) — Erwachsene",
|
|
20
|
+
},
|
|
21
|
+
description: {
|
|
22
|
+
en: "A 10-item screening questionnaire for autistic traits in adults, condensed from the 50-item Autism Spectrum Quotient.",
|
|
23
|
+
tr: "50 maddelik Otizm Spektrum Anketi'nden kısaltılmış, yetişkinlerde otistik özellikleri taramak için 10 maddelik bir ölçek.",
|
|
24
|
+
de: "Ein 10-Item-Screeningfragebogen für autistische Merkmale bei Erwachsenen, verkürzt aus dem 50-Item-Autismus-Spektrum-Quotienten.",
|
|
25
|
+
},
|
|
26
|
+
instructions: {
|
|
27
|
+
en: "For each statement, select the answer that best describes you.",
|
|
28
|
+
tr: "Her ifade için sizi en iyi tanımlayan yanıtı işaretleyin.",
|
|
29
|
+
de: "Wählen Sie zu jeder Aussage die Antwort, die Sie am besten beschreibt.",
|
|
30
|
+
},
|
|
31
|
+
defaultLocale: "en",
|
|
32
|
+
options: [
|
|
33
|
+
{
|
|
34
|
+
value: 0,
|
|
35
|
+
label: { en: "Definitely disagree", tr: "Kesinlikle katılmıyorum", de: "Stimme überhaupt nicht zu" },
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
value: 1,
|
|
39
|
+
label: { en: "Slightly disagree", tr: "Biraz katılmıyorum", de: "Stimme eher nicht zu" },
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
value: 2,
|
|
43
|
+
label: { en: "Slightly agree", tr: "Biraz katılıyorum", de: "Stimme eher zu" },
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
value: 3,
|
|
47
|
+
label: { en: "Definitely agree", tr: "Kesinlikle katılıyorum", de: "Stimme voll und ganz zu" },
|
|
48
|
+
},
|
|
49
|
+
],
|
|
50
|
+
questions: [
|
|
51
|
+
{
|
|
52
|
+
id: "aq10-1",
|
|
53
|
+
text: {
|
|
54
|
+
en: "I often notice small sounds when others do not",
|
|
55
|
+
tr: "Başkalarının fark etmediği küçük sesleri sıklıkla fark ederim",
|
|
56
|
+
de: "Ich nehme oft leise Geräusche wahr, die andere nicht bemerken",
|
|
57
|
+
},
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
id: "aq10-2",
|
|
61
|
+
text: {
|
|
62
|
+
en: "I usually concentrate more on the whole picture, rather than the small details",
|
|
63
|
+
tr: "Genellikle küçük ayrıntılardan çok resmin bütününe odaklanırım",
|
|
64
|
+
de: "Ich konzentriere mich meist mehr auf das Gesamtbild als auf die kleinen Details",
|
|
65
|
+
},
|
|
66
|
+
reverseScored: true,
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
id: "aq10-3",
|
|
70
|
+
text: {
|
|
71
|
+
en: "I find it easy to do more than one thing at once",
|
|
72
|
+
tr: "Aynı anda birden fazla iş yapmak benim için kolaydır",
|
|
73
|
+
de: "Es fällt mir leicht, mehrere Dinge gleichzeitig zu tun",
|
|
74
|
+
},
|
|
75
|
+
reverseScored: true,
|
|
76
|
+
},
|
|
77
|
+
{
|
|
78
|
+
id: "aq10-4",
|
|
79
|
+
text: {
|
|
80
|
+
en: "If there is an interruption, I can switch back to what I was doing very quickly",
|
|
81
|
+
tr: "Bir kesinti olursa, yapmakta olduğum işe çok hızlı bir şekilde geri dönebilirim",
|
|
82
|
+
de: "Wenn ich unterbrochen werde, kann ich sehr schnell zu meiner Tätigkeit zurückkehren",
|
|
83
|
+
},
|
|
84
|
+
reverseScored: true,
|
|
85
|
+
},
|
|
86
|
+
{
|
|
87
|
+
id: "aq10-5",
|
|
88
|
+
text: {
|
|
89
|
+
en: "I find it easy to 'read between the lines' when someone is talking to me",
|
|
90
|
+
tr: "Biri benimle konuşurken 'satır aralarını okumak' benim için kolaydır",
|
|
91
|
+
de: "Es fällt mir leicht, 'zwischen den Zeilen zu lesen', wenn jemand mit mir spricht",
|
|
92
|
+
},
|
|
93
|
+
reverseScored: true,
|
|
94
|
+
},
|
|
95
|
+
{
|
|
96
|
+
id: "aq10-6",
|
|
97
|
+
text: {
|
|
98
|
+
en: "I know how to tell if someone listening to me is getting bored",
|
|
99
|
+
tr: "Beni dinleyen birinin sıkılmaya başladığını nasıl anlayacağımı bilirim",
|
|
100
|
+
de: "Ich erkenne, ob jemand, der mir zuhört, sich zu langweilen beginnt",
|
|
101
|
+
},
|
|
102
|
+
reverseScored: true,
|
|
103
|
+
},
|
|
104
|
+
{
|
|
105
|
+
id: "aq10-7",
|
|
106
|
+
text: {
|
|
107
|
+
en: "When I'm reading a story I find it difficult to work out the characters' intentions",
|
|
108
|
+
tr: "Bir öykü okurken karakterlerin niyetlerini anlamakta zorlanırım",
|
|
109
|
+
de: "Wenn ich eine Geschichte lese, fällt es mir schwer, die Absichten der Figuren zu erkennen",
|
|
110
|
+
},
|
|
111
|
+
},
|
|
112
|
+
{
|
|
113
|
+
id: "aq10-8",
|
|
114
|
+
text: {
|
|
115
|
+
en: "I like to collect information about categories of things (e.g. types of car, types of bird, types of train, types of plant etc)",
|
|
116
|
+
tr: "Belirli kategorilerdeki şeyler hakkında bilgi toplamayı severim (örneğin araba türleri, kuş türleri, tren türleri, bitki türleri vb.)",
|
|
117
|
+
de: "Ich sammle gern Informationen über Kategorien von Dingen (z. B. Auto-, Vogel-, Zug- oder Pflanzenarten)",
|
|
118
|
+
},
|
|
119
|
+
},
|
|
120
|
+
{
|
|
121
|
+
id: "aq10-9",
|
|
122
|
+
text: {
|
|
123
|
+
en: "I find it easy to work out what someone is thinking or feeling just by looking at their face",
|
|
124
|
+
tr: "Sadece yüzüne bakarak birinin ne düşündüğünü ya da hissettiğini anlamak benim için kolaydır",
|
|
125
|
+
de: "Es fällt mir leicht, allein am Gesicht abzulesen, was jemand denkt oder fühlt",
|
|
126
|
+
},
|
|
127
|
+
reverseScored: true,
|
|
128
|
+
},
|
|
129
|
+
{
|
|
130
|
+
id: "aq10-10",
|
|
131
|
+
text: {
|
|
132
|
+
en: "I find it difficult to work out people's intentions",
|
|
133
|
+
tr: "İnsanların niyetlerini anlamakta zorlanırım",
|
|
134
|
+
de: "Es fällt mir schwer, die Absichten anderer Menschen zu erkennen",
|
|
135
|
+
},
|
|
136
|
+
},
|
|
137
|
+
],
|
|
138
|
+
scoring: {
|
|
139
|
+
kind: "count",
|
|
140
|
+
items: [
|
|
141
|
+
{ questionId: "aq10-1", minValue: 2 },
|
|
142
|
+
{ questionId: "aq10-2", minValue: 2 },
|
|
143
|
+
{ questionId: "aq10-3", minValue: 2 },
|
|
144
|
+
{ questionId: "aq10-4", minValue: 2 },
|
|
145
|
+
{ questionId: "aq10-5", minValue: 2 },
|
|
146
|
+
{ questionId: "aq10-6", minValue: 2 },
|
|
147
|
+
{ questionId: "aq10-7", minValue: 2 },
|
|
148
|
+
{ questionId: "aq10-8", minValue: 2 },
|
|
149
|
+
{ questionId: "aq10-9", minValue: 2 },
|
|
150
|
+
{ questionId: "aq10-10", minValue: 2 },
|
|
151
|
+
],
|
|
152
|
+
bands: [
|
|
153
|
+
{
|
|
154
|
+
id: "below-threshold",
|
|
155
|
+
min: 0,
|
|
156
|
+
max: 5,
|
|
157
|
+
label: {
|
|
158
|
+
en: "Below screening threshold",
|
|
159
|
+
tr: "Tarama eşiğinin altında",
|
|
160
|
+
de: "Unterhalb der Screening-Schwelle",
|
|
161
|
+
},
|
|
162
|
+
},
|
|
163
|
+
{
|
|
164
|
+
id: "above-threshold",
|
|
165
|
+
min: 6,
|
|
166
|
+
max: 10,
|
|
167
|
+
label: {
|
|
168
|
+
en: "At or above threshold — consider referral for a specialist autism assessment",
|
|
169
|
+
tr: "Eşikte ya da üzerinde — uzman otizm değerlendirmesine yönlendirme düşünülmelidir",
|
|
170
|
+
de: "An oder über der Schwelle — Überweisung zu einer spezialisierten Autismus-Diagnostik erwägen",
|
|
171
|
+
},
|
|
172
|
+
},
|
|
173
|
+
],
|
|
174
|
+
},
|
|
175
|
+
meta: {
|
|
176
|
+
reference:
|
|
177
|
+
"Allison, C., Auyeung, B., & Baron-Cohen, S. (2012). Toward brief \"Red Flags\" for autism screening: The Short Autism Spectrum Quotient and the Short Quantitative Checklist in 1,000 cases and 3,000 controls. Journal of the American Academy of Child & Adolescent Psychiatry, 51(2), 202-212.",
|
|
178
|
+
license:
|
|
179
|
+
"Free with conditions — (c) Autism Research Centre, University of Cambridge; distributed free of charge, NICE-recommended for clinical screening. Verify licensing with ARC before embedding in commercial products.",
|
|
180
|
+
licenseFlag: "free-with-conditions",
|
|
181
|
+
translationProvenance:
|
|
182
|
+
"en: reproduced from the original. tr/de: AI translation (Anthropic Claude, claude-fable-5) from the original English; official translations were not consulted and the texts are unverified. See SOURCES.md.",
|
|
183
|
+
note: "Each item scores 1 point in the trait direction; disagree-scored items are modeled as reverseScored.",
|
|
184
|
+
},
|
|
185
|
+
};
|
|
@@ -0,0 +1,132 @@
|
|
|
1
|
+
import type { AssessmentDefinition } from "../types.ts";
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* ASRS v1.1 — Adult ADHD Self-Report Scale, 6-item screener (Part A).
|
|
5
|
+
*
|
|
6
|
+
* Developed by the WHO and the Workgroup on Adult ADHD (Harvard Medical
|
|
7
|
+
* School / NYU). Items 1–3 count as screen-positive from "Sometimes" and
|
|
8
|
+
* items 4–6 from "Often"; four or more positive items indicate symptoms
|
|
9
|
+
* highly consistent with adult ADHD and warrant further investigation
|
|
10
|
+
* (Kessler et al., 2005). Free to distribute and score.
|
|
11
|
+
*/
|
|
12
|
+
export const asrs6: AssessmentDefinition = {
|
|
13
|
+
id: "asrs6",
|
|
14
|
+
version: "1.0.0",
|
|
15
|
+
title: {
|
|
16
|
+
en: "Adult ADHD Self-Report Scale (ASRS-v1.1) Screener",
|
|
17
|
+
tr: "Erişkin DEHB Kendi Bildirim Ölçeği (ASRS-v1.1) Tarama Formu",
|
|
18
|
+
de: "Selbstbeurteilungsskala für ADHS bei Erwachsenen (ASRS-v1.1) Screener",
|
|
19
|
+
},
|
|
20
|
+
description: {
|
|
21
|
+
en: "A 6-item screener for adult attention-deficit/hyperactivity disorder, drawn from the WHO's full 18-item ASRS.",
|
|
22
|
+
tr: "DSÖ'nün 18 maddelik tam ASRS ölçeğinden türetilmiş, erişkin dikkat eksikliği/hiperaktivite bozukluğu için 6 maddelik bir tarama aracı.",
|
|
23
|
+
de: "Ein 6-Item-Screener für Aufmerksamkeitsdefizit-/Hyperaktivitätsstörung bei Erwachsenen, abgeleitet aus der vollständigen 18-Item-ASRS der WHO.",
|
|
24
|
+
},
|
|
25
|
+
instructions: {
|
|
26
|
+
en: "As you answer each question, select the option that best describes how you have felt and conducted yourself over the past 6 months.",
|
|
27
|
+
tr: "Her soruyu yanıtlarken, son 6 ay içinde kendinizi nasıl hissettiğinizi ve nasıl davrandığınızı en iyi tanımlayan seçeneği işaretleyin.",
|
|
28
|
+
de: "Wählen Sie bei jeder Frage die Option, die am besten beschreibt, wie Sie sich in den letzten 6 Monaten gefühlt und verhalten haben.",
|
|
29
|
+
},
|
|
30
|
+
defaultLocale: "en",
|
|
31
|
+
options: [
|
|
32
|
+
{ value: 0, label: { en: "Never", tr: "Hiçbir zaman", de: "Nie" } },
|
|
33
|
+
{ value: 1, label: { en: "Rarely", tr: "Nadiren", de: "Selten" } },
|
|
34
|
+
{ value: 2, label: { en: "Sometimes", tr: "Bazen", de: "Manchmal" } },
|
|
35
|
+
{ value: 3, label: { en: "Often", tr: "Sık sık", de: "Oft" } },
|
|
36
|
+
{ value: 4, label: { en: "Very often", tr: "Çok sık", de: "Sehr oft" } },
|
|
37
|
+
],
|
|
38
|
+
questions: [
|
|
39
|
+
{
|
|
40
|
+
id: "asrs6-1",
|
|
41
|
+
text: {
|
|
42
|
+
en: "How often do you have trouble wrapping up the final details of a project, once the challenging parts have been done?",
|
|
43
|
+
tr: "Bir işin zor kısımlarını tamamladıktan sonra, son ayrıntıları toparlayıp işi bitirmekte ne sıklıkla güçlük yaşarsınız?",
|
|
44
|
+
de: "Wie oft haben Sie Schwierigkeiten, die letzten Details eines Projekts abzuschließen, nachdem die schwierigen Teile erledigt sind?",
|
|
45
|
+
},
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
id: "asrs6-2",
|
|
49
|
+
text: {
|
|
50
|
+
en: "How often do you have difficulty getting things in order when you have to do a task that requires organization?",
|
|
51
|
+
tr: "Organizasyon gerektiren bir iş yapmanız gerektiğinde, işleri sıraya koymakta ne sıklıkla güçlük çekersiniz?",
|
|
52
|
+
de: "Wie oft haben Sie Schwierigkeiten, Ordnung in Dinge zu bringen, wenn Sie eine Aufgabe erledigen müssen, die Organisation erfordert?",
|
|
53
|
+
},
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
id: "asrs6-3",
|
|
57
|
+
text: {
|
|
58
|
+
en: "How often do you have problems remembering appointments or obligations?",
|
|
59
|
+
tr: "Randevularınızı ya da yükümlülüklerinizi hatırlamakta ne sıklıkla güçlük çekersiniz?",
|
|
60
|
+
de: "Wie oft haben Sie Probleme, sich an Termine oder Verpflichtungen zu erinnern?",
|
|
61
|
+
},
|
|
62
|
+
},
|
|
63
|
+
{
|
|
64
|
+
id: "asrs6-4",
|
|
65
|
+
text: {
|
|
66
|
+
en: "When you have a task that requires a lot of thought, how often do you avoid or delay getting started?",
|
|
67
|
+
tr: "Çok fazla düşünmeyi gerektiren bir işiniz olduğunda, başlamayı ne sıklıkla erteler ya da başlamaktan kaçınırsınız?",
|
|
68
|
+
de: "Wie oft vermeiden oder verzögern Sie den Beginn einer Aufgabe, die viel Nachdenken erfordert?",
|
|
69
|
+
},
|
|
70
|
+
},
|
|
71
|
+
{
|
|
72
|
+
id: "asrs6-5",
|
|
73
|
+
text: {
|
|
74
|
+
en: "How often do you fidget or squirm with your hands or feet when you have to sit down for a long time?",
|
|
75
|
+
tr: "Uzun süre oturmanız gerektiğinde, ne sıklıkla ellerinizi ya da ayaklarınızı kıpırdatır veya yerinizde kımıldanırsınız?",
|
|
76
|
+
de: "Wie oft zappeln Sie mit Händen oder Füßen, wenn Sie längere Zeit sitzen müssen?",
|
|
77
|
+
},
|
|
78
|
+
},
|
|
79
|
+
{
|
|
80
|
+
id: "asrs6-6",
|
|
81
|
+
text: {
|
|
82
|
+
en: "How often do you feel overly active and compelled to do things, like you were driven by a motor?",
|
|
83
|
+
tr: "Ne sıklıkla, sanki bir motor tarafından sürülüyormuşçasına kendinizi aşırı hareketli ve bir şeyler yapmaya zorlanmış hissedersiniz?",
|
|
84
|
+
de: "Wie oft fühlen Sie sich übermäßig aktiv und getrieben, Dinge zu tun, als würden Sie von einem Motor angetrieben?",
|
|
85
|
+
},
|
|
86
|
+
},
|
|
87
|
+
],
|
|
88
|
+
scoring: {
|
|
89
|
+
kind: "count",
|
|
90
|
+
items: [
|
|
91
|
+
{ questionId: "asrs6-1", minValue: 2 },
|
|
92
|
+
{ questionId: "asrs6-2", minValue: 2 },
|
|
93
|
+
{ questionId: "asrs6-3", minValue: 2 },
|
|
94
|
+
{ questionId: "asrs6-4", minValue: 3 },
|
|
95
|
+
{ questionId: "asrs6-5", minValue: 3 },
|
|
96
|
+
{ questionId: "asrs6-6", minValue: 3 },
|
|
97
|
+
],
|
|
98
|
+
bands: [
|
|
99
|
+
{
|
|
100
|
+
id: "negative",
|
|
101
|
+
min: 0,
|
|
102
|
+
max: 3,
|
|
103
|
+
label: {
|
|
104
|
+
en: "Symptoms not consistent with adult ADHD",
|
|
105
|
+
tr: "Belirtiler erişkin DEHB ile uyumlu değil",
|
|
106
|
+
de: "Symptome nicht mit ADHS im Erwachsenenalter vereinbar",
|
|
107
|
+
},
|
|
108
|
+
},
|
|
109
|
+
{
|
|
110
|
+
id: "positive",
|
|
111
|
+
min: 4,
|
|
112
|
+
max: 6,
|
|
113
|
+
label: {
|
|
114
|
+
en: "Symptoms highly consistent with adult ADHD — further investigation warranted",
|
|
115
|
+
tr: "Belirtiler erişkin DEHB ile yüksek düzeyde uyumlu — ileri değerlendirme gerekir",
|
|
116
|
+
de: "Symptome in hohem Maße mit ADHS im Erwachsenenalter vereinbar — weitere Abklärung angezeigt",
|
|
117
|
+
},
|
|
118
|
+
},
|
|
119
|
+
],
|
|
120
|
+
},
|
|
121
|
+
meta: {
|
|
122
|
+
reference:
|
|
123
|
+
"Kessler, R. C., Adler, L., Ames, M., Demler, O., Faraone, S., Hiripi, E., et al. (2005). The World Health Organization Adult ADHD Self-Report Scale (ASRS): a short screening scale for use in the general population. Psychological Medicine, 35(2), 245-256.",
|
|
124
|
+
license:
|
|
125
|
+
"Free with conditions — (c) WHO / Workgroup on Adult ADHD; free for clinical and research use. Verify licensing with the rights holders before embedding in commercial products.",
|
|
126
|
+
licenseFlag: "free-with-conditions",
|
|
127
|
+
translationProvenance:
|
|
128
|
+
"en: reproduced from the original. tr/de: AI translation (Anthropic Claude, claude-fable-5) from the original English; official translations were not consulted and the texts are unverified. See SOURCES.md.",
|
|
129
|
+
timeframe: "past 6 months",
|
|
130
|
+
note: "The score counts screen-positive items, not symptom severity.",
|
|
131
|
+
},
|
|
132
|
+
};
|
|
@@ -0,0 +1,234 @@
|
|
|
1
|
+
import type { AssessmentDefinition, AssessmentOption } from "../types.ts";
|
|
2
|
+
|
|
3
|
+
const yearlyFrequencyOptions: AssessmentOption[] = [
|
|
4
|
+
{ value: 0, label: { en: "Never", tr: "Hiçbir zaman", de: "Nie" } },
|
|
5
|
+
{
|
|
6
|
+
value: 1,
|
|
7
|
+
label: { en: "Less than monthly", tr: "Ayda birden az", de: "Seltener als einmal im Monat" },
|
|
8
|
+
},
|
|
9
|
+
{ value: 2, label: { en: "Monthly", tr: "Ayda bir", de: "Einmal im Monat" } },
|
|
10
|
+
{ value: 3, label: { en: "Weekly", tr: "Haftada bir", de: "Einmal pro Woche" } },
|
|
11
|
+
{
|
|
12
|
+
value: 4,
|
|
13
|
+
label: { en: "Daily or almost daily", tr: "Hemen her gün", de: "Täglich oder fast täglich" },
|
|
14
|
+
},
|
|
15
|
+
];
|
|
16
|
+
|
|
17
|
+
// Items 9 and 10 score 0 / 2 / 4 — there is no 1 or 3.
|
|
18
|
+
const injuryOptions: AssessmentOption[] = [
|
|
19
|
+
{ value: 0, label: { en: "No", tr: "Hayır", de: "Nein" } },
|
|
20
|
+
{
|
|
21
|
+
value: 2,
|
|
22
|
+
label: {
|
|
23
|
+
en: "Yes, but not in the last year",
|
|
24
|
+
tr: "Evet, ama geçen yıl içinde değil",
|
|
25
|
+
de: "Ja, aber nicht im letzten Jahr",
|
|
26
|
+
},
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
value: 4,
|
|
30
|
+
label: {
|
|
31
|
+
en: "Yes, during the last year",
|
|
32
|
+
tr: "Evet, geçen yıl içinde",
|
|
33
|
+
de: "Ja, im letzten Jahr",
|
|
34
|
+
},
|
|
35
|
+
},
|
|
36
|
+
];
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* AUDIT — Alcohol Use Disorders Identification Test.
|
|
40
|
+
*
|
|
41
|
+
* 10 items developed by the WHO to detect hazardous and harmful alcohol
|
|
42
|
+
* consumption. Items use variable point systems: 1–8 score 0–4 on
|
|
43
|
+
* item-specific scales, 9–10 score 0/2/4. Total 0–40, interpreted in the
|
|
44
|
+
* four risk zones of the WHO manual (Babor et al., 2001). Free to use.
|
|
45
|
+
*/
|
|
46
|
+
export const audit: AssessmentDefinition = {
|
|
47
|
+
id: "audit",
|
|
48
|
+
version: "1.0.0",
|
|
49
|
+
title: {
|
|
50
|
+
en: "Alcohol Use Disorders Identification Test (AUDIT)",
|
|
51
|
+
tr: "Alkol Kullanım Bozuklukları Tanıma Testi (AUDIT)",
|
|
52
|
+
de: "Alcohol Use Disorders Identification Test (AUDIT)",
|
|
53
|
+
},
|
|
54
|
+
description: {
|
|
55
|
+
en: "A 10-item WHO screening instrument for hazardous and harmful alcohol consumption and possible alcohol dependence.",
|
|
56
|
+
tr: "Tehlikeli ve zararlı alkol kullanımı ile olası alkol bağımlılığını taramak için DSÖ tarafından geliştirilmiş 10 maddelik bir ölçek.",
|
|
57
|
+
de: "Ein 10-Item-Screeninginstrument der WHO für riskanten und schädlichen Alkoholkonsum sowie mögliche Alkoholabhängigkeit.",
|
|
58
|
+
},
|
|
59
|
+
instructions: {
|
|
60
|
+
en: "Please answer the following questions about your use of alcoholic beverages during the past 12 months. One drink means one standard drink (e.g. a glass of beer or wine, or a single measure of spirits).",
|
|
61
|
+
tr: "Lütfen aşağıdaki soruları son 12 ay içindeki alkollü içecek kullanımınızı düşünerek yanıtlayın. Bir kadeh, bir standart içkiyi ifade eder (örneğin bir bardak bira ya da şarap veya tek ölçü yüksek alkollü içki).",
|
|
62
|
+
de: "Bitte beantworten Sie die folgenden Fragen zu Ihrem Konsum alkoholischer Getränke in den letzten 12 Monaten. Ein Glas entspricht einem Standardgetränk (z. B. ein Glas Bier oder Wein oder ein einfacher Schnaps).",
|
|
63
|
+
},
|
|
64
|
+
defaultLocale: "en",
|
|
65
|
+
options: yearlyFrequencyOptions,
|
|
66
|
+
questions: [
|
|
67
|
+
{
|
|
68
|
+
id: "audit-1",
|
|
69
|
+
text: {
|
|
70
|
+
en: "How often do you have a drink containing alcohol?",
|
|
71
|
+
tr: "Ne sıklıkla alkollü içki içersiniz?",
|
|
72
|
+
de: "Wie oft trinken Sie Alkohol?",
|
|
73
|
+
},
|
|
74
|
+
options: [
|
|
75
|
+
{ value: 0, label: { en: "Never", tr: "Hiçbir zaman", de: "Nie" } },
|
|
76
|
+
{
|
|
77
|
+
value: 1,
|
|
78
|
+
label: { en: "Monthly or less", tr: "Ayda bir ya da daha az", de: "Einmal im Monat oder seltener" },
|
|
79
|
+
},
|
|
80
|
+
{
|
|
81
|
+
value: 2,
|
|
82
|
+
label: { en: "2 to 4 times a month", tr: "Ayda 2-4 kez", de: "2- bis 4-mal im Monat" },
|
|
83
|
+
},
|
|
84
|
+
{
|
|
85
|
+
value: 3,
|
|
86
|
+
label: { en: "2 to 3 times a week", tr: "Haftada 2-3 kez", de: "2- bis 3-mal pro Woche" },
|
|
87
|
+
},
|
|
88
|
+
{
|
|
89
|
+
value: 4,
|
|
90
|
+
label: {
|
|
91
|
+
en: "4 or more times a week",
|
|
92
|
+
tr: "Haftada 4 ya da daha fazla",
|
|
93
|
+
de: "4-mal oder öfter pro Woche",
|
|
94
|
+
},
|
|
95
|
+
},
|
|
96
|
+
],
|
|
97
|
+
},
|
|
98
|
+
{
|
|
99
|
+
id: "audit-2",
|
|
100
|
+
text: {
|
|
101
|
+
en: "How many drinks containing alcohol do you have on a typical day when you are drinking?",
|
|
102
|
+
tr: "İçki içtiğiniz normal bir günde kaç kadeh içersiniz?",
|
|
103
|
+
de: "Wenn Sie Alkohol trinken, wie viele Gläser trinken Sie dann üblicherweise an einem Tag?",
|
|
104
|
+
},
|
|
105
|
+
options: [
|
|
106
|
+
{ value: 0, label: { en: "1 or 2", tr: "1 ya da 2", de: "1 oder 2" } },
|
|
107
|
+
{ value: 1, label: { en: "3 or 4", tr: "3 ya da 4", de: "3 oder 4" } },
|
|
108
|
+
{ value: 2, label: { en: "5 or 6", tr: "5 ya da 6", de: "5 oder 6" } },
|
|
109
|
+
{ value: 3, label: { en: "7 to 9", tr: "7 ila 9", de: "7 bis 9" } },
|
|
110
|
+
{ value: 4, label: { en: "10 or more", tr: "10 ya da daha fazla", de: "10 oder mehr" } },
|
|
111
|
+
],
|
|
112
|
+
},
|
|
113
|
+
{
|
|
114
|
+
id: "audit-3",
|
|
115
|
+
text: {
|
|
116
|
+
en: "How often do you have six or more drinks on one occasion?",
|
|
117
|
+
tr: "Bir seferde altı ya da daha fazla kadeh içtiğiniz ne sıklıkla olur?",
|
|
118
|
+
de: "Wie oft trinken Sie sechs oder mehr Gläser Alkohol bei einer Gelegenheit?",
|
|
119
|
+
},
|
|
120
|
+
},
|
|
121
|
+
{
|
|
122
|
+
id: "audit-4",
|
|
123
|
+
text: {
|
|
124
|
+
en: "How often during the last year have you found that you were not able to stop drinking once you had started?",
|
|
125
|
+
tr: "Geçtiğimiz yıl içinde, içmeye başladıktan sonra kendinizi durduramadığınızı ne sıklıkla fark ettiniz?",
|
|
126
|
+
de: "Wie oft konnten Sie im letzten Jahr nicht mehr mit dem Trinken aufhören, nachdem Sie einmal angefangen hatten?",
|
|
127
|
+
},
|
|
128
|
+
},
|
|
129
|
+
{
|
|
130
|
+
id: "audit-5",
|
|
131
|
+
text: {
|
|
132
|
+
en: "How often during the last year have you failed to do what was normally expected from you because of drinking?",
|
|
133
|
+
tr: "Geçtiğimiz yıl içinde, içki yüzünden sizden normalde beklenenleri ne sıklıkla yapamadınız?",
|
|
134
|
+
de: "Wie oft konnten Sie im letzten Jahr Ihren Verpflichtungen nicht nachkommen, weil Sie getrunken hatten?",
|
|
135
|
+
},
|
|
136
|
+
},
|
|
137
|
+
{
|
|
138
|
+
id: "audit-6",
|
|
139
|
+
text: {
|
|
140
|
+
en: "How often during the last year have you needed a first drink in the morning to get yourself going after a heavy drinking session?",
|
|
141
|
+
tr: "Geçtiğimiz yıl içinde, yoğun içilen bir geceden sonra kendinize gelmek için sabah ilk iş olarak bir içkiye ne sıklıkla ihtiyaç duydunuz?",
|
|
142
|
+
de: "Wie oft brauchten Sie im letzten Jahr morgens ein erstes Glas Alkohol, um nach einem Abend mit viel Alkohol wieder auf die Beine zu kommen?",
|
|
143
|
+
},
|
|
144
|
+
},
|
|
145
|
+
{
|
|
146
|
+
id: "audit-7",
|
|
147
|
+
text: {
|
|
148
|
+
en: "How often during the last year have you had a feeling of guilt or remorse after drinking?",
|
|
149
|
+
tr: "Geçtiğimiz yıl içinde, içki içtikten sonra ne sıklıkla suçluluk ya da pişmanlık duydunuz?",
|
|
150
|
+
de: "Wie oft hatten Sie im letzten Jahr Schuldgefühle oder Gewissensbisse, nachdem Sie getrunken hatten?",
|
|
151
|
+
},
|
|
152
|
+
},
|
|
153
|
+
{
|
|
154
|
+
id: "audit-8",
|
|
155
|
+
text: {
|
|
156
|
+
en: "How often during the last year have you been unable to remember what happened the night before because you had been drinking?",
|
|
157
|
+
tr: "Geçtiğimiz yıl içinde, içki yüzünden bir önceki gece olanları ne sıklıkla hatırlayamadınız?",
|
|
158
|
+
de: "Wie oft konnten Sie sich im letzten Jahr nicht an das erinnern, was am Vorabend geschehen war, weil Sie getrunken hatten?",
|
|
159
|
+
},
|
|
160
|
+
},
|
|
161
|
+
{
|
|
162
|
+
id: "audit-9",
|
|
163
|
+
text: {
|
|
164
|
+
en: "Have you or someone else been injured as a result of your drinking?",
|
|
165
|
+
tr: "İçki içmeniz yüzünden siz ya da bir başkası yaralandı mı?",
|
|
166
|
+
de: "Haben Sie sich oder eine andere Person schon einmal verletzt, weil Sie getrunken hatten?",
|
|
167
|
+
},
|
|
168
|
+
options: injuryOptions,
|
|
169
|
+
},
|
|
170
|
+
{
|
|
171
|
+
id: "audit-10",
|
|
172
|
+
text: {
|
|
173
|
+
en: "Has a relative or friend or a doctor or another health worker been concerned about your drinking or suggested you cut down?",
|
|
174
|
+
tr: "Bir yakınınız, arkadaşınız, bir doktor ya da başka bir sağlık çalışanı içki içmenizden kaygı duydu mu ya da azaltmanızı önerdi mi?",
|
|
175
|
+
de: "Hat ein Verwandter, Freund, Arzt oder eine andere medizinische Fachkraft sich schon einmal Sorgen über Ihren Alkoholkonsum gemacht oder Ihnen geraten, weniger zu trinken?",
|
|
176
|
+
},
|
|
177
|
+
options: injuryOptions,
|
|
178
|
+
},
|
|
179
|
+
],
|
|
180
|
+
scoring: {
|
|
181
|
+
kind: "sum",
|
|
182
|
+
bands: [
|
|
183
|
+
{
|
|
184
|
+
id: "zone-1",
|
|
185
|
+
min: 0,
|
|
186
|
+
max: 7,
|
|
187
|
+
label: {
|
|
188
|
+
en: "Zone I: low risk — alcohol education",
|
|
189
|
+
tr: "Bölge I: düşük risk — alkol konusunda bilgilendirme",
|
|
190
|
+
de: "Zone I: geringes Risiko — Aufklärung über Alkohol",
|
|
191
|
+
},
|
|
192
|
+
},
|
|
193
|
+
{
|
|
194
|
+
id: "zone-2",
|
|
195
|
+
min: 8,
|
|
196
|
+
max: 15,
|
|
197
|
+
label: {
|
|
198
|
+
en: "Zone II: hazardous drinking — simple advice recommended",
|
|
199
|
+
tr: "Bölge II: tehlikeli içme — basit öneri/danışmanlık önerilir",
|
|
200
|
+
de: "Zone II: riskanter Konsum — einfache Beratung empfohlen",
|
|
201
|
+
},
|
|
202
|
+
},
|
|
203
|
+
{
|
|
204
|
+
id: "zone-3",
|
|
205
|
+
min: 16,
|
|
206
|
+
max: 19,
|
|
207
|
+
label: {
|
|
208
|
+
en: "Zone III: harmful drinking — brief counselling and continued monitoring",
|
|
209
|
+
tr: "Bölge III: zararlı içme — kısa danışmanlık ve izlem",
|
|
210
|
+
de: "Zone III: schädlicher Konsum — Kurzintervention und weitere Beobachtung",
|
|
211
|
+
},
|
|
212
|
+
},
|
|
213
|
+
{
|
|
214
|
+
id: "zone-4",
|
|
215
|
+
min: 20,
|
|
216
|
+
max: 40,
|
|
217
|
+
label: {
|
|
218
|
+
en: "Zone IV: possible dependence — referral for diagnostic evaluation",
|
|
219
|
+
tr: "Bölge IV: olası bağımlılık — tanısal değerlendirme için yönlendirme",
|
|
220
|
+
de: "Zone IV: mögliche Abhängigkeit — Überweisung zur diagnostischen Abklärung",
|
|
221
|
+
},
|
|
222
|
+
},
|
|
223
|
+
],
|
|
224
|
+
},
|
|
225
|
+
meta: {
|
|
226
|
+
reference:
|
|
227
|
+
"Babor, T. F., Higgins-Biddle, J. C., Saunders, J. B., & Monteiro, M. G. (2001). AUDIT: The Alcohol Use Disorders Identification Test — Guidelines for Use in Primary Care (2nd ed.). Geneva: World Health Organization.",
|
|
228
|
+
license: "Free — WHO permits reproduction and use of the AUDIT without permission",
|
|
229
|
+
licenseFlag: "free",
|
|
230
|
+
translationProvenance:
|
|
231
|
+
"en: reproduced from the original. tr/de: AI translation (Anthropic Claude, claude-fable-5) from the original English; official translations were not consulted and the texts are unverified. See SOURCES.md.",
|
|
232
|
+
timeframe: "past 12 months",
|
|
233
|
+
},
|
|
234
|
+
};
|