本文整理汇总了PHP中LabConfig::getDoctorConfig方法的典型用法代码示例。如果您正苦于以下问题:PHP LabConfig::getDoctorConfig方法的具体用法?PHP LabConfig::getDoctorConfig怎么用?PHP LabConfig::getDoctorConfig使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类LabConfig
的用法示例。
在下文中一共展示了LabConfig::getDoctorConfig方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: get_user_by_id
$user = get_user_by_id($_SESSION['user_id']);
if (!(is_country_dir($user) || is_super_admin($user))) {
$saved_db = DbUtil::switchToGlobal();
$query = "SELECT lab_config_id FROM lab_config WHERE admin_user_id = " . $_SESSION['user_id'];
$record = query_associative_one($query);
$labId = $record['lab_config_id'];
if ($labId != $lab_config_id) {
echo "You are not authorized to access the configuration";
include "includes/footer.php";
die;
}
DbUtil::switchRestore($saved_db);
}
//echo "Lab Config Id ".$lab_config_id;
$lab_config = LabConfig::getById($lab_config_id);
$doctor_lab_config = LabConfig::getDoctorConfig($lab_config_id);
//Patient Custom Fields for the lab with $lab_config
$custom_field_list_patients = get_lab_config_patient_custom_fields($lab_config->id);
$custom_field_list_specimen = get_lab_config_specimen_custom_fields($lab_config->id);
$custom_field_list_labTitle = get_lab_config_labtitle_custom_fields($lab_config->id);
//echo "custom fields = ".$custom_field_list[0]->id;
if ($lab_config == null) {
?>
<br><br>
<div class='sidetip_nopos'>
<?php
echo LangUtil::$generalTerms['MSG_NOTFOUND'];
?>
</div>
<?php
include "includes/footer.php";