James, Thanks for that, it's really useful to know how it works. I established in the end that the segment was in fact in the right place, I had just been misinformed about it in the spec (it was part of the patient group, not an order level NTE), so it's probably just as well I didn't find a way to successfully relocate it!
But in fact one of the things which was frustrating me was that I could ever so easily have retrieved the value by simple Java string parsing (regex, etc), if I had had access to the raw text of the message. But I have not found a means in HAPI to actually get the raw message text. You suggest I save the contents of my message in a text file, but how do I do that? I'm using SimpleServer, and the message is handed off to my handler application ready-parsed. -- View this message in context: http://www.nabble.com/Problem-with-misplaced-NTE-segment-tp24808667p24861650.html Sent from the hl7api-devel mailing list archive at Nabble.com. ------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july _______________________________________________ Hl7api-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/hl7api-devel

