generated from susom/redcap-em-template
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathconfig.json
366 lines (366 loc) · 11.2 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
{
"name": "OnCoreIntegration",
"namespace": "Stanford\\OnCoreIntegration",
"description": "An external module that manages syncing patient data between REDCap projects and their respective OnCore counterparts",
"documentation": "README.md",
"authors": [
{
"name": "Ihab Zeedia",
"email": "ihabz@stanford.edu",
"institution": "Stanford University"
},
{
"name": "Andrew Martin",
"email": "andy123@stanford.edu",
"institution": "Stanford University"
},
{
"name": "Irvin Szeto",
"email": "irvins@stanford.edu",
"institution": "Stanford University"
},
{
"name": "Lee Ann Yasukawa",
"email": "yasukawa@stanford.edu",
"institution": "Stanford University"
}
],
"framework-version": 12,
"enable-every-page-hooks-on-system-pages": false,
"links": {
"control-center": [
{
"name": "OnCore Demographic Options",
"icon": "fas fa-sliders-h",
"url": "pages/demo_options.php",
"show-header-and-footer": true
},
{
"name": "OnCore Logs Entity table",
"icon": "fas fa-database",
"url": "pages/logs_viewer.php"
},
{
"name": "OnCore Protocols table",
"icon": "fas fa-database",
"url": "pages/protocols_viewer.php"
},
{
"name": "OnCore Subjects table",
"icon": "fas fa-database",
"url": "pages/subjects_viewer.php"
},
{
"name": "REDCap OnCore Linked Records",
"icon": "fas fa-database",
"url": "pages/linkage_viewer.php"
},
{
"name": "OnCore Summary Page",
"icon": "fas fa-chart-bar",
"url": "pages/summary_page.php",
"show-header-and-footer": true
}
],
"project": [
{
"name": "OnCore Field Mapping",
"icon": "fas fa-check-circle",
"url": "pages/field_map.php",
"show-header-and-footer": true
},
{
"name": "Manual Sync With Oncore",
"icon": "fas fa-not-equal",
"url": "pages/sync_diff.php",
"show-header-and-footer": true
},
{
"name": "OnCore Logs",
"icon": "fas fa-database",
"url": "pages/projects_log_viewer.php",
"show-header-and-footer": true
}
]
},
"no-auth-pages": [
"pages/getEmrDemographics",
"ajax/cron",
"pages/test"
],
"enable-ajax-logging": true,
"auth-ajax-actions": [
"integrateOnCore",
"approveIntegrateOncore",
"triggerIRBSweep"
],
"project-settings": [
{
"key": "redcap-oncore-fields-mapping",
"name": "Json Object represent the fields mapping between REDCap and OnCore <h6><span class='text-lg badge badge-lg badge-danger'>DO NOT MODIFY</span></h6>",
"required": false,
"type": "textarea"
},
{
"key": "redcap-oncore-project-site-studies",
"name": "Json Object represent the subset of Study Sites for OnCore Subjects in this project <h6><span class='text-lg badge badge-lg badge-danger'>DO NOT MODIFY</span></h6>",
"required": false,
"type": "textarea"
},
{
"key": "redcap-oncore-consent-filter-logic",
"name": "Json encoded string representing the filter logic for 'consented' participants <h6><span class='text-lg badge badge-lg badge-danger'>DO NOT MODIFY</span></h6>",
"required": false,
"type": "textarea"
},
{
"key": "enable-project-debug-logging",
"name": "<b>Enable Debug Logging</b><br><i>(optional)</i> Requires installation and configuration of emLogger",
"required": false,
"type": "checkbox"
},
{
"key": "oncore-skipped-contacts",
"name": "Comma Separated list for OnCore Protocol Staff that API cant pull their demographics information.",
"required": false,
"type": "textarea"
},
{
"key": "redcap-oncore-project-oncore-subset",
"name": "Oncore project fields subset ",
"required": false,
"type": "textarea"
},
{
"key": "enable-auto-pull",
"name": "If checked a daily cronjob will will pull new OnCore Subjects and create REDCap records for these subjects.",
"required": false,
"type": "checkbox"
}
],
"system-settings": [
{
"key": "disable-functionality",
"name": "<b>Hide EM functionalities except alert messages.</b>",
"type": "checkbox"
},
{
"key": "display-alert-notification",
"name": "<b>Display a notification on top of All EM pages. </b>",
"type": "checkbox"
},
{
"key": "alert-notification",
"name": "<b>Notification body</b>",
"required": true,
"type": "rich-text",
"branchingLogic": {
"field": "display-alert-notification",
"op": "=",
"value": "true"
}
},
{
"key": "oncore-api-url",
"name": "<b>OnCore API URL</b>",
"type": "text"
},
{
"key": "oncore-api-auth-urn",
"name": "<b>OnCore API Auth URN</b>",
"type": "text"
},
{
"key": "oncore-api-urn",
"name": "<b>OnCore API URN</b>",
"type": "text"
},
{
"key": "global-client-id",
"name": "<b>Global OnCore Client ID</b>",
"type": "text"
},
{
"key": "global-client-secret",
"name": "<b>Global OnCore Client Secret</b>",
"type": "text"
},
{
"key": "global-access-token",
"name": "<b>Global OnCore Access Token</b>",
"type": "text"
},
{
"key": "global-token-timestamp",
"name": "<b>Expiration Unix timestamp for current access token</b>",
"type": "text"
},
{
"key": "mrn-verification-url",
"name": "<b>MRN Verification URL</b><i>(optional)</i>If MRN Verification and demographics retrieval is used from an EMR system, fill in the URL to the API endpoint.",
"required": false,
"type": "text"
},
{
"key": "libraries",
"name": "<b>OnCore Libraries</b>",
"required": true,
"type": "sub_settings",
"repeatable": true,
"sub_settings": [
{
"key": "library-name",
"name": "<b>OnCore Library Name</b>",
"required": true,
"type": "text"
},
{
"key": "library-oncore-field-definition",
"name": "<b>JSON Object that defines OnCore Fields info. For Examples check EM README.md</b>",
"required": true,
"type": "textarea"
},
{
"key": "library-oncore-staff-roles",
"name": "<b>OnCore Protocol`s Roles that are allowed to create Subjects in OnCore</b>",
"required": true,
"type": "sub_settings",
"repeatable": true,
"sub_settings": [
{
"key": "library-staff-role",
"name": "<b>Staff Role <span class='text-lg badge badge-lg badge-danger'>CASE SENSITIVE</span></b>",
"type": "text",
"required": true
}
]
},
{
"key": "description",
"name": "<hr>",
"type": "descriptive"
},
{
"key": "library-oncore-protocol-statuses",
"name": "<b>OnCore Protocol Statuses that can accept new Subjects via API. </b>",
"required": true,
"type": "sub_settings",
"repeatable": true,
"sub_settings": [
{
"key": "library-protocol-status",
"name": "<b>Protocol Status <span class='text-lg badge badge-lg badge-danger'>CASE SENSITIVE</span></b>",
"type": "text",
"required": true
}
]
},
{
"key": "description-2",
"name": "<hr>",
"type": "descriptive"
},
{
"key": "library-oncore-study-sites",
"name": "<b>Add all study sites defined on your OnCore instance. REDCap users will pick the site participated in their protocol.</b>",
"required": true,
"type": "sub_settings",
"repeatable": true,
"sub_settings": [
{
"key": "library-study-site",
"name": "<b>OnCore Study site <span class='text-lg badge badge-lg badge-danger'>CASE SENSITIVE</span></b>",
"type": "text",
"required": true
}
]
}
]
},
{
"key": "custom-error-messages",
"name": "<b>Attach custom error message to an existing OnCore error message.</b>",
"required": true,
"type": "sub_settings",
"repeatable": true,
"sub_settings": [
{
"key": "oncore-error-message",
"name": "<b>OnCore error message. this field MUST match returned error from OnCore.</b>",
"required": false,
"type": "textarea"
},
{
"key": "extra-error-message",
"name": "<b>New error message that will be attached to OnCore message.</b>",
"required": true,
"type": "rich-text",
"branchingLogic": {
"field": "oncore-error-message",
"op": "<>",
"value": ""
}
}
]
},
{
"key": "disable-ssl-verify",
"name": "For testing ONLY Disable SSL verification when making requests.",
"required": false,
"type": "checkbox"
},
{
"key": "remove-super-users-roles-restriction",
"name": "<span class='text-lg badge badge-lg badge-danger'>FOR DEBUGGING ONLY</span>For debugging disable OnCore Users roles restriction for REDCap superusers only.",
"required": false,
"type": "checkbox"
},
{
"key": "enable-system-debug-logging",
"name": "<b>Enable Debug Logging (system-wide)</b><i>(optional)</i> Requires installation and configuration of emLogger",
"required": false,
"type": "checkbox"
},
{
"key": "oncore-support-page-url",
"name": "Following Support Page link will be attached to Exception Modal. ",
"required": false,
"type": "text"
}
],
"crons": [
{
"cron_name": "oncore_protocols_scan",
"cron_description": "This cron will run daily to scan OnCore API to Links REDCap projects and OnCore Protocols.",
"method": "onCoreProtocolsScanCron",
"cron_frequency": "86400",
"cron_max_run_time": "3600"
},{
"cron_name": "oncore_subjects_update_demographics",
"cron_description": "This cron will run every two hours to scan OnCore API to update subjects demographics.",
"method": "updateOnCoreSubjectsDemographics",
"cron_frequency": "3600",
"cron_max_run_time": "3600"
},
{
"cron_name": "oncore_redcap_cleanup_deleted_projects",
"cron_description": "Daily Cron to delete related records from OnCore entity tables for deleted REDCap project.",
"method": "redcapCleanupEntityRecords",
"cron_frequency": "86400",
"cron_max_run_time": "3600"
},
{
"cron_name": "oncore_redcap_auto_pull",
"cron_description": "Daily Cron to pull new OnCore subjects and create REDCap records for these subjects.",
"method": "onCoreAutoPullCron",
"cron_frequency": "86400",
"cron_max_run_time": "3600"
}
],
"compatibility": {
"php-version-min": "8.0.0",
"php-version-max": "8.99.99",
"redcap-version-min": "13.1.0",
"redcap-version-max": ""
}
}