Developers Getting Started With i2b2
Space shortcuts
Space Tools
Developers Getting Started With i2b2 getstarted

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Data Table Creation - User process

The Create Data Table for export feature allows User to design a table of variables of interest using the Design table feature. The table design can then be saved as a template  that can be loaded and used to request data export.

...

Info

Wildfly must be restarted for changes to the HIVE_CELL_PARAMs to take effect.



Cell IDParameter NameExample ValueNotes
CRCedu.harvard.i2b2.crc.smtp.hostsmtp.partners.orgSMTP host
CRCedu.harvard.i2b2.crc.smtp.port25SMTP port
CRCedu.harvard.i2b2.crc.smtp.ssl.enabledFALSETRUE will enable SSL
CRCedu.harvard.i2b2.crc.smtp.authFALSETRUE will enable SMTP authentication
CRCedu.harvard.i2b2.crc.smtp.usernamenoneSMTP username (required for SMTP authentication)
CRCedu.harvard.i2b2.crc.smtp.passwordnoneSMTP password (required for SMTP authentication)
CRCedu.harvard.i2b2.crc.smtp.enabledFALSETRUE will enable e-mails
CRCedu.harvard.i2b2.crc.exportcsv.defaultescapecharacter"Escape character for export files
CRCedu.harvard.i2b2.crc.exportcsv.maxfetchrows-1Maximum number of rows to export, or -1 for no limit
CRCedu.harvard.i2b2.crc.exportcsv.defaultlineend\nLine ending for export files
CRCedu.harvard.i2b2.crc.exportcsv.defaultseperator\tField separator for export files
CRCedu.harvard.i2b2.crc.exportcsv.resultfetchsize50000Number of records retrieved during each database fetch.
CRCedu.harvard.i2b2.crc.exportcsv.filename{{{PROJECT_ID}}}/{{{DATE_yyyyMMdd}}}_{{{FULL_NAME}}}.tsvParameterized template for export file names. If the extension is .zip, the file is zipped.
CRCedu.harvard.i2b2.crc.exportcsv.defaultquotechar"Quote character for export files
CRCedu.harvard.i2b2.crc.exportcsv.workfolder/tmp/i2b2Folder on the i2b2 server for data exports
CRCedu.harvard.i2b2.crc.exportcsv.zipencryptmethodnoneEncryption method for the exported ZIP file. One of STANDARD, NONE, or AES.
PM_PROJECT_PARAMS

The parameters for the emails sent to the project's Data Manager about a data request and to the requesting user when export is complete are set on a per-project basis.


Parameter NameExample ValueNotes
Data Request TemplateThis user {{{USER_NAME}}} in project {{{PROJECT_ID}}} requested ...Template text for the body of the data request message; supports placeholders like {{{USER_NAME}}} and {{{PROJECT_ID}}}.
Data Request Email Addresssomeone@somewhere.org

E-mail address of the Data Manager, where the data request e-mail will be sent.
Data Request Letter"Results of the i2b2 request entitled - '{{{QUERY_NAME}}}', ..."Template text for the e-mail to the user announcing the successful completion of the data export; supports placeholders like {{{QUERY_NAME}}}.
Data Request Subjecti2b2 Data RequestSubject line for the data request e-mail.


Info

The e-mail address for the data request letter (sent when export is complete) is entered in the Query Options Email box at the time of data request submission

...

Template substitution variables (parameters/placeholders inside VALUE)
PlaceholderMeaning (inferred)Example
{{{USER_NAME}}}Display name / username of the requesterJon Smith
{{{PROJECT_ID}}}i2b2 project ID in which the request was runACT
{{{QUERY_NAME}}}Name/title of the query the user executedHypertension Adults
{{{QUERY_STARTDATE}}}Timestamp when the query was submitted2025-09-19 09:42
{{{QUERY_MASTER_ID}}}Internal i2b2 Query Master ID of the request5412
{{{PATIENT_COUNT}}}Number of patients returned by the request1999


Design and Architecture

The i2b2 breakdown architecture is modified to support the data table definition and new breakdown types for User created data requests. The database tables have been modified to support the data table definitions.

...

  • The select statement in the VALUE column is executed for the default table data file creation. The result_instance_id value of the query is inserted  dynamically  each time of data file is created for the same table_instance_id. and does not store in the QT_BREAKDOWN_PATH 
  • The select statement in the VALUE column  of the <data request name>.CSV for the data request is executed to create the data file. 
Info
Currently,1.8.1 request submission send out one email per request selected to the User.  

Software Changes:

  • Data: Entries in RPDO_TABLE_REQUEST, HIVE_CELL_PARAMS, PM_PROJECT_PARAMS, QT_QUERY_RESULT_TYPE, and QT_BREAKDOWN_PATH, QT_XML_RESULT define the data exporter functionality.
  • Java code: New breakdown classes and updates to existing java classes to support the data exporter functionality.

...

Developers Getting Started With i2b2 getstarted