Overview AE Timelines AE Explorer Hep Explorer Delta-Delta Histogram Outlier Explorer Results Over Time

safety-delta-delta - Quality Control Details

This page provides a detailed report of the quality control documentation for safety-delta-delta. The source code for this page is available on github.

Technical Specs

Technical documentation including, functional specifications, regressions tests and risk assessments. see original

Functional Specs

Baseline and Comparison Visit(s) Controls

These multi-select controls are used to select the visits that are displayed in the chart. The default visits are set to the first/last visit in the data set, but the default value can be adjusted to any visit upon the project team's request. Users can interactively select any single visit, or shift-click to select multiple visits. Selecting a visit will update the delta-delta chart accordingly. When multiple visits are selected, all participant measures from those visits are averaged.

X and Y Measure Controls

These controls are used to select the measures that are displayed in the chart. The default measures are set to the first and second measure found in the data set, but the default value can be adjusted to any measure upon the project team's request. Users can interactively select any measure, which updates the delta-delta chart accordingly.

Filter by Pre-selected Characteristics

The chart can be configured to have any number of data filters. Each specified filter has a drop-down menu that is used to filter the visit data that is displayed in the chart.

Total Participants Shown

Displayed under the controls, this statement provides the total number of participants in the data set in integers as well as the percentage of participants shown to one decimal place. When filters are used, the data shown in the histogram is manipulated and the number of participant records shown at the top of the page may increase or decrease, depending on the variable selected.

Hover

By moving a mouse cursor over a point in the chart, users can display exact x- and y-values for the chosen point along with the ID for the selected participant.

Linked Table

Clicking on a point in the chart will open a table beside the chart that contains a detailed listing of all participant lab data. Each row of the table has summary data for a single measure for the selected participant, and includes, the measure name, a sparkline showing the measure's value over time, and an annotated numeric value summarizing the change in the measure between the selected time points. This linked table contains a standard set of default columns that appear consistently across all filters. When a point is clicked it is highlighted and the table header shows the participant ID and any other specified participant details.

Regression Tests

Controls

Chart

Data Listing

Data Guidelines

Data Specifications for the charts. see original

The Safety Delta-Delta plot accepts JSON data of the format returned by d3.csv(). The renderer visualizes clinical medical signs data with one row per measurement plus the required variables specified below.

Data structure

one record per measurement

Data specification

required and optional variables:

Setting Default Data Type Description Required?
measure_col TEST character a variable that contains the names of each medical sign Yes
value_col STRESN numeric a variable that contains the results for each medical sign; non-numeric results are removed with a notification thrown to the log Yes
id_col USUBJID character a variable that contains IDs for each participant Yes
visit_col VISIT character a variable that contains the categorical visit where the measure was collected Yes
visitn_col VISITN character a variable that contains the numeric visit where the measure was collected Yes
filters[] either an array of variables and metadata that will appear in the controls as data filters
details[] either an array of variables and metadata that will appear in the data listing

API

Technical specifications for API. see original

safetyDeltaDelta(element, settings)

a factory to create a custom Webcharts chart object

returns: chart

Param Type Description
element string CSS selector identifying the element in which to create the chart
settings object settings object specifying options for how the chart is to appear and behave. Options defined here overwrite default values; see Configuration

Chart Configuration

Technical specifications for chart configuration. see original

The most straightforward way to customize the Safety Delta-Delta plot is by using a configuration object whose properties describe the behavior and appearance of the chart. Since the Safety Histogram is a Webcharts chart object, many default Webcharts settings are set in the webchartsSettings.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 the Safety Delta-Delta plot to facilitate data mapping and other custom functionality. These custom settings are described in detail below. All defaults can be overwritten by users.

Renderer-specific settings

The sections below describe each safety-delta-delta setting as of version 1.0.0.

settings.measure_col

string

a variable that contains the names of each medical sign

default: "TEST"

settings.value_col

string

a variable that contains the results for each medical sign; non-numeric results are removed with a notification thrown to the log

default: "STRESN"

settings.id_col

string

a variable that contains IDs for each participant

default: "USUBJID"

settings.visit_col

string

a variable that contains the categorical visit where the measure was collected

default: "VISIT"

settings.visitn_col

string

a variable that contains the numeric visit where the measure was collected

default: "VISITN"

settings.measure

object

Measures to be used in delta-delta scatter plot. Must be a value of the settings.measure_value column

settings.measure.x

string

Measure to be shown on the x-axis of the delta-delta plot

default: none

settings.measure.y

string

Measure to be shown on the y-axis of the delta-delta plot

default: none

settings.addRegressionLine

boolean

Indicates whether a regression line should be drawn on the delta-delta scatter plot

default: false

settings.visits

object

settings.visits.x

string

Measure to be shown on the x-axis of the delta-delta plot

default: none

settings.visits.y

string

Measure to be shown on the y-axis of the delta-delta plot

default: none

settings.filters

array

an array of variables and metadata that will appear in the controls as data filters

default: none

settings.filters[].label

string

a description of the variable

default: none

settings.filters[].value_col

string

the name of the variable

default: none

settings.details

array

an array of variables and metadata that will appear in the data listing

default: none

settings.details[].label

string

a description of the variable

default: none

settings.details[].value_col

string

the name of the variable

default: none

Webcharts settings

The object below contains Webcharts settings that define the safety-histogram chart as of version 1.0.0 of the Safety Delta Delta.

{
    "x": {
        "column": null,
        "type": "linear",
        "label": "x delta",
        "format": "0.2f"
    },
    "y": {
        "column": null,
        "type": "linear",
        "label": "y delta",
        "behavior": "flex",
        "format": "0.2f"
    },
    "marks": [
        {
            "type": "circle",
            "per": null,
            "radius": 4,
            "attributes": {
                "stroke-width": 0.5,
                "fill-opacity": 0.8
            },
            "tooltip": "Subject ID: [key]\nX Delta: [delta_x_rounded]\nY Delta: [delta_y_rounded]"
        }
    ],
    "gridlines": "xy",
    "resizable": false,
    "margin": {
        "right": 25,
        "top": 25
    },
    "aspect": 1,
    "width": 400
}

Testing Logs

Interactive log of QC for all code updates. Includes code reviews, feature testing and regression testing for all releases. see original
Not Found