TransformToX12 not generating correct EDI

Nov 13, 2012 at 8:23 AM

Hi,

Am getting the data from DB and generating a XML with the data and trying to generate the EDI from this using the parser TransformToX12 method.

Here is my XML:

<?xml version="1.0" encoding="utf-16"?>
<ClaimDocument xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://www.oopfactory.com/2011/XSL/Hipaa">
  <Claim Type="Professional" PatientControlNumber="1212321233" TotalClaimChargeAmount="0" ProviderSignatureOnFile="SIGNATURE ON FILE">
    <Subscriber Gender="Male" DateOfBirth="1987-12-01" MemberId="1234567" Ssn="No">
      <Name LastName="DAVID" FirstName="SMITH" MiddleName="">
        <Type Identifier="IL" Qualifier="Person">Insured or Subscriber</Type>
        <Identification Qualifier="MI" Id="1234567">Member Identification Number</Identification>
      </Name>
      <Address City="FRMEONT" StateCode="CA" PostalCode="94538" CountryCode="">
        <Line1>123 TEST</Line1>
      </Address>
    </Subscriber>
    <Patient Gender="Male" DateOfBirth="1987-12-01" MemberId="1234567" Ssn="No">
      <Name LastName="DAVID" FirstName="SMITH" MiddleName="">
        <Type Identifier="IL" Qualifier="Person">Insured or Subscriber</Type>
        <Identification Qualifier="MI" Id="1234567">Member Identification Number</Identification>
      </Name>
      <Address City="FRMEONT" StateCode="CA" PostalCode="94538" CountryCode="">
        <Line1>123 TEST</Line1>
      </Address>
    </Patient>
  </Claim>
</ClaimDocument>

Here is the output which am getting from this:

ClaimDocumentInsured or SubscriberMember Identification Number123 TESTInsured or SubscriberMember Identification Number123 TEST

Which is totally malformed, also there is no ISA segment at the start.

Please advice where am going incorrect.

Thanks,

AM