View source: R/addDemographicsQuery.R
| addInObservationQuery | R Documentation |
Same as addInObservation(), except query is not computed to a table.
addInObservationQuery(
x,
indexDate = "cohort_start_date",
window = c(0, 0),
completeInterval = FALSE,
nameStyle = "in_observation",
type = "numeric"
)
x |
A table containing individuals in a CDM reference. |
indexDate |
Name of a date column in |
window |
Window or windows of time relative to |
completeInterval |
If |
nameStyle |
Naming pattern for the added column or columns. It should
include the required formatting variables. If more than one |
type |
Type of the created column(s). Counts, days, age, and observation
durations can be |
Cohort table with an added column assessing observation. Values are
1/TRUE in observation and 0/FALSE otherwise, according to type.
library(PatientProfiles)
cdm <- mockPatientProfiles(source = "duckdb")
cdm$cohort1 |>
addInObservationQuery()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.