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.
Merge branch 'master' of https://github.com/openemr/openemr