echo "\n<style type='text/css'>\n.informationLabel {\nfont-size:15px;\nfont-weight:bold;\n}\n\n.initialDiagnosis {\n\tborder: 1px solid #CCC;\n\tcolor: #000;\n\theight:80px;\n\twidth: 350px;\n\tpadding:4px 4px 4px 2px;\n}\n\n\n</style>"; $room = preg_split("/\\_/", $ro->getRegistrationDetails_room()); echo "<br>"; if ($ro->getRegistrationDetails_dateUnregistered() == "") { echo "<a href='http://" . $ro->getMyUrl() . "/COCONUT/patientProfile/discharged/discharged.php?registrationNo={$registrationNo}&protoType=Discharged'><img src='http://" . $ro->getMyUrl() . "/COCONUT/myImages/unlock.jpeg'></a> <font size=2 color=red><b>" . $ro->getRegistrationDetails_type() . "</b></font><br>"; } else { echo "<a href='http://" . $ro->getMyUrl() . "/COCONUT/patientProfile/discharged/discharged.php?registrationNo={$registrationNo}&protoType=Undischarged'><img src='http://" . $ro->getMyUrl() . "/COCONUT/myImages/locked1.jpeg'></a> <font size=2 color=red><b>" . $ro->getRegistrationDetails_type() . "</b></font><br>"; } echo "<font class='informationLabel'>Patient No:</font> " . $ro->getRegistrationDetails_patientNo(); echo "<br><font class='informationLabel'>Registration No:</font> " . $ro->getRegistrationDetails_registrationNo(); echo "<br><font class='informationLabel'>Age:</font> " . $ro->getPatientRecord_age(); echo "<br><font class='informationLabel'>Civil Status:</font> " . $ro->getPatientRecord_civilStatus(); echo "<br><font class='informationLabel'>Birth Date:</font> " . $ro->getPatientRecord_Birthdate(); echo "<br><font class='informationLabel'>Contact No#:</font> " . $ro->getPatientRecord_contactNo(); echo "<br><font class='informationLabel'>Senior:</font> " . $ro->getPatientRecord_senior(); echo "<br><font class='informationLabel'>PhilHealth:</font> " . $ro->getPatientRecord_phic(); echo "<br><font class='informationLabel'>Company:</font> " . $ro->getRegistrationDetails_company(); echo "<br><font class='informationLabel'>Time Registered:</font> " . $ro->getRegistrationDetails_timeRegistered(); echo "<br><font class='informationLabel'>Date Registered:</font> " . $ro->getRegistrationDetails_dateRegistered(); echo "<br><font class='informationLabel'>Branch Registered:</font> " . $ro->getRegistrationDetails_branch(); echo "<br><font class='informationLabel'>Room:</font> " . $room[0]; echo "<br><font class='informationLabel'>Address:</font> " . $ro->getPatientRecord_address(); echo "<br><font class='informationLabel'>Registered By:</font> " . $ro->getRegistrationDetails_registeredBy(); if ($ro->getRegistrationDetails_dateUnregistered() != "") { echo "<br><font class='informationLabel'>Time Discharged:</font> " . $ro->getRegistrationDetails_timeUnregistered(); echo "<br><font class='informationLabel'>Discharged:</font> " . $ro->getRegistrationDetails_dateUnregistered(); } else { echo ""; } echo "<br><br><font size=2 color=red><b>VITAL SIGN</b></font>"; echo "<br><font class='informationLabel'>Height:</font> " . $ro->getRegistrationDetails_height();
echo $username; ?> " target="patientX">View Payment</a></li> </ul> </li> <?php ?> <li> <?php if ($ro->getPatientRecord_phic() == "YES") { echo "<a href='#'>PhilHealth<span class='arrow'></span></a>"; } else { echo ""; } ?> <ul> <li><a href="http://<?php echo $ro->getMyUrl(); ?> /COCONUT/philhealth/cf2.php?registrationNo=<?php echo $registrationNo; ?> &username=<?php echo $username; ?>
<?php include "../../../myDatabase.php"; $registrationNo = $_GET['registrationNo']; $casetype = $_GET['casetype']; $ro = new database(); $ro->getPatientProfile($registrationNo); $ro->getPHIClimit_setter($casetype); if ($ro->getPatientRecord_phic() == "yes" || $ro->getPatientRecord_phic() == "YES") { //check kung phic $phicMed = $ro->getTotal("cashUnpaid", "", $registrationNo) - $ro->getPHIClimit_medicine(); echo $phicMed; $ro->editNow("patientCharges", "itemNo", $ro->getHighestCharges_itemNo("MEDICINE", "cashUnpaid", $registrationNo), "phic", $ro->getPHIClimit_medicine()); // magLLgay ng amount based on PHIC-med limit $ro->editNow("patientCharges", "itemNo", $ro->getHighestCharges_itemNo("MEDICINE", "cashUnpaid", $registrationNo), "cashUnpaid", $ro->getTotal("cashUnpaid", "", $registrationNo) - $ro->getPHIClimit_medicine()); // magLLgay ng amount based on PHIC-med limit } else { echo "hello"; }
$pf_cash = 0; $pf_phic = 0; $pf_company = 0; $pf_gt = 0; echo "<center><div style='border:0px solid #000000; width:700px; height:auto; border-color:black black black black;'>"; echo ""; echo "<font size=5><b>" . $ro->getReportInformation("hmoSOA_name") . "</b></font>"; echo "<br><font size=2>" . $ro->getReportInformation("hmoSOA_address") . "</font>"; echo "<br><br><center>"; echo "<table>"; echo "<tr>"; echo "<td>" . $ro->coconutText("Name") . ": </td><td> " . $ro->getPatientRecord_lastName() . ", " . $ro->getPatientRecord_firstName() . "</td>"; echo "<td> </td><td>" . $ro->coconutText("Reg#") . "</td><td> {$registrationNo}</td>"; echo "</tr>"; echo "<tr>"; echo "<Td>" . $ro->coconutText("PHIC") . ": </td><td> " . $ro->getPatientRecord_phic() . "</td>"; echo "<td> </td>"; echo "<td>CaseType:</td><TD>" . $ro->getRegistrationDetails_caseType() . "</tD>"; echo "</tr>"; echo "<tr>"; echo "<Td>" . $ro->coconutText("Company") . ": </td><td> " . $ro->getRegistrationDetails_company() . "</td>"; echo "<td> </tD>"; echo "<Td>" . $ro->coconutText("Fx Diagnosis:") . ": </td><td> " . $ro->getRegistrationDetails_finalDiagnosis() . "</td>"; echo "</tr>"; echo "<tr>"; echo "<Td>" . $ro->coconutText("Admitted") . ": </td><td> " . $ro->getRegistrationDetails_dateRegistered() . "</td>"; echo "<td> </td>"; echo "<Td>" . $ro->coconutText("Discharged") . ": </td><td> " . $ro->getRegistrationDetails_dateUnregistered() . "</td>"; echo "</tr>"; echo "<tr>"; echo "<Td>" . $ro->coconutText("Age") . "</tD><td> " . $ro->getPatientRecord_age() . "</tD>";
include "../../../myDatabase.php"; $registrationNo = $_GET['registrationNo']; $casetype = $_GET['casetype']; $ro = new database(); $ro->getPHIClimit_setter($casetype); $ro->getPatientProfile($registrationNo); echo "PHIC Consumed " . number_format($ro->getTotal("phic", "MEDICINE", $registrationNo), 2); // kunin ang phic n meds echo "<Br>"; echo "PHIC Limit " . $ro->getPHIClimit_medicine(); //allowed Limit ng PHIC pra sa meds echo "<Br>"; $kunin_ang_sobra = $ro->getTotal("phic", "MEDICINE", $registrationNo) - $ro->getPHIClimit_medicine(); $binawas_ang_sobra = $ro->getHighestCharges("MEDICINE", "phic", $registrationNo) - $kunin_ang_sobra; if ($ro->getTotal("phic", "MEDICINE", $registrationNo) > $ro->getPHIClimit_medicine() && ($ro->getPatientRecord_phic() == "YES" || $ro->getPatientRecord_phic() == "yes")) { //ckech kung mas mataas ang credit kaysa sa allowed limit echo "<br>Sobra " . number_format($kunin_ang_sobra, 2); echo "<br>Total: " . ($ro->getTotal("phic", "MEDICINE", $registrationNo) - $kunin_ang_sobra); echo "<br>Total: " . $binawas_ang_sobra; //bbwasan ang charges n may pnka mataas na selling price.. ang ibbwas ay ang sobra sa allowed limit ng PHIC meds $ro->editNow("patientCharges", "itemNo", $ro->getHighestCharges_itemNo("MEDICINE", "phic", $registrationNo), "phic", $binawas_ang_sobra); if ($ro->getRegistrationDetails_company() != "") { //ito ung LLipat ang bayad sa hmo if ($ro->getRegistrationDetails_limitHMO() > $ro->getTotal("company", "", $registrationNo)) { echo "hello"; } else { $ro->editNow("patientCharges", "itemNo", $ro->getHighestCharges_itemNo("MEDICINE", "phic", $registrationNo), "company", $kunin_ang_sobra); } } else { if ($ro->getRegistrationDetails_company() == "") {
echo "<td><input type=text name='relationship' autocomplete='off' class='txtBox' value='" . $ro->selectNow("registrationDetails", "relationship", "registrationNo", $registrationNo) . "'></td>"; echo "</tr>"; echo "<tr>"; echo "<td>Contact No# </td>"; echo "<td><input type=text name='contactNo'class='txtBox' value='" . $ro->getPatientRecord_contactNo() . "'></td>"; echo "</tr>"; echo "<tr>"; echo "<td>Senior </td>"; echo "<td>\n<select name='senior' class='comboBoxShort'>"; echo "<option value='" . $ro->getPatientRecord_senior() . "'>" . $ro->getPatientRecord_senior() . "</option>"; echo "<option value='YES'>YES</option>\n<option value='NO'>NO</option>\n</select>\n</td>"; echo "</tr>"; echo "<tr>"; echo "<td>PhilHealth </td>"; if ($ro->selectNow("registeredUser", "module", "username", $username) == "ADMIN" || $ro->selectNow("registeredUser", "module", "username", $username) == "BILLING" || $ro->selectNow("registeredUser", "module", "username", $username) == "CASHIER" || $ro->selectNow("registeredUser", "module", "username", $username) == "PHILHEALTH" || $ro->selectNow("registeredUser", "module", "username", $username) == "ADMITTING") { echo "<td>\n<select name='PhilHealth' class='comboBoxShort'>\n<option value='" . $ro->getPatientRecord_phic() . "'>" . $ro->getPatientRecord_phic() . "</option>\n<option value='YES'>YES</option>\n<option value='NO'>NO</option>\n</select>\n</td>"; } else { echo "\n<td>\n<span class='Arial10RedBold'>Only Admin, Billing, Cashier, PhilHealth, Admitting accounts can change this.</span><br>\n<select name='PhilHealth' class='comboBoxShort'>\n<option value='" . $ro->getPatientRecord_phic() . "'>" . $ro->getPatientRecord_phic() . "</option>\n</select>\n</td>\n"; } echo "</tr>"; echo "<tr>"; echo "<td>Diet:</td>"; echo "<td>"; echo "<select name='diet' class='comboBox'>"; echo "<option value='" . $ro->selectNow("dietList", "dietNo", "dietNo", $ro->selectNow("registrationDetails", "diet", "registrationNo", $registrationNo)) . "'> " . $ro->selectNow("dietList", "dietName", "dietNo", $ro->selectNow("registrationDetails", "diet", "registrationNo", $registrationNo)) . " </option>"; $ro->showOption_with_value("dietList", "dietName", "dietNo"); echo "</select>"; echo "</td>"; echo "</tr>"; if ($ro->getPatientRecord_phic() == "YES") { echo "<tr>";
a.focus(); a.print(); a.close(); } </script> <a href='#' onClick="printF('printData')" style="text-decoration:none;"><?php echo $ro->coconutImages("printer.jpeg"); ?> <font color=red>Print</font></a><Br><Br> <?php echo "<div id='printData'>"; echo "Reg#: " . $registrationNo . " Batch#: " . $dispensedNo; echo "<br>"; echo "Name: " . $ro->getPatientRecord_lastName() . ", " . $ro->getPatientRecord_firstName(); echo "<br>"; echo "PHIC:" . $ro->getPatientRecord_phic() . " + " . $ro->getRegistrationDetails_company(); echo "<br>"; echo "Date" . date("M d, Y") . " @ " . $ro->getSynapseTime(); echo "<Br>"; echo "Room:" . $ro->getRegistrationDetails_room(); echo "<br>"; echo "Pharmacy:" . $username; echo "<br>"; echo "Doctor:" . $ro->getAttendingDoc($registrationNo, "Attending"); echo "<table border=1 cellpadding=1 cellspacing=1>"; echo "<tr>"; echo "<th>Particulars</th>"; echo "<th>QTY</th>"; echo "</tr>"; for ($x = 0, $z = 0; $x < $disp, $z < $countz; $x++, $z++) { echo "<Tr>";
$ro->gotoPage("http://" . $ro->getMyUrl() . "/COCONUT/availableCharges/quantityMisc.php?status={$status}®istrationNo={$registrationNo}&chargesCode={$chargesCode}&description={$description}&sellingPrice={$sellingPrice}&discount={$discount}&timeCharge={$timeCharge}&room={$room}&chargeBy={$chargeBy}&service={$service}&title={$title}&paidVia={$paidVia}&cashPaid={$cashPaid}&batchNo={$batchNo}&username={$username}&inventoryFrom={$inventoryFrom}"); } else { $dateCharge = date("M_d_Y"); if ($title == "PROFESSIONAL FEE") { $price = preg_split("/\\//", $sellingPrice); $currentTotal = $quantity * $price[0]; } else { $currentTotal = $quantity * $sellingPrice; } $totalDiscount = $quantity * $discount; $grandTotal = $currentTotal - $totalDiscount; $ro->getPatientProfile($registrationNo); $ro->getPHIClimit_setter($ro->getRegistrationDetails_caseType()); $currentSupplies = $ro->getCurrentPHIC_check($registrationNo, "SUPPLIES") - $ro->getPHIClimit_supplies(); $currentMedicine = $ro->getCurrentPHIC_check($registrationNo, "MEDICINE") - $ro->getPHIClimit_medicine(); if ($ro->getPatientRecord_phic() == "YES" && $ro->getRegistrationDetails_company() == "" && $ro->selectNow("inventory", "phic", "inventoryCode", $chargesCode) == "yes") { //for phic if ($title != "MEDICINE" && $currentSupplies < 0) { $ro->addCharges_cash($status, $registrationNo, $chargesCode, $description, $sellingPrice, $totalDiscount, $grandTotal, 0, $grandTotal, 0, $timeCharge, $dateCharge, $username, $service, $title, $paidVia, $cashPaid, $batchNo, $quantity, $inventoryFrom, $ro->getRegistrationDetails_branch(), $room); } else { if ($title != "MEDICINE" && $currentSupplies >= 0) { $ro->addCharges_cash($status, $registrationNo, $chargesCode, $description, $sellingPrice, $totalDiscount, $grandTotal, $grandTotal, 0, 0, $timeCharge, $dateCharge, $username, $service, $title, $paidVia, $cashPaid, $batchNo, $quantity, $inventoryFrom, $ro->getRegistrationDetails_branch(), $room); } else { if ($title == "MEDICINE" && $currentMedicine < 1 && $ro->selectNow("inventory", "phic", "inventoryCode", $chargesCode) == "yes") { $ro->addCharges_cash($status, $registrationNo, $chargesCode, $description, $sellingPrice, $totalDiscount, $grandTotal, 0, $grandTotal, 0, $timeCharge, $dateCharge, $username, $service, $title, $paidVia, $cashPaid, $batchNo, $quantity, $inventoryFrom, $ro->getRegistrationDetails_branch(), $room); } else { if ($title == "MEDICINE" && $currentMedicine > 0 && $ro->selectNow("inventory", "phic", "inventoryCode", $chargesCode) == "yes") { $ro->addCharges_cash($status, $registrationNo, $chargesCode, $description, $sellingPrice, $totalDiscount, $grandTotal, $grandTotal, 0, 0, $timeCharge, $dateCharge, $username, $service, $title, $paidVia, $cashPaid, $batchNo, $quantity, $inventoryFrom, $ro->getRegistrationDetails_branch(), $room); } else { echo ""; }
$ro->coconutTextBox_short("bdayYear", $bday[2]); echo "</td>"; echo "</tr>"; echo "<tr>"; echo "<td>Contact No# </td>"; echo "<td><input type=text name='contactNo'class='txtBox' value='" . $ro->getPatientRecord_contactNo() . "'></td>"; echo "</tr>"; echo "<tr>"; echo "<td>Senior </td>"; echo "<td>\n<select name='senior' class='comboBoxShort'>"; echo "<option value='" . $ro->getPatientRecord_senior() . "'>" . $ro->getPatientRecord_senior() . "</option>"; echo "<option value='YES'>YES</option>\n<option value='NO'>NO</option>\n</select>\n</td>"; echo "</tr>"; echo "<tr>"; echo "<td>PhilHealth </td>"; echo "<td>\n<select name='PhilHealth' class='comboBoxShort'>\n<option value='" . $ro->getPatientRecord_phic() . "'>" . $ro->getPatientRecord_phic() . "</option>\n<option value='YES'>YES</option>\n<option value='NO'>NO</option>\n</select>\n</td>"; echo "</tr>"; if ($ro->getPatientRecord_phic() == "YES") { echo "<tr>"; echo "<td>PHIC Type:</td>"; echo "<td>"; echo "<select name='phicType' class='comboBox'>"; echo "<option value='" . $ro->getPHICtype_patientRecord() . "'>" . $ro->getPHICtype_patientRecord() . "</option>"; echo "<option value=''><option>"; $ro->showOption("phicType", "type"); echo "</select>"; echo "</td>"; echo "</tr>"; $pinNo = preg_split("/\\-/", $ro->getRegistrationDetails_PIN()); //kkuning ung phic pin No echo "<tr>";
$batchNo1 = $batchNo; } //ELSE //header("Location: http://".$ro->getMyUrl()."/Department/dispensed.php?registrationNo=$registrationNo&dispensed=$disp[$x]"); } //FOR LOOP //selectNow($table,$cols,$identifier,$identifierData) //header("Location: http://".$ro->getMyUrl()."/Department/dispensed.php?registrationNo=$registrationNo&dispensed=$dispensed"); $ro->getPatientProfile($registrationNo); ////selectNow($table,$cols,$identifier,$identifierData) if ($ro->selectNow("registeredUser", "module", "username", $username) == "PHARMACY") { echo "Reg#: " . $registrationNo . " Batch#: " . $dispensedNo; echo "<br>"; echo "Name: " . $ro->getPatientRecord_lastName() . ", " . $ro->getPatientRecord_firstName(); echo "<br>"; echo "PHIC:" . $ro->getPatientRecord_phic(); echo "<br>"; echo "Date" . date("M d, Y") . " @ " . $ro->getSynapseTime(); echo "<Br>"; echo "Room:" . $ro->getRegistrationDetails_room(); echo "<br>"; echo "Pharmacy:" . $username; echo "<table border=1 cellpadding=1 cellspacing=1>"; echo "<tr>"; echo "<th>Particulars</th>"; echo "<th>QTY</th>"; echo "</tr>"; for ($x = 0, $z = 0; $x < $disp, $z < $countz; $x++, $z++) { $ro->doubleEditNow("patientCharges", "registrationNo", $registrationNo, "itemNo", $remitted[$z], "dispensedNo", $dispensedNo); echo "<Tr>"; $dispense = preg_split("/\\_/", $dispensed[$x]);
$ro->EditNow("patientCharges", "itemNo", $assignPayment[0], "phic", $ro->patientCharges_total()); $ro->EditNow("patientCharges", "itemNo", $assignPayment[0], "cashUnpaid", 0); $ro->EditNow("patientCharges", "itemNo", $assignPayment[0], "company", 0); $ro->EditNow("patientCharges", "itemNo", $assignPayment[0], "charity", 0); } else { if ($assignPayment[1] == "package") { $ro->EditNow("patientCharges", "itemNo", $assignPayment[0], "phic", 0); $ro->EditNow("patientCharges", "itemNo", $assignPayment[0], "cashUnpaid", 0); $ro->EditNow("patientCharges", "itemNo", $assignPayment[0], "company", 0); $ro->EditNow("patientCharges", "itemNo", $assignPayment[0], "charity", $ro->patientCharges_total()); } else { if ($assignPayment[1] == "casetype") { if ($ro->patientCharges_title() == "MEDICINE" || $ro->patientCharges_title() == "SUPPLIES") { //check if meds/supplies /////ASSIGN PAYMENT if ($ro->compensable_checker($assignPayment[0]) == "yes" && ($ro->getPatientRecord_phic() == "YES" || $ro->getPatientRecord_phic() == "yes")) { //check kung pde i-cover ng phic at may PHIC ang patient $ro->EditNow("patientCharges", "itemNo", $assignPayment[0], "phic", $ro->patientCharges_total()); $ro->EditNow("patientCharges", "itemNo", $assignPayment[0], "cashUnpaid", 0); $ro->EditNow("patientCharges", "itemNo", $assignPayment[0], "company", 0); } else { if ($ro->hmo_checker($assignPayment[0]) != "" && ($ro->getPatientRecord_phic() == "YES" || $ro->getPatientRecord_phic() == "yes") && $ro->senior_checker($assignPayment[0]) == "NO" || $ro->senior_checker($assignPayment[0]) == "no") { //check kung pde i-cover ng hmo kung mei hmo ang patient $ro->EditNow("patientCharges", "itemNo", $assignPayment[0], "phic", 0); $ro->EditNow("patientCharges", "itemNo", $assignPayment[0], "cashUnpaid", 0); $ro->EditNow("patientCharges", "itemNo", $assignPayment[0], "company", $ro->patientCharges_total()); } else { if ($ro->senior_checker($assignPayment[0]) == "YES" || $ro->senior_checker($assignPayment[0]) == "yes") { //kung senior $discount = $ro->patientCharges_total() * $ro->percentage("senior"); $totalDisc = $ro->patientCharges_total() - $discount;
if ($ro->getTotal("phic", "PROFESSIONAL FEE", $registrationNo) > 0) { $pf_phic += $ro->getPatient_phic(); } else { } if ($ro->getTotal("company", "PROFESSIONAL FEE", $registrationNo) > 0) { $pf_company += $ro->getPatient_company(); } else { } if ($ro->getTotal("cashUnpaid", "PROFESSIONAL FEE", $registrationNo) > 0) { $pf_cash += $ro->getPatient_cashUnpaid(); } else { } /*****************************************************/ /************* DISCOUNT ******************************/ $patientDiscount = 0; if ($ro->getRegistrationDetails_discount() != "") { $patientDiscount = $ro->getRegistrationDetails_discount(); } else { $patientDiscount = "0.00"; } /*****************************************************/ /***************** PAYMENT **************************/ $ro->getPaymentHistory_showUp_returnPaid_setter($registrationNo); /****************************************************/ $gross = $hospitalBill_cash - $ro->getPaymentHistory_showUp_returnPaid(); $grandTotal = $gross - $ro->getRegistrationDetails_discount() + $pf_cash; $content = "\n<div align='center' style='border:0px solid #000000; width:700px; height:auto; border-color:black black black black;' >\n<font size=5><b>" . $ro->getReportInformation("hmoSOA_name") . "</b></font>\n<br><font size=2>" . $ro->getReportInformation("hmoSOA_address") . "</font>\n<br><br>\n</div>\n<table >\n<tr>\n<td><b>" . $ro->coconutText("Name") . ":</b> </td><td> " . $ro->getPatientRecord_lastName() . ", " . $ro->getPatientRecord_firstName() . "</td>\n<td> </td><td>" . $ro->coconutText("Reg#") . "</td><td> {$registrationNo}</td>\n</tr>\n\n<tr>\n<Td><b>" . $ro->coconutText("PHIC") . ":</b> </td><td> " . $ro->getPatientRecord_phic() . "</td>\n<td> </td>\n<td><b>CaseType:</b></td><TD>" . $ro->getRegistrationDetails_caseType() . "</tD>\n</tr>\n\n<tr>\n<Td><b>" . $ro->coconutText("Company") . ":</b> </td><td> " . $ro->getRegistrationDetails_company() . "</td>\n<td> </tD>\n<Td><b>" . $ro->coconutText("Fx Diagnosis:") . ":</b> </td><td> " . $ro->getRegistrationDetails_finalDiagnosis() . "</td>\n</tr>\n\n<tr>\n<Td><b>" . $ro->coconutText("Admitted") . ":</b> </td><td> " . $ro->getRegistrationDetails_dateRegistered() . "</td>\n<td> </td>\n<Td><b>" . $ro->coconutText("Discharged") . ":</b> </td><td> " . $ro->getRegistrationDetails_dateUnregistered() . "</td>\n</tr>\n\n<tr>\n<Td><b>" . $ro->coconutText("Age") . ":</b></tD><td> " . $ro->getPatientRecord_age() . "</tD>\n<tD> </tD>\n<Td><b>" . $ro->coconutText("Room:") . "</b></tD><td>" . $ro->getRegistrationDetails_room() . "</tD>\n</tr>\n\n<tr>\n<td><b>" . $ro->coconutText("Att.Doctor") . ":</b></tD><td> <font size=2>" . $ro->getAttendingDoc($registrationNo, "Attending") . "</font></td>\n<td></td>\n<td><b>" . $ro->coconutText("Admitting Doc") . ":</b></td><tD> <font size=2>" . $ro->getAttendingDoc($registrationNo, "Admitting") . "</font></tD>\n</tr>\n</table>\n\n<table>\n<td><b>Address:</b> </tD>\n<tD>" . $ro->getPatientRecord_address() . "</tD>\n</table>\n\n<br><br>\n\n<table border=1 cellpadding=1 cellspacing=0>\n<tr>\n<th> Particular </th>\n<th> Actual </th>\n<th> PhilHealth </th>\n<th> Company </th>\n<th> Cash </th>\n</tr>\n\n<tr>\n<td> Medicine </td>\n<Td> {$medActual}</td>\n<td> {$medPHIC}</td>\n<td> {$medCompany}</td>\n<td> {$medCash}</td>\n</tr>\n\n\n<Tr>\n<td> Supplies</td>\n<td> {$supActual}</td>\n<td> {$supPHIC}</td>\n<td> {$supCompany}</td>\n<Td> {$supCash}</td>\n</tr>\n\n<Tr>\n<td> Laboratory</td>\n<td> {$labActual}</td>\n<td> {$labPHIC}</td>\n<td> {$labCompany}</td>\n<Td> {$labCash}</td>\n</tr>\n\n<Tr>\n<td> Radiology</td>\n<td> {$radActual}</td>\n<td> {$radPHIC}</td>\n<td> {$radCompany}</td>\n<Td> {$radCash}</td>\n</tr>\n\n<Tr>\n<td> Nursing Charges</td>\n<td> {$nsChargesActual}</td>\n<td> {$nsChargesPHIC}</td>\n<td> {$nsChargesCompany}</td>\n<Td> {$nsChargesCash}</td>\n</tr>\n\n<Tr>\n<td> Miscellaneous</td>\n<td> {$miscActual}</td>\n<td> {$miscPHIC}</td>\n<td> {$miscCompany}</td>\n<Td> {$miscCash}</td>\n</tr>\n\n<Tr>\n<td> Others</td>\n<td> {$othersActual}</td>\n<td> {$othersPHIC}</td>\n<td> {$othersCompany}</td>\n<Td> {$othersCash}</td>\n</tr>\n\n<Tr>\n<td> OR/DR/ER Fee</td>\n<td> {$orActual}</td>\n<td> {$orPHIC}</td>\n<td> {$orCompany}</td>\n<Td> {$orCash}</td>\n</tr>\n\n<Tr>\n<td> Rehab</td>\n<td> {$rehabActual}</td>\n<td> {$rehabPHIC}</td>\n<td> {$rehabCompany}</td>\n<Td> {$rehabCash}</td>\n</tr>\n\n<Tr>\n<td><font size=2>Room @ " . $ro->getQTY_room($registrationNo) . " day(s)</font> </td>\n<td> {$roomActual}</td>\n<td> {$roomPHIC}</td>\n<td> {$roomCompany}</td>\n<Td> {$roomCash}</td>\n</tr>\n\n<Tr>\n<td> <b>Hospital Bill</b></tD>\n<td> <b>" . number_format($hospitalBill_gt, 2) . "</b></tD>\n<td> <b>" . number_format($hospitalBill_phic, 2) . "</b></tD>\n<td> <b>" . number_format($hospitalBill_company, 2) . "</b></tD>\n<td> <b>" . number_format($hospitalBill_cash, 2) . "</b></tD>\n</tr>\n\n<Tr>\n<td> </tD>\n<td> </tD>\n<td> </tD>\n<td> </tD>\n<td> </tD>\n</tr>\n\n<tr>\n<td> </tD>\n<td> </tD>\n<td> </tD>\n<td> </tD>\n<td> </tD>\n</tr>\n\n" . $ro->getPatientDoc_soa2pdf($registrationNo) . "\n\n<tr>\n<td> <b>Professional Fee</b></tD>\n<td> <b>" . number_format($pf_gt, 2) . "</b></tD>\n<td> <b>" . number_format($pf_phic, 2) . "</b></tD>\n<td> <b>" . number_format($pf_company, 2) . "</b></tD>\n<td> <b>" . number_format($pf_cash, 2) . "</b></tD>\n</tr>\n\n\n<Tr>\n<td> </tD>\n<td> </tD>\n<td> </tD>\n<td> </tD>\n<td> </tD>\n</tr>\n\n<tr>\n<td> </tD>\n<td> </tD>\n<td> </tD>\n<td> </tD>\n<td> </tD>\n</tr>\n\n\n<tr>\n<td> <b>Total</b></tD>\n<td> <b>" . number_format($hospitalBill_gt + $pf_gt, 2) . "</b></tD>\n<td> <b>" . number_format($hospitalBill_phic + $pf_phic, 2) . "</b></tD>\n<td> <b>" . number_format($hospitalBill_company + $pf_company, 2) . "</b></tD>\n<td> <b>" . number_format($hospitalBill_cash + $pf_cash, 2) . "</b></tD>\n</tr>\n\n\n<tr>\n<td> <b>Discount</b></tD>\n<td> </tD>\n<td> </tD>\n<td> </tD>\n<td> <b>" . number_format($patientDiscount, 2) . "</b></tD>\n</tr>\n\n<tr>\n<td> <b>Grand Total</b></tD>\n<td> </tD>\n<td> </tD>\n<td> </tD>\n<td> <b>" . number_format($grandTotal, 2) . "</b></tD>\n</tr>\n\n<tr>\n<td> <b>Payments</b></tD>\n<td> </tD>\n<td> </tD>\n<td> </tD>\n<td> <b>" . number_format($ro->getPaymentHistory_showUp_returnPaid(), 2) . "</b></tD>\n</tr>\n\n<tr>\n<td> </td>\n<td> </td>\n<td> </td>\n<td> </td>\n<td> </td>\n</tr>\n\n\n<tr>\n<td> <b>BALANCE</b></td>\n<td> </td>\n<td> </td>\n<td> </td>\n<td> <b> " . number_format($hospitalBill_cash + $pf_cash - $ro->getPaymentHistory_showUp_returnPaid(), 2) . " </b></td>\n</tr>\n\n</table>\n\n<br><br><br><br>\n<hr>\n<br><br>\n\n<Table>\n\n<td style='width:90%;'>\n<font size=2><u>MYNARD A. BAJO</u><Br><b>Billing Officer</b></font>\n</td>\n\n\n<td> </td>\n<td> </td>\n<td> </td>\n<td> </td>\n<td> </td>\n<td> </td>\n<td> </td>\n<td> </td>\n<td> </td>\n<td> </td>\n<td> </td>\n<td> </td>\n<td> </td>\n\n\n\n\n\n<td>\n<font size=2><u>HAZEL S. CASTIGADOR</u><Br><b>Medical Clerk</b></font>\n</td>\n\n\n<tr>\n<td> </td>\n</tr>\n<tr>\n<td> </td>\n</tr>\n<tr>\n<td> </td>\n</tr>\n<tr>\n<td> </td>\n</tr>\n<tr>\n<td> </td>\n</tr>\n\n<tr>\n<td> </td>\n<td> </td>\n<td> </td>\n<td> </td>\n<td> </td>\n<td> </td>\n<td> </td>\n<td> </td>\n<td> </td>\n\n<tD> \n<font size=2>Certified Correct:<br></font>\n<br>\n<font size=2><u>MARIBETH B. SANDIG</u><Br><b>Hospital Administrator</b></font>\n</tD>\n</tr>\n</table>\n\n<br><br><br><br><br><br><br>\n\n\n\n\n\n"; $pdfFile = "/opt/lampp/htdocs/SOA_" . $ro->getPatientRecord_lastName() . "_" . $ro->getPatientRecord_firstName() . "-" . $registrationNo . ".pdf"; $html2pdf->WriteHTML($content); $html2pdf->Output($pdfFile); //echo "<table border=1>".$ro->getPatientDoc_soa2pdf($registrationNo)."</table>"
a.print(); a.close(); } </script> <a href='#' onClick="printF('printData')" style="text-decoration:none;"><?php echo $ro->coconutImages("printer.jpeg"); ?> <font color=red>Print</font></a><Br><Br> <?php echo "<div id='printData'>"; echo "\n<style type='text/css'>\n<!--\n.style1 {font-family: Arial;font-size: 16px;color: #000000;font-weight: bold;}\n.style2 {font-family: 'Times New Roman';font-size: 16px;color: #FF0000;font-weight: bold;}\n.style3 {text-decoration: none;font-family: Arial;font-size: 12px;color: #000000;font-weight: bold;}\n.style4 {font-family: Arial;font-size: 12px;color: #000000;font-weight: bold;}\n.style5 {font-family: Arial;font-size: 14px;color: #000000;}\n.style6 {font-family: Arial;font-size: 12px;color: #FFFFFF;}\n.style7 {font-family: Arial;font-size: 11px;color: #000000;}\n.style8 {font-family: Arial;font-size: 12px;color: #FFFFFF;font-weight: bold;}\n-->\n</style>\n"; echo "<span class='style4'>Reg#: </span><span class='style5'>" . $registrationNo . "</span><span class='style4'> Batch#: </span><span class='style5'>" . $dispensedNo . "</span>"; echo "<br>"; echo "<span class='style4'>Name: </span><span class='style5'>" . $ro->getPatientRecord_lastName() . ", " . $ro->getPatientRecord_firstName() . "</span>"; echo "<br>"; echo "<span class='style4'>PHIC: </span><span class='style5'>" . $ro->getPatientRecord_phic() . " + " . $ro->getRegistrationDetails_company() . "</span>"; echo "<br>"; echo "<span class='style4'>Date: </span><span class='style5'>" . date("M d, Y") . " @ " . $ro->getSynapseTime() . "</span>"; echo "<Br>"; echo "<span class='style4'>Room: </span><span class='style5'>" . $ro->getRegistrationDetails_room() . "</span>"; echo "<br>"; echo "<span class='style4'>Pharmacy: </span><span class='style5'>" . $username . "</span>"; echo "<br>"; echo "<span class='style4'>Doctor: </span><span class='style5'>" . $ro->getAttendingDoc($registrationNo, "Attending") . "</span>"; echo "<br /><br />"; echo "<table border=1 bordercolor=black cellpadding=0 cellspacing=0>"; echo "<tr>"; echo "<td class='style4'> Particulars </td>"; echo "<td class='style4'> QTY </td>"; echo "</tr>"; for ($x = 0, $z = 0; $x < $disp, $z < $countz; $x++, $z++) {