The aim of this study is to identify common occurrence patterns of specific complications in patients with T2D: CKD, DR, DNeu, HF, CVD and CeVD. These patterns will be assessed by population, age at T2D diagnosis and calendar year. The primary objective in this study is to characterize the occurrence and its ordered sequence of certain chronic conditions in adult patients with T2D by year, population (database) and age category. Secondary objectives:
In R
, use the following code to install the dependencies:
r
install.packages("tidyverse")
install.packages("jsonlite")
install.packages("RColorBrewer")
install.packages("devtools")
library(devtools)
install_github("ohdsi/SqlRender")
install_github("ohdsi/DatabaseConnector")
install_github("ohdsi/FeatureExtraction")
If you experience problems on Windows where rJava can't find Java, one solution may be to add args = "--no-multiarch"
to each install_github
call, for example:
r
install_github("ohdsi/SqlRender", args = "--no-multiarch")
In R
, use the following code to install the OT2DSI package:
r
install_github("ohdsi-studies/OT2DSI", args = "--no-multiarch")
Once installed, please execute the script below.
```r library(OT2DSI)
outputFolder <- "database_name"
connectionDetails <- DatabaseConnector::createConnectionDetails(dbms = "postgresql", server = "some.server.com/database", user = "joe", password = "secret", port = 5439)
cdmDatabaseSchema <- "cdm_synpuf"
targetDatabaseSchema <- "scratch.dbo" cohortTable <- "my_study_cohorts"
oracleTempSchema <- NULL
con <- DatabaseConnector::connect(connectionDetails)
OT2DSI::execute(connection = con, cdmDatabaseSchema = cdmDatabaseSchema, targetDatabaseSchema = targetDatabaseSchema, oracleTempSchema = oracleTempSchema, cohortTable = cohortTable, outputFolder = outputFolder, createCohorts = TRUE, generatePathways = TRUE, plotResults = TRUE, getCharacterization = TRUE, getIncidenceRates = TRUE) ```
Please send the output.zip file in the output folder to the study coordinator (George Argyriou - george.argyriou@iqvia.com)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.