.../xmlrpc/ FreeB/ class. FBDiagnosis.php

Summary
icd9code record from the icd9 table
icd10code record from the icd9 table
Returns: eocrelothercomment from the eoc table
returns true if the eocrelauto field in the eoc table is set to ‘yes’.
eocrelautostpr record from the eoc table.
returns true if eocrelother from the eoc table is set to ‘yes’.
returns true if the eocrelemp record from the eoc table is set to ‘yes’.
Currently a wrapper to DateOfFirstOccurrence
eocstartdate record from the eoc table
BROKEN there is no way that this function can know the procedure.
true if the eocdistype from the eoc table is above zero and below four.
eocdisfromdt record from the eoc table.
eocdistodt record from the eoc table
Internal FreeMED function to handle the ‘diagkeys’ that are used as arguments to the FBDiagnosis functions.

Functions

ICD9Code

function ICD9Code ($diagkey)

Returns

icd9code record from the icd9 table

ICD10Code

function ICD10Code ($diagkey)

Returns

icd10code record from the icd9 table

RelatedToHCFA

function RelatedToHCFA ($diagkey)

Returns: eocrelothercomment from the eoc table

isRelatedToAutoAccident

function isRelatedToAutoAccident ($diagkey)

Returns

returns true if the eocrelauto field in the eoc table is set to ‘yes’.

AutoAccidentState

function AutoAccidentState ($diagkey)

Returns

eocrelautostpr record from the eoc table.

isRelatedToOtherAccident

function isRelatedToOtherAccident ($diagkey)

Returns

returns true if eocrelother from the eoc table is set to ‘yes’.

isRelatedToEmployment

function isRelatedToEmployment ($diagkey)

Returns

returns true if the eocrelemp record from the eoc table is set to ‘yes’.

DateOfOnset

function DateOfOnset ($diagkey)

Currently a wrapper to DateOfFirstOccurrence

DateOfFirstOccurrence

function DateOfFirstOccurrence ($diagkey)

Returns

eocstartdate record from the eoc table

isFirstOccurence

BROKEN there is no way that this function can know the procedure.

isCantWork

function isCantWork ($diagkey)

Returns

true if the eocdistype from the eoc table is above zero and below four.  TODO: this function violates principle of encapsulation by assuming that the values of eocdistype cannot change.

DateOfCantWorkStart

function DateOfCantWorkStart ($diagkey)

Returns

eocdisfromdt record from the eoc table.  TODO: this assumes that disability is the same thing as not being able to work.  Is this always correct?

DateOfCantWorkEnd

function DateOfCantWorkEnd ($diagkey)

Returns

eocdistodt record from the eoc table

_ExplodeParameters

function _ExplodeParameters ($joint_key)

Internal FreeMED function to handle the ‘diagkeys’ that are used as arguments to the FBDiagnosis functions.  The FreeB “Diagnosis” object maps to two different objects in FreeMED, the eoc (episode of care) and the diagnosis record, which is FreeMEDs internal ICD records.  As a result, when FreeB requests a diagnosis key, FreeMED sends a comma delimited list of the two keys.  This function breaks them apart when they are returned to FreeMED.

function ICD9Code ($diagkey)
icd9code record from the icd9 table
function ICD10Code ($diagkey)
icd10code record from the icd9 table
function RelatedToHCFA ($diagkey)
Returns: eocrelothercomment from the eoc table
function isRelatedToAutoAccident ($diagkey)
returns true if the eocrelauto field in the eoc table is set to ‘yes’.
function AutoAccidentState ($diagkey)
eocrelautostpr record from the eoc table.
function isRelatedToOtherAccident ($diagkey)
returns true if eocrelother from the eoc table is set to ‘yes’.
function isRelatedToEmployment ($diagkey)
returns true if the eocrelemp record from the eoc table is set to ‘yes’.
function DateOfOnset ($diagkey)
Currently a wrapper to DateOfFirstOccurrence
function DateOfFirstOccurrence ($diagkey)
eocstartdate record from the eoc table
function isCantWork ($diagkey)
true if the eocdistype from the eoc table is above zero and below four.
function DateOfCantWorkStart ($diagkey)
eocdisfromdt record from the eoc table.
function DateOfCantWorkEnd ($diagkey)
eocdistodt record from the eoc table
function _ExplodeParameters ($joint_key)
Internal FreeMED function to handle the ‘diagkeys’ that are used as arguments to the FBDiagnosis functions.