View : 0013_BRONCHOSCOPE
@php $acc = jsonDecode(@$json->icd9); $dino = jsonDecode(@$json->proicd9); $dino_other = jsonDecode(@$json->proicd9_other); $proicd9count = 0; @endphp @php foreach($dino as $di => $value){ $variebletype = gettype($value); if($variebletype=="string"){ if(@$json->proicd9!=""){ $proicd9count++; } } if($variebletype=="object"){ foreach($value as $v){ if($v!=null){ $proicd9count++; } } } } @endphp @if(@$json->proicd9_other!="" || $proicd9count>0 || @$json->overall_procedure!="") @php $dval = ""; $i=100; @endphp @if(@$json->proicd9_other!="" || $proicd9count>0) @php $old=""; @endphp @forelse($dino as $di => $value) @php $variebletype = gettype($value); if($variebletype=="object"){ $i--; foreach ($value as $key=>$v) { $table = DB::table('tb_procedureicd9')->where('proicd9_name','=',$old)->first(); if($v!=""){ $val[$i] = ""; } } $i++; }else{ if($value!=""){ $table = DB::table('tb_procedureicd9')->where('proicd9_name','=',$value)->first(); $val[$i] = ""; $old = $value; $i++; } } @endphp @empty @endforelse @if(isset($val)) @forelse($val as $v) {!!$v!!} @empty @endforelse @endif @forelse($dino_other as $di) @if($di!="") @endif @empty @endforelse @foreach ($acc as $a) @if($a!="") @php $icd = explode(" ", $a); @endphp @endif @endforeach
".$table->icd9."   ".$old." ".$v." ".$table->extra_text."
".$table->icd9."   ".$value."
   {{$di}}
{{$icd[0]}}    {{$icd[1]}}
@endif
@else @php $acc = jsonDecode(@$json->icd9); $dino = jsonDecode(@$json->proicd9); $dino_other = jsonDecode(@$json->proicd9_other); $proicd9count = 0; @endphp @php foreach($dino as $di => $value){ $variebletype = gettype($value); if($variebletype=="string"){ if(@$json->proicd9!=""){ $proicd9count++; } } if($variebletype=="object"){ foreach($value as $v){ if($v!=null){ $proicd9count++; } } } } @endphp @if(@$json->proicd9_other!="" || $proicd9count>0 || @$json->overall_procedure!="") @php $dval = ""; $i=100; @endphp @if(@$json->proicd9_other!="" || $proicd9count>0) @forelse($dino as $di => $value) @php $variebletype = gettype($value); if($variebletype=="object"){ $i--; foreach ($value as $key=>$v) { $table = DB::table('tb_procedureicd9')->where('proicd9_name','=',$old)->first(); if($v!=""){ $val[$i] = ""; } } $i++; }else{ if($value!=""){ $table = DB::table('tb_procedureicd9')->where('proicd9_name','=',$value)->first(); $val[$i] = ""; $old = $value; $i++; } } @endphp @empty @endforelse @if(isset($val)) @forelse($val as $v) {!!$v!!} @empty @endforelse @endif @forelse($dino_other as $di) @if($di!="") @endif @empty @endforelse @foreach ($acc as $a) @if($a!="") @php $icd = explode(" ", $a); @endphp @endif @endforeach
".$table->icd9."   ".$old." ".$v." ".$table->extra_text."
".$table->icd9."   ".$value."
   {{$di}}
{{$icd[0]}}    {{$icd[1]}}
@endif
{!!@@$json->overall_procedure!!} @else None @endif
@if(@$json->Bronchial_Washing_site!="") Bronchial Washing site : {{@$json->Bronchial_Washing_site}}
@endif @if(@$json->Bronchoalveolar_Lavage_site!="") Bronchoalveolar Lavage site : {{@$json->Bronchoalveolar_Lavage_site}}
[ @if(@$json->Instilled_volume!="") Instilled vol. :{{@$json->Instilled_volume}} @endif @if(@$json->Retrived_volume!="") Retrived vol. :{{@$json->Retrived_volume}} @endif @if(@$json->AM!="") AM :{{@$json->AM}}% @endif @if(@$json->N!="") N :{{@$json->N}}% @endif @if(@$json->L!="") L :{{@$json->L}}% @endif @if(@$json->E!="") E :{{@$json->E}}% @endif ]
@endif @if(@$json->Bronchial_Biopsy_site!="" && @$json->Bronchial_Biopsy_site!=null) Bronchial Biopsy site : {{@$json->Bronchial_Biopsy_site}}
@endif @if(@$json->Transbronchial_lung_Biopsy_site!="" && @$json->Transbronchial_lung_Biopsy_site!=null) Transbronchial lung Biopsy site : {{@$json->Transbronchial_lung_Biopsy_site}}
@endif @if(@$json->Transbronchial_Needle_Aspiration_for_Cytology_site!="" && @$json->Transbronchial_Needle_Aspiration_for_Cytology_site!=null) TBNA for Cytology site : {{@$json->Transbronchial_Needle_Aspiration_for_Cytology_site}}
@endif @if(@$json->Transbronchial_Needle_Aspiration_for_Histology_site!="" && @$json->Transbronchial_Needle_Aspiration_for_Histology_site!=null) TBNA for Histology site : {{@$json->Transbronchial_Needle_Aspiration_for_Histology_site}}
@endif @if(@$json->Bronchial_Brushing_site!="" && @$json->Bronchial_Brushing_site!=null) Bronchial Brushing site : {{@$json->Bronchial_Brushing_site}}
@endif @if(@$json->Laser_Bronchoscopy_energy!="" && @$json->Laser_Bronchoscopy_energy!=null) Laser Bronchoscopy energy : {{@$json->Laser_Bronchoscopy_energy}}
@endif @endif @if(@$json->ebus_box=="true"|| @$json->ebus!=""|| @$json->distance_ebus!=""|| @$json->time_ebus!="")
{!!box2text(@$json->ebus_box,'EBUS')!!} {!!text2print('',@$json->ebus,'')!!} {!!text2print('| Distance ',@$json->distance_ebus,' cm.')!!} {!!text2print('| Time ',@$json->time_ebus,' min.')!!} @endif @if(@$json->ebus_guide_sheath_box=="true"|| @$json->ebus_guide_sheath!=""|| @$json->time_ebus_guide_sheath!="")
{!!box2text(@$json->ebus_guide_sheath_box,'EBUS guide-sheath')!!} {!!text2print('',@$json->ebus_guide_sheath,'')!!} {!!text2print('| Time  ',@$json->time_ebus_guide_sheath,'  min.')!!} @endif @if(@$json->fluoroscopy_box=="true")
{{box2text(@$json->fluoroscopy_box,'Fluoroscopy')}} @endif @if(@$json->autofluoresence_box=="true"|| @$json->negative_autoflu_box=="true"|| @$json->positive_autoflu_box=="true"|| @$json->positive_autoflu!="")
{!!box2text(@$json->autofluoresence_box,'Autofluoresence   ')!!} {!!box2text(@$json->negative_autoflu_box,'| Negative   ')!!} {!!box2text(@$json->positive_autoflu_box,'| Positive at   ')!!} {!!text2print('',@$json->positive_autoflu,'')!!} @endif @if(@$json->virtual_bronchoscopy_box=="true"|| @$json->Generation_by_CT_navigation!=""|| @$json->Generation_by_bronchoscopy!="")
{!!box2text(@$json->virtual_bronchoscopy_box,'Virtual bronchoscopy')!!} {!!text2print('| Generation by CT navigation   ',@$json->Generation_by_CT_navigation,'  ')!!} {!!text2print('| Generation by bronchoscopy   ',@$json->Generation_by_bronchoscopy,'  ')!!} @endif @if(@$json->Bronchial_Washing_site_box=="true"|| @$json->Bronchial_Washing_site!="")
{!!box2text(@$json->Bronchial_Washing_site_box,'Bronchial Washing at')!!} {!!text2print('',@$json->Bronchial_Washing_site,'')!!} @endif @if(@$json->Bronchoalveolar_Lavage_site_box=="true"|| @$json->Bronchoalveolar_Lavage_site!=""|| @$json->Bronchoalveolar_segment!="")
{!!box2text(@$json->Bronchoalveolar_Lavage_site_box,'Bronchoalveolar Lavage at')!!} {!!text2print('',@$json->Bronchoalveolar_Lavage_site,'')!!} {!!text2print('| Segment  ',@$json->Bronchoalveolar_segment,'')!!} @endif @if(@$json->Instilled_volume!=""|| @$json->Retrived_volume!=""|| @$json->Bronchoalveolar_appearance!="")
{!!text2print('| Instilled volume  ',@$json->Instilled_volume,' ml.')!!} {!!text2print('| Retrived volume  ',@$json->Retrived_volume,' ml.')!!} {!!text2print('| Appearance  ',@$json->Bronchoalveolar_appearance,'')!!} @endif @if(@$json->cell_count_and_differential_count_box=="true"|| @$json->hemosiderin_score_box=="true")
{!!box2text(@$json->cell_count_and_differential_count_box,'| Cell count and differential count')!!} {!!box2text(@$json->hemosiderin_score_box,'| Hemosiderin score')!!} @endif @if(@$json->grams_stain_and_culture_for_bacteria_box=="true"|| @$json->modified_afb_box=="true"|| @$json->afb_profile1_box=="true"|| @$json->culture_for_tb_box=="true")
{!!box2text(@$json->grams_stain_and_culture_for_bacteria_box,'| Grams stain and culture for bacteria')!!} {!!box2text(@$json->modified_afb_box,'| Modified AFB')!!} {!!box2text(@$json->afb_profile1_box,'| AFB (Profile 1)')!!} {!!box2text(@$json->culture_for_tb_box,'| Culture for TB')!!} @endif @if(@$json->stain_and_culture_for_fungus_box=="true"|| @$json->giemsa_stain_box=="true"|| @$json->gms_stain_box=="true"|| @$json->ifa_for_pcp_box=="true") {!!box2text(@$json->stain_and_culture_for_fungus_box,'| Stain and culture for fungus')!!} {!!box2text(@$json->giemsa_stain_box,'| Giemsa stain')!!} {!!box2text(@$json->gms_stain_box,'| GMS stain')!!} {!!box2text(@$json->ifa_for_pcp_box,'| IFA for PCP')!!} @endif @if(@$json->cmv_antigen_box=="true"|| @$json->cmv_dna_detection_box=="true"|| @$json->cmv_isolation_box=="true"|| @$json->influenza_box=="true") {!!box2text(@$json->cmv_antigen_box,'| CMV antigen')!!} {!!box2text(@$json->cmv_dna_detection_box,'| CMV DNA detection')!!} {!!box2text(@$json->cmv_isolation_box,'| CMV isolation')!!} {!!box2text(@$json->influenza_box,'| Influenza')!!} @endif @if(@$json->HSV_box=="true"|| @$json->Cytology_box=="true"|| @$json->PCR_TB_box=="true"|| @$json->Other_hsv_box=="true"|| @$json->Other_hsv!="")
{!!box2text(@$json->HSV_box,'| HSV')!!} {!!box2text(@$json->Cytology_box,'| Cytology')!!} {!!box2text(@$json->PCR_TB_box,'| PCR TB')!!} {!!box2text(@$json->Other_hsv_box,'| Other')!!} {!!text2print('',@$json->Other_hsv,'')!!} @endif @if(@$json->TBLB_box=="true"|| @$json->TBLB!=""|| @$json->TBLB_segment!="")
{!!box2text(@$json->TBLB_box,'TBLB at')!!} {!!text2print('',@$json->TBLB,'')!!} {!!text2print('| Segment ',@$json->TBLB_segment,'')!!} @endif @if(@$json->Histopathology_TBLB_box=="true"|| @$json->Tissue_culture_for_bacteria_TBLB_box=="true"|| @$json->Mycobacteria_Profile1_TBLB_box=="true"|| @$json->Mycobacteria_Profile2_TBLB_box=="true"|| @$json->Tissue_culture_for_fungus_TBLB_box=="true")
{!!box2text(@$json->Histopathology_TBLB_box,'| Histopathology')!!} {!!box2text(@$json->Tissue_culture_for_bacteria_TBLB_box,'| Tissue culture for bacteria')!!} {!!box2text(@$json->Mycobacteria_Profile1_TBLB_box,'| Mycobacteria (Profile 1)')!!} {!!box2text(@$json->Mycobacteria_Profile2_TBLB_box,'| Mycobacteria (Profile 2)')!!} {!!box2text(@$json->Tissue_culture_for_fungus_TBLB_box,'| Tissue culture for fungus')!!} @endif @if(@$json->Bronchial_biopsy_box=="true"|| @$json->Bronchial_biopsy!="")
{!!box2text(@$json->Bronchial_biopsy_box,'Bronchial biopsy at')!!} {!!text2print('',@$json->Bronchial_biopsy,'')!!} @endif @if(@$json->Histopathology_Bronchial_biopsy_box=="true"|| @$json->Tissue_culture_for_bacteria_Bronchial_biopsy_box=="true"|| @$json->Mycobacteria_Profile1_Bronchial_biopsy_box=="true"|| @$json->Mycobacteria_Profile2_Bronchial_biopsy_box=="true"|| @$json->Tissue_culture_for_fungus_Bronchial_biopsy_box=="true")
{!!box2text(@$json->Histopathology_Bronchial_biopsy_box,'| Histopathology')!!} {!!box2text(@$json->Tissue_culture_for_bacteria_Bronchial_biopsy_box,'| Tissue culture for bacteria')!!} {!!box2text(@$json->Mycobacteria_Profile1_Bronchial_biopsy_box,'| Mycobacteria (Profile 1)')!!} {!!box2text(@$json->Mycobacteria_Profile2_Bronchial_biopsy_box,'| Mycobacteria (Profile 2)')!!} {!!box2text(@$json->Tissue_culture_for_fungus_Bronchial_biopsy_box,'| Tissue culture for fungus')!!} @endif @if(@$json->Bronchial_brush_box=="true"|| @$json->Bronchial_brush!=""|| @$json->Bronchial_brush_segment!=""|| @$json->Cytology_Bronchial_brush_box=="true")
{!!box2text(@$json->Bronchial_brush_box,'Bronchial brush at')!!} {!!text2print('',@$json->Bronchial_brush,'')!!} {!!text2print('| Segment  ',@$json->Bronchial_brush_segment,'')!!} {!!box2text(@$json->Cytology_Bronchial_brush_box,'| Cytology')!!} @endif @if(@$json->TBNA_box=="true"|| @$json->TBNA!="")
{!!box2text(@$json->TBNA_box,'TBNA at')!!} {!!text2print('',@$json->TBNA,'')!!} @endif @if(@$json->Histopathology_TBNA_box=="true"|| @$json->Cytology_TBNA_box=="true"|| @$json->Tissue_culture_for_bacteria_TBNA_box=="true"|| @$json->Mycobacteria_Profile1_TBNA_box=="true"|| @$json->Mycobacteria_Profile2_TBNA_box=="true"|| @$json->Tissue_culture_for_fungus_TBNA_box)
{!!box2text(@$json->Histopathology_TBNA_box,'| Histopathology')!!} {!!box2text(@$json->Cytology_TBNA_box,'| Cytology')!!} {!!box2text(@$json->Tissue_culture_for_bacteria_TBNA_box,'| Tissue culture for bacteria')!!} {!!box2text(@$json->Mycobacteria_Profile1_TBNA_box,'| Mycobacteria (Profile 1)')!!} {!!box2text(@$json->Mycobacteria_Profile2_TBNA_box,'| Mycobacteria (Profile 2)')!!} {!!box2text(@$json->Tissue_culture_for_fungus_TBNA_box,'| Tissue culture for fungus')!!} @endif @if(@$json->EBUS_TBNA_location=="true")
{!!box2text(@$json->EBUS_TBNA_location,'EBUS-TBNA location')!!} @endif @if(@$json->TBNA_2R!=""|| @$json->TBNA_2L!=""|| @$json->TBNA_4R!=""|| @$json->TBNA_4L!=""|| @$json->TBNA_7!=""|| @$json->TBNA_10R!=""|| @$json->TBNA_10L!=""|| @$json->TBNA_11L!=""|| @$json->TBNA_11S!="")
{!!text2print('| 2R ',@$json->TBNA_2R,' cm.')!!}| {!!text2print('| 2L ',@$json->TBNA_2L,' cm.')!!}| {!!text2print('| 4R ',@$json->TBNA_4R,' cm.')!!}| {!!text2print('| 4L ',@$json->TBNA_4L,' cm.')!!}| {!!text2print('| ',@$json->TBNA_7,' cm.')!!}| {!!text2print('| 10R ',@$json->TBNA_10R,' cm.')!!}| {!!text2print('| 10L ',@$json->TBNA_10L,' cm.')!!}| {!!text2print('| 11L ',@$json->TBNA_11L,' cm.')!!}| {!!text2print('| 11S ',@$json->TBNA_11S,' cm.')!!} @endif @if(@$json->otherprocedure!="")
Other procedure : {!!@$json->otherprocedure!!} @endif
{!!@@$json->overall_procedure!!}