Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Here we unmarshal the byte stream into a HAPI Message object that is passed to our patient lookup service.

Note
titleSegment separators

As of Camel 2.11, unmarshal does not automatically fix segment separators anymore by converting \n to \r. If you
need this conversion, org.apache.camel.component.hl7.HL7#convertLFToCR provides a handy Expression for this purpose.

Notice there is a shorthand syntax in Camel for well-known data formats that is commonly used.
Then you don't need to create an instance of the HL7DataFormat object:

...