This repository has been archived by the owner on Nov 19, 2017. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathquestionaire.js
93 lines (93 loc) · 2.58 KB
/
questionaire.js
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
module.exports = {
"questionnaire": [
{
"type": "block",
"text": "Master Screener",
"items": [
{
"type": "line",
"id": "age",
"text": "age"
},
{
"type": "line",
"id": "income",
"text": "income"
},
{
"type": "radiogroup",
"id": "has_children",
"text": "Do you have children under the age of 18?",
"defaultChoice": false,
"choices": [
{"has_children_yes": "Yes"},
{"has_children_no": "No"}
]
},
{
"type": "radiogroup",
"cond": "has_children_yes",
"id": "single_parent",
"text": "Are you a single parent?",
"defaultChoice": false,
"choices": [
{"single_parent_yes": "Yes"},
{"single_parent_no": "No"}
]
},
{
"type": "radiogroup",
"cond": "has_children_yes",
"text": "How many children under 18 do you have?",
"defaultChoice": false,
"choices": [
{"one_child": "1"},
{"two_children": "2"},
{"three_children": "3"},
{"four_children": "4"},
{"five_children": "5"}
]
},
{
"type": "radiogroup",
"cond": "has_children_yes",
"text": "Do you recieve the National Child Benefit Supplement?",
"defaultChoice": false,
"choices": [
{"national_child_benefit_yes": "yes"},
{"national_child_benefit_no": "no"}
]
},
{
"type": "radiogroup",
"cond": "has_children_yes",
"text": "Are your children born January 1, 2004 or later?",
"defaultChoice": false,
"choices": [
{"born_after_yes": "yes"},
{"born_after_no": "no"}
]
},
{
"type": "radiogroup",
"text": "Are you between the ages of 60 and 64?",
"defaultChoice": false,
"choices": [
{"sixty_sixtyFour_yes": "yes"},
{"sixty_sixtyFour_no": "no"}
]
},
{
"type": "radiogroup",
"text": "hase your spouse or common-law partner has died and you have not remarried or entered into a common-law relationship?",
"cond": "sixty_sixtyFour_yes",
"defaultChoice": false,
"choices": [
{"survived_spouse_yes": "yes"},
{"survived_spouse_no": "no"}
]
}
]
}
]
}