demographicsCohort: Create cohorts based on patient demographics
Description
demographicsCohort() creates a cohort table based on patient
characteristics. If and when an individual satisfies all the criteria they
enter the cohort. When they stop satisfying any of the criteria their
cohort entry ends.