From ac4fe6567c3e97d21487bd4918c96617dc2d39ef Mon Sep 17 00:00:00 2001 From: sunsetsystems Date: Mon, 2 May 2005 06:53:57 +0000 Subject: [PATCH] clickoptions feature from mark leeds --- custom/clickoptions.txt | 34 ++++++++++++++++++++++ interface/patient_file/summary/allergies.php | 18 ++++++++++-- interface/patient_file/summary/clickoptions1.php | 24 +++++++++++++++ interface/patient_file/summary/clickoptions2.php | 13 +++++++++ interface/patient_file/summary/immunizations.php | 19 ++++++++++-- .../patient_file/summary/medical_problems.php | 20 ++++++++++--- interface/patient_file/summary/medications.php | 24 +++++++++------ interface/patient_file/summary/stats_full.php | 10 +------ interface/patient_file/summary/surgeries.php | 19 ++++++++++-- 9 files changed, 152 insertions(+), 29 deletions(-) create mode 100644 custom/clickoptions.txt create mode 100644 interface/patient_file/summary/clickoptions1.php create mode 100644 interface/patient_file/summary/clickoptions2.php diff --git a/custom/clickoptions.txt b/custom/clickoptions.txt new file mode 100644 index 000000000..382bd344b --- /dev/null +++ b/custom/clickoptions.txt @@ -0,0 +1,34 @@ +# CLICKOPTIONS by Mark Leeds +# This is a new addition to OpenEMR written in April of 2005. +# The purpose is to minimize typing in places where a select box or drop down menu +# would be helpful. For now it is implemented in the medical history section that +# is reached if you are looking at a patient chart and click 'Summary' at the top +# of the screen and then click 'more' next to 'Medical Problems' below. You will see +# five sets of boxes where you can edit medical problems, medications, allergies, surgeries, +# and immunizations. If this file that you are reading now is set up properly, you will see +# below each category heading a select box that allows you to click and select from a few +# text options that will immediately appear in the box below (javascript must be active of course). +# The format for this file is that any line starting with a '#' is a comment. +# Categories and choices for the select boxes are entered with a '::' separating them. see +# below for example. You may add more choices, change them or do away with them alltogether. +# If a category has no choices assigned in this file, the select box will not appear. +# The files that had to be altered for this feature to work are in openemr/interface/patient_file/summary. +# Three statements were added to 5 files marked with a clickoptions comment and two files were added +# to the directory, 'clickoptions1.php' and 'clickoptions2.php'. +medical_problem::HTN +medical_problem::asthma +medical_problem::diabetes +medical_problem::hyperlipidemia +medication::Norvasc +medication::Lipitor +medication::Metformin +allergy::penicillin +allergy::sulfa +allergy::iodine +allergy::codeine +surgery::tonsillectomy +surgery::appendectomy +surgery::cholecystectomy +immunizations::MMR +immunizations::tetanus +immunizations::varicella diff --git a/interface/patient_file/summary/allergies.php b/interface/patient_file/summary/allergies.php index 36a3efc46..4336ca718 100644 --- a/interface/patient_file/summary/allergies.php +++ b/interface/patient_file/summary/allergies.php @@ -7,6 +7,8 @@ if (!isset($active)) { $active="all"; } +//CLICKOPTIONS by Mark Leeds 2005, see clickoptions.txt in openemr/custom/ directory for more info +$clickoptions_category = "allergy"; //this code handles changing the state of activity tags when the user updates them through the interface if (isset($mode)) { @@ -39,6 +41,12 @@ if ($mode == "update") { + + + topmargin=0 rightmargin=0 leftmargin=2 bottommargin=0 marginwidth=2 marginheight=0> @@ -55,8 +63,14 @@ if ($mode == "update") {
-
- + + + +
+
[Add New Allergy]
diff --git a/interface/patient_file/summary/clickoptions1.php b/interface/patient_file/summary/clickoptions1.php new file mode 100644 index 000000000..cad80b919 --- /dev/null +++ b/interface/patient_file/summary/clickoptions1.php @@ -0,0 +1,24 @@ +"; +echo "function set_text(){document.new_note.title.value = document.new_note.myscroll.options[document.new_note.myscroll.selectedIndex].text;}"; +echo ""; +?> diff --git a/interface/patient_file/summary/clickoptions2.php b/interface/patient_file/summary/clickoptions2.php new file mode 100644 index 000000000..9df104c5d --- /dev/null +++ b/interface/patient_file/summary/clickoptions2.php @@ -0,0 +1,13 @@ + 0) +{ + echo "
"; +} +?> diff --git a/interface/patient_file/summary/immunizations.php b/interface/patient_file/summary/immunizations.php index e3400444d..38c11dcb7 100644 --- a/interface/patient_file/summary/immunizations.php +++ b/interface/patient_file/summary/immunizations.php @@ -7,6 +7,9 @@ if (!isset($active)) { $active="all"; } +//CLICKOPTIONS by Mark Leeds 2005, see clickoptions.txt in openemr/custom/ directory for more info +$clickoptions_category = "immunization"; + //this code handles changing the state of activity tags when the user updates them through the interface if (isset($mode)) { @@ -39,6 +42,12 @@ if ($mode == "update") { + + + topmargin=0 rightmargin=0 leftmargin=2 bottommargin=0 marginwidth=2 marginheight=0> @@ -55,8 +64,14 @@ if ($mode == "update") {
-
- + + + +
+
[Add New Immunization]
diff --git a/interface/patient_file/summary/medical_problems.php b/interface/patient_file/summary/medical_problems.php index 41986661c..a201d6735 100644 --- a/interface/patient_file/summary/medical_problems.php +++ b/interface/patient_file/summary/medical_problems.php @@ -6,6 +6,8 @@ if (!isset($active)) { $active="all"; } +//CLICKOPTIONS by Mark Leeds 2005, see clickoptions.txt in openemr/custom/ directory for more info +$clickoptions_category = "medical_problem"; //this code handles changing the state of activity tags when the user updates them through the interface if (isset($mode)) { @@ -19,7 +21,7 @@ if ($mode == "update") { } } } elseif ($mode == "new") { - addList($pid,"problem",$_POST["title"],$_POST["comments"],1); + addList($pid,"medical_problem",$_POST["title"],$_POST["comments"],1); } } @@ -30,6 +32,11 @@ if ($mode == "update") { + + topmargin=0 rightmargin=0 leftmargin=2 bottommargin=0 marginwidth=2 marginheight=0> @@ -44,9 +51,14 @@ if ($mode == "update") {
-
- + + + +
+
[Add New Medical Problem] diff --git a/interface/patient_file/summary/medications.php b/interface/patient_file/summary/medications.php index fa86e1748..2f80b172a 100644 --- a/interface/patient_file/summary/medications.php +++ b/interface/patient_file/summary/medications.php @@ -7,6 +7,8 @@ if (!isset($active)) { $active="all"; } +//CLICKOPTIONS by Mark Leeds 2005, see clickoptions.txt in openemr/custom/ directory for more info +$clickoptions_category = "medication"; //this code handles changing the state of activity tags when the user updates them through the interface if (isset($mode)) { @@ -24,13 +26,6 @@ if ($mode == "update") { } } - - - - - - - ?> @@ -39,6 +34,11 @@ if ($mode == "update") { + + topmargin=0 rightmargin=0 leftmargin=2 bottommargin=0 marginwidth=2 marginheight=0> @@ -53,8 +53,14 @@ if ($mode == "update") { -
- + + + +
+
[Add New Medication]
diff --git a/interface/patient_file/summary/stats_full.php b/interface/patient_file/summary/stats_full.php index f08474777..c9e492872 100644 --- a/interface/patient_file/summary/stats_full.php +++ b/interface/patient_file/summary/stats_full.php @@ -11,24 +11,16 @@ OpenEMR - - + - - - - - - - <body bgcolor="#FFFFFF"> </body> diff --git a/interface/patient_file/summary/surgeries.php b/interface/patient_file/summary/surgeries.php index dbe9f1fe3..109859c0f 100644 --- a/interface/patient_file/summary/surgeries.php +++ b/interface/patient_file/summary/surgeries.php @@ -6,6 +6,9 @@ if (!isset($active)) { $active="all"; } +//CLICKOPTIONS by Mark Leeds 2005, see clickoptions.txt in openemr/custom/ directory for more info +$clickoptions_category = "surgery"; + //this code handles changing the state of activity tags when the user updates them through the interface if (isset($mode)) { if ($mode == "update") { @@ -29,6 +32,11 @@ if ($mode == "update") { + + topmargin=0 rightmargin=0 leftmargin=2 bottommargin=0 marginwidth=2 marginheight=0> @@ -45,9 +53,14 @@ if ($mode == "update") {
-
- + + + +
+
[Add New Surgery]
-- 2.11.4.GIT