Bug fix to show correct name of encounter author on custom report.

 -Shows provider rather than any user that first opens the encounter.
 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>
Support new security model in the formSubmit function
Implement new security model in LBF forms.
Support new security model in the formSubmit function - bug fix
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>
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).
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
 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.
Visolve: Clear Active Patient Changes
MU2 certification support (smoking and clinical terms), final revision.

 -Support for MU2 requirements for smoking status
 -Support for broad SNOMED clinical terms
   -A new code type was added to support this
 -Support for Clinical Term Code(s) mapping in Administration->Lists
 -Added ability to import the SNOMED US extension pack
   -The size of the code columns in codes table was increased to
    support these longer SNOMED codes.
Removed some erroneous copyright headers.

 -discussed on this forum thread:
  http://sourceforge.net/projects/openemr/forums/forum/202506/topic/6405748
Fixed some GPL script headers that contained text that was not compliant
with GPL.

 -Permission was granted from John Williams at Garden State Health Systems
  to make these changes.
New Selection criteria placed in Appointment report
Added 3 forms (Aftercare Plan, Transfer Summary, Treatment Plan)
minor bug fixes for previous commit
put clear active patient in table cell of it's own
Minor typo fix for button table cells in main_title
Final bug fix

Formdata function removed from save.php
couple minor bug fixes for previous commit