How saisid6798/clinical-trial-programming-portfolio works
1. Purpose and Execution Model
This is a SAS 9.4 clinical-programming portfolio implementing a batch pipeline from simulated clinical raw data through CDISC SDTM and ADaM datasets to regulatory-style tables, listings, and figures. There is no application runtime or service layer; SAS programs are the operational entry points, with PDFs/logs/RTFs serving as preserved execution and validation evidence.
2. Raw Clinical Data Boundary
The pipeline begins with source CRF extracts, primarily SAS datasets, under SDTM/CRF_Data/. These include subject, adverse-event, exposure, disposition, medical-history, and vital-sign sources such as SDTM/CRF_Data/dm.sas7bdat, SDTM/CRF_Data/ae.sas7bdat, and SDTM/CRF_Data/ex.sas7bdat. This directory is the source-data boundary; it also contains SDTM/CRF_Data/se.xpt, a transport-format input.
3. SDTM Standardization Stage
SDTM programming transforms CRF inputs into CDISC tabulation domains, focused on DM, DS, EX, MH, and VS. The surviving implementation artifacts are PDF exports at SDTM/SAS_Code/DM_Code.pdf, SDTM/SAS_Code/EX_Code.pdf, and SDTM/SAS_Code/VS_Code.pdf; their corresponding run evidence is in SDTM/SAS_Log/. Resulting standardized data is consumed downstream as XPT transport files, notably ADAM/Data_SDTM/DM.xpt, ADAM/Data_SDTM/AE.xpt, and ADAM/Data_SDTM/LB.xpt.
4. SDTM Transport and Domain Integration
ADAM/Data_SDTM/ is the handoff boundary between tabulation and analysis layers. It contains core SDTM domains plus supplemental qualifiers and trial-design metadata: e.g., ADAM/Data_SDTM/SUPPDM.xpt, ADAM/Data_SDTM/TA.xpt, and ADAM/Data_SDTM/TE.xpt. ADaM derivations therefore integrate subject-level, event, lab, exposure, and trial-design data rather than relying only on the five demonstrated SDTM generation domains.
5. ADaM Analysis Dataset Stage
Analysis programming derives five analysis-ready datasets: subject-level ADSL, adverse events ADAE, baseline lab ADLBSI, time-to-event ADTTE, and exposure ADEX. Entrypoints are preserved as ADAM/SAS_Code/ADSL_ADAM_Code.pdf, ADAM/SAS_Code/ADTTE_ADAM_Code.pdf, and ADAM/SAS_Code/ADEX_ADAM_Code.pdf. This is the key analytical boundary: SDTM variables are transformed into population/treatment flags, baseline and study-day concepts, and time-to-event measures for statistical reporting.
6. Independent Validation and Audit Evidence
Validation is artifact-based and uses SAS PROC COMPARE, with parallel comparison reports for each major SDTM and ADaM deliverable. Examples include SDTM/SAS_PROC_COMPARE/DM_PROC_COMPARE.rtf, ADAM/SAS_PROC_COMPARE/ADAE_PROC_COMPARE_ADAM.rtf, and ADAM/SAS_PROC_COMPARE/ADTTE_PROC_COMPARE_ADAM.rtf. Execution logs—such as ADAM/SAS_Log/ADSL_ADAM_Log.pdf—provide a second control boundary for warnings/errors and reproducibility.
7. TLF Reporting Stage
Seven SAS reporting jobs form the final entry points: TLF/SAS_Code/1.TLF_Creation.sas through TLF/SAS_Code/7.TLF_Creation.sas. They consume analysis datasets conceptually and apply SAS reporting/statistical procedures (including reporting, survival, Cox modeling, and plotting). Deliverables are persisted as RTF and, once, HTML—for example TLF/SAS_Output/Output_1.rtf, TLF/SAS_Output/Output_5.html, and TLF/SAS_Output/Output_7.rtf—with matching logs in TLF/SAS_Log/.
Main entry points: 1.TLF_Creation.sas TLF creation jobs · DM_Code.pdf SDTM domain programs · ADSL_ADAM_Code.pdf ADaM derivation programs · ADAE_PROC_COMPARE_ADAM.rtf ADaM compare reports
Components 19
SDTM tabulation
- CRF source extracts · Raw clinical source-data boundary.
SDTM/CRF_Data/dm.sas7bdat - SDTM domain programs · Transforms CRF data into CDISC domains.
SDTM/SAS_Code/DM_Code.pdf - SDTM domains · DM, DS, EX, MH, and VS standard domains.
- SDTM transport package · Domains, supplemental qualifiers, and trial design metadata.
ADAM/Data_SDTM/DM.xpt
ADaM analysis
- ADaM derivation programs · Derives analysis-ready datasets and analysis variables.
ADAM/SAS_Code/ADSL_ADAM_Code.pdf - Analysis derivations · Population and treatment flags, baselines, study days, and event times.
- ADSL
- ADAE
- ADLBSI
- ADTTE
- ADEX
TLF reporting
- TLF creation jobs · Seven table, listing, and figure entry points.
TLF/SAS_Code/1.TLF_Creation.sas - Statistical reporting · Reporting, survival, Cox modeling, and plotting.
- Regulatory-style outputs · Persisted tables, listings, and figures.
TLF/SAS_Output/Output_1.rtf
Validation evidence
- SDTM execution logs
SDTM/SAS_Log/DM_Log.pdf - SDTM compare reports · Independent domain comparison evidence.
SDTM/SAS_PROC_COMPARE/DM_PROC_COMPARE.rtf - ADaM execution logs · Reproducibility and warning/error evidence.
ADAM/SAS_Log/ADSL_ADAM_Log.pdf - ADaM compare reports · Independent analysis-dataset comparison evidence.
ADAM/SAS_PROC_COMPARE/ADAE_PROC_COMPARE_ADAM.rtf - TLF execution logs
TLF/SAS_Log/Output_1.log
Connections 24
- CRF source extracts → SDTM domain programs: source inputs
- SDTM domain programs → SDTM domains: standardizes
- SDTM domains → SDTM transport package: exports XPT
- SDTM domain programs → SDTM execution logs: run evidence
- SDTM domains → SDTM compare reports: compared
- SDTM transport package → ADaM derivation programs: integrated inputs
- ADaM derivation programs → Analysis derivations: derives
- Analysis derivations → ADSL: subject analysis
- Analysis derivations → ADAE: event analysis
- Analysis derivations → ADLBSI: lab analysis
- Analysis derivations → ADTTE: time-to-event
- Analysis derivations → ADEX: exposure analysis
- ADaM derivation programs → ADaM execution logs: run evidence
- ADSL → ADaM compare reports: validated
- ADAE → ADaM compare reports: validated
- ADTTE → ADaM compare reports: validated
- ADSL → TLF creation jobs: analysis input
- ADAE → TLF creation jobs: analysis input
- ADLBSI → TLF creation jobs: analysis input
- ADTTE → TLF creation jobs: analysis input
- ADEX → TLF creation jobs: analysis input
- TLF creation jobs → Statistical reporting: executes
- Statistical reporting → Regulatory-style outputs: produces
- TLF creation jobs → TLF execution logs: run evidence