Introduction
The Basic Data Structure (BDS) is a fundamental element within the Analysis Data Model (ADaM), which is a significant component of the Clinical Data Interchange Standards Consortium (CDISC).
BDS is the standard domain structure in ADaM, designed to facilitate the creation of analysis-ready datasets.
This structure allows for one or more records per subject per analysis parameter per analysis time point.
All the BDS datasets usually follow same variables, with a sprinkle of dataset specific suffix's. Examples are ADVS, ADLB, ADEG.
Some of the common variables in BDS datasets
Common variables in BDS datasets:
- STUDYID
- USUBJID
- SUBJID
- SITEID
- TRTP
- TRTPN
- TRTA
- TRTAN
- SCRNFL
- ENRLFL
- ITTFL
- SAFFL
- PKFL
- ADT
- ADTM
- ATM
- ADY
- VISIT
- VISITNUM
- AVISIT
- AVISITN
- PARAM
- PARAMCD
- AVAL
- DTYPE
- ABLFL
- BASE
- CHG
- EPOCH
- APHASE
- ANL01FL
- —ORRES
- —STRESC
- —STRESN
- —STRESU
- —SEQ
- —DTC
- —DY
- AVALCAT01
variables in ADLB dataset:
- LBSTAT
- LBNAM
- LBSPEC
- LBNRIND
- LBSTNRLO
- LBSTNRHI
- LBORNRLO
- LBORNRHI
- SHIFT1
- SHIFT1N
Variables in ADEG dataset:
- CHGCAT1
- CHGCA1N
- PCHG
- RHYOTH
Steps to create a BDS Dataset
-
Creating library.
-
Merging with ADSL dataset
- Sorting the LB dataset by USUBJID
- Merging with ADSL with full join
- Creating all the renaming variables
-
Creation derived variables
- Analysis date time variable
- Defining Analysis visit variable
- Addressing parameter variables
-
Baseline concept
-
Separating pre base variables (TRTSDT>ADT)
-
Creating baseline flag and base variable. (Use LAST.PARAMCD statement sorted by USUBJID PARAMCD ADT ADTM)
-
Sort the datasets both the base and master dataset by USUBJID PARAMCD —SEQ variables.
-
Merging with master dataset
- Merge for Analysis baseline flag only (ABLFL)
- keeping only USUBJID PARAMCD —SEQ from base dataset.
- use only left join.
- Merge for Base variable only (BASE)
- Keep only USUBJID PARAMCD.
- Use left join.
- Creating the change (CHG) and percentage change (PCHG) variable
- Merge for Analysis baseline flag only (ABLFL)
-
-
Creation of Derivation variable
Usually depends by the requirement. for me in ADVS it was Last Observation Carry Forward (LOCF) and in ADLB it was Minimum observation, in ADEG it was Worst case (WOCF).
Below is the example for ADLB DYPE derivation
- Creating a dataset by sorting the master dataset by PARAMCD and Date and time variable (USUBJID PARAMCD ADT ADTM).
- Defining the variables
- Append the above dataset with the master dataset.
-
Now create the remaining variables, here the variables were:
- Analysis Phase (APHASE)- in which phase the vitals are done (for e.g.,- Pre-tx, On-tx or Post-tx).
- Analysis Record Flag 01 (ANl01FL).
-
Sorting by Key variable
-
Creating final dataset
Note:
Here I have mentioned only ADVS dataset, but the concept for making BDS datasets is almost same just some dataset specific variable differs
Comments
Post a Comment