Issue with prescription logo

anonymous wrote on Saturday, July 18, 2009:

in includes\config.php it states:

//Name of prescription graphic in interface/pic/ directory without preceding slash. Can be JPEG or PNG, normally 3 inches wide
$GLOBALS[‘oer_config’][‘prescriptions’][‘logo_pic’] = “prescription_logo.png”;

There is no switch to turn it off.  However, when in the CVS it doesn’t display the logo.  The file prescription_logo.png displays “MY PRACTICE” as a visible image.

The reason I believe this doesn’t work as well is because I am using v3.0.1 and I can not get it to display in the pdf the logo nor the signature file.

There may be an issue with controllers/C_Prescription.class.php

The Rx logo displays because it’s actually hard coded into C_Prescription.class.php

Any ideas?

bo2999 wrote on Saturday, July 18, 2009:

There is no "prescription_logo.png" in the  C_Prescription.class.php

You should replace this line in the C_Prescription.class.php

$pdf->ezImage($GLOBALS[‘fileroot’] . ‘/interface/pic/Rx.png’,’’,‘50’,’’,‘center’,’’);

with this line

$pdf->ezImage($GLOBALS[‘fileroot’] . ‘/interface/pic/prescription_logo.png.png’,’’,‘50’,’’,‘center’,’’);

Or place above the other line if you want to keep the rx logo

To increase or the size of the image change ‘50’ to appropriate number like ‘100’ ofr ‘25’

bo,

cfapress wrote on Saturday, July 18, 2009:

Rather than mess with the C_Presecription class, I suggest changing the config file so that value for the logo is blank.
  $GLOBALS[‘oer_config’][‘prescriptions’][‘logo_pic’] = “”;

Or, if that doesn’t work, make yourself a wholly white PNG image. Then it just becomes invisible on the printed page.

Jason

anonymous wrote on Saturday, July 18, 2009:

Yes, I am aware that there is no "prescription_logo.png" in the C_Prescription.class.php

And yes, adding $pdf->ezImage($GLOBALS[‘fileroot’] . ‘/interface/pic/logo.png’,’’,‘50’,’’,‘left’,’’);
does work… however, that’s not how it’s suppose to work.

I don’t believe I am explaining this correctly but if you were download the latest OpenEMR and tried to edit the /includes/config.php to include a logo IT DOESN’T WORK!

Try it please… or else I am missing something.  I have tried playing with the code and couldn’t get it to work.  But if I did hard code it into the prescription class it does work that way… but that’s not how the software is intended to work.

anonymous wrote on Saturday, July 18, 2009:

cfapress,

The whole point wasn’t to get rid of the logo… but to get it to work…

The prescription logo switch isn’t referring back from the prescription class somehow.

cfapress wrote on Monday, July 20, 2009:

Hi Chris,

I just peeked into the code and found that the ability to include a Practice logo has been removed.

See the difference in the functions _print_prescription (line 443) and _print_prescription_old (line 471) in the source code:

http://openemr.cvs.sourceforge.net/viewvc/openemr/openemr/controllers/C_Prescription.class.php?revision=1.26&view=markup

I can’t see a reason why the code was changed to exclude the ability to use a logo. It would seem to me this was an accidental omission and should be corrected.

I’m at a loss here.

Could you check to see if this bug has been reported in the Tracker on SourceForge?
If it has not been reported, could you create a new bug report for it?

Thanks,
Jason

Jason