Build and Manipulate Study Cohorts Using a Common Data Model


[Up] [Top]

Documentation for package ‘CohortConstructor’ version 0.1.0

Help Pages

collapseCohorts Collapse cohort entries using a certain gap to concatenate records.
conceptCohort Create cohorts based on a concept set
demographicsCohort Create cohorts based on patient demographics
entryAtFirstDate Set cohort start date to the first of a set of column dates
entryAtLastDate Set cohort start date to the last of a set of column dates
exitAtDeath Set cohort end date to death date
exitAtFirstDate Set cohort end date to the first of a set of column dates
exitAtLastDate Set cohort end date to the last of a set of column dates
exitAtObservationEnd Set cohort end date to end of observation
intersectCohorts Generate a combination cohort set between the intersection of different cohorts.
matchCohorts Generate a new cohort matched cohort from a preexisting target cohort. The new cohort will contain individuals not included in the target cohort with same year of birth (matchYearOfBirth = TRUE) and same sex (matchSex = TRUE).
measurementCohort Create cohorts from the measurement table based on a concept set and required measurement values
mockCohortConstructor Function to create a mock cdm reference for CohortConstructor
requireAge Restrict cohort on age
requireCohortIntersectFlag Require cohort subjects are present in another cohort
requireConceptIntersectFlag Require cohort subjects to have events of a concept list
requireDeathFlag Require cohort subjects' death at a certain time window
requireDemographics Restrict cohort on patient demographics
requireFutureObservation Restrict cohort on future observation
requireInDateRange Require that an index date is within a date range
requireIsFirstEntry Restrict cohort to first entry by index date
requireIsLastEntry Restrict cohort to last entry by index date
requirePriorObservation Restrict cohort on prior observation
requireSex Restrict cohort on sex
requireTableIntersectFlag Require cohort subjects are present in another table
stratifyCohorts Crate a new cohort table with the specified stratifications.
subsetCohorts Generate a cohort table using a subset of cohorts from another table.
trimDemographics Restrict cohort on patient demographics
trimToDateRange Trim cohort dates to be within a date range
unionCohorts Generate cohort from the union of different cohorts
yearCohorts Generate a new cohort table restricting cohort entries to certain years