From e18104e9cfea8cce692c993b9a099fd315e93dfa Mon Sep 17 00:00:00 2001 From: bradymiller Date: Mon, 5 Apr 2010 17:42:09 +0000 Subject: [PATCH] bug fix of encounter id sent to report.php function --- interface/forms/CAMOS/report.php | 4 ++-- interface/patient_file/encounter/forms.php | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/interface/forms/CAMOS/report.php b/interface/forms/CAMOS/report.php index cfb59f140..798ecbbc7 100755 --- a/interface/forms/CAMOS/report.php +++ b/interface/forms/CAMOS/report.php @@ -22,12 +22,12 @@ function CAMOS_report( $pid, $encounter, $cols, $id) { "/interface/forms/CAMOS/rx_print.php?letterhead=true&signer=doctor' target=_new>" . xl('Letterhead that doctor signs') . "\n"; echo "
"; echo "" . xl('Print This Encounter') . "\n"; + "/interface/forms/CAMOS/notegen.php?pid=".$pid."&encounter=".$encounter."' target=_new>" . xl('Print This Encounter') . "\n"; echo " | "; echo "" . xl('Print Any Encounter') . "\n"; // echo "
".wordwrap(stripslashes(content_parser($data['content'])))."

\n"; - echo "
".wordwrap(stripslashes(replace($GLOBALS['pid'],$GLOBALS['encounter'],$data['content'])))."

\n"; + echo "
".wordwrap(stripslashes(replace($pid,$encounter,$data['content'])))."

\n"; } } ?> diff --git a/interface/patient_file/encounter/forms.php b/interface/patient_file/encounter/forms.php index 034f83407..47d1780ed 100644 --- a/interface/patient_file/encounter/forms.php +++ b/interface/patient_file/encounter/forms.php @@ -217,11 +217,11 @@ if (is_numeric($pid)) { // if (substr($formdir,0,3) == 'LBF') { include_once($GLOBALS['incdir'] . "/forms/LBF/report.php"); - call_user_func("lbf_report", $pid, $iter['encounter'], 2, $iter['form_id'], $formdir); + call_user_func("lbf_report", $pid, $encounter, 2, $iter['form_id'], $formdir); } else { include_once($GLOBALS['incdir'] . "/forms/$formdir/report.php"); - call_user_func($formdir . "_report", $pid, $iter['encounter'], 2, $iter['form_id']); + call_user_func($formdir . "_report", $pid, $encounter, 2, $iter['form_id']); } echo ""; -- 2.11.4.GIT