createCohorts: This function will create the target and event cohorts...

Description Usage Arguments

View source: R/CreateCohort.R

Description

This function will create the target and event cohorts following the definitions included in this package if OMOP-CDM = TRUE.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
createCohorts(
  connection,
  connectionDetails,
  cdmDatabaseSchema,
  cohortDatabaseSchema,
  vocabularyDatabaseSchema = cdmDatabaseSchema,
  cohortTable,
  outputFolder,
  loadCohorts = FALSE,
  baseUrl = NULL,
  generateCohorts = TRUE,
  detailedCount = TRUE,
  minCellCount,
  flowChart = TRUE
)

Arguments

connection

Connection to database server.

connectionDetails

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

cdmDatabaseSchema

Schema name where your patient-level data resides if OMOP-CDM = TRUE. 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 target and event cohorts used in this study.

outputFolder

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


AniekMarkus/RespiratoryDrugPathways documentation built on May 20, 2021, 12:44 a.m.