<?php

namespace common\models;

use Yii;

/**
 * This is the model class for table "his_result_list".
 *
 * @property int $ID
 * @property int $HisResultTestListID
 * @property string $ResultCode
 * @property string $ResultName
 * @property string $ResultValue
 * @property string $ResultUnit
 * @property string $ResultFlag
 * @property string $ReferenceRange
 * @property string $ResultRemark
 */
class HisResultList extends \yii\db\ActiveRecord
{
    /**
     * {@inheritdoc}
     */
    public static function tableName()
    {
        return 'his_result_list';
    }

    /**
     * {@inheritdoc}
     */
    public function rules()
    {
        return [
            [['HisResultTestListID', 'ResultCode', 'ResultName', 'ResultValue', 'ResultUnit', 'ResultFlag', 'ReferenceRange', 'ResultRemark'], 'required'],
            [['HisResultTestListID'], 'integer'],
            [['ResultCode'], 'string', 'max' => 15],
            [['ResultName'], 'string', 'max' => 120],
            [['ResultValue', 'ReferenceRange'], 'string', 'max' => 250],
            [['ResultUnit'], 'string', 'max' => 20],
            [['ResultFlag'], 'string', 'max' => 10],
            [['ResultRemark'], 'string', 'max' => 500],
        ];
    }

    /**
     * {@inheritdoc}
     */
    public function attributeLabels()
    {
        return [
            'ID' => 'ID',
            'HisResultTestListID' => 'His Result Test List ID',
            'ResultCode' => 'Result Code',
            'ResultName' => 'Result Name',
            'ResultValue' => 'Result Value',
            'ResultUnit' => 'Result Unit',
            'ResultFlag' => 'Result Flag',
            'ReferenceRange' => 'Reference Range',
            'ResultRemark' => 'Result Remark',
        ];
    }
}
