From 72503a59fdaa28739c1cf286af0a11a6e3a580b3 Mon Sep 17 00:00:00 2001 From: bradymiller Date: Sat, 10 Apr 2010 17:45:27 +0000 Subject: [PATCH] bug fix tracker artifact 2962808 to show pt dob age when cick encounter link in billing screen --- interface/billing/billing_report.php | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/interface/billing/billing_report.php b/interface/billing/billing_report.php index 8d834d3e1..1480a350e 100644 --- a/interface/billing/billing_report.php +++ b/interface/billing/billing_report.php @@ -151,11 +151,11 @@ function set_button_states() { } // Process a click to go to an encounter. -function toencounter(pid, pubpid, pname, enc, datestr) { +function toencounter(pid, pubpid, pname, enc, datestr, dobstr) { top.restoreSession(); var othername = (window.name == 'RTop') ? 'RBot' : 'RTop'; - parent.left_nav.setPatient(pname,pid,pubpid,''); + parent.left_nav.setPatient(pname,pid,pubpid,'',dobstr); parent.left_nav.setEncounter(datestr, enc, othername); parent.left_nav.setRadio(othername, 'enc'); parent.frames[othername].location.href = @@ -512,7 +512,7 @@ if ($ret = getBillsBetween($from_date, } } - $name = getPatientData($iter['enc_pid'], "fname, mname, lname, pubpid"); + $name = getPatientData($iter['enc_pid'], "fname, mname, lname, pubpid, DATE_FORMAT(DOB,'%Y-%m-%d') as DOB_YMD"); # Check if patient has primary insurance and a subscriber exists for it. # If not we will highlight their name in red. @@ -544,7 +544,9 @@ if ($ret = getBillsBetween($from_date, "href=\"javascript:window.toencounter(" . $iter['enc_pid'] . ",'" . addslashes($name['pubpid']) . "','" . addslashes($ptname) . "'," . $iter['enc_encounter'] . - ",'$raw_encounter_date')\">[" . xl('To Enctr') . " $raw_encounter_date]"; + ",'$raw_encounter_date',' " . + xl('DOB').": ".$name['DOB_YMD']." ".xl('Age').": ".getPatientAge($name['DOB_YMD'])."')\">[" . + xl('To Enctr') . " $raw_encounter_date]"; // Changed "To xxx" buttons to allow room for encounter date display 2/17/09 JCH $lhtml .= "