From: Bryan T. <bp...@gm...> - 2005-08-10 22:55:25
|
Hi Terry,=20 Sorry, the examples should be updated to reflect the new syntax. Try this .= ..=20 String in1_3 =3D terser.get("/.INSURANCE(0)/IN1-3"); Bryan=20 On 8/10/05, Waldron, Terry <wal...@kg...> wrote: > Hi, >=20 > I'm trying to work with the 0.5 beta using the terser. With the 4.3 versi= on I could use the code: >=20 > String in1_3 =3D terser.get("/ADT_A01_IN1IN2IN3ROL(0)/IN1-3"); >=20 > to get the string value. When I do this with 0.5 beta on the same message= , changing the group spec to ADT_A01_INSURANCE and adding a '.' so the code= looks like this: >=20 > String in1_3 =3D terser.get("/.ADT_A01_INSURANCE(0)/IN1-3"); >=20 > I get the following error: >=20 >=20 > ca.uhn.hl7v2.HL7Exception: End of message reached while iterating without= loop > at ca.uhn.hl7v2.util.MessageNavigator.iterate(MessageNavigator.jav= a:242) > at ca.uhn.hl7v2.util.SegmentFinder.findStructure(SegmentFinder.jav= a: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.get(Terser.java:194) > at Test_Terser.main(Test_Terser.java:57) >=20 > What am I missing here? >=20 >=20 >=20 > Terry Waldron > RMS Systems Analyst > Information Management > Kingston General Hospital > 613 - 549 - 6666 ext. 3828 >=20 >=20 >=20 >=20 >=20 > ------------------------------------------------------- > SF.Net email is Sponsored by the Better Software Conference & EXPO > September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practic= es > Agile & Plan-Driven Development * Managing Projects & Teams * Testing & Q= A > Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf > _______________________________________________ > Hl7api-devel mailing list > Hl7...@li... > https://lists.sourceforge.net/lists/listinfo/hl7api-devel > |