@php $logoData = \App\Helpers\LogoHelper::getLogoBase64($company ?? null, optional($establishment)->id); @endphp @if($logoData) {{ $company->name ?? 'Logo' }} @endif

Historia Clínica

N° {{ str_pad($history->number_history, 6, "0", STR_PAD_LEFT) }}
Especialidad: {{ strtoupper($history->specialty->name) }}
Fecha de apertura: {{ \Carbon\Carbon::parse($history->date)->format('d-m-Y') }}   |   Hora: {{ $history->time }}
IDENTIFICACIÓN DEL PACIENTE
Nombre: {{ strtoupper($history->patient->name) }}
Fecha nac.: {{ \Carbon\Carbon::parse($history->patient->fech_nac)->format('d-m-Y') }}   |   Sexo: {{ substr(strtoupper($history->patient->sex),0,1) }}   |   Edad: {{ $history->patient->age }}   |   Id: {{ $history->patient->number }}   |   Estado civil: {{ strtoupper($history->patient->state_civil) }}
Dirección: {{ strtoupper($history->patient->address) }}
Educación: {{ strtoupper($history->patient->degree) }}   |   Trabajo: {{ strtoupper($history->patient->occupation) }}
Email: {{ strtoupper($history->patient->email) }}   |   Teléfonos: {{ strtoupper($history->patient->telephone) }}
Responsable: {{ strtoupper($history->patient->person2) }}   |   Identificación: {{ strtoupper($history->patient->dni_person2) }}   |   Dr(a): {{ strtoupper($medic) }}
  
EVALUACION ODONTOLOGICO
ODONTOGRAMA
@php $odontogramaFile = $history->odontograma ?? null; $mediaRootOdontoPath = $odontogramaFile ? base_path("media/uploads/odontograma/{$odontogramaFile}") : null; $publicOdontoPath = $odontogramaFile ? public_path("storage/uploads/odontograma/{$odontogramaFile}") : null; $storageOdontoPath = $odontogramaFile ? storage_path("app/public/uploads/odontograma/{$odontogramaFile}") : null; $resolvedOdontoPath = null; if ($mediaRootOdontoPath && file_exists($mediaRootOdontoPath)) { $resolvedOdontoPath = $mediaRootOdontoPath; } elseif ($publicOdontoPath && file_exists($publicOdontoPath)) { $resolvedOdontoPath = $publicOdontoPath; } elseif ($storageOdontoPath && file_exists($storageOdontoPath)) { $resolvedOdontoPath = $storageOdontoPath; } @endphp @if($resolvedOdontoPath) @else
No se encontró la imagen del odontograma para esta historia clínica.
@endif
Observaciones
{{$history->observation}}
Enfermedad actual
Datos del informante: {{ strtoupper($history->patient->name) }}
MOTIVO DE CONSULTA
{{ strtoupper(optional($diseases)->consultation_reason ?? '') }}
Tiempo de la enfermedad: {{ strtoupper(optional($diseases)->disease_type ?? '') }}
Signos y síntomas principales: {{ strtoupper(optional($diseases)->signs_symptoms ?? '') }}
Antecedentes personales
{{ optional($diseases)->personal_background ?? '' }}
Evolución
@forelse($evolution ?? collect() as $row) @empty @endforelse
{{ \Carbon\Carbon::parse($row->date)->format('d-m-Y') }} @if(optional($row->medico)->name) — {{ $row->medico->name }} @endif
{{ $row->observation ?? '' }}
Sin registros de evolución.
Plan de tratamiento
@foreach($forecast as $row) @endforeach
- {{$row->description}}
Tratamiento
@foreach($treatment as $row) @endforeach
- {{$row->description}}
Firma y Sello Odontólogo