CohortSubsetDefinition | R Documentation |
Set of subset definitions
targetOutputPairs
list of pairs of integers - (targetCohortId, outputCohortId)
subsetOperators
list of subset operations
name
name of definition
subsetCohortNameTemplate
template string for formatting resulting cohort names
operatorNameConcatString
string used when concatenating operator names together
definitionId
numeric definition id
identifierExpression
expression that can be evaluated from
new()
CohortSubsetDefinition$new(definition = NULL)
definition
json or list representation of object to List
toList()
List representation of object to JSON
CohortSubsetDefinition$toList()
toJSON()
json serialized representation of object add Subset Operator
CohortSubsetDefinition$toJSON()
addSubsetOperator()
add subset to class - checks if equivalent id is present Will throw an error if a matching ID is found but reference object is different
CohortSubsetDefinition$addSubsetOperator(subsetOperator)
subsetOperator
a SubsetOperator instance
overwrite
if a subset operator of the same ID is present, replace it with a new definition get query for a given target output pair
getSubsetQuery()
Returns vector of join, logic, having statements returned by subset operations
CohortSubsetDefinition$getSubsetQuery(targetOutputPair)
targetOutputPair
Target output pair Get name of an output cohort
getSubsetCohortName()
CohortSubsetDefinition$getSubsetCohortName( cohortDefinitionSet, targetOutputPair )
cohortDefinitionSet
Cohort definition set containing base names
targetOutputPair
Target output pair Set the targetOutputPairs to be added to a cohort definition set
setTargetOutputPairs()
CohortSubsetDefinition$setTargetOutputPairs(targetIds)
targetIds
list of cohort ids to apply subsetting operations to Get json file name for subset definition in folder
getJsonFileName()
CohortSubsetDefinition$getJsonFileName( subsetJsonFolder = "inst/cohort_subset_definitions/" )
subsetJsonFolder
path to folder to place file
clone()
The objects of this class are cloneable with this method.
CohortSubsetDefinition$clone(deep = FALSE)
deep
Whether to make a deep clone.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.