HL7

Marshal and unmarshal HL7 (Health Care) model objects using the HL7 MLLP codec

What’s inside

Please refer to the above links for usage and configuration details.

Maven coordinates

<dependency>
    <groupId>org.apache.camel.springboot</groupId>
    <artifactId>camel-hl7-starter</artifactId>
</dependency>

Spring Boot Auto-Configuration

The starter supports 7 options, which are listed below.

Name Description Default Type

camel.dataformat.hl7.enabled

Whether to enable auto configuration of the hl7 data format. This is enabled by default.

Boolean

camel.dataformat.hl7.parser

To use a custom HL7 parser. The option is a ca.uhn.hl7v2.parser.Parser type.

String

camel.dataformat.hl7.target-format

The target format for marshal output and unmarshal result type. By default, marshal encodes to HL7 ER7 and unmarshal returns a HAPI Message object. If set to XML, marshal encodes to HL7 XML and unmarshal returns an XML DOM Document.

String

camel.dataformat.hl7.validate

Whether to validate the HL7 message.

true

Boolean

camel.language.hl7terser.enabled

Whether to enable auto configuration of the hl7terser language. This is enabled by default.

Boolean

camel.language.hl7terser.source

Source to use, instead of message body. You can prefix with variable:, header:, or property: to specify kind of source. Otherwise, the source is assumed to be a variable. Use empty or null to use default source, which is the message body.

String

camel.language.hl7terser.trim

Whether to trim the source code to remove leading and trailing whitespaces and line breaks.

true

Boolean