本文整理汇总了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;
}