Prescription printing

rayaz wrote on Sunday, September 14, 2008:

Hi all, I would like to be able to print prescription notes in my language urdu. I can type in urdu but when I save the note and it opens up in pdf viewer all the urdu fonts are printed in strange characters, any way I can get the pdf output to display urdu fonts correctly? Thanks.

cfapress wrote on Monday, September 15, 2008:

Do you have other PDF files with Urdu fonts which print correctly?
Is it just the OpenEMR PDF files that cause trouble?

jason

rayaz wrote on Monday, September 15, 2008:

Thanks for the reply. Yes only pdf files from openemr have this problem. If I save an urdu file in open office as pdf it displays correctly.

cfapress wrote on Wednesday, September 17, 2008:

Riaz,

I haven’t looked at the PDF generation code in OpenEMR myself so I can only speculate here but it might have something to do with the library used in OpenEMR for generating PDF files. Perhaps it only supports English?

I’m hoping another developer can give you a better answer.

Jason

markleeds wrote on Wednesday, September 17, 2008:

I agree that it is probably a limitation of the PDF library.  Rod mentioned in another post somewhere that it is old.  I have found that the PDFs are good for printing reports where each record must start on a new page.  This includes printing HCFA 1500 forms as in Rod’s new module.  For me, it also includes a custom progress note generator that I am using which allows me to print multiple encounters, each of which must start on a new page.

If printing multiple records is not a requirement, as in prescription generating, HTML with CSS formatting works just as well.  I use a custom prescription generator that works this way.

This might be the answer to Riaz’s problem, to have a prescription generator that uses HTML/CSS so that all character sets may be supported.

Mark

rayaz wrote on Thursday, September 18, 2008:

How could I have a prescription generator that uses HTML/CSS? Or do I have to wait for an update?

markleeds wrote on Friday, September 19, 2008:

If you are able to install and use plug-in forms, the one that I use for prescriptions can be found at the following location:

http://openemr.cvs.sourceforge.net/*checkout*/openemr/openemr/interface/forms/CAMOS/CAMOS.tar.gz?revision=1.11

Move the downloaded file to the /openemr/interface/forms directory.
CD to that directory.
rm -rf CAMOS to get rid of the old version.
tar -xvzf CAMOS.tar.gz to extract the files into a new CAMOS directory.
Go to the admin section of OpenEMR to register, install DB, activate…
Try it out and ask questions if you have any problems.

And for best results, use Firefox 2.x.  I don’t know about 3.0, I have not tested it, but it might be ok.