Table of Contents
Data standardization lets you group fields from different visits, repeating data and surveys into domains, such as Demographics or Physical exam.
Grouping by domain is available for CSV, and for SAS only when enabled for the study
Why use data standardization
Every field in a study needs a unique variable name. If you collect weight in several visits, each weight field gets its own variable name, for example dem_weight, vis1_weight and vis2_weight. In a regular export, each of these becomes a separate column.
With data standardization, you map all of these fields to one general domain variable name, for example weight. In the domain-based export, all weight values appear in a single weight column, with one row per visit. This makes it easier to analyze the same measurement across visits.
Add a domain
- Go to Study design → Data standardization.
-
Click Add.
- Enter the Domain name (for example Demographics) and the Abbreviation (for example DM).
-
Click Add.
To edit or delete a domain, click the three dots (⋮) next to the domain and select Edit domain or Delete domain.
Domain abbreviations often follow the CDISC SDTM standard, for example DM (Demographics), VS (Vital signs), LB (Laboratory), AE (Adverse events) and CM (Concomitant medications).
- In the study structure, select the fields you want to add to the domain. You can select a whole form, or expand it to select individual fields. The number of selected fields is shown at the top right.
- Click Assign variable names.
- For each field, enter a Domain variable name.
- Click Save.
To group the same measurement from different visits, give those fields the same domain variable name. In the example below, the weight, height and BMI fields from the Screening, First Study Visit and Second Study Visit are mapped to weight, height and bmi.
A field can belong to more than one domain. For example, the height field in the Demographics form can be part of both the DM and the Physical exam domain.
Domain variable names:
- must be lowercase
- can only contain letters, numbers and underscores (
_) - have a maximum length that depends on the field type:
- Grid: 15 characters
- Checkbox: 15 characters
- Dropdown: 28 characters
- Radio button: 28 characters
- All other fields (for example numeric, date, calculation and time): 30 characters
When you copy a form, you can choose whether to copy the domain variable names as well. See Copy Forms in CDMS
Export the domain variables
To get an overview of all fields mapped to domains, without exporting participant data:
- Go to Study design → Data standardization.
- Click the three dots (⋮) next to Add.
- Select Export domain variables.
Export data grouped by domain
- Go to Participants.
-
Click Actions and select Export all (or Export selected / Export all filtered).
- Under Export type, select CSV or SAS (if enabled).
- Under Group data, select Group data by domain. The default is Do not group data.
-
Select the other export options you need and click Export.
- Go to Exports and download the file when its status is Completed.
Files in the export
The downloaded zip file contains:
-
[domain abbreviation].csv: the data of each domain, for exampleDM.csvandPH.csv. -
[domain abbreviation]_variablelist.csv: the list of variables in each domain, with their field type and SAS field type. -
domain_mapping.csv: an overview of how fields are mapped to domains. It contains the domain abbreviation, domain name and domain variable name, where the field is located (visit, repeating data or survey, and form), and the field details, such as its type, original variable name, label, options, units, calculation template and dependencies. -
field_options.csv: the option groups, with each option's name and value.
Each domain file contains one row per visit, repeating data instance or survey instance, with these metadata columns first:
- participant_id
- participant_id
- participant_status
- site_abbreviation
- randomization_id
- randomization_group
- randomized_on
- participant_creation_date
- parent_type
- parent_name
- visit_name
- visit_number
- type (Visit, Repeating data or Survey)
- name (of the visit, repeating data or survey)
The domain variables follow in the next columns.
The visit_number column is only filled in if you set visit numbers on the Structure page. You can set a visit number (1 to 999) in Edit visit details. See Edit Visits and Forms in CDMS
How data is exported
-
Dates (field values and metadata) are exported as
YYYY-MM-DD hh:mm(date and time) orYYYY-MM-DD(date). -
Radio buttons and dropdowns are exported as option values or as option values and names, depending on what you select under Export coded options as. The option names are listed in
field_options.csv. -
Checkboxes are exported as
[domain variable name]_[option name], where1means checked and0means unchecked. -
Number & date fields are exported in two columns:
[domain variable name]_numberand[domain variable name]_date. -
Grid fields are exported as
[domain variable name]_[row name]_[column name]. Row and column names are cut off at 15 characters. - Generated variable names are limited to 64 characters.
- Missing data is handled the same way as in other exports.
- Form blinding: if a user is blinded for a form, the related cells are empty in their export.
- Randomization: the export only includes randomization information from sites where the user has the View randomization permission.
-
Encrypted data: if the user doesn't have decrypt permissions for the participant's site, encrypted values are exported as
*encrypted*.
Data standardization and Form Sync
Domains and domain variable names are part of the study structure, so they are synchronized with Form Sync. When a test study is linked to a production study via Form Sync:
- Changes to domains and domain variable names in the test study are shown in the Form Sync change set.
- When you merge the changes, they are applied to the production study.
- For more information about Form Sync feature, please see: Merging changes from test environment to production environment in CDMS