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.