buildCohort: Create the exposure and outcome cohorts

Description Usage Arguments Details

Description

Create the exposure and outcome cohorts

Usage

1
2
buildCohort(connectionDetails, cdmDatabaseSchema, resultsDatabaseSchema,
  treatment, comparator, outComeId)

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'.

resultsDatabaseSchema

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'.

treatment

The name of the of treatment cohort that you want to creat, for example treatment = c("BigToBig.sql) will creat treatment cohort of patients who start with Biguanide and remain on it.

comparator

The name of the comparator cohort that you want to create, for example comparator = c("SulfToSulf.sql) will create comparator cohort with respect to treatment cohort above.

outComeId

The outcome Id of interest.

Details

This function will create treatment, comparator and outcomes cohort as included in this package.


rohit43/DiabetesTxPath documentation built on May 27, 2019, 1:46 p.m.