Exemplo n.º 1
0
<?php

include "../../../myDatabase1.php";
$registrationNo = $_GET['registrationNo'];
$countz = count($registrationNo);
$month = $_GET['month'];
$day = $_GET['day'];
$year = $_GET['year'];
$ro = new database1();
for ($x = 0; $x < $countz; $x++) {
    $ro->editNow("registrationDetails", "registrationNo", $registrationNo[$x], "mgh", "");
    $ro->editNow("registrationDetails", "registrationNo", $registrationNo[$x], "mgh_date", "");
}
$ro->gotoPage("http://" . $ro->getMyUrl() . "/COCONUT/patientProfile/MGH/showMGH.php?month={$month}&day={$day}&year={$year}&username=");
Exemplo n.º 2
0
<?php

include "../../myDatabase1.php";
$packageName = $_GET['packageName'];
$packagePrice = $_GET['packagePrice'];
$phicPrice = $_GET['phicPrice'];
$ro = new database1();
if ($packageName == "") {
    $ro->getBack("Pls Type the Package Name");
} else {
    if ($packagePrice == "") {
        $ro->getBack("Pls Type the Package Price");
    } else {
        echo "\n\n<frameset cols='150%,150%' framespacing='0' border='1'>\n   <frame src='http://" . $ro->getMyUrl() . "/COCONUT/hospitalPackage/searchCharges.php?packageName={$packageName}&packagePrice={$packagePrice}&phicPrice={$phicPrice}'  scrolling=no frameborder=1 framespacing=1 name='selection' />\n   <frame src='http://" . $ro->getMyUrl() . "/COCONUT/hospitalPackage/showAddedPackage_update.php?packageName={$packageName}' />\n\n</frameset>\n\n\n";
    }
}
$username = $_GET['username'];
$ro = new database1();
$ro->getBatchNo();
$myFile = $ro->getReportInformation("homeRoot") . "/COCONUT/trackingNo/batchNo.dat";
$fh = fopen($myFile, 'r');
$batchNo = fread($fh, 100);
fclose($fh);
echo "\r\n\r\n<style type='text/css'>\r\na \r\n{ \r\ntext-decoration:none;\r\ncolor:black;\r\nfont-weight:bold;\r\n }\r\nul { list-style-type:none; }\r\ndisplay: block;\r\n</style>\r\n\r\n";
$ro->getPatientProfile($registrationNo);
if ($ro->selectNow("registeredUser", "module", "username", $ro->getRegistrationDetails_registeredBy()) == "MI") {
    echo "<br><hr><font size=2 color=blue>" . $ro->getPatientRecord_lastName() . " " . $ro->getPatientRecord_firstName() . " " . $ro->getPatientRecord_middleName() . ".</font><hr>";
} else {
    echo "<br><hr><font size=2 color=red>" . $ro->getPatientRecord_lastName() . " " . $ro->getPatientRecord_firstName() . " " . $ro->getPatientRecord_middleName() . "</font><hr>";
}
echo "<ul>";
echo "<li><a href='http://" . $ro->getMyUrl() . "/COCONUT/patientProfile/patientProfile_right.php?registrationNo=" . $ro->getRegistrationDetails_registrationNo() . "' target='rightFrame'><font size=2>Information</font></a></li>";
if ($ro->getRegistrationDetails_caseType() != "") {
    echo "<li><a href='http://" . $ro->getMyUrl() . "/COCONUT/patientProfile/phicLimit/show_phicLimit.php?registrationNo={$registrationNo}&casetype=" . $ro->getRegistrationDetails_caseType() . "' target='rightFrame'><font size=2>Credit Limit</font></a></li>";
} else {
    echo "";
}
/*
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>";
Exemplo n.º 4
0
<?php

include "../../../myDatabase1.php";
$fromMonth = $_GET['fromMonth'];
$fromDay = $_GET['fromDay'];
$fromYear = $_GET['fromYear'];
$toMonth = $_GET['toMonth'];
$toDay = $_GET['toDay'];
$toYear = $_GET['toYear'];
$type = $_GET['type'];
$ro = new database1();
echo "<center><font size=6>" . $ro->getReportInformation("hmoSOA_name") . "</font></center>";
echo "<center><font size=4>" . $ro->getReportInformation("hmoSOA_address") . "</font></center>";
echo "<br><br>";
echo "<center><b><font size=4>{$type}</font></b></center>";
echo "<center><a href='http://" . $ro->getMyUrl() . "/COCONUT/philhealth/reconciled/reconcillation_update.php?month={$fromMonth}&day={$fromDay}&year={$fromYear}&month1={$toMonth}&day1={$toDay}&year1={$toYear}&type={$type}' style='text-decoration:none; color:black;' target='_blank'>(PhilHealth Receivables)</a></center>";
echo "<br>";
echo "<center><b>(<font size=3>{$fromMonth} {$fromDay}, {$fromYear} - {$toMonth} {$toDay}, {$toYear}</font>)</b></center>";
$ro->getPhilHeealthReceivables($fromMonth, $fromDay, $fromYear, $toMonth, $toDay, $toYear, $type);
Exemplo n.º 5
0
<?php

include "../../myDatabase1.php";
$description = $_GET['description'];
$chargesCode = $_GET['chargesCode'];
$ro = new database1();
$ro->coconutDesign();
echo "<Br><Br><Br>";
$ro->coconutFormStart("post", "http://" . $ro->getMyUrl() . "/COCONUT/graphicalReport/bestSelling/fastMovingChart.php");
$ro->coconutHidden("description", $description);
$ro->coconutHidden("chargesCode", $chargesCode);
$ro->coconutBoxStart("500", "119");
echo "<br>";
echo "<table border=0>";
echo "<tr>";
echo "<Td>Month&nbsp;</tD>";
echo "<td>";
$ro->coconutComboBoxStart_short("month");
echo "<option value='" . date("m") . "'>" . date("M") . "</option>";
echo "<option value='01'>Jan</option>";
echo "<option value='02'>Feb</option>";
echo "<option value='03'>Mar</option>";
echo "<option value='04'>Apr</option>";
echo "<option value='05'>May</option>";
echo "<option value='06'>Jun</option>";
echo "<option value='07'>Jul</option>";
echo "<option value='08'>Aug</option>";
echo "<option value='09'>Sep</option>";
echo "<option value='10'>Oct</option>";
echo "<option value='11'>Nov</option>";
echo "<option value='12'>Dec</option>";
Exemplo n.º 6
0
//$ro->doubleEditNow("patientCharges","registrationNo",$registrationNo,"itemNo",$itemNo,"status","PAID");
//$ro->doubleEditNow("patientCharges","registrationNo",$registrationNo,"itemNo",$itemNo,"cashUnpaid","0.00");
if ($ro->selectNow("patientCharges", "title", "itemNo", $itemNo) == "MEDICINE") {
    $price = preg_split("/\\_/", $ro->selectNow("inventory", "Added", "inventoryCode", $ro->selectNow("patientCharges", "chargesCode", "itemNo", $itemNo)));
    $totalPay = $price[1] * $ro->selectNow("patientCharges", "quantity", "itemNo", $itemNo);
    $ro->doubleEditNow("patientCharges", "registrationNo", $registrationNo, "itemNo", $itemNo, "status", "PAID");
    $ro->doubleEditNow("patientCharges", "registrationNo", $registrationNo, "itemNo", $itemNo, "cashUnpaid", "0.00");
    $ro->doubleEditNow("patientCharges", "registrationNo", $registrationNo, "itemNo", $itemNo, "phic", "0.00");
    $ro->doubleEditNow("patientCharges", "registrationNo", $registrationNo, "itemNo", $itemNo, "company", "0.00");
    $ro->doubleEditNow("patientCharges", "registrationNo", $registrationNo, "itemNo", $itemNo, "cashPaid", $totalPay);
    $ro->doubleEditNow("patientCharges", "registrationNo", $registrationNo, "itemNo", $itemNo, "sellingPrice", $price[1]);
    $ro->doubleEditNow("patientCharges", "registrationNo", $registrationNo, "itemNo", $itemNo, "total", $totalPay);
    $ro->doubleEditNow("patientCharges", "registrationNo", $registrationNo, "itemNo", $itemNo, "datePaid", date("Y-m-d"));
    $ro->doubleEditNow("patientCharges", "registrationNo", $registrationNo, "itemNo", $itemNo, "timePaid", $ro->getSynapseTime());
    $ro->doubleEditNow("patientCharges", "registrationNo", $registrationNo, "itemNo", $itemNo, "paidBy", $username);
} else {
    //supplies
    $totalPay = $ro->selectNow("inventory", "unitcost", "inventoryCode", $ro->selectNow("patientCharges", "chargesCode", "itemNo", $itemNo)) * $ro->selectNow("patientCharges", "quantity", "itemNo", $itemNo);
    $ro->doubleEditNow("patientCharges", "registrationNo", $registrationNo, "itemNo", $itemNo, "status", "PAID");
    $ro->doubleEditNow("patientCharges", "registrationNo", $registrationNo, "itemNo", $itemNo, "cashUnpaid", "0.00");
    $ro->doubleEditNow("patientCharges", "registrationNo", $registrationNo, "itemNo", $itemNo, "phic", "0.00");
    $ro->doubleEditNow("patientCharges", "registrationNo", $registrationNo, "itemNo", $itemNo, "company", "0.00");
    $ro->doubleEditNow("patientCharges", "registrationNo", $registrationNo, "itemNo", $itemNo, "cashPaid", $totalPay);
    $ro->doubleEditNow("patientCharges", "registrationNo", $registrationNo, "itemNo", $itemNo, "sellingPrice", $ro->selectNow("inventory", "unitcost", "inventoryCode", $ro->selectNow("patientCharges", "chargesCode", "itemNo", $itemNo)));
    $ro->doubleEditNow("patientCharges", "registrationNo", $registrationNo, "itemNo", $itemNo, "total", $totalPay);
    $ro->doubleEditNow("patientCharges", "registrationNo", $registrationNo, "itemNo", $itemNo, "datePaid", date("Y-m-d"));
    $ro->doubleEditNow("patientCharges", "registrationNo", $registrationNo, "itemNo", $itemNo, "timePaid", $ro->getSynapseTime());
    $ro->doubleEditNow("patientCharges", "registrationNo", $registrationNo, "itemNo", $itemNo, "paidBy", $username);
}
$ro->gotoPage("http://" . $ro->getMyUrl() . "/Department/patientDepartmentProfile.php?registrationNo={$registrationNo}&module={$module}&month={$month}&day={$day}&year={$year}&fromTime_hour={$fromTime_hour}&fromTime_minutes={$fromTime_minutes}&fromTime_seconds={$fromTime_seconds}&toTime_hour={$toTime_hour}&toTime_minutes={$toTime_minutes}&toTime_seconds={$toTime_seconds}&username={$username}");
Exemplo n.º 7
0
<?php

include "../../../myDatabase1.php";
$reportNo = $_GET['reportNo'];
$username = $_GET['username'];
$ro = new database1();
$ro->deleteNow("radioReportList", "reportNo", $reportNo);
$ro->gotoPage("http://" . $ro->getMyUrl() . "/COCONUT/Results/Radiology/radioReportTemplateMasterfile.php?username={$username}");
Exemplo n.º 8
0
<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>
<a href="#" onClick="printF('printData')" style="text-decoration:none; color:black;"><font color=red>PRINT</font></a>
<div id='printData'>

<?php 
echo "<center><a href='http://" . $ro->getMyUrl() . "/COCONUT/Reports/radiologyReport/radioReport_output_doctor.php?registrationNo={$registrationNo}&itemNo={$itemNo}&description={$description}'><img src='http://" . $ro->getMyUrl() . "/COCONUT/myImages/mendero.png' width='40%;' height='20%'></a></center>";
echo "<br>";
echo "<table border=0 width='100%;'>";
echo "<Tr>";
echo "<td><b>NAME:</b> " . $ro->getPatientRecord_lastName() . ", " . $ro->getPatientRecord_firstName() . "</td>";
echo "<tD align='left'><b>DATE:</b> " . $ro->selectNow("radioSavedReport", "date", "itemNo", $itemNo) . "</tD>";
echo "</tr>";
echo "<tr>";
echo "<td><b>PATIENT NO:</b>&nbsp;" . $ro->getRegistrationDetails_patientNo() . "</td>";
echo "<td><b>AGE:</b> " . $ro->getPatientRecord_age() . "/" . $ro->getPatientRecord_gender() . "</td>";
echo "</tr>";
echo "<tr>";
echo "<td><b>PERFORMED:&nbsp;</b> " . $ro->selectNow("radioSavedReport", "performed", "itemNo", $itemNo) . "</td>";
echo "</tr>";
echo "<tr>";
echo "<td><B>PROCEDURE:</b> " . $ro->selectNow("patientCharges", "description", "itemNo", $itemNo) . "</td>";
Exemplo n.º 9
0
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>
<a href="#" onClick="printF('printData')" style="text-decoration:none; color:black;">PRINT</a>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;

<!-----
<a href="http://<?php 
echo $ro->getMyUrl();
?>
/COCONUT/Laboratory/resultList/deleteResult.php?registrationNo=<?php 
echo $registrationNo;
?>
&itemNo=<?php 
echo $itemNo;
?>
" style="text-decoration:none; color:Red;">DELETE</a>
//-->



<div id='printData'>

<?php 
Exemplo n.º 10
0
<?php

include "../../../myDatabase1.php";
$registrationNo = $_GET['registrationNo'];
$itemNo = $_GET['itemNo'];
$description = $_GET['description'];
$ro = new database1();
$ro->getPatientProfile($registrationNo);
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";
echo "<center><img src='http://" . $ro->getMyUrl() . "/COCONUT/myImages/mendero.png' width='80%;' height='30%'></center>";
$ro->coconutFormStart("post", "http://" . $ro->getMyUrl() . "/COCONUT/Reports/radiologyReport/radioReport_edit.php");
echo "<br>";
echo "<table border=0 width='100%;'>";
echo "<Tr>";
echo "<td><b>NAME:</b> " . $ro->getPatientRecord_lastName() . ", " . $ro->getPatientRecord_firstName() . "</td>";
echo "<tD align='left'><b>DATE:</b> " . $ro->selectNow("radioSavedReport", "date", "itemNo", $itemNo) . "</tD>";
echo "</tr>";
echo "<tr>";
echo "<td><b>AGE:</b> " . $ro->getPatientRecord_age() . "/" . $ro->getPatientRecord_gender() . "</td>";
echo "</tr>";
echo "<tr>";
echo "<td><B>PROCEDURE:</b> " . $ro->selectNow("patientCharges", "description", "itemNo", $itemNo) . "</td>";
echo "</tr>";
echo "</table>";
echo "</center>";
echo "<font size=4>" . $ro->selectNow("radioSavedReport", "radioReport", "itemNo", $itemNo) . "</font>";
echo "<br><br><br><br>";
echo "<u>" . $ro->selectNow("radioSavedReport", "physician", "itemNo", $itemNo) . "</u><br>&nbsp;&nbsp;&nbsp;" . $ro->selectNow("Doctors", "Specialization1", "Name", $ro->selectNow("radioSavedReport", "physician", "itemNo", $itemNo)) . "";
echo "<Center><center>";
$ro->coconutHidden("description", $description);
$ro->coconutHidden("registrationNo", $registrationNo);
Exemplo n.º 11
0
<?php

include "../../../myDatabase1.php";
$paymentNo = $_GET['paymentNo'];
$registrationNo = $_GET['registrationNo'];
$username = $_GET['username'];
$ro = new database1();
$ro->getPatientProfile($registrationNo);
$ro->addVoidPayment($registrationNo . "_" . $ro->getPatientRecord_completeName(), "IPD_DELETE_" . $ro->selectNow("patientPayment", "paymentFor", "paymentNo", $paymentNo), $ro->selectNow("patientPayment", "amountPaid", "paymentNo", $paymentNo), $ro->getSynapseTime(), date("Y-m-d"), $username);
$ro->deleteNow("patientPayment", "paymentNo", $paymentNo);
echo "\n\n<script type='text/javascript'>\nwindow.location='http://" . $ro->getMyUrl() . "/COCONUT/patientProfile/Payments/viewPayment.php?username={$username}&registrationNo={$registrationNo}'\n</script>\n\n";
Exemplo n.º 12
0
<?php

include "../../../myDatabase1.php";
$username = $_GET['username'];
$registrationNo = $_GET['registrationNo'];
$chargesCode = $_GET['chargesCode'];
$itemNo = $_GET['itemNo'];
$ro = new database1();
$ro->coconutFormStart("post", "http://" . $ro->getMyUrl() . "/COCONUT/Laboratory/mergeResult.php");
echo "<input type='submit' value='<< M E R G E >>' style='border:1px solid #000;' >";
$ro->coconutHidden("registrationNo", $registrationNo);
$ro->coconutHidden("itemNo", $itemNo);
$ro->coconutFormStop();
echo "<Br>";
$ro->getLabFormList($username, $registrationNo, $itemNo, $chargesCode);
Exemplo n.º 13
0
<?php

include "../../myDatabase1.php";
$module = $_GET['module'];
$username = $_GET['username'];
$ro = new database1();
echo "<br><Br><Br><br><Br>";
$ro->coconutBoxStart("400", "100");
echo "<br>";
echo "<center><font size=2>For Receiving in {$module}</font>\n<br>";
if ($ro->getReceivingRequest($module, "Pagadian") > 0) {
    echo "<br><a href='http://" . $ro->getMyUrl() . "/COCONUT/availableMedicine/receivingRequest.php?module={$module}&username={$username}&branch=Pagadian' style='text-decoration:none;'><font color=red>(" . $ro->getReceivingRequest($module, "Pagadian") . ") Receiving Found</font></a>";
} else {
    echo "";
}
echo "</center>";
$ro->coconutBoxStop();
Exemplo n.º 14
0
<?php

include "../../../myDatabase1.php";
$hospitalName = $_GET['hospitalName'];
$hospitalAddress = $_GET['hospitalAddress'];
$username = $_GET['username'];
$ro = new database1();
$ro->radioHeading($hospitalName, $hospitalAddress);
$ro->gotoPage("http://" . $ro->getMyUrl() . "/COCONUT/Results/Radiology/addHospital.php?username={$username}");
Exemplo n.º 15
0
<?php

include "../../myDatabase1.php";
$username = $_GET['username'];
$ro = new database1();
$ro->coconutDesign();
echo "<Br><Br><Br><Br>";
$ro->coconutFormStart("get", "http://" . $ro->getMyUrl() . "/COCONUT/inventory/department/searchInventory.php");
$ro->coconutHidden("username", $username);
$ro->coconutBoxStart("500", "83");
echo "<br>";
echo "<table border=0>";
echo "<tr>";
echo "<td>Department&nbsp;</td>";
echo "<td>";
$ro->coconutComboBoxStart_long("department");
echo "<option value='ER E Cart'>ER</option>";
echo "<option value='ICU E Cart'>ICU</option>";
echo "<option value='OR E Cart'>OR</option>";
echo "<option value='DR E Cart'>DR</option>";
echo "<option value='LABORATORY'>LABORATORY</option>";
echo "<option value='3A E Cart'>3A</option>";
echo "<option value='3B E Cart'>3B</option>";
echo "<option value='ICU E Cart'>ICU</option>";
echo "<option value='DR E Cart'>DR</option>";
echo "<option value='OR E Cart'>OR</option>";
echo "<option value='CSR E Cart'>CSR</option>";
echo "<option value='PHARMACY'>PHARMACY</option>";
echo "<option value='RADIOLOGY'>RADIOLOGY</option>";
echo "<option value='OR PACKAGE'>OR PACKAGE</option>";
echo "<option value='OB PACKAGE'>OB PACKAGE</option>";
Exemplo n.º 16
0
                                            } else {
                                                if ($dateIn[0] == "Nov") {
                                                    $totalDays = $dateOut[1] + 30 - $dateIn[1];
                                                } else {
                                                }
                                            }
                                        }
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}
//echo "Total Days&nbsp;".$totalDays;
$totalPrice = $ro->doubleSelectNow("patientCharges", "sellingPrice", "registrationNo", $registrationNo, "description", $ro->getRegistrationDetails_room()) * $totalDays;
$totalPHIC = 500 * $totalDays;
$totalExcess = $totalPrice - $totalPHIC;
//echo "<br>Total Price&nbsp;".$totalPrice;
//echo "<br>Total PhilHealth&nbsp;".$totalPHIC;
//echo "<br>Total Excess&nbsp;".($totalPrice - $totalPHIC);
$ro->doubleEditNow("patientCharges", "registrationNo", $registrationNo, "description", $ro->getRegistrationDetails_room(), "quantity", $totalDays);
$ro->doubleEditNow("patientCharges", "registrationNo", $registrationNo, "description", $ro->getRegistrationDetails_room(), "total", $totalPrice);
$ro->doubleEditNow("patientCharges", "registrationNo", $registrationNo, "description", $ro->getRegistrationDetails_room(), "phic", $totalPHIC);
$ro->doubleEditNow("patientCharges", "registrationNo", $registrationNo, "description", $ro->getRegistrationDetails_room(), "cashUnpaid", $totalExcess);
//addCharges_cash($status,$registrationNo,$chargesCode,$description,$sellingPrice,$discount,$total,$cashUnpaid,$phic,$company,$timeCharge,$dateCharge,$chargeBy,$service,$title,$paidVia,$cashPaid,$batchNo,$quantity,$inventoryFrom,$branch,$room)
$ro->gotoPage("http://" . $ro->getMyUrl() . "/COCONUT/patientProfile/SOAoption/summary.php?registrationNo={$registrationNo}&username={$username}");
Exemplo n.º 17
0
<?php

include "../myDatabase1.php";
$patientNo = $_GET['patientNo'];
$date = $_GET['date'];
$ro = new database1();
if ($ro->selectNow("reportHeading", "information", "reportName", "stopDoubleRegistration") == "Activate") {
    if ($ro->checkingStop($patientNo, date("Y-m-d")) == "") {
        header("Location:http://" . $ro->getMyUrl() . "/Registration/newRecord_again.php?patientNo={$patientNo}");
    } else {
        header("Location:http://" . $ro->getMyUrl() . "/Registration/stopRegistration.php");
    }
} else {
    header("Location:http://" . $ro->getMyUrl() . "/Registration/newRecord_again.php?patientNo={$patientNo}");
}
Exemplo n.º 18
0
<?php

include "../../myDatabase1.php";
$ro = new database1();
$ro->coconutDesign();
echo "<Br><br><Br><Br><BR>";
$ro->coconutFormStart("get", "http://" . $ro->getMyUrl() . "/COCONUT/availableMedicine/medicineRequest.php");
$ro->coconutHidden("branch", "Pagadian");
$ro->coconutHidden("username", "");
$ro->coconutBoxStart("500", "150");
echo "<br>";
echo "<table border=0>";
echo "<tr>";
echo "<td>Department&nbsp;</td>";
echo "<td>";
$ro->coconutComboBoxStart_long("requestingDepartment");
echo "<option value='LABORATORY'>LABORATORY</option>";
echo "<option value='PHARMACY'>PHARMACY</option>";
echo "<option value='DIALYSIS'>DIALYSIS</option>";
echo "<option value='ER'>ER</option>";
echo "<option value='3A'>3A</option>";
echo "<option value='3B'>3B</option>";
echo "<option value='ICU'>ICU</option>";
echo "<option value='DR'>DR</option>";
echo "<option value='OR'>OR</option>";
$ro->coconutComboBoxStop();
echo "</td>";
echo "</tr>";
echo "<tr>";
echo "<td>Request&nbsp;</td>";
echo "<td>";
Exemplo n.º 19
0
$chargeBy = $_GET['chargeBy'];
$service = $_GET['service'];
$title = $_GET['title'];
$paidVia = $_GET['paidVia'];
$cashPaid = $_GET['cashPaid'];
$batchNo = $_GET['batchNo'];
$username = $_GET['username'];
$inventoryFrom = $_GET['inventoryFrom'];
$ro = new database1();
if ($ro->selectNow("inventory", "quantity", "inventoryCode", $chargesCode) < 1) {
    $ro->getBack("Sorry, Out of Stock");
}
echo "\n<style type='text/css'>\n.qty {\n\tborder: 1px solid #000;\n\tcolor: #000;\n\theight:25px;\n\twidth: 100px;\n\tpadding:4px 4px 4px 10px;\n}\n\n</style>\n\n";
//addCharges.php
echo "<br><Br><Br>";
echo "<form method='get' action='http://" . $ro->getMyUrl() . "/COCONUT/availableMedicine/addCharges_company.php'>";
echo "<center><div style='border:1px solid #000000; width:400px; height:100px;\t'>";
echo "<br><table border=0 cellpadding=0 cellspacing=0>";
echo "<tr>";
echo "<td><font size=4>Quantity:</font></td>";
echo "<td><input type=text class='qty' name='quantity' value='1'></td>";
echo "</tr>";
echo "<tr><td>&nbsp;</td></tr>";
echo "<tr>";
echo "<td><input type='button' class='button' value=' Back  '\nonClick='javascript: history.go(-1)' style='border:1px solid #000000; background-color:transparent;'></td>";
echo "<td>&nbsp;&nbsp;</td>";
echo "<td><input type=submit value='Proceed' style='border:1px solid #000000; background-color:transparent; color:red; height:20px;'></td>";
echo "<input type=hidden name='status' value='{$status}'>";
echo "<input type=hidden name='registrationNo' value='{$registrationNo}'>";
echo "<input type=hidden name='chargesCode' value='{$chargesCode}'>";
echo "<input type=hidden name='description' value='{$description}'>";
Exemplo n.º 20
0
<?php

include "../../../myDatabase1.php";
$itemNo = $_GET['itemNo'];
$countz = count($itemNo);
$registrationNo = $_GET['registrationNo'];
$user = $_GET['username'];
$ro = new database1();
$ro->getPatientProfile($registrationNo);
for ($x = 0; $x < $countz; $x++) {
    $ricky = preg_split("/\\_/", $itemNo[$x]);
    // combine itemNo + total  = itemNo_total_orNo
    $ro->getPatientChargesToEdit($ricky[0]);
    $ro->addVoidPayment($registrationNo . "_" . $ro->getPatientRecord_completeName(), $ricky[0] . "_" . $ro->patientCharges_Description(), $ro->patientCharges_cashPaid(), $ro->getSynapseTime(), date("Y-m-d"), $user, $ricky[2]);
    $ro->editNow("patientCharges", "itemNo", $ricky[0], "status", "UNPAID");
    $ro->editNow("patientCharges", "itemNo", $ricky[0], "orNo", "");
    $ro->editNow("patientCharges", "itemNo", $ricky[0], "cashPaid", "0");
    $ro->editNow("patientCharges", "itemNo", $ricky[0], "datePaid", "");
    $ro->editNow("patientCharges", "itemNo", $ricky[0], "timePaid", "");
    $ro->editNow("patientCharges", "itemNo", $ricky[0], "paidBy", "");
    $ro->editNow("patientCharges", "itemNo", $ricky[0], "cashUnpaid", $ricky[1]);
    $ro->editNow("registrationDetails", "registrationNo", $registrationNo, "dateUnregistered", "");
    $ro->editNow("registrationDetails", "registrationNo", $registrationNo, "timeUnregistered", "");
}
echo "\n<script type='text/javascript'>\nalert('Void Payment Success');\nwindow.location = 'http://" . $ro->getMyUrl() . "/COCONUT/patientProfile/patientProfile_handler.php?registrationNo={$registrationNo}&username={$user}';\n</script>\n\n";
Exemplo n.º 21
0
<?php

include "../../myDatabase1.php";
$description = $_GET['description'];
$inventoryCode = $_GET['inventoryCode'];
$ro = new database1();
$ro->coconutDesign();
echo "<br><Br><br>";
$ro->coconutFormStart("get", "http://" . $ro->getMyUrl() . "/COCONUT/graphicalReport/multipleLineChart/annualInventory.php");
$ro->coconutHidden("description", $description);
$ro->coconutHidden("inventoryCode", $inventoryCode);
$ro->coconutBoxStart("400", "85");
echo "<Br>";
echo "<table border=0>";
echo "<tr>";
echo "<td>Year&nbsp;</td>";
echo "<Td>";
$ro->coconutTextBox("year", date("Y"));
echo "</td>";
echo "</tr>";
echo "</table>";
echo "<br>";
$ro->coconutButton("Proceed");
$ro->coconutComboBoxStop();
$ro->coconutFormStop();
?>


Exemplo n.º 22
0
<?php

include "../../myDatabase1.php";
$registrationNo = $_GET['registrationNo'];
$ro = new database1();
$ro->getPatientProfile($registrationNo);
?>

<script type="text/javascript" src="http://<?php 
echo $ro->getMyUrl();
?>
/jquery1.11.1.js"></script>

<script>
$( document ).ready(function() {
$('input.pd').on('change', function() {
$('input.pd').not(this).prop('checked', false);  
$("#patientDisposition").submit();
});
});

</script>

<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();
Exemplo n.º 23
0
<?php

include "../../../myDatabase1.php";
$registrationNo = $_GET['registrationNo'];
$itemNo = $_GET['itemNo'];
$physician = $_GET['physician'];
$radioReport = $_GET['radioReport'];
$radtech = $_GET['radtech'];
$ro = new database1();
if (isset($_GET['approved'])) {
    $ro->radioReportInsert($registrationNo, $itemNo, date("Y-m-d"), $physician, $radioReport, "Mendero Medical Center", "Consolacion,Cebu", $ro->getSynapseTime(), "yes", date("Y-m-d"), $ro->getSynapseTime(), $physician, $radtech);
} else {
    $ro->radioReportInsert($registrationNo, $itemNo, date("Y-m-d"), $physician, $radioReport, "Mendero Medical Center", "Consolacion,Cebu", $ro->getSynapseTime(), "", "", "", "", $radtech);
}
$ro->gotoPage("http://" . $ro->getMyUrl() . "/COCONUT/Reports/radiologyReport/radioReport_output.php?itemNo={$itemNo}&registrationNo={$registrationNo}&description=" . $ro->selectNow("patientCharges", "description", "itemNo", $itemNo) . "");
Exemplo n.º 24
0
<?php

include "../../myDatabase1.php";
$registrationNo = $_GET['registrationNo'];
$username = $_GET['username'];
$ro = new database1();
$ro->coconutDesign();
echo "<Br><Br><br>";
$ro->coconutFormStart("get", "http://" . $ro->getMyUrl() . "/COCONUT/patientProfile/manualCharges_insert.php");
$ro->coconutHidden("registrationNo", $registrationNo);
$ro->coconutHidden("title", "MEDICINE");
$ro->coconutBoxStart("600", "90");
echo "<br>";
echo "<table border=0>";
echo "<tr>";
echo "<td>Amount&nbsp;&nbsp;</td>";
echo "<td>";
$ro->coconutTextBox("amount", "");
echo "</td>";
echo "</tr>";
echo "</table>";
echo "<br>";
$ro->coconutButton("Proceed");
$ro->coconutBoxStop();
$ro->coconutFormStop();
Exemplo n.º 25
0
$chargeBy = $_GET['chargeBy'];
$service = $_GET['service'];
$title = $_GET['title'];
$paidVia = $_GET['paidVia'];
$cashPaid = $_GET['cashPaid'];
$batchNo = $_GET['batchNo'];
$username = $_GET['username'];
$inventoryFrom = $_GET['inventoryFrom'];
$ro = new database1();
if ($ro->selectNow("inventory", "quantity", "inventoryCode", $chargesCode) < 1) {
    $ro->getBack("Sorry, Out of Stock");
}
echo "\n<style type='text/css'>\n.qty {\n\tborder: 1px solid #000;\n\tcolor: #000;\n\theight:25px;\n\twidth: 100px;\n\tpadding:4px 4px 4px 10px;\n}\n\n</style>\n\n";
//addCharges.php
echo "<br><Br><Br>";
echo "<form method='get' action='http://" . $ro->getMyUrl() . "/COCONUT/availableSupplies/phicCovered.php'>";
echo "<center><div style='border:1px solid #000000; width:400px; height:100px;\t'>";
echo "<br><table border=0 cellpadding=0 cellspacing=0>";
echo "<tr>";
echo "<td><font size=4>Quantity:</font></td>";
echo "<td><input type=text class='qty' name='quantity' value='1'></td>";
echo "</tr>";
echo "<tr><td>&nbsp;</td></tr>";
echo "<tr>";
echo "<td><input type='button' class='button' value=' Back  '\nonClick='javascript: history.go(-1)' style='border:1px solid #000000; background-color:transparent;'></td>";
echo "<td>&nbsp;&nbsp;</td>";
echo "<td><input type=submit value='Proceed' style='border:1px solid #000000; background-color:transparent; color:red; height:20px;'></td>";
echo "<input type=hidden name='status' value='{$status}'>";
echo "<input type=hidden name='registrationNo' value='{$registrationNo}'>";
echo "<input type=hidden name='chargesCode' value='{$chargesCode}'>";
echo "<input type=hidden name='description' value='{$description}'>";
Exemplo n.º 26
0
<?php

include "../../../myDatabase1.php";
$username = $_GET['username'];
$registrationNo = $_GET['registrationNo'];
$checkz = $_GET['checkz'];
$batchNo = $_GET['batchNo'];
$ro = new database1();
if ($checkz == "no") {
    echo "<center><a href='http://" . $ro->getMyUrl() . "/COCONUT/patientProfile/individualPayment/showMeds.php?username={$username}&registrationNo={$registrationNo}&checkz=yes&batchNo={$batchNo}'><font color='blue'>Check All</font></a><br>";
} else {
    echo "<center><a href='http://" . $ro->getMyUrl() . "/COCONUT/patientProfile/individualPayment/showMeds.php?username={$username}&registrationNo={$registrationNo}&checkz=no&batchNo={$batchNo}'><font color='red'>Uncheck All</font></a><br>";
}
$ro->getIndividualPayments($registrationNo, $username, $checkz, $batchNo);
Exemplo n.º 27
0
$myFile = $ro->getReportInformation("homeRoot")."/COCONUT/trackingNo/patientID.dat";
$fh = fopen($myFile, 'r');
$patientNo = fread($fh, 100);
fclose($fh);
*/
$registrationNo = $ro->selectNow("trackingNo", "value", "name", "registrationNo");
$patientNo = $ro->selectNow("trackingNo", "value", "name", "patientNo");
$incrementRegistrationNo = $ro->selectNow("trackingNo", "value", "name", "registrationNo") + 1;
$incrementPatientNo = $ro->selectNow("trackingNo", "value", "name", "patientNo") + 1;
$ro->editNow("trackingNo", "name", "registrationNo", "value", $incrementRegistrationNo);
$ro->editNow("trackingNo", "name", "patientNo", "value", $incrementPatientNo);
$ro->coconutDesign();
?>

