1
Vote

while deserializing 271 response to EligibilityBenefitResponse type information is not available for Entity

description

This is an issue with xslt that is being used to parse 271 response to Eligibility Benefit Response object the solution that takes care of this issue is here.

put following snippet in xslt and it will solve the issue:

<xsl:template name="EntityName">
<xsl:param name="Loop"/>
<xsl:attribute name="Identifier">
  <xsl:value-of select="$Loop/NM1/NM101"/>
</xsl:attribute>
<xsl:attribute name="Qualifier">
  <xsl:choose>
    <xsl:when test="$Loop/NM1/NM102='1'">Person</xsl:when>
    <xsl:otherwise>NonPerson</xsl:otherwise>
  </xsl:choose>
</xsl:attribute>
<xsl:attribute name="LastName">
  <xsl:value-of select="$Loop/NM1/NM103"/>
</xsl:attribute>
<xsl:if test="$Loop/NM1/NM102='1'">
  <xsl:attribute name="FirstName">
    <xsl:value-of select="$Loop/NM1/NM104"/>
  </xsl:attribute>
  <xsl:if test="string-length($Loop/NM1/NM105)>0">
    <xsl:attribute name="MiddleName">
      <xsl:value-of select="$Loop/NM1/NM105"/>
    </xsl:attribute>
  </xsl:if>
  <xsl:if test="string-length($Loop/NM1/NM106)>0">
    <xsl:attribute name="Prefix">
      <xsl:value-of select="$Loop/NM1/NM106"/>
    </xsl:attribute>
  </xsl:if>
  <xsl:if test="string-length($Loop/NM1/NM107)>0">
    <xsl:attribute name="Suffix">
      <xsl:value-of select="$Loop/NM1/NM107"/>
    </xsl:attribute>
  </xsl:if>
</xsl:if>
<Identification>
  <xsl:attribute name="Qualifier">
    <xsl:value-of select="$Loop/NM1/NM108" />
  </xsl:attribute>
  <xsl:attribute name="Id">
    <xsl:value-of select="$Loop/NM1/NM109"/>
  </xsl:attribute>
  <xsl:value-of select="$Loop/NM1/NM108/comment()"/>
</Identification>
<Type>
  <xsl:attribute name="Identifier">
    <xsl:value-of select="$Loop/NM1/NM101"/>
  </xsl:attribute>
  <xsl:attribute name="Qualifier">
    <xsl:choose>
      <xsl:when test="$Loop/NM1/NM102='1'">Person</xsl:when>
      <xsl:otherwise>NonPerson</xsl:otherwise>
    </xsl:choose>
  </xsl:attribute>
</Type>
</xsl:template>

file attachments

comments

vesuvian7 wrote Jul 7, 2016 at 8:51 PM

I have an issue that sounds very similar to what you're describing.

I just downloaded the latest dll. It looks like the code already includes what you're describing. https://x12parser.codeplex.com/SourceControl/latest#trunk/src/OopFactory.X12.Hipaa/Eligibility/Services/Xsl/X12-271-To-BenefitResponse.xslt

Am I missing something? Is there another way to address this?

Help would be very much appreciated!

vesuvian7 wrote Jul 7, 2016 at 8:53 PM

To be slightly more descriptive, It's pulling through Subscriber/Receiver information (I haven't gone through field by field to make sure it's 100%, but it looks right). However, The benefits section is giving a whole lot of 0's/nulls/Not Applicable responses.

vesuvian7 wrote Jul 7, 2016 at 9:41 PM

ok. When I go through, set up the dependencies, and replace the xslt file with the one downloaded... then it turns the blank values into null values. I guess it's good that it's more explicit about things.

I can't exactly post the files because it's PHI. They're coming from a clearinghouse, and the file includes multiple payers.

Is anyone else experiencing this?

EricDalnas wrote Jan 11 at 4:47 PM

I think it will pull the description also if you change the <Type> segment to this:
 <Type>
      <xsl:attribute name="Identifier">
        <xsl:value-of select="$Loop/NM1/NM101"/>
      </xsl:attribute>
      <xsl:attribute name="Qualifier">
        <xsl:choose>
          <xsl:when test="$Loop/NM1/NM102='1'">Person</xsl:when>
          <xsl:otherwise>NonPerson</xsl:otherwise>
        </xsl:choose>
      </xsl:attribute>
      <xsl:value-of select="$Loop/NM1/NM101/comment()"/>
    </Type>