Re: [HAPI-devel] Read Generic Message

2007-06-19 Thread Life is hard, and then you die
On Tue, Jun 19, 2007 at 05:21:12AM -0700, granger44 wrote: > > fer wrote: > > > > Hello, I newbie in HAPI. > > > > Any example how to read the segment fields and then its components. > > I want a solution all version compatible. > > > > > > I too am looking for something to extract segments f

Re: [HAPI-devel] Read Generic Message

2007-06-19 Thread Bryan Tripp
Hi, Have you tried ca.uhn.hl7v2.util.Terser? The set() and get() methods access fields in a version-independent way (as much as possible) and there is also getSegment() if you want a whole segment. Bryan On 6/19/07, granger44 <[EMAIL PROTECTED]> wrote: > > > fer wrote: > > > > Hello, I newbie in

Re: [HAPI-devel] Read Generic Message

2007-06-19 Thread granger44
fer wrote: > > Hello, I newbie in HAPI. > > Any example how to read the segment fields and then its components. > I want a solution all version compatible. > > I too am looking for something to extract segments from a message regardless of version. The closest I've come so far is to encode