-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathquestions.flow.ts
386 lines (352 loc) · 9.69 KB
/
questions.flow.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
/*
eslint-disable max-len,
sonarjs/no-duplicate-string,
*/
/**
* NOTE: the content of this file is for default/failover/demo usage ONLY!
* All the question content in this file should come from the backend.
* If you need to make changes to copy, contact your CMS admin.
*/
import { QUESTION_TYPE, IQuestion } from '@usds.gov/questionable-react-component';
import {
IDK, NO, YES, TQuestionMap,
} from '../lib';
/**
* 18 or under 18
*/
const A: Partial<IQuestion> = {
answers: [
{ id: '0', title: 'An adult (age 18 and over)' },
{ id: '1', title: 'A child (under age 18)' },
],
id: 'A',
title: 'Who do you want to check eligibility for?',
};
/**
* Birthday
*/
const B: Partial<IQuestion> = {
answers: [],
id: 'B',
info: "Most Social Security benefits have age requirements, so we'll use your birthday to see how old you are.",
subTitle: 'MM DD YYYY',
title: 'Enter your birthday.',
};
/**
* Is in high school
*/
const C: Partial<IQuestion> = {
answers: [YES, NO],
id: 'C',
title: 'Are you a full-time elementary or high school student?',
};
/**
* Has has a job in the US
*/
const D: Partial<IQuestion> = {
answers: [YES, NO],
id: 'D',
info: "Part of your paycheck goes into Social Security when you work in the United States or a U.S. territory. That's why your work history is important.",
title: 'Have you ever had a job?',
};
/**
* Currently working
*/
const E: Partial<IQuestion> = {
answers: [YES, NO],
id: 'E',
title: 'Do you receive income from a job right now?',
};
/**
* Worked 10 years or more
*/
const F: Partial<IQuestion> = {
answers: [YES, NO],
id: 'F',
info: "How long you've worked is also important. Ten years is often what's required.",
title: 'Have you worked for a total of 10 years or more?',
};
/**
* Has disability
*/
const G: Partial<IQuestion> = {
answers: [YES, NO],
id: 'G',
subTitle:
'If your answer is "Yes," you may have heard doctors, social workers, and others say you have a disability.',
title:
"Do you have a condition that prevents you from working or limits the type of work you're able to do?",
};
/**
* Disability will last > 1 year or be terminal
*/
const H: Partial<IQuestion> = {
answers: [YES, NO],
id: 'H',
info: 'Our disability benefits are there for you when your ability to work is affected for a long time.',
title:
'Do you expect the condition to affect your ability to work for a year or more or be terminal?',
};
/**
* Disability started before/after 22
*/
const I: Partial<IQuestion> = {
answers: [
{ id: '0', title: 'Before my 22nd birthday' },
{ id: '1', title: 'After my 22nd birthday' },
],
id: 'I',
info: 'One of our benefits looks at whether the condition started to affect you when you were a kid, teenager, or young adult.',
title:
'When did the condition start to affect your daily activities and ability to work?',
};
/**
* Receives state/fed assistance
*/
const J: Partial<IQuestion> = {
answers: [YES, NO],
id: 'J',
subTitle:
'Supplemental Nutritional Assistance Program (SNAP), Medicaid, and Temporary Assistance for Needy Families (TANF) are a few examples.',
title:
'Do you get state or federal government assistance to help pay for essentials like food, clothing, and a home?',
};
/**
* Hard to pay bills
*/
const K: Partial<IQuestion> = {
answers: [YES, NO],
id: 'K',
info: 'One of our benefits provides assistance if your income and other resources are limited.',
title: 'Is it hard to pay for essentials like food, clothing, and a home?',
};
/**
* Married
*/
const L: Partial<IQuestion> = {
answers: [
YES,
{ id: '1', order: 2, title: "Yes, but I'm separated from my spouse." },
{ id: '2', order: 3, title: 'No, but I was in the past.' },
{ id: '3', order: 4, title: "No, I've never been married." },
],
id: 'L',
info: "You may be eligible for spousal benefits based on a current or former spouse's work history.",
subTitle:
'Long-term partnerships often resemble marriage, but our benefits require legal recognition in your state.',
title: 'Are you married?',
};
/**
* Spouse gets SS benefits
*/
const M: Partial<IQuestion> = {
answers: [YES, NO],
id: 'M',
info: 'If they get Social Security payments right now, you may be eligible for spousal benefits.',
title: 'Does your spouse get Social Security benefits?',
};
/**
* Married before 60
*/
const N: Partial<IQuestion> = {
answers: [YES, NO],
id: 'N',
title: 'Did you marry your spouse before you turned 60?',
};
/**
* Divorced
*/
const O: Partial<IQuestion> = {
answers: [YES, NO],
id: 'O',
info: "You may be eligible for spousal benefits based on a former spouse's work history even though you're no longer married.",
title: 'Are you divorced?',
};
/**
* Married >= 10 years before divorce
*/
const P: Partial<IQuestion> = {
answers: [YES, NO],
id: 'P',
subTitle:
'If you\'ve been married multiple times, choose "Yes" if one of them lasted for 10 years or more.',
title: 'Were you married for 10 years or more before you got divorced?',
};
/**
* Former spouse worked
*/
const Q: Partial<IQuestion> = {
answers: [YES, NO, IDK],
id: 'Q',
info: "How long they've worked in the United States or a U.S. territory is important. Ten years is often what's required.",
title:
'Has your former spouse worked for 10 years or more?',
};
/**
* Widowed
*/
const R: Partial<IQuestion> = {
answers: [YES, NO],
id: 'R',
subTitle:
'"Widowed" may not be a term you use to describe yourself. It means that your spouse died during your marriage. It may have happened recently or a long time ago.',
title: 'Are you widowed?',
};
/**
* Deceased spouse worked
*/
const S: Partial<IQuestion> = {
answers: [YES, NO],
id: 'S',
info: 'You may be eligible for spousal benefits based on their work history.',
title:
'Did your spouse ever have a job in the United States or a U.S. territory before they died?',
};
/**
* Have disabled children
*/
const T: Partial<IQuestion> = {
answers: [YES, NO],
id: 'T',
info: 'One of our spousal benefits looks at whether you take care of disabled or young children.',
title: 'Do you have children who are disabled or under 16?',
};
/**
* Lost a parent
*/
const U: Partial<IQuestion> = {
answers: [YES, NO],
id: 'U',
subTitle:
'They may have been your birth, adoptive, or step parent, and may have died recently or a long time ago.',
title: 'Did your parent(s) pass away?',
};
/**
* Has surviving parents
*/
const V: Partial<IQuestion> = {
answers: [YES, NO],
id: 'V',
title:
'Do you have one or multiple parents who are alive?',
};
const W: Partial<IQuestion> = {
answers: [YES, NO, IDK],
id: 'W',
info: 'If they get Social Security payments right now, you may be eligible for one of our benefits for children.',
title: 'Do your parent(s) get Social Security benefits?',
};
/**
* Child has disability
*/
const X: Partial<IQuestion> = {
answers: [YES, NO],
id: 'X',
internalNotes: 'Children under 18',
subTitle:
'If your answer is "Yes", you may have heard doctors, social workers, and others say they have a disability.',
title:
'Does the child have a condition that significantly affects their daily activities?',
};
/**
* Child's disability will last > 1 or be terminal
*/
const Y: Partial<IQuestion> = {
answers: [YES, NO],
id: 'Y',
info: "One of our benefits is there for you when the child's daily activities are affected for a long time.",
title:
'Do you expect the condition to significantly affect their daily activities for a year or longer or be terminal?',
type: QUESTION_TYPE.MULTIPLE_CHOICE,
};
/**
* Child lost a parent
*/
const Z: Partial<IQuestion> = {
answers: [YES, NO],
id: 'Z',
internalNotes: 'Children under 18',
subTitle:
'The parent may have been their birth, adoptive, or step parent, and may have died recently or a long time ago.',
title: 'Did the child\'s parent(s) pass away?',
};
/**
* Child has surviving parent
*/
const AA: Partial<IQuestion> = {
answers: [YES, NO],
id: 'AA',
title:
'Do they have one or multiple parents who are alive?',
};
/**
* Surviving parents get SS
*/
const BB: Partial<IQuestion> = {
answers: [YES, NO, IDK],
id: 'BB',
info: 'If their parent(s) get Social Security payments right now, they may be eligible for one of our benefits for children.',
title: 'Do the child\'s parent(s) get Social Security benefits?',
};
/**
* Are parents employed
*/
const CC: Partial<IQuestion> = {
answers: [YES, NO],
id: 'CC',
title: 'Do their parent(s) receive income from a job right now?',
};
/**
* Are parents employed
*/
const DD: Partial<IQuestion> = {
answers: [YES, NO],
id: 'DD',
subTitle:
'Supplemental Nutritional Assistance Program (SNAP), Medicaid, and Temporary Assistance for Needy Families (TANF) are a few examples.',
title:
'Do the child\'s parent(s) get state or federal government assistance to help pay for essentials like food, clothing, and a home?',
};
/**
* Are parents employed
*/
const EE: Partial<IQuestion> = {
answers: [YES, NO],
id: 'EE',
info: 'One of our benefits provides assistance if the child has a disability and their parent(s) have limited income.',
title:
'Is it hard for their parent(s) to pay for essentials like food, clothing, and a home?',
};
export const questionContentMap: TQuestionMap = {
A,
AA,
B,
BB,
C,
CC,
D,
DD,
E,
EE,
F,
G,
H,
I,
J,
K,
L,
M,
N,
O,
P,
Q,
R,
S,
T,
U,
V,
W,
X,
Y,
Z,
};