A
download class.Payer.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.Payer.php,v 1.2 2003/11/05 04:40:54 rufustfirefly Exp $
	// $Author: rufustfirefly $

// Class: FreeMED.Payer
//
//	Class container for a "payer" in the system.
//
class Payer {
	var $local_record;                // stores basic record
	var $id;                          // record ID for insurance company
	var $patgroupno;                  // patients group no for this payer
	var $patinsidno;                  // patients id number for this payer
	var $payerstatus;
	var $payertype;                   // payertype 0 prim, 1 sec 2 tert 4 wc
	var $payerstartdt;                // effective dates for coverage
	var $payerenddt;
	var $inscoid;			// pointer to corresponding insco.

	// Method: Payer constructor
	//
	// Parameters:
	//
	//	$payerid - Database table identifier for the specified payer.
	//
	function Payer ($payerid = "") {
		if ($payerid=="") return false;    // error checking

		// Check for a cached copy
		if (!isset($GLOBALS['__freemed']['cache']['payer'][$payerid])) {
			// Retrieve copy
			$this->local_record = freemed::get_link_rec (
				$payerid, "payer"
			);

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

		$this->patgroupno = $this->local_record[payerpatientgrp];	
		$this->patinsidno = $this->local_record[payerpatientinsno];	
		$this->payerstatus = $this->local_record[payerstatus];	
		$this->payertype = $this->local_record[payertype];	
		$this->payerstartdt = $this->local_record[payerstartdt];	
		$this->payerenddt = $this->local_record[payerenddt];	
		$this->inscoid = $this->local_record[payerinsco];	
	} // end constructor Payer

} // end class Payer

?>

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