예제 #1
0
<?php

include "../../../myDatabase2.php";
$checkedNo = $_GET['checkedNo'];
$ro = new database2();
$ro->coconutDesign();
echo "<Br>";
$ro->coconutFormStart("get", "voucherList.php");
echo "Invoice No#&nbsp;" . $ro->coconutTextBox_return("checkedNo", "");
$ro->coconutFormStop();
$ro->listVoucher($checkedNo);
예제 #2
0
$ro->coconutHidden("username", $username);
$ro->coconutHidden("date", date("Y-m-d"));
/*
$ro->coconutHidden("reagents1",$reagentsz[0]);
$ro->coconutHidden("reagents2",$reagentsz[1]);
$ro->coconutHidden("reagents3",$reagentsz[2]);
$ro->coconutHidden("reagents4",$reagentsz[3]);
$ro->coconutHidden("reagents5",$reagentsz[4]);
*/
echo "<textarea id='result' name='result'>" . $ro->selectNow("labResultList", "template", "templateNo", $templateNo) . "</textarea>";
?>


<script type="text/javascript">
			
			CKEDITOR.replace( 'result',
	{
		enterMode : CKEDITOR.ENTER_BR,
		skin : 'office2003',
		extraPlugins:'autogrow'
	});
		

</script>

<?php 
$ro->coconutDesign();
echo "<br>MORPHOLOGY:" . $ro->coconutTextBox_return("morphology", "");
echo "<Br>";
echo "<br>REMARKS:" . $ro->coconutTextBox_return("remarks", "");
$ro->coconutFormStop();
예제 #3
0
$ro = new database2();
$ro->coconutDesign();
echo "<Br><Br><br>";
$caseRate_amount = $ro->selectNow("rBanny_caserate", "amount", "caseNo", $caserate);
//amount ng selected caserate
$hospitalBill = $ro->getTotal("total", "Room And Board", $registrationNo) + $ro->getTotal("total", "MEDICINE", $registrationNo) + $ro->getTotal("total", "SUPPLIES", $registrationNo) + $ro->getTotal("total", "LABORATORY", $registrationNo) + $ro->getTotal("total", "RADIOLOGY", $registrationNo) + $ro->getTotal("total", "NURSING-CHARGES", $registrationNo) + $ro->getTotal("total", "MISCELLANEOUS", $registrationNo) + $ro->getTotal("total", "OR/DR/ER Fee", $registrationNo) + $ro->getTotal("total", "OXYGEN", $registrationNo);
$pf = $ro->getTotal("phic", "PROFESSIONAL FEE", $registrationNo);
$targetAmount = $caseRate_amount - $caseRate_amount * 0.3;
echo "<Center>";
echo "<font color='blue' size=5><i>[R-Banny]-[noReset mode]</i></font>";
$ro->coconutBoxStart("500", "130");
echo "<br><font color=red size=4>Caserate</font>:&nbsp;" . $ro->selectNow("rBanny_caserate", "caserate", "caseNo", $caserate) . "&nbsp;[" . number_format($caseRate_amount, 2) . "]";
echo "<br>";
echo "<font color=red size=4>Hospital Bill:&nbsp;</font>" . number_format($hospitalBill, 2);
echo "<Br>";
echo "<font color=red size=4>Professional Fee:&nbsp;</font>" . number_format($pf, 2);
echo "<Br>";
$ro->coconutFormStart("get", "http://" . $ro->getMyUrl() . "/COCONUT/rBanny/analyzingData_noReset.php");
//$cazeRate = $ro->selectNow("availableICD","hospital","icdCode",$ro->selectNow("patientICD","icdCode","registrationNo",$registrationNo));
echo "<i><font color=blue size=4>Target Amount:&nbsp;</font></i><br>" . $ro->coconutTextBox_return("targetAmount", $ro->getFirstCaseRate($ro->selectNow("patientICD", "icdCode", "registrationNo", $registrationNo)));
echo "<br><Br>";
//$ro->coconutHidden("targetAmount",$targetAmount);
$ro->coconutHidden("cash", $ro->getTotal("cashUnpaid", "", $registrationNo));
$ro->coconutHidden("registrationNo", $registrationNo);
if ($hospitalBill > $targetAmount) {
    $ro->coconutButton("Proceed");
} else {
    //echo "<Br><font size=4 color=red>R-Banny Cannot analyze you're data because Target Amount is Higher [".number_format($targetAmount,2)."] than the Patient's Bill [".number_format($hospitalBill,2)."] </font>";
}
$ro->coconutFormStop();
$ro->coconutBoxStop();
예제 #4
0
<?php

