View source: R/addObservationPeriodId.R
| addObservationPeriodIdQuery | R Documentation |
Add the ordinal number of the observation period associated that a given date is in. Result is not computed, only query is added.
addObservationPeriodIdQuery(
x,
indexDate = "cohort_start_date",
nameObservationPeriodId = "observation_period_id"
)
x |
A table containing individuals in a CDM reference. |
indexDate |
Name of a date column in |
nameObservationPeriodId |
Name of the observation-period ID column to add. |
Table with the current observation period id added.
library(PatientProfiles)
cdm <- mockPatientProfiles(source = "duckdb")
cdm$cohort1 |>
addObservationPeriodIdQuery()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.