Item 25 on the 1500

ajperezcrespo wrote on Saturday, April 02, 2005:

Some Doctors use their SS and mark SSN others use their Fed Id and Mark EIN.  What determins which to use?
Alfonso

drbowen wrote on Sunday, April 03, 2005:

Doctors in sole proprietorships would use there SSNs.

LLCs, C corporations, Subchapter S corporations will usually need to use the EIN.

ajperezcrespo wrote on Sunday, April 03, 2005:

How does one get OpenEMR to place a checkmark in the SSN box and Print the Social Security number?

zhhealthcare wrote on Thursday, October 07, 2010:

Hi Guys
Has any body found a soluton to this question from Alfonso?

How does one get OpenEMR to place a checkmark in the SSN box and Print the Social Security number?

Currently in the Facility menu I dont see an option to select SSN or EIN.   Consequently the resulting Hcfa printout nor the x12 is able to handle this.  Claims are being rejected due to this. 

Thanks
Sam

sunsetsystems wrote on Thursday, October 07, 2010:

Looks like it is hard-coded for EIN.  From gen_hcfa_1500.inc.php:

// 25. Federal Tax ID Number
  // Using the Billing Facility EIN because that’s what FreeB did.

So it seems the facility form needs a checkbox for this.

Rod
www.sunsetsystems.com

zhhealthcare wrote on Thursday, October 07, 2010:

Shall we work on this then? 

Sam

zhhealthcare wrote on Thursday, October 07, 2010:

This is what we intend to do:

1.  Provide a drop down in facility master screen with the following values “EIN” and “SSN”.  The text field will be changed to “Tax ID Type”
2. Change the hcfa_gen file accordingly. Check the appropriate box.
3. Change the x12_gen file code as per below. 

Original Code begins

if ($claim->billingFacilityNPI() && $claim->billingFacilityETIN()) {
    ++$edicount;
    $out .= “REF” .
      “*EI” .
      “*” . $claim->billingFacilityETIN() .
      “~\n”;
  }

Original Code end

Alteration suggestion  begins   --gen_x12_837  line no. 156

if ($claim->federalIdType()) {
    ++$edicount;
    $out .= “REF” .
      “*” .$claim->federalIdType().
      “*” . $claim->billingFacilityETIN() .
      “~\n”;
  }

Alteration suggestion End   gen_x12_837

Alteration suggestion  begins   --Claim .class.php

function federalIdType() {
if (facility==‘ssn’)
{
return ‘SY’;

}
elseif( facility==‘ein’)
{
return ‘EI’;

  }

Alteration suggestion End Claim .class.php

We are not real experts on the x12, hence we need your confirmation on item number three to proceed.

Thanks
Sam

sunsetsystems wrote on Thursday, October 07, 2010:

Instead of “if ($claim->federalIdType())” I suggest you keep the original “if ($claim->billingFacilityNPI() && $claim->billingFacilityETIN())”.  That way the type selector can default to EIN, one less thing for the user to change in most cases, and eliminates the need to test for EIN entered without a type selected or vice versa.  Otherwise it looks OK.

Rod
www.sunsetsystems.com

sunsetsystems wrote on Thursday, October 07, 2010:

Doctors in sole proprietorships would use there SSNs.

I’m pretty sure a sole proprietor can get an EIN.  My wife did that for her child care business.  There’s less risk of identity theft if you don’t float your SSN around.

Rod
www,sunsetsystems.com

zhhealthcare wrote on Friday, October 08, 2010:

Hi,

Added a code review item at https://sourceforge.net/tracker/?func=detail&atid=1245239&aid=3083860&group_id=60081

We have made the changes : it is available at http://github.com/zhhealthcare/openemr/tree/billing_modifications_for_ein_ssn_selection

Please let us know ASAP.

Thanks
Sam

sunsetsystems wrote on Sunday, October 10, 2010:

I have added my comments to the tracker item.

Rod
www.sunsetsystems.com

bradymiller wrote on Friday, October 15, 2010:

hey,
I just committed zhhealthcare’s code to the openemr development tip (master branch on github).
artifact:
http://sourceforge.net/tracker/index.php?func=detail&aid=3083860&group_id=60081&atid=1245239#
commit:
http://github.com/openemr/openemr/commit/c2b3a995813667f6513adfdb7924cf596076cc87
-brady