Skip to contents

Introduction

This repository describes the OHDSI HADES results model. These are the tables that are populated by the various HADES packages, often as part of a Strategus execution. The repository also contains an R package with model resources and utilities.

Here you’ll find:

This repository follows the standard R package structure. Model resources live under inst/:

  • inst/modules/: versioned module definitions (<ModuleName>/v<semver>/definition.yaml)
  • inst/releases/: release manifests (release_vYYYY_QX.yaml)
  • inst/schemas/: JSON Schemas used for validation
  • inst/sql/: generated holistic SQL output (working/output directory)

Example: Migrating a results database to the latest version

library(HadesResultsModel)
connection <- DatabaseConnector::connect(dbms = "postgresql", ...)

# Detect current data model versions in your database
versions <- inferCurrentVersions(connection)

# Migrate database to latest versions
migrateResultsModel(connection, targetVersions = NULL)  # NULL = latest

Technology

HadesResultsModel is an R package. The data model is formatted using YAML.

System Requirements

Requires R (version 4.0.0 or higher) to run the package

Installation

  1. See the instructions here for configuring your R environment, including RTools and Java.

  2. In R, use the following commands to download and install HadesResultsModel:

    install.packages("remotes")
    remotes::install_github("ohdsi/HadesResultsModel")

User Documentation

Documentation can be found on the package website.

PDF versions of the documentation are also available:

Support

Contributing

Read here how you can contribute to this package.

License

HadesResultsModel is licensed under Apache License 2.0

Development

HadesResultsModel is being developed in R Studio.

Development status

HadesResultsModel is under development. There are no guarantees on stability or backwards compatibility at this point.