{{-- DTHospital - OPD consultation for one visit. Copyright (c) ICT Innovations Part of DTHospital Licensed under the GNU General Public License v3.0. --}} @extends('layouts.master') @section('style') @stop @section('content') @include('app.partials._alerts') @php($exam = (array) ($c->examination ?? [])) @php($past = (array) ($c->past_history ?? [])) @php($social = (array) ($c->social_history ?? [])) @php($spec = (array) ($c->specialty ?? [])) @php($gy = (array) ($spec['gynae'] ?? [])) @php($den = (array) ($spec['dental'] ?? [])) @php($eye = (array) ($spec['eye'] ?? [])) @php($vac = (array) ($c->immunizations ?? []))

OPD: {{ $patient->name }} MR {{ $patient->patient_id }} · {{ $patient->age !== '' ? $patient->age . ' y' : '' }} {{ $patient->sex }} @if ($patient->mlc)MLC@endif {{ ucfirst($c->status ?: 'new') }}

@if ($visit->token_no)Token {{ $visit->token_no }}@endif @if ($c->exists)Print@endif Queue
{{ csrf_field() }} @if ($templates->isNotEmpty())
@endif
Vitals
Presenting complaint and history
Examination
@foreach (\App\Models\Consultation::SYSTEMS as $k => $label) @php($st = $exam[$k]['status'] ?? 'not_examined') @endforeach
{{ $label }} @foreach (['not_examined' => 'Not examined', 'normal' => 'Normal', 'abnormal' => 'Abnormal'] as $v => $l) @endforeach
Diagnosis, plan and follow-up
@if ($c->follow_up_date) Book follow-up appointment @endif
Orders
Hold Ctrl to pick several. A lab request is raised when you save. @if ($orders->isNotEmpty())

Requested today: @foreach ($orders as $o)#{{ $o->id }} {{ $o->tests->pluck('name')->implode(', ') }} ({{ $o->status }})@if (! $loop->last); @endif @endforeach

@endif @includeIf('app.consultations._radiology_orders') Write prescription
Past and social history (carried from the last visit)
@foreach (\App\Models\Consultation::PAST as $k => $label)
@endforeach
Gynae and obstetric
@foreach (['g' => 'Gravida', 'p' => 'Para', 'a' => 'Abortions', 'lcb' => 'Last childbirth', 'mode' => 'Mode of delivery', 'contraception' => 'Contraception'] as $k => $label)
@endforeach
Dental
Eye examination and glasses
@foreach (['dist' => 'Distance', 'near' => 'Near'] as $row => $label) @foreach (['r_sph', 'r_cyl', 'r_axis', 'l_sph', 'l_cyl', 'l_axis'] as $f)@endforeach @endforeach
GlassesOD SPHOD CYLOD AXISOS SPHOS CYLOS AXIS
{{ $label }}
Immunizations
@foreach (\App\Models\Consultation::VACCINES as $v)
@endforeach
Patient
{{ $patient->name }}
MR {{ $patient->patient_id }}@if ($patient->cnic) · CNIC {{ $patient->cnic }}@endif
{{ $patient->phone }}
Blood group: {{ $patient->bloodgroup ?: '-' }}
Doctor: {{ optional($doctor)->name }}
Full chart
Previous visits
@forelse ($previous as $p)

{{ $p->date }}: {{ \Illuminate\Support\Str::limit($p->diagnosis ?: $p->provisional_diagnosis ?: $p->presenting_complaint, 70) }}

@empty

First consultation.

@endforelse
@stop @section('script') @stop