-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathsettings-schema.json
319 lines (319 loc) · 12.8 KB
/
settings-schema.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
{
"title": "config",
"description": "JSON Schema for AE Explorer configuration. Last updated with v3.1.1 release.",
"version": "3.4.1",
"type": "object",
"properties": {
"variables": {
"description": "an object that specifies how to map columns from the data file to the chart settings",
"type": "object",
"properties": {
"id": {
"title": "ID",
"description": "participant ID variable name",
"type": "string",
"default": "USUBJID"
},
"major": {
"title": "Major Category",
"description": "higher-level term variable name",
"type": "string",
"default": "AEBODSYS"
},
"minor": {
"title": "Minor Category",
"description": "lower-level term variable name",
"type": "string",
"default": "AEDECOD"
},
"group": {
"title": "Group",
"description": "group variable name, each value of which displays in its own column in the AE table unless settings.groups is defined.",
"type": "string",
"default": "ARM"
},
"details": {
"title": "Details",
"description": "an array listing each variable to display in the detail listing; if empty or unspecified, all variables in input data file will appear in detail listing",
"type": "array",
"items": {
"type": "object",
"properties": {
"value_col": {
"title": "Value Column",
"type": "string"
},
"label": {
"title": "Label",
"type": "string"
}
}
}
},
"filters": {
"title": "Filters",
"description": "An array of objects specifying categorical data filters to be included with the histogram.",
"type": "array",
"items": {
"type": "object",
"properties": {
"value_col": {
"title": "Value Column",
"type": "string"
},
"label": {
"title": "Label",
"type": "string"
},
"type": {
"title": "Type",
"type": "string",
"enum": [
"",
"event",
"participant"
]
},
"start": {
"type": "array",
"title": "Start Values",
"items": {
"type": "string"
}
}
}
},
"defaultObject": [
{
"value_col": "AESER",
"label": "Serious?",
"type": "event",
"start": null
},
{
"value_col": "AESEV",
"label": "Severity",
"type": "event",
"start": null
},
{
"value_col": "AEREL",
"label": "Relationship",
"type": "event",
"start": null
},
{
"value_col": "AEOUT",
"label": "Outcome",
"type": "event",
"start": null
}
]
}
}
},
"variableOptions": {
"title": "Variable Options",
"description": "An object that specifies valid options for the primary variable mappings (id, major, minor and groups). When 2+ options are specified for any given mapping, a control is drawn so that the user can interactively update chart to use any of the options.",
"type": "object",
"properties": {
"major": {
"title": "Major variable options",
"description": "Major variable options",
"type": "array",
"items": {
"type": "string"
}
},
"minor": {
"title": "Minor variable options",
"description": "Minor variable options",
"type": "array",
"items": {
"type": "string"
}
},
"group": {
"title": "Group variable options",
"description": "Group variable options",
"type": "array",
"items": {
"type": "string"
}
},
"id": {
"title": "ID variable options",
"description": "ID variable options",
"type": "array",
"items": {
"type": "string"
}
}
}
},
"groups": {
"title": "Group Levels",
"description": "An array specifying which levels of settings.variables.groups will appear as columns in the table.",
"type": "array",
"items": {
"type": "string"
}
},
"colors": {
"title": "Group Colors",
"description": "an array of colors that control the color of each group in the table",
"type": "array",
"items": {
"type": "string"
},
"defaultObject": [
"#377EB8",
"#4DAF4A",
"#984EA3",
"#FF7F00",
"#A65628",
"#F781BF",
"#E41A1C"
]
},
"defaults": {
"title": "Defaults",
"description": "an object containing default settings regarding appearance of the tables",
"type": "object",
"properties": {
"placeholderFlag": {
"title": "Placeholder Rows Definition",
"description": "Object to specify how to identify placeholder rows for participants with no AEs.",
"type": "object",
"properties": {
"value_col": {
"title": "Value Column",
"type": "string",
"default": "AEBODSYS"
},
"values": {
"title": "Placeholder Values",
"type": "array",
"items": {
"title": "Value",
"type": "string",
"default": "NA"
}
}
}
},
"maxPrevalence": {
"title": "Maximum Prevelance",
"description": "filters out any higher- and lower-level rows without at least one group rate above specified value.",
"type": "number",
"default": 0
},
"maxGroups": {
"title": "Maximum Group Count",
"description": "Maximum number of group levels allowed.",
"type": "number",
"default": 6
},
"totalCol": {
"title": "Show Total Column?",
"description": "specifies whether or not to render a column showing overall rates across all groups",
"type": "boolean",
"default": true
},
"diffCol": {
"title": "Show Difference Column?",
"description": "specifies whether or not to render a column of graphical differences",
"type": "boolean",
"default": "true"
},
"prefTerms": {
"title": "Show All Preferred Terms?",
"description": "specifies whether or not to initially display all lower-level rows",
"type": "boolean",
"default": false
},
"summarizeBy": {
"title": "Data Summary Type",
"description": "specifies whether to show participant or event rates by default",
"type": "string",
"enum": [
"participant",
"event"
],
"default": "participant"
},
"webchartsDetailsTable": {
"title": "Data Summary Type",
"description": "specifies whether to draw details tables using a webcharts tables object with sort, pagination, data download and search functionality. If true, webcharts becomes a required dependency.",
"type": "boolean",
"default": "false"
}
}
},
"plotSettings": {
"title": "Plot Settings",
"description": "Object to specify the appearance of the plots embedded in the table rows.",
"type": "object",
"properties": {
"h": {
"title": "Height",
"description": "height of the plot svg in pixels",
"type": "number",
"default": 15
},
"w": {
"title": "Width",
"description": "width of the plot svg in pixels",
"type": "number",
"default": 200
},
"r": {
"title": "Radius",
"description": "radius of the plotted points in pixels",
"type": "number",
"default": 7
},
"margin": {
"title": "Dot Plot Margins",
"description": "object specifying the dot plot margins",
"type": "object",
"properties": {
"left": {
"title": "Left",
"type": "number",
"default": 40
},
"right": {
"title": "Right",
"type": "number",
"default": 40
}
}
},
"diffMargin": {
"title": "Difference Plot Margins",
"description": "object specifying the margins for the difference diamonds plot",
"type": "object",
"properties": {
"left": {
"title": "Left",
"type": "number",
"default": 5
},
"right": {
"title": "Right",
"type": "number",
"default": 5
}
}
}
}
},
"validation": {
"title": "Show Download Link?",
"description": "adds a link to download the summarized data in a comma-separated format",
"type": "boolean",
"default": false
}
}
}