.../xmlrpc/ FreeB/ class. FBProcedure.php

Summary
Get text name for the current CPT code modifier.
Get weight in grams for infants.
Return a list of procedures to be billed from a billing key.
Get array of diagnoses associated with a procedure key.
Get the patient key from the procedure key
Determines whether a clearinghouse is being used for an electronic transmission.
Gets the current amount paid, given a procedure, or array of procedures.
Extract the provider key from the procedure key.
Extract the facility key from the procedure key.
Extract the practice key from the procedure key.
Get type of service code from procedure and insured keys.

Functions

CPTModifier

function CPTModifier ($procedure)

Get text name for the current CPT code modifier.

Parameters

$proceduerProcedure key

Returns

Text name for the current CPT code modifier

WeightGrams

function WeightGrams ($procedure)

Get weight in grams for infants.  This is not stored anywhere currently, so it is stubbed with a 0.

Parameters

$procedureProcedure key

ProcArray

function ProcArray ($billkey)

Return a list of procedures to be billed from a billing key.  This data is deserialized from the billkey table.

Parameters

$billkeyBillkey

Returns

Array of procedure keys

DiagArray

function DiagArray ($proc)

Get array of diagnoses associated with a procedure key.  The procedure key’s diagnosis codes are joined with the episode of care (if present) to pass the EOC information.

Parameters

$procProcedure key

Returns

Array of diagnosis keys

PatientKey

function PatientKey ($proc)

Get the patient key from the procedure key

Parameters

$procProcedure key

Returns

Patient key

isUsingClearingHouse

function isUsingClearingHouse ($proc)

Determines whether a clearinghouse is being used for an electronic transmission.  Is stubbed to “yes”, since there is currently no other way to submit them.

Parameters

$procProcedure key

Returns

Boolean

AmountPaid

function AmountPaid ($proc)

Gets the current amount paid, given a procedure, or array of procedures.  Creates an SQL SUM() statement in the procrec table.

Parameters

$procProcedure key (or array of procedures)

Returns

Amount paid from current procedure(s).

ProviderKey

function ProviderKey ($procedure)

Extract the provider key from the procedure key.

Parameters

$procedureProcedure key

Returns

Provider key.

FacilityKey

function FacilityKey ($procedure)

Extract the facility key from the procedure key.

Parameters

$procedureProcedure key

Returns

Facility key.

PracticeKey

function PracticeKey ($procedure)

Extract the practice key from the procedure key.  Currently returns the facility key, since they are the same.

Parameters

$procedureProcedure key

Returns

Practice key.

TypeOfService

function TypeOfService ($procedure,
$insured)

Get type of service code from procedure and insured keys.  This is extracted by pulling the insurance code out of the insured key (coverage table), and comparing it against the cpttos table (cpt table), then pulling the actual name out of the type of service table (tos table).

Parameters

$procedureProcedure key
$insuredInsured key

Returns

Text name of the type of service.

function CPTModifier ($procedure)
Get text name for the current CPT code modifier.
function WeightGrams ($procedure)
Get weight in grams for infants.
function ProcArray ($billkey)
Return a list of procedures to be billed from a billing key.
function DiagArray ($proc)
Get array of diagnoses associated with a procedure key.
function PatientKey ($proc)
Get the patient key from the procedure key
function isUsingClearingHouse ($proc)
Determines whether a clearinghouse is being used for an electronic transmission.
function AmountPaid ($proc)
Gets the current amount paid, given a procedure, or array of procedures.
function ProviderKey ($procedure)
Extract the provider key from the procedure key.
function FacilityKey ($procedure)
Extract the facility key from the procedure key.
function PracticeKey ($procedure)
Extract the practice key from the procedure key.
function TypeOfService ($procedure,
$insured)
Get type of service code from procedure and insured keys.