Open htuck opened 5 years ago
I recommend removing this report as it has never worked well, when it worked at all. New versions of this kind of report are in Reports->Clients->Clinical Statistics: * More like those for the use cases in this report are needed.
We cannot search on this report.
This report is broken and needs to be removed from the repo. Don't bother with it.
Thank you. We will remove them from our documentation.
C:\AlphaFiles\bidenis\REPOS\LibreEHR\interface\reports\clinical_reports.php:
14 // Added five new reports as per EHR certification requirements for Patient Lists - LibreEHR Support LLC, 2010
15
16: require_once "reports_controllers/ClinicalController.php";
17 ?>
18
C:\AlphaFiles\bidenis\REPOS\LibreEHR\interface\reports\clinical_stats_by_demographics_report.php: 26 require_once("$srcdir/formatting.inc.php"); 27 require_once("$srcdir/vendor/libreehr/Framework/DataTable/DataTable.php"); 28: require_once "reports_controllers/ClinicalController.php"; 29 require_once($GLOBALS['srcdir'].'/headers.inc.php'); 30 $library_array = array('datatables');
C:\AlphaFiles\bidenis\REPOS\LibreEHR\interface\reports\lab_stats_by_demographics_report.php: 26 require_once("$srcdir/formatting.inc.php"); 27 require_once("$srcdir/vendor/libreehr/Framework/DataTable/DataTable.php"); 28: require_once "reports_controllers/ClinicalController.php"; 29 require_once($GLOBALS['srcdir'].'/headers.inc.php');
So, several reports use the controller that provides this error. Should all be pulled, and all the bits hooked to it, or just this report itself and associated controller functions?
Hi @muarachmann i noticed the PR i Made for patient clinic filter ( PR #1464) takes care of these errors. Can u kindly check
I have approved that PR. Hey, Mua!
using https://ehr.librehealth.io/interface/main/tabs/main.php?url=TAB_ONE_DEFAULT Reports: Clients/ Clinical
Report fails w/ sql error when some of the sort options are selected. Can run the report with no dates selected; it does the same behavior. REgards- HTuck
In the Sort By options:
Error: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '? AND li.date < DATE_ADD(?,INTERVAL 1 DAY) AND DATE(li.date) <= ? ORDER BY list' at line 11
/opt/ehr/interface/reports/reports_controllers/ClinicalController.php at 353:sqlStatement /opt/ehr/interface/reports/clinical_reports.php at 349:prepareResults()
Error: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '? AND li.date < DATE_ADD(?,INTERVAL 1 DAY) AND DATE(li.date) <= ? ORDER BY list' at line 11
Error: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '? AND r.date_modified < DATE_ADD(?, INTERVAL 1 DAY) AND DATE(r.date_modified) <=' at line 11 ...
Error: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '? AND pr.date < DATE_ADD(?,INTERVAL 1 DAY) AND DATE(pr.date) <= ? AND (pr.result' at line 19