0(0).MSH(0) : >|^~&|ECW|1100|||20120805123340||ORM^O01|1398881|T|2.3|< 1(0).0(0).PID(0) : >|1|137816||137816|TEST^CHUMLEY MALE^||19580101|male|||^^^^||9999999999|||||||< 1(0).0(0).PV1(0) : >|1||||||15649^Chumley^Keith^T|^^^|||||||||||1398881|< 1(0).2(0).GT1(0) : >|1||Test^Chumley Male^||^^^^|9999999999||19580101|male||1|< 2(0).ORC(0) : >|NW|1398881|||||||20120805123340|||15649^Chumley^Keith^T|< 3(0).0(0).0(0).OBR(0) : >|1|1398881||FRPSA^Free PSA and Total PSA – 1896|||20120805123340|||||||||15649^Chumley^Keith|||||||||||0< 3(0).0(0).0(0).DG1(0) : >|1||788.43|Nocturia|< 3(1).0(0).0(0).OBR(0) : >|2|1398881||OBICT^Occult Blood ICT – 3545|||20120805123340|||||||||15649^Chumley^Keith|||||||||||0< 3(1).0(0).0(0).DG1(0) : >|1||V76.41|Screening for malignant neoplasm of the rectum|< 3(1).0(0).1(0).OBX(0) : >|1|ST|OBID1^Specimen 1 Collect Date/Time or HIDE||8/5/12|< 3(1).0(0).1(1).OBX(0) : >|2|ST|OBID2^Specimen 2 Collect Date/Time or HIDE||8/5/12|< 3(1).0(0).1(2).OBX(0) : >|3|ST|OBID3^Specimen 3 Collect Date/Time or HIDE||8/5/12|< 3(2).0(0).0(0).OBR(0) : >|3|1398881||O028^Arthritis Profile – 0028|||20120805123340|||||||||15649^Chumley^Keith|||||||||||0< 3(2).0(0).0(0).DG1(0) : >|1||524.62|Arthralgia of temporomandibular joint|< I want to create 3 separate messages containing 1 OBR per message. But, the OBX segments are appearing in the second and third messages. The OBX segments should only be appearing in the second message. Why does this happen? 0(0).MSH(0) : >|^~&|||||||ORM^O01||P|2.6< 2(0).ORC(0) : >|NW< 3(0).0(0).OBR(0) : >|1|||FRPSA^Free PSA and Total PSA – 1896< 3(0).0(0).DG1(0) : >|1< 0(0).MSH(0) : >|^~&|||||||ORM^O01||P|2.6< 2(0).ORC(0) : >|NW< 3(0).0(0).OBR(0) : >|2|||OBICT^Occult Blood ICT – 3545< 3(0).0(0).DG1(0) : >|1< 3(0).1(0).OBX(0) : >|1||OBID1< 3(0).1(1).OBX(0) : >|2||OBID2< 3(0).1(2).OBX(0) : >|3||OBID3< 0(0).MSH(0) : >|^~&|||||||ORM^O01||P|2.6< 2(0).ORC(0) : >|NW< 3(0).0(0).OBR(0) : >|3|||O028^Arthritis Profile – 0028< 3(0).0(0).DG1(0) : >|1< 3(0).1(0).OBX(0) : >|1||OBID1< 3(0).1(1).OBX(0) : >|2||OBID2< 3(0).1(2).OBX(0) : >|3||OBID3< Xlate is attached. Iterates look like this: OBR iterate: group 3 %g1 DG1 iterate: segment 3(%g1).0(0).0(0).DG1 %s1 OBX iterate: group 3(%g1).0(0).1 %g2