I recently upgraded to version 7.0.0(2) and found that the growth charts don’t work. The image will be generated and the patient name is on the chart but no data is listed or plotted on the chart. Has anyone else had this issue?
I’m running version 7.0.0(2) on Ubuntu 22.04.1 LTS, PHP 7.4.3, and MariaDB 10.3.37.
I don’t see any change or errors in the main log. When I look in the error.log from apache, it shows errors from the pdf creation program that indicates it doesn’t have any data passed to it. I will work on updating PHP.
for openemr 7.0.0 php → 8.0 would be a safer upgrade
OK, I will try version 8.0 and see if that helps. Thanks!
PHP 8.0 was troublesome and is why they released 8.1 so quickly.
When I click on Growth Chart (PDF) under the Vitals list I get the following error:
Fatal error : Uncaught TypeError: Unsupported operand types: string / string in /var/www/emr.cornerpediatrics.com/openemr/interface/forms/vitals/growthchart/chart.php:637 Stack trace: #0 {main} thrown in /var/www/emr.cornerpediatrics.com/openemr/interface/forms/vitals/growthchart/chart.php on line 637
If I click on Growth Chart (PDF) under Vitals History, nothing happens.
Could you upload your chart.php script please?
Thank you, that fixed the error, so that pushing the Growth Chart (PDF) or Growth Chart (HTML) brings up a chart with the patient’s name, but no data, no matter how much data is in the patient’s file. However, the error message is gone. I don’t know if it is related, but when I click the link to graph the data from the vitals section of the dashboard, it always says there is too little data to graph, no matter how much data is in the patient file.
Ok, something must have broken with a prior commit, will review and post back here.
Stephen that’s what I am also facing when I copied the code from the prior post. Looking forward to the corrected code. Thanks for your help!
hi @Jit_Chawla, the above PR now prevents the growth-chart print buttons from showing up when accessing the trend form from the dashboard. The only way to get a good print of the chart is to edit the vitals inside the encounter.