This function executes some SQL to extract covaraite data for a cohort table
getCovariateData(connection, cdmDatabaseSchema,
oracleTempSchema = cdmDatabaseSchema, cohortTable = "#cohort_person",
cdmVersion = 5, covariateSettings)
Can also use an existing connection rather than the connectionDetails
The name of the database schema that contains the OMOP CDM instance. Requires read permissions to this database. On SQL Server, this should specifiy both the database and the schema, so for example 'cdm_instance.dbo'.
For Oracle only: the name of the database schema where you want all temporary tables to be managed. Requires create/insert permissions to this database.
The temp table containing the cohort of people
The version of the CDM (default 5)
An object of type covariateSettings
as created using the
createCovariateSettings
function in the
FeatureExtraction
package.
Returns the covariates for the people in the temp table