aethelwulffe wrote on Tuesday, December 21, 2010:
More issues with the x12 generator… I would really like to get working on a few EMR development projects, like forms and such, or maybe learning 4.0 a bit and PHP so I can work on stuff, but I have not gotten basic billing nailed down yet. I am having header content problems.
PROBLEM(s): Duns and Bradstreet identifier is showing up as ZZ and not 01. Possibility of wrong number of spaces in the GS02 entry identifiers (might have attended to that by taking out spaces at the end of the entries in the EMR, possibly I needed more spaces that are not there.
Mind you, after coming to the above solution to the billing location issue, I have done the following with my version of 3.2.0:
1. Restored the mysteriously missing users_facility table
2. (Possibly) Enabled the default facility for providers in globals (might have only done that in a testing install).
I have these settings:
I have tracked down and copied the following bits (less the variable declarations and such) of files I think are relevant to my issue:
//Output 837 file header:
//ISA*00* *00* *ZZ*AV09311993 *ZZ*030240928 *101221*1714*U*00401*021549495*0*P*:~GS*HC*AV09311993 *030240928 //*20101221*1714*1*X*004010X098A1~ST*837
//****NOTE: Duns&Bradstreet identifier ISA07 is showing up as ZZ. GS02 may have wrong number of spaces etc... as well.
//source of x12payer_id
<tr>
<td COLSPAN="1" ALIGN="LEFT" VALIGN="MIDDLE" >Receiver ID Qualifier (ISA07)</td>
<td COLSPAN="2" ALIGN="LEFT" VALIGN="MIDDLE" ><select name="x12_isa07">
<option label="Duns (Dun & Bradstreet)" value="01" selected="selected">Duns (Dun & Bradstreet)</option>
<option label="Duns Plus Suffix" value="14">Duns Plus Suffix</option>
<option label="Health Industry Number (HIN)" value="20">Health Industry Number (HIN)</option>
<option label="Carrier ID from HCFA" value="27">Carrier ID from HCFA</option>
<option label="Fiscal Intermediary ID from HCFA" value="28">Fiscal Intermediary ID from HCFA</option>
<option label="Medicare ID from HCFA" value="29">Medicare ID from HCFA</option>
<option label="U.S. Federal Tax ID Number" value="30">U.S. Federal Tax ID Number</option>
<option label="NAIC Company Code" value="33">NAIC Company Code</option>
<option label="Mutually Defined" value="ZZ">Mutually Defined</option>
</select>
</td>
</tr>
<tr>
//From gen_x12_837.inc.php
$out .= "ISA" .
"*00" .
"* " .
"*00" .
"* " .
"*" . $claim->x12gsisa05() .
"*" . $claim->x12gssenderid() .
"*" . $claim->x12gsisa07() .
"*" . $claim->x12gsreceiverid() .
"*030911" .
"*1630" .
"*U" .
"*00401" .
"*000000001" .
"*" . $claim->x12gsisa14() .
"*" . $claim->x12gsisa15() .
"*:" .
"~\n";
///from X12Partner.class.php
function X12Partner ($id = "", $prefix = "") {
parent::ORDataObject();
$this->id = $id;
$this->_table = "x12_partners";
$this->processing_format_array = $this->_load_enum("processing_format",false);
$this->processing_format = $this->processing_format_array[0];
//most recent x12 version mandated by HIPAA and CMS
$this->x12_version = "004010X098A1";
$this->x12_isa05 = "ZZ";
$this->x12_isa07 = "ZZ";
$this->x12_isa14 = "0";
if ($id != "") {
$this->populate();
}
}
function get_idqual_array() {
return array(
'01' => 'Duns (Dun & Bradstreet)',
'14' => 'Duns Plus Suffix',
'20' => 'Health Industry Number (HIN)',
'27' => 'Carrier ID from HCFA',
'28' => 'Fiscal Intermediary ID from HCFA',
'29' => 'Medicare ID from HCFA',
'30' => 'U.S. Federal Tax ID Number',
'33' => 'NAIC Company Code',
'ZZ' => 'Mutually Defined',
);
}
I wish I knew enough to make a little output debugger that could interface with the database to do corrections! Anywho, I KNOW from the above code that function X12Partner loads the ZZ value, and then later the id qualifier array value chosen is supposed to replace the ZZ with “01”. I bet I could make the “default” ZZ into an “01” and have this bit solved with a kludge, but I am still just dealing with Availity, and I don’t know if I am going to need to change from an 01 to something else for submitting to payers not linked with Availity.
-Puhleez….I swear up and down that I will be a good little contributing and donating Indian to the cause here. At the moment, I need another unpaid/unearned favor, cause my Wife will absolutely KILL me if this all goes to shit on us. I am not likely to survive the process……Any advice, code, methods, or bus tickets out of town will be appreciated.
-I need a drink.
-Art