-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfig.json
More file actions
183 lines (183 loc) · 7.7 KB
/
config.json
File metadata and controls
183 lines (183 loc) · 7.7 KB
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
{
"name": "Calendar Questions",
"description": "Ask simple questions in a calendar format with specified date ranges and branching logic",
"namespace": "UWMadison\\CalendarQuestions",
"authors": [
{
"name": "Adam Nunez",
"email": "Adam.Nunez@ctri.wisc.edu",
"institution": "UW Madison - Center for Tobacco Research and Intervention"
}
],
"framework-version": 15,
"project-settings": [
{
"key": "calendar-config",
"name": "<b>Calendar</b>",
"type": "sub_settings",
"repeatable": true,
"sub_settings": [
{
"key": "name",
"name": "<b>Target Field</b><br>Used to place the calendar, must be a <b>Notes</b> field",
"type": "field-list",
"required": true
},
{
"key": "compress",
"name": "<b>Use data compression</b><br>By default, data is stored in a JSON format. This option will compress the data to save space when the the calendar field is near the character limit. Only enable this feature if you are near the character limit and understand how to work with compressed data.",
"type": "checkbox"
},
{
"key": "nofuture",
"name": "<b>Prevent Future Data Entry</b><br>Stop users from entering data on days in the future",
"type": "checkbox"
},
{
"key": "stats",
"name": "<b>Show Calendar Stats</b><br>Show data entry stats under the calendar",
"type": "checkbox"
},
{
"key": "calendar-questions",
"name": "<b>Questions</b>",
"type": "sub_settings",
"repeatable": true,
"sub_settings": [
{
"key": "question",
"name": "<b>Question Text</b>",
"type": "text"
},
{
"key": "question-type",
"name": "<b>Type</b>",
"type": "radio",
"choices": [
{
"value": "yesno",
"name": "Yes/No"
},
{
"value": "check",
"name": "Check Box"
},
{
"value": "text",
"name": "Text"
},
{
"value": "int",
"name": "Integer"
},
{
"value": "float",
"name": "Numeric"
}
]
},
{
"key": "question-variable-name",
"name": "<b>Variable Name</b><br>Name of data element stored in json",
"type": "text"
},
{
"key": "question-branch-event",
"name": "<b>Branching Logic</b><br>Display question only if [event][field] = [text]",
"type": "event-list"
},
{
"key": "question-branch-variable",
"name": "<b>Branching Logic Variable</b>",
"type": "field-list"
},
{
"key": "question-branch-value",
"name": "<b>Branching Logic Value</b>",
"type": "text"
},
{
"key": "question-replace",
"name": "<b>Replace Questions</b><br>List of variables to exclude (replace) when this question is shown on a day, comma delimited",
"type": "text"
}
]
},
{
"key": "calendar-range",
"name": "<b>Range(s)</b>",
"type": "sub_settings",
"repeatable": true,
"sub_settings": [
{
"key": "start-event",
"name": "<b>Start Range</b><br>Date field",
"type": "event-list"
},
{
"key": "start-variable",
"name": "<b>Start Range Variable</b>",
"type": "field-list"
},
{
"key": "end-event",
"name": "<b>End Range</b><br>Date field",
"type": "event-list"
},
{
"key": "end-variable",
"name": "<b>End Range Variable</b>",
"type": "field-list"
},
{
"key": "start-offset",
"name": "<b>Start Range Offset</b><br>Optional, add or subtract N days from the start date",
"type": "text"
},
{
"key": "end-offset",
"name": "<b>End Range Offset</b><br>Optional, add or subtract N days from the end date",
"type": "text"
},
{
"key": "range-exclude",
"name": "<b>Exclude Questions</b><br>List of variables to exlclude for this range, comma delimited",
"type": "text"
}
]
},
{
"key": "calendar-buttons",
"name": "<b>Mark All Button(s)</b>",
"type": "sub_settings",
"repeatable": true,
"sub_settings": [
{
"key": "button-text",
"name": "<b>Button Text</b>",
"type": "text"
},
{
"key": "button-tooltip",
"name": "<b>Button Tooltip</b>",
"type": "text"
},
{
"key": "button-var",
"name": "<b>Variable</b>",
"type": "text"
},
{
"key": "button-val",
"name": "<b>Value</b>",
"type": "text"
}
]
}
]
}
],
"compatibility": {
"redcap-version-min": "13.7.0"
}
}