SDTM Validation Rules
Trial Submission Studio validates data against SDTM implementation guide rules.
Validation Categories
Structural Validation
Checks data structure and format.
| Rule ID | Description | Severity |
|---|---|---|
| SD0001 | Required variable missing | Error |
| SD0002 | Invalid variable name | Error |
| SD0003 | Variable length exceeded | Error |
| SD0004 | Invalid data type | Error |
| SD0005 | Duplicate records | Warning |
| SD0006 | Invalid domain code | Error |
Content Validation
Checks data values and relationships.
| Rule ID | Description | Severity |
|---|---|---|
| CT0001 | Value not in controlled terminology | Error |
| CT0002 | Invalid date format | Error |
| CT0003 | Date out of valid range | Warning |
| CT0004 | Numeric value out of range | Warning |
| CT0005 | Missing required value | Error |
Cross-Record Validation
Checks relationships between records.
| Rule ID | Description | Severity |
|---|---|---|
| XR0001 | USUBJID not in DM | Error |
| XR0002 | Duplicate key values | Error |
| XR0003 | Missing parent record | Warning |
| XR0004 | Inconsistent dates across domains | Warning |
Common Validation Rules
Identifier Rules
STUDYID
- Must be present in all records
- Must be consistent across domains
- Cannot be null or empty
USUBJID
- Must be present in all records
- Must exist in DM domain
- Must be unique per subject
DOMAIN
- Must match the domain abbreviation
- Must be uppercase
- Must be 2 characters
Date/Time Rules
–DTC Variables
- Must follow ISO 8601 format
- Supported formats:
YYYY-MM-DDTHH:MM:SSYYYY-MM-DDYYYY-MMYYYY
Date Ranges
- End date cannot precede start date
- Study dates should be within study period
Controlled Terminology Rules
SEX
Valid values:
M(Male)F(Female)U(Unknown)UNDIFFERENTIATED
AESEV
Valid values:
MILDMODERATESEVERE
AESER
Valid values:
Y(Yes)N(No)
Validation Report
Error Summary
┌─────────────────────────────────────────────────────────────┐
│ Validation Summary │
├─────────────────────────────────────────────────────────────┤
│ Errors: 5 │
│ Warnings: 12 │
│ Info: 3 │
├─────────────────────────────────────────────────────────────┤
│ Domain: DM │
│ - 2 Errors │
│ - 3 Warnings │
│ │
│ Domain: AE │
│ - 3 Errors │
│ - 9 Warnings │
└─────────────────────────────────────────────────────────────┘
Error Details
Each error includes:
- Rule ID: Unique identifier
- Severity: Error/Warning/Info
- Description: What’s wrong
- Location: Affected rows/columns
- Suggestion: How to fix
Fixing Validation Issues
Mapping Issues
- Verify correct source column is mapped
- Check data type compatibility
- Ensure all required variables are mapped
Data Issues
- Review affected rows
- Correct values in source data
- Re-import and re-validate
Terminology Issues
- Check expected values in codelist
- Map source values to standard terms
- Use value-level mapping if needed
Custom Validation
Severity Overrides
Some warnings can be suppressed if intentional:
- Review the warning
- Document the reason
- Mark as reviewed (if applicable)
Adding Context
For validation reports:
- Add comments explaining exceptions
- Document data collection differences
- Note protocol-specific variations
Best Practices
-
Validate incrementally
- After initial mapping
- After each significant change
- Before final export
-
Address errors first
- Errors block export
- Warnings should be reviewed
- Info messages are FYI
-
Document exceptions
- Why a warning is acceptable
- Protocol-specific reasons
- Historical data limitations
-
Review validation reports
- Keep for audit trail
- Share with data management
- Include in submission package
Next Steps
- Controlled Terminology - Valid values
- Exporting Data - Export after validation