Files
xk-api-yii/common/modelsgii/UserPatientHealthInquiry.php
2024-09-19 11:32:39 +08:00

72 lines
2.2 KiB
PHP

<?php
namespace common\modelsgii;
use Yii;
/**
* This is the model class for table "{{%user_patient_health_inquiry}}".
*
* @property int $id
* @property int $user_patient_id 关联就诊人
* @property int $liver_function 肝功能0正常1异常
* @property string $liver_index 肝功能指标
* @property int $renal_function 肾功能0正常1异常
* @property string $renal_index 肾功能指标
* @property int $person_status 既往史0无1有
* @property string $person_history 既往史
* @property int $allergic_status 过敏史0无1有
* @property string $allergic_history 过敏史
* @property int $family_status 家庭病史0无1有
* @property string $family_history 家庭病史
* @property int $is_delete
* @property int $created_at
* @property int $updated_at
*/
class UserPatientHealthInquiry extends \common\core\BaseActiveRecord
{
/**
* {@inheritdoc}
*/
public static function tableName()
{
return '{{%user_patient_health_inquiry}}';
}
/**
* {@inheritdoc}
*/
public function rules()
{
return [
[['user_patient_id'], 'required'],
[['user_patient_id', 'liver_function', 'renal_function', 'person_status', 'allergic_status', 'family_status', 'is_delete', 'created_at', 'updated_at'], 'integer'],
[['liver_index','renal_index','person_history', 'allergic_history', 'family_history'], 'string', 'max' => 1000],
];
}
/**
* {@inheritdoc}
*/
public function attributeLabels()
{
return [
'id' => 'ID',
'user_patient_id' => '关联就诊人',
'liver_function' => '肝功能0正常1异常',
'liver_index' => '肝功能指标',
'renal_function' => '肾功能0正常1异常',
'renal_index' => '肾功能指标',
'person_status' => '既往史0无1有',
'person_history' => '既往史',
'allergic_status' => '过敏史0无1有',
'allergic_history' => '过敏史',
'family_status' => '家庭遗传史0无1有',
'family_history' => '家庭遗传史',
'is_delete' => 'Is Delete',
'created_at' => 'Created At',
'updated_at' => 'Updated At',
];
}
}