From 625096bc86b0d39e53ec977792d6bde326213e4b Mon Sep 17 00:00:00 2001 From: tekknogenius Date: Sun, 20 Mar 2005 04:58:36 +0000 Subject: [PATCH] added Problem List section to patitent's summary page --- interface/patient_file/summary/problems.php | 153 ++++++++++++++++++++++++++ interface/patient_file/summary/stats.php | 11 ++ interface/patient_file/summary/stats_full.php | 5 +- 3 files changed, 167 insertions(+), 2 deletions(-) create mode 100644 interface/patient_file/summary/problems.php diff --git a/interface/patient_file/summary/problems.php b/interface/patient_file/summary/problems.php new file mode 100644 index 000000000..a57222ffa --- /dev/null +++ b/interface/patient_file/summary/problems.php @@ -0,0 +1,153 @@ + $val) { + if ($val == "true" || $val == "false") { + $id = str_replace("act","",$var); + if ($val == "true") {reappearList ($id);}elseif($val=="false"){disappearList($id);}; + //print "$id: $val > $act_state
\n"; + + } + } +} elseif ($mode == "new") { + addList($pid,"problem",$_POST["title"],$_POST["comments"],1); +} +} + + + + + + + + +?> + + + + + + + + + topmargin=0 rightmargin=0 leftmargin=2 bottommargin=0 marginwidth=2 marginheight=0> + + + + + + +
+  + + +Problems +
+ +
+ + +
+ +
+[Add New Problem] +
+ + +
+ + + + + + +View: +>[All] +>[Only Active] +>[Only Inactive] + +
+[Change Activity] +

+ + +" . $iter{"title"} . "\n"; + + + + if ($iter{"activity"}) { + $checked = "checked"; + } else { + $checked = ""; + } + print ""; + print ""; + print "".$iter{"title"} . "(".date("n/j/Y",strtotime($iter{"date"})).")
"; + print "" . $iter{"comments"} . "
\n"; + + + + } +} + +?> +
+ + + + +
+[Change Activity] + + + + + + + + + + + +
+ + + + + + + + + + + + +
+ + + + diff --git a/interface/patient_file/summary/stats.php b/interface/patient_file/summary/stats.php index a4e2034e8..ff52b1d2a 100644 --- a/interface/patient_file/summary/stats.php +++ b/interface/patient_file/summary/stats.php @@ -55,6 +55,17 @@ echo $c->act(array("prescription" => "", "block" => "", "patient_id" => $pid)); ?> + +Problem List
+" . $iter{"title"}."
\n"; + } +} + +?> + diff --git a/interface/patient_file/summary/stats_full.php b/interface/patient_file/summary/stats_full.php index 30895ab49..fac9f974f 100644 --- a/interface/patient_file/summary/stats_full.php +++ b/interface/patient_file/summary/stats_full.php @@ -9,11 +9,12 @@ include_once("../../globals.php"); OpenEMR - + + @@ -24,4 +25,4 @@ OpenEMR -