Atlanta Clinical and Translational Science Institute (ACTSI), Emory University, Atlanta, GA
It is an i2b2 web client plugin for exporting patient data from i2b2 to CSV files. Users can configure the format of the CSV file using the plugin's interface, as well as save, load, and delete configurations. More information on doing so is available in the plugin's Help tab. The plugin communicates with i2b2's cells via the i2b2 Export Service, a RESTful web service that routes requests from the plugin to the appropriate i2b2 cell, as well as providing authentication.
This plugin was originally developed as part of the i2b2-eureka project. We have split that project's modules into separate projects, including the send patient set plugin.
No final releases yet
- i2b2 version 1.7
- The Eureka! Clinical i2b2 Integration webapp running on the same server.
These instructions assume your i2b2 web client installation is rooted at /var/www/html/webclient
.
This location will be referred to as $I2B2_ROOT
.
-
Locate your i2b2 installation's plugins directory:
$I2B2_ROOT/js-i2b2/cells/plugins
. -
Create a new directory inside the plugins directory. This directory defines a new plugin category and will be referred to as
$CUSTOM_PLUGIN_DIR
. The plugin will show up under a category with the name of this directory in the i2b2 plugin list. -
In
cell_config_data.js
, find the 'config' map and the 'category' key. Change the last value of the 'category' array to be$CUSTOM_PLUGIN_DIR
. -
Inside
$CUSTOM_PLUGIN_DIR
, create a new directory,PatientSetSender
. -
Copy the entire directory and its contents into the
PatientSetSender
directory. -
In
PatientSetSender_config.js
, change the value ofi2b2.PatientSetSender.SERVICE_URL
variable to the URL of the Eureka! Clinical i2b2 Integration webapp. -
In
PatientSetSender_config.js
, change the value ofi2b2.PatientSetSender.EUREKA_SERVICES_URL
variable to the URL of Eureka Webapp. -
In
PatientSetSender_config.js
, change the value ofi2b2.PatientSetSender.RECEIVER_DISPLAY_NAME
variable to the display name of where to send patient set. -
In
PatientSetSender_config.js
, change the value ofi2b2.PatientSetSender.RECEIVER_SEND_URL
variable to URL of the receiving service. -
If needed, change the JSON output shape by setting
i2b2.PatientSetSender.contextualize
inPatientSetSender_config.js
to a function that returns the required structure. The default structure assumes that you are sending patient sets to a service that implements the Eureka! Clinical patient set REST API. -
Modify
$I2B2_ROOT/js-i2b2/i2b2_loader.js
to add the plugin to the list of plugins. Add the following JavaScript map to thei2b2.hive.tempCellsList
array:
{ code: "PatientSetSender",
forceLoading: true,
forceConfigMsg: { params: [] },
forceDir: "cells/plugins/$CUSTOM_PLUGIN_DIR"
}
where $CUSTOM_PLUGIN_DIR
is the name of the directory you created in step 2
(where the plugin was copied to). Where you place this block determines the
order in which the plugin is displayed in the i2b2 plugin list.
For more information about i2b2 plugins, see: https://community.i2b2.org/wiki/display/webclient/Web+Client+Plug-in+Developers+Guide.
Feel free to contact us at help@eurekaclinical.org.