My blog
Where to find the standard HL7v2 message schemas

Where to find the standard HL7v2 message schemas

The list of sources of the structured and machine-readable HL7v2 specifications.

Published on by Anton Vasetenkov

The HL7v2 standard defines a set of message types, each with a specific structure. The structure of each message therefore follows an underlying model or schema (a formal description). When available in a structured format, these schemas can be used to validate the messages, generate code for parsing and serializing the messages, and perform other kinds of automated processing.

HL7 Abstract Message Syntax

The most "native" way to represent the HL7v2 message structure is by using the HL7 Abstract Message Syntax. This special notation is used in the normative HL7v2 documents and looks like this (example for the ACK^A01^ACK message type):

[{ SFT }]
[ UAC ]
[{ ERR }]

Official XML Schemas

In addition to the textual descriptions of the message types, HL7 provides a set of XML Schemas, which are suitable for automated processing. These XML Schemas can be downloaded from the HL7 website.

HL7 Database

The XML Schemas provided by HL7 are themselves based on the HL7 Database (HL7-DB), a structured representation of the HL7v2 specification. You can read more about the HL7 Database on Frank Oemig's website.

Other sources

There are also a number of other sources of the HL7v2 message schemas, including:

See also

Converting HL7v2 to FHIR
Translating HL7v2 messages to FHIR.
Online resources for browsing the HL7v2 specification
Useful links to help you browse the HL7v2 specification.

Thanks for stopping by my digital playground! If you want to say hi, you can reach out to me on LinkedIn or via email. I'm always keen to chat and connect.

If you really-really like my work, you can support me by buying me a coffee.