Create during covariate settings
createDuringCovariateSettings(
useConditionOccurrenceDuring = F,
useConditionOccurrencePrimaryInpatientDuring = F,
useConditionEraDuring = F,
useConditionGroupEraDuring = F,
useDrugExposureDuring = F,
useDrugEraDuring = F,
useDrugGroupEraDuring = F,
useProcedureOccurrenceDuring = F,
useDeviceExposureDuring = F,
useMeasurementDuring = F,
useObservationDuring = F,
useVisitCountDuring = F,
useVisitConceptCountDuring = F,
includedCovariateConceptIds = c(),
addDescendantsToInclude = F,
excludedCovariateConceptIds = c(),
addDescendantsToExclude = F,
includedCovariateIds = c()
)
One covariate per condition in the condition_occurrence table starting between cohort start and cohort end. (analysis ID 109)
One covariate per condition observed as a primary diagnosis in an inpatient setting in the condition_occurrence table starting between cohort start and cohort end. (analysis ID 110)
One covariate per condition in the condition_era table starting between cohort start and cohort end. (analysis ID 217)
One covariate per condition era rolled up to groups in the condition_era table starting between cohort start and cohort end. (analysis ID 218)
One covariate per drug in the drug_exposure table between cohort start and end. (analysisId 305)
One covariate per drug in the drug_era table between cohort start and end. (analysis ID 417)
One covariate per drug rolled up to ATC groups in the drug_era table between cohort start and end. (analysis ID 418)
One covariate per procedure in the procedure_occurrence table between cohort start and end. (analysis ID 505)
One covariate per device in the device exposure table starting between cohort start and end. (analysis ID 605)
One covariate per measurement in the measurement table between cohort start and end. (analysis ID 713)
One covariate per observation in the observation table between cohort start and end. (analysis ID 805)
The number of visits observed between cohort start and end. (analysis ID 926)
The number of visits observed between cohort start and end, stratified by visit concept ID. (analysis ID 927)
A list of concept IDs that should be used to construct covariates.
Should descendant concept IDs be added to the list of concepts to include?
A list of concept IDs that should NOT be used to construct covariates.
Should descendant concept IDs be added to the list of concepts to exclude?
A list of covariate IDs that should be restricted to.
An object of type covariateSettings
, to be used in other functions.
creates an object specifying how during covariates should be constructed from data in the CDM model.
Other CovariateSetting:
getDbDuringCovariateData()
settings <- createDuringCovariateSettings(
useConditionOccurrenceDuring = TRUE,
useConditionOccurrencePrimaryInpatientDuring = FALSE,
useConditionEraDuring = FALSE,
useConditionGroupEraDuring = FALSE
)