<?php

namespace common\models;

use Yii;

/**
 * This is the model class for table "lis_result".
 *
 * @property int $id
 * @property string $lab_no
 * @property string $riah_doc_id
 * @property string $riah_doc_date
 * @property string $test_code
 * @property string $test_name
 * @property string $cust_id
 * @property string $hn
 * @property string $result_value
 * @property string $result_unit
 * @property string $reference_range
 * @property string $status
 */
class LisResultSend extends \yii\db\ActiveRecord
{
    /**
     * {@inheritdoc}
     */
    public static function tableName()
    {
        return 'lis_result_send';
    }

    /**
     * {@inheritdoc}
     */
    public function rules()
    {
        return [
            [['lab_no', 'riah_doc_id', 'riah_doc_date', 'test_code', 'test_name', 'cust_id', 'hn', 'result_value', 'result_unit', 'reference_range', 'status'], 'required'],
            [['riah_doc_date'], 'safe'],
            [['lab_no'], 'string', 'max' => 20],
            [['riah_doc_id'], 'string', 'max' => 50],
            [['test_code'], 'string', 'max' => 20],
            [['test_name'], 'string', 'max' => 120],
            [['cust_id'], 'string', 'max' => 10],
            [['hn'], 'string', 'max' => 20],
            [['result_value'], 'string', 'max' => 200],
            [['result_unit'], 'string', 'max' => 20],
            [['reference_range'], 'string', 'max' => 250],
            [['status'], 'integer'],
        ];
    }

    /**
     * {@inheritdoc}
     */
    public function attributeLabels()
    {
        return [
            'id' => 'ID',
            'lab_no' => 'Lab No',
            'riah_doc_id' => 'RiaH Doc ID',
            'riah_doc_date' => 'RiaH Doc Date',
            'test_code' => 'Test Code',
            'test_name' => 'Test Name',
            'cust_id' => 'Customer ID',
            'hn' => 'HN',
            'result_value' => 'Result Value',
            'result_unit' => 'Result Unit',
            'reference_range' => 'Reference Range',
            'status' => 'Status',
        ];
    }
}