public function getTestTypeInfo($test_name, $show_db_name=false) { # Returns HTML for displaying test type information $test_type = get_test_type_by_name($test_name); ?> <table class='hor-minimalist-b'> <tbody> <tr> <td><?php echo LangUtil::$generalTerms['NAME']; ?></td> <td> <?php if($show_db_name === true) echo $test_type->name; else echo $test_type->getName(); ?> </td> </tr> <tr> <td><?php echo LangUtil::$generalTerms['LAB_SECTION']; ?></td> <td><?php echo get_test_category_name_by_id($test_type->testCategoryId); ?></td> </tr> <tr valign='top'> <td><?php echo LangUtil::$generalTerms['DESCRIPTION']; ?></td> <td><?php echo $test_type->getDescription(); ?></td> </tr> <tr valign='top'> <td><?php echo LangUtil::$generalTerms['MEASURES']; ?></td> <td> <?php # Fetch all test measures $measure_id_list = get_test_type_measures($test_type->testTypeId); sort($measure_id_list); //print_r($measure_id_list); foreach($measure_id_list as $measure_id) { $measure = get_measure_by_id($measure_id); if($measure==NULL && count($meausre_id_list)==1 ) { echo "No Measures Found!"; break; } else if($measure!=NULL) { if(strpos($measure->getName(), "\$sub") !== false) { $decName = $measure->truncateSubmeasureTag(); echo "    ".$decName."<br>"; } else { echo $measure->getName()."<br>"; } } } ?> </td> </tr> <tr valign='top'> <td><?php echo LangUtil::$generalTerms['COMPATIBLE_SPECIMENS']; ?></td> <td> <?php # Fetch list of compatible specimens $compatible_specimens = get_compatible_specimens($test_type->testTypeId); if(count($compatible_specimens) == 0) { echo "-"; } else { foreach($compatible_specimens as $curr_specimen) { # Show test name $specimen_type = get_specimen_type_by_id($curr_specimen); echo $specimen_type->getName()."<br>"; } } ?> </td> </tr> <tr valign='top'> <td>Hide Patient Name in Report</td> <td><?php if( $test_type->hidePatientName == 0) { echo "No"; } else { echo "Yes"; } ?> </td> </tr> <tr valign='top'> <td>Prevalence Threshold</td> <td><?php echo $test_type->prevalenceThreshold; ?></td> </tr> <tr valign='top'> <td>Target TAT</td> <td><?php echo $test_type->targetTat; ?></td> </tr> <tr valign='top' <?php is_billing_enabled($_SESSION['lab_config_id']) ? print("") : print("style='display:none;'") ?>> <td>Cost To Patient</td> <td><?php print(format_number_to_money(get_latest_cost_of_test_type($test_type->testTypeId))); ?></td> </tr> </tbody> </table> <?php }
foreach ($catalog_specimen_list as $specimen_typeid => $specimen_name) { if (isset($_REQUEST['s_type_' . $specimen_typeid])) { $specimen_list[] = $specimen_typeid; } } # Add test type record //function add_test_type($test_name, $test_descr, $clinical_data, $cat_code, $is_panel, $specimen_list=array(), $lab_config_id, $hide_patient_name) $test_type_id = ""; if (count($specimen_list) != 0) { # Add entries to 'specimen_test' map table $test_type_id = add_test_type($test_name, $test_descr, $test_clinical_data, $cat_code, $is_panel, $lab_config_id, $hide_patient_name, $prevalenceThreshold, $targetTat, $specimen_list); } else { # No specimens selected. Add test anyway $test_type_id = add_test_type($test_name, $test_descr, $test_clinical_data, $cat_code, $is_panel, $lab_config_id, $hide_patient_name, $prevalenceThreshold, $targetTat); } if ($newCostToPatient > 0 && is_billing_enabled($_SESSION['lab_config_id'])) { // If the cost is greater than 0, we go ahead and add the cost. If not, there's no reason to make another sql call here. It'll be done elsewhere. instantiate_new_cost_of_test_type($newCostToPatient, $test_type_id); } enable_new_test($_SESSION['lab_config_id'], $test_type_id); # Merge added_measure_list and added_submeasures_list $add_measr = $added_measures_list; $merged_list = array_merge($added_measures_list, $added_submeasures_list); sort($merged_list); /* echo "<br>"; print_r($added_measures_list); echo "<br>"; print_r($added_submeasures_list); echo "<br>"; print_r($merged_list);
</div> <div class='right_pane' id='billing_div' style='display:none;margin-left:10px;'> <p style="text-align: right;"><a rel='facebox' href='#Billing_config'>Page Help</a></p> <div id='billing_msg' class='clean-orange' style='display:none;width:350px;'> </div> <form id='billing_form' name='billing_form' action='ajax/billing_update.php' method='post'> <input type='hidden' name='lid' value='<?php echo $lab_config->id; ?> '></input> <div class="pretty_box"> <?php if (is_billing_enabled($_SESSION['lab_config_id'])) { $checkbox = "checked"; } else { $checkbox = ""; } $old_currency = get_currency_type_from_lab_config_settings(); ?> <input type="checkbox" value="enable_billing" name="enable_billing" <?php echo $checkbox; ?> /><?php echo "Enable Billing"; ?> <br><br> <?php echo "Default Currency Name:";
public function getPatientTaskList($patient_id) { $patient = get_patient_by_id($patient_id); $patient_num =$patient->getDailyNum(); $pieces = explode("-", $patient_num); # Lists patient-profile related tasks in a tips box $patientBarcodes = patientBarcodeCheck(); global $LIS_TECH_RO, $DISABLE_UPDATE_PATIENT_PROFILE; if($_SESSION['user_level'] != $LIS_TECH_RO) { ?> <div class='sidetip_nopos'> <p> <a href='new_specimen.php?pid=<?php echo $patient_id; ?>&dnum=<?php echo $pieces[1]; ?>' title='Click to Register a New Specimen for this Patient'> <?php echo LangUtil::$pageTerms['MSG_REGNEWSPECIMEN']; ?> </a> </p> <?php if(($DISABLE_UPDATE_PATIENT_PROFILE === false)&&(get_level_by_id($_SESSION['user_id']) ==2)) { ?> <p> <a href='javascript:toggle_profile_divs();' title='Click to Update Patient Profile'> <?php echo LangUtil::$pageTerms['MSG_UPDATEPROFILE']; ?> </a> </p> <?php } ?> <p> <a href='reports_testhistory.php?location=<?php echo $_SESSION['lab_config_id']; ?>&patient_id=<?php echo $patient_id; ?>' title='Click to Generate Test History Report for this Patient' target='_blank'> <?php echo LangUtil::$pageTerms['MSG_PRINTHISTORY']; ?> </a> </p> <?php if($patientBarcodes == 1) { ?> <p> <a href='javascript:print_patient_barcode();' title='Click to Print Patient Barcode'> <?php echo "Print Patient Barcode" ?> </a> </p> <?php } ?> <!--<p><a href='#'>Export as XML</a></p>--> <?php if (is_billing_enabled($_SESSION['lab_config_id'])) { ?> <p> <a rel='facebox' href='bill_generator.php?location=<?php echo$_SESSION['lab_config_id']; ?>&patient_id=<?php echo $patient_id; ?>' title='Click to generate a billing statement for this Patient' target='_blank'> <?php echo "Billing Report" ?> </a> </p> <?php } ?> </div> <?php } }
<a href='<?php echo $url_string; ?> ' title='Click to View Report for this Patient' target='_blank'><?php echo LangUtil::$generalTerms['CMD_VIEW']; ?> Report</a> </td> <td> <a href='select_test_profile.php?pid=<?php echo $patient->patientId; ?> ' title='Click to View Patient Profile'>Select Tests</a> </td> <td <?php is_billing_enabled($_SESSION['lab_config_id']) ? print "" : (print "style='display:none'"); ?> > <a href=<?php echo $billing_url_string; ?> ' title='Click to generate a bill for this patient'>Generate Bill</a> </td> <td> <?php } else { # Called from search.php. Show only 'profile' link ?> <a href='patient_profile.php?pid=<?php echo $patient->patientId;