Skip to content

Commit d483eda

Browse files
committed
feat: add STARKSTEIN_APATHY_SCALE
1 parent e037a28 commit d483eda

1 file changed

Lines changed: 254 additions & 0 deletions

File tree

  • packages/instrument-library/src/forms/STARKSTEIN_APATHY_SCALE
Lines changed: 254 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,254 @@
1+
import { defineInstrument } from '/runtime/v1/@opendatacapture/runtime-core';
2+
import { z } from '/runtime/v1/zod@3.23.x';
3+
4+
const $fieldOptionsValidation = z.number().int().gte(0).lte(3);
5+
const fieldOptionsLikertScale = {
6+
en: {
7+
0: 'Not at all',
8+
1: 'Slightly',
9+
2: 'Some',
10+
3: 'A lot'
11+
},
12+
fr: {
13+
0: 'Pas du tout',
14+
1: 'Un peut',
15+
2: 'Assez',
16+
3: 'Beaucoup'
17+
}
18+
};
19+
20+
export default defineInstrument({
21+
kind: 'FORM',
22+
language: ['en', 'fr'],
23+
validationSchema: z.object({
24+
interestedInLearningNewThings: $fieldOptionsValidation,
25+
anythingInterestsYou: $fieldOptionsValidation,
26+
concernedAboutOwnCondition: $fieldOptionsValidation,
27+
putMuchEffortIntoThings: $fieldOptionsValidation,
28+
alwaysLookForSomethingToDo: $fieldOptionsValidation,
29+
havePlanAndGoalsForFuture: $fieldOptionsValidation,
30+
haveMotivation: $fieldOptionsValidation,
31+
haveEnergyForDailyActivities: $fieldOptionsValidation,
32+
needToTellYouWhatToDoEveryday: $fieldOptionsValidation,
33+
indifferentToThings: $fieldOptionsValidation,
34+
unconcernedWithManyThings: $fieldOptionsValidation,
35+
needPushToGetStarted: $fieldOptionsValidation,
36+
notHappyOrSadJustNeutral: $fieldOptionsValidation,
37+
areYouApathetic: $fieldOptionsValidation
38+
}),
39+
details: {
40+
description: {
41+
en: 'For each question, choose the answer that best describes your thoughts, feelings, and behaviors in the last 4 weeks.',
42+
fr: 'Pour chaque question, choisissez la réponse qui décrit le mieux vos pensées, sentiments et comportements au cours des 4 dernières semaines.'
43+
},
44+
license: 'PUBLIC-DOMAIN',
45+
title: {
46+
en: 'Starkstein Apathy Scale',
47+
fr: "Échelle d'apathie de Starkstein"
48+
},
49+
referenceUrl: 'https://www.ncbi.nlm.nih.gov/pmc/articles/PMC8467636/',
50+
estimatedDuration: 5,
51+
instructions: {
52+
en: [
53+
'For each question, choose the answer that best describes your thoughts, feelings, and behaviors in the last 4 weeks.'
54+
],
55+
fr: [
56+
'Pour chaque question, choisissez la réponse qui décrit le mieux vos pensées, sentiments et comportements au cours des 4 dernières semaines.'
57+
]
58+
}
59+
},
60+
content: {
61+
interestedInLearningNewThings: {
62+
kind: 'number',
63+
variant: 'radio',
64+
label: {
65+
en: 'Are you interested in learning new things?',
66+
fr: 'Êtes-vous intéressé à apprendre de nouvelles choses?'
67+
},
68+
options: fieldOptionsLikertScale
69+
},
70+
anythingInterestsYou: {
71+
kind: 'number',
72+
variant: 'radio',
73+
label: {
74+
en: 'Does anything interest you?',
75+
fr: "Est-ce qu'il y a des choses qui vous intéressent?"
76+
},
77+
options: fieldOptionsLikertScale
78+
},
79+
concernedAboutOwnCondition: {
80+
kind: 'number',
81+
variant: 'radio',
82+
label: {
83+
en: 'Are you concerned about your condition?',
84+
fr: 'Êtes-vous préoccupé par votre état de santé ?'
85+
},
86+
options: fieldOptionsLikertScale
87+
},
88+
putMuchEffortIntoThings: {
89+
kind: 'number',
90+
variant: 'radio',
91+
label: {
92+
en: 'Do you put much effort into things?',
93+
fr: "Est-ce que vous mettez beaucoup d'effort dans ce que vous faites?"
94+
},
95+
options: fieldOptionsLikertScale
96+
},
97+
alwaysLookForSomethingToDo: {
98+
kind: 'number',
99+
variant: 'radio',
100+
label: {
101+
en: 'Are you always looking for something to do?',
102+
fr: "Vous êtes toujours à la recherche d'une activité ?"
103+
},
104+
options: fieldOptionsLikertScale
105+
},
106+
havePlanAndGoalsForFuture: {
107+
kind: 'number',
108+
variant: 'radio',
109+
label: {
110+
en: 'Do you have plans and goals for the future?',
111+
fr: "Avez-vous des projets et des objectifs pour l'avenir ?"
112+
},
113+
options: fieldOptionsLikertScale
114+
},
115+
haveMotivation: {
116+
kind: 'number',
117+
variant: 'radio',
118+
label: {
119+
en: 'Do you have motivation?',
120+
fr: 'Êtes-vous motivé (e)?'
121+
},
122+
options: fieldOptionsLikertScale
123+
},
124+
haveEnergyForDailyActivities: {
125+
kind: 'number',
126+
variant: 'radio',
127+
label: {
128+
en: 'Do you have the energy for daily activities?',
129+
fr: "Avez-vous de l'énergie pour les activités quotidiennes? "
130+
},
131+
options: fieldOptionsLikertScale
132+
},
133+
needToTellYouWhatToDoEveryday: {
134+
kind: 'number',
135+
variant: 'radio',
136+
label: {
137+
en: 'Does someone have to tell you what to do each day?',
138+
fr: "Est-ce que quelqu'un doit vous dire quoi faire à chaque jour? "
139+
},
140+
options: fieldOptionsLikertScale
141+
},
142+
indifferentToThings: {
143+
kind: 'number',
144+
variant: 'radio',
145+
label: {
146+
en: 'Are you indifferent to things?',
147+
fr: 'Est-ce que les choses vous laissent indifférent(e)s? '
148+
},
149+
options: fieldOptionsLikertScale
150+
},
151+
unconcernedWithManyThings: {
152+
kind: 'number',
153+
variant: 'radio',
154+
label: {
155+
en: 'Are you unconcerned with many things?',
156+
fr: 'Êtes-vous indifférent à beaucoup de choses ?'
157+
},
158+
options: fieldOptionsLikertScale
159+
},
160+
needPushToGetStarted: {
161+
kind: 'number',
162+
variant: 'radio',
163+
label: {
164+
en: 'Do you need a push to get started on things?',
165+
fr: "Avez-vous besoin d'être poussé(e) pour commencer des choses? "
166+
},
167+
options: fieldOptionsLikertScale
168+
},
169+
notHappyOrSadJustNeutral: {
170+
kind: 'number',
171+
variant: 'radio',
172+
label: {
173+
en: 'Are you neither happy nor sad, just in between?',
174+
fr: "Vous n'êtes ni heureux ni triste, mais entre les deux ?"
175+
},
176+
options: fieldOptionsLikertScale
177+
},
178+
areYouApathetic: {
179+
kind: 'number',
180+
variant: 'radio',
181+
label: {
182+
en: 'Would you consider yourself apathetic?',
183+
fr: 'Est-ce que vous vous considérez comme étant apathique?'
184+
},
185+
options: fieldOptionsLikertScale
186+
}
187+
},
188+
internal: {
189+
name: 'STARKSTEIN_APATHY_SCALE',
190+
edition: 1
191+
},
192+
measures: {
193+
interestedInLearningNewThings: {
194+
kind: 'const',
195+
ref: 'interestedInLearningNewThings'
196+
},
197+
anythingInterestsYou: {
198+
kind: 'const',
199+
ref: 'anythingInterestsYou'
200+
},
201+
concernedAboutOwnCondition: {
202+
kind: 'const',
203+
ref: 'concernedAboutOwnCondition'
204+
},
205+
putMuchEffortIntoThings: {
206+
kind: 'const',
207+
ref: 'putMuchEffortIntoThings'
208+
},
209+
alwaysLookForSomethingToDo: {
210+
kind: 'const',
211+
ref: 'alwaysLookForSomethingToDo'
212+
},
213+
havePlanAndGoalsForFuture: {
214+
kind: 'const',
215+
ref: 'havePlanAndGoalsForFuture'
216+
},
217+
haveMotivation: {
218+
kind: 'const',
219+
ref: 'haveMotivation'
220+
},
221+
haveEnergyForDailyActivities: {
222+
kind: 'const',
223+
ref: 'haveEnergyForDailyActivities'
224+
},
225+
needToTellYouWhatToDoEveryday: {
226+
kind: 'const',
227+
ref: 'needToTellYouWhatToDoEveryday'
228+
},
229+
indifferentToThings: {
230+
kind: 'const',
231+
ref: 'indifferentToThings'
232+
},
233+
unconcernedWithManyThings: {
234+
kind: 'const',
235+
ref: 'unconcernedWithManyThings'
236+
},
237+
needPushToGetStarted: {
238+
kind: 'const',
239+
ref: 'needPushToGetStarted'
240+
},
241+
notHappyOrSadJustNeutral: {
242+
kind: 'const',
243+
ref: 'notHappyOrSadJustNeutral'
244+
},
245+
areYouApathetic: {
246+
kind: 'const',
247+
ref: 'areYouApathetic'
248+
}
249+
},
250+
tags: {
251+
en: ['Apathy'],
252+
fr: ['Apathie']
253+
}
254+
});

0 commit comments

Comments
 (0)