Re: [HAPI-devel] Dealing with messages that have failed to escape delimiters

2013-05-02 Thread James Agnew
Hi Ian, This is an issue that we have faced many times over the years, especially over the last 2 as we moved a bunch of legacy interfaces off of an eGate Interface Engine. Ugh. What you are describing looks suspiciously like a bug we fixed in HAPI 2.1. What version of the library are you using?

[HAPI-devel] Transform a K22 response into HL7v2 XML

2013-05-02 Thread Ternier, Ryan
I'm translating a health request from a system into a K22 HL7v2 response. I have sample responses from their system, and I'm trying to see if there's a way either through the HAPI tool or through Java code to take the K22 string I have, and turn that into the XML counterpart. Is this possible?

Re: [HAPI-devel] Transform a K22 response into HL7v2 XML

2013-05-02 Thread James Agnew
Hi Ryan, Converting a message from ER7 (pipes) to XML is quite easy: Message msg = ctx.getPipeParser().parse(stringEr7Message); String stringXmlMessage = ctx.getXmlParser().encode(msg); Cheers, James On Thu, May 2, 2013 at 1:20 PM, Ternier, Ryan wrote: > I’m translating a health request from

Re: [HAPI-devel] Dealing with messages that have failed to escape delimiters

2013-05-02 Thread Ian Vowles
This is an interface that was running in JCAPS, but an upgrade to the destination forced us off JCAPS because it couldn't cope with the updated web service interface we had to post to. People don't seem to realise how much better HAPI is at parsing HL7 than eGate/JCAPS and anything I have trie

Re: [HAPI-devel] Weird behavior running a parse on QBP_Q21 HL7v2.4

2013-05-02 Thread Ternier, Ryan
Hey James, Thanks for the reply - sorry it's taken me a bit to get back to you. What part of the HAPI code are you talking about with that snippet there? I've written a quick custom parser for this because I wasn't able to figure out how to get HAPI "Happy" with it. The way Cerner has document

Re: [HAPI-devel] Dealing with messages that have failed to escape delimiters

2013-05-02 Thread Ian Vowles
This response about XML from James tweeked my interest in relation to the problem I have with the un-escaped delimiters, so I used the code to parse the message and look at the XML. The XML looked promising, so I created a new terser, and did my tersing tests again. This time they worked. Intere

Re: [HAPI-devel] Weird behavior running a parse on QBP_Q21 HL7v2.4

2013-05-02 Thread Christian Ohr
Hi Ryan, IHE defines for PDQ queries the field QPD-3 to be a repeatable and of type QIP. The HL7 standard does not define any explicit type for QPD-3 ("Varies"), and that's why the parser (using the default model class factory) assigns an "unknown" or generic data type. You can use the Terser clas