summariseInObservation(
observationPeriod,
interval = "overall",
output = "record",
ageGroup = NULL,
sex = FALSE,
dateRange = NULL
)A summarised_result object with the results.
An observation_period omop table. It must be part of a cdm_reference object.
Time interval to stratify by. It can either be "years", "quarters", "months" or "overall".
Output format. It can be either the number of records ("record") that are in observation in the specific interval of time, the number of person-days ("person-days"), the number of subjects ("person"), the number of females ("sex") or the median age of population in observation ("age").
A list of age groups to stratify the results by. Each element
represents a specific age range. You can give them specific names, e.g.
ageGroup = list(children = c(0, 17), adult = c(18, Inf)).
Logical; whether to stratify results by sex (TRUE) or not
(FALSE).
A vector of two dates defining the desired study period.
Only the start_date column of the OMOP table is checked to ensure it falls within this range.
If dateRange is NULL, no restriction is applied.