[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