include "../../myDatabase2.php";
$username = $_GET['username'];
$ro = new database2();
$ro->coconutDesign();
echo "<br><br><br>";
$ro->coconutFormStart("post", "http://" . $ro->getMyUrl() . "/COCONUT/Laboratory/addReagents1.php");
$ro->coconutHidden("username", $username);
$ro->coconutBoxStart("500", "350");
echo "<Br>";
echo "<table border=0>";
echo "<Tr>";
echo "<td>Lot No#</td>";
echo "<Td>" . $ro->coconutTextBox_return("referenceNo", "") . "\n</tD>";
echo "</tr>";
echo "<Tr>";
echo "<td>Permanent</td>";
echo "<Td>";
$ro->coconutComboBoxStart_long("permanentReference_selection");
echo "<option value=''></option>";
$ro->showOption_with_value("labReagents", "description", "permanentReference");
$ro->coconutComboBoxStop();
echo "<br><font size=2 color=red>Para malaman ng system kung anong reagents ang gagamitin [applicable to those existing reagents]</font>";
echo "</td>";
echo "</tr>";
echo "<Tr>";
echo "<td>Permanent</td>";
echo "<Td>" . $ro->coconutTextBox_return("permanentReference_input", "") . "\n<br><font size=2 color=red>Para malaman ng system kung anong reagents ang gagamitin [kung wala sa selection encode ng bago]</font>\n</tD>";
echo "</tr>";
echo "<Tr>";
예제 #5
0
<?php

include "../myDatabase2.php";
$registrationNo = $_GET['registrationNo'];
$ro = new database2();
$ro->coconutDesign();
$ro->coconutFormStart("get", "recordPart2z.php");
$ro->coconutHidden("registrationNo", $registrationNo);
echo "<Br>";
echo "<b><font size=4>ADMISSION</font></b>";
echo "<table border=0>";
echo "<tr>";
echo "<td><font color=red>Place of Birth:</font><br>" . $ro->coconutTextBox_return("birthPlace", "") . "</td>";
echo "<td><font color=red>Nationality:</font><br>" . $ro->coconutTextBox_return("nationality", "") . "</td>";
echo "<td><font color=red>Occupation:</font><br>" . $ro->coconutTextBox_return("pxOccu", "") . "</td>";
echo "</tr>";
echo "<tr>";
echo "<td><font color=red>Father's Name:</font><br>" . $ro->coconutTextBox_return("fathersName", "") . "</td>";
echo "<td><font color=red>Mother's Name:</font><br>" . $ro->coconutTextBox_return("mothersName", "") . "</td>";
echo "<td><font color=red>Address:</font><br>" . $ro->coconutTextBox_return("address", "") . "</td>";
echo "<td><font color=red>Contact:</font><br>" . $ro->coconutTextBox_return("contactNo1", "") . "</td>";
echo "</tr>";
echo "<tr>";
echo "<td><font color=red>Spouse Name:</font><br>" . $ro->coconutTextBox_return("spouseName", "") . "</td>";
echo "<td><font color=red>Address:</font><br>" . $ro->coconutTextBox_return("address1", "") . "</td>";
echo "<td><font color=red>Contact:</font><br>" . $ro->coconutTextBox_return("contactNo2", "") . "</td>";
echo "</tr>";
echo "<tr>";
echo "<td><font color=red>Type of Admission:</font><br>" . $ro->coconutTextBox_return("admissionType", "") . "</td>";
echo "<td><font color=red>Social Service Classification:</font><br>" . $ro->coconutTextBox_return("ssc", "") . "</td>";
echo "<td><font color=red>Ward/Service:</font><br>" . $ro->coconutTextBox_return("ws", "") . "</td>";
예제 #6
0
echo "</tr>";
echo "<tr>";
echo "<td>Excess in Room and Board</td>";
echo "<td>";
$ro->coconutTextBox("excessRoom", "{$excessRoom}");
echo "</td>";
echo "</tr>";
echo "<tr>";
echo "<td>Excess in Maximum Benefits</td>";
echo "<td>";
$ro->coconutTextBox("excessMaxBenefits", "{$excessMaxBenefits}");
echo "</td>";
echo "</tr>";
echo "<tr>";
echo "<td>PhilHealth Portion</td>";
echo "<td>";
$ro->coconutTextBox("PHICportion", "{$PHICportion}");
echo "</td>";
echo "</tr>";
echo "<tr>";
echo "<td>" . $ro->coconutTextBox_return("manual", $hmoManualExcess) . "</td>";
echo "<td>";
$ro->coconutTextBox("manualValue", $hmoManualExcessValue);
echo "</td>";
echo "</tr>";
echo "</table>";
echo "<br>";
$ro->coconutButton("Proceed");
$ro->coconutBoxStop();
$ro->coconutBoxStop();
$ro->coconutFormStop();
예제 #7
0
//amount ng selected caserate
$hospitalBill = $ro->getTotal("total", "Room And Board", $registrationNo) + $ro->getTotal("total", "MEDICINE", $registrationNo) + $ro->getTotal("total", "SUPPLIES", $registrationNo) + $ro->getTotal("total", "LABORATORY", $registrationNo) + $ro->getTotal("total", "RADIOLOGY", $registrationNo) + $ro->getTotal("total", "NURSING-CHARGES", $registrationNo) + $ro->getTotal("total", "MISCELLANEOUS", $registrationNo) + $ro->getTotal("total", "OR/DR/ER Fee", $registrationNo) + $ro->getTotal("total", "OXYGEN", $registrationNo);
$pf = $ro->getTotal("phic", "PROFESSIONAL FEE", $registrationNo);
$targetAmount = $caseRate_amount - $caseRate_amount * 0.3;
echo "<Center>";
echo "<a href='http://" . $ro->getMyUrl() . "/COCONUT/rBanny/approximate_noReset.php?registrationNo={$registrationNo}&caserate={$caserate}' style='text-decoration:none;'><font color='blue' size=5><i>[R-Banny]</i></font></a>";
$ro->coconutBoxStart("500", "130");
echo "<br><font color=red size=4>Caserate</font>:&nbsp;" . $ro->selectNow("rBanny_caserate", "caserate", "caseNo", $caserate) . "&nbsp;[" . number_format($caseRate_amount, 2) . "]";
echo "<br>";
echo "<font color=red size=4>Hospital Bill:&nbsp;</font>" . number_format($hospitalBill, 2);
echo "<Br>";
echo "<font color=red size=4>Professional Fee:&nbsp;</font>" . number_format($pf, 2);
echo "<Br>";
$ro->coconutFormStart("get", "http://" . $ro->getMyUrl() . "/COCONUT/rBanny/analyzingData.php");
//$cazeRate = $ro->selectNow("availableICD","hospital","icdCode",$ro->selectNow("patientICD","icdCode","registrationNo",$registrationNo));
if ($ro->selectNow("availableICD", "icdCode", "icdCode", $ro->selectNow("registrationDetails", "casetype", "registrationNo", $registrationNo)) != "") {
    echo "<i><font color=blue size=4>Target Amount:&nbsp;</font></i><br>" . $ro->coconutTextBox_return("targetAmount", $ro->selectNow("availableICD", "hospital", "icdCode", $ro->selectNow("registrationDetails", "casetype", "registrationNo", $registrationNo)));
} else {
    echo "<i><font color=blue size=4>Target Amount:&nbsp;</font></i><br>" . $ro->coconutTextBox_return("targetAmount", $ro->selectNow("availableICD", "hospital", "rvsCode", $ro->selectNow("registrationDetails", "casetype", "registrationNo", $registrationNo)));
}
echo "<br><Br>";
//$ro->coconutHidden("targetAmount",$targetAmount);
$ro->coconutHidden("cash", $ro->getTotal("cashUnpaid", "", $registrationNo));
$ro->coconutHidden("registrationNo", $registrationNo);
if ($hospitalBill > $targetAmount) {
    $ro->coconutButton("Proceed");
} else {
    //echo "<Br><font size=4 color=red>R-Banny Cannot analyze you're data because Target Amount is Higher [".number_format($targetAmount,2)."] than the Patient's Bill [".number_format($hospitalBill,2)."] </font>";
}
$ro->coconutFormStop();
$ro->coconutBoxStop();
예제 #8
0
<?php

