Describe the bug
When using the PipeParser to parse an OML_O33 message with ORDER group repetitions, the repetitions are not in the parsed message structure. Only the first ORDER group is present.
To Reproduce
var parser = new PipeParser();
var parsedMessage = parser.Parse( /* sample message below */ ) as NHapi.Model.V251.Message.OML_O33;
var orderReps = orderMessage.SPECIMENs.ElementAt(0).ORDERRepetitionsUsed;
Expected behaviour
Expect that orderReps is 2, and that both ORC and OBR segments can be queried.
Actual behaviour
orderReps is 1, and only the first ORC and OBR segments exist.
Sample HL7
MSH|^~\&|||||20210921154451+1000||OML^O33^OML_O33|20210921154451|P|2.5.1|||NE|AL||UNICODE UTF-8|||LAB-28^IHE
SPM|1|||SER^Serum^HL70487|||||||P^Patient^HL70369
SAC|||Found_TT1_TT2_SER_098
ORC|NW||||||||20210921154451
OBR|1|AWOS_ID_Found_TT1_TT2_SER_098_0||TT1^Test Type 1^99000
ORC|NW||||||||20210921154451
OBR|2|AWOS_ID_Found_TT1_TT2_SER_098_1||TT2^Test Type 2^99000
Environmental Details (please complete the following information):
- OS: Windows 10.0.19043
- Target Framework: netcoreapp3.1
- HL7 Version: 2.5.1
- nHapi Version: 3.0.4
Additional context
It looks like this problem also existed for the Java implementation (https://sourceforge.net/p/nhapi/discussion/569648/thread/3e0c39b1/).
Describe the bug
When using the
PipeParserto parse anOML_O33message with ORDER group repetitions, the repetitions are not in the parsed message structure. Only the first ORDER group is present.To Reproduce
Expected behaviour
Expect that
orderRepsis 2, and that bothORCandOBRsegments can be queried.Actual behaviour
orderRepsis 1, and only the firstORCandOBRsegments exist.Sample HL7
Environmental Details (please complete the following information):
Additional context
It looks like this problem also existed for the Java implementation (https://sourceforge.net/p/nhapi/discussion/569648/thread/3e0c39b1/).