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 = terser.Get("/.INSURANCE(0)/.IN1(0)-1"); // Works fine
string insurance = terser.Get("/.INSURANCE(1)/.IN1(0)-1"); // Throws exception