Patient custom report features request

Not sure what is the best way to request features and report bugs. I am going to put it here but I am happy to remove it to the right place.

I suggest adding the fax to the Patient custom report the information is there but need few additional lines. I was able to do so by adding the following lines:

        if (preg_match('/[1-9]/', ($r['phone'] ?? ''))) {
            $s .= "<br />Phone: " . text($r['phone']) . "\n";
        }
       if (preg_match('/[1-9]/', ($r['fax'] ?? ''))) {
            $s .= "<br />Fax: " . text($r['fax']) . "\n";
        }

I wonder if there is a way to add credentials next to the provider’s name M.D., D.O., N.P. …etc. We have one provider and I was able to achieve this in the report by editing the code but hoping that there is a better way to do it.

I used to have error with generating a pdf file but it was fixed by adding 4 lines as described here :

When I upgraded to the OpenEMR 7.0.2 Patch 2 , I saw the lines there but the pdf generation through an error. I roled back to previous snapshot

hi @moussa , can you reproduce the error on any of the demos?

Hi @stephenwaite , I tried to generate a patient report in all of the demos links and I was not able to reproduce the error.

Later I may create and upgrade snapshot so my production VM not get effected and see if I can figure it out.

Ok, there’s a recent post of a similar error and wondering if there’s some special content in the report that’s not in the demos.