[HAPI-devel] CreateAMessage example incorrect?

2016-04-12 Thread moparisthebest
Hello, I'm new to HAPI and HL7 in general, and I tried this example exactly: http://hl7api.sourceforge.net/xref/ca/uhn/hl7v2/examples/CreateAMessage.html With these maven dependencies: ca.uhn.hapi hapi-base 2.2 ca.uhn.hapi hapi-struct

Re: [HAPI-devel] CreateAMessage example incorrect?

2016-04-12 Thread moparisthebest
Hello Christian and Jeremy, Thanks very much, indeed in my IDE (IDEA) it was printing: PID|||123456||Doe^John But when ran from a standard shell it printed: PID|||123456||Doe^Johnstem200701011539||ADT^A01^ADT A01123 And of course at the hint replacing \r in java or piping it to tr '\r'