[Deprecated] Gazelle HL7 Validator
Warning: This documentation is out-dated, newest version of the documentation is available at https://gazelle.ihe.net/gazelle-documentation
Application overview
GazelleHL7Validator is the part of the Gazelle platform dedicated to the validation of HL7 messages
- HL7v2.x messages are validating against HL7 conformance profiles. The validation engine is based on HAPI libraries and the conformance profiles are written by the Gazelle team (helped by NIST).
- HL7v3 messages are validating using a model-based engine
These validation services are available through a web service API so it can be integrated in your application. If you wish to validate messages occasionally you can use the Gazelle Validation Front-End called EVS Client which puts at your disposal a user interface to validate HL7 messages, CDA documents, XD* requests and so on.
Concerning HL7v2 validation: the application also gathers the HL7 conformance profiles and the HL7 tables (codes) which can be browsed by any user. For each conformance profile, you will find information about its issuer (actor, domain, transaction) and the message type and HL7 version. Each conformance profile can be bound to one or several HL7 tables which gather a list of allowed values for a given field of the message.
User interface
Browse validation requests
The User interface allows you to browse the validation requests received by the tool and the associated result. For each validation request, the tool keeps trace of the IP address of the caller. This is the way we choose to "protect" your work. That means that, using this IP address we can restrain the access to the data you have submitted (message content) and the results of those validations. The access rules are the following:
- Administrator users have access to all validation requests and are allowed to permanently delete some of them on user requests
- Not logged in users have only access to the validation requests coming from the same IP address as the one they are using when browsing the requests
- Logged in users (Gazelle CAS) can ask the administrator of the tool to register a set of IP addresses they are allowed to see.
Browse HL7 message profiles
All the HL7 message profiles available are gathered in the tool. You can either select a profile by its full OID (if known) or put filters on the table columns. Each profile is viewable inline and can also be downloaded.
Browse HL7 resources
An HL7 resource is an XML file gathering several HL7 tables. An HL7 table is uniquely defined by an ID and contains the set of allowed values. Those tables are referenced in the message profiles and at validation time, the validation engine can check that the value of a given field of the submitted message comes from the set of allowed codes for this field. As for the message profiles, you can see those tables inline or download them
Browse HL7v3 validation service documentation
The documentation of the constraints expressed in the model-based validation service is available through the user interface under the HL7v3 validation service menu.
Web service API
Gazelle HL7v2.x validation service
The web service API of the tool offers two methods:
- validate(): validates the given message against the given message profiles and sends back a validation report
- about(): gives information about the running version of the tool
The definition of the web service API is available at https://gazelle.ihe.net/GazelleHL7v2Validator-ejb/gazelleHL7v2ValidationWSService/gazelleHL7v2ValidationWS?wsdl.
The validate() method has the following prototype:
public String validate(String, String, String) throws SOAPException;
- The first parameter is xmlValidationMetadata, it is an XML formatted String respecting the XSD schema given at http://gazelle.ihe.net/xsd/MessageMetadata.xsd. By now, this parameter is not used but our intent is to add custom validation. That means that, in addition of the basic Hapi validator, the user will be able to put additionnal validation requests as constraints on field usage, component value...
- The second parameter is xmlValidationContext, it is an XML formatted String respecting the XSD schema given at https://gazelle.ihe.net/xsd/ValidationContext.xsd. This parameter is mandatory since it gives information about the HL7 message profile to use for the validation process.
- Finally, the third String stands for the message to validate itself. The message must use ER7 syntax (ie. pipe-based syntax)
As we also need the client side of this validation service, we have created some useful projects listed below.
- SOAPui project example
- Gazelle web service client API (version 1.19.0 and higher)
Note that this validation tool is also available through the simulators based on HL7v2.x (the messages sent and received by the simulator can be validated) and the EVSClient.
Gazelle HL7v3 validation service
see : https://gazelle.ihe.net/content/model-based-validation-web-services
Bug tracking
Error is human. We try to maintain the message profiles and HL7 tables doing our best but we may do mistakes. If you think there are errors in one/several of our message profiles, please report an issue in our bug tracking system with mention of the profie OID, error location, appropriate fix and reference to the documentation.
Bug tracking URL is https://gazelle.ihe.net/jira/browse/HL7VAL