-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.json
273 lines (270 loc) · 8.46 KB
/
config.json
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
{
"name" : "Appointment Scheduler",
"namespace" : "Stanford\\AppointmentScheduler",
"description": "Allow users to Schedule Office Hours or training sessions",
"authors" : [
{
"name" : "Ihab Zeedia",
"email" : "[email protected]",
"institution": "Stanford University"
},
{
"name" : "Jordan Schultz",
"email" : "[email protected]",
"institution": "Stanford University"
}
],
"permissions": [
"redcap_every_page_before_render",
"redcap_survey_complete",
"redcap_module_link_check_display",
"redcap_survey_page_top"
],
"no-auth-pages": [
"src/calendar",
"src/slots",
"src/summary",
"src/book",
"src/manage",
"src/manage_calendars",
"src/cancel",
"src/reschedule",
"src/participants_list",
"src/list",
"src/types",
"src/survey"
],
"links": {
"project": [
{
"name": "Appointment Scheduler",
"icon": "brick",
"url": "src/types.php",
"show-header-and-footer": false
}
]
},
"system-settings": [
{
"key": "enable-system-debug-logging",
"name": "<b>Enable Debug Logging (system-wide)</b> <i>(Requires emLogger)</i>",
"required": false,
"type": "checkbox"
}
],
"project-settings": [
{
"key": "description",
"name": "<h6 style='text-align:center;color:red'><b>Organize project fields into an easy-to-read table</b></h6>This tool allows users to format data from your project into an easy-to-read table structure. Summarize uses the configuration specified below to determine which fields to include and how to display the data. HTML is generated for each record and each configuration and the html is stored in a project field that is specified in the configuration. The html can then be piped to a descriptive field to be displayed on a project form or can be used to pipe project information into emails or surveys.<br><br>The data that can be used in a Summarize table is confined to project fields in the same event. If you would like to display project fields across events or fields from another project, please use the Data Table External Module instead.",
"type": "descriptive"
},
{
"key": "instance",
"name": "<b>Configure Appointment Scheduler Instance</b>",
"required": true,
"type": "sub_settings",
"repeatable": true,
"sub_settings": [
{
"key": "instance_description",
"name": "<b>Add a description for this scheduler</b><br/>",
"required": true,
"type": "textarea"
},
{
"key": "default_view",
"name": "<b>Select Default View</b>",
"required": false,
"type": "dropdown",
"choices": [
{
"name": "List",
"value": "1"
},
{
"name": "Calendar",
"value": "2"
}
]
},
{
"key": "slot_event_id",
"name": "<b>Appointment Slot Event</b><br>Select the arm/event where each record corresponds to an appointment slot that can be reserved. This event must have the 'Slots' form enabled",
"required": true,
"type": "event-list"
},
{
"key": "reservation_event_id",
"name": "<b>Appointment Reservation Event</b><br>Select the arm/event where each record corresponds to a reserved appointment slot. This event must have the 'Reservation' form enabled",
"required": true,
"type": "event-list"
},
{
"key": "survey_section",
"name": "<h6 style='text-align:center;color:red'><b>Config for Scheduling Appointment after completing a survey</b></h6>",
"type": "descriptive"
},
{
"key": "instrument_id_for_complementary_appointment",
"name": "<b>Select Survey Instrument</b></br>Select Survey Instrument to be followed by Option to Book follow up appointment.",
"required": false,
"type": "form-list"
},
{
"key": "survey-scheduler-header",
"name": "<b>Header for Survey Scheduler",
"required": false,
"type": "text",
"branchingLogic": {
"field": "instrument_id_for_complementary_appointment",
"op": "<>",
"value": ""
}
},
{
"key": "survey_record_id_field",
"name": "<b>Please select survey instrument field that will be replaced with reservation button and will hold reservation ID after submitting the survey.</b>",
"required": false,
"type": "field-list",
"branchingLogic": {
"field": "instrument_id_for_complementary_appointment",
"op": "<>",
"value": ""
}
},
{
"key": "title",
"name": "<b>Title for Appointment</b><br/>Alternately you can add a title before you pipe in the result",
"required": false,
"type": "textarea"
},
{
"key": "options_config",
"name": "<b>Options</b>",
"required": false,
"type": "descriptive"
},
{
"key": "enable-redcap-calendar",
"name": "<b>Integrate REDCap calendar</b> Show REDCap calendar records in Appointment scheduler. ",
"required": false,
"type": "checkbox"
},
{
"key": "show_attending_options",
"name": "<b>Display Attending Options</b>",
"required": false,
"type": "dropdown",
"choices": [
{
"name": "Yes",
"value": "1"
},
{
"name": "No",
"value": "0"
}
]
},
{
"key": "show_attending_default",
"name": "<b>Select the Default Attending Option</b>",
"required": false,
"type": "dropdown",
"branchingLogic": {
"field": "show_attending_options",
"value": "0"
},
"choices": [
{
"name": "Virtual via Zoom Meeting",
"value": "1"
},
{
"name": "Redwood City Campus",
"value": "2"
}
]
},
{
"key": "show_notes",
"name": "<b>Display Notes field on reservation form</b>",
"required": false,
"type": "dropdown",
"choices": [
{
"name": "Yes",
"value": "1"
},
{
"name": "No",
"value": "0"
}
]
},
{
"key": "note_textarea_label",
"name": "<b>Textarea Label</b><br>Label will be displayed above note textarea",
"required": false,
"type": "text",
"branchingLogic": {
"field": "show_notes",
"value": "1"
}
},
{
"key": "show_projects",
"name": "<b>Display Projects ID field on reservation form</b>",
"required": false,
"type": "dropdown",
"choices": [
{
"name": "Yes",
"value": "1"
},
{
"name": "No",
"value": "0"
}
]
},
{
"key": "emails_config",
"name": "<b>Email`s Configuration</b>",
"required": false,
"type": "descriptive"
},
{
"key": "sender_email",
"name": "<b>Sender Email(By default [email protected])</b>",
"required": false,
"type": "text"
},
{
"key": "sender_name",
"name": "<b>Sender Name(By default REDCap Admin)</b>",
"required": false,
"type": "text"
},
{
"key": "calendar_subject",
"name": "<b>Calendar Email Subject</b>",
"required": false,
"type": "text"
},
{
"key": "calendar_body",
"name": "<b>Calendar Email Body</b>",
"required": false,
"type": "textarea"
}
]
},
{
"key": "enable-project-debug-logging",
"name": "<b>Enable Debug Logging</b></h6><i> (Requires emLogger)</i><br>If you have questions enabling debugging, please contact the REDCap team for help.",
"required": false,
"type": "checkbox"
}
]
}