Security fix - html escape sql error messages
Mechanism to search patient forms/notes.

To search forms/notes, go to Patient Summary->Reports->Click the Encounter/notes
you want to search->Then can search them (even can only search specific note types).

Signed-off-by: vinish <vinish@zhservices.com>
(comment also added by bradymiller in library/js/SearchHighlight.js
 to make it explicit that we consider that script to be public domain)
Deleter fix for physical exam form. Thanks to DataGroup for identifying the problem and suggesting a fix.
Fixed sql error when adding provider events.
Sql-injection functions and techniques for escaping(take 3):
1. When variables within limits
2. When variable for the sort order
3. When variable for an identifier
(all of these are things that are exceptions to standard binding/escaping)
Removed the php.ini memory limit override
Fixed multiple bugs in linking patient notes to documents.
Added quick access to related document(s) when viewing a message that has any.
Moved diagnoses from orders to individual procedures.
Modified patient report to include complete lab results.
Improvements in problem lists for MU2.

1) Added a new field "modifydate" in table "lists" which
   will be updated each time the medication is updated.
2) Added new field "ct_problem" in the table "code_types"
   for setting the code types to be displayed while
   adding a "Medical Problem".
3) Made modifications in Add/Edit issue interface to list
   the code types set as "ct_problem".

Signed-off-by: vinish <vinish@zhservices.com>
Integrating the problem list improvements with the recent fee sheet improvements, take 3.
incremented version database for previous commit
Additional Sql-injection functions and techniques for escaping;

 1. Improved/clarified the functions in library/formdata.inc.php
 2. Added mechanism for whitelisting openemr sql table names.
 3. Added mechanism for whitelisting openemr sql column names.
 4. Incorporated it into the messages module
 5. Incorporated into dictation form
 6. Incorporated into work/school form/note
1) Fixed issue related to "Approve" in "list of approvals" >> "view"
2) Query optimization of "Patient uploaded files" listing in "list of approvals"

Signed-off-by: Teny <teny@zhservices.com>
Fixed some weirdness with assigning a message recipient, and allowing a message to be closed with a new note appended and no recipient.
Added procedure order manifest report for orders that need review or going out on paper.
Added transmit timestamp to orders and logic to set and check it.
Added option to omit circumferences in the Vitals form.
Added feature to associate patient notes (messages) with procedure orders and their results.