function edit_action($id = "", $patient_id = "", $p_obj = null) { if ($p_obj != null && get_class($p_obj) == "insurancecompany") { $this->icompanies[0] = $p_obj; } elseif (get_class($this->icompanies[0]) != "insurancecompany") { $this->icompanies[0] = new InsuranceCompany($id); } $x = new X12Partner(); $this->assign("x12_partners", $x->_utility_array($x->x12_partner_factory())); $this->assign("insurancecompany", $this->icompanies[0]); return $this->fetch($GLOBALS['template_dir'] . "insurance_companies/" . $this->template_mod . "_edit.html"); }
$lhtml .= "<option value=\"" . attr(substr($row['type'], 0, 1) . $row['id']) . "\""; if ($count == 0 && !$iter['payer_id'] || $row['id'] == $iter['payer_id']) { $lhtml .= " selected"; if (!is_numeric($default_x12_partner)) { $default_x12_partner = $row['ic_x12id']; } } $lhtml .= ">" . text($row['type']) . ": " . text($row['provider']) . "</option>"; } $count++; } $lhtml .= "<option value='-1'>" . xlt("Unassigned") . "</option>\n"; $lhtml .= "</select> \n"; $lhtml .= "<select name='claims[" . attr($this_encounter_id) . "][partner]' style='background-color:{$bgcolor}'>"; $x = new X12Partner(); $partners = $x->_utility_array($x->x12_partner_factory()); foreach ($partners as $xid => $xname) { $lhtml .= '<option label="' . attr($xname) . '" value="' . attr($xid) . '"'; if ($xid == $default_x12_partner) { $lhtml .= "selected"; } $lhtml .= '>' . text($xname) . '</option>'; } $lhtml .= "</select>"; $DivPut = 'yes'; if ($GLOBALS['notes_to_display_in_Billing'] == 1 || $GLOBALS['notes_to_display_in_Billing'] == 3) { $lhtml .= "<br><span style='margin-left: 20px; font-weight bold; color: red'>" . text($enc_billing_note) . "</span>"; } $lhtml .= "<br>\n <div id='divid_{$divnos}' style='display:none'>" . text(oeFormatShortDate(substr($iter['date'], 0, 10))) . text(substr($iter['date'], 10, 6)) . " " . xlt("Encounter was coded"); $query = "SELECT * FROM claims WHERE " . "patient_id = ? AND " . "encounter_id = ? " . "ORDER BY version"; $cres = sqlStatement($query, array($iter['enc_pid'], $iter['enc_encounter']));