I need some help

I got this problem using Biztalk 2009

I am trying to map an Immunization document that's repeats  a segment that's called RXA to  a VXU_A04 schema

I am mapping the fields and I am Using the loop functoid but  what its doing is repeating the ORC segmentsand then repeating the RXA segments,

The correct way should be a ORC followed by a RXA then ORC followed by RXA

my input

<ns0:xml xmlns:ns0="http://sabiamed/ImmunizationOUT"><ns0:rs_data><ns0:ClinextExternalDocumentTypeID="85785E05-7565-43CE-97A3-F7C267D66016" DocumentRequestID="e01c22d0-ba3c-4df8-9cd3-7ec6e1168879"></ns0:Clinext><ns0:PID MedRecNumber="1090382" SURNAME="Sinclair" GIVENNAME="John" DateOfBirth="19871012" SEX="M" Race="Black or African American" RaceCode="2054-5" MailAddr1="2567 Maple Street" MailAddr2="" MailCity="Elizabeth City" MailState="NC" MailZip1="27909" HomeAreCode="252" HomePhone="2275887" EthnicGroup="Not Hispanic or Latino" EthnicGroupCodes="2186-5"></ns0:PID><ns0:RXA DateTimeStartofAdministration="2011-12-14T19:55:05" DateTimeEndofAdministration="2011-12-14T19:55:05" VaccineCODE="33" VaccineName="Pneumococcal Polysaccharide Vaccine" AdministeredAmount="0.5" AdministeredUnits="Ml" VaccineLotNumber="1039A" VaccineManufacturerName="MSD-MERCK" VaccineManufacturerCode="MSD"></ns0:RXA><ns0:RXA DateTimeStartofAdministration="2011-12-14T19:55:58" DateTimeEndofAdministration="2011-12-14T19:55:58" VaccineCODE="15" VaccineName="Influenza, split virus" AdministeredAmount="0.5" AdministeredUnits="Ml" VaccineLotNumber="U6007" VaccineManufacturerName="NOV-NOVARTIS" VaccineManufacturerCode="NOV"></ns0:RXA></ns0:rs_data></ns0:xml>

 

this is my output


MSH|^~\&|CLINNEXT||IMMUNIZATION||201112141609||VXU^V04^VXU_V04|e01c22d0-ba3c-4df8-9cd3-7ec6e1168879|P|2.5.1
PID|||1090382^^^PRA&MR&HL7^MR||Sinclair^John||19871012|M||2054-5^Black or African American^HL70005|2567 Maple Street^^Elizabeth City^NC^27909^^M||^PRN^^^^252^2275887|||||||||2186-5^Not Hispanic or Latino^HL70189
ORC|RE
ORC|RE
RXA|0|1|201112141955|201112141955|33^Pneumococcal Polysaccharide Vaccine^CVX|0.5|Ml^Ml^HL70396||||||||1039A||MSD^MSD-MERCK^MVX||||A
RXA|0|1|201112141955|201112141955|15^Influenza, split virus^CVX|0.5|Ml^Ml^HL70396||||||||U6007||NOV^NOV-NOVARTIS^MVX||||A

 

 

my email is

joliver@sabiamed.com