Receiving HL7 Messages from System
Covered by this topic
The following document describes how to interface with MIE via an HL7 interface. Whereas the purpose of this interface is to send Hl7 messages real-time to system using TCP/IP protocol, TCP/IP protocol over SSL/TLS, or a restful web service post.
Assumptions___
The following assumptions have been made concerning the implementation of the interface:
- It is assumed that the reader of this document is familiar with HL7 v 2.X. This document is not intended to standalone but should be used in conjunction with the HL7 Specification Version 2.3 and Higher.
- The reader is familiar with the HL7 MLLP (Minimal Lower Level Protocol).
- The HL7 interface is real-time using TCP/IP protocol, TCP/IP protocol over SSL/TLS, HTTPS restful web service post.
- The Hl7 Messages sent through the interface will have codes/descriptions/identifiers in the HL7 message foreign to the WebChart system and that translations of this data will be handled within WebChart (when required).
Interface Overview
___In order to process the data successfully, the following items must be supplied/completed:
- External system(s) must furnish IP address(s) that will be used for connectivity.
- Interface system parameters must be setup in order to direct the interface on how to format the data for the external system.
To specify the IP address to send, read: Outbound Interface Install Instructions and make sure Auto Routes are setup to send events from within WebChart to the interface.
- Some document or event occurs within the system.
- Autoroute get evaluated and a message is created and queued for delivery to a “Refer to System”
- The transport (usually HTTPS REST, but also MLLP over VPN is initiated by DataSend to Refer to System based on the RTS setup
- The RTS responds with an ACK and DataSend marks the Route complete depending on the results of the ACK.
How it Works
The following describes the process as it occurs:
- A message is sent from MIE’s HL7 WebChart Interface. The message is then processed accordingly and an acknowledgment of success or error is sent back to WebChart HL7 interface.
- If success then MIE’s HL7 WebChart Interface will send the next message.
- If error, then MIE’s HL7 WebChart Interface will continue to send the message until a successful acknowledgment has been sent back from the receiving systems HL7 Interface.
Communication Flow
___Communications control characters will be used for all messages sent between MIE’s WebChart system and the receiving system. The Minimal Lower Level Protocol (MLLP) is used by the TCP/IP connection, as specified by HL7 standard.
The control characters will consist of: 1. A single vertical tab character to indicate the start of block (Hex), 0x0B, at the beginning of the message; 2. Every segment in the HL7 message will be terminated by the termination character (hex) - 0x0D (carriage return). 3. The characters (Hex) 0x1C (FS) to indicate end of block, and termination character (hex) - 0x0D (carriage return) at the end of the message.
For more information, refer to appendix C, section 1, of the HL7 Implementation Support Guide.
When the HL7 Interface sends an outbound message, it expects back an acknowledgment indicating the message was received successfully (accept - AA) or unsuccessfully (failure - AR and AE). MIE’s HL7 SYSTEM Interface will use this information to know when to send the next message or so it can automatically retry on a failure.
HL7 Standard Acknowledgments
MIE will be using the following MSA acknowledgment codes, the following codes are to be treated as such:
- AA (Application Accepted) - the message was accepted and successfully processed.
- AR (Application Rejected) - the only time a message should not be automatically retried, an AR acknowledgment code indicates that the message is not formatted properly.
- AE (Application Error) - a notice of failure on the receiving side and does not indicate that the message is bad and must be resent.
These acknowledgments conform to the HL7 standard. The interface determines the acknowledgment mode to use based on the values sent in MSH.15 and MSH.16, sending back the acknowledgment in the manner requested by the message sender. For more information, refer to chapter two of the HL7 standard documentation.
Supported HL7 Message types
legend - < > = 0 to many, [ ] = 0 to 1, { } means 1 to many.
Scheduling (SIU)
- SIU^S12 : MSH SCH [ PID ] [ NTE ] [ PV1 ] [ DG1 ] [ RGS ] [ AIG ] AIL [ AIP ]
- SIU^S14 : MSH SCH [ PID ] [ NTE ] [ PV1 ] [ DG1 ] [ RGS ] [ AIG ] AIL [ AIP ]
- SIU^S15 : MSH SCH [ PID ] [ NTE ] [ PV1 ] [ DG1 ] [ RGS ] [ AIG ] [ AIL ] [ AIP ]
Patient Registration (ADT)
- ADT^A04 : MSH [ EVN ] PID [ PV1 ] [ DG1 ] [ GT1 ] < IN1 < IN2 > >
- ADT^A08 : MSH [ EVN ] PID [ PV1 ] [ DG1 ] [ GT1 ] < IN1 < IN2 > >
Lab Results (ORU)
Lab Orders (ORM)
- ORM^O01 : MSH PID <NTE > [ PV1 ] [ PV2 ] <IN1 > [ GT1 ] { ORC { OBR <NTE > <DG1 > <OBX > } } [ ZPA ] [ ZIL ]
Documents (MDM)
Financial Transactions (DFT)
Immunization (VXU)
WebChart Documentation
Last Updated:
Last Build:
Mon, 09 Sep 2024 13:50:47 UTC
WikiGDrive Version: dd69069d725fca5f553df7ded62e130a49d49ca6