Defines a single phenotype

phenotype(id, value, from, to, instance = "0")

Arguments

id

A single phenotype id. Possible phenotyoes can be explored using the codecb_search_phenotypes function

value

The categorical value of the phenotype id defined

from

For continuous phenotypes, the lower bound of the desired value range

to

For continuous phenotypes, the upper bound of the desired value phenotype

instance

The instance number of the phenotype, default 0

Value

A single phenotypes definition that cam be combined using &,| and ! operators

Examples

if (FALSE) {
continuous_phenotype <- phenotype(id = 13, from = "2016-01-21", to = "2017-02-13")
categorical_phenotype <- phenotype(id = 4, value = "Cancer")
}