EIN instead of provider ID in loop 2010AA

aperezcrespo wrote on Friday, June 26, 2009:

Hi
I’ve run into an annoying Insurance company that in Loop 2010AA Billing Provider wants the facilities EIN and not the providers number. How can I get it to use EIN instead of provider Number without affecting other Insurance transactions that play nice?

Thanks

aperezcrespo wrote on Tuesday, June 30, 2009:

H i
I tried the following but Something doesn’t seem right. Actually it doesn’t work.
This is at line 160 of gen_x12_837.inc.php

  if ($claim->providerNumberType() && $claim->providerNumber()) {
    ++$edicount;
    $out .= "REF" .
      "*" . $claim->providerNumberType() .
      if ($claim->PayerID() = "660592131")
      {"*" . $claim->billingFacilityETIN() .}
      else 
      {"*" . $claim->providerNumber() .}
      "~\n";
  }
  else if ($claim->providerNumber()) {
    $log .= "*** Payer-specific provider insurance number is present but has no type assigned.\n";
  }

Thanks

ideaman911 wrote on Tuesday, June 30, 2009:

My suggestion would be to not try to vary the $out construction as a piece, but instead effectively duplicate the entire build as separate if your Payer matches instead.  Ergo:

if ($claim->providerNumberType() && $claim->providerNumber()) {
++$edicount;
if ($claim->PayerID() = "660592131")  {
$out .= "REF" . "*" . "EIN" . "*" . $claim->billingFacilityETIN() .
}
else {
$out .= "REF" . "*" . $claim->providerNumberType() .
"*" . $claim->providerNumber() .
}
"~\n";
}

else if ($claim->providerNumber()) {
$log .= "*** Payer-specific provider insurance number is present but has no type assigned.\n";
}     //  of course this will always put EIN in as code type for that payor 6/30/09  JCH

Joe Holzer    Idea Man
http://www.holzerent.com

aperezcrespo wrote on Wednesday, July 01, 2009:

I tried it like this:
if ($claim->providerNumberType() && $claim->providerNumber()) {
    ++$edicount;
      if ($claim->PayerID() = "660592131")
      {$out .= "REF" . "*" . $claim->providerNumberType() . "*" . $claim->billingFacilityETIN() .}
      else 
      {$out .= "REF" . "*" . $claim->providerNumberType() . "*" . $claim->providerNumber() .}
      "~\n";
  }
  else if ($claim->providerNumber()) {
    $log .= "*** Payer-specific provider insurance number is present but has no type assigned.\n";
  }

After digging into an X12 from a previous billing app this is what it seems to want in the file.
But I’m getting a 500 error from the webserver until I remove the change.

Thanks