createCohorts: Create the exposure and outcome cohorts

Description Usage Arguments Details

View source: R/helpers.R

Description

Create the exposure and outcome cohorts

Usage

1
2
3
4
5
6
7
8
createCohorts(
  connectionDetails,
  cdmDatabaseSchema,
  cohortDatabaseSchema,
  cohortTable = "cohort",
  oracleTempSchema,
  outputFolder
)

Arguments

connectionDetails

An object of type connectionDetails as created using the createConnectionDetails function in the DatabaseConnector package.

cdmDatabaseSchema

Schema name where your patient-level data in OMOP CDM format resides. Note that for SQL Server, this should include both the database and schema name, for example 'cdm_data.dbo'.

cohortDatabaseSchema

Schema name where intermediate data can be stored. You will need to have write priviliges in this schema. Note that for SQL Server, this should include both the database and schema name, for example 'cdm_data.dbo'.

cohortTable

The name of the table that will be created in the work database schema. This table will hold the exposure and outcome cohorts used in this study.

oracleTempSchema

Should be used in Oracle to specify a schema where the user has write priviliges for storing temporary tables.

outputFolder

Name of local folder to place results; make sure to use forward slashes (/)

Details

This function will create the exposure and outcome cohorts following the definitions included in this package.


ted9219/CoDImputationHeart documentation built on Sept. 15, 2020, 11:30 a.m.