Unable to Parse Multiple IN1 Segment in HL7 using HAPI TERSER
问题 I am receiving HL7 messages version 2.5.1. MSH|.. PID|.. PV1|.. ORC|.. IN1|1|... IN1|2|.... So in the above example IN1 is repeating, however when i try to Parse the second IN1 segment with TERSER it throws an exception "Can't create repetition #1 of Structure IN1 - this Structure is non-repeating" . This is what i have tried so far string insurance = terser.Get("/.INSURANCE/.IN1(0)-1"); // Works fine string insurance = terser.Get("/.INSURANCE/.IN1(1)-1"); // Throws exception string insurance