Rhapsody site logo

HL7 resources

HL7 Messages

HL7 messages transmit data between disparate systems. An HL7 message consists of a group of segments in a defined sequence, with these segments or groups of segments being optional, required, and/or repeatable (referred to as HL7 cardinality).

The HL7 message type defines the purpose for the message being sent and is present in every HL7 message. Message types are identified by a three-character code and are used in conjunction with a trigger event. An HL7 trigger event is a real-world event that initiates communication and the sending of a message and is shown as part of the message type. Both the message type and trigger event are found in the MSH-9 field of the message.

Optimize resource productivity with the most trusted and flexible HL7 and API integration tools in the market

For example, the MSH-9 field might contain the value ADT-A01. This means that ADT is the HL7 message type, and A01 is the trigger event. In the HL7 Standard, an ADT-A01 message is known as a “patient admit” message.

Each message type and trigger event within a specific HL7 version has a defined format. There are some message types and triggers that have the exact same format, such as ADT-A01, ADT-A04, ADT-A05 and ADT-A08. But in many cases, the formats vary widely.

Defining an HL7 Message (examples)

Most commonly used HL7 message types include:

  • ACK – General acknowledgement
  • ADT – Admit, Discharge, Transfer
  • BAR – Add/change billing account
  • DFT – Detailed financial transaction
  • MDM – Medical document management
  • MFN – Master files notification
  • ORM – Order (Pharmacy/treatment)
  • ORU – Observation result (unsolicited)
  • QRY – Query, original mode
  • RAS – Pharmacy/treatment administration
  • RDE – Pharmacy/treatment encoded order
  • RGV – Pharmacy/treatment give
  • SIU – Scheduling information unsolicited

For a full list of all HL7 message types, refer to Appendix A of the HL7 V2 Standard.

Want to learn more about HL7? Enroll in the Academy’s HL7 training course now!

You might also like

HL7 resources

HL7 Data Types

HL7 data types define the kind of data included in a field used in the HL7 message structure. Examples include a string, text, timestamp, address, or coded element.

Read more >

HL7 resources

RIM-Reference Information Model

The HL7 Reference Information Model (RIM) represents a static model of healthcare workflows as viewed by the HL7 standards development group.

Read more >

HL7 resources

Minimum Layer Protocol – MLP

MLP is how an application should wrap an HL7 message to ensure HL7 compliant applications know where a message starts and stops, and where the next message begins.

Read more >