Customizing Printed Fee Sheet

tmccormi wrote on Tuesday, December 14, 2010:

Questions regarding this process:

1)  Are there any examples of what exactly the file:  custom/fee_sheet_codes.php should or could contain?
2)  Is there a good way to modify the color and high light coding so that it prints well, most browsers have ‘background printing’ turned off with good reason, so the shading that shows on screen does not print with this form.
3) The really very cool magic for sizing and spacing the lines is really fragile when you start getting close to a full page but don’t want to go over.  Anyone have any good ideas how to make this easier to understand and tweak.
4) Any good ideas how to wrap this is a 'print fee sheets for appts between dates"?

Most of my customer want minor changes to the this based on things like highlighting the most used codes, and changes the footer content related to the patient.  I’ve done that work, but it seem likely that it could be made more generic and flexible.

4) I have several customers that want minor tweaks to this

The code: printed_fee_sheet.php has these options for customization (apparently) as well as some ‘tags’ for sub header breaks

// This value is initially a maximum, and will be recomputed to
// distribute lines evenly among the pages.
$lines_per_page = 55;
$lines_in_stats = 8;
$header_height = 44; // height of page headers in points
// This tells us if patient/encounter data is to be filled in.
//
$form_fill = empty($_GET['fill']) ? 0 : 1;
// This file is optional.  You can create it to customize how the printed
// fee sheet looks, otherwise you'll get a mirror of your actual fee sheet.
//
if (file_exists("../../custom/fee_sheet_codes.php"))
  include_once ("../../custom/fee_sheet_codes.php");
// TBD: Move these to globals.php, or make them user-specific.
$fontsize = 7;
$page_height = 700;
$padding = 0;

-Tony

sunsetsystems wrote on Tuesday, December 14, 2010:

Tony, fee_sheet_codes.php would contain the $SBCODES table as described by the comments in printed_fee_sheet.php.  If this table is not so defined, then the logic that follows those comments will create one.

I’d have to do some analysis to comment on your other questions.  There is definitely room to make this more polished.

Rod
www.sunsetsystems.com