FBFacility

FreeMEDs implementation of FreeB::FBFacility.

Summary
FreeMEDs implementation of FreeB::FBFacility.
psrname record from the facility table
psraddr1 record from the facility table
psrcity record from the facility table
psrstate record from the facility table.
psrzip record from the facility table.
Return the phone country code.
returns the first three digits of the psrphone field from the facility table
the third to the seventh digit in the psrphone field from the facility table.
returns the last four digits of the psrphone field from the facility table.
uses the psrpos field from the facility table to get the posname field from the pos table.
uses the psrpos field from the facility table to get the posname field from the pos table.

Functions

Name

function Name ($key)

Returns

psrname record from the facility table

StreetAddress

function StreetAddress ($key)

Returns

psraddr1 record from the facility table

City

function City ($key)

Returns

psrcity record from the facility table

State

function State ($key)

Returns

psrstate record from the facility table.

Zipcode

function Zipcode ($key)

Returns

psrzip record from the facility table.

PhoneCountry

function PhoneCountry ($key)

Return the phone country code.  This defaults to 1, as there is no foreign country handling currently in the FreeB code.

Parameters

$keyFacility key

Returns

Country code

PhoneArea

function PhoneArea ($key)

Returns

returns the first three digits of the psrphone field from the facility table

PhoneNumber

function PhoneNumber ($key)

Returns

the third to the seventh digit in the psrphone field from the facility table.

PhoneExtension

function PhoneExtension ($key)

Returns

returns the last four digits of the psrphone field from the facility table.

HCFACode

function HCFACode ($fac,
$pay)

Returns

uses the psrpos field from the facility table to get the posname field from the pos table.

X12Code

function X12Code ($fac,
$pay)

Returns

uses the psrpos field from the facility table to get the posname field from the pos table.

function Name ($key)
psrname record from the facility table
function StreetAddress ($key)
psraddr1 record from the facility table
function City ($key)
psrcity record from the facility table
function State ($key)
psrstate record from the facility table.
function Zipcode ($key)
psrzip record from the facility table.
function PhoneCountry ($key)
Return the phone country code.
function PhoneArea ($key)
returns the first three digits of the psrphone field from the facility table
function PhoneNumber ($key)
the third to the seventh digit in the psrphone field from the facility table.
function PhoneExtension ($key)
returns the last four digits of the psrphone field from the facility table.
function HCFACode ($fac,
$pay)
uses the psrpos field from the facility table to get the posname field from the pos table.
function X12Code ($fac,
$pay)
uses the psrpos field from the facility table to get the posname field from the pos table.