The role of this package is to help convert the most elementary components of the ICNARC XML to OMOP CDM. This facilitates the set up of an OMOP style CDM, acting as a base from which users can then populate with data from their local EHR. This was a somewhat non-trivial task, since the ICNARC specification is episode centric, and the OMOP CDM is patient centric. This necessitated a number of opinionated design decisions, especially in places where inforamtion of a person’s hospital journey is lacking. These decisions may not work universally for all study designs.
R
(R
is mandatory, R Studio is useful)Before using this package, you will need to:
CREATE DATABASE omop;
)“src_desc.txt” must be placed in the meta
folder. This file contains a description of the source data origin and purpose for collection. The description may contain a summary of the period of time that is expected to be covered by this dataset.
Please download the following vocabularies from athena, and add them to your project vocabulary folder:
You can now run the muncher by calling:
library(icnarc2omop)
omopify_xml(
project_path = ".",
nhs_trust = "Demo St. Elsewhere",
cdm_version = "5.3.1",
database_name = "omop",
database_engine = "postgres",
host_name = "localhost",
port_no = 5432,
username = "db username goes here"
)
You will be asked for your password to connect to the database. If all goes well. You should now have a lovely barebones set up of OMOP. Enjoy these magical good times.