Skip to contents

Returns TRUE when the variable's ADaMIG / SDTMIG core value is "Req" for the given implementation guide and datastructure (or SDTM domain). Returns FALSE for "Cond", "Perm", or "Exp"; NA when the combination is not defined in CDISC Library.

Usage

variable_is_required(var, ig, ds)

Arguments

var

Scalar character variable name.

ig

Scalar character IG identifier, e.g. "SDTMIG 3.3", "ADaMIG 1.2".

ds

Scalar character datastructure or SDTM domain name as used by CDISC Library, e.g. "Demographics", "Subject-Level Analysis Dataset Structure".

Value

TRUE, FALSE, or NA.

Examples

variable_is_required("USUBJID", "SDTMIG 3.3", "Demographics") # TRUE
#> [1] TRUE
variable_is_required("AESEV", "SDTMIG 3.3", "Adverse Events") # FALSE
#> [1] FALSE