Build observation_period
table from data recorded in the cdm_reference
Source: R/buildObservationPeriod.R
buildObservationPeriod.Rd
Build observation_period
table from data recorded in the cdm_reference
Arguments
- cdm
A
cdm_reference
object.- collapseDays
Distance between records to be collapsed.
- persistenceDays
Number of days added at the end of an observation period as persistence window.
- dateRange
Range of dates to be considered. By default '1900-01-01' is used as start date, whereas for censor date the first available of
source_release_date
,cdm_release_date
, andSys.Date()
will be used.- censorAge
Age to censor individuals if they reach a certain age. The last day in observation of the individual will be the day prior to their birthday.
- recordsFrom
Tables to retrieve observation records from.
- periodTypeConceptId
Choose the observation_period_type_concept_id that best represents how the period was determined. Accepted Concepts.