Re: [HAPI-devel] Cant parse Date from PHARM H2 Message

2012-09-05 Thread James Agnew
Hi Michael, What is the error you are seeing? This code seems to work for me, with one caveat: Your IN1 segment has an invalid set ID (|s| in IN1-1), so I needed to disable validation in the parser by replacing [new PipeParser()] with [PipeParser.getInstanceWithNoValidation()] Cheers, James On W

Re: [HAPI-devel] Cant parse Date from PHARM H2 Message

2012-09-05 Thread christian ohr
Seems to work here, except when using the DefaultValidation rules of a default PipeParser, IN1-1 should be a number, not a string ("s"). * What HAPI version do you use? * Check your validation rules * Ensure that the segments (lines) are delimited by \r, not by \n regards Christian Michael M

[HAPI-devel] Cant parse Date from PHARM H2 Message

2012-09-05 Thread Michael Monstein
Dear all I have the followin PHARM H2 Test Message and would like to extract Patient Data from it: MSH|^~\&|IHE|EU-CAT2011|||20110307194153||RDE^O11|MSG3|P|2.6||UTF-8 PID|||A9283923889||Doe^John||19680306|M PV1||I|Cardiology^4^01^CATEUR_WARDS&&LV1 IN1|s|ID001^Full

[HAPI-devel] HAPI and Endroid

2012-09-05 Thread Amine ahmed benyahia
Good Morning, First, I want to thank you for this great API, I manage to run it on Linux, but I want to make an application under endroid to send HL7 data. Is that possible with HAPI. Best Regards, Amine AHMED BENYAHIA --