Validates a data frame against a specific SDTM domain specification. Checks for missing required/expected variables, data type mismatches, and non-standard variables.
validate_sdtm(df, domain)A data frame with validation results containing columns:
Character: validation issue type
Character: variable name
Character: issue description
Character: "ERROR", "WARNING", or "INFO"
A data frame to validate.
Character string specifying the SDTM domain code (e.g., "DM", "AE", "VS").
Severity levels:
ERROR: Required variable is missing
WARNING: Expected variable is missing or data type mismatch detected
INFO: Non-standard variable present or variable information