diff --git a/contrib/util/import_mi2xml.php b/contrib/util/import_mi2xml.php index df75cbf7378..bd96a243350 100644 --- a/contrib/util/import_mi2xml.php +++ b/contrib/util/import_mi2xml.php @@ -190,6 +190,7 @@ function create_patient( &$medics, &$errors ) { '', // genericval1 '', // genericname2 '', // genericval2 + '', //billing_note '', // phone_cell form2db($medics->hippa_notice), // hipaa_mail form2db($medics->hippa_notice), // hipaa_voice diff --git a/custom/export_xml.php b/custom/export_xml.php index 472123558a1..77ad599b7d7 100644 --- a/custom/export_xml.php +++ b/custom/export_xml.php @@ -206,6 +206,7 @@ function addInsurance($row, $seq) { Add("genericval1" , $row['genericval1']); Add("genericname2" , $row['genericname2']); Add("genericval2" , $row['genericval2']); + Add("billing_note" , $row['billing_note']); Add("hipaa_mail" , $row['hipaa_mail']); Add("hipaa_voice" , $row['hipaa_voice']); diff --git a/custom/import_xml.php b/custom/import_xml.php index b07e343cbd4..5940bb6b45e 100644 --- a/custom/import_xml.php +++ b/custom/import_xml.php @@ -159,6 +159,7 @@ function setInsurance($pid, $ainsurance, $asubscriber, $seq) { $apatient['genericval1'], $apatient['genericname2'], $apatient['genericval2'], + $apatient['billing_note'], $apatient['phone_cell'], $apatient['hipaa_mail'], $apatient['hipaa_voice'], diff --git a/interface/billing/billing_report.php b/interface/billing/billing_report.php index 6be73daff0f..3b4bfaadb7f 100644 --- a/interface/billing/billing_report.php +++ b/interface/billing/billing_report.php @@ -774,7 +774,7 @@ class='link_submit' > } } - $name = getPatientData($iter['enc_pid'], "fname, mname, lname, pubpid, DATE_FORMAT(DOB,'%Y-%m-%d') as DOB_YMD"); + $name = getPatientData($iter['enc_pid'], "fname, mname, lname, pubpid, billing_note, DATE_FORMAT(DOB,'%Y-%m-%d') as DOB_YMD"); # Check if patient has primary insurance and a subscriber exists for it. # If not we will highlight their name in red. @@ -795,7 +795,7 @@ class='link_submit' > $ptname = $name['fname'] . " " . $name['lname']; $raw_encounter_date = date("Y-m-d", strtotime($iter['enc_date'])); - + $billing_note = $name['billing_note']; // Add Encounter Date to display with "To Encounter" button 2/17/09 JCH $lhtml .= " ". text($ptname) . " (" . text($iter['enc_pid']) . "-" . @@ -847,7 +847,7 @@ class='link_submit' > "], CalendarCategoryArray[" . $iter['enc_pid'] . "])\">[" . xlt('To Dems') . "]"; $divnos=$divnos+1; $lhtml .= "   (" . htmlspecialchars( xl('Expand'), ENT_QUOTES) . ")"; + "\">(" . htmlspecialchars( xl('Expand'), ENT_QUOTES) . ') '.text($billing_note).''; if ($iter['id']) { @@ -1065,7 +1065,7 @@ class='link_submit' > if ($iter['id']) $rhtml .= text(oeFormatSDFT(strtotime($iter{"date"}))); $rhtml .= "\n"; if ($iter['id'] && $iter['authorized'] != 1) { - $rhtml .= "".xlt("Note: This code was not entered by an authorized user. Only authorized codes may be uploaded to the Open Medical Billing Network for processing. If you wish to upload these codes, please select an authorized user here.")."\n"; + $rhtml .= "".xlt("Note: This code has not been authorized.")."\n"; } else { $rhtml .= "\n"; @@ -1111,7 +1111,7 @@ class='link_submit' > $rhtml2 .= text(oeFormatSDFT(strtotime($date))); $rhtml2 .= "\n"; if ($iter['id'] && $iter['authorized'] != 1) { - $rhtml2 .= "".xlt("Note: This code was not entered by an authorized user. Only authorized codes may be uploaded to the Open Medical Billing Network for processing. If you wish to upload these codes, please select an authorized user here.")."\n"; + $rhtml2 .= "".xlt("Note: This copay was entered against billing that has not been authorized. Please review status.")."\n"; }else{ $rhtml2 .= "\n"; } diff --git a/interface/billing/sl_eob_invoice.php b/interface/billing/sl_eob_invoice.php index 81b510e966d..31af8386322 100644 --- a/interface/billing/sl_eob_invoice.php +++ b/interface/billing/sl_eob_invoice.php @@ -469,7 +469,7 @@ function updateFields(payField, adjField, balField, coPayField, isFirstProcCode) $codes = get_invoice_summary($trans_id, true); } - $pdrow = sqlQuery("select genericname2, genericval2 " . + $pdrow = sqlQuery("select billing_note " . "from patient_data where pid = '$patient_id' limit 1"); ?>
@@ -685,13 +685,13 @@ function updateFields(payField, adjField, balField, coPayField, isFirstProcCode) } ?> - + - + diff --git a/interface/billing/sl_eob_patient_note.php b/interface/billing/sl_eob_patient_note.php index f19905ccf30..5bc795700ad 100644 --- a/interface/billing/sl_eob_patient_note.php +++ b/interface/billing/sl_eob_patient_note.php @@ -40,12 +40,10 @@ if ($_POST['form_save']) { $thevalue = trim($_POST['form_note']); - $thename = $thevalue ? "Billing" : ""; sqlStatement("UPDATE patient_data SET " . - "genericname2 = ?, " . - "genericval2 = ? " . - "WHERE pid = ? ", array($thename, $thevalue, $patient_id)); + "billing_note = ? " . + "WHERE pid = ? ", array($thevalue, $patient_id)); echo "