-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.json
390 lines (390 loc) · 11.1 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
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
387
388
389
390
{
"name": "CHART Appointment Scheduler",
"namespace": "Stanford\\ChartAppointmentScheduler",
"description": "Allow users to Schedule CHART COVID-19 testing.",
"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/user",
"src/user_list",
"src/verify",
"src/request_code",
"src/send_code",
"src/login"
],
"links": {
"project": [
{
"name": "Manager Page",
"icon": "brick",
"url": "src/manager.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>Appointment Scheduler</b></h6>This tool will allow users to book pre-defined time slots for different purposes. Office Hours/ Health tests/ Survey Followup.",
"type": "descriptive"
},
{
"key": "testing-sites-event",
"name": "<b>Select Testing site Event</b>",
"required": true,
"type": "event-list"
},
{
"key": "validation-field",
"name": "<b>Select the field that user information will be validated against.</b>",
"required": true,
"type": "field-list"
},
{
"key": "ideal-window",
"name": "<b>Type the number of days of ideal window to schedule a follow up visit.</b>",
"required": true,
"type": "text"
},
{
"key": "allowed-window",
"name": "<b>Type the number of days of allowed window to schedule a follow up visit.</b>",
"required": true,
"type": "text"
},
{
"key": "blocked-event",
"name": "<b>Select the event which you want to block the booking after. Then specify initial block date and extended one.</b>",
"required": false,
"type": "event-list"
},
{
"key": "blocked-event-date",
"name": "<b>Event Initial block date(yyyy-mm-dd). </b>",
"required": false,
"type": "text",
"branchingLogic": {
"field": "blocked-event",
"op": "<>",
"value": ""
}
},
{
"key": "extended-blocked-event-date",
"name": "<b>Extended Event block date (yyyy-mm-dd). </b>",
"required": false,
"type": "text",
"branchingLogic": {
"field": "blocked-event",
"op": "<>",
"value": ""
}
},
{
"key": "blocked-event-error-message",
"name": "<b>Displayed message when Event is blocked. </b>",
"required": false,
"type": "text",
"branchingLogic": {
"field": "blocked-event",
"op": "<>",
"value": ""
}
},
{
"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": "participant_identifier",
"name": "<b>Please select the field where the user identifier will be saved.(not implemented yet)</b>",
"required": false,
"type": "field-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_location_options",
"name": "<b>Display Location Options</b>",
"required": false,
"type": "dropdown",
"choices": [
{
"name": "Yes",
"value": "1"
},
{
"name": "No",
"value": "0"
}
]
},
{
"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><i>you can use smart variables for Example: [start], [testing_sites_arm_3][country]</i>",
"required": false,
"type": "textarea"
}
]
},
{
"key": "twilio_config",
"name": "<b>Twilio Config</b>",
"required": false,
"type": "descriptive"
},
{
"key": "phone_number_country_code",
"name": "<b>Country Phone code</b>",
"required": false,
"type": "text"
},
{
"key": "twilio_sender_number",
"name": "<b>Twilio Phone number to send from(Numbers only)</b>",
"required": false,
"type": "text"
},
{
"key": "twilio_sid",
"name": "<b>Twilio SID(You can find it in your Twilio dashboard)</b>",
"required": false,
"type": "text"
},
{
"key": "twilio_token",
"name": "<b>Twilio Token(You can find it in your Twilio dashboard)</b>",
"required": false,
"type": "text"
},
{
"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"
}
]
}