%sdtmutil_createsrcmetafromsaslib
/des='CST: Create SDTM metadata from SAS library';
[ Exposure:
external] [ Macro Type: SDTM Tool]
sdtmutil_createsrcmetafromsaslib
SAS library
for a CDISC SDTM study.
The following
source metadata files are used by the SAS Clinical Standards Toolkit
to support CDISC SDTM validation and derivation of CDISC CRT-DDS (define.xml)
files:
The following
is the general strategy that is used:
-
Use PROC CONTENTS output as the primary source of
information.
-
Use reference_tables and reference_columns for matching
columns.
-
Use class_columns as a generic source for metadata.
Note: This is only
an attempted approximation of source metadata. No assumptions should
be made that the results accurately represent the study data.
Assumptions:
-
Source data is read from a single
SAS library. The code can be modified to reference multiple libraries
using library concatenation.
-
Data set keys are estimated by
the sort order of the source data (if set) and, if not, assumed based
on the presence of columns SAS uses to define keys in the reference
standard.
-
For any unknown domain, the domain
class (events, interventions, or findings) is estimated based on the
presence of the class-specific topic variable (that is, _TERM (events),
_TRT (interventions), and _TESTCD (findings)).
-
Most column values in source_study
are hardcoded because there is no metadata source. These values are
used only to build the define.xml file. These are marked as <---
HARDCODE.
The following
are two scenarios that have not yet been addressed:
-
Split domains, such as QS**
-
SDTM 3.1.2 FA multiple domains
(for example, FACM)
File:
sdtmutil_createsrcmetafromsaslib.sas