lib/ class. ClaimLog.phpSummary | | | | | It is a helper function which sorts by an embedded array. | | Allows access to functions involving the internal FreeMED claim log, which is used by the system to track billing, rebilling, bill keys, et cetera. | | | | Provide an “aging summary” (with number of claims and amount due) for a range of agings, grouped by patient. | | Provide aging summary grouped by payer, for the common age ranges (0-30, 31-60, 61-90, 91-120, 120+) | | Provide an “aging summary” (with number of claims and amount due) for a range of agings, grouped by payer. | | Get a picklist of all insurance companies which have outstanding balances in the system. | | Get a picklist of all insurance plans which have outstanding balances in the system. | | Get associative array of information related to a particular claim item (procedure). | | Get an associative array with information containing events related to a particular procedure. | | Recursively log all procedures from a particular billkey as being billed NOW. | | Add an event to the claim log | | Mark all procedures in a billkey as being billed. | | Mark all procedures in an array as being billed. | | Get list of all procedure statuses in the system that are currently being used. | | Add a rebill to the claim log. | | Look up a patient by a procedure id | | Internal helper function to convert SQL queries into arrays of associative arrays. |
___sort_agingfunction ___sort_aging ( | $a, | | $b | ) |
|
It is a helper function which sorts by an embedded array. It should only be used in <ClaimLog::aging_summary_full>, and should not have ever been written; it makes up for a language shortcoming. It is called by uasort(). Parameters$a | Parameter 1 | $b | Parameter 2 |
ReturnsSorted array
FreeMED. ClaimLogAllows access to functions involving the internal FreeMED claim log, which is used by the system to track billing, rebilling, bill keys, et cetera. Summary | | | Provide an “aging summary” (with number of claims and amount due) for a range of agings, grouped by patient. | | Provide aging summary grouped by payer, for the common age ranges (0-30, 31-60, 61-90, 91-120, 120+) | | Provide an “aging summary” (with number of claims and amount due) for a range of agings, grouped by payer. | | Get a picklist of all insurance companies which have outstanding balances in the system. | | Get a picklist of all insurance plans which have outstanding balances in the system. | | Get associative array of information related to a particular claim item (procedure). | | Get an associative array with information containing events related to a particular procedure. | | Recursively log all procedures from a particular billkey as being billed NOW. | | Add an event to the claim log | | Mark all procedures in a billkey as being billed. | | Mark all procedures in an array as being billed. | | Get list of all procedure statuses in the system that are currently being used. | | Add a rebill to the claim log. | | Look up a patient by a procedure id | | Internal helper function to convert SQL queries into arrays of associative arrays. |
aging_report_qualifiedfunction aging_report_qualified ( | $criteria | ) |
|
Provide an “aging summary” (with number of claims and amount due) for a range of agings, grouped by patient. Can be restricted by payer. Parameters$criteria | Associative array of criteria types as keys and parameters as values. |
ReturnsArray of associative arrays containing aging information.
aging_summary_payer_fullfunction aging_summary_payer_full ( | $provider | = | 0 | ) |
|
Provide aging summary grouped by payer, for the common age ranges (0-30, 31-60, 61-90, 91-120, 120+) Parameters$provider | (optional) Provider id key if the search is to be restricted by provider. Defaults to disable. |
ReturnMultidimensional array containing aging information. See Alsoaging_summary_payer_range
aging_summary_payer_rangefunction aging_summary_payer_range ( | $lower, | | | | $upper | = | false, | | $provider | = | 0 | ) |
|
Provide an “aging summary” (with number of claims and amount due) for a range of agings, grouped by payer. Can be restricted by provider. Parameters$lower | Lower aging range in days. | $upper | (optional) Upper aging range in days. Defaults to false. | $provider | (optional) Provider to restrict search by. Defaults to disabled. |
ReturnsArray of associative arrays containing aging information. See Alsoaging_summary_payer_full
aging_insurance_companiesfunction aging_insurance_companies ( | $provider | = | NULL | ) |
|
Get a picklist of all insurance companies which have outstanding balances in the system. Can be limited by provider, if optional parameter is given. Parameters$provider | (optional) Provider/physician id key to limit the search. Defaults to disabled. |
ReturnsAssociative array of payers.
aging_insurance_plansfunction aging_insurance_plans ( | $payer | = | NULL | ) |
|
Get a picklist of all insurance plans which have outstanding balances in the system. Can be narrowed to only search by one payer. Parameters$payer | (optional) Insurance company id key to limit the search. Defaults to disabled. |
ReturnsAssociative array of plan names.
claim_informationfunction claim_information ( | $proc, | | | | $payrec | = | NULL | ) |
|
Get associative array of information related to a particular claim item (procedure). Parameters$proc | Procedure id key | $payrec | (optional) Payment record id key. Gives information regarding only that payment record. |
ReturnsAssociative array of information about the specified procedure
events_for_procedurefunction events_for_procedure ( | $proc, | | | | $payrec | = | NULL | ) |
|
Get an associative array with information containing events related to a particular procedure. Parameters$proc | Procedure id key | $payrec | (optional) Payment record id key. Gives only information regarding that particular payment record. |
ReturnsArray of associative arrays containing billing event data from the claimlog table.
log_billingfunction log_billing ( | $billkey, | | | | $format, | | | | $target, | | | | $comment | = | '' | ) |
|
Recursively log all procedures from a particular billkey as being billed NOW. Parameters$billkey | Billkey id key | $format | Text name of the format used to send | $target | Text name of the target used to send | $comment | (optional) Optional text comment to be attached to the claim record. |
ReturnsBoolean, if successful.
log_eventfunction log_event ( | $procedure, | | $param | ) |
|
Add an event to the claim log Parameters$procedure | Procedure id key | $param | Additional parameters in an associative array. |
- item - Payment record id (optional)
- billkey - Billkey id for billing runs
- action - Textual action description
- format - Billing engine related
- target - Billing engine related
- comment - What else?
ReturnsRecord id key of new claim log record, or false if failed.
mark_billedfunction mark_billed ( | $billkeys | ) |
|
Mark all procedures in a billkey as being billed. The billing interface should use this function. ParametersReturnsBoolean, if successful.
mark_billed_arrayfunction mark_billed_array ( | $procs | ) |
|
Mark all procedures in an array as being billed. The billing interface should use this function. Parameters$procs | Array of procedures |
ReturnsBoolean, if successful.
procedure_status_listfunction procedure_status_list ( ) |
Get list of all procedure statuses in the system that are currently being used. ReturnsArray of distinct procedure statuses.
set_rebillfunction set_rebill ( | $procedure, | | | | $comment, | | | | $date | = | '' | ) |
|
Add a rebill to the claim log. Parameters$procedure | Procedure key | $comment | Text comment | $date | (optional) SQL date format describing the date of the rebill. If not passed, the default is today. |
ReturnsBoolean, if successful.
_procedure_to_patientfunction _procedure_to_patient ( | $procedure | ) |
|
Look up a patient by a procedure id ParametersReturnsPatient id
_query_to_result_arrayfunction _query_to_result_array ( | $query, | | | | $sequential | = | false | ) |
|
Internal helper function to convert SQL queries into arrays of associative arrays. Parameters$query | SQL query text | $sequential | (optional) Number sequentially instead of indexing by identifier. Defaults to false. |
ReturnsArray of associative arrays.
|