Test Data Management
To reduce the manual effort with creating test data, Study Designers and Data Managers can load test data directly into DEV and TEST environments.
Prerequisites
Your Study must be using Data Model V2 to use this feature.
Users with the CDMS Study Designer, CDMS Librarian, CDMS Lead Data Manager, and CDMS Data Manager standard study roles can perform the actions described below by default. If your organization uses user-defined study roles, your role must grant the following permissions:
| Type | Permission Label | Controls |
|---|---|---|
| Standard Tab | Study Testing Tab | Ability to access the Study Testing tab |
| Functional Permission | Import Test Data | Ability to import test data into study environments. |
Learn more about Study Roles.
Subject vs. Participant Labeling: Depending on your vault’s configuration, Vault may use the label Subject or Participant. This is a UI label change only, and it doesn’t impact any functionality. The Clinical Data Help site currently uses Subject in our content. .
Importing Test Data
Export the Template File
To simplify the creation of your test data, Vault provides a template file based on your Study. You can also include a sample subject when downloading this file, which prefills columns for the Event, Form, Item Group, and Items and Sequences for all Forms in the Casebook.
- Navigate to your Study in Study Testing.
- Select a Source Environment to use as a template.
-
Optional: Select the Include Sample Subject checkbox to include an example row for a subject in the template file.
- Click Export.
- Vault begins a job to generate the template file. When finished, Vault sends you an email with a link to download the file. You can also click in the File column of the job log row to download it.
Create a Test Data File from the Template
Your CSV file has columns to uniquely identify the Subject and the data you’re entering with the row.
For each Subject, you will need a row to create the Subject, a row to create each Event, and a row for each Item that you want to enter data into. Then, you will need another row to submit the Form.
The purpose of the template is to provide you with a structure for your Event Groups, Events, Forms, Item Groups, and Items so you don’t need to assemble these manually from the study design. It provides the hierarchy and relationships regardless of dynamic availability.
When adapting the template, you’ll need to account for adding repeating Event Groups, Forms, or Item Groups with an individual upsert row for these definitions.
The Notes column in the table below provides column-specific guidance for creating this data.
When adding repeating definitions after the first sequence (Sequence set to “1”), except for dynamic Item Groups and minimum repeating Forms, subsequent repeating sequences require you to enter the following:
- Subject and Site information
- The associated definition plus the new sequence
- Use the “UPSERT” action
If these sequences are not added in their individual row, then the child definitions for that sequence won’t be available. For example, an Event will not be available for sequence 2 of an Event Group if sequence 2 doesn’t have an individual upsert row.
Test Data File Columns
The table below lists the columns in the import file:
| Column | Description | Max Length | Data Type | Notes |
|---|---|---|---|---|
| Subject Unique ID | This is a unique ID that is used to control updates to the same subject regardless of subject name changes. |
200 | String | This field is used to uniquely identify a subject in the system. This ID is either the Global ID (if the Subject was created in data entry or via the API) or the Source ID (if the Subject was created from the import) from the subject record. This data is currently only available via Business Admin or a custom report. This ID is unique within a Site. There are no specific restrictions on the formatting of this record. One of the suggested methods is to use the name of a test case or test suite to track the subject data back to, for example: “Test-01”. You must populate this field for every row that applies to that Subject. |
| Subject | This is the Subject ID for the casebook subject. |
128 | String | This field is used for reference in the import log and in exports. It reflects the latest Subject ID of the Subject (so, a screened subject would have the in-screening ID rather than the initial candidate ID). |
| Site | The Site that the Subject belongs to ( |
128 | String | The template exports with a sample value and doesn’t export with an actual Site ID. This would need to be replaced with the ID of the Site that you want the Subject imported into. |
| Event Group Name | The Name of the Event Group ( |
128 | String | |
| Event Group Seq | The Sequence number of the Event Group ( |
10 | Integer | When this is a repeating definition, this can have an integer value of > 1. If this is for a non-repeating definition, this must be set to “1”. |
| Event Name | The Name of the Event ( |
128 | String | |
| Event Seq | The Sequence number of the Event ( |
10 | Integer | Set this to “1”, as in the current release, Events are not repeatable. |
| Form Name | The Name of the Form ( |
128 | String | |
| Form Seq | The Sequence number of the Form ( |
10 | Integer | When this is a repeating definition, this can have an integer value of > 1. If this is for a non-repeating definition, this must be set to “1”. |
| Item Group Name | The Name of the Item Group ( |
128 | Integer | |
| Item Group Seq | The Sequence number of the Item Group ( |
10 | Integer | When this is a repeating definition, this can have an integer value of > 1. If this is for a non-repeating definition, this must be set to “1”. |
| Item Name | The Name of the Item ( |
128 | String | |
| Value | The new value to set the Item to (or the Event Date, Form Submission Status, or ILB Status). On export, form and item group resets will export as empty values with an upsert action. To process a form status change after an initial form submission, the form will need to include an explicit “UNSUBMIT” value to process changes. |
Provide the value from any of the following fields:
|
||
| Form Link | This is the reference to a right linked form on a form. Enter as “Event Group>Event Group Sequence>Event>Form>Form Sequence” to make a path to the linked form. |
410 | String | |
| Change Reason | The Reason for Change when editing an existing record ( |
255 | String | |
| ILB DNO Reason | The reason that the Item was marked Intentionally Left Blank ( |
255 | String | |
| Action | Enter an Action to tell Vault how to process the record. Use one of these actions:
|
6 | String |
Columns by Action
The following columns are required to perform different actions:
- Create Casebook
- Subject Unique ID
- Subject
- Site
- Action (Set to “Upsert”)
- Create Event
- Subject Unique ID
- Subject
- Site
- Event Group Name
- Event Group Seq
- Event Name
- Event Seq
-
Value (Set to “Event Date Visit Method”) - Action (Set to “Upsert”)
- Submit Form
- Subject Unique ID
- Subject
- Site
- Event Group Name
- Event Group Seq
- Event Name
- Event Seq
- Form Name
- Form Seq
- Value (Set to “Submit”)
- Action (Set to “Upsert”)
File Limits
The following limits apply to the import file:
- Must be a CSV file (“.csv”) or a ZIP file containing CSV files
- 500mb per CSV file
Imaging: In the current release, Vault doesn’t support EDC Imaging for Test Data Management.
Import a Test Data File
To import the test data file:
- Navigate to your Study in Study Testing.
-
To load your file, either drag and drop it into the Drag and drop file here area, or click Select File and browse for it.
- Select a Destination Environment for your test data.
- Click Import.
- Vault begins a job to load your test data into the destination environment. When finished, Vault will send you an email notification.
File Processing
Vault processes each CSV row by row.
If you uploaded multiple CSV files via a ZIP file, Vault unzips the ZIP file, then processes the CSVs in alphabetical order by filename.
Viewing Test Data
Vault stores a log of all test data related jobs for a Study in Study Testing > Test Data. This is very similar to the Job History found in EDC Tools and the Review tab.
Refreshing the Job History
You can refresh the Job History, without refreshing the page, to see the most up-to-date job status and any available logs or output files.
Click Refresh () to refresh the Job History.
Job Statuses
Vault displays the status of your job in the job history, along with other details about the job. You can click the Information () icon for additional details about a job.
| Status | Meaning |
|---|---|
| Queued | Another job of the same type is currently waiting to run. Vault will run this job when the previous job is completed. |
| In Progress | Vault is currently performing the job. |
| Failed | The job instance encountered one or more errors. |
| Completed | The job instance completed without errors. |
| Canceled | The job instance was canceled. |
Download the Output File & Log
Vault provides a job log file and the output file for each entry in the job history. To access these files, click the icon () in either the Log or File column. Job logs are available for 60 days after the job has finished running.
The File for Import will include not only the file imported but will also contain a report to describe what was processed. This file is important for understanding why something wasn’t imported or what the current Subject ID is for an imported Subject.
The Log for Import is a system log file. This will show if the system was able to process the file and what was processed or if it failed due to a system exception.