<link rel="stylesheet" type="text/css" href="http://<?php 
echo $ro->getMyUrl();
?>
/COCONUT/flow/rickyCSS1.css" />

<script type='text/javascript'>
$("#breadcrumbs a").hover(
    function () {
        $(this).addClass("hover").children().addClass("hover");
        $(this).parent().prev().find("span.arrow:first").addClass("pre_hover");
    },
    function () {
        $(this).removeClass("hover").children().removeClass("hover");
        $(this).parent().prev().find("span.arrow:first").removeClass("pre_hover");
    }
);
</script>
<?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>&nbsp;&nbsp;<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>&nbsp;&nbsp;<font size=2 color=red><b>" . $ro->getRegistrationDetails_type() . "</b></font><br>";
}
echo "<font class='informationLabel'>Patient No:</font>&nbsp;" . $ro->getRegistrationDetails_patientNo();
echo "<br><font class='informationLabel'>Registration No:</font>&nbsp;" . $ro->getRegistrationDetails_registrationNo();
echo "<br><font class='informationLabel'>Age:</font>&nbsp;" . $ro->getPatientRecord_age();
echo "<br><font class='informationLabel'>Gender:</font>&nbsp;" . $ro->getPatientRecord_gender();
echo "<br><font class='informationLabel'>Civil Status:</font>&nbsp;" . $ro->getPatientRecord_civilStatus();
echo "<br><font class='informationLabel'>Birth Date:</font>&nbsp;" . $ro->getPatientRecord_Birthdate();
echo "<br><font class='informationLabel'>Contact No#:</font>&nbsp;" . $ro->getPatientRecord_contactNo();
echo "<br><font class='informationLabel'>Senior:</font>&nbsp;" . $ro->getPatientRecord_senior();
echo "<br><font class='informationLabel'>PhilHealth:</font>&nbsp;" . $ro->getPatientRecord_phic();
echo "<br><font class='informationLabel'>PhilHealth Type:</font>&nbsp;" . $ro->getPHICtype_patientRecord();
echo "<br><font class='informationLabel'>Company:</font>&nbsp;" . $ro->getRegistrationDetails_company();
echo "<br><font class='informationLabel'>Time Registered:</font>&nbsp;" . $ro->getRegistrationDetails_timeRegistered();
echo "<br><font class='informationLabel'>Date Registered:</font>&nbsp;" . $ro->getRegistrationDetails_dateRegistered();
echo "<br><font class='informationLabel'>Branch Registered:</font>&nbsp;" . $ro->getRegistrationDetails_branch();
echo "<br><font class='informationLabel'>Case Type:</font>&nbsp;<a href='#' style='text-decoration:none; color:black;'>" . $ro->getRegistrationDetails_caseType() . "</a>";
echo "<br><font class='informationLabel'>Package:</font>&nbsp;<a href='#' style='text-decoration:none; color:black;'>" . $ro->getRegistrationDetails_package() . "</a>";
Exemplo n.º 29
0
<?php

include "../../../myDatabase1.php";
$headingNo = $_GET['headingNo'];
$username = $_GET['username'];
$ro = new database1();
$ro->deleteNow("radioHeading", "headingNo", $headingNo);
$ro->gotoPage("http://" . $ro->getMyUrl() . "/COCONUT/Results/Radiology/radioHeadingMasterfile.php?username={$username}");
Exemplo n.º 30
0
<?php

include "../../../myDatabase1.php";
$title = $_GET['title'];
$template = $_GET['template'];
$username = $_GET['username'];
$ro = new database1();
$ro->addRadioTemplate($title, $template);
$ro->gotoPage("http://" . $ro->getMyUrl() . "/COCONUT/Results/Radiology/addRadioTemplate.php?username={$username}");