Defines a single phenotype
phenotype(id, value, from, to, instance = "0")
A single phenotype id. Possible phenotyoes can be explored using the codecb_search_phenotypes function
The categorical value of the phenotype id defined
For continuous phenotypes, the lower bound of the desired value range
For continuous phenotypes, the upper bound of the desired value phenotype
The instance number of the phenotype, default 0
A single phenotypes definition that cam be combined using &,| and ! operators
if (FALSE) {
continuous_phenotype <- phenotype(id = 13, from = "2016-01-21", to = "2017-02-13")
categorical_phenotype <- phenotype(id = 4, value = "Cancer")
}