Hi.
This code :
...
while ((line = br.readLine()) != null) {
terser.set\("/.ORU\_R01\_OBXNTE\(" + cpt + "\)/OBX-2", "TX"\); terser.set\("/.ORU\_R01\_OBXNTE\(" + cpt + "\)/OBX-3", "Test"\); terser.set\("/.ORU\_R01\_OBXNTE\(" + cpt + "\)/OBX-5", line\); terser.set\("/.ORU\_R01\_OBXNTE\(" + cpt++ + "\)/OBX-11", "F"\);
}
...
works very well with Terser in HAPI version 0.4.3 but fails in HAPI version 0.5.1 with the following exception :
ca.uhn.hl7v2.HL7Exception: End of message reached while iterating without loop
Any idea ?
Thanks
Logged In: YES
user_id=1739437
Originator: YES
Sorry, missing exception details :
ca.uhn.hl7v2.HL7Exception: End of message reached while iterating without loop
at ca.uhn.hl7v2.util.MessageNavigator.iterate(MessageNavigator.java:242)
at ca.uhn.hl7v2.util.SegmentFinder.findStructure(SegmentFinder.java:83)
at ca.uhn.hl7v2.util.SegmentFinder.findGroup(SegmentFinder.java:71)
at ca.uhn.hl7v2.util.Terser.getSegment(Terser.java:224)
at ca.uhn.hl7v2.util.Terser.set(Terser.java:312)
I am experiementing with Terser and this error comes often when you have a missing segment in the message. When MessageNavigator could not locate the "PathSpec".
Thanks.
-Niranjan.