$username = $_GET['username']; $ro = new database2(); $ro->getPatientProfile($registrationNo); $cashz = 0; $phicz = 0; $company = 0; $gt = 0; $hospitalBill_cash = 0; $hospitalBill_phic = 0; $hospitalBill_company = 0; $hospitalBill_gt = 0; $pf_cash = 0; $pf_phic = 0; $pf_company = 0; $pf_gt = 0; $room = preg_split("/\\-/", $ro->getRegistrationDetails_room()); $room1 = preg_split("/\\_/", $room[0]); $roomRate = $ro->selectNow("room", "rate", "Description", $ro->getRegistrationDetails_room()); ?> <script type="text/javascript"> function printF(printData) { var a = window.open ('', '',"status=1,scrollbars=1, width=auto,height=auto"); a.document.write(document.getElementById(printData).innerHTML.replace(/<a\/?[^>]+>/gi, '')); a.document.close(); a.focus(); a.print(); a.close(); } </script>
$timePickerDefault = ""; $buttonClass = ""; echo "<script type='text/javascript' src='../js/jquery-2.1.4.min.js'></script>"; echo "<script type='text/javascript' src='../js/wickedpicker/dist/wickedpicker.min.js'></script>"; echo "<link rel='stylesheet' href='../../bootstrap-3.3.6/css/bootstrap.css'></link>"; echo "<link rel='stylesheet' href='../js/wickedpicker/dist/wickedpicker.min.css'></link>"; if ($ro->selectNow("registrationDetails", "timeAdmission", "registrationNo", $registrationNo) != "") { $timePickerDefault = $ro->selectNow("registrationDetails", "timeAdmission", "registrationNo", $registrationNo); $buttonClass = "btn btn-danger"; } else { $timePickerDefault = $ro->selectNow("registrationDetails", "timeRegistered", "registrationNo", $registrationNo); $buttonClass = "btn btn-success"; } echo "\n\n<script>\n\t\$(document).ready(function(){\n\n\t\t\$('#thumbsup').hide();\n\n\t\t\$('#timeAdmission').wickedpicker({\n\t\t\tnow:'" . $timePickerDefault . "',\n\t\t\ttitle:'Time Admission',\n\t\t\ttwentyFour:true,\n\t\t});\n\n\t\t\$('#saveTimeBtn').click(function(){\n\n\t\t\tvar registrationNo = " . $registrationNo . ";\n\t\t\tvar timeAdmission = \$('#timeAdmission').val();\n\n\t\t\tvar data = {\n\t\t\t\tregistrationNo:registrationNo,\n\t\t\t\ttimeAdmission:timeAdmission\n\t\t\t};\n\n\t\t\t\$.post('timeAdmission.php',data,function(result){\n\t\t\t\t\$('#saveTimeBtn').hide();\n\t\t\t\t\$('#thumbsup').show();\n\t\t\t});\n\n\t\t});\n\n\t});\n</script>\n\n"; 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->selectNow("registrationDetails", "mgh", "registrationNo", $registrationNo) == "") { if ($ro->getRegistrationDetails_dateUnregistered() == "") { echo " <a href='http://" . $ro->getMyUrl() . "/COCONUT/patientProfile/discharged/discharge_new.php?registrationNo={$registrationNo}&protoType=Discharged&room=" . $ro->getRegistrationDetails_room() . "&username={$username}'><img src='http://" . $ro->getMyUrl() . "/COCONUT/myImages/unlock.jpeg'></a> <font size=2 color=red><b>" . $ro->getRegistrationDetails_type() . "</b></font> <a href='http://" . $ro->getMyUrl() . "/COCONUT/patientProfile/discharged/dischargedHistory.php?registrationNo={$registrationNo}' style='text-decoration:none;'><font size=1 color='blue'>View Discharged History</font></a><br>"; } else { echo " <a href='http://" . $ro->getMyUrl() . "/COCONUT/patientProfile/discharged/discharged.php?registrationNo={$registrationNo}&protoType=Undischarged&room=&username={$username}'><img src='http://" . $ro->getMyUrl() . "/COCONUT/myImages/locked1.jpeg'></a> <font size=2 color=red><b>" . $ro->getRegistrationDetails_type() . "</b></font> <a href='http://" . $ro->getMyUrl() . "/COCONUT/patientProfile/discharged/dischargedHistory.php?registrationNo={$registrationNo}' style='text-decoration:none;'><font size=1 color='blue'>View Discharged History</font></a><br>"; } } else { if ($ro->getRegistrationDetails_dateUnregistered() == "") { echo " <img src='http://" . $ro->getMyUrl() . "/COCONUT/myImages/unlock.jpeg'> <font size=2 color=red><b>" . $ro->getRegistrationDetails_type() . "</b></font> <a href='http://" . $ro->getMyUrl() . "/COCONUT/patientProfile/discharged/dischargedHistory.php?registrationNo={$registrationNo}' style='text-decoration:none;'><font size=1 color='blue'>View Discharged History</font></a><br>"; } else { echo " <img src='http://" . $ro->getMyUrl() . "/COCONUT/myImages/locked1.jpeg'> <font size=2 color=red><b>" . $ro->getRegistrationDetails_type() . "</b></font> <a href='http://" . $ro->getMyUrl() . "/COCONUT/patientProfile/discharged/dischargedHistory.php?registrationNo={$registrationNo}' style='text-decoration:none;'><font size=1 color='blue' >View Discharged History</font></a><br>"; } } //echo "<img src='http://".$ro->getMyUrl()."/COCONUT/myImages/verified.jpeg'>";
<?php include "../../myDatabase2.php"; $registrationNo = $_GET['registrationNo']; $dateCharge = $_GET['dateCharge']; $ro = new database2(); $ro->getPatientProfile($registrationNo); echo "<b>Name: </b>" . $ro->getPatientRecord_lastName() . ", " . $ro->getPatientRecord_firstName(); echo "<Br>"; echo "<b>Age/Sex: </b>" . $ro->getPatientRecord_age() . "/" . $ro->getPatientRecord_gender(); echo "<br>"; echo "<b>D.O.B</b>: " . $ro->getPatientRecord_birthDate(); echo "<br>"; echo "<b>WARD: </b>" . $ro->getRegistrationDetails_room(); echo "<Br>"; echo "<b>Physician:</b> " . $ro->getAttendingDoc($registrationNo, "Attending"); echo "<br>"; echo "<b>Diagnosis:</b> " . $ro->getRegistrationDetails_IxDx(); echo "<Br><Br>"; $ro->printLabRequest($registrationNo, $dateCharge);
<?php include "../../myDatabase2.php"; $registrationNo = $_GET['registrationNo']; $username = $_GET['username']; $ro = new database2(); $ro->getPatientProfile($registrationNo); $ro->setPatientRecord($ro->getRegistrationDetails_patientNo()); echo "\r\n<style type='text/css'>\r\n.informationLabel {\r\nfont-size:15px;\r\nfont-weight:bold;\r\n}\r\n\r\n.initialDiagnosis {\r\n\tborder: 1px solid #CCC;\r\n\tcolor: #000;\r\n\theight:80px;\r\n\twidth: 350px;\r\n\tpadding:4px 4px 4px 2px;\r\n}\r\n\r\n\r\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&room=" . $ro->getRegistrationDetails_room() . "&username={$username}'><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&room=&username={$username}'><img src='http://" . $ro->getMyUrl() . "/COCONUT/myImages/locked1.jpeg'></a> <font size=2 color=red><b>" . $ro->getRegistrationDetails_type() . "</b></font><br>"; } //echo "<img src='http://".$ro->getMyUrl()."/COCONUT/myImages/verified.jpeg'>"; echo "<font class='informationLabel'>Patient No:</font> " . $ro->getRegistrationDetails_patientNo(); if ($ro->getRegistrationDetails_type() != "OPD") { echo "<br><font class='informationLabel'>Registration No:</font> <font color=red>Admission-" . $ro->getRegistrationDetails_registrationNo() . "</font>"; } else { echo "<br><font class='informationLabel'>Registration No:</font> <font color='blue'>Outpatient-" . $ro->getRegistrationDetails_registrationNo() . "</font>"; } echo "<br><font class='informationLabel'>Age:</font> " . $ro->getPatientRecord_age(); echo "<br><font class='informationLabel'>Gender:</font> " . $ro->getPatientRecord_gender(); 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'>Senior ID#:</font> " . $ro->selectNow("registrationDetails", "seniorID", "registrationNo", $registrationNo); echo "<br><font class='informationLabel'>PhilHealth:</font> " . $ro->getPatientRecord_phic();
echo "<li><a href='http://" . $ro->getMyUrl() . "/COCONUT/patientProfile/patientChargesTitle.php?registrationNo={$registrationNo}&title=PROFESSIONAL FEE&username={$username}&show=&desc=' target='rightFrame'><font size=2>Doctor</font></a></li>"; echo "<li><a href='http://" . $ro->getMyUrl() . "/COCONUT/patientProfile/patientChargesTitle.php?registrationNo={$registrationNo}&title=LABORATORY&username={$username}&show=&desc=' target='rightFrame'><font size=2>Laboratory</font></a></li>"; echo "<li><a href='http://" . $ro->getMyUrl() . "/COCONUT/patientProfile/patientChargesTitle.php?registrationNo={$registrationNo}&title=RADIOLOGY&username={$username}&show=&desc=' target='rightFrame'><font size=2>Radiology</font></a></li>"; echo "<li><a href='http://" . $ro->getMyUrl() . "/COCONUT/patientProfile/patientChargesTitle.php?registrationNo={$registrationNo}&title=ENDOSCOPY&username={$username}&show=&desc=' target='rightFrame'><font size=2>Endoscopy</font></a></li>"; echo "<li><a href='http://" . $ro->getMyUrl() . "/COCONUT/patientProfile/patientChargesTitle.php?registrationNo={$registrationNo}&title=MEDICINE&username={$username}&show=&desc=' target='rightFrame'><font size=2>Medicine</font></a></li>"; echo "<li><a href='http://" . $ro->getMyUrl() . "/COCONUT/patientProfile/patientChargesTitle.php?registrationNo={$registrationNo}&title=SUPPLIES&username={$username}&show=&desc=' target='rightFrame'><font size=2>Supplies</font></a></li>"; echo "<li><a href='http://" . $ro->getMyUrl() . "/COCONUT/patientProfile/patientChargesTitle.php?registrationNo={$registrationNo}&title=MISCELLANEOUS&username={$username}&show=&desc=' target='rightFrame'><font size=2>Miscellaneous</font></a></li>"; echo "<li><a href='http://" . $ro->getMyUrl() . "/COCONUT/patientProfile/patientChargesTitle.php?registrationNo={$registrationNo}&title=OR/DR/ER Fee&username={$username}&show=&desc=' target='rightFrame'><font size=2>OR/DR/ER/ICU Fee</font></a></li>"; echo "<li><a href='http://" . $ro->getMyUrl() . "/COCONUT/patientProfile/patientChargesTitle.php?registrationNo={$registrationNo}&title=Oxygen&username={$username}&show=&desc=' target='rightFrame'><font size=2>Oxygen</font></a></li>"; //check if rehab is activated if ($ro->selectNow("reportHeading", "information", "reportName", "rehab") == "Activate") { echo "<li><a href='http://" . $ro->getMyUrl() . "/COCONUT/patientProfile/patientChargesTitle.php?registrationNo={$registrationNo}&title=REHAB&username={$username}&show=&desc=' target='rightFrame'><font size=2>Rehab</font></a></li>"; } else { } echo "<li><a href='http://" . $ro->getMyUrl() . "/COCONUT/patientProfile/patientChargesTitle.php?registrationNo={$registrationNo}&title=OTHERS&username={$username}&show=&desc=' target='rightFrame'><font size=2>Others</font></a></li>"; if ($ro->getRegistrationDetails_room() != "OPD_OPD") { // enable room echo "<li><a href='http://" . $ro->getMyUrl() . "/COCONUT/patientProfile/patientChargesTitle.php?registrationNo={$registrationNo}&title=Room And Board&username={$username}&show=&desc=' target='rightFrame'><font size=2>Room</font></a></li>"; } else { //disable room echo ""; } echo "</ul>"; echo "<ul>"; /////////// LOCKED ACCOUNT KAPAG CONSUMED NA UNG LIMIT //////////////////////// if ($ro->selectNow("registrationDetails", "mgh", "registrationNo", $registrationNo) == "") { // enable charges kung hindi pa MGH if ($ro->getRegistrationDetails_type() == "OR/DR" || $ro->getRegistrationDetails_type() == "OPD") { echo "<li><a href='http://" . $ro->getMyUrl() . "/COCONUT/patientProfile/chargesCartPassword.php?registrationNo=" . $ro->getRegistrationDetails_registrationNo() . "&username={$username}&room=" . $ro->getRegistrationDetails_room() . "&batchNo={$batchNo}' target='rightFrame'><font size=2>Charges Cart</font></a></li>"; } else { $totalBalanceNow = $ro->getTotal("cashUnpaid", "", $registrationNo) - $ro->getAllPayment($registrationNo);
<?php include "../../../myDatabase2.php"; $registrationNo = $_GET['registrationNo']; $chargeNo = $_GET['chargeNo']; $count = count($chargeNo); $username = $_GET['username']; $ro = new database2(); $ro->getPatientProfile($registrationNo); $roomType = $ro->selectNow("room", "type", "Description", $ro->getRegistrationDetails_room()); $sp = 0; //room Selling PRice if ($roomType == "WARD") { $sp = 0.16; } else { $sp = 0.41; } //public function addCharges_cash($status,$registrationNo,$chargesCode,$description,$sellingPrice,$discount,$total,$cashUnpaid,$phic,$company,$timeCharge,$dateCharge,$chargeBy,$service,$title,$paidVia,$cashPaid,$batchNo,$quantity,$inventoryFrom,$branch,$room) for ($x = 0; $x < $count; $x++) { $gt = round($ro->selectNow("generatorCharge", "hours", "chargeNo", $chargeNo[$x]) * $sp); //totalPrice $ro->addCharges_cash("UNPAID", $registrationNo, "330", "Generator Charge (" . $ro->selectNow("generatorCharge", "dateStart", "chargeNo", $chargeNo[$x]) . ")", $sp, "0", $gt, $gt, "0", "0", $ro->getSynapseTime(), date("M_d_Y"), $username, "Electricity", "GENERATOR_CHARGE", "Cash", "0", "0", $ro->selectNow("generatorCharge", "hours", "chargeNo", $chargeNo[$x]), "", "Pagadian", $ro->getRegistrationDetails_room()); } header("Location: /COCONUT/patientProfile/SOAoption/summary.php?registrationNo={$registrationNo}&username={$username}"); ?>
echo "<Td> </tD>"; echo "<Td> </tD>"; echo "<Td> </tD>"; echo "<Td> </tD>"; echo "<Td> </tD>"; echo "<Td> </tD>"; echo "<Td> </tD>"; echo "<Td> </tD>"; echo "<Td> </tD>"; echo "<Td> </tD>"; echo "<Td> </tD>"; echo "<Td> </tD>"; echo "<Td> </tD>"; echo "<Td> </tD>"; echo "<Td><b>ROOM:</b></tD>"; $romz = preg_split("/\\-/", $ro->getRegistrationDetails_room()); echo "<td>" . $romz[0] . "</td>"; echo "</tr>"; echo "<tr>"; echo "<Td><b>PHYSICIAN:</b> </tD>"; echo "<tD>" . $ro->getAttendingDoc($registrationNo, "Attending") . "</tD>"; echo "</tr>"; echo "</table>"; echo "<Br><Br><Br><Br>"; echo "<Table border=1 cellspacing=0>"; echo "<tr>"; echo "<th> HOSPITAL CHARGES </th>"; echo "<th> </th>"; echo "<th> </th>"; echo "<th> ACTUAL </th>"; echo "<th> MEDICARE </th>";
<?php include "../../myDatabase2.php"; $registrationNo = $_GET['registrationNo']; $dateCharge = $_GET['dateCharge']; $ro = new database2(); $ro->getPatientProfile($registrationNo); echo "<Br>"; echo "<table border=0 width='70%'>"; echo "<Tr>"; echo "<td><b>Patient ID:</b> " . $ro->getRegistrationDetails_patientNo() . "</td>"; echo "<TD><b>Registration#:</b> {$registrationNo}</tD>"; echo "</tr>"; echo "<Tr>"; echo "<td><b>Patients Name:</b> " . $ro->getPatientRecord_lastName() . ", " . $ro->getPatientRecord_firstName() . " " . $ro->getPatientRecord_middleName() . "</td>"; echo "<td><b>Age:</b> " . $ro->getPatientRecord_Age() . "</td>"; echo "</tr>"; echo "<tr>"; echo "<td><b>D.O.B:</b> " . $ro->getPatientRecord_birthDate() . "</td>"; echo "<tD><b>Sex:</b> " . $ro->getPatientRecord_Gender() . "</td>"; echo "</tr>"; echo "<tr>"; echo "<td><b>Physician:</b> " . $ro->getAttendingDoc($registrationNo, "ATTENDING") . "</td>"; echo "<td><b>Room:</b> " . $ro->getRegistrationDetails_room() . "</td>"; echo "</tr>"; echo "</table>"; echo "<br>"; $ro->printLabRequest($registrationNo, $dateCharge);
*/ echo "<li><a href='http://" . $ro->getMyUrl() . "/COCONUT/patientProfile/patientCharges.php?registrationNo=" . $ro->getRegistrationDetails_registrationNo() . "&username={$username}&show=All&desc=' target='rightFrame'><font size=2>Charges</font></a></li>"; echo "<li><a href='http://" . $ro->getMyUrl() . "/COCONUT/patientProfile/patientChargesTitle.php?registrationNo={$registrationNo}&title=PROFESSIONAL FEE&username={$username}&show=&desc=' target='rightFrame'><font size=2>Doctor</font></a></li>"; echo "<li><a href='http://" . $ro->getMyUrl() . "/COCONUT/patientProfile/patientChargesTitle.php?registrationNo={$registrationNo}&title=LABORATORY&username={$username}&show=&desc=' target='rightFrame'><font size=2>Laboratory</font></a></li>"; echo "<li><a href='http://" . $ro->getMyUrl() . "/COCONUT/patientProfile/patientChargesTitle.php?registrationNo={$registrationNo}&title=ULTRASOUND&username={$username}&show=&desc=' target='rightFrame'><font size=2>Ultrasound</font></a></li>"; echo "<li><a href='http://" . $ro->getMyUrl() . "/COCONUT/patientProfile/patientChargesTitle.php?registrationNo={$registrationNo}&title=XRAY&username={$username}&show=&desc=' target='rightFrame'><font size=2>XRAY</font></a></li>"; echo "<li><a href='http://" . $ro->getMyUrl() . "/COCONUT/patientProfile/patientChargesTitle.php?registrationNo={$registrationNo}&title=MEDICINE&username={$username}&show=&desc=' target='rightFrame'><font size=2>Medicine</font></a></li>"; echo "<li><a href='http://" . $ro->getMyUrl() . "/COCONUT/patientProfile/patientChargesTitle.php?registrationNo={$registrationNo}&title=SUPPLIES&username={$username}&show=&desc=' target='rightFrame'><font size=2>Supplies</font></a></li>"; /* //check if rehab is activated if( $ro->selectNow("reportHeading","information","reportName","rehab") == "Activate" ) { echo "<li><a href='http://".$ro->getMyUrl()."/COCONUT/patientProfile/patientChargesTitle.php?registrationNo=$registrationNo&title=REHAB&username=$username&show=&desc=' target='rightFrame'><font size=2>Rehab</font></a></li>"; }else { } */ //echo "<li><a href='http://".$ro->getMyUrl()."/COCONUT/patientProfile/patientChargesTitle.php?registrationNo=$registrationNo&title=OTHERS&username=$username&show=&desc=' target='rightFrame'><font size=2>Others</font></a></li>"; if ($ro->getRegistrationDetails_room() != "OPD_OPD") { // enable room echo "<li><a href='http://" . $ro->getMyUrl() . "/COCONUT/patientProfile/patientChargesTitle.php?registrationNo={$registrationNo}&title=Room And Board&username={$username}&show=&desc=' target='rightFrame'><font size=2>Room</font></a></li>"; } else { //disable room echo ""; } if ($ro->selectNow("registrationDetails", "type", "registrationNo", $registrationNo) == 'OPD') { echo "<li><a href='http://" . $ro->getMyUrl() . "/COCONUT/patientProfile/patientChargesTitle.php?registrationNo={$registrationNo}&title=DERMA&username={$username}&show=&desc=' target='rightFrame'><font size=2>Derma</font></a></li>"; } echo "</ul>"; echo "<ul>"; if ($ro->getRegistrationDetails_dateUnregistered() == "") { if ($from == "PHARMACY") { echo "<li><a href='http://" . $ro->getMyUrl() . "/COCONUT/patientProfile/ECART/cartHandler.php?registrationNo=" . $ro->getRegistrationDetails_registrationNo() . "&username={$username}&room=" . $ro->getRegistrationDetails_room() . "&batchNo={$batchNo}' target='rightFrame'><font size=2>Charges Cart</font></a></li>"; } else {