README.md

ohdsi-DeriveVariables

R package for deriving variables from the OMOP Common Data Model.

Usage:

install.packages("devtools")
library("devtools")
install_github("ohdsi/OhdsiRTools")
install_github("ohdsi/SqlRender")
install_github("ohdsi/DatabaseConnector")
install_github("thehyve/ohdsi-DeriveVariables")
library("OHDSIDeriveVariables")
connectionDetails <- createConnectionDetails(dbms="postgresql",
                                             server="localhost/ohdsi",
                                             user="postgres", password="",
                                             port=5432,
                                             schema="cdm5")
connection <- connect(connectionDetails)

createCohort(connection, connectionDetails, "cdm5", "study", "cohort")
cohort <- getCohort(connectionDetails, "cdm5", "study", "cohort")


thehyve/ohdsi-DeriveVariables documentation built on May 31, 2019, 9:13 a.m.