<?php

namespace common\models;

use yii\db\ActiveRecord;

class ProlabResultItem extends ActiveRecord
{
    public static function tableName()
    {
        return '{{%prolab_result_item}}';
    }

    public function rules()
    {
        return [
            [[
                'req_no',
                'req_seq',
                'test_code',
                'test_name',
                'hn',
                'full_name',
                'dob',
                'sex',
                'req_datetime',
                'approve_datetime',
                'approve_by'
            ], 'string'],
            [['test_result', 'report_param', 'outlab_files'], 'string'],
            [['outlab_file_count'], 'integer'],
        ];
    }

    public function attributeLabels()
    {
        return [
            'req_no'             => 'ReqNo',
            'req_seq'            => 'ReqSeq',
            'test_code'          => 'Test Code',
            'test_name'          => 'Test Name',
            'hn'                 => 'HN',
            'full_name'          => 'Full Name',
            'dob'                => 'DOB',
            'sex'                => 'Sex',
            'req_datetime'       => 'Req DateTime',
            'test_result'        => 'Test Result',
            'report_param'       => 'Report Param',
            'approve_datetime'   => 'Approve DateTime',
            'approve_by'         => 'Approve By',
            'outlab_file_count'  => 'Outlab File Count',
            'outlab_files'       => 'Outlab Files',
        ];
    }
}