Bug fix to correctly show patient form/note authors
fix for escaping in the code search popup
sql injection fix for chart_location_activity
convert to new security model for chart_location_activity
XSS for chart_location_activity
Fix for patient finder with PHP < 5.2.0.
Bug fix to show correct name of encounter author on custom report.

 -Shows provider rather than any user that first opens the encounter.
incremented patch version 8
eRx captured and displayed in AMC report,

Some changes by brady:
 -Change token from 'prescription' to 'prescription_erx'
 -Added some comments

Signed-off-by: vinish <vinish@zhservices.com>
Fix for incorrect syntax in disc_fragment.php
Address-PHP Notice:  Use of undefined constant event - assumed \'event\' in /var/www/openemr/interface/patient_file/summary/disc_fragment.php on line 62, referer: http://emr100/openemr/interface/patient_file/summary/demographics.php
 The new changes helps serve two important aspects
1)The approved forms of the patients can be viewed by the provider in portal activity.
  From here the provider can move the category of the forms.
2)Now the patient can upload image files and pdfs through patient portal.The approved files will be listed in
  the new category movement option.

Changed the code as mentioned in Git Hub comments.

Signed-off-by: Teny <teny@zhservices.com>

Code modified for 4.1.1 patch -brady
Verfiy form_ss exists before trying to use it. (allows hiding SS field).
Also only try to validate self/subscriber SS# relationships if both fields
are valid SSN.
Allow override of SS# validation like name comparison.
Added xls to htmlspecialchars.  (addslashes version of xl for use with
javascript literals).
 This commit helps in the following

1)The javascript error in openemr new patient validation has been corrected.
  The fields marked as 'Required' in layout will be correctly validated both in openemr and patient portal.
2)Now the option to put the provider Id in 'Portal' tab (In Administration -> Globals) has been provided.It will also be displayed during  'Create Offsite Portal Credentials' and 'Reset Offsite Portal Credentials'
Changed the code as mentioned in Git Hub comments.

Signed-off-by: Teny <teny@zhservices.com>

Additional minor change in a English constant by bradymiller.
incremented patch version 9
import code module bug fix specifically for IE browsers
Focus the search term on load
Lab results in patient portal Medical Records tab.

Signed-off-by: Ajil <ajilpm@zhservices.com>
Fix for the copay issue in appointment encounter report.

Signed-off-by: Ajil <ajilpm@zhservices.com>
Reminders email bug fix - contributed by arnabnaha
The Second Reminders email bug fix - contributed by arnabnaha