Re: [HAPI-devel] ADT_AXX message

2013-06-06 Thread Sumit Lahiri
Hi Ian, Thanks for the lead. Actually as of now we are not dealing with z-segments much but I guess your process will help us eventually when we get there. I resolved my problem in the following way. Actually it was my bad that I was trying to access the IN1 segment directly from the ADT_A01 mess

Re: [HAPI-devel] ADT_AXX message

2013-05-30 Thread Ian Vowles
I overcame this issue by creating a GENERIC_ADT message using techniques shown on the Hapi site. Our establishment has many Z-segments, so I had to do all those, and group them accordingly. A basic example is available on the Hapi site at http://hl7api.sourceforge.net/xref/ca/uhn/hl7v2/example

[HAPI-devel] ADT_AXX message

2013-05-30 Thread Sumit Lahiri
Hello there, I'm new to HAPI. The problem I'm facing is I'm not able to typecast a ADT message to generic ADT_AXX message type. So as a result when I try to parse a segment eg. IN1 which is not present in a specific ADT Event type(eg ADT_A01) I get an HL7Exception like "IN1 does not exist in the