66 lines
2.2 KiB
PHP
66 lines
2.2 KiB
PHP
<?php
|
||
|
||
namespace common\modelsgii\oldDb;
|
||
|
||
/**
|
||
* This is the model class for table "yii_transfer_prescription".
|
||
*
|
||
* @property int $id 主键
|
||
* @property int $original_prescription_id 原处方ID(关联yii_prescription)
|
||
* @property int $transfer_store_id 转诊诊所ID(西医诊所)
|
||
* @property int $delegate_store_id 委托诊所ID(中医诊所)
|
||
* @property int $online_consultation_doctor_id 在线问诊医生ID
|
||
* @property int $user_id 用户ID(关联用户表)
|
||
* @property string $prescription_no 原处方编号
|
||
* @property int $prescription_type 处方类型
|
||
* @property string $content 处方内容(JSON,完整复制原处方)
|
||
* @property int $status 转诊状态 0=待确认, 1=已确认, 2=已导入, 3=已取消
|
||
* @property int $transfer_time 转诊时间
|
||
* @property int $created_at 创建时间
|
||
* @property int $updated_at 更新时间
|
||
*/
|
||
class TransferPrescription extends \common\core\BaseActiveRecord
|
||
{
|
||
/**
|
||
* {@inheritdoc}
|
||
*/
|
||
public static function tableName()
|
||
{
|
||
return 'yii_transfer_prescription';
|
||
}
|
||
|
||
/**
|
||
* {@inheritdoc}
|
||
*/
|
||
public function rules()
|
||
{
|
||
return [
|
||
[['original_prescription_id', 'transfer_store_id', 'delegate_store_id', 'online_consultation_doctor_id', 'user_id', 'prescription_type', 'status', 'transfer_time', 'created_at', 'updated_at'], 'integer'],
|
||
[['content'], 'string'],
|
||
[['prescription_no'], 'string', 'max' => 255],
|
||
];
|
||
}
|
||
|
||
/**
|
||
* {@inheritdoc}
|
||
*/
|
||
public function attributeLabels()
|
||
{
|
||
return [
|
||
'id' => 'ID',
|
||
'original_prescription_id' => '原处方ID',
|
||
'transfer_store_id' => '转诊诊所ID',
|
||
'delegate_store_id' => '委托诊所ID',
|
||
'online_consultation_doctor_id' => '在线问诊医生ID',
|
||
'user_id' => '用户ID',
|
||
'prescription_no' => '处方编号',
|
||
'prescription_type' => '处方类型',
|
||
'content' => '处方内容',
|
||
'status' => '转诊状态',
|
||
'transfer_time' => '转诊时间',
|
||
'created_at' => '创建时间',
|
||
'updated_at' => '更新时间',
|
||
];
|
||
}
|
||
}
|