Menu

#74 Terser Issue in Repetition Segments

open
nobody
None
5
2014-12-30
2007-03-09
linkerstorm
No

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

Discussion

  • linkerstorm

    linkerstorm - 2007-03-09

    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)

     
  • Nobody/Anonymous

    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.

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.