[HAPI-devel] send and receive problems: socket closed

2008-01-04 Thread epic winter
I am working on the networking phase of my hl7 application. I am testing by creating two instances of my application on the same computer with different sets of data. One is set to send data and the other to receive data. I am using the SimpleServer. My code is basically a replica of the t

Re: [HAPI-devel] terser problem

2007-12-17 Thread epic winter
fine group names, 2.5 does. > The group names in 2.3.1 are automatically created, the group name should be > IN1IN2IN3, you can look it up in the messages source code. > > Jan > > > epic winter wrote: > > > > > > Leo- > > Thanks for the reply i

Re: [HAPI-devel] terser problem

2007-12-12 Thread epic winter
;1"); t2.set("/INSURANCE(1)/IN1-1", "2"); t2.set("MSH-1", "|"); t2.set("MSH-2", "^~\\&"); Parser p = new GenericParser(); System.out.println(p.encode(msg2)); luck! On 12/12/2007, epic winter &

[HAPI-devel] instantiating batch segments

2007-12-11 Thread epic winter
.I can't seem to figure out how to instantiate the batch specific segments. Like FHS, BHS, BTS, and FTS. I have tried Segment segment= (Segment) new DefaultModelClassFactory().getSegmentClass("FHS", version).newInstance(); But this gives me an instantiation exception. Is there a way around

[HAPI-devel] terser problem

2007-12-11 Thread epic winter
I am trying to add the insurance group to my ADT_A01 and I keep getting : Caused by: ca.uhn.hl7v2.HL7Exception: End of message reached while iterating without loop I am only setting the IN1 segmant and I only have problems when adding the second iteration. I address the first one as: "/.INSURA

Re: [HAPI-devel] batching/validation

2007-11-30 Thread epic winter
Thanks for the files this definitely helps. > Date: Wed, 28 Nov 2007 08:41:00 +0100 > From: [EMAIL PROTECTED] > To: hl7api-devel@lists.sourceforge.net > Subject: [HAPI-devel] batching/validation > > Hi Ryan, > > > It appears as if there is no batch support in hapi. Or am I missing this? > >

[HAPI-devel] traversing message in terser

2007-11-27 Thread epic winter
I am trying to understand how you traverse through a random message in a terser. I guess I would look in the MSH to determine what Message type it is. But after that how do I actually iterate the message. How do you tell how many repetitions are present of a group or field? How do you tell

Re: [HAPI-devel] terser - syntax

2007-11-26 Thread epic winter
cant add second repetition using terer neither manualli using get(FT1,2). > > > > > > > > On Nov 21, 2007 8:00 PM, epic winter <[EMAIL PROTECTED]> wrote: > > > >> I am working on producing the DFT_P03 message using the Terser. I might > >&

[HAPI-devel] terser - syntax

2007-11-21 Thread epic winter
I am working on producing the DFT_P03 message using the Terser. I might be interpreting the spec wrong but from what I gather you can have many FT1 segments. When I try to add a second one I get the: Caused by: ca.uhn.hl7v2.HL7Exception: Can't create repetition #1 of Structure FT1 - this Stru

[HAPI-devel] compatibility issues

2007-11-10 Thread epic winter
I am trying to implement a hl7 interface for my software. So I am excited about the existence of hapi. One question I have is how do you recommend handling compatibility. Like I have to integrate with various clients some are 2.3 other are 2.4 and some are 2.5 compatible. It looks like the cod