View source: R/addDemographicsQuery.R
addInObservationQuery | R Documentation |
'r lifecycle::badge("experimental")' 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"
)
x |
Table with individuals in the cdm. |
indexDate |
Variable in x that contains the date to compute the observation flag. |
window |
window to consider events of. |
completeInterval |
If the individuals are in observation for the full window. |
nameStyle |
Name of the new columns to create, it must contain "window_name" if multiple windows are provided. |
cohort table with the added binary column assessing inObservation.
cdm <- mockPatientProfiles()
cdm$cohort1 %>%
addInObservationQuery()
mockDisconnect(cdm = cdm)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.