コード例 #1
0
 function list_action()
 {
     $x = new X12Partner();
     //$x->set_name("Medi-Cal");
     //$x->set_x12_sender_id("123454");
     //$x->set_x12_receiver_id("123454");
     //$x->persist();
     //$x->populate();
     $this->assign("partners", $x->x12_partner_factory());
     return $this->fetch($GLOBALS['template_dir'] . "x12_partners/" . $this->template_mod . "_list.html");
 }
コード例 #2
0
 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");
 }
コード例 #3
0
ファイル: billing_report.php プロジェクト: mi-squared/openemr
         // important when EOB posting has re-queued for secondary billing.
         $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>&nbsp;&nbsp;\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&nbsp;<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";
コード例 #4
0
 function get_x12_default_partner_name()
 {
     $xa = $this->_utility_array(X12Partner::x12_partner_factory());
     return $xa[$this->get_x12_default_partner_id()];
 }