本文整理汇总了PHP中get_test_type_by_id函数的典型用法代码示例。如果您正苦于以下问题:PHP get_test_type_by_id函数的具体用法?PHP get_test_type_by_id怎么用?PHP get_test_type_by_id使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了get_test_type_by_id函数的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: get_result_form
echo $test->decodeResult();
} else {
get_result_form($test_type, $test->testId, count($test_list), $patient);
}
?>
</td>
</tr>
<?php
$related_test_count++;
}
} else {
?>
<tr valign='top'>
<td>
<?php
$test_type = get_test_type_by_id($test->testTypeId);
echo $test_type->getName();
?>
</td>
<td>
<?php
if ($test->isPending() === false) {
echo "(" . LangUtil::$pageTerms['MSG_ALREADYENTERED'] . ") ";
echo $test->decodeResult();
} else {
get_result_form($test_type, $test->testId, count($test_list), $patient);
}
?>
</td>
</tr>
示例2: get_test_type_by_id
//$tips_string = LangUtil::$pageTerms['TIPS_CATALOG'];
$tips_string = "To know more about a particular field select on the [?] next to the field name.";
$page_elems->getSideTip("Tips", $tips_string);
?>
<b><?php
echo LangUtil::$pageTerms['EDIT_TEST_TYPE'];
?>
</b>
| <a href="catalog.php?show_t=1"><?php
echo LangUtil::$generalTerms['CMD_CANCEL'];
?>
</a>
<br><br>
<?php
$test_type = get_test_type_by_id($_REQUEST['tid']);
if ($test_type == null) {
?>
<div class='sidetip_nopos'>
<?php
echo LangUtil::$generalTerms['MSG_NOTFOUND'];
?>
</div>
<?php
include "includes/footer.php";
return;
}
# Fetch all measures currently on this test type
$measure_list = $test_type->getMeasureIds();
# Display test type info table
$page_elems->getTestTypeInfo($test_type->name, true);
示例3: get_lab_config_by_id
</b>
| <a href='reports.php'>« <?php
echo LangUtil::$pageTerms['MSG_BACKTOREPORTS'];
?>
</a>
<br><br>
<?php
$lab_config_id = $_REQUEST['location'];
$lab_config = get_lab_config_by_id($lab_config_id);
DbUtil::switchToLabConfig($lab_config_id);
$test_type_id = $_REQUEST['test_type'];
if ($test_type_id == "0") {
# Show graph for all test types in the lab configuration
} else {
# Show pending tests for this type in a table
$test = get_test_type_by_id($test_type_id);
?>
<table class="hor-minimalist-b">
<tr>
<td><?php
echo LangUtil::$generalTerms['FACILITY'];
?>
</td>
<td> <?php
echo $lab_config->getSiteName();
?>
</td>
</tr>
<tr>
<td><?php
echo LangUtil::$generalTerms['TEST_TYPE'];
示例4: update_test_type
function update_test_type($updated_entry, $new_specimen_list, $lab_config_id)
{
global $con;
$lab_config_id = mysql_real_escape_string($lab_config_id, $con);
# Updates test type info in DB catalog
$saved_db = DbUtil::switchToLabConfigRevamp();
$existing_entry = get_test_type_by_id($updated_entry->testTypeId);
if ($existing_entry == null) {
# No record found
DbUtil::switchRestore($saved_db);
return;
}
if ($lab_config_id == "128") {
$query_string = "UPDATE test_type " . "SET name='{$updated_entry->name}', " . "description='{$updated_entry->description}', " . "test_category_id='{$updated_entry->testCategoryId}', " . "hide_patient_name='{$updated_entry->hide_patient_name}', " . "prevalence_threshold={$updated_entry->prevalenceThreshold}, " . "target_tat={$updated_entry->targetTat} " . "WHERE test_type_id={$updated_entry->testTypeId}";
} else {
$query_string = "UPDATE test_type " . "SET name='{$updated_entry->name}', " . "description='{$updated_entry->description}', " . "clinical_data='{$updated_entry->clinical_data}', " . "test_category_id='{$updated_entry->testCategoryId}', " . "hide_patient_name='{$updated_entry->hide_patient_name}', " . "prevalence_threshold={$updated_entry->prevalenceThreshold}, " . "target_tat={$updated_entry->targetTat} " . "WHERE test_type_id={$updated_entry->testTypeId}";
}
query_blind($query_string);
# Delete entries for removed compatible specimens
$existing_list = get_compatible_specimens($updated_entry->testTypeId);
foreach ($existing_list as $specimen_type_id) {
if (in_array($specimen_type_id, $new_specimen_list)) {
# Compatible specimen not removed
# Do nothing
} else {
# Remove entry from mapping table
$query_del = "DELETE from specimen_test " . "WHERE test_type_id={$updated_entry->testTypeId} " . "AND specimen_type_id={$specimen_type_id}";
query_blind($query_del);
}
}
# Add entries for new compatible specimens
foreach ($new_specimen_list as $specimen_type_id) {
if (in_array($specimen_type_id, $existing_list)) {
# Entry already exists
# Do nothing
} else {
# Add entry in mapping table
$query_ins = "INSERT INTO specimen_test (specimen_type_id, test_type_id) " . "VALUES ({$specimen_type_id}, {$updated_entry->testTypeId})";
query_blind($query_ins);
}
}
DbUtil::switchRestore($saved_db);
}
示例5: getTestTypeTable
public function getTestTypeTable($lab_config_id)
{
# Returns HTML table listing all test types in catalog
?>
<script type='text/javascript'>
$(document).ready(function(){
$('#testTypeTable').tablesorter();
});
</script>
<?php
$ttype_list = get_test_types_catalog($lab_config_id);
if(count($ttype_list) == 0)
{
echo "<div class='sidetip_nopos'>".LangUtil::$pageTerms['TIPS_TESTSNOTFOUND']."</div>";
return;
}
?>
<table class='hor-minimalist-b tablesorter' id='testTypeTable' >
<thead>
<th>#</th>
<th><?php echo LangUtil::$generalTerms['TEST']; ?></th>
<th><?php echo LangUtil::$generalTerms['LAB_SECTION']; ?></th>
<th></th>
<th></th>
</thead>
<tbody>
<?php
$count = 1;
foreach($ttype_list as $key => $value)
{
$test_type = get_test_type_by_id($key);
$cat_name = get_test_category_name_by_id($test_type->testCategoryId);
?>
<tr>
<td>
<?php echo $count; ?>.
</td>
<td>
<?php echo $value; ?>
</td>
<td>
<?php echo $cat_name; ?>
</td>
<td>
</td>
<td>
<a href='test_type_edit.php?tid=<?php echo $key; ?>' title='Click to Edit Test Info'><?php echo LangUtil::$generalTerms['CMD_EDIT']; ?></a>
</td>
<?php
$user = get_user_by_id($_SESSION['user_id']);
if(is_country_dir($user) || is_super_admin($user))
{
?>
<td>
<a href='test_type_delete.php?id=<?php echo $key; ?>'><?php echo LangUtil::$generalTerms['CMD_DELETE']; ?></a>
</td>
<?php
}
?>
</tr>
<?php
$count++;
}
?>
</tbody>
</table>
<?php
}
示例6: header
#
# Adds test results for a single specimen
# Called via POST from specimen_result.php
#
include "redirect.php";
include "includes/db_lib.php";
$specimen_id = $_REQUEST['sid'];
$specimen = Specimen::getById($_REQUEST['sid']);
if ($specimen == null) {
# Specimen ID invalid or specimen not found
header("Location: specimen_info.php?sid={$specimen_id}");
}
$patient = Patient::getById($specimen->patientId);
$test_list = get_tests_by_specimen_id($specimen->specimenId);
foreach ($test_list as $test_entry) {
$test_type = get_test_type_by_id($test_entry->testTypeId);
$comment_field_value = $_REQUEST[$comment_field_name];
//echo "comment_field"."-".$comment_field_value."<br/>";
$measure_list = $test_type->getMeasures();
$result_value_valid = true;
$result_csv = "";
$comment_csv = "";
$submeasure_list = array();
$comb_measure_list = array();
// print_r($measure_list);
foreach ($measure_list as $measure) {
$submeasure_list = $measure->getSubmeasuresAsObj();
//echo "<br>".count($submeasure_list);
//print_r($submeasure_list);
$submeasure_count = count($submeasure_list);
if ($measure->checkIfSubmeasure() == 1) {