@php $rightto = DB::table('patient') ->where('patient.hn',$casedata->case_hn)->first(); $ward = "-"; $refer= "-"; if($rightto->patient_json!=''){ $json_pt = jsonDecode($rightto->patient_json); }else{ $json_pt = null; } if(isset($this_json->ward)){ if($this_json->ward != ''){ $ward = $this_json->ward; } } if(isset($this_json->refer)){ if($this_json->refer != ''){ $refer = $this_json->refer; } } @endphp
{{$hospital->hospital_name}}
{{$hospital->hospital_address}}
HN : {{ $casedata->hn }} AN :{{ $casedata->an }}
Name : {{$casedata->prefix.$casedata->firstname." ".@$casedata->middlename." ".$casedata->lastname}}
Age : {{age($casedata->birthdate)}} Date of Birth : {{date_thaiformat(swapDATE($casedata->birthdate),"/")}}
หน่วยส่องกล้องทางเดินอาหาร Operation Date {{date_thaiformat(swapDATE($casedata->case_dateappointment),"/")}}
Digestive Endoscopy Department Allergy : {{@$json_pt->allergic}}
Digestive Endoscopy Report ({{$casedata->procedure_name}}) Right to Treatment : {{@$json->righttotreatment}}