-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathsettings-schema.json
391 lines (391 loc) · 14.2 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
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
391
{
"title": "settings",
"description": "JSON schema for the configuration of the clinical-timelines",
"overview": "The most straightforward way to customize the Clinical Timelines is by using a configuration object whose properties describe the behavior and appearance of the chart. Since the Clinical Timelines is a Webcharts `chart` object, many default Webcharts settings are set in the [settings.js file](https://github.com/RhoInc/clinical-timelines/blob/master/src/defaults/settings.js) as [described below](#webcharts-settings). Refer to the [Webcharts documentation](https://github.com/RhoInc/Webcharts/wiki/Chart-Configuration) for more details on these settings.\nIn addition to the standard Webcharts settings several custom settings not available in the base Webcharts library have been added to the Clinical Timelines to facilitate data mapping and other custom functionality. These custom settings are described in detail below. All defaults can be overwritten by users.",
"version": "1.4.0",
"type": "object",
"properties": {
"id_col": {
"title": "ID",
"description": "unique identifier variable name",
"default": "USUBJID",
"type": "string"
},
"id_unit": {
"title": "ID Unit",
"description": "unique identifier unit",
"default": "participant",
"type": "string"
},
"id_characteristics": {
"title": "ID Characteristics",
"description": "an array of identifier characteristic variables and associated metadata",
"type": "array",
"items": {
"type": "object",
"properties": {
"value_col": {
"title": "Variable name",
"type": "string"
},
"label": {
"title": "Variable label",
"type": "string"
}
}
}
},
"event_col": {
"title": "Event Type",
"description": "event type variable name",
"default": "DOMAIN",
"type": "string"
},
"event_types": {
"title": "Initial Event Types",
"description": "an array of event types displayed initially",
"type": "array",
"items": {
"type": "string"
}
},
"event_highlighted": {
"title": "Highlighted Event",
"description": "initial highlighted event type",
"default": null,
"type": "string"
},
"event_highlight_color": {
"title": "Highlighted Event Color",
"description": "fill color of highlighted events",
"default": "black",
"type": "string"
},
"event_symbols": {
"title": "Lucky Charms",
"description": "an array of event types and the symbols that will represent them",
"type": "array",
"items": {
"type": "object",
"properties": {
"events": {
"title": "Event Types",
"description": "an array of event types that will be represented by the specified symbol",
"type": "array",
"items": {
"type": "string"
}
},
"symbol": {
"title": "Symbol",
"description": "the symbol that will represent the corresponding event types",
"type": "string",
"enum": [
"circle",
"square",
"triangle",
"diamond"
]
},
"direction": {
"title": "Symbol Direction",
"description": "the direction the symbol points (only applies to triangles)",
"type": "string",
"enum": [
"up",
"right",
"down",
"left"
]
}
}
}
},
"filters": {
"title": "Filters",
"description": "an array of filter variables and associated metadata",
"type": "array",
"items": {
"type": "object",
"properties": {
"value_col": {
"title": "Variable name",
"type": "string"
},
"label": {
"title": "Variable label",
"type": "string"
}
}
}
},
"groupings": {
"title": "ID Grouping",
"description": "an array of categorical ID characteristic variables with which to group IDs",
"type": "array",
"items": {
"type": "object",
"properties": {
"value_col": {
"title": "Variable name",
"type": "string"
},
"label": {
"title": "Variable label",
"type": "string"
}
}
}
},
"grouping_initial": {
"title": "Initial ID Grouping",
"description": "initial ID grouping variable",
"default": null,
"type": "string"
},
"grouping_direction": {
"title": "Grouping Annotation Placement",
"description": "grouping annotation placement",
"default": "horizontal",
"type": "string",
"enum": [
"horizontal",
"vertical"
]
},
"time_scale": {
"title": "Time Scale",
"description": "the time scale on which to plot events",
"type": "string",
"default": "Date",
"enum": [
"Date",
"Day"
]
},
"stdt_col": {
"title": "Start Date",
"description": "start date variable name",
"default": "STDT",
"type": "string"
},
"endt_col": {
"title": "End Date",
"description": "end date variable name",
"default": "ENDT",
"type": "string"
},
"date_range": {
"title": "Date Range",
"description": "start and stop dates with which to define the x-axis domain and which match settings.date_format",
"type": "array",
"minItems": 2,
"maxItems": 2,
"items": {
"type": "string"
}
},
"date_ranges": {
"title": "Date Ranges",
"description": "start and stop date ranges which populate the time range dropdown",
"type": "array",
"items": {
"type": "object",
"properties": {
"domain": {
"title": "Date Range",
"description": "start and stop dates with which to define the x-axis domain and which match settings.date_format",
"type": "array",
"minItems": 2,
"maxItems": 2,
"items": {
"type": "string"
}
},
"label": {
"title": "Date Range Label",
"description": "a description of the date range",
"type": "string"
}
}
}
},
"date_format": {
"title": "Input Date Format",
"description": "date format of start and stop date variables",
"default": "%Y-%m-%d",
"type": "string"
},
"date_display_format": {
"title": "Displayed Date Format",
"description": "date format of x-axis",
"default": "%b %y",
"type": "string"
},
"stdy_col": {
"title": "Start Day",
"description": "start day variable name",
"default": "STDY",
"type": "string"
},
"endy_col": {
"title": "End Day",
"description": "end day variable name",
"default": "ENDY",
"type": "string"
},
"day_range": {
"title": "Day Range",
"description": "start and stop days with which to define the x-axis domain",
"type": "array",
"minItems": 2,
"maxItems": 2,
"items": {
"type": "number"
}
},
"day_ranges": {
"title": "Day Ranges",
"description": "start and stop day ranges which populate the time range dropdown",
"type": "array",
"items": {
"type": "object",
"properties": {
"domain": {
"title": "Day Range",
"description": "start and stop days with which to define the x-axis domain",
"type": "array",
"minItems": 2,
"maxItems": 2,
"items": {
"type": "number"
}
},
"label": {
"title": "Day Range Label",
"description": "a description of the day range",
"type": "string"
}
}
}
},
"seq_col": {
"title": "Sequence Number",
"description": "event type sequence variable name",
"default": "SEQ",
"type": "string"
},
"tooltip_col": {
"title": "Event Details",
"description": "hovering over a mark displays a tooltip with the details of the event",
"default": "TOOLTIP",
"type": "string"
},
"ongo_col": {
"title": "Ongoing?",
"description": "ongoing event indicator variable name",
"default": "ONGO",
"type": "string"
},
"ongo_val": {
"title": "Ongoing Value",
"description": "ongoing event indicator value",
"default": "Y",
"type": "string"
},
"offset_col": {
"title": "Offset Factor",
"description": "the name of the variable that contains a ranking of vertical position at which to draw a mark",
"type": "string"
},
"reference_lines": {
"title": "Reference Timepoints",
"description": "an array of reference timepoints and associated descriptions",
"type": "array",
"items": {
"type": "object",
"properties": {
"timepoint": {
"title": "Timepoint",
"type": "string"
},
"label": {
"title": "Reference timepoint description",
"type": "string"
}
}
}
},
"transpose_data": {
"title": "Transpose Data Export?",
"description": "by default data are exported as one record per event; this option transposes the data so each even type has two columns: start and end",
"type": "boolean",
"default": false
},
"mark_thickness": {
"title": "Mark Thiccness",
"description": "a number that controls the the stroke width of lines and the radius of circles",
"type": "number",
"default": 6
},
"details": {
"title": "Details Listing",
"description": "an array of detail listing variables and associated metadata",
"type": "array",
"items": {
"type": "object",
"properties": {
"value_col": {
"title": "Variable name",
"type": "string"
},
"label": {
"title": "Variable label",
"type": "string"
}
}
}
},
"details_config": {
"title": "Details Listing Settings",
"description": "a webcharts table settings object",
"type": "object",
"properties": {
"cols": {
"title": "List of variables",
"type": "array",
"items": {
"type": "string"
}
},
"headers": {
"title": "List of headers",
"type": "string",
"items": {
"type": "string"
}
},
"searchable": {
"title": "Searchable?",
"type": "boolean",
"default": true
},
"sortable": {
"title": "sortable?",
"type": "boolean",
"default": true
},
"pagination": {
"title": "Paginated?",
"type": "boolean",
"default": true
},
"exportable": {
"title": "Exportable?",
"type": "boolean",
"default": true
}
}
}
}
}