Set of subset definitions pretty in print
targetOutputPairslist of pairs of integers - (targetCohortId, outputCohortId)
subsetOperatorslist of subset operations
namename of definition
subsetCohortNameTemplatetemplate string for formatting resulting cohort names
operatorNameConcatStringstring used when concatenating operator names together
definitionIdnumeric definition id
identifierExpressionexpression that can be evaluated from
print()CohortSubsetDefinition$print(...)...further arguments passed to or from other methods.
new()CohortSubsetDefinition$new(definition = NULL)definitionjson 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)subsetOperatora SubsetOperator instance
overwriteif 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)targetOutputPairTarget output pair Get name of an output cohort
getSubsetCohortName()CohortSubsetDefinition$getSubsetCohortName(
cohortDefinitionSet,
targetOutputPair
)cohortDefinitionSetCohort definition set containing base names
targetOutputPairTarget output pair Set the targetOutputPairs to be added to a cohort definition set
setTargetOutputPairs()CohortSubsetDefinition$setTargetOutputPairs(targetIds)targetIdslist 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/"
)subsetJsonFolderpath to folder to place file
clone()The objects of this class are cloneable with this method.
CohortSubsetDefinition$clone(deep = FALSE)deepWhether to make a deep clone.