Skip to content

ohdsi-studies/GlaucomaPrescreeningPrediction

Repository files navigation

Predicting Risk of Glaucoma Using Systemic Health EHR: An OHDSI Network Study

Study Status: Repo Created

[Description (single paragraph)]

[You can add other text at this point]

Code to run study

# first install the package
remotes::install_github('ohdsi-studies/GlaucomaPrescreeningPrediction')

# set up python environment to use 
reticulate::virtualenv_create("glaucoma-screen", requirements = system.file('requirements.txt', package = 'GlaucomaPrescreeningPrediction'))
reticulate::use_virtualenv("glaucoma-screen")

# Specify the connection stuff 
cohortTable <- 'glau_screen_cohort'
cdmDatabaseSchema <- '<add schema with OMOP CDM data>'
cohortDatabaseSchema <- '<add schema with read/write access>'
tempEmulationSchema <- Sys.getenv("DATABRICKS_SCRATCH_SCHEMA")
options(sqlRenderTempEmulationSchema = tempEmulationSchema)


# get data
connectionDetails <- <add connection details>

# TODO: add code to create cohorts here

# run the model
results <- GlaucomaPrescreeningPrediction::execute(
    connectionDetails = connectionDetails,
    cdmDatabaseSchema = cdmDatabaseSchema,
    cohortDatabaseSchema = cohortDatabaseSchema,
    tempEmulationSchema = tempEmulationSchema,
    cohortTable = cohortTable,
    targetId = 23884,
    outcomeId = 23933,
    sampleSize = 40000
)

About

A network study to externally validate an existing glaucoma screening model

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages