Reprinting receipts for customers to send to insurance

rodimus wrote on Monday, December 21, 2015:

Firstly, I am doing computer work for a Doctors office in the USA. Using OpenEMR 4.2.0 (3) under Ubuntu Linux. They have an issue where they need to re print receipts for customers, and they have to show the following information:

ICD (9/10) code
Code Description
Amount charge
Amount paid
Balance Due

They needed a footer added to theirs, showing the Doctors name, Tax ID and a disclaimer. I resolved this by adding it to the file:

interface/patient_file/pos_checkout.php

It now shows the disclaimer they need below the “Balance Due” line.

My question is, what would be the best way to display the codes, with the descriptions on this page? I am learning php programming, but am not up to par. Any help would be greatly appreciated, as they need to reprint a lot of receipts for customers before the end of the year. (and its December 21st now, sigh.)

Rodney

fsgl wrote on Monday, December 21, 2015:

Instead of Description the CPT & ICD codes will be needed for submission to insurance.

van2010 wrote on Monday, December 21, 2015:

I need to do the same. Please help!

fsgl wrote on Tuesday, December 22, 2015:

Because the deadline is quickly approaching, would suggest the following:

  1. Print receipt from Payment as is.
  2. Print Billing View from Browser to supply CPT & ICD codes. See attached.

There is no reason why 2 sheets of paper can’t be submitted by the patients to their insurers.

rodimus wrote on Tuesday, December 22, 2015:

Thank you fsgl, for the suggestion. I think that is a pretty smart solution at this point. I will pass that on to them while I keep tinkering with the code.

fsgl wrote on Wednesday, December 23, 2015:

Most welcome.

Had a look at my production copy to get a sense of an actual receipt.

It appears that each item in the Description column corresponds to either a CPT or ICD code. Insurers will not accept descriptions because the numeric codes are mandatory.

There may exist a template in the .php for pulling in CPT & ICD, see attached.

Try to add a Code column to the receipt just to the left of the Description column. There appears to be enough room. If that is not possible, replace the Description column with the new Code column.

I’m illiterate in PHP, otherwise I would post the code changes.

If all else fails, have the practice give both the receipt & a copy of Billing View.

rodimus wrote on Monday, December 28, 2015:

So far, I can get a line that says ‘Code’ to show up, between the date and the description, but I can’t seem to get it to put the actual data in the form. Still working on it. Anyone else working on this issue?

UPDATE: I have the checkout page working like it is supposed to, a line for ‘Codes’ is now showing up to the left of the ‘Description’ Line, and the Item Codes are there. However, when you save it, and it generates the receipt, the ‘Code’ Line, and the Codes are gone.

UPDATE 2:
Please Ignore my mutterings to myself here: I was only partly right, and the solution was much simpler than what this post would lead to believe.

There are multiple sections in pos_checkout.php that handle the different sheets, when I add the lines to show the ‘Code’ under the receipt page, the ‘Code’ Line appears, but somehow, at this point in the program, it has reassigned the value of the “$description” variable to the “$code” variable. Now whenever I add a line to display “$code” it displays the content of the variable “$description”. I am looking for the issue. If anyone has any ideas, please let me know. I will gladly post the modified file here when I get it working.

rodimus wrote on Thursday, December 31, 2015:

SOLVED:

Okay, it’s fixed.

I managed to figure it out by calming down, going back to my programming lessons of years ago and not fretting over it so badly. I also talked with a good friend (thanks Jason!) who helped me focus and not get worked up.

So, for everyone who wants, or needs to be able to show a receipt with the Code number along with the code description, here is the code I made changes to.

Please excuse my sloppy notes or poor syntax as I was still under some stress when I did it.

I hope this is helpful to everyone!

pos_checkout.php

rodimus wrote on Thursday, December 31, 2015:

Please see my last post, if you still need this function. I found the solution, and posted a link to the modified file.

Happy New Year!

Rodney

fsgl wrote on Thursday, December 31, 2015:

Hi Rodney,

Happy Birthday & a very Happy, healthy New Year!

If I may make 2 suggestions:

  1. it’s easier to follow the code changes if there are numbered lines with added sections highlighted in green & deletions highlighted in pink.
  2. get a GitHub account to donate this code back to the Project.

Thank you for this very useful contribution.

rodimus wrote on Thursday, December 31, 2015:

I actually do have a GitHub account, but I am still very new to using it and contributing back. I am glad to be able to give back to a project that I find very beneficial. Thanks for all your feedback and suggestions.

van2010 wrote on Wednesday, January 06, 2016:

Thank you for the file. This is very helpful. How can I change to make the font smaller? The print out is more than one sheet and the font is quite large.

fsgl wrote on Thursday, January 07, 2016:

To edit font size, look for lines of code with text & use different values in test copy first.