-
Notifications
You must be signed in to change notification settings - Fork 2
Configuration
The most straightforward way to customize the CRF Heat Map is by using a configuration object whose properties describe the behavior and appearance of the table. Since the CRF Heat Map is a Webcharts table
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 CRF Heat Map to facilitate data mapping and other custom functionality. These custom settings are described in detail below and are set in the rendererSettings.js file. All defaults can be overwritten by the passed configuration object.
The sections below describe each crf-heat-map setting as of version 2.0.0.
string
Specifies Site variable for nesting
default: "sitename"
string
Specifies Subject variable for nesting and subject-level export
default: "subjectnameoridentifier"
string
Specifies Visit variable for nesting
default: "folderinstancename"
string
Specifies Form variable for nesting
default: "ecrfpagename"
array
binary CRF flags and query frequencies that capture some status related to the case report form (CRF)
default:
[
{
"col": "is_partial_entry",
"type": "crfs",
"label": "Entered",
"description": "Data have been submitted in the EDC system."
},
{
"col": "verified",
"type": "crfs",
"denominator": "needs_verification",
"label": "Source Data Verified",
"description": "All required fields have source data verification complete in EDC."
},
{
"col": "ready_for_freeze",
"type": "crfs",
"label": "Ready for Freeze",
"description": "All required cleaning is complete (e.g. SDV, queries resolved) and data are ready to be frozen in EDC."
},
{
"col": "is_frozen",
"type": "crfs",
"label": "Frozen",
"description": "Data have been frozen in the EDC system."
},
{
"col": "is_signed",
"type": "crfs",
"denominator": "needs_signature",
"label": "Signed",
"description": "Data have been signed in the EDC system."
},
{
"col": "is_locked",
"type": "crfs",
"label": "Locked",
"description": "Data have been locked in the EDC system."
},
{
"col": "open_query_ct",
"type": "queries",
"label": "Open",
"description": "Site has not responded to issue."
},
{
"col": "answer_query_ct",
"type": "queries",
"label": "Answered",
"description": "Site has responded to issue, DM needs to review."
}
]
string
Variable name
default: none
string
Variable type
default: none
string
Variable to subset proportion calculations with. Generally this impacts only the denominator (e.g. you want the % of signed forms out of those that needed to be signed, not out of any forms that could be signed). Only for use with type='crfs'.
default: none
string
Table header label
default: none
string
Variable description that appears when hovering over table header
default: none
array
Variables
default:
[
{
"value_col": "sitename",
"label": "Site"
},
{
"value_col": "subjectnameoridentifier",
"label": "Subject ID"
},
{
"value_col": "foldername",
"label": "Folder"
},
{
"value_col": "architectformname",
"label": "Form"
},
{
"value_col": "status",
"label": "Subject Status",
"multiple": true,
"subject_export": true
},
{
"value_col": "subjfreezeflg",
"label": "Subject Freeze Status",
"subject_export": true
},
{
"value_col": "subset1",
"label": "Subset 1"
},
{
"value_col": "subset2",
"label": "Subset 2"
},
{
"value_col": "subset3",
"label": "Subset 3"
}
]
string
Variable Name
default: none
string
Label
default: none
boolean
Multi-select
default: false
boolean
Include variable in subject-level export
default: false
string
Variable for determining order of Visit column
default: "folder_ordinal"
string
Variable for determining order of Form column
default: "form_ordinal"
array
Variables to summarize chart by on initial rendering
default:
[
"site_col",
"id_col"
]
boolean
Displays cell annotations always or only on hover
default: true
boolean
Expands all nests so that no rows are hidden
default: false
boolean
Replaces input boxes with sliders for filtering rows
default: false
number
Number of rows above which the user will be prompted for confirmation when expanding rows
default: 10000
The object below contains each Webcharts setting as of version 2.0.0.
{
return {
cols: null,
headers: null, // set in rendererSettings
applyCSS: true,
searchable: false,
sortable: false,
pagination: false,
exportable: true,
exports: ['csv', 'xlsx'],
dynamicPositioning: false
};
}
}