Possible to shorten "Unassigned" text string?

wizard353 wrote on Monday, July 07, 2014:

I’m a new user to OpenEMR, but jumping in with both feet and enjoying myself in the process. As an ophthalmologist, I’m using fsgl’s LBV forms as a starting point.

I’m even more averse to typing than she is, so I’m making heavy use of listboxes. I’ve determined that the horizontal screen space devoted to a LBV listbox is determined dynamically by the length of the longest string contained in the listbox.

For many of the items I would used in my forms, the string value delivered by the listbox is significantly shorter than the string “Unassigned”, so the list box takes up more screen space than it might otherwise require. There are places where I could use 7 or 8 fields on a line to good effect.

Is there a single place or variable that I could change to make “Unassigned” in a LBV list box show up as “U/A”?

Thanks,

Dave

visolveemr wrote on Monday, July 07, 2014:

Hello Dave

Currently in OpenEMR, there is no interface to do this. Code change is needed to accomplish the task.

To change the “Unassigned” value to “U/A” only in the LBV forms, add the following under the line 288, in the file /interface/forms/LBF/new.php.

$frow['empty_title']="U/A";

else, if you need this change to be visible all over OpenEMR update the line 138 in the file /library/options.inc as mentioned below

$empty_title = "U/A";

Hope this helps.

Thanks
OpenEMR Customization/Support Team,
ViSolve Inc
services@visolve.com
Demo’s @ ViSolve Demo Library

wizard353 wrote on Monday, July 07, 2014:

I found the entry at file:

O:\xampp\htdocs\openemr\library\options.inc.php

Made the change, and it works exactly as I wanted.

Thank you very much.

Dave

blankev wrote on Monday, July 07, 2014:

blankev wrote on Monday, July 07, 2014:

Another option could be done by, goto: Administration => Other=> Language

Search for Unassigned and change into: U/A

I did make the change into weekly Demo:

http://demo.open-emr.org:2103

The search for Unassigned did not show. Una(empty) did show up some extra definitions, but also Unassigned. It is changed into U/A till weekly Demo is reset.

blankev wrote on Monday, July 07, 2014:

OK this my above is too late, 3 hours. Good to read you solved the problem.

blankev wrote on Monday, July 07, 2014:

For both options it could be necessary to make the change again after you did a reinstall or a major update.

wizard353 wrote on Saturday, July 12, 2014:

Pieter,

I’m aware that I will have to make the change with each upgrade, unless the string can be stored among the Global settings. I’m making a file of customizations that will have to be redone with each upgrade.

Dave