2024-12-25 03:04:59 +00:00
< ? php
use yii\helpers\Url ;
use yii\helpers\Html ;
use yii\bootstrap5\ActiveForm ;
use dosamigos\ckeditor\CKEditor ;
use common\models\CytoNonGynDiagnosis ;
$this -> title = Html :: encode ( 'Cyto Non-Gyn Addendum Report : ' . $model -> id_case . ' - ' . isset ( $model ) ? $model -> nonGyn -> getFullname () : null );
$this -> params [ 'breadcrumbs' ][] = [ 'label' => Html :: encode ( $model -> id_case ), 'url' => [ 'do/non-gyn' , 'id_case' => $model -> id_case ]];
$this -> params [ 'breadcrumbs' ][] = $this -> title ;
?>
< ? = $this -> render ( '_all_report_non_gyn' , [
'dataProviderReport' => $dataProviderReport ,
2025-04-22 14:38:04 +00:00
'case_non_gyn' => $case_non_gyn
2024-12-25 03:04:59 +00:00
]) ?>
2025-04-22 14:38:04 +00:00
<!--
2024-12-25 03:04:59 +00:00
< div class = " card mt-4 " >
< div class = " card-header " >
< h5 class = " card-title mb-0 " >
< i class = " ri-file-user-line " ></ i > Patient Information
2025-04-22 14:38:04 +00:00
: < ? php /* Html :: encode ( $case_non_gyn -> getFullname ()) ?> / <?= $case_non_gyn->id_case ?>
2024-12-25 03:04:59 +00:00
</ h5 >
</ div >
< div class = " card-body " >
2025-04-22 14:38:04 +00:00
< ? = $this -> render ( '../../../pathologist/views/do/_patient_non_gyn' , [ 'model' => $case_non_gyn ]) */ ?>
2024-12-25 03:04:59 +00:00
</ div >
</ div >
2025-04-22 14:38:04 +00:00
-->
2024-12-25 03:04:59 +00:00
< ? php $form = ActiveForm :: begin ([
'id' => 'diagnosis-form' ,
2025-03-21 05:07:24 +00:00
//'options' => ['onsubmit' => 'handleFormSubmit(event)'] // ไม่คืนค่าจาก function
2024-12-25 03:04:59 +00:00
]) ?>
2025-04-22 14:38:04 +00:00
< ? = $this -> render ( '_patient_non_gyn_form' , [
'form' => $form ,
'case_non_gyn' => $case_non_gyn
]) ?>
2025-03-21 05:07:24 +00:00
< ? php /* Html :: hiddenInput ( 'non-gyn' , '' , [ 'id' => 'non-gyn-hidden-input' ]) ?>
2024-12-25 03:04:59 +00:00
2025-03-21 05:07:24 +00:00
< ? = $this -> render ( '_js_pass_non_gyn' ) */ ?>
2024-12-25 03:04:59 +00:00
< ? = $form -> errorSummary ( $case_non_gyn ) ?>
< div class = " card shadow mt-3 " >
< div class = " card-header " >
< h5 class = " card-title " >
< i class = " ri-user-add-line " ></ i > พยาธิแพทย์ ( Pathologist )
</ h5 >
</ div >
< div class = " card-body " >
< ? php if ( ! empty ( $case_non_gyn -> gross_description )) { ?>
2025-04-22 14:38:04 +00:00
< div class = " gross-description " >
< ? = \yii\helpers\HtmlPurifier :: process ( $case_non_gyn -> gross_description ) ?>
</ div >
2024-12-25 03:04:59 +00:00
2025-04-22 14:38:04 +00:00
< br >
< h6 class = " mt-4 " >< i class = " ri-image-fill " ></ i > Gross Image
</ h6 >
< ? php if ( ! empty ( $case_non_gyn -> gross_img )) { ?>
2024-12-25 03:04:59 +00:00
2025-04-22 14:38:04 +00:00
< ? = $case_non_gyn -> getGrossImgs () ?>
< ? php } ?>
< div class = " row " >
< ? php
2024-12-25 03:04:59 +00:00
if ( is_dir ( Yii :: getAlias ( '@webroot' ) . '/GrossPhoto/' . $case_non_gyn -> id_case )) {
$files = \yii\helpers\FileHelper :: findFiles ( Yii :: getAlias ( '@webroot' ) . '/GrossPhoto/' . $case_non_gyn -> id_case );
if ( isset ( $files [ 0 ])) {
foreach ( $files as $index => $file ) {
$nameFicheiro = substr ( $file , strrpos ( $file , '\\' ) + 1 );
echo " <div class= \" col-md-2 \" > " . ( Html :: a ( Html :: img ( Yii :: getAlias ( '@web' ) . '/GrossPhoto/' . $case_non_gyn -> id_case . '/' . $nameFicheiro , [ 'class' => 'img-fluid' ]), Url :: base () . '/GrossPhoto/' . $case_non_gyn -> id_case . '/' . $nameFicheiro , [ 'target' => '_blank' ])) . " </div> " ; // render do ficheiro no browser
}
}
}
?>
2025-04-22 14:38:04 +00:00
</ div >
< br >
2024-12-25 03:04:59 +00:00
2025-04-22 14:38:04 +00:00
< ? php // Html::a('<span class="fa fa-refresh"></span> Reject Gross', ['order/surgical-gross-reject', 'id_case' => $case_surgical->id_case, 'report_type' => $model->report_type, 'id' => $model->id], ['class' => 'btn btn-danger', 'name' => 'surgical', 'value' => 'reject-gross'])
2024-12-25 03:04:59 +00:00
?>
< ? php } ?>
< ? php if ( ! empty ( $case_non_gyn -> files )) { ?>
2025-04-22 14:38:04 +00:00
< h6 >< i class = " ri-file-text-line " ></ i > ใบส่งตรวจ
( Request
File )
</ h6 >
2024-12-25 03:04:59 +00:00
2025-04-22 14:38:04 +00:00
< ul >
< ? php
2024-12-25 03:04:59 +00:00
foreach ( $case_non_gyn -> getFiles () as $file => $val ) {
if ( ! empty ( $val )) {
?>
2025-04-22 14:38:04 +00:00
< li >< ? = Html :: a ( $val , Yii :: getAlias ( '@web' ) . '/uploads/cyto/non-gyn/files/' . $val , [ 'target' => '_blank' ]); ?>
</ li >
< ? php
2024-12-25 03:04:59 +00:00
}
} ?>
2025-04-22 14:38:04 +00:00
</ ul >
2024-12-25 03:04:59 +00:00
< ? php } ?>
< h6 class = " mt-4 " >< strong > Specimen And Clinical Information </ strong >
</ h6 >
< ? = $form -> field ( $case_non_gyn , 'clinical_diagnosis' ) -> label ( false ) -> textarea ([ 'spellcheck' => true ]) -> widget ( CKEditor :: className (), [
'preset' => 'custom' ,
'clientOptions' => [
'height' => 150 ,
'removePlugins' => 'scayt' ,
'disableNativeSpellChecker' => false ,
'extraPlugins' => 'font,justify,colorbutton,iframe,dialogadvtab,liststyle' ,
'removeButtons' => 'Source,Save,NewPage,Preview,Print,Templates,Find,SelectAll,Form,Checkbox,Radio,TextField,Textarea,Select,Button,ImageButton,HiddenField,CopyFormatting,Blockquote,CreateDiv,BidiLtr,BidiRtl,Language,Link,Unlink,Anchor,Image,Flash,HorizontalRule,Smiley,PageBreak,Iframe,ShowBlocks,About,Replace,Snippet' ,
'toolbarGroups' => [
[ 'name' => 'clipboard' , 'groups' => [ 'undo' , 'redo' , 'cut' , 'copy' , 'paste' , 'clipboard' ]],
[ 'name' => 'styles' , 'groups' => [ 'font' ]],
[ 'name' => 'colors' , 'groups' => [ 'TextColor' , 'BGColor' ]],
[ 'name' => 'basicstyles' , 'groups' => [ 'basicstyles' , 'cleanup' ]],
[ 'name' => 'paragraph' , 'groups' => [ 'list' , 'align' , 'bidi' , 'paragraph' ]],
[ 'name' => 'editing' , 'groups' => [ 'find' , 'selection' , /*'spellchecker'*/ ]],
//['name' => 'tools', 'groups' => ['dialogadvtab', 'devtools', 'div']],
[ 'name' => 'insert' , 'groups' => [ 'table' , 'specialchar' ]],
//['name' => 'tools', 'groups' => ['maximize']],
],
]
]) ?>
2025-01-21 02:56:57 +00:00
< h6 class = " mt-4 " >< strong > Comment / Note </ strong >
</ h6 >
< ? = $form -> field ( $model , 'note' ) -> label ( false ) -> textarea ([ 'spellcheck' => true ]) -> widget ( CKEditor :: className (), [
'preset' => 'custom' ,
'clientOptions' => [
'height' => 200 ,
'removePlugins' => 'scayt' ,
'disableNativeSpellChecker' => false ,
'extraPlugins' => 'font,justify,colorbutton,iframe,dialogadvtab,liststyle' ,
'removeButtons' => 'Source,Save,NewPage,Preview,Print,Templates,Find,SelectAll,Form,Checkbox,Radio,TextField,Textarea,Select,Button,ImageButton,HiddenField,CopyFormatting,Blockquote,CreateDiv,BidiLtr,BidiRtl,Language,Link,Unlink,Anchor,Image,Flash,HorizontalRule,Smiley,PageBreak,Iframe,ShowBlocks,About,Replace,Snippet' ,
'toolbarGroups' => [
[ 'name' => 'clipboard' , 'groups' => [ 'undo' , 'redo' , 'cut' , 'copy' , 'paste' , 'clipboard' ]],
[ 'name' => 'styles' , 'groups' => [ 'font' ]],
[ 'name' => 'colors' , 'groups' => [ 'TextColor' , 'BGColor' ]],
[ 'name' => 'basicstyles' , 'groups' => [ 'basicstyles' , 'cleanup' ]],
[ 'name' => 'paragraph' , 'groups' => [ 'list' , 'align' , 'bidi' , 'paragraph' ]],
[ 'name' => 'editing' , 'groups' => [ 'find' , 'selection' , /*'spellchecker'*/ ]],
//['name' => 'tools', 'groups' => ['dialogadvtab', 'devtools', 'div']],
[ 'name' => 'insert' , 'groups' => [ 'table' , 'specialchar' ]],
//['name' => 'tools', 'groups' => ['maximize']],
],
]
]) ?>
2024-12-25 03:04:59 +00:00
< h6 class = " mt-4 " >< strong > Gross
Description </ strong ></ h6 >
< div class = " mb-3 " >
< ? = $form -> field ( $model , 'gross_description' ) -> label ( false ) -> textarea ([ 'spellcheck' => true ]) -> widget ( CKEditor :: className (), [
'preset' => 'custom' ,
'clientOptions' => [
'height' => 200 ,
'removePlugins' => 'scayt' ,
'disableNativeSpellChecker' => false ,
'extraPlugins' => 'font,justify,colorbutton,iframe,dialogadvtab,liststyle' ,
'removeButtons' => 'Source,Save,NewPage,Preview,Print,Templates,Find,SelectAll,Form,Checkbox,Radio,TextField,Textarea,Select,Button,ImageButton,HiddenField,CopyFormatting,Blockquote,CreateDiv,BidiLtr,BidiRtl,Language,Link,Unlink,Anchor,Image,Flash,HorizontalRule,Smiley,PageBreak,Iframe,ShowBlocks,About,Replace,Snippet' ,
'toolbarGroups' => [
[ 'name' => 'clipboard' , 'groups' => [ 'undo' , 'redo' , 'cut' , 'copy' , 'paste' , 'clipboard' ]],
[ 'name' => 'styles' , 'groups' => [ 'font' ]],
[ 'name' => 'colors' , 'groups' => [ 'TextColor' , 'BGColor' ]],
[ 'name' => 'basicstyles' , 'groups' => [ 'basicstyles' , 'cleanup' ]],
[ 'name' => 'paragraph' , 'groups' => [ 'list' , 'align' , 'bidi' , 'paragraph' ]],
[ 'name' => 'editing' , 'groups' => [ 'find' , 'selection' , /*'spellchecker'*/ ]],
//['name' => 'tools', 'groups' => ['dialogadvtab', 'devtools', 'div']],
[ 'name' => 'insert' , 'groups' => [ 'table' , 'specialchar' ]],
//['name' => 'tools', 'groups' => ['maximize']],
],
]
]) ?>
</ div >
< ? php $this -> registerJs ( "
$ ( '#checkGrossButton' ) . on ( 'click' , function ( event ) {
event . preventDefault ();
var text = CKEDITOR . instances [ 'cytonongyndiagnosis-gross_description' ] . getData ();
$ . ajax ({
url : '" . Url::to([' / site / spell - checker ']) . "' ,
type : 'POST' ,
data : { text : text },
//dataType: 'json',
success : function ( data ) {
//highlightMisspelledWords(data);
$ ( '#misspelledGrossWords' ) . html ( data );
}
});
});
" ) ?>
< div id = " misspelledGrossWords " ></ div >
< a href = " javascript:void(0); " id = " checkGrossButton " class = " btn btn-warning " >
< i class = " ri-list-check-3 " ></ i > Check Spelling
</ a >
< ? = Html :: button ( '<i class="ri-file-text-line"></i> Gross Template' , [ 'class' => 'btn btn-info activity-select-gross-template' , 'data' => [ 'bs-toggle' => 'modal' , 'bs-target' => '#activity-modal-gross' ]]) ?>
</ div >
</ div >
2025-04-23 07:41:34 +00:00
< ? php $final = CytoNonGynDiagnosis :: findOne ([ 'id_case' => $model -> id_case , 'report_type' => 'final' ]); ?>
2025-04-23 05:09:19 +00:00
< div class = " col-md-12 " >
< table class = " table table-striped " >
< thead >
< tr >
< th scope = " col " >
< h6 class = " mb-3 " >< strong > Final Diagnosis </ strong ></ h6 >
</ th >
</ tr >
</ thead >
< tbody >
< tr >
< td >< ? = $final -> diagnosis ?> </td>
</ tr >
</ tbody >
</ table >
</ div >
2024-12-25 03:04:59 +00:00
< div class = " card mt-3 " >
< div class = " card-header " >
< h5 >< i class = " ri-file-text-line " ></ i > Addendum Report </ h5 >
</ div >
< div class = " card-body " >
< h6 class = " mb-3 " > Microscopic Description </ h6 >
< div class = " mb-3 " >
< ? = $form -> field ( $model , 'is_no_microscopic' ) -> checkbox () ?>
< div class = " mb-3 " >
< ? = $form -> field ( $model , 'microscopic_description' ) -> label ( false ) -> textarea ([ 'spellcheck' => true ]) -> widget ( CKEditor :: class , [
'preset' => 'custom' ,
//'options' => ['id' => 'microscopic_description_editor'],
'clientOptions' => [
'height' => 200 ,
'removePlugins' => 'scayt' ,
'disableNativeSpellChecker' => false ,
'extraPlugins' => 'font,justify,colorbutton,iframe,dialogadvtab,liststyle' ,
'removeButtons' => 'Source,Save,NewPage,Preview,Print,Templates,Find,SelectAll,Form,Checkbox,Radio,TextField,Textarea,Select,Button,ImageButton,HiddenField,CopyFormatting,Blockquote,CreateDiv,BidiLtr,BidiRtl,Language,Link,Unlink,Anchor,Image,Flash,HorizontalRule,Smiley,PageBreak,Iframe,ShowBlocks,About,Replace,Snippet' ,
'toolbarGroups' => [
[ 'name' => 'clipboard' , 'groups' => [ 'undo' , 'redo' , 'cut' , 'copy' , 'paste' , 'clipboard' ]],
[ 'name' => 'styles' , 'groups' => [ 'font' ]],
[ 'name' => 'colors' , 'groups' => [ 'TextColor' , 'BGColor' ]],
[ 'name' => 'basicstyles' , 'groups' => [ 'basicstyles' , 'cleanup' ]],
[ 'name' => 'paragraph' , 'groups' => [ 'list' , 'align' , 'bidi' , 'paragraph' ]],
[ 'name' => 'editing' , 'groups' => [ 'find' , 'selection' , /*'spellchecker'*/ ]],
//['name' => 'tools', 'groups' => ['dialogadvtab', 'devtools', 'div']],
[ 'name' => 'insert' , 'groups' => [ 'table' , 'specialchar' ]],
//['name' => 'tools', 'groups' => ['maximize']],
],
]
]) ?>
</ div >
</ div >
< div id = " misspelledMicroWords " ></ div >
< div class = " col-md-6 " >
< ? php $this -> registerJs ( "
$ ( '#checkMicroButton' ) . on ( 'click' , function ( event ) {
event . preventDefault ();
var text = CKEDITOR . instances [ 'cytonongyndiagnosis-microscopic_description' ] . getData ();
$ . ajax ({
url : '" . Url::to([' / site / spell - checker ']) . "' ,
type : 'POST' ,
data : { text : text },
//dataType: 'json',
success : function ( data ) {
//highlightMisspelledWords(data);
$ ( '#misspelledMicroWords' ) . html ( data );
}
});
});
" ) ?>
< a href = " javascript:void(0); " id = " checkMicroButton " class = " btn btn-warning " >
< i class = " ri-list-check-3 " ></ i > Check Spelling
</ a >
< ? = Html :: button ( '<i class="ri-file-text-line"></i> Microscopic Template' , [ 'class' => 'btn btn-info activity-select-microscopic-template' , 'data' => [ 'bs-toggle' => 'modal' , 'bs-target' => '#activity-modal-microscopic' ]]) ?>
< ? = Html :: submitButton ( '<i class="ri-image-add-fill"></i> เพิ่มรูปภาพ Micro' , [ 'class' => 'btn btn-danger' , 'value' => 'micro' , 'name' => 'non-gyn' ]) ?>
</ div >
< h6 class = " mt-4 " >< strong > Addendum Diagnosis </ strong ></ h6 >
< ? = $form -> field ( $model , 'diagnosis' ) -> label ( false ) -> inline () -> textarea ([ 'spellcheck' => true ]) -> widget ( CKEditor :: className (), [
'preset' => 'custom' ,
'clientOptions' => [
'height' => 200 ,
'removePlugins' => 'scayt' ,
'disableNativeSpellChecker' => false ,
'extraPlugins' => 'font,justify,colorbutton,iframe,dialogadvtab,liststyle' ,
'removeButtons' => 'Source,Save,NewPage,Preview,Print,Templates,Find,SelectAll,Form,Checkbox,Radio,TextField,Textarea,Select,Button,ImageButton,HiddenField,CopyFormatting,Blockquote,CreateDiv,BidiLtr,BidiRtl,Language,Link,Unlink,Anchor,Image,Flash,HorizontalRule,Smiley,PageBreak,Iframe,ShowBlocks,About,Replace,Snippet' ,
'toolbarGroups' => [
[ 'name' => 'clipboard' , 'groups' => [ 'undo' , 'redo' , 'cut' , 'copy' , 'paste' , 'clipboard' ]],
[ 'name' => 'styles' , 'groups' => [ 'font' ]],
[ 'name' => 'colors' , 'groups' => [ 'TextColor' , 'BGColor' ]],
[ 'name' => 'basicstyles' , 'groups' => [ 'basicstyles' , 'cleanup' ]],
[ 'name' => 'paragraph' , 'groups' => [ 'list' , 'align' , 'bidi' , 'paragraph' ]],
[ 'name' => 'editing' , 'groups' => [ 'find' , 'selection' , /*'spellchecker'*/ ]],
//['name' => 'tools', 'groups' => ['dialogadvtab', 'devtools', 'div']],
[ 'name' => 'insert' , 'groups' => [ 'table' , 'specialchar' ]],
//['name' => 'tools', 'groups' => ['maximize']],
],
]
]) ?>
< ? php $this -> registerJs ( "
$ ( '#checkDiagButton' ) . on ( 'click' , function ( event ) {
event . preventDefault ();
var text = CKEDITOR . instances [ 'cytonongyndiagnosis-diagnosis' ] . getData ();
$ . ajax ({
url : '" . Url::to([' / site / spell - checker ']) . "' ,
type : 'POST' ,
data : { text : text },
//dataType: 'json',
success : function ( data ) {
//highlightMisspelledWords(data);
$ ( '#misspelledDiagWords' ) . html ( data );
}
});
});
" ) ?>
< div id = " misspelledDiagWords " ></ div >
< a href = " javascript:void(0); " id = " checkDiagButton " class = " btn btn-warning " >
< i class = " ri-list-check-3 " ></ i > Check Spelling
</ a >
< ? = Html :: button ( '<i class="ri-file-text-line"></i> Diagnosis Template' , [ 'class' => 'btn btn-info activity-select-diagnosis-template' , 'data' => [ 'bs-toggle' => 'modal' , 'bs-target' => '#activity-modal-diagnosis' ]]) ?>
< div class = " mt-4 " >
< ? = $this -> render ( '_coder_non_gyn_form' , [
'form' => $form ,
'model' => $model ,
]) ?>
</ div >
< h6 class = " mt-4 " > Critical Diagnosis </ h6 >
< ? = $form -> field ( $model , 'is_critical_diagnosis' ) -> checkbox ([
'labelOptions' => [
'style' => 'color:red'
]
]) ?>
2025-05-02 10:20:54 +00:00
< h6 class = " mt-4 " >< i class = " ri-chat-check-fill " ></ i > CA Confirm ? </ h6 >
< ? = $this -> render ( '_is_ca_confirm' , [
'form' => $form ,
'model' => $model ,
]) ?>
2024-12-25 03:04:59 +00:00
< h6 class = " mt-4 " >< i class = " ri-inbox-2-fill " ></ i > Cell Block ? </ h6 >
< ? = $form -> field ( $case_non_gyn , 'is_cell_block' ) -> checkbox () ?>
</ div >
</ div >
<!-- slide qa -->
< div class = " row m-t-20 " >
< div class = " col-md-12 " >
< div class = " accordion m-b-20 " id = " accordion " role = " tablist " aria - multiselectable = " true " >
< div class = " card shadow mt-3 " >
< div class = " card-header " role = " tab " id = " headingOne " >
< h5 class = " card-title " >
< a role = " button " data - bs - toggle = " collapse " data - parent = " #accordion " href = " #collapseSlideTwo "
aria - expanded = " false " aria - controls = " collapseSlideTwo " >
< i class = " ri-checkbox-multiple-fill " ></ i >
ประเมินคุณภาพสไลด์ งานเชลล์วิทยา
</ a >
</ h5 >
</ div >
< div id = " collapseSlideTwo " class = " panel-collapse collapse " role = " tabpanel " aria - labelledby = " headingOne " >
< div class = " card-body " >
< ? = $form -> errorSummary ( $cyto_slide_qa_1 ) ?>
< div class = " table-responsive " >
< br />
< h6 class = " mt-4 " >< strong > หมายเลข </ strong ></ h6 >
< ? = $form -> field ( $cyto_slide_qa_1 , 'slide_no' ) -> label ( false ) -> inline () -> textarea () ?>
< br />
< table class = " table align-middle truncate m-0 " >
< thead >
< tr >
< th >
NO
</ th >
< th >
การย้อมสีสไลด์
</ th >
< th >
</ th >
</ tr >
</ thead >
< tbody >
< tr >
< td >
1
</ td >
< td >
มีเชลล์จากสไลด์อื่นปะปน
</ td >
< td >
< ? = $form -> field ( $cyto_slide_qa_1 , 'q1' ) -> label ( false ) -> inline () -> radioList ([ 1 => 'ผ่าน' , '2' => 'ไม่ผ่าน' ]) ?>
</ td >
</ tr >
< tr >
< td >
2
</ td >
< td >
การติดสีของเชลชีดหรือจืดจาง
</ td >
< td >
< ? = $form -> field ( $cyto_slide_qa_1 , 'q2' ) -> label ( false ) -> inline () -> radioList ([ 1 => 'ผ่าน' , '2' => 'ไม่ผ่าน' ]) ?>
</ td >
</ tr >
< tr >
< td >
3
</ td >
< td >
สไลด์มีน้ำปนเปื้อน
</ td >
< td >
< ? = $form -> field ( $cyto_slide_qa_1 , 'q3' ) -> label ( false ) -> inline () -> radioList ([ 1 => 'ผ่าน' , '2' => 'ไม่ผ่าน' ]) ?>
</ td >
</ tr >
< tr >
< td >
4
</ td >
< td >
สไลด์มีฟองอากาศ
</ td >
< td >
< ? = $form -> field ( $cyto_slide_qa_1 , 'q4' ) -> label ( false ) -> inline () -> radioList ([ 1 => 'ผ่าน' , '2' => 'ไม่ผ่าน' ]) ?>
</ td >
</ tr >
< tr >
< td >
5
</ td >
< td >
Permount ไม่แห้ง
</ td >
< td >
< ? = $form -> field ( $cyto_slide_qa_1 , 'q5' ) -> label ( false ) -> inline () -> radioList ([ 1 => 'ผ่าน' , '2' => 'ไม่ผ่าน' ]) ?>
</ td >
</ tr >
< tr >
< td >
6
</ td >
< td >
สไลด์ชำรุดแตกหัก
</ td >
< td >
< ? = $form -> field ( $cyto_slide_qa_1 , 'q6' ) -> label ( false ) -> inline () -> radioList ([ 1 => 'ผ่าน' , '2' => 'ไม่ผ่าน' ]) ?>
</ td >
</ tr >
< tr >
< td >
7
</ td >
< td >
ปัญหาอื่นๆ
</ td >
< td >
< ? = $form -> field ( $cyto_slide_qa_1 , 'q7' ) -> label ( false ) -> inline () -> radioList ([ 1 => 'ผ่าน' , '2' => 'ไม่ผ่าน' ]) ?>
< ? php $this -> registerJs ( "
$ ( \ " input[name=' " . Html :: getInputName ( $cyto_slide_qa_1 , 'q7' ) . " '] \" ).change(function() {
if ( $ ( \ " input[name=' " . Html :: getInputName ( $cyto_slide_qa_1 , 'q7' ) . " ']:checked \" ).val() == '2') {
$ ( '.cancle_other' ) . show ();
} else {
$ ( '.cancle_other' ) . hide ();
}
});
" ) ?>
< div class = " cancle_other "
< ? = ! $cyto_slide_qa_1 -> isNewRecord && $cyto_slide_qa_1 -> q7 == '2' ? '' : 'style="display: none;"' ?> >
< ? = $form -> field ( $cyto_slide_qa_1 , 'q7_reason' ) -> textarea ([ 'rows' => 2 ]) -> label ( false ) ?>
</ div >
</ td >
</ tr >
</ tbody >
</ table >
< div class = " mb-3 " >
< h6 >* กรุณากรอกหมายเลขไลด์ ก่อนทำการบันทึก </ h6 >
</ div >
< br />
< h6 class = " mt-4 " >< strong > หมายเหตุ </ strong ></ h6 >
< ? = $form -> field ( $cyto_slide_qa_1 , 'remark' ) -> label ( false ) -> inline () -> textarea () ?>
</ div >
</ div >
</ div >
</ div >
</ div >
</ div >
</ div >
< ? = $form -> errorSummary ( $case_non_gyn ) ?>
< div class = " mt-3 " >
< div class = " row " >
< div class = " col-6 " >
< ? = Html :: submitButton ( '<i class="ri-save-line"></i> Save' , [ 'class' => 'btn btn-success' , 'value' => 'save' , 'name' => 'non-gyn' ]) ?>
</ div >
< div class = " col-6 text-end " >
< ? = Html :: submitButton ( '<i class="ri-checkbox-line"></i> Approve' , [ 'class' => 'btn btn-primary' , 'value' => 'approve' , 'name' => 'non-gyn' /*, 'data' => ['confirm' => 'ต้องการยืนยันผล?']*/ ]) ?>
</ div >
</ div >
</ div >
< ? php ActiveForm :: end () ?>
< ? php //$this->registerJs("CKEDITOR.config.scayt_autoStartup = true;")
?>
< div class = " card shadow mt-3 " >
< div class = " card-header " >
< h5 class = " card-title " id = " report " >< i class = " ri-file-pdf-2-line " ></ i > Preview Addendum Report </ h5 >
</ div >
< div class = " card-body pdf-scroll " >
< ? php if ( ! $model -> isNewRecord && CytoNonGynDiagnosis :: findOne ([
'id_case' => $case_non_gyn -> id_case ,
'report_type' => $model -> report_type ,
'status_id' => 3 ,
'id' => $model -> id ,
])) { ?>
2025-04-22 14:38:04 +00:00
< embed
src = " <?= Url::to(['/report/case/non-gyn-pdf', 'id_case' => $case_non_gyn->id_case , 'report_type' => $model->report_type , 'id' => $model->id , 'mode' => 'preview', 'file' => false, 'watermark' => false]) ?> "
type = " application/pdf " width = " 100% " height = " 1200 " ></ embed >
2024-12-25 03:04:59 +00:00
< ? php } else { ?>
2025-04-22 14:38:04 +00:00
< div class = " alert bg-info text-white alert-dismissible align-items-center d-flex fade show " >
< i class = " ri-alarm-warning-line fs-3 me-2 lh-1 " ></ i >
ผลการตรวจวินิจฉัยนี้ยังไม่ได้ถูกบันทึกในระบบ < br />
หากต้องการออกผล Addendum Report ให้กดปุ่ม Save เพื่อแสดงตัวอย่าง Addendum Report
</ div >
2024-12-25 03:04:59 +00:00
< ? php } ?>
</ div >
</ div >
< div class = " mt-4 " >
< div class = " card shadow " >
< div class = " card-header " >
< h5 class = " card-title " >< i class = " ri-file-history-line " ></ i >
ประวัติการส่งตรวจของคนไข้ :
< ? = $case_non_gyn -> id_case . ' ' . Html :: encode ( $case_non_gyn -> getFullname ()) ?>
</ h5 >
</ div >
< div class = " card-body " >
< div class = " row " >
< div class = " col-md-12 " >
< div class = " mt-4 " >
< ? = $this -> render ( 'history' , [ 'case' => $case_non_gyn ,]) ?>
</ div >
</ div >
</ div >
</ div >
</ div >
</ div >
2025-01-21 02:56:57 +00:00
< ? php /* $this -> render ( 'history-his' , [
2024-12-25 03:04:59 +00:00
'case' => $case_non_gyn ,
2025-01-21 02:56:57 +00:00
]) */ ?>
2024-12-25 03:04:59 +00:00
< ? php $this -> registerJs ( " CKEDITOR.config.scayt_autoStartup = false; " ) ?>
< ? = $this -> render ( '_template_non_gyn' , [
'searchModelGross' => $searchModelGross ,
'dataProviderGross' => $dataProviderGross ,
'searchModelMicroscopic' => $searchModelMicroscopic ,
'dataProviderMicroscopic' => $dataProviderMicroscopic ,
'searchModelDiagnosis' => $searchModelDiagnosis ,
'dataProviderDiagnosis' => $dataProviderDiagnosis
]) ?>