} /* if($ro->getRegistrationDetails_room() != "OPD_OPD") { echo "<li><a href='http://".$ro->getMyUrl()."/COCONUT/patientProfile/creditLimit/viewCreditLimit.php?registrationNo=$registrationNo&username=$username' target='rightFrame'><font size=2>Credit Limit</font></a></li>"; }else { echo ""; } */ 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=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=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=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>"; if ($ro->getRegistrationDetails_type() == "IPD" && $ro->selectNow("reportHeading", "information", "reportName", "Credit Limit") == "Activate" && $ro->selectNow("registrationDetails", "LimitCASH", "registrationNo", $registrationNo) != "") { //setter pra sa allowed credit limit ng ipd //$ro->viewCreditLimit_setter($registrationNo,"PATIENT","cashUnpaid",$username); //current balance ng patient //$current = $ro->getCurrentCredit($registrationNo,$ro->viewCreditLimit_setter_limitTo(),$ro->viewCreditLimit_setter_limitVia()) - $ro->getCurrentPaid($registrationNo,$ro->viewCreditLimit_setter_limitTo(),$ro->viewCreditLimit_setter_limitVia()); if ($ro->selectNow("registrationDetails", "LimitCASH", "registrationNo", $registrationNo) > $ro->may_naibayad_naba_ang_patient($registrationNo)) { //enable charges
<?php include "../../../myDatabase1.php"; $packageNo = $_GET['packageNo']; $countz = count($packageNo); $registrationNo = $_GET['registrationNo']; $username = $_GET['username']; $ro = new database1(); $ro->getPatientProfile($registrationNo); for ($x = 0; $x < $countz; $x++) { $packageIncluded = preg_split("/\\_/", $ro->selectNow("hospitalPackage", "packageIncluded_description", "packageNo", $packageNo[$x])); //addCharges_cash($status,$registrationNo,$chargesCode,$description,$sellingPrice,$discount,$total,$cashUnpaid,$phic,$company,$timeCharge,$dateCharge,$chargeBy,$service,$title,$paidVia,$cashPaid,$batchNo,$quantity,$inventoryFrom,$branch,$room) if ($packageIncluded[2] != "MEDICINE" || $packageIncluded[2] != "PROFESSIONAL FEE") { $services = "Examination"; } else { if ($packageIncluded[2] == "MEDICINE") { $services = "Medication"; } else { $services = "PROFESSIONAL FEE"; } } $ro->addCharges_cash("UNPAID", $registrationNo, $packageIncluded[1], $packageIncluded[0], "0.00", "0.00", "0.00", "0.00", "0.00", "0.00", $ro->getSynapseTime(), date("M_d_Y"), $username, $services, $packageIncluded[2], "Cash", "0.00", "package", $ro->selectNow("hospitalPackage", "packageIncluded_qty", "packageNo", $packageNo[$x]), "", $ro->getRegistrationDetails_branch(), $ro->getRegistrationDetails_room()); } echo "\n<script type='text/javascript'>\nwindow.parent.location.reload();\n</script>\n\n";
echo "\n<style type='text/css'>\n\n.txtArea {\n\tborder: 1px solid #000;\n\tcolor: #000;\n\theight: auto;\n\twidth:900px;\n\tpadding:4px 4px 4px 5px;\n\tfont-size:20px;\n}\n\n</style>\n"; $ro->getPatientProfile($registrationNo); $ro->coconutFormStart("get", "radioReport_update.php"); $ro->coconutHidden("registrationNo", $registrationNo); $ro->coconutHidden("itemNo", $itemNo); echo "<table border=0 width='160%'>"; echo "<tr>"; echo "<td><b>Name:</b> " . $ro->getPatientRecord_lastName() . ", " . $ro->getPatientRecord_firstName() . "</td>"; echo "<td><b>Date:</b> " . $ro->selectNow("radioSavedReport", "date", "itemNo", $itemNo) . "</td>"; echo "</tr>"; echo "<tr>"; echo "<td><b>Age/Sex</b> " . $ro->getPatientRecord_age() . "/" . $ro->getPatientRecord_gender() . "</td>"; echo "<td>Physician: <b>" . $ro->selectNow("radioSavedReport", "physician", "itemNo", $itemNo) . "</b></td>"; echo "</tr>"; echo "<tr>"; echo "<td><b>Room:</b> " . $ro->getRegistrationDetails_room() . "</td>"; echo "<td>Examination: <b>{$description}</b></td>"; echo "</tr>"; echo "</table>"; echo "<textarea id='report' name='radioReport' class='txtArea'>"; echo $ro->doubleSelectNow("radioSavedReport", "radioReport", "registrationNo", $registrationNo, "itemNo", $itemNo); echo "</textarea>"; echo "<br><br>"; $ro->coconutButton("edit"); $ro->coconutFormStop(); ?> <script type="text/javascript"> CKEDITOR.replace( 'report',
$registrationNo = $_GET['registrationNo']; $username = $_GET['username']; $batchNo = $_GET['batchNo']; $unitcost = $_GET['unitcost']; $Added = $_GET['Added']; $ro = new database1(); $ro->getPatientProfile($registrationNo); for ($x = 0; $x < $countz; $x++) { $packageIncluded = preg_split("/\\_/", $ro->selectNow("hospitalPackage", "packageIncluded_description", "packageNo", $packageNo[$x])); $itemQTY = $ro->selectNow("hospitalPackage", "packageIncluded_qty", "packageNo", $packageNo[$x]); //addCharges_cash($status,$registrationNo,$chargesCode,$description,$sellingPrice,$discount,$total,$cashUnpaid,$phic,$company,$timeCharge,$dateCharge,$chargeBy,$service,$title,$paidVia,$cashPaid,$batchNo,$quantity,$inventoryFrom,$branch,$room) $sellingPrice; if ($packageIncluded[2] == "LABORATORY" || $packageIncluded[2] == "RADIOLOGY" || $packageIncluded[2] == "ECG" || $packageIncluded[2] == "OR/DR/ER Fee" || $packageIncluded[2] == "REHAB") { $services = "Examination"; $chargesPrice = $ro->selectNow("availableCharges", "PRIVATE", "chargesCode", $packageIncluded[1]); $ro->addCharges_cash("UNPAID", $registrationNo, $packageIncluded[1], $packageIncluded[0], $chargesPrice, "0.00", $chargesPrice, $chargesPrice, "0.00", "0.00", $ro->getSynapseTime(), date("Y-m-d"), $username, $services, $packageIncluded[2], "Cash", "0.00", $batchNo, $ro->selectNow("hospitalPackage", "packageIncluded_qty", "packageNo", $packageNo[$x]), $ro->selectNow("inventory", "inventoryLocation", "inventoryCode", $packageIncluded[1]), $ro->getRegistrationDetails_branch(), $ro->getRegistrationDetails_room()); } else { if ($packageIncluded[2] == "MEDICINE") { $services = "Medication"; $medPrice = preg_split("/\\_/", $ro->selectNow("hospitalPackage", "Added", "packageNo", $packageNo[$x])); //original //$ro->addCharges_cash("UNPAID",$registrationNo,$packageIncluded[1],$packageIncluded[0],$medPrice[1],"0.00",$medPrice[1],$medPrice[1],"0.00","0.00",$ro->getSynapseTime(),date("Y-m-d"),$username,$services,$packageIncluded[2],"Cash","0.00",$batchNo,$ro->selectNow("hospitalPackage","packageIncluded_qty","packageNo",$packageNo[$x]),"PHARMACY",$ro->getRegistrationDetails_branch(),$ro->getRegistrationDetails_room()); if ($ro->selectNow("inventory", "autoDispense", "inventoryCode", $packageIncluded[1]) == "yes") { //check autoDispense $currentQTY = $ro->selectNow("inventory", "quantity", "inventoryCode", $packageIncluded[1]); // current qty ng meds sa inventory $newQTY = $currentQTY - $itemQTY; // less sa inventory as in qty after ibawas ung desired qty $ro->editNow("inventory", "inventoryCode", $packageIncluded[1], "quantity", $newQTY); // update qty sa database $ro->addCharges_cash_autoDispense("UNPAID", $registrationNo, $packageIncluded[1], $packageIncluded[0], $medPrice[1], "0.00", "0.00", "0.00", "0.00", "0.00", $ro->getSynapseTime(), date("Y-m-d"), $username, $services, $packageIncluded[2], "Cash", "0.00", $batchNo, $itemQTY, $ro->selectNow("inventory", "inventoryLocation", "inventoryCode", $packageIncluded[1]), $ro->getRegistrationDetails_branch(), $ro->getRegistrationDetails_room(), "dispensedBy_" . $username, $ro->getSynapseTime());
$countz = count($packageNo); $registrationNo = $_GET['registrationNo']; $username = $_GET['username']; $batchNo = $_GET['batchNo']; $unitcost = $_GET['unitcost']; $Added = $_GET['Added']; $ro = new database1(); $ro->getPatientProfile($registrationNo); for ($x = 0; $x < $countz; $x++) { $packageIncluded = preg_split("/\\_/", $ro->selectNow("hospitalPackage", "packageIncluded_description", "packageNo", $packageNo[$x])); //addCharges_cash($status,$registrationNo,$chargesCode,$description,$sellingPrice,$discount,$total,$cashUnpaid,$phic,$company,$timeCharge,$dateCharge,$chargeBy,$service,$title,$paidVia,$cashPaid,$batchNo,$quantity,$inventoryFrom,$branch,$room) $sellingPrice; if ($packageIncluded[2] == "LABORATORY" || $packageIncluded[2] == "RADIOLOGY" || $packageIncluded[2] == "ECG" || $packageIncluded[2] == "OR/DR/ER/ Fee" || $packageIncluded[2] == "REHAB") { $services = "Examination"; $chargesPrice = $ro->selectNow("availableCharges", "PRIVATE", "chargesCode", $packageIncluded[1]); $ro->addCharges_cash("UNPAID", $registrationNo, $packageIncluded[1], $packageIncluded[0], $chargesPrice, "0.00", $chargesPrice, $chargesPrice, "0.00", "0.00", $ro->getSynapseTime(), date("Y-m-d"), $username, $services, $packageIncluded[2], "Cash", "0.00", $batchNo, $ro->selectNow("hospitalPackage", "packageIncluded_qty", "packageNo", $packageNo[$x]), "PHARMACY", $ro->getRegistrationDetails_branch(), $ro->getRegistrationDetails_room()); } else { if ($packageIncluded[2] == "MEDICINE") { $services = "Medication"; $medPrice = preg_split("/\\_/", $ro->selectNow("hospitalPackage", "Added", "packageNo", $packageNo[$x])); $ro->addCharges_cash("UNPAID", $registrationNo, $packageIncluded[1], $packageIncluded[0], $medPrice[1], "0.00", $medPrice[1], $medPrice[1], "0.00", "0.00", $ro->getSynapseTime(), date("Y-m-d"), $username, $services, $packageIncluded[2], "Cash", "0.00", $batchNo, $ro->selectNow("hospitalPackage", "packageIncluded_qty", "packageNo", $packageNo[$x]), "PHARMACY", $ro->getRegistrationDetails_branch(), $ro->getRegistrationDetails_room()); } else { if ($packageIncluded[2] == "SUPPLIES") { $services = "Others"; $supPrice = $ro->selectNow("hospitalPackage", "unitcost", "packageNo", $packageNo[$x]); $ro->addCharges_cash("UNPAID", $registrationNo, $packageIncluded[1], $packageIncluded[0], $supPrice, "0.00", $supPrice, $supPrice, "0.00", "0.00", $ro->getSynapseTime(), date("Y-m-d"), $username, $services, $packageIncluded[2], "Cash", "0.00", $batchNo, $ro->selectNow("hospitalPackage", "packageIncluded_qty", "packageNo", $packageNo[$x]), "PHARMACY", $ro->getRegistrationDetails_branch(), $ro->getRegistrationDetails_room()); } else { $services = "PROFESSIONAL FEE"; $sellingPrice = 0; } }
<?php include "../../myDatabase1.php"; $registrationNo = $_GET['registrationNo']; $ro = new database1(); $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() . "'><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='><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'>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'>PhilHealth:</font> " . $ro->getPatientRecord_phic(); echo "<br><font class='informationLabel'>PhilHealth Type:</font> " . $ro->getPHICtype_patientRecord(); 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'>Case Type:</font> <a href='#' style='text-decoration:none; color:black;'>" . $ro->getRegistrationDetails_caseType() . "</a>"; echo "<br><font class='informationLabel'>Package:</font> <a href='#' style='text-decoration:none; color:black;'>" . $ro->getRegistrationDetails_package() . "</a>";
<?php include "../../myDatabase1.php"; $registrationNo = $_GET['registrationNo']; $username = $_GET['username']; echo "Pls Wait While Updating the S.O.A"; $ro = new database1(); $ro->getPatientProfile($registrationNo); $room = preg_split("/\\_/", $ro->getRegistrationDetails_room()); $dateIn = preg_split("/\\_/", $ro->getRegistrationDetails_dateRegistered()); //$dateIn = preg_split ("/\_/", $ro->doubleSelectNow("patientCharges","dateCharge","registrationNo",$registrationNo,"description",$ro->getRegistrationDetails_room()) ); $dateOut = preg_split("/\\_/", $ro->getRegistrationDetails_dateUnregistered()); if ($dateIn[0] == $dateOut[0]) { //count days kapag magkapareho ung month ng admission at discharge $totalDays = $dateOut[1] - $dateIn[1]; } else { //count days kapag magkaiba ung month ng admission at discharge if ($dateIn[0] == "Dec") { $totalDays = $dateOut[1] + 31 - $dateIn[1]; } else { if ($dateIn[0] == "Jan") { $totalDays = $dateOut[1] + 31 - $dateIn[1]; } else { if ($dateIn[0] == "Feb") { $totalDays = $dateOut[1] + 28 - $dateIn[1]; } else { if ($dateIn[0] == "Mar") { $totalDays = $dateOut[1] + 31 - $dateIn[1]; } else { if ($dateIn[0] == "Apr") { $totalDays = $dateOut[1] + 30 - $dateIn[1];
echo "<td><b>Name:</b></td>"; echo "<td><input type='text' class='linez' value='" . $ro->getPatientRecord_lastName() . ", " . $ro->getPatientRecord_firstName() . " " . $ro->getPatientRecord_middleName() . "'></td>"; echo "<td><b>Age/Sex:</b></td>"; echo "<td><input type='text' class='linez' value='" . $ro->getPatientRecord_age() . "/" . $ro->getPatientRecord_gender() . "'></td>"; echo "</tr>"; echo "<tr>"; echo "<Td><b>Date of Birth:</td>"; echo "<td></b><input type='text' class='linez' value='" . $ro->getPatientRecord_birthDate() . "'></tD>"; echo "<td><b>Status:</td>"; echo "<td></b><input type='text' class='linez' value='" . $ro->getPatientRecord_civilStatus() . "'></tD>"; echo "</tr>"; echo "<tr>"; echo "<Td><b>Physician:</b></td>"; echo "<td><input type='text' class='linez' value='" . $ro->getAttendingDoc($registrationNo, "ATTENDING") . "'></tD>"; echo "<Td><b>Room:</b></td>"; echo "<td> <input type='text' class='linez' value='" . $ro->getRegistrationDetails_room() . "'></tD>"; echo "</tr>"; echo "</table>"; echo "</center>"; echo "<Br>"; echo "<center>"; echo $ro->ENCRYPT_DECRYPT($ro->doubleSelectNow_notDeleted("labSavedResult", "result", "itemNo", $itemNo, "registrationNo", $registrationNo)); echo "</center>"; if ($ro->selectNow("labSavedResult", "morphology", "itemNo", $itemNo) != "") { echo "<b>Morphology: </b>" . $ro->selectNow("labSavedResult", "morphology", "itemNo", $itemNo); } else { } echo "<Br>"; if ($ro->selectNow("labSavedResult", "remarks", "itemNo", $itemNo) != "") { echo "<b>Remarks: </b>" . $ro->selectNow("labSavedResult", "remarks", "itemNo", $itemNo); } else {