checkCohortRequirements(
cohort,
checkEndAfterStart = TRUE,
checkOverlappingEntries = TRUE,
checkMissingValues = TRUE,
checkInObservation = TRUE,
type = "error",
call = parent.frame()
)
An error will be returned if any of the selected checks fail.
cohort_table
object.
If TRUE a check that all cohort end dates come on or after cohort start date will be performed.
If TRUE a check that no individuals have overlapping cohort entries will be performed.
If TRUE a check that there are no missing values in required fields will be performed.
If TRUE a check that cohort entries are within the individuals observation periods will be performed.
Can be either "error" or "warning". If "error" any check failure will result in an error, whereas if "warning" any check failure will result in a warning.
The call for which to return the error message.