Medicare X12 clm rejects due to UPIN vs NPI

tmccormi wrote on Monday, February 21, 2011:

This is from a Texas Medicare payor:

3e|HIPAA|R|0x3939418|Invalid ID for Referring Provider Secondary
Identification : only National Provider ID (NPI) is allowed after it is
mandated for use. Invalid data: 1G|2310A|REF|1||||4010A1|

Medicare is moving away from UPIN to requiring NPI across the board, in gen_x12_837.inc.php at lines 457 to 463 is this code:

   if ($claim->referrerUPIN()) {
     ++$edicount;
     $out .= "REF" .   // Referring Provider Secondary Identification
       "*1G" .
       "*" . $claim->referrerUPIN() .
       "~\n";
   }

Should this be changed to just use the NPI now or is there something more fuzzy needed?

-Tony