View source: R/GetExposureData.R
getDbExposureData | R Documentation |
If additional exposure data or covariate data is required, this function will send the information on the cases and controls back to the server.
Note: For PDW and RedShift, where uploading data can be excrutiatingly slow, you can use bulk loading
by preparing the environment as described in the insertTable
function
in the DatabaseConnection package, and setting tempEmulationSchema
to a schema where you have write
privileges (bulk import can only upload to permanent tables).
getDbExposureData( caseControls, connectionDetails, tempEmulationSchema = getOption("sqlRenderTempEmulationSchema"), exposureDatabaseSchema = NULL, exposureTable = "drug_era", exposureIds = c(), cdmDatabaseSchema = exposureDatabaseSchema, covariateSettings = NULL, caseData = NULL )
caseControls |
A data frame as generated by the |
connectionDetails |
An R object of type |
tempEmulationSchema |
Some database platforms like Oracle and Impala do not truly support temp tables. To emulate temp tables, provide a schema with write privileges where temp tables can be created. |
exposureDatabaseSchema |
The name of the database schema that is the location where the exposure data used to define the exposure cohorts is available. If exposureTable = DRUG_ERA, exposureDatabaseSchema is not used but assumed to be cdmSchema. Requires read permissions to this database. |
exposureTable |
The tablename that contains the exposure cohorts. If exposureTable <> drug_era, then expectation is exposureTable has format of COHORT table: cohort_definition_id, subject_id, cohort_start_date, cohort_end_date. |
exposureIds |
A list of identifiers to define the exposures of interest. If exposureTable = drug_era, exposureIds should be concept_id. If exposureTable <> drug_era, exposureIds is used to select the cohort_definition_id in the cohort-like table. If no exposureIds are provided, all drugs or cohorts in the exposureTable are included as exposures. |
cdmDatabaseSchema |
Needed when constructing covariates using FeatureExtraction: the name of the database schema that contains the OMOP CDM instance. Requires read permissions to this database. On SQL Server, this should specify both the database and the schema, so for example 'cdm_instance.dbo'. |
covariateSettings |
Either an object of type |
caseData |
An object of type |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.