Sending Images or Formatted Documents via HL7 Messaging
December 1st, 2006 by Dave Shaver
Posted in CDA, HL7 Messaging, HL7 Standard
Moving images, documents, or rich text between systems via HL7 messaging (v 2.x) is possible using the HL7 ORU^R01 transaction. Historically, documents were moved as simple lines of ASCII text. With increased connectivity between hospitals, EMRs, labs, and imaging centers, there is a strong desire to move pretty text - HTML, PDF, Word, or other formatted text.
In a prior post about how HL7 2.X and the CCR compare, I described that HL7 2.X messages provide a view of data movement “right now.” Typically ADT, scheduling, order, result, and financial data are moved using HL7 2.X. The HL7 CDA standard is typically used to move documents. The catch is that CDA documents are typically marked up lines of ASCII text — XML tags with lots of clinical content rather than a pretty look-and-feel. So, neither standard solves the “moving pretty reports between systems” problem easily.
Enter the HL7 2.X Encapsulated Data (ED) type. In a prior post, I described how the magic ED data type inside an HL7 ORU message allows me to move a binary file between systems.
To make it clear:
- An image file — JPEG, GIF, DICOM — falls into the category of a binary file. I would use the ED data type inside of a ORU message to move that image.
- A “pretty document” - PDF, HTML, Word, RTF, etc. - is also a binary file and I would move it the same way.
As previously noted, the key is if the remote application supports the ED data type and the type of file that is being moved. Said another way, just because HL7 standard allows for the encoding of an image or formatted document, the receiving system may not support decoding.
Last 5 posts by Dave Shaver
- HL7 Working Group Meeting Includes Strong International Attendance - September 16th, 2008
- Integrating EMRs with Reference Labs - September 3rd, 2008
- Massachusetts Hospitals Must Have CPOE by 2012 and CCHIT-Certified EHRs by 2015 - August 13th, 2008
- HL7 Dates and Times - July 25th, 2008
- HL7 Time Zone Qualification - July 25th, 2008


(6 votes, average: 3.67 out of 5)




[…] Often applications support moving rich text documents via either an ED or RP data type. This means that the sender can deliver a PDF, Word document, RTF document, HTML document, etc — but only if the receiver supports the format. More details on rich documents are provided in this blog posting. […]