Re: [HAPI-devel] How to parse NK1 segment in HL7 v2.1

2016-05-17 Thread Dayu Han
Thanks for the reply Ian. This is what I have tried. With NK1 segment as: NK1||Test^Walls|SO|206-8404 Nowhere Rd^^Eastend^AA^H0H 0H0|123-488-1234||| notice there is no set index, calling message.getAll("NK1”) returns no elements. If NK1segment has set index: NK1|1|Test^Walls|SO|206-8404 Nowhere

Re: [HAPI-devel] How to parse NK1 segment in HL7 v2.1

2016-05-17 Thread Dayu Han
Hi Ian I solved the issue by using printStructure, content in segment NK1 is actually translated into segment NK12. No idea why, but it works now. Thanks Dayu > On May 17, 2016, at 8:06 AM, Dayu Han wrote: > > Thanks for the reply Ian. This is what I have tried. > > With NK1 segment as: > NK

Re: [HAPI-devel] How to parse NK1 segment in HL7 v2.1

2016-05-17 Thread Ian Vowles
Seeing the full format of the message or the printstructure might help with offering an explanation for the NK12 tag. I seem to remember seeing this where a segment fell outside it’s expected group location, but that was a long time ago and I may be on the wrong track. Mind you, the Structure