Repository navigation
Configuration
The most straightforward way to customize the Safety Outlier Explorer is by using a configuration object whose properties describe the behavior and appearance of the chart. Since the safety eDish is a Webcharts chart object, many default Webcharts settings are set in the defaultSettings.js file as described below. Refer to the Webcharts documentation for more details on these settings.
In addition to the standard Webcharts settings several custom settings not available in the base Webcharts library have been added to facilitate data mapping and other custom functionality. These custom settings are described in detail below. All defaults can be overwritten by users.
string
unique identifier variable name
default: "USUBJID"
string
result variable name
default: "STRESN"
string
measure variable name
default: "TEST"
string
measure unit variable name
default: "STRESU"
string
LLN variable name
default: "STNRLO"
string
ULN variable name
default: "STNRHI"
string
Visit number variable name
default: "VISITN"
string
Visit number variable name
default: "VISITN"
string
Value of baseline visit number. Used to calculate mDish.
default: "1"
array
an array of filter variables and associated metadata
default: none
string
Variable name
default: none
string
Variable label
default: none
array
an array of ID-level variables and associated metadata
default: Automatically uses values specified in settings.id_col, settings.group_cols and
settings.filters
string
Variable name
default: Automatically uses values specified in settings.id_col, settings.group_cols and
settings.filters
string
Variable label
default: Automatically uses values specified in settings.id_col, settings.group_cols and
settings.filters
array
an array of grouping variables and associated metadata
default: none
string
Variable name
default: none
string
Variable label
default: none
array
An array defining key properties of the lab measures used in eDish evaluations.
default:
[
{
label: 'ALT',
measure: 'Aminotransferase, alanine (ALT)',
axis: 'x',
imputation: 'data-driven',
cut: {
relative_baseline: 3.8,
relative_uln: 3,
absolute: 1.0
}
},
{
label: 'ALP',
measure: 'Alkaline phosphatase (ALP)',
axis: null,
imputation: 'data-driven',
cut: {
relative_baseline: 3.8,
relative_uln: 1,
absolute: 1.0
}
},
{
label: 'TB',
measure: 'Total Bilirubin',
axis: 'y',
imputation: 'data-driven',
cut: {
relative_baseline: 4.8,
relative_uln: 2,
absolute: 40
}
}
]
string
short text label for the measure
default: see settings.measure_details
string
Long text label for the measure, used as label for chart axis
default: see settings.measure_details
string
Specifies whether the measure should be displayed on the x or y axis in the eDish scatter plot. Valid options are "x" and "y" and null. Note that measures with no axis value (or null) specified, are not shown in the eDish scatter plot, but are included in participant summaries opened by clicking points on the scatter plot.
default: "x" for "Aminotransferase, alanine (ALT)" and "y" for "Total Bilirubin", null otherwise as shown in settings.measure_details
string
specified how data should be imputed for the specified measure. Valid options are:
-
"data-driven"is the default and it takes 0 values and sets them to 0.5 times the minimum value for the measure across all participants/time points -
"user-defined"takes all values less thanmeasure_details.imputation_valueand sets then to 0.5 timesmeasure_details.imputation_value. (Theimputation_valueoption is ignored otherwise) -
"drop"means all 0 values are dropped.
default: "data-driven"
number
used as described above when settings.measure_details.imputation is set to "user-defined"
default: none
object
Object defining default cut-points for the 3 different types of supported eDish displays
default: see settings.measure_details
number
Default cut point used for the given measure when viewing mDish (settings.display == "relative_baseline")
default: see settings.measure_details
number
Default cut point used for the given measure when viewing standard eDish (settings.display == "relative_ULN")
default: see settings.measure_details
number
Default cut point used for the given measure when viewing absolute values (settings.display == "absolute")
default: see settings.measure_details
"string"
Defines the display type used on the eDish scatter plot on initial view. Can be changed by the user once the chart is rendered. Valid options are:
-
"relative_uln"which shows the standard eDish view where values are scaled relative to the Upper Limit or Normal -
"relative_baseline"which shows the mDish view where values are scaled relative to the participants baseline value -
"absolute"which show the raw values for the measure
array
Defines nice labels for the different display options.
default:
axis_options: [
{ label: 'Upper limit of normal adjusted (eDish)', value: 'relative_uln' },
{ label: 'Baseline adjusted (mDish)', value: 'relative_baseline' },
{ label: 'Raw Values', value: 'absolute' }
]
array of number
Sets upper and lower percentiles used for defining outlier in the "Lab Summary Table" in the participant details section.
default: [0.01,0.99]
string
URL linking to additional charts related to population level analysis
default: none
string
URL linking to additional charts related to population level analysis. Will need an update in a future release to allow dynamic links for different participants.
default: none
number
Default visit window used to highlight eDish points where x and y measures occurred within the specified number of days. Editable by user after render.
default: 30
string
Option to change point size based on a key variable. Can be set to any value defined in settings.measure_variables[].label. No custom point size is used when the option is set to "uniform" (the default).
default: "uniform"
The object below contains the default Webcharts settings for the display.
x: {
column: null, //set in onPreprocess/updateAxisSettings
label: null, // set in onPreprocess/updateAxisSettings,
type: 'linear',
behavior: 'raw',
format: '.2f'
//domain: [0, null]
},
y: {
column: null, // set in onPreprocess/updateAxisSettings,
label: null, // set in onPreprocess/updateAxisSettings,
type: 'linear',
behavior: 'raw',
format: '.2f'
//domain: [0, null]
},
marks: [
{
per: [], // set in syncSettings()
type: 'circle',
summarizeY: 'mean',
summarizeX: 'mean',
attributes: { 'fill-opacity': 0 }
}
],
gridlines: 'xy',
color_by: null, //set in syncSettings
max_width: 900,
aspect: 1,
legend: { location: 'top' },
margin: { right: 25, top: 25, bottom: 75 }