HL7v2 Validator

About the tool

HL7 messages are used to exchange clinical, administrative, and other types of data between healthcare systems. The syntax and content of the messages are defined in the HL7v2 specification.

The HL7v2 specification uses the HL7 abstract message syntax to formally define the structure of HL7 messages. The syntax therefore acts as a language describing the schemas of the HL7v2 message types and can be used to validate the instances of the messages.

This project of mine is a tool that validates HL7v2 messages against the abstract message syntax. The tool parses the ER7-encoded HL7 message, abstract message syntax (the schema or grammar), and checks if the message conforms to the syntax. Both the parsers and the validator are implemented by me from scratch in TypeScript and run in the browser.

Demo

Message conforms to the grammar.

See also

Execute the $validate operation against a FHIR endpoint.
FHIR, data validation
An online parser for HL7v2 messages.
HL7v2, ER7
The list of sources of the structured and machine-readable HL7v2 specifications.
HL7v2, healthcare standards
Validate FHIR resources online.
FHIR, data validation
Translating HL7v2 messages to FHIR.
HL7v2, FHIR
Convert HL7 messages to FHIR online.
HL7v2, FHIR
Useful links to help you browse the HL7v2 specification.
HL7v2
An online editor for HL7v2 messages.
HL7v2, ER7
Generate HL7v2 schemas from the HL7 abstract message syntax.
HL7v2, schema
A browser for the HL7v2 specification.
HL7v2, ER7, healthcare standards
Libraries for parsing HL7v2 messages in JavaScript.
HL7v2, JavaScript

Made by Anton Vasetenkov.

If you want to say hi, you can reach me on LinkedIn or via email. If you like my work, you can support me by buying me a coffee.