Re: [HAPI-devel] Parse a simple message HL7 v2.6

2010-11-16 Thread Puyenbroek, Jennifer L.
christian ohr Sent: Thursday, November 04, 2010 4:33 AM To: [email protected] Subject: Re: [HAPI-devel] Parse a simple message HL7 v2.6 Hi, you need a pipe after the 2.6 and separate the segments with \r. This works: public static void main(String[] args

Re: [HAPI-devel] Parse a simple message HL7 v2.6

2010-11-04 Thread christian ohr
Hi, you need a pipe after the 2.6 and separate the segments with \r. This works: public static void main(String[] args) { String msg = "MSH|^~\\&|HUB||server||201010172015||ACK^W01^ACK|1234|P|2.6|\r" + "MSA|AA|2468|\n"; Par

[HAPI-devel] Parse a simple message HL7 v2.6

2010-11-03 Thread William Smith
I have troubles to parse a string with HAPI (*HL7 v2.6*). This is my code: public static void main(String[] args) { String msg = "MSH|^~ \\&|HUB||server||201010172015||ACK^W01^ACK|1234|P|2.6" + "MSA|AA|2468|"; Parser p = new GenericParser(); Message hap