An Issue about missing Issues

ajperezcrespo wrote on Friday, January 27, 2012:

Hi,
  Some issues are always present on the Patient Dashboard no matter if it has info or not (Medical Problems, Allergies, Medications, and Prescriptions).  Others show up ONLY if they have info (ie Surgery).  Should this not be consistent?  Like no info no show for all? or is there a reason for this, Maybe MU.  if so then doesn’t the missing/not missing issue stand out more?

Thanks
Alfonso

bradymiller wrote on Monday, January 30, 2012:

Hi,

This is hard-coded here:
interface/patient_file/summary/stats.php

On line 122:
if (sqlNumRows($pres) > 0 || $ix == 0 || $key == “allergy” || $key == “medication”) {

And since $ix is 0 only on the first Issue, which brings in medical_problems.

The issues come from here:
library/lists.inc

I think the $ix solution above is very confusing (probably placed for football_injury to only show up in the sports team stuff). My suggestion is that we remove the $ix, and then add another variable to the entries in lists.inc to state if want to show the entry in the patient summary screen. This would be really easy to add and would not break anything (and then allow easy customization of which issue categories to show up in the patient sumamry screen even when empty).

-brady

bradymiller wrote on Tuesday, January 31, 2012:

Hi,

Here’s a quick code change to make this feature configurable (makes all issue categories treated fairly) from the library/lists.inc file:
http://github.com/bradymiller/openemr/commits/issues-improve_2

Will plan to commit this to sourceforge unless any issues brought up.

-brady

bradymiller wrote on Wednesday, February 01, 2012:

Hi,
Just committed this to sourceforge.
-brady