Editing the "Edit Issues" form

rdh61 wrote on Friday, August 20, 2010:

Hi,

I wish to add a text area field called “Additional Information” to the “Edit Issues” form. Can this be done and if so, could somebody please post instructions?

Many thanks.

visolveemr wrote on Friday, August 20, 2010:

Hi,

Adding a text area field to “Edit issues” screen doesn’t require more effort. Please add a field to the table “lists” so that the information you are entering in the “Additional Information” field will get stored. Then, customize the file “Openemr/interface/patient_file/summary/add_edit_issue.php”.
Define the field and provide the field name in ‘update’ and ‘insert’ queries.

Please let us know for any further help.

Thanks,
Vicareplus Team,
services@vicareplus.com

rdh61 wrote on Thursday, August 26, 2010:

Thanks. I am not familiar with these scripts. However, looking at the add_edit_issue.php file, I realised there is already the field I want included in the script. It is called “Comments” but by default it is not displayed in the form. By trial and error I found that by changing the following line:

document.getElementById(‘row_comments’      ).style.display = (f.form_comments.value  ) ? ‘’ : revdisp;

to:

document.getElementById(‘row_comments’      ).style.display = (f.form_comments.value  ) ? ‘’ : comdisp;

the field is displayed.