These design requirements
should be used when developing custom validation check macros. This
table identifies and describes the purpose of each of the check macros
provided with the SAS Clinical Standards Toolkit.
SAS Clinical Standards Toolkit Validation Check Macros
|
|
|
|
|
Identifies any invalid
column values or attributes.
|
|
|
Supports comparison
of column values.
|
|
By default, this check
does not require the use of codeLogic. If the check metadata includes
a non-null value of codeLogic, then DATA step code logic is required.
|
Determines whether one
or more of the columns defined in columnScope exist in each of the
tables defined in tableScope.
|
|
|
Supports comparison
of multiple columns within the same data set or across multiple data
sets.
|
|
|
Compares values for
one or more columns in one domain with values for those same columns
in another domain.
|
cstcheck_crossstdcomparedomains
|
|
Generally compares values
for 1+ columns in one table against either those same columns in another
domain in another standard, or compares values against metadata from
the comparison standard.
|
cstcheck_crossstdmetamismatch
|
|
Identifies inconsistencies
between metadata across registered standards.
|
|
|
Identifies any data
set mismatches between study and template metadata and the source
data library.
|
|
|
Identifies inconsistencies
between study and reference column metadata.
|
|
|
Identifies any inconsistent
column values across records.
|
|
|
Placeholder to report
that a check is not yet implemented.
|
|
If lookuptype=DATASET,
DATA step code logic required
Else, DATA step code
logic is optional
|
Identifies any column
values inconsistent with controlled terminologies.
Requires reference to
the SAS format search path built based on type=FMTSEARCH records in
the SASReferences control file.
Example is a **STAT
value is found other than 'NOT DONE.'
|
|
|
Identifies any domain
that is not sorted by the keys defined in the metadata.
|
|
Not used for functions
1 through 3; DATA step for function 4
|
A multi-function macro
that assesses the uniqueness of data sets, columns, or value-pairs
from two columns.
Function 1: Is data
set unique by a set of columns?
Function 2: For any
subject, are column values unique?
Function 3: Does a combination
of two columns have unique values?
Function 4: Are the
values in one column (Column2) consistent in each value of another
column (Column1)?
|
|
|
Identifies any record
mismatches across domains (domain as referenced in another domain).
|
|
|
Compares the consistency
of one or more columns across two tables or enables the comparison
of the consistency of one <table>.<column> with another
<table>.<column>.
|
|
|
Identifies any invalid
column values defined in a reference standard.
|
|
|
Identifies any data
set with zero observations.
|
|
|
Compares all columns
in one domain with the same columns in other domains.
|
|
|
Reports that an entity,
typically a file, folder, or column, cannot be found.
|
cstcheckforeignkeynotfound
|
|
Compares the consistency
of one or more columns across two tables, where a column in the first
table is a foreign key that points to a primary key in the second
table.
|