[HAPI-devel] adding line feed to MIME content in OBX-5

2008-02-20 Thread Todd Chambers
I am currently returning a CCD message which contains the XML content as MIME encoded Base 64 data. In the spec I was given, the client expects \X000D\\X000A\ in certain parts of the OBX-5 segment. In looking at the CDA spec at HL7.org, it appears that \X000D\\X000A\ is the proper way to repre

Re: [HAPI-devel] XML to HL7

2008-02-20 Thread Marco Montel
Hello Edgard, If your application should only convert XMLHL7 messages into classic HL7 messages you do not need an explicit cast to a special kind or version of message. Just use the ca.uhn.hl7v2.model.Message interface ca.uhn.hl7v2.model.Message msg = xmlParser.parse(xmlMessage);