• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

PHP get_test_type_by_id函数代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了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>
	
开发者ID:caseyi,项目名称:BLIS,代码行数:30,代码来源:specimen_form_fetch.php


示例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);
开发者ID:nchopra,项目名称:C4G-BLIS,代码行数:31,代码来源:test_type_edit.php


示例3: get_lab_config_by_id

</b>
| <a href='reports.php'>&laquo; <?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'];
开发者ID:jfurlong,项目名称:BLIS,代码行数:31,代码来源:reports_pending.php


示例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);
}
开发者ID:nchopra,项目名称:C4G-BLIS,代码行数:43,代码来源:db_lib.php


示例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
	}
开发者ID:jfurlong,项目名称:BLIS,代码行数:70,代码来源:page_elemsdff.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) {
开发者ID:jfurlong,项目名称:BLIS,代码行数:31,代码来源:specimen_result_do.php



注:本文中的get_test_type_by_id函数示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
PHP get_tests_by_specimen_id函数代码示例发布时间:2022-05-15
下一篇:
PHP get_test_name_by_id函数代码示例发布时间:2022-05-15
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap