Skip to contents

Get Cohort Addresses

Usage

getCohortAddresses(connectionDetails, cdmDatabaseSchema, cohort)

Arguments

connectionDetails

(list) For connecting to an OMOP server. An object of class connectionDetails as created by the createConnectionDetails function

cohort

(data.frame) A table that includes a columns named "SUBJECT_ID" that contains a list of OMOP person_ids. Ideally, an OHDSI cohort table

cdmDatabseSchema

(character) 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'.

Value

(data.frame) An augmented Cohort table with patient addresses attached

Examples

if (FALSE) {
getCohortAddresses(connectionDetails = connectionDetails,
                   cdmDatabaseSchema = "myDatabase.dbo",
                   cohort = cohort)
}