OHDSI GIS
WGgaiaCore is an R package for working with a Gaia database. It connects to gaiaDb directly with DatabaseConnector, runs the Gaia pipeline from R, and provides the quality checks and exposure analytics that turn the result into evidence for OHDSI studies. All spatial processing happens inside gaiaDb: gaiaCore calls its SQL functions, so every derived value stays traceable to the catalog entry, the geometry and the residence interval that produced it.
EXTERNAL_EXPOSUREohdsi/gaia-core: HADES
(RStudio) with gaiaCore and the extension packages (CaprForExtensions,
FeatureExtractionForExtensions) installedgaiaCore sits between gaiaDb and the HADES analytics:
EXTERNAL_EXPOSURE table, which
the rest of the OHDSI tools consumeThe Python, Java, Julia, Bash and PostgREST-based R clients that used
to live in the gaiaCore repository are on its connectors
branch, until they find their own home. The PostgREST API service is
deployed by gaiaDocker.
library(gaiaCore)
connection <- connectGaia(createGaiaConnectionDetails(server = "gaia-db/gaiacore"))
ingestDatasource(connection, "us_2023_county_tl")
ingestDatasource(connection, "us_2014_2019_monthly_pm25_by_county_cdc")
loadVariables(connection, "us_2014_2019_monthly_pm25_by_county_cdc", geomLabel = "name", variableNodata = -999)
loadLocationsFromOmop(connection, cdmSchema = "omopgis")
spatialJoin(connection, "pm25_mean_pred", "us_2014_2019_monthly_pm25_by_county_cdc",
exposureTypeConceptId = 2052499878)
checkExposure(connection)
copyExposureToOmop(connection, cdmSchema = "omopgis")