Skip to content

Produces a derived variable that maps gender_concept_id to "M" (8507) or "F" (8532).

Usage

omop_variable_sex(name = "sex")

Arguments

name

Character; output column name (default "sex").

Value

An omop_variable object with format = "sex_mf" and a $derived metadata field.

Examples

if (FALSE) { # \dontrun{
recipe <- omop_recipe(variables = omop_variable_sex(),
                      outputs = omop_output(type = "wide"))
} # }