Fix to remove obsolete procedure_order.diagnoses.
Migrate the Clickoption and Issue Type settings into the database.

Initial code was signed-off-by: Teny <teny@zhservices.com>
There has been extensive modification and integration work by bradymiller.
Added active toggle to the Issue Type settings and modularized pertinent code a bit more
bug fix for migration of clickoptions during upgrade
Unquoted Constant, Undefined Variables, Index, Initialization - PHP Notices fixed

All from:
referer: http://openemr.example.com/interface/main/left_nav.php

Undefined index: mode in /var/www/openemr/interface/billing/billing_report.php on line 28
Undefined index: mode in /var/www/openemr/interface/billing/billing_report.php on line 54
Undefined index: authorized in /var/www/openemr/interface/billing/billing_report.php on line 71
Use of undefined constant html_header_show - assumed 'html_header_show' in /var/www/openemr/interface/billing/billing_report.php on line 104
Undefined variable: all in /var/www/openemr/library/billrep.inc on line 116
Undefined variable: divnos in /var/www/openemr/interface/billing/billing_report.php on line 1110
Missing Parenthesis fixed
Some more PHP Notice Fixes

referer: http://openemr.example.com/interface/main/left_nav.php
in /var/www/openemr/interface/billing/new_payment.php on line :
Fixes:
Undefined variable: payment_id in /var/www/openemr/interface/billing/new_payment.php on line 122
Undefined variable: hidden_patient_code in /var/www/openemr/interface/billing/new_payment.php on line 405
Undefined index: payment_id in /var/www/openemr/interface/billing/new_payment.php on line 122
Undefined index: default_search_patient in /var/www/openemr/interface/billing/new_payment.php on line 407
Undefined index: mode in /var/www/openemr/interface/billing/new_payment.php on line 409
Removed comment as suggested by Brady

https://github.com/apmuthu/openemr/commit/0120ccd1cf62b360c5d88c30d69c74715ca22de6#commitcomment-3101816
Update shared.make_timestamp.php
Another fix to upgrade clickoptions in windows
Issue Type list gui improvements
Improvements in the translation table building script, take 2.
Additional mods to previous commit (still discussing UTF8 enforcing)
Immunization_information_(MU2) changes, take 5.

 -Change Date Administered to Date/Time Administered
 -Add an Amount Administered field
 -Add an Immunization Expiration Date field
 -Add a Route field
 -Add a Administration Site field
 -Add a erroneously added field/mechanism

Some additional integration work by bradymiller.
some more integration work for previous commit
Document module improvements, take 3.

 -Can now store more than one level of directory structure within the documents directory.
  (this information is stored in the new path_depth field in the documents sql table entry)
 -Incorporated into Rod's pdf report creation in custom report and in the Document module
  CCD/CCR document viewer.
 -Also will use/create random directories (0-10000) when importing a document that is not
  mapped to a patient to avoid all the documents being placed into one directory.
 -Also created some document functions (such as addNewDocument()) in library/documents.php
  to ease importing new documents in API etc.
 -Incorporated addNewDocument() function in phimail direct module.

 NOTE that there is a previous bug noted where documents within the CouchDB server will
 not work in the Document module CCD/CCR viewer. I did not address this bug on this commit.
Allow switch to simpler age display format for patients above certain age
Do not include the empty demographic fields in the reports when they are empty.

Problem Summary:
Patient report generation was printing all the demographics fields even if they were empty.

Description:
There are like around 50 fields in demographics and the patient report prints all the 50 fields with empty labels even if we fill just 3 or 4.

Fix:
I am filtering the empty fields not to be included for printing in the reports.

--Contributed by Athiyaman Muthukumarasamy.
Proposed fix for clikoptions in upgrade for windows
Modularize frontPayment() function in front_payment.php script to allow use with api.