README.md

OT2DSI: Observational study of type 2 diabetes and its complications: a chronological overview using the OHDSI network

Study Status: Design Finalized

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:

Requirements

How to run

  1. 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")

  2. In R, use the following code to install the OT2DSI package:

    r install_github("ohdsi-studies/OT2DSI", args = "--no-multiarch")

  3. Once installed, please execute the script below.

    ```r library(OT2DSI)

    The folder where the study result files will be written:

    outputFolder <- "database_name"

    Details for connecting to the server:

    See ?DatabaseConnector::createConnectionDetails for help

    connectionDetails <- DatabaseConnector::createConnectionDetails(dbms = "postgresql", server = "some.server.com/database", user = "joe", password = "secret", port = 5439)

    The name of the database schema where the CDM data can be found:

    cdmDatabaseSchema <- "cdm_synpuf"

    The name of the database schema and table where the study-specific cohorts will be instantiated:

    targetDatabaseSchema <- "scratch.dbo" cohortTable <- "my_study_cohorts"

    For Oracle: define a schema that can be used to emulate temp tables:

    oracleTempSchema <- NULL

    Connect to the server

    con <- DatabaseConnector::connect(connectionDetails)

    To execute the analysis, run the command below:

    OT2DSI::execute(connection = con, cdmDatabaseSchema = cdmDatabaseSchema, targetDatabaseSchema = targetDatabaseSchema, oracleTempSchema = oracleTempSchema, cohortTable = cohortTable, outputFolder = outputFolder, createCohorts = TRUE, generatePathways = TRUE, plotResults = TRUE, getCharacterization = TRUE, getIncidenceRates = TRUE) ```

  4. Please send the output.zip file in the output folder to the study coordinator (George Argyriou - george.argyriou@iqvia.com)



ohdsi-studies/OT2DSI documentation built on Dec. 22, 2021, 4:17 a.m.