From 24a47f252ff043b342dd601b5c1089d5fdb31549 Mon Sep 17 00:00:00 2001 From: Kevin Yeh Date: Tue, 14 May 2013 21:14:26 -0400 Subject: [PATCH] Fix edi.inc encoding and correct uninitialized variables in modified files --- interface/forms/vitals/report.php | 1 + library/billing.inc | 1 + library/edi.inc | 15 ++++++++------- 3 files changed, 10 insertions(+), 7 deletions(-) diff --git a/interface/forms/vitals/report.php b/interface/forms/vitals/report.php index 873bf1331..d3eb2cd71 100644 --- a/interface/forms/vitals/report.php +++ b/interface/forms/vitals/report.php @@ -25,6 +25,7 @@ function vitals_report( $pid, $encounter, $cols, $id, $print = true) { $patient_data = getPatientData($GLOBALS['pid']); $patient_age = getPatientAge($patient_data['DOB']); + $vitals=""; if ($data) { $vitals .= ""; diff --git a/library/billing.inc b/library/billing.inc index bec594ee1..504509819 100644 --- a/library/billing.inc +++ b/library/billing.inc @@ -17,6 +17,7 @@ function getBillingByEncounter ($pid,$encounter, $cols = "code_type, code, code_ { $res = sqlStatement("select $cols from billing where encounter = ? and pid=? and activity=1 order by code_type, date ASC", array($encounter,$pid) ); + $all=array(); for($iter=0; $row=sqlFetchArray($res); $iter++) { $all[$iter] = $row; diff --git a/library/edi.inc b/library/edi.inc index 1a4c9f1a6..ba0ca48b1 100644 --- a/library/edi.inc +++ b/library/edi.inc @@ -70,19 +70,19 @@ function create_GS($row,$X12info,$segTer,$compEleSep) { $GS[1] = "HS"; // Functional ID Code [ HS = Eligibility, Coverage or Benefit Inquiry (270) ] - $GS[2] = $X12info[2]; // Application Sender’s ID + $GS[2] = $X12info[2]; // Application Sender's ID - $GS[3] = $X12info[3]; // Application Receiver’s ID + $GS[3] = $X12info[3]; // Application Receiver's ID $GS[4] = date('Ymd'); // Date [CCYYMMDD] - $GS[5] = date('His'); // Time [HHMM] – Group Creation Time + $GS[5] = date('His'); // Time [HHMM] Group Creation Time $GS[6] = "000000002"; // Group Control Number $GS[7] = "X"; // Responsible Agency Code Accredited Standards Committee X12 ] - $GS[8] = "004010X092A1"; // Version –Release / Industry[ Identifier Code Query + $GS[8] = "004010X092A1"; // Version Release / Industry[ Identifier Code Query $GS['Created'] = implode('*', $GS); // Data Element Separator @@ -197,7 +197,7 @@ function create_NM1($row,$nm1Cast,$X12info,$segTer,$compEleSep) { $NM1[6] = ""; // Data Element not required. $NM1[7] = ""; // Data Element not required. $NM1[8] = "46"; // 46 - Electronic Transmitter Identification Number (ETIN) - $NM1[9] = $X12info[3]; // Application Sender’s ID + $NM1[9] = $X12info[3]; // Application Sender's ID } else if($nm1Cast == '1P') { @@ -266,11 +266,11 @@ function create_TRN($row,$tracno,$refiden,$X12info,$segTer,$compEleSep) { $TRN[0] = "TRN"; // Subscriber Trace Number Segment ID - $TRN[1] = "1"; // Trace Type Code – Current Transaction Trace Numbers + $TRN[1] = "1"; // Trace Type Code � Current Transaction Trace Numbers $TRN[2] = $tracno; // Trace Number - $TRN[3] = "9000000000"; // Originating Company ID – must be 10 positions in length + $TRN[3] = "9000000000"; // Originating Company ID � must be 10 positions in length $TRN[4] = $refiden; // Additional Entity Identifier (i.e. Subdivision) @@ -602,6 +602,7 @@ function show_eligibility_information($pid) $row = sqlFetchArray($result); + $showString=""; $showString .= "
" . "" . htmlspecialchars( xl('Insurance Provider'), ENT_NOQUOTES) . ": " . -- 2.11.4.GIT