|
Page Edited :
CAMEL :
HL7 DataFormat
HL7 DataFormat has been edited by Claus Ibsen (Aug 10, 2008). Change summary: CAMEL-805 HL7 DataFormatThis component ships with a HL7 dataformat that can be used to format between String and HL7 model objects.
To use the data format simply instantiate an instance and invoke the marhsal or unmarshl operation in the route builder: DataFormat hl7 = new HL7DataFormat(); ... from("direct:hl7in").marshal(hl7).to("jms:queue:hl7out"); In the sample above the HL7 is marshalled from a HAPI Message object to a byte stream and put on a JMS queue. DataFormat hl7 = new HL7DataFormat(); ... from("jms:queue:hl7out").unmarshal(hl7).to("patientLookupService"); Here we unmarshal the byte stream into a HAPI Message object that is passed to our patient lookup service.
|
Unsubscribe or edit your notifications preferences
