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?
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).