requireIsLastEntry()
filters cohort records, keeping only the last
cohort entry per person.
Usage
requireIsLastEntry(cohort, cohortId = NULL, name = tableName(cohort))
Examples
# \donttest{
library(CohortConstructor)
cdm <- mockCohortConstructor()
cdm$cohort1 <- requireIsLastEntry(cdm$cohort1)
# }