Re: [HAPI-devel] unexplained behavior with toString() and getOBSERVATIONReps()

2014-10-14 Thread James Agnew
Oops, never mind that. I do see it, I was calling toString() on the string representation of the message and not the HAPI message object. This is actually a quirk with the way the parser works internally. Calling toString() actually just calls PipeParser.encode(message), and PipeParser has a bit o

Re: [HAPI-devel] unexplained behavior with toString() and getOBSERVATIONReps()

2014-10-14 Thread James Agnew
Hi Tim, Strangely I'm not seeing the same behaviour when I created a unit test to try this out. Do you see the same results with the following? @Test public void testEncodeDoesntChangeStructure() throws HL7Exception { String message = "MSH|^~\\&|SYSTEM|XXX|CLOVERLEAF|XXX|201410011706