sunsetsystems wrote on Monday, July 09, 2007:
I have checked in some important changes to correct a couple of deficiencies in OpenEMR:
(1) OpenEMR was not keeping track of changes to patient insurance. So for example if you submitted a primary claim, and then the patient came in for another visit with new secondary insurance, and then the primary EOB comes back and you submit a secondary claim, it would go to the new (and incorrect) payer. This has been fixed with new logic that accepts an "effective date" for each insurance plan, and refers to the correct insurance based on that date and the encounter date. You will also notice a full list of current and previous insurances in the patient demographics summary.
(2) There was no reasonable tracking of claim history. This is now addressed with the addition of a "claims" table and a list of relevant events for claims on the Billing page. This also lays some groundwork for future addition of accounting events (payments and adjustments), with a goal of eliminating the need for SQL-Ledger.
Quite a lot of code needed changing. I have updated the following in CVS:
custom/BillingExport.csv.php
custom/export_labworks.php
custom/export_xml.php
interface/billing/billing_process.php
interface/billing/billing_report.php
interface/patient_file/deleter.php
interface/patient_file/front_payment.php
interface/patient_file/pos_checkout.php
interface/patient_file/encounter/copay.php
interface/patient_file/summary/demographics.php
interface/patient_file/summary/demographics_full.php
interface/patient_file/summary/demographics_save.php
interface/reports/insurance_allocation_report.php
interface/reports/patient_list.php
interface/reports/unique_seen_patients_report.php
library/Claim.class.php
library/billing.inc
library/billrep.inc
library/patient.inc
library/sl_eob.inc.php
library/classes/Prescription.class.php
library/classes/WSClaim.class.php
library/freeb/ClearingHouse.class.php
library/freeb/Patient.class.php
library/freeb/Procedure.class.php
library/freeb/process_bills.php
sql/2_8_2-to-2_8_3_upgrade.sql
sql/database.sql
I have done basic testing, but it’s impossible to check all cases so of course please notify me of any related problems.