Skip to contents

Returns the submission value of the NCI codelist associated with a CDISC SDTM or ADaM variable, or NULL when the variable has no codelist (e.g. STUDYID) or is unknown. Data sourced from CDISC Library across SDTMIG 3.3 + 3.4 and ADaMIG 1.1 + 1.2.

Usage

variable_codelist(var, ig = NULL)

Arguments

var

Scalar character. Variable name (e.g. "SEX", "AESEV").

ig

Optional scalar character. When supplied, restrict the lookup to variables that appear in the given IG (e.g. "SDTMIG 3.3"). When NULL (default), any IG matches.

Value

Scalar character submission value, or NULL.

Examples

variable_codelist("SEX")     # "SEX"
#> [1] "SEX"
variable_codelist("STUDYID") # NULL
#> NULL
variable_codelist("AESEV")   # "AESEV"
#> [1] "AESEV"