Hi Brady,
What I really meant is that it probably would be a good idea to migrate this part of the program to a list/sql data.
This is the code i’m reffering to in library/classes/InsuranceCompany.class.php
define (“INS_TYPE_OTHER_HCFA”,1);
define (“INS_TYPE_MEDICARE”,2);
define (“INS_TYPE_MEDICAID”,3);
define (“INS_TYPE_CHAMPUSVA”,4);
define (“INS_TYPE_CHAMPUS”,5);
define (“INS_TYPE_BCBS”,6);
define (“INS_TYPE_FECA”,7);
define (“INS_TYPE_SELF_PAY”,8);
define (“INS_TYPE_CENTRAL_CERTIFICATION”,9);
define (“INS_TYPE_OTHER_NON-FEDERAL_PROGRAMS”,10);
define (“INS_TYPE_PREFERRED_PROVIDER_ORGANIZATION”,11);
define (“INS_TYPE_POINT_OF_SERVICE”,12);
define (“INS_TYPE_EXCLUSIVE_PROVIDER_ORGANIZATION”,13);
define (“INS_TYPE_INDEMNITY_INSURANCE”,14);
define (“INS_TYPE_HMO_MEDICARE_RISK”,15);
define (“INS_TYPE_AUTOMOBILE_MEDICAL”,16);
define (“INS_TYPE_COMMERCIAL_INSURANCE”,17);
define (“INS_TYPE_DISABILITY”,18);
define (“INS_TYPE_HEALTH_MAINTENANCE_ORGANIZATION”,19);
define (“INS_TYPE_LIABILITY”,20);
define (“INS_TYPE_LIABILITY_MEDICAL”,21);
define (“INS_TYPE_OTHER_FEDERAL_PROGRAM”,22);
define (“INS_TYPE_TITLE_V”,23);
define (“INS_TYPE_VETERANS_ADMINISTRATION_PLAN”,24);
define (“INS_TYPE_WORKERS_COMPENSATION_HEALTH_PLAN”,25);
define (“INS_TYPE_MUTUALLY_DEFINED”,26);
define (“INS_TYPE_LETTER_OF_PROTECTION”,27);
require_once(“PhoneNumber.class.php”);
require_once(“Address.class.php”);
require_once(“X12Partner.class.php”);
require_once(“ORDataObject.class.php”);
/**
*/
class InsuranceCompany extends ORDataObject{
var $id;
var $name;
var $phone;
var $attn;
var $cms_id;
var $alt_cms_id;
//this is now deprecated use new x12 partners instead
var $x12_receiver_id;
var $x12_default_partner_id;
/*
* OpenEMR used this value to determine special formatting for the specified type of payer.
* This value is a mutually exclusive choice answering the FB.Payer.isX API calls
* It references a set of constant defined in this file INS_TYPE_XXX
* Defaults to type INS_TYPE_OTHER_HCFA
* @var int Holds constant for type of payer as far as INS is concerned, see FB.Payer.isXXX API calls
*/
var $ins_type_code;
/*
* Array used to populate select dropdowns or other form elements, it must coincide with the INS_TYPE_XXX constants
* @var array Values are display strings that match constants for FB.Payer.isXXX payer types, used for populating select dropdowns, etc
*/
var $ins_type_code_array = array('','Other HCFA'
,'Medicare Part B'
,'Medicaid'
,'ChampUSVA'
,'ChampUS'
,'Blue Cross Blue Shield'
,'FECA'
,'Self Pay'
,'Central Certification'
,'Other Non-Federal Programs'
,'Preferred Provider Organization (PPO)'
,'Point of Service (POS)'
,'Exclusive Provider Organization (EPO)'
,'Indemnity Insurance'
,'Health Maintenance Organization (HMO) Medicare Risk'
,'Automobile Medical'
,'Commercial Insurance Co.'
,'Disability'
,'Health Maintenance Organization'
,'Liability'
,'Liability Medical'
,'Other Federal Program'
,'Title V'
,'Veterans Administration Plan'
,'Workers Compensation Health Plan'
,'Mutually Defined'
,'Letter of Protection'
);
var $ins_claim_type_array = array(''
,'16'
,'MB'
,'MC'
,'CH'
,'CH'
,'BL'
,'16'
,'09'
,'10'
,'11'
,'12'
,'13'
,'14'
,'15'
,'16'
,'AM'
,'CI'
,'DS'
,'HM'
,'LI'
,'LM'
,'OF'
,'TV'
,'VA'
,'WC'
,'ZZ'
,'LP'
);
Regards,