Overview
The i2b2export module exports OpenMRS data, including patients, providers, concepts, concept_sources, encounters, observations, and drug orders, into an custom XML schema for import into i2b2. The XSD for resulting XML document is available here: http://o2i2b2.googlecode.com/files/o2i2b2Template.xsd. The i2b2export module is part a larger framework for loading data into i2b2. A companion program, i2b2Import, which is run as a standalone application parses the i2b2 XML and loads the data into an i2b2 instance. See the diagram below to visualize the data migration process.
A sample snippet of the resulting XML is available below:
For a more thorough discussion of all the topics described on this page, please refer to Final--DesigningaPublicHealthSoftwareFrameworkPortingOpenMRSdatatoi2b2o2i2b2.pdf.
i2b2
i2b2 is a scalable open source data warehousing tool for medical data. i2b2 is primarily used for research and excels at rapidly identifying patient cohorts through the running of ad-hoc queries. i2b2 can be used either as a data mart (project scope), a data warehouse (enterprise scope), or between multiple instances or i2b2 using [SHRINE|https://community.i2b2.org/wiki/display/SHRINE/SHRINE+Home]. i2b2 is particularly useful in hosting data from multiple systems where querying between disparate systems is typically difficult. i2b2 is also helpful in providing researchers access to clinical data without compromising patient confidentiality. This can be accomplished by deidentifying patient data before importing into i2b2.
Some common use cases for i2b2 include, identifying a research population and answering the simple question, "How many patients with X exist in my database?" i2b2 can also be used as a patient registry and for quality improvement.
h2. Documentation / How-To
- Download install i2b2export module
- From the OpenMRS Administration dashboard, click on the i2b2Export Dashboard link
- Choose the parameters for your i2b2 export
- Chick on the "Export Data" button
- The export will begin behind the scenes. The export can take a very long time depending on the size of your OpenMRS database and the export parameters you have chosen. You are free to leave this form and come back later to pickup your export.
- Once the export is complete, download the resulting XML file.
- Download the i2b2Import application (see the Downloads section below).
- Run the executable JAR file i2b2export.jar.
- Step through the wizard interface, entering the location of your XML export file and all i2b2 database parameters. Be sure to use the "Test Connection" button after each step to confirm your database settings are correct.
- Click on the "Finish" button to start the i2b2 import.
Downloads
You can download the i2b2 Export module here: https://modules.openmrs.org/modules/download/i2b2export/i2b2export-1.0.1.omod. The standalone i2b2 Import Application can be downloaded here: http://code.google.com/p/o2i2b2/downloads/list. The framework XSD is available here: http://o2i2b2.googlecode.com/files/o2i2b2Template.xsd.
Screenshots
i2b2export Module: Defining Export Attributes
i2b2Import Application: Importing Encounters...
About
This module was started as a class project for an MIT course, Health Information Systems to Improve Quality of Care in Resource-Poor Settings. The goal of the project was to develop a framework to import data into i2b2 from any source system. We used OpenMRS as our reference source system and deidentified data from a Partners In Health Malawi dataset. We had four design objectives in the development of our framework; our framework must be:
- Four design objectives for framework and tools:
open source - use open-standards, where possible
- be data source agnostic
- be simple to implement without compromising core functionalityopen source
use open-standards, where possible
be data source agnostic
be simple to implement without compromising core functionality