function DisplayArchivedBillHeadline($bill_nr, $batch_nr) { global $LDBatchFileNr, $LDFileNo, $LDEncounterNr, $LDLastName, $LDFirstName, $LDBday, $LDSex, $LDBillNumber, $LDWard, $LDdepartment, $db; // Maybe optional parameter given to this funciton: Is it a print-out-page or not (For table resize) if (func_num_args() > 2) { $printout = func_get_arg(2); } $enc_obj = new Encounter(); $encoded_batch_number = $enc_obj->ShowPID($batch_nr); $enc_number = $enc_obj->GetEncounterFromBatchNumber($batch_nr); $bill_address = $enc_obj->GetHospitalAddress(); $bill_logo = $enc_obj->GetHospitalLogo(); $bill_name = $enc_obj->GetHospitalName(); $address_line = explode(",", $bill_address); $hosp_name = $address_line[0]; $hosp_address = $address_line[1]; $hosp_address_city = $address_line[2]; $bill_date_sql = "SELECT FROM_UNIXTIME(date_change) AS tarehe FROM care_tz_billing_archive_elem WHERE nr=" . $bill_nr; $bill_date_result = $db->Execute($bill_date_sql); if ($bill_date_row = $bill_date_result->FetchRow()) { $bill_date_archived = $bill_date_row['tarehe']; } if ($enc_obj->EncounterExists($enc_number)) { // Load the encounter data: $enc_data = $enc_obj->loadEncounterData($enc_number); $file_no = $enc_obj->SelianPID($enc_number); echo $printout ? '<table width="100%" border="0" cellspacing=0 cellpadding=0 align="center" >' : '<table width="100%" border="0" cellspacing=1 cellpadding=0 >'; echo '<tr><td align="center">' . $hosp_name . '<br>' . $hosp_address . '<br>' . $hosp_address_city . '</td></tr> <tr><td align="right"><img src="../../' . $bill_logo . '" border=0 align="absmiddle" alt=""></td></tr></table>'; echo $printout ? '<table width="100%" border="0" cellspacing=0 cellpadding=0 >' : '<table width="100%" border="0" cellspacing=1 cellpadding=0 >'; echo ' <tr><td></td></tr> <td class="headline"><span class=SpellE><span style="font-family:"20 cpi""><font size="3"><b>' . $LDBatchFileNr . '</b></font></span></span></td> <td class="headline"><span class=SpellE><span style="font-family:"20 cpi""><font size="3">' . $encoded_batch_number . '</font></span></span></b></td> </tr> <tr> <td class="headline"><span class=SpellE><span style="font-family:"20 cpi""><font size="3">Admission-Nr.:</font></span></span></td> <td bgcolor="#ffffee" class="vi_data"><span style="font-family:"20 cpi""><font size="3">' . $enc_number . '</font></span></span></b></td> </tr> <tr> <td class="headline"><span class=SpellE><span style="font-family:"20 cpi""><font size="3">File No.:</font></span></span></td> <td bgcolor="#ffffee" class="vi_data"><span style="font-family:"20 cpi""><font size="3">' . $file_no . '</font></span></span></b></td> </tr> <tr> <td class="headline"><span class=SpellE><span style="font-family:"20 cpi""><font size="3">Names:</font></span></span></td> <td bgcolor="#ffffee" class="vi_data"><span style="font-family:"20 cpi""><font size="3">' . $enc_obj->LastName($enc_number) . ', ' . $enc_obj->FirstName($enc_number) . '</font></span></span></b></td> </tr>'; /* if ($enc_data['in_dept']==0) echo '<tr> <td class="headline"><span class=SpellE><span style="font-family:"20 cpi""><font size="4">'.$LDWard.'</font></span></span></td> <td bgcolor="#ffffee" class="vi_data"><span style="font-family:"20 cpi""><font size="4">'.$enc_obj->CurrentWardName($enc_number).'</font></span></span></b></td> </tr>'; else echo '<tr> <td class="headline"><span class=SpellE><span style="font-family:"20 cpi""><font size="4">'.$LDdepartment.'</font></span></span></td> <td bgcolor="#ffffee" class="vi_data"><span style="font-family:"20 cpi""><font size="4">'.$enc_obj->CurrentDeptName($enc_number).'</font></span></span></b></td> </tr>'; */ /* <tr> <td class="headline"><span class=SpellE><span style="font-family:"20 cpi""><font size="4">First name:</font></span></span></td> <td bgcolor="#ffffee" class="vi_data"><span style="font-family:"20 cpi""><font size="4">'.$enc_obj->FirstName($enc_number).'</font></span></span></td> </tr> */ echo '<tr> <td class="headline"><span class=SpellE><span style="font-family:"20 cpi""><font size="3">RECEIPT DATE</font></span></span></td> <td class="headline"><span class=SpellE><span style="font-family:"20 cpi""><font size="3">' . $bill_date_archived . '</font></span></span></td> </tr> <tr> <td class="headline"><b><span class=SpellE><span style="font-family:"20 cpi""><font size="3">' . $LDBillNumber . '</font></span></span></b></td> <td class="headline"><span class=SpellE><span style="font-family:"20 cpi""><font size="3">' . $bill_nr . '</font></span></span></b></td> </tr> <tr> </table>'; return TRUE; } return FALSE; }
error_reporting(E_COMPILE_ERROR | E_ERROR | E_CORE_ERROR); require './roots.php'; require $root_path . 'include/inc_environment_global.php'; /** * CARE2X Integrated Hospital Information System Deployment 2.1 - 2004-10-02 * GNU General Public License * Copyright 2005 Robert Meggle based on the development of Elpidio Latorilla (2002,2003,2004,2005) * elpidio@care2x.org, meggle@merotech.de * * See the file "copy_notice.txt" for the licence notice */ //define('NO_2LEVEL_CHK',1); $thisfile = basename($_SERVER['PHP_SELF']); $lang_tables[] = 'billing.php'; $lang_tables[] = 'aufnahme.php'; require $root_path . 'include/inc_front_chain_lang.php'; require $root_path . 'include/care_api_classes/class_person.php'; $person_obj = new Person(); require_once $root_path . 'include/care_api_classes/class_tz_insurance.php'; $insurance_tz = new Insurance_tz(); require_once $root_path . 'include/care_api_classes/class_encounter.php'; $enc_obj = new Encounter(); $hosp_address = $enc_obj->GetHospitalAddress(); $address_line = explode(",", $hosp_address); $hosp_name = $address_line[0]; $hosp_address = $address_line[1]; $hosp_address_city = $address_line[2]; if ($mode == 'update') { } require "gui/gui_show_contract.php";
function DisplayBillHeadline($bill_nr, $batch_nr) { global $LDBatchFileNr, $LDEncounterNr, $LDLastName, $LDFirstName, $LDBday, $LDSex, $LDBillNumber, $LDWard; // Maybe optional parameter given to this funciton: Is it a print-out-page or not (For table resize) if (func_num_args() > 2) { $printout = func_get_arg(2); } $enc_obj = new Encounter(); $encoded_batch_number = $enc_obj->ShowPID($batch_nr); $enc_number = $enc_obj->GetEncounterFromBatchNumber($batch_nr); $bill_head = $enc_obj->GetHospitalAddress(); $bill_logo = $enc_obj->GetHospitalLogo(); $bill_name = $enc_obj->GetHospitalName(); if ($enc_obj->EncounterExists($enc_number)) { // Load the encounter data: $enc_data = $enc_obj->loadEncounterData($enc_number); echo $printout ? '<table width="100%" border="0" cellspacing=1 cellpadding=0 align="center" >' : '<table width="100%" border="0" cellspacing=1 cellpadding=0 >'; echo '<tr><td></td></td><td width="40%"><b><table border=0 width="100%" align="left"><tr><td align="center"><b>' . $bill_head . '</td></tr></table></td><td align="right"><img src="../../' . $bill_logo . '" border=0 align="absmiddle" alt=""></td></tr> '; echo $printout ? '<table width="200" border="0" cellspacing=1 cellpadding=0 >' : '<table width="100%" border="0" cellspacing=1 cellpadding=0 >'; echo ' <tr><td></td></tr> <td class="headline"><span class=SpellE><span style="font-family:"20 cpi""><font size="4"><b>' . $LDBatchFileNr . '</b></font></span></span></td> <td class="headline"><span class=SpellE><span style="font-family:"20 cpi""><font size="4">' . $encoded_batch_number . '</font></span></span></b></td> </tr>'; /* <tr> <td class="headline"><span class=SpellE><span style="font-family:"20 cpi""><font size="4">Admission-Nr.:</font></span></span></td> <td bgcolor="#ffffee" class="vi_data"><span style="font-family:"20 cpi""><font size="4">'.$enc_number.'</font></span></span></b></td> </tr> echo ' <tr> <td class="headline"><span class=SpellE><span style="font-family:"20 cpi""><font size="4">Patient Names:</font></span></span></td> <td bgcolor="#ffffee" class="vi_data"><span style="font-family:"20 cpi""><font size="4">'.$enc_obj->LastName($enc_number).', '.$enc_obj->FirstName($enc_number).'</font></span></span></b></td> </tr> <tr> <td class="headline"><span class=SpellE><span style="font-family:"20 cpi""><font size="4">Encounter Location:</font></span></span></td> <td bgcolor="#ffffee" class="vi_data"><span style="font-family:"20 cpi""><font size="4">'.$enc_obj->LocationTypeNumber($type_nr).', '.$enc_obj->LocationNumber($loc_nr).' </font></span></span></b></td> </tr>'; /* <tr> <td class="headline"><span class=SpellE><span style="font-family:"20 cpi""><font size="4">First name:</font></span></span></td> <td bgcolor="#ffffee" class="vi_data"><span style="font-family:"20 cpi""><font size="4">'.$enc_obj->FirstName($enc_number).'</font></span></span></td> </tr>' ; */ /* <tr> <td class="headline"><span class=SpellE><span style="font-family:"20 cpi""><font size="4">Date of birth:</font></span></span></td> <td bgcolor="#ffffee" class="vi_data"><span style="font-family:"20 cpi""><font size="4">'.$enc_obj->BirthDate($enc_number).'</font></span></span></td> </tr> <tr> <td class="headline""><span class=SpellE><span style="font-family:"20 cpi""><font size="4">'.$LDSex.':</font></span></span></td> <td class="adm_input"><span class=SpellE><span style="font-family:"20 cpi""><font size="4">'.$enc_obj->Sex($enc_number).'</font></span></span></td> </tr> */ echo ' <tr> <td class="headline"><span class=SpellE><span style="font-family:"20 cpi""><font size="4">Bill Date</font></span></span></td> <td class="headline"><span class=SpellE><span style="font-family:"20 cpi""><font size="4">' . date('d-m-Y') . '</font></span></span></td> </tr> <tr> <td class="headline"><b><span class=SpellE><span style="font-family:"20 cpi""><font size="4">' . $LDBillNumber . '</font></span></span></b></td> <td class="headline"><span class=SpellE><span style="font-family:"20 cpi""><font size="4">' . $bill_nr . '</font></span></span></b></td> </tr> <tr> </table>'; return TRUE; } return FALSE; }