<commit_before><?php
$this->title = 'จำนวนผู้ป่วยในแยกรายเดือน';
$this->params['breadcrumbs'][]=$this->title;
use kartik\grid\GridView;
use miloschuman\highcharts\Highcharts;
?>
<div class="row">
    <div class="col-md-12">
<?php
echo Highcharts::widget([
    'options'=>[
        'title'=>['text'=>'จำนวนผู้ป่วยในแยกรายเดือน'],
        'xAxis'=>[
            'categories'=>$mm
        ],
        'yAxis'=>[
            'title'=>['text'=>'จำนวน(คน)']
        ],
        'series'=>[
            [//'type'=>'line',
                'name'=>'จำนวนผู้ป่วยใน',
                'data'=>$cnt,
            ],
            ['name' => 'ผลรวม', 'data' => $sumadj],
            ['name' => 'LOS', 'data' => $los],
        ]
    ]
]);
?>
    </div>
    <div class="col-md-6">
        <?php
        echo Highcharts::widget([
            'options'=>[
                'title'=>['text'=>'ค่าเฉลี่ย CMI แยกรายเดือน'],
                'xAxis'=>[
                    'categories'=>$mm
                ],
                'yAxis'=>[
                    'title'=>['text'=>'เฉลี่ย(คน)']
                ],
                'series'=>[
                    ['type'=>'column',
                        'name'=>'CMI',
                        'data'=>$cmi,
                    ],
                    
                ]
            ]
        ]);?>
    </div>
    <div class="col-md-6">
        <?php
        echo Highcharts::widget([
            'options'=>[
                'title'=>['text'=>'นอนเฉลี่ยต่อราย'],
                'xAxis'=>[
                    'categories'=>$mm
                ],
                'yAxis'=>[
                    'title'=>['text'=>'เฉลี่ย(คน)']
                ],
                'series'=>[
                    ['type'=>'column',
                        'name'=>'Per Case',
                        'data'=>$los_per_case,
                        
                    ],
                    
                ]
            ]
        ]);?>
    </div>
    
    <div class="col-md-12">
<?php
echo GridView::widget([
    'dataProvider'=>$dataProvider,
    'panel'=>[
            'before'=>' '
    ],
    'columns'=>[
        ['class'=>'yii\grid\SerialColumn'],
        [
            'label'=>'ปี',
            'attribute'=>'yy'
        ],
        [
            'label'=>'เดือน',
            'attribute'=>'mm'
        ],
        [
            'label'=>'จำนวนผู้ป่วยใน',
            'attribute'=>'cnt'
        ],<commit_msg>Update Report<commit_after><?php
$this->title = 'จำนวนผู้ป่วยในแยกรายเดือน';
$this->params['breadcrumbs'][]=$this->title;
use kartik\grid\GridView;
use miloschuman\highcharts\Highcharts;
use yii\helpers\Html;
?>
<div class="row">
    <div class="col-md-12">
<?php
echo Highcharts::widget([
    'options'=>[
        'title'=>['text'=>'จำนวนผู้ป่วยในแยกรายเดือน'],
        'xAxis'=>[
            'categories'=>$mm
        ],
        'yAxis'=>[
            'title'=>['text'=>'จำนวน(คน)']
        ],
        'series'=>[
            [//'type'=>'line',
                'name'=>'จำนวนผู้ป่วยใน',
                'data'=>$cnt,
            ],
            ['name' => 'ผลรวม', 'data' => $sumadj],
            ['name' => 'LOS', 'data' => $los],
        ]
    ]
]);
?>
    </div>
    <div class="col-md-6">
        <?php
        echo Highcharts::widget([
            'options'=>[
                'title'=>['text'=>'ค่าเฉลี่ย CMI แยกรายเดือน'],
                'xAxis'=>[
                    'categories'=>$mm
                ],
                'yAxis'=>[
                    'title'=>['text'=>'เฉลี่ย(คน)']
                ],
                'series'=>[
                    ['type'=>'column',
                        'name'=>'CMI',
                        'data'=>$cmi,
                    ],
                    
                ]
            ]
        ]);?>
    </div>
    <div class="col-md-6">
        <?php
        echo Highcharts::widget([
            'options'=>[
                'title'=>['text'=>'นอนเฉลี่ยต่อราย'],
                'xAxis'=>[
                    'categories'=>$mm
                ],
                'yAxis'=>[
                    'title'=>['text'=>'เฉลี่ย(คน)']
                ],
                'series'=>[
                    ['type'=>'column',
                        'name'=>'Per Case',
                        'data'=>$los_per_case,
                        
                    ],
                    
                ]
            ]
        ]);?>
    </div>
    
    <div class="col-md-12">
<?php
echo GridView::widget([
    'dataProvider'=>$dataProvider,
    'panel'=>[
        'heading'=>'<h3 class="panel-title"><i class="glyphicon glyphicon-globe"></i> สรุปข้อมูลผู้ป่วยใน</h3>',
        'type'=>'success',
        //'before'=>Html::a('<i class="glyphicon glyphicon-plus"></i> Create Country', ['create'], ['class' => 'btn btn-success']),
        'after'=>Html::a('<i class="glyphicon glyphicon-repeat"></i> โหลดข้อมูลใหม่', ['/report/report/report2'], ['class' => 'btn btn-info']),
        'footer'=>false
    ],
    'responsive'=>true,
    'hover'=>true,
    'pjax'=>true,
    'pjaxSettings'=>[
        'neverTimeout'=>true,
        'beforeGrid'=>'',
        'afterGrid'=>'',
    ],
    'showPageSummary' => true,
    'columns'=>[
        //['class'=>'yii\grid\SerialColumn'],
        [
            'label'=>'ปี',
            'attribute'=>'yy'
        ],
        [
            'label'=>'เดือน',
            'attribute'=>'mm'
        ],
        [
            'label'=>'จำนวนผู้ป่วยใน',
            'attribute'=>'cnt'
        ],
{'fraction_non_alphanumeric': 0.2132137628111274, 'fraction_numerical': 0.002745241581259151, 'mean_word_length': 1.26575456053068, 'pattern_counts': {'":': 0, '<': 37, '<?xml version=': 0, '>': 157, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3385598', 'n_tokens_mistral': 1826, 'n_tokens_neox': 1848, 'n_words': 205}