92 lines
3.1 KiB
PHP
92 lines
3.1 KiB
PHP
<?php
|
||
|
||
namespace common\modelsgii\oldDb;
|
||
|
||
/**
|
||
* This is the model class for table "yii_prescription_granular".
|
||
*
|
||
* @property int $id
|
||
* @property string|null $name 保存为常用处方时的名字
|
||
* @property int $su_id
|
||
* @property string $prescription_no 处方编号
|
||
* @property string $content
|
||
* @property string $clinical_diagnose 临床诊断
|
||
* @property int $user_id 用户id
|
||
* @property int $up_id 就诊人id
|
||
* @property int $store_id 门店id
|
||
* @property int $status 状态 7已初审,0待审核,1已通过,2未通过,3待使用,4已使用,5未使用,6已失效
|
||
* @property int $category 类别 1自费2医保
|
||
* @property string $doctor_order 医嘱
|
||
* @property string|null $doctor_sign
|
||
* @property int|null $pharmacist_id
|
||
* @property string|null $pharmacist_sign
|
||
* @property int|null $pharmacist_view_time
|
||
* @property int|null $first_view 初审药师id
|
||
* @property int|null $first_time 初审时间
|
||
* @property int|null $again_view 复审药师id
|
||
* @property int|null $again_time 复审时间
|
||
* @property int $type 类型 1普通方 2常用方
|
||
* @property string $gr_ids 药方ids
|
||
* @property int $created_at 开具时间
|
||
* @property int $updated_at
|
||
*/
|
||
class PrescriptionServer extends \common\core\BaseActiveRecord
|
||
{
|
||
/**
|
||
* {@inheritdoc}
|
||
*/
|
||
public static function tableName()
|
||
{
|
||
return 'yii_prescription_server';
|
||
}
|
||
|
||
|
||
/**
|
||
* {@inheritdoc}
|
||
*/
|
||
public function rules()
|
||
{
|
||
return [
|
||
[['store_id', 'su_id', 'up_id', 'prescription_no'], 'required'],
|
||
[['store_id', 'su_id', 'user_id', 'up_id', 'status', 'category', 'pharmacist_id', 'pharmacist_view_time', 'first_view', 'first_time', 'again_view', 'again_time', 'type', 'created_at', 'updated_at'], 'integer'],
|
||
[['content', 'doctor_sign', 'pharmacist_sign'], 'string'],
|
||
[['name', 'prescription_no', 'wr_ids'], 'string', 'max' => 50],
|
||
[['doctor_order'], 'string', 'max' => 200],
|
||
[['clinical_diagnose'], 'string', 'max' => 100],
|
||
];
|
||
}
|
||
|
||
/**
|
||
* {@inheritdoc}
|
||
*/
|
||
public function attributeLabels()
|
||
{
|
||
return [
|
||
'id' => 'ID',
|
||
'name' => 'Name',
|
||
'store_id' => 'Store ID',
|
||
'su_id' => 'Su ID',
|
||
'user_id' => 'User ID',
|
||
'up_id' => 'Up ID',
|
||
'doctor_order' => 'Doctor Order',
|
||
'prescription_no' => 'Prescription No',
|
||
'content' => 'Content',
|
||
'clinical_diagnose' => 'Clinical Diagnose',
|
||
'status' => 'Status',
|
||
'category' => 'Category',
|
||
'doctor_sign' => 'Doctor Sign',
|
||
'pharmacist_sign' => 'Pharmacist Sign',
|
||
'pharmacist_id' => 'Pharmacist ID',
|
||
'pharmacist_view_time' => 'Pharmacist View Time',
|
||
'first_view' => 'First View',
|
||
'first_time' => 'First Time',
|
||
'again_view' => 'Again View',
|
||
'again_time' => 'Again Time',
|
||
'wr_ids' => 'Wr Ids',
|
||
'type' => 'Type',
|
||
'created_at' => 'Created At',
|
||
'updated_at' => 'Updated At',
|
||
];
|
||
}
|
||
}
|