include "../../../myDatabase2.php";
$controlNo = $_GET['controlNo'];
$ro = new database2();
$ro->coconutDesign();
echo "<Br><br><br>";
$ro->coconutFormStart("get", "editVoucher1.php");
$ro->coconutHidden("controlNo", $controlNo);
$ro->coconutBoxStart("500", "220");
echo "<br>";
echo "<table border=0>";
echo "<tr>";
echo "<Td>Checked No#&nbsp;</tD>";
echo "<td>" . $ro->coconutTextBox_return("checkedNo", $ro->selectNow("vouchers", "checkedNo", "controlNo", $controlNo)) . "</tD>";
echo "</tr>";
echo "<tr>";
echo "<Td>Description&nbsp;</tD>";
echo "<td>" . $ro->coconutTextBox_return("description", $ro->selectNow("vouchers", "description", "controlNo", $controlNo)) . "</tD>";
echo "</tr>";
echo "<tr>";
echo "<Td>Amount&nbsp;</tD>";
echo "<td>" . $ro->coconutTextBox_return("amount", $ro->selectNow("vouchers", "amount", "controlNo", $controlNo)) . "</tD>";
echo "</tr>";
echo "<tr>";
echo "<Td>Payee&nbsp;</tD>";
echo "<td>" . $ro->coconutTextBox_return("payee", $ro->selectNow("vouchers", "payee", "controlNo", $controlNo)) . "</tD>";
echo "</tr>";
echo "<tr>";
echo "<Td>Date&nbsp;</tD>";
echo "<td>" . $ro->coconutTextBox_return("date", $ro->selectNow("vouchers", "date", "controlNo", $controlNo)) . "</tD>";