<?php

namespace console\models;

use yii\db\ActiveRecord;

/**
 * This is the model class for table "hanuman_result_sikarin_check".
 *
 * @property string $LabNo
 * @property string|null $RiaHDocDate
 * @property string|null $RiaHDocID
 * @property string|null $status
 * @property string|null $TestCode
 * @property string|null $TestName
 * @property string|null $PatName
 * @property string|null $PatHN
 * @property string|null $CustID
 * @property string|null $LabID
 * @property string|null $LabName
 * @property string|null $RiaLDRsltAnal
 * @property string|null $LabNormal1
 * @property string|null $LabNormal2
 * @property string|null $LabUnit
 * @property string|null $RiaLDUserNameEntry
 * @property string|null $RiaLDUserDateEntry
 * @property string|null $RiaLDUserNameAppr
 * @property string|null $RiaLDUserDateAppr
 * @property string|null $RiaLDApprvFlag
 */
class HanumanResultSikarinCheck extends ActiveRecord
{
    /**
     * {@inheritdoc}
     */
    public static function tableName()
    {
        return 'hanuman_result_sikarin_check';
    }

    /**
     * {@inheritdoc}
     */
    public function rules()
    {
        return [
            [['LabNo'], 'required'],
            [[
                'RiaHDocDate',
                'RiaLDUserDateEntry',
                'RiaLDUserDateAppr'
            ], 'safe'],
            [[
                'RiaHDocID',
                'status',
                'TestCode',
                'TestName',
                'PatName',
                'PatHN',
                'CustID',
                'LabID',
                'LabName',
                'RiaLDRsltAnal',
                'LabNormal1',
                'LabNormal2',
                'LabUnit',
                'RiaLDUserNameEntry',
                'RiaLDUserNameAppr',
                'RiaLDApprvFlag'
            ], 'string', 'max' => 255],
            [[
                'ResultCode',
                'ResultName',
            ], 'string'],
            // allow other attributes to be assigned
            [['LabNo'], 'string', 'max' => 100],
        ];
    }

    /**
     * {@inheritdoc}
     */
    public function attributeLabels()
    {
        return [
            'LabNo' => 'Lab No',
            'RiaHDocDate' => 'Ria H Doc Date',
            'RiaHDocID' => 'Ria H Doc ID',
            'status' => 'Status',
            'TestCode' => 'Test Code',
            'TestName' => 'Test Name',
            'PatName' => 'Patient Name',
            'PatHN' => 'Patient HN',
            'CustID' => 'Customer ID',
            'LabID' => 'Lab ID',
            'LabName' => 'Lab Name',
            'RiaLDRsltAnal' => 'Result (Analytical)',
            'LabNormal1' => 'Normal Range 1',
            'LabNormal2' => 'Normal Range 2',
            'LabUnit' => 'Unit',
            'RiaLDUserNameEntry' => 'Entry By',
            'RiaLDUserDateEntry' => 'Entry Date',
            'RiaLDUserNameAppr' => 'Approved By',
            'RiaLDUserDateAppr' => 'Approved Date',
            'RiaLDApprvFlag' => 'Approved Flag',
        ];
    }
}
