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.

The unmarshal operation adds these MSH fields as headers on the Camel message:

Key

MSH field

Example

hl7.msh.sendingApplication

MSH-3

MYSERVER

hl7.msh.sendingFacility

MSH-4

MYSERVERAPP

hl7.msh.receivingApplication

MSH-5

MYCLIENT

hl7.msh.receivingFacility

MSH-6

MYCLIENTAPP

hl7.msh.timestamp

MSH-7

20071231235900

hl7.msh.security

MSH-8

 

hl7.msh.messageType

MSH-9-1

ADT (ADT^A01)

hl7.msh.triggerEvent

MSH-9-2

A01 (ADT^A01)

hl7.msh.messageControl

MSH-10

1234

hl7.msh.processingId

MSH-11

P

hl7.msh.versionId

MSH-12

2.4

All headers are String typesNotice: Since Camel has build in type converters the DataFormat isn't in much need. However they are there if you need them, for instance if it makes the routing much clearer.