Changes to the employer tab

teryhill wrote on Wednesday, March 11, 2015:

Noticed while working on the demographics page that when the global omit_employers was checked the employers tab was left in demographics with no data on it. Added this to allow the tab to
go away also.

bradymiller wrote on Thursday, March 12, 2015:

Hi,
Committed this fix to the codebase. Thanks for the contribution!
-brady
OpenEMR

Hi guys,

it seems the >omit employers checkbox messes up the other tabs in demographics. When it’s checked, the tabs for >Stats and >Misc are only correct in the EDIT mode.
In the normal view
->Stats is completely empty,
the >Stats fields can be found under >Misc,
the >Misc fields move to >Custodian
and the >Custodian fields are gone.
I can replicate this in the official demo (OpenEMR 5.1 (7)), do maybe there’s a minor error in the code?

Thanks for looking into this!

@brady.miller @sjpadgett
Just to confirm I was able to reproduce this in the current version.

With “omit employers” checked in globals, the stats tab under demographics in the patient Dashboard is completely blanked out. This also seems to push Misc to the Guardian tab and the Guardian info is just not displayed.

@madmax
The issue specified still exists in the current version of OpenEMR and it can be resolved by changing the following file.
File : library/options.inc.php

Line:3067(approx)

Function:display_layout_tabs_data

Current line: if ($grparr[$this_group][’ grp_columns '] === ‘Employer’ && $GLOBALS[‘omit_employers’]) {

New line : if ($grparr[$this_group][’ grp_title '] === ‘Employer’ && $GLOBALS[‘omit_employers’]) {

Please check and let us know if the issue still exists.

Thanks
ViSolve-120

1 Like