-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.json
200 lines (190 loc) · 7.32 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
{
"name": "Pediatric Acute Care Data Mirror",
"namespace": "Stanford\\PACE",
"description": "This module mirrors Rhapsode data in REDCap",
"documentation": "README.md",
"authors": [
{
"name": "Jordan Schultz",
"email": "[email protected]",
"institution": "Stanford University"
}
],
"framework-version": 13,
"enable-every-page-hooks-on-system-pages": false,
"enable-no-auth-logging": true,
"no-auth-pages": [
"cron/mirrorRhapsode"
],
"links": {
"project": [
{
"name": "Refresh Rhapsode Data",
"icon": "gear",
"url": "cron/mirrorRhapsode.php",
"show-header-and-footer": true
}
]
},
"system-settings": [
{
"key": "rhapsode-username",
"name": "<b>Rhapsode Username</b><br>Login username used to authenticate REST calls",
"required": true,
"type": "text"
},
{
"key": "rhapsode-password",
"name": "<b>Rhapsode Password</b><br>Login password used to authenticate REST calls",
"required": true,
"type": "text"
},
{
"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"
}
],
"project-settings": [
{
"key": "rhapsode-url",
"name": "<b>Rhapsode API Url Entry</b><br>The API endpoint(s) called on the Rhapsode Client",
"required": true,
"repeatable":true,
"type": "sub_settings",
"sub_settings":[
{
"key": "preset-url",
"name": "<b>API url</b><br>The actual API url to call in each request",
"type": "text",
"required": true
},
{
"key": "preset-type",
"name": "<b>Learning progress preset</b><br>Set true if the API url for this entry contains the Knowledge & Learning progress fields on Rhapsode",
"type": "dropdown",
"choices": [
{
"name": "False",
"value": 0
},
{
"name": "True",
"value": 1
}
],
"required": true
}
]
},
{
"key": "mapping-fields-description",
"type": "descriptive",
"name": "<h5><strong>Learner field mapping designations</strong></h5><i>Each Rhapsode field below should be mapped to a REDCap field to store its corresponding data</i>"
},
{
"key": "rhapsode_activity_last_week",
"name": "<b>Activity Last week</b><br>REDCap Field that 'activity last week' <i>(Rhapsode variable)</i> will be mirrored to",
"required": true,
"type": "field-list"
},
{
"key": "rhapsode_learning_progress",
"name": "<b>Learning Progress Field</b><br>REDCap Field that 'learning progress' % <i>(Rhapsode variable)</i> will be mirrored to",
"required": true,
"type": "field-list"
},
{
"key": "rhapsode_auto_refresh",
"name": "<b>Automatically Refresh</b><br>REDCap Field that 'automatically refresh' <i>(Rhapsode variable)</i> will be mirrored to",
"required": true,
"type": "field-list"
},
{
"key": "rhapsode_refresh_knowledge",
"name": "<b>Refresh Knowledge</b><br>REDCap Field that 'refresh knowledge' <i>(Rhapsode variable)</i> will be mirrored to",
"required": true,
"type": "field-list"
},
{
"key": "rhapsode_refresher_progress",
"name": "<b>Refresher Progress Field</b><br>REDCap Field that 'overall refresher progress' % <i>(Rhapsode variable)</i> will be mirrored to",
"required": true,
"type": "field-list"
},
{
"key": "mapping-fields-description-2",
"type": "descriptive",
"name": "<h5><strong> 6 Class field mapping designations</strong></h5><i>Each Rhapsode field below should be mapped to a REDCap field to store its corresponding data</i>"
},
{
"key": "rhapsode_difficulty_breathing",
"name": "<b>Difficulty Breathing Field</b><br>REDCap Field that 'Difficulty breathing' % <i>(Rhapsode variable)</i> will be mirrored to",
"required": true,
"type": "field-list"
},
{
"key": "rhapsode_term_birth_b",
"name": "<b>Term Birth B Field</b><br>REDCap Field that 'Term Birth B' % <i>(Rhapsode variable)</i> will be mirrored to",
"required": true,
"type": "field-list"
},
{
"key": "rhapsode_body_swelling",
"name": "<b>Body Swelling Field</b><br>REDCap Field that 'Body Swelling' % <i>(Rhapsode variable)</i> will be mirrored to",
"required": true,
"type": "field-list"
},
{
"key": "rhapsode_fever",
"name": "<b>Fever Field</b><br>REDCap Field that 'Fever' % <i>(Rhapsode variable)</i> will be mirrored to",
"required": true,
"type": "field-list"
},
{
"key": "rhapsode_term_birth_a",
"name": "<b>Term Birth A Field</b><br>REDCap Field that 'Term Birth A' % <i>(Rhapsode variable)</i> will be mirrored to",
"required": true,
"type": "field-list"
},
{
"key": "rhapsode_diarrhea",
"name": "<b>Diarrhea Field</b><br>REDCap Field that 'Diarrhea' % <i>(Rhapsode variable)</i> will be mirrored to",
"required": true,
"type": "field-list"
},
{
"key": "mapping-fields-description-3",
"type": "descriptive",
"name": "<h5><strong>Misc Fields</strong></h5>"
},
{
"key": "rhapsode_last_updated",
"name": "<b>Last Updated</b><br>REDCap Field that records the timestamp of last CRON run",
"required": false,
"type": "field-list"
},
{
"key": "rhapsode_last_offset",
"name": "<b>Last Offset value</b><br>Offset value used by API to determine which week to stop pulling participant data (After specified week, pulling will stop)",
"required": true,
"type": "text"
}
],
"crons": [
{
"cron_name": "mirror_rhapsode_data",
"cron_description": "This cron will run weekly, hitting the Rhapsode API and massaging data in a format REDCap can consume.",
"method": "callCron",
"cron_frequency": "86400",
"cron_max_run_time": "3600"
}
],
"compatibility": {
"php-version-min": "",
"php-version-max": "",
"redcap-version-min": "11.1.1",
"redcap-version-max": ""
}
}