81 lines
2.3 KiB
PHP
81 lines
2.3 KiB
PHP
<?php
|
|
|
|
namespace common\modelsgii;
|
|
|
|
use Yii;
|
|
|
|
/**
|
|
* This is the model class for table "yii_user_patient_case".
|
|
*
|
|
* @property int $id
|
|
* @property int $store_id 门店id
|
|
* @property int $service_user_id
|
|
* @property int $user_patient_id 就诊人id
|
|
* @property int $register_id 关联挂号
|
|
* @property int|null $hight
|
|
* @property int|null $weight
|
|
* @property int|null $temperature 体温
|
|
* @property int|null $blood 血压
|
|
* @property string $main_suit 主诉
|
|
* @property string $family 家族史
|
|
* @property string $now_history 现病史
|
|
* @property string $popular 流行病史
|
|
* @property string $history 既往史
|
|
* @property string $allergic 过敏史
|
|
* @property string $idea 意见
|
|
* @property int $created_at
|
|
* @property int $updated_at
|
|
* @property int $is_delete
|
|
*/
|
|
class UserPatientCase extends \common\core\BaseActiveRecord
|
|
{
|
|
/**
|
|
* {@inheritdoc}
|
|
*/
|
|
public static function tableName()
|
|
{
|
|
return 'yii_user_patient_case';
|
|
}
|
|
|
|
/**
|
|
* {@inheritdoc}
|
|
*/
|
|
public function rules()
|
|
{
|
|
return [
|
|
[['store_id', 'service_user_id', 'user_patient_id','register_id'], 'required'],
|
|
[['store_id', 'service_user_id', 'user_patient_id', 'hight', 'weight', 'temperature', 'blood', 'created_at', 'updated_at', 'is_delete'], 'integer'],
|
|
[['main_suit', 'family', 'now_history', 'popular', 'history', 'allergic'], 'string', 'max' => 500],
|
|
[['idea'], 'string', 'max' => 100],
|
|
];
|
|
}
|
|
|
|
/**
|
|
* {@inheritdoc}
|
|
*/
|
|
public function attributeLabels()
|
|
{
|
|
return [
|
|
'id' => 'ID',
|
|
'store_id' => 'Store ID',
|
|
'service_user_id' => 'Service User ID',
|
|
'user_patient_id' => 'User Patient ID',
|
|
'register_id' => 'Register ID',
|
|
'hight' => 'Hight',
|
|
'weight' => 'Weight',
|
|
'temperature' => 'Temperature',
|
|
'blood' => 'Blood',
|
|
'main_suit' => 'Main Suit',
|
|
'family' => 'Family',
|
|
'now_history' => 'Now History',
|
|
'popular' => 'Popular',
|
|
'history' => 'History',
|
|
'allergic' => 'Allergic',
|
|
'idea' => 'Idea',
|
|
'created_at' => 'Created At',
|
|
'updated_at' => 'Updated At',
|
|
'is_delete' => 'Is Delete',
|
|
];
|
|
}
|
|
}
|