當前位置: 首頁>>代碼示例>>PHP>>正文


PHP LabConfig::getDoctorUserOptions方法代碼示例

本文整理匯總了PHP中LabConfig::getDoctorUserOptions方法的典型用法代碼示例。如果您正苦於以下問題:PHP LabConfig::getDoctorUserOptions方法的具體用法?PHP LabConfig::getDoctorUserOptions怎麽用?PHP LabConfig::getDoctorUserOptions使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在LabConfig的用法示例。


在下文中一共展示了LabConfig::getDoctorUserOptions方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: getDoctorObject

 public static function getDoctorObject($record)
 {
     global $DEFAULT_DATE_FORMAT;
     # Converts a lab_config record in DB into a LabConfig object
     if ($record == null) {
         return null;
     }
     $lab_config = new LabConfig();
     if (isset($record['lab_config_id'])) {
         $lab_config->id = $record['lab_config_id'];
     } else {
         $lab_config->id = null;
     }
     $lab_config->name = $record['name'];
     $lab_config->location = $record['location'];
     $lab_config->adminUserId = $record['admin_user_id'];
     $lab_config->dbName = $record['db_name'];
     if (isset($record['id_mode'])) {
         $lab_config->idMode = $record['id_mode'];
     } else {
         $lab_config->idMode = 1;
     }
     ## TODO: Reflect the following attribs in DB backend
     $lab_config->collectionDateUsed = false;
     $lab_config->collectionTimeUsed = false;
     $arr1 = str_split(LabConfig::getDoctorUserOptions());
     $lab_config->patientAddl = $arr1[0];
     $lab_config->specimenAddl = $arr1[1];
     $lab_config->dailyNum = $arr1[2];
     $lab_config->sid = $arr1[3];
     $lab_config->pid = $arr1[4];
     $lab_config->comm = $arr1[5];
     $lab_config->age = $arr1[6];
     $lab_config->dob = $arr1[7];
     $lab_config->rdate = $arr1[8];
     $lab_config->refout = $arr1[9];
     $lab_config->pname = $arr1[10];
     $lab_config->sex = $arr1[11];
     $lab_config->doctor = $arr1[12];
     if (isset($record['dnum_reset'])) {
         $lab_config->dailyNumReset = $record['dnum_reset'];
     } else {
         $lab_config_id->dailyNumReset = LabConfig::$RESET_DAILY;
     }
     if (isset($record['dformat'])) {
         $lab_config->dateFormat = $record['dformat'];
     } else {
         $lab_config->dateFormat = $DEFAULT_DATE_FORMAT;
     }
     if (isset($record['pnamehide'])) {
         $lab_config->hidePatientName = $record['pnamehide'];
     } else {
         $lab_config->hidePatientName = 1;
     }
     if (isset($record['ageLimit'])) {
         $lab_config->ageLimit = $record['ageLimit'];
     } else {
         $lab_config->ageLimit = 5;
     }
     return $lab_config;
 }
開發者ID:caseyi,項目名稱:BLIS,代碼行數:61,代碼來源:db_lib.php


注:本文中的LabConfig::getDoctorUserOptions方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。