} } if (file_exists('../modules/database/class.database.php')) { include '../modules/database/class.database.php'; $database = new database; if (!$module->activated('database') && $initmod) { $database->init_sql(); $database->init_menu(); $database->init_deps(); $database->init_lang(); $database->init_help(); } } if (file_exists('../modules/dental/class.dental.php')) { include '../modules/dental/class.dental.php'; $dental = new dental; if (!$module->activated('dental') && $initmod) { $dental->init_sql(); $dental->init_menu(); $dental->init_deps(); $dental->init_lang(); $dental->init_help(); } } if (file_exists('../modules/drug/class.drug.php')) { include '../modules/drug/class.drug.php'; $drug = new drug; if (!$module->activated('drug') && $initmod) { $drug->init_sql(); $drug->init_menu(); $drug->init_deps();
function _consult_dental() { echo "<form name='form_dental' action='$_POST[PHP_SELF]' method='POST'>"; $dental = new dental; $dental->toothnumber = 0; $dental->condition[$dental->toothnumber] = 'Y'; $dental->consult_id = $_GET['consult_id']; $dental->patient_id = healthcenter::get_patient_id($_GET['consult_id']); $dental->patient_age = healthcenter::get_patient_age($_GET['consult_id']); $dental->dentist = $_SESSION['userid']; // The following codes will initialize hidden textboxes and their values echo "<input type='hidden' name='h_patient_id' value='{$dental->patient_id}'></input>"; echo "<input type='hidden' name='h_consult_id' value='{$dental->consult_id}'></input>"; echo "<input type='hidden' name='h_dentist' value='{$dental->dentist}'></input>"; if (@$_POST['h_save_flag'] == 'GO') { $dental->new_dental_record(); print " "; $dental->show_message_if_patient_is_pregnant($dental->patient_id, date("Y-m-d")); echo " "; $dental->show_date_of_oral(); $dental->get_teeth_conditions($dental->patient_age); //echo " "; //$dental->select_tooth_and_condition($dental->patient_age); //echo " "; //$dental->show_teeth_conditions($dental->patient_age); print " "; $dental->show_teeth_conditions_v02(); echo " "; $dental->show_ohc_table_a($dental->patient_id); echo " "; $dental->show_ohc_table_b($dental->patient_id); echo " "; $dental->show_services_monitoring_chart($dental->patient_id); print " "; $dental->show_other_dental_services($dental->patient_id); echo " "; $dental->show_tooth_legends($dental->patient_age); } else { $dental->init_primary_keys(); print " "; $dental->show_message_if_patient_is_pregnant($dental->patient_id, date("Y-m-d")); echo " "; $dental->show_date_of_oral(); $dental->get_teeth_conditions($dental->patient_age); //echo " "; //$dental->select_tooth_and_condition($dental->patient_age); //echo " "; //$dental->show_teeth_conditions($dental->patient_age); print " "; $dental->show_teeth_conditions_v02(); echo " "; $dental->show_ohc_table_a($dental->patient_id); echo " "; $dental->show_ohc_table_b($dental->patient_id); echo " "; $dental->show_services_monitoring_chart($dental->patient_id); print " "; $dental->show_other_dental_services($dental->patient_id); echo " "; $dental->show_tooth_legends($dental->patient_age); } echo "<input type='hidden' name='h_save_flag' value='GO'></input>"; echo "</form>"; }
* Designed by Dennis Mollel, * deemagics@yahoo.com * * August, 2009. * */ error_reporting(E_COMPILE_ERROR | E_ERROR | E_CORE_ERROR); require './roots.php'; require $root_path . 'include/inc_environment_global.php'; define('LANG_FILE', 'dental.php'); define('NO_2LEVEL_CHK', 1); require_once $root_path . 'include/inc_front_chain_lang.php'; // reset all 2nd level lock cookies require $root_path . 'include/inc_2level_reset.php'; include_once $root_path . 'include/care_api_classes/class_mini_dental.php'; $obj = new dental(); ?> <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 3.0//EN" "html.dtd"> <?php html_rtl($lang); ?> <HEAD> <?php echo setCharSet(); ?> <?php require $root_path . 'include/inc_js_gethelp.php'; require $root_path . 'include/inc_css_a_hilitebu.php'; // GET TYPE $type = $_GET['type'];
if (!$encoder) { $encoder = $_SESSION['sess_user_name']; } //$breakfile="amb_clinic_patients.php".URL_APPEND."&edit=$edit&dept_nr=$dept_nr"; $breakfile = "javascript:window.close();"; //if($backpath) $breakfile=urldecode($backpath).URL_APPEND; $thisfile = basename($_SERVER['PHP_SELF']); # Load date formatter require_once $root_path . 'include/inc_date_format_functions.php'; require_once $root_path . 'include/care_api_classes/class_encounter.php'; require_once $root_path . 'include/care_api_classes/class_tz_diagnostics.php'; include_once $root_path . 'language/en/lang_en_aufnahme.php'; //include_once($root_path.'language/en/obstetrics.php'); require_once $root_path . 'include/care_api_classes/class_measurement.php'; require_once $root_path . 'include/care_api_classes/class_mini_dental.php'; $oc = new dental(); $obj = new Measurement(); $fileNr = $oc->GetFileNoFromPID($pid); $unit_types = $obj->getUnits(); $unit_rates = $obj->rateUnits(); $unit_bp = $obj->pressureUnits(); $unit_temp = $obj->temperatureUnits(); # Prepare unit ids in array $unit_ids = array(); while (list($x, $v) = each($unit_types)) { $unit_ids[$v['nr']] = $v['id']; } reset($unit_types); while (list($x, $v) = each($unit_rates)) { $unit_ids[$v['nr']] = $v['id']; }
/** * * POOR FUND BILLING PRINT REPORT * */ function GetRowsFromSpecial($mnth, $yrs, $type, $ca, $cb, $action) { global $db; //$db->debug=TRUE; $dt = $yrs . '-' . $mnth . '%'; $cc = '0'; $toto = 0; $nipo = FALSE; $this->sql = "SELECT encounter_nr,date,fullname,remain,paid,billno FROM care_tz_billing_special WHERE date like '{$dt}' AND type = '{$type}' ORDER BY encounter_nr DESC"; $this->result = $db->Execute($this->sql); echo ' </td> </tr> <tr valign=top> <td colspan="5">' . '<table width="' . '' . ''; $action == 'prnt' ? print '95%' : (print '60%'); echo '' . '' . '"border="0" align="left" cellpadding="5" cellspacing="1" class="tablebg"> <tr class="searchtxthead" id="rowhead" valign="middle"> <td width="10%" height="25" nowrap>S/No</td> <td width="10%" nowrap>Attendant Date </td> <td width="20%" nowrap>Name</td> <td width="50%" nowrap>No. of Procedures done </td> <td width="10%" align="center" nowrap>Not paid</td> </tr>'; while ($this->row = $this->result->FetchRow()) { $nipo = TRUE; $billno = $this->row[5]; $getpid_obj = new dental(); $myid = $getpid_obj->GetPidFromEncounter($this->row[0]); echo '<tr class="'; if ($cc == '0') { echo $ca; $cc = '1'; } else { echo $cb; $cc = '0'; } echo '" valign="top">'; echo '<td nowrap>' . $myid . '</td>'; // echo '<td nowrap>' . $this->row[1] . '</td>'; echo '<td nowrap>' . nl2br($this->row[2]) . '</td>'; echo '<td nowrap>'; $this->totorows = $db->Execute("SELECT nr FROM care_tz_billing_archive_elem WHERE nr = '{$billno}'"); $this->tt = $this->totorows->FetchRow(); $ennoz = $this->row[0]; if ($this->tt[0] > 0) { $this->rr = $db->Execute("SELECT description, price, amount FROM care_tz_billing_archive_elem WHERE nr = '{$billno}'"); echo '<table width="100%" border="0" align="right" cellpadding="4" cellspacing="1">'; $counttoto = 0; while ($this->mm = $this->rr->FetchRow()) { echo '<tr valign="top" style="font:normal 12px Tahoma, monospace; color:black; ">'; echo '<td align="left" style="border-bottom:1px dotted #F2F2F2; " nowrap> ' . $this->mm[0] . ' </td>'; echo '<td align="right" style="border-bottom:1px dotted #F2F2F2; "> ' . $this->mm[1] * $this->mm[2] . '.00 </td>'; $counttoto += intval($this->mm[1] * $this->mm[2]); echo '</tr>'; } echo ' <tr style="font:normal 12px Tahoma, monospace; color:black; "> <td width="70%" align="right" valign="middle"><strong>Grand Total:</strong></td> <td width="30%" align="right" valign="middle" bgcolor="#FFFFFF" style="border-bottom:1px solid #F2F2F2; border-top:1px solid #F2F2F2;">' . '<strong>' . $counttoto . '.00' . '</strong>' . '</td> </tr>'; echo ' <tr style="font:normal 12px Tahoma, monospace; color:black; "> <td width="70%" align="right" valign="middle"><strong>Total Paid:</strong></td> <td width="30%" align="right" valign="middle" bgcolor="#FFFFFF" style="border-bottom:1px solid #F2F2F2; border-top:1px solid #F2F2F2;">' . '<strong>' . $this->row[4] . '.00' . '</strong>' . '</td> </tr> </table>'; $showme = 'yes'; } else { echo 'no description found'; // ??????????????????????????????????????????????????? $showme = 'no'; } echo '</td>'; echo '<td align="right" valign="bottom">' . '<div style="width:100%;padding-bottom:3px; border-bottom:1px solid #F2F2F2; font-weight:bold;">' . ''; $showme == 'yes' ? print $this->row[3] : (print '0'); $showme == 'no' ? $toto = $toto : ($toto += $this->row[3]); echo '.00</div></td>' . '' . ''; echo '</tr>'; $showme = 'yes'; } if (intval($toto) != 0) { echo '<tr class="'; if ($cc == '0') { echo $ca; } else { echo $cb; } echo '" style="text-align:right;font:bold 12px Tahoma,Monospace;">'; echo '<td colspan="4">Total: </td>'; echo '<td>' . $toto . '.00</td>'; echo '</tr></table>'; } else { echo '<tr class="'; if ($cc == '0') { echo $ca; } else { echo $cb; } echo '">'; echo '<td colspan="5" align="center">No Record Found</td>'; echo '</tr></table>'; } }
$breakfile = 'nursing-patient-such-start.php' . URL_APPEND; } } # Create ward object require_once $root_path . 'include/care_api_classes/class_ward.php'; $ward_obj = new Ward(); # Create insurance object include_once $root_path . 'include/care_api_classes/class_tz_insurance.php'; $ins_obj = new Insurance_tz(); # create multi functional object include_once $root_path . 'include/care_api_classes/class_multi.php'; $multi_obj = new multi(); $vct = $multi_obj->__genNumbers(); # Create insurance object include_once $root_path . 'include/care_api_classes/class_mini_dental.php'; $mini_obj = new dental(); # Load date formatter require_once $root_path . 'include/inc_date_format_functions.php'; require_once $root_path . 'global_conf/inc_remoteservers_conf.php'; if ($mode == '' || $mode == 'fresh') { if ($ward_info =& $ward_obj->getWardInfo($ward_nr)) { $room_obj =& $ward_obj->getRoomInfo($ward_nr, $ward_info['room_nr_start'], $ward_info['room_nr_end']); $all_info = $ward_obj->getAll_WardInfo($doclist); if (is_object($room_obj)) { $room_ok = true; } else { $room_ok = false; } # GEt the number of beds $nr_beds = $ward_obj->countBeds($ward_nr); //echo $ward_obj->getLastQuery();
<?php $bachno = $_GET['bachno']; $paid = $_GET['paid']; $totalpaid = $_GET['total']; $encounter_nr = $_GET['encounter']; error_reporting(E_COMPILE_ERROR | E_ERROR | E_CORE_ERROR); require './roots.php'; require $root_path . 'include/inc_environment_global.php'; include_once $root_path . 'include/care_api_classes/class_mini_dental.php'; $person_obj = new dental(); $names = $person_obj->GetNamesFromBatchNo($bachno); ?> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <title>Dental Department (Special Billing)</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> </head> <style type="text/css"> <!-- #gentext{font:normal 12px Tahoma, Monospace; color:black;} .mainheader{font:bold 14px Tahoma, Monospace; color:black; text-transform:uppercase; text-align:center; padding:10px 0px 5px 0px;} .headtext{text-transform:uppercase; font-weight:bold; text-align:left; font:bold 12px Tahoma, Monospace;} .headline{ font:bold 12px Tahoma, Monospace; border-bottom:2px solid black; padding:8px 0px 3px 0px;
* October 2008. */ session_start(); require './roots.php'; require $root_path . 'include/inc_environment_global.php'; $lang_tables[] = 'search.php'; define('LANG_FILE', 'dental.php'); define('NO_2LEVEL_CHK', 1); require_once $root_path . 'include/inc_front_chain_lang.php'; require_once $root_path . 'include/inc_date_format_functions.php'; include_once $root_path . 'include/care_api_classes/class_mini_dental.php'; $histry = new dental(); $pName = new dental(); $histry->viewtype = $view == 'cons' ? 4 : 0; #print ($pName->viewtype.'<hr />'); $fileno_obj = new dental(); /** * Patient Encounter */ $encounter_nr = $_GET['encounter']; /** * Patient ID */ $pid = $_GET['pid']; !$pid ? $pid = $pName->GetPidFromEncounter($encounter_nr) : ($pid = $pid); /** * colors for the report */ $printThiS = FALSE; $c1 = '#FFFFF'; $c2 = '#F4F8F3';
require './roots.php'; $pageURL = 'http'; if ($_SERVER["HTTPS"] == "on") { $pageURL .= "s"; } $pageURL .= "://"; if ($_SERVER["SERVER_PORT"] != "80") { $pageURL .= $_SERVER["SERVER_NAME"] . ":" . $_SERVER["SERVER_PORT"] . $_SERVER["REQUEST_URI"]; } else { $pageURL .= $_SERVER["SERVER_NAME"] . $_SERVER["REQUEST_URI"]; } $lang_tables[] = 'search.php'; define('LANG_FILE', 'dental.php'); require $root_path . 'include/inc_environment_global.php'; include_once $root_path . 'include/care_api_classes/class_mini_dental.php'; $notes_obj = new dental(); $url = explode('|', $_GET['url']); if ($_GET['mode'] == 'edit') { $sq = "SELECT * FROM care_encounter_notes WHERE nr=" . $_GET['id']; $d = $db->Execute($sq); $yy = $d->FetchRow(); #print_r($yy); } #print_r($_GET); ?> <div id="mimix"> <form name="form1" method="get" action="dental_billing_.php"> <table width="400" border="0" align="center" cellpadding="0" cellspacing="0"> <tr> <td><table width="470" border="0" align="center" cellpadding="4" cellspacing="1" bgcolor="#D2DFD0" class="style3"> <tr align="center" bgcolor="#E7EEE6">
$paid = $_GET['pay']; } $fder = $_GET['encounter'] . '|' . $paid . '|' . $_GET['type'] . '|' . $_GET['total'] . '|' . intval(intval($_GET['total']) - intval($_GET['pay'])); $pobj = new dental(); $fder .= '|' . $pobj->GetNamesFromBatchNo($_GET['bachno']) . '|'; $fder .= $_GET['billno']; //echo $fder; $pobj->dentalPoorFundInsert($fder); include_once $root_path . 'include/care_api_classes/class_multi.php'; $multi = new multi(); $multi->doctorSTAT($_SESSION['sess_login_userid'], $encounter); // echo 'saved'; } session_start(); /** * * for PATIENT NOTES * **/ if ($_GET['types'] && $_GET['notes'] && $_GET['by'] && $_GET['remove'] == '') { require $root_path . 'include/inc_environment_global.php'; include_once $root_path . 'include/care_api_classes/class_mini_dental.php'; $getall = $_GET['encounter'] . '+' . $_GET['types'] . '+' . $_GET['short'] . '+' . $_GET['notes'] . '+' . $_GET['by'] . '+' . $_GET['mode'] . '+' . $_GET['nr']; $note_obj = new dental(); $note_obj->SaveNewPatientNote($getall); include_once $root_path . 'include/care_api_classes/class_multi.php'; $multi = new multi(); $multi->doctorSTAT($_SESSION['sess_login_userid'], $encounter); } $ref = @$HTTP_REFERER; strlen($ref) != 0 ? header('location:' . $ref) : (print '<meta http-equiv="refresh" content="0;URL=javascript:window.history.back();">');