validateCohortArgument: Validate a cohort table input.

View source: R/validate.R

validateCohortArgumentR Documentation

Validate a cohort table input.

Description

Validate a cohort table input.

Usage

validateCohortArgument(
  cohort,
  checkEndAfterStart = FALSE,
  checkOverlappingEntries = FALSE,
  checkMissingValues = FALSE,
  checkInObservation = FALSE,
  validation = "error",
  call = parent.frame()
)

Arguments

cohort

Object to be validated as a valid cohort input.

checkEndAfterStart

If TRUE a check that all cohort end dates come on or after cohort start date will be performed.

checkOverlappingEntries

If TRUE a check that no individuals have overlapping cohort entries will be performed.

checkMissingValues

If TRUE a check that there are no missing values in required fields will be performed.

checkInObservation

If TRUE a check that cohort entries are within the individuals observation periods will be performed.

validation

How to perform validation: "error", "warning".

call

A call argument to pass to cli functions.


omopgenerics documentation built on Sept. 30, 2024, 9:16 a.m.