HL7 Batch File Protocol

HL7 batch files allow one or more messages to be sent in a single file, using specialized segments in a structure that mirrors HL7 defined message types. These segments include the batch header segment (BHS), batch trailer segment (BTS), file header segment (FHS) and file trailer segment (FTS). HL7HL7 is a Standards Developing Organization accredited by the American National Standards Institute (... More batching is useful for systems that are not connected via real-time transmission protocols (such as those systems that do not transmit via TCP/IPTransmission Control Protocol/Internet Protocol (TCP/IP) is a low-level communications protocol used... More connections).

The HL7HL7 is a Standards Developing Organization accredited by the American National Standards Institute (... More Standard specifies the following format for batch files:


[FHS] (file header)
{ [BHS] (batch header)
{ [MSH (HL7HL7 is a Standards Developing Organization accredited by the American National Standards Institute (... More messages)
....
....
....
] }
[BTS] (batch trailer)
}
[FTS] (file trailer)

HL7 batch files usually consist of only one type of message (i.e. ADT, ORM, ORU, etc.), but there are no rules in the standard restricting the batch to only one message type. The batch file’s headers and trailers are important because they include a field that supplies a count of messages expected within the batch. Therefore conformance checkingConformance checking or gap analysis for HL7 messages is a logical process used to determine whether... More can be done with an HL7HL7 is a Standards Developing Organization accredited by the American National Standards Institute (... More batch file, whereas it cannot be done in the same way with a batch file only containing HL7HL7 is a Standards Developing Organization accredited by the American National Standards Institute (... More messages and no other information.

Batch files using HL7 batch protocolThe HL7 Batch Protocol transmits a batch of HL7 messages using FHS, BHS, BTS, and FTS segments to de... More are not widely implemented because of the challenges associated with using files for HL7HL7 is a Standards Developing Organization accredited by the American National Standards Institute (... More communications. Using HL7HL7 is a Standards Developing Organization accredited by the American National Standards Institute (... More batch files may present sequencing problems and/or file access issues that must be remedied by solutions such as file locking, a staging directory, or reader delay.

It is very common to have multiple messages put into a single file without utilizing HL7 batch protocolThe HL7 Batch Protocol transmits a batch of HL7 messages using FHS, BHS, BTS, and FTS segments to de... More (i.e. without batch headers and trailers) or instead utilizing some other custom format. Working with non-HL7 formatted batch files requires some specialized processing to read and parse the messages, and may present some additional interfacing challenges.

How are HL7 batch files acknowledged?

The general process for HL7HL7 is a Standards Developing Organization accredited by the American National Standards Institute (... More acknowledgements (ACKs) of batch files is to acknowledge the entire batch at once, and only process errors on an exception basis. However the individual messages can be acknowledged in a manner chosen and appropriate for the application. These options include:

  • Acknowledging all messages in the response batch.
  • Generating a batch control report that is manually delivered to the sending system’s personnel.
  • Acknowledging only those messages that contain errors by using an automated acknowledgement batch; this involves use of an empty ACK batch (an HL7HL7 is a Standards Developing Organization accredited by the American National Standards Institute (... More batch file without any HL7HL7 is a Standards Developing Organization accredited by the American National Standards Institute (... More ACK messages).

More information about batch file protocol and batch acknowledgements can be found in Chapter 2 of the HL7 standard.

Register for an upcoming HL7: First Steps training class.

How Corepoint Integration Engine works with HL7

 

The #1 Integration Engine Nine Consecutive Years

Customers have confidence in Corepoint Health’s history of focusing on healthcare interoperabilityInteroperability refers to the ability of two or more systems or components to exchange information ... More, as evident by our #1 KLAS® ranking nine years in a row. Discover the power Corepoint Integration Engine offers healthcare providers of all sizes and specialties.
 Print Friendly