Openemr fix #5255 forms reason code (#5263)
* Fixes #5255 observation forms reason codes
Added support for reason code, reason_status, and reason_description for
the observation form as well as for the vitals_form.
Fixed the observation form to use a datetime selector instead of just a
regular date field.
Implemented a reason code widget script that allows us to implement the
code selector and hide/display of the reason container based upon the
launch button.
Refactored a lot of the javascript i the observation and vitals form
into separate javascript files to simplify debugging and to make it
easier to work with.
Added reason_code, reason_status, and reason_description to the
vital_form_details table.
Added a callback function parameter to the dialog so that you can pass a
callback that doesn't have to exist in the global document window.
* Added error log if header assets are missing.
Made it so if we attempt to include a header asset file that does not
exist in the config.yaml that it writes an error out to the log that the
includes did not match.
* Style fixes
* Added comments to fix style problems
* Bug Fixes, Code Review Changes #5255
Fixed a bug in the dialog where string callbacks were not executing.
Fixed text,attr escaping in multiple files from code reviews.
Added top.restoreSession everywhere we instantiated the code finder dialog.
Added a new smarty function assetVersionNumber that can be used to grab
the version number in the smarty template.
Added comments to the columns for vital_form_details to explain their
purpose. Added the new columns into the database.sql file for fresh
install.
* Fixing css styles
26 files changed: