@if ($patientHeader) @include('care.partials.patient-header', [ 'patient' => $patientHeader['patient'], 'visit' => $patientHeader['visit'] ?? null, 'appointment' => $patientHeader['appointment'] ?? null, 'outstandingMinor' => $patientHeader['outstanding_minor'] ?? 0, 'allergies' => $patientHeader['allergies'] ?? [], 'insuranceSummary' => $patientHeader['insurance_summary'] ?? null, 'emergency' => $patientHeader['emergency'] ?? false, 'clinicalAlerts' => $patientHeader['clinical_alerts'] ?? ($clinicalAlerts ?? []), 'currency' => $currency ?? 'GHS', ]) @endif @if (! $workspaceVisit)

No open visit selected

Open a visit from the Visits list, or call next from the waiting queue.

Go to visits
@else {{-- Module tabs --}}
@foreach ($workspaceTabs as $tabKey => $tabLabel) $activeTab === $tabKey, 'text-slate-600 hover:bg-slate-50' => $activeTab !== $tabKey, ])> {{ $tabLabel }} @endforeach
@if ($activeTab === 'billing')

Add specialty service

@csrf
@if ($workspaceVisit->bill)

Current invoice {{ $workspaceVisit->bill->invoice_number }}

    @forelse ($workspaceVisit->bill->lineItems as $line)
  • {{ $line->description }} {{ number_format($line->total_minor / 100, 2) }}
  • @empty
  • No line items yet.
  • @endforelse
Open bill
@endif
@elseif (! empty($clinicalFields)) @include('care.specialty.partials.clinical-form') @elseif ($activeTab === 'orders')

Orders

Order lab / imaging from the consultation flow. Specialty order sets can extend this later.

Lab requests @if ($workspaceVisit->appointment) Appointment @endif
@elseif ($activeTab === 'documents')

Documents

Specialty documents attach to the patient chart for this episode.

@csrf
    @forelse ($visitDocuments ?? [] as $doc)
  • {{ $doc->original_name }}

    {{ $doc->document_type }} · {{ $doc->created_at?->format('d M Y H:i') }}

    @if ($doc->file_path) Open @endif
  • @empty
  • No documents yet.
  • @endforelse
@if ($workspaceVisit->patient) Patient chart @endif
@else

Overview

Visit status
{{ ucfirst(str_replace('_', ' ', $workspaceVisit->status)) }}
Checked in
{{ $workspaceVisit->checked_in_at?->format('d M Y H:i') ?? '—' }}
Department
{{ $workspaceVisit->appointment?->department?->name ?? '—' }}
Queue
{{ $workspaceVisit->appointment?->queue_ticket_number ?? '—' }} @if ($workspaceVisit->appointment?->queue_ticket_status) ({{ $workspaceVisit->appointment->queue_ticket_status }}) @endif
@if (! empty($clinicalAlerts))

Clinical alerts

@foreach ($clinicalAlerts as $alert)

{{ $alert['message'] ?? '' }}

@endforeach
@endif
@endif
@include('care.partials.patient-timeline', ['events' => $timeline ?? []])
@endif