Skip to content

Extending on our previous work by Li et al. in understanding the incidence rates of adverse events of special interest (AESI) for COVID-19, this work will look at the rates of these AESIs in patients who had COVDI-19 disease.

Notifications You must be signed in to change notification settings

ohdsi-studies/Covid19SubjectsAesiIncidenceRate

Repository files navigation

Adverse Events of Special Interest within COVID-19 Subjects

Study Status: Complete

  • Analytics use case(s): Characterization
  • Study type: Clinical Application
  • Tags: COVID-19
  • Study lead: Erica A Voss
  • Study lead forums tag: ericaVoss
  • Study start date: November 2, 2021
  • Study end date: April 4, 2023
  • Protocol: AESIs in COVID-19 Subjects Protocol
  • Publications: Voss, E. A., Shoaibi, A., Yin Hui Lai, L., Blacketer, C., Alshammari, T., Makadia, R., Haynes, K., Sena, A. G., Rao, G., van Sandijk, S., Fraboulet, C., Boyer, L., Le Carrour, T., Horban, S., Morales, D. R., Martínez Roldán, J., Ramírez-Anguita, J. M., Mayer, M. A., de Wilde, M., John, L. H., … Ryan, P. B. (2023). Contextualising adverse events of special interest to characterise the baseline incidence rates in 24 million patients with COVID-19 across 26 databases: a multinational retrospective cohort study. EClinicalMedicine, 58, 101932. https://doi.org/10.1016/j.eclinm.2023.101932
  • Results explorer: https://data.ohdsi.org/Covid19SubjectsAesiIncidenceRate/

Extending on our previous work by Li et al. 1 2 in understanding the incidence rates of adverse events of special interest (AESI) for COVID-19, this work will look at the rates of these AESIs in patients who had COVDI-19 disease.

Requirements

  • A database in Common Data Model version 5 in one of these platforms: SQL Server, Oracle, PostgreSQL, IBM Netezza, Apache Impala, Amazon RedShift, Google BigQuery, or Microsoft APS.
  • R version 4.0.0 or newer
  • On Windows: RTools
  • Java
  • 25 GB of free disk space

How to Run

  1. Follow these instructions for setting up your R environment, including RTools and Java.

  2. Create an empty folder or new RStudio project (in Windows make sure the path is not too long or you will get a "filename exceeded Windows’ internal limit"). Then in R, use the following code to install the study package and its dependencies:

    install.packages("renv")
    setwd("D:/Projects/Covid19SubjectsAesiIncidenceRate")
    download.file("https://raw.githubusercontent.com/ohdsi-studies/Covid19SubjectsAesiIncidenceRate/master/renv.lock", "renv.lock")
    renv::init()
  3. If/When asked if the project already has a lockfile select "1: Restore the project from the lockfile.".

  4. This is the main execution step. Please note this execution step will create the following tables on your database based on the user defined variables <cohortTable> and <cohortTablePrefix>.

    • <cohortTable>
    • <cohortTablePrefix>_ir_summary
    • <cohortTablePrefix>_outcome
    • <cohortTablePrefix>_outcome_ref
    • <cohortTablePrefix>_subgroup
    • <cohortTablePrefix>_subgroup_ref
    • <cohortTablePrefix>_target
    • <cohortTablePrefix>_target_ref
    • <cohortTablePrefix>_time_at_risk

    You can execute the study by modifying and using the code below. For your convenience, this code is also provided under extras/CodeToRun.R. If you are struggling with making a connection to the database, please refer to Connecting to a database.

    # --- SETUP --------------------------------------------------------------------
    library(Covid19SubjectsAesiIncidenceRate)
    
    options(andromedaTempFolder = "D:/andromedaTemp")
    options(sqlRenderTempEmulationSchema = NULL)
    
    # Details for connecting to the server:
    # See ?DatabaseConnector::createConnectionDetails for help
    connectionDetails <- DatabaseConnector::createConnectionDetails(
    						dbms = "postgresql",
    						server = "some.server.com/ohdsi",
    						user = "joe",
    						password = "secret")
    
    outputFolder <- "D:/Covid19SubjectsAesiIncidenceRate/results"
    cdmDatabaseSchema <- "cdm_synpuf"
    cohortDatabaseSchema <- "scratch.dbo"
    cohortTablePrefix <- "aesi"
    cohortTable <- "aesi_cohort"
    databaseId <- "synpuf"
    databaseName <- "Medicare Claims Synthetic Public Use Files (SynPUFs)"
    databaseDescription <- "Medicare Claims Synthetic Public Use Files (SynPUFs) were created to allow interested parties to gain familiarity using Medicare claims data while protecting beneficiary privacy. These files are intended to promote development of software and applications that utilize files in this format, train researchers on the use and complexities of Centers for Medicare and Medicaid Services (CMS) claims, and support safe data mining innovations. The SynPUFs were created by combining randomized information from multiple unique beneficiaries and changing variable values. This randomization and combining of beneficiary information ensures privacy of health information."
    
    # --- EXECUTE ------------------------------------------------------------------
    Covid19SubjectsAesiIncidenceRate::execute(connectionDetails = connectionDetails,
                        outputFolder = outputFolder,
                        cdmDatabaseSchema = cdmDatabaseSchema,
                        cohortDatabaseSchema = cohortDatabaseSchema,
                        cohortTablePrefix = cohortTablePrefix,
                        cohortTable = cohortTable,
                        databaseId = databaseId,
                        databaseName = databaseName,
                        databaseDescription = databaseDescription,
                        createCohortsAndRef = TRUE,
                        runCohortDiagnostics = TRUE,
                        runIR = TRUE)
  5. (OPTIONAL) If you want to view your CohortDiagnostics results, run the following:

    # --- VIEW COHORT DIAGNOSTICS --------------------------------------------------
    # If CohortDiagnostics has been run, you can call the RShiney viewer like this:
    CohortDiagnostics::preMergeDiagnosticsFiles(file.path(outputFolder, "cohortDiagnostics"))
    CohortDiagnostics::launchDiagnosticsExplorer(dataFolder = file.path(outputFolder,"cohortDiagnostics"))
  6. Upload the files results/cohortDiagnostics/Results_<DatabaseId>.zip and results/incidenceRate/Results_IR_<DatabaseId>.zip in the output folder to the study coordinator:

    privateKeyFileName <- "<file>"
    userName <- "<name>"
    Covid19SubjectsAesiIncidenceRate::uploadDiagnosticsResults(file.path(outputFolder,"cohortDiagnostics"), privateKeyFileName, userName)
    Covid19SubjectsAesiIncidenceRate::uploadStudyResults(file.path(outputFolder, "incidenceRate"), privateKeyFileName, userName)

    Where <file> and <name> are the credentials provided to you personally by the study coordinator.

License

The Covid19SubjectsAesiIncidenceRate package is licensed under Apache License 2.0.

Development

Covid19SubjectsAesiIncidenceRate was developed in ATLAS and R Studio.

About

Extending on our previous work by Li et al. in understanding the incidence rates of adverse events of special interest (AESI) for COVID-19, this work will look at the rates of these AESIs in patients who had COVDI-19 disease.

Resources

Stars

Watchers

Forks

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •