A
download class.InsuranceCompany.php
Language: PHP
LOC: 31
Project Info
FreeMED Project(freemed)
Server: SourceForge
Type: cvs
...reemed\freemed\freemed\lib\
   acl.php
   API.php
   bcadd.php
   calendar-functions.php
   class.AdminModule.php
   class.Agata.php
   class.Authorizations.php
   class.BaseModule.php
   class.BillingModule.php
   class.CalendarModule.php
   class.ClaimLog.php
   class.Coverage.php
   class.Debug.php
   class.diagnosis_set.php
   class.Djvu.php
   class.EMRModule.php
   class.Fax.php
   class.FixedFormEntry.php
   ...s.FixedFormRenderer.php
   class.FormRenderer.php
   class.FreeMEDSelfTest.php
   class.GeneralConfig.php
   class.GraphModule.php
   class.Guarantor.php
   class.Handler_HL7v2.php
   ...s.Handler_HL7v2_A04.php
   ...s.Handler_HL7v2_A08.php
   ...s.Handler_HL7v2_S12.php
   ...s.Handler_HL7v2_S15.php
   class.InsuranceCompany.php
   class.LanguageRegistry.php
   class.Ledger.php
   ...s.MaintenanceModule.php
   class.Messages.php
   class.OMBS_Patient.php
   class.OMBS_Wrapper.php
   class.Parser_HL7v2.php
   class.Patient.php
   class.Payer.php
   class.PHPlot.php
   class.Physician.php
   class.Procedure.php
   class.RecordLock.php
   class.Remitt.php
   class.ReportsModule.php
   class.rxlist.php
   class.Scheduler.php
   class.TeX.php
   class.User.php
   class.UtilityModule.php
   class.vCalendar.php
   class.vCalendarEvent.php
   error_handler.php
   freemed.php
   i18n.php
   iso-set.php
   macros.php
   mail-functions.php
   settings.php
   settings.php.tmpl
   xml.php
   xmlrpc_services.php

<?php
	// $Id: class.InsuranceCompany.php,v 1.3 2004/02/21 11:52:43 rufustfirefly Exp $
	// $Author: rufustfirefly $

// Class: FreeMED.InsuranceCompany
//
//	Class container for Insurance Company.
//
class InsuranceCompany {
	var $local_record;           // stores basic record
	var $id;                     // record ID for insurance company
	var $insconame;              // name of company
	var $inscoalias;             // insurance company alias (for forms)
	var $modifiers;              // modifiers array

	// Method: InsuranceCompany constructor
	//
	// Parameters:
	//
	//	$insco - Database table identifier for insurance company.
	//
	function InsuranceCompany ($insco = 0) {
		if ($insco==0) return false;    // error checking

		if (!isset($GLOBALS['__freemed']['cache']['insco'][$insco])) {
			// Get record
			$this->local_record = freemed::get_link_rec (
				$insco, "insco"
			);

			// Cache it
			$GLOBALS['__freemed']['cache']['insco'][$insco] = $this->local_record;
		} else {
			// Retrieve from the cache
			$this->local_record = $GLOBALS['__freemed']['cache']['insco'][$insco];

		}
		$this->id           = $this->local_record["id" ];
		$this->insconame    = $this->local_record["insconame" ];
		$this->inscoalias   = $this->local_record["inscoalias"];
		$this->modifiers    = fm_split_into_array (
			$this->local_record["inscomod"]
		);
	} // end constructor InsuranceCompany

	// Method: get_name
	//
	//	Form name of insurance company / payer.
	//
	// Returns:
	//
	//	Common name of insurance company / payer.
	//
	function get_name ( ) {
		return $this->local_record['insconame'].' ('.
			$this->local_record['inscocity'].', '.
			$this->local_record['inscostate'].')';
	} // end method get_name

} // end class InsuranceCompany

?>

About Koders | Resources | Downloads | Support | Black Duck | Terms of Service | DMCA | Privacy Policy | Contact Us