Eunomia is a standard dataset in the Common Data Model (CDM) for testing and demonstration purposes. Eunomia is used for many of the exercises in the Book of OHDSI.

Features

  • Provides a small simulated dataset in the CDM.
  • Also includes a subset of the Standardized Vocabularies.
  • Interfaces with the DatabaseConnector and SqlRender packages.
  • No need to set up a database server. Eunomia runs in your R instance (using SQLite).

Example

library(Eunomia)
connectionDetails <- getEunomiaConnectionDetails()
connection <- connect(connectionDetails)
querySql(connection, "SELECT COUNT(*) FROM person;")
#  COUNT(*)
#1     2694
disconnect(connection)

Technology

Eunomia is an R package containing a SQLite database.

System Requirements

Requires R

Installation

  1. The DatabaseConnector and SqlRender packages require Java. Java can be downloaded from http://www.java.com. Once Java is installed, ensure that Java is being pathed correctly. Under environment variables in the control panel, ensure that the jvm.dll file is added correctly to the path.
  2. In R, use the following commands to download and install CohortMethod:
install.packages("drat")
drat::addRepo("OHDSI")
install.packages("Eunomia")

User Documentation

Support

License

Eunomia is licensed under Apache License 2.0

Development

Eunomia is being developed in R Studio.

Development status

Ready for use