@php $is_hidden = 'd-none'; if(in_array($user_role, ["7","8"])){ $is_hidden = ''; } $type = isset($type)?'_'.$type:''; $v_count = isset($v_count)?($v_count+1):0; @endphp
@if($visitor_history) @foreach($visitor_history as $history) @php $indexing = $v_count+$loop->index; @endphp

{{ \Carbon\Carbon::parse($history->created_at)->format('d-M-Y') }} {{ isset($history->appointment->doctor->name)?'By : Dr '.$history->appointment->doctor->name:'' }} Email Print WhatsApp

@if(isset($patient->name))

P{{$patient->id}} : {{$patient->name}} ( {{ isset($patient->dob_or_age) ? \Carbon\Carbon::parse($patient->dob_or_age)->age : '' }} {{ isset($patient->dob_or_age) && isset($patient->gender) ? ', ' : '' }} {{ isset($patient->gender) ? $patient->gender : '' }} ) {{ isset($patient->phone) ? '- ' . $patient->phone : '' }}

Date & Time: {{$history->appointment->appointment_date}} {{$history->appointment->start_time}}


@endif
@if(isset($history->complaints) && $history->complaints != '')
Chief Complaints:
{{$history->complaints}}
@endif
@php $diagnosis = isset($history->diagnosis)?json_decode($history->diagnosis):""; @endphp @if($diagnosis)
Diagnosis:
@foreach($diagnosis as $diag_index)
{{$diag_index->diagnosis}}{{ isset($diag_index->duration)?" since ".$diag_index->duration:''}}{{isset($diag_index->date)?", From : ".$diag_index->date:''}}
@endforeach
@endif @if(!empty($vitals_data)) @endif @php $medicines = isset($history->medicine)?json_decode($history->medicine):""; @endphp @if($medicines)
Rx:
@foreach($medicines as $med_index) @endforeach
# Medicine Dosage When Frequency Duration Notes
{{$loop->index + 1}}

{{isset($med_index->medicine)?$med_index->medicine:''}}

{{isset($med_index->generic_name)?$med_index->generic_name:''}}

{{isset($med_index->dosage)?$med_index->dosage:''}}

{{isset($med_index->when)?$med_index->when:''}} {{isset($med_index->frequency)?$med_index->frequency:''}} {{isset($med_index->duration)?$med_index->duration:''}} days {{isset($med_index->notes)?$med_index->notes:''}}
@endif @if(isset($history->report) && $history->report != '')
report:
{{$history->report}}
@endif @if($history->advice != '')
Advice:
{{$history->advice}}
@endif @php $ref_to_arr = isset($history->ref_to)?json_decode($history->ref_to):""; @endphp @if($ref_to_arr)
Referred to:
@foreach($ref_to_arr as $ref_data)
DR {{isset($ref_data->doctor_name)?$ref_data->doctor_name:''}} Mob: {{isset($ref_data->phone_no)?$ref_data->phone_no:''}}
@endforeach
@endif @if($history->tests_requested != '')
Tests Requested:
{{$history->tests_requested}}
@endif @if($history->examination != '')
Examination:
{{$history->examination}}
@endif @if($history->past_history != '')
Past History:
{{$history->past_history}}
@endif @if($history->procedure != '')
Procedure Adviced:
{{$history->procedure}}
@endif @if(isset($history->physiotherapy_adviced) && $history->physiotherapy_adviced != '')
Physiotherapy Advised:
{{$history->physiotherapy_adviced}}
@endif @if(!empty($history->procedureData))
Procedure If Any:
{{$history->procedure}}
{{$history->procedureData->name}}
@endif @if($history->nv_no_date)
Next Visit:
{{$history->nv_no_date}}
@endif
@endforeach @endif