ideaman911 wrote on Friday, February 20, 2009:
I have been unable to get the "referral" form to work properly to fill with the facility info from the created user/facility of the referree, even as the referree does post properly. However my clinician feels the Pt Report format, especially if the practice_logo.gif file is a properly sized header with all the contact info, phone/fax, and any logo you use, as a single graphics file, that it is a better form to use for referrals.
If printing the facility address and phone is redundant because you have that all in the …/custom/practice_logo.gif then you can add the lines to make the following from near line 68 in …/patient_file/report/custom_report.php which will again print the facility info if you remove the gif file:
<?php if (!file_exists($practice_logo)) { ?>
<h2><?php echo $facility[‘name’] ?></h2>
<?php echo $facility[‘street’] ?><br>
<?php echo $facility[‘city’] ?>, <?php echo $facility[‘state’] ?> <?php echo $facility[‘postal_code’] ?><br clear=‘all’>
<?php echo $facility[‘phone’] ?><br>
<?php } ?>
Also, some consideration should be made to putting all GIF files which are headers or customizable (such as logo-sky.gif for the login screen) into the …/openemr/custom/ folder, and changing their references within the various PHP files, though that has not been done here. Use of these headers makes for professional looking documents. Also a note: if the font settings in your browser are not set to allow the web page to control them, some of the printing generated from within OpenEMR will be bad. In any case, you may see the browser view of the "printable" page with text wrap around your GIF image in the browser window, but look at the print preview to be certain; it can be very different. And things like print margins and shring to fit matter as well.
Joe Holzer