rpl121 wrote on Saturday, July 12, 2008:
I have installed a recent 2.8.4-dev version of OpenEMR and am working on the X12 electronic claim generation features. Rod Roark’s claim generation process worked out of the box with FreeClaims clearing house. Not only did I get confirmation of the claims, but also actual paymen.
Next I tweaked three of the files in order to make claim generation work properly for claims uploaded directly to Highmark Medicare Services. That required some minor modifications to these files:
/var/www/openemr/interface/billing/billing_process.php
/var/www/openemr/library/Class.claim.php
/var/www/openemr/library/gen_x12_837.inc.php
The modifications included fixing the format for the “control code” so it had the same number of digits in both locations, so I didn’t get an error for failure to match. Also, I had to make sure all the right ID types got into the right place. There is a “source” ID for sending the claims and a “sender” ID for the practice etc. Finally, I got this to work and have actually received payment from Medicare for real services.
Next, I did the same thing for Highmark Blue Shield. Similarly, this required getting all the ID types into the right place. In addition, an ID qualifier of 33 had to replace XX for the carrier ID code. Finally, I got the Blue Shield file to go through directly to Blue Shield with generation of an actual payment.
Wherever possible I extracted data from the OpenEMR data files. (I admit that as a matter of expedience I had to hard code my personal ID into one of the files because I wanted to get results and haven’t yet figured out all the ins and outs of the logic of the three files.)
Here’s my question for those with more familiarity with the x12 billing process:
How can I have three separate versions of the x12 generation files available so that I can, by choosing a different menu item, generate clearinghouse, Medicare or Blue Shield claims?
I was thinking of renaming the three files with slightly different names for each of the three choices, and makeing it so the file created by any one of the combinations creates an x12 with a name giving a clue as to whether it is clearinghouse, Medicare or Blue Shield claim. Then, I was thinking that the "Billing" tab under "Admin" could be expanded to three tabs: "Bill Clearinghouse," "Bill Medicare" and "Bill Blue Shield."
Can anybody suggest how to go about this, or perhaps suggest a better way entirely?