@extends('layouts.app') @section('content')

Patient portal · vitalcarehospital.online

Treatment tracker

Enter the treatment ID you received at 145 Madison Ave — it looks like TR-A3F9K2 or VC-RX-B7K2L9. You’ll see the full history, prescriptions and whether they’re being followed.

@if(!empty($demoCodes))

Demo codes to try: @foreach($demoCodes as $dc){{ $dc }}@if(!$loop->last), @endif @endforeach

@endif @if($error)
{{ $error }}
@endif @if($result) @php $t=$result['treatment']; $r=$result['record']; $p=$result['patient']; $d=$result['doctor']; @endphp

Treatment

{{ $t?->name ?? $r->chief_complaint ?? 'Care plan' }}

{{ $t?->tracking_code ?? $r->tracking_code }}

{{ $t?->outcome ?? 'ongoing' }}

{{ $t?->description ?? $r->treatment_plan ?? 'Protocol at 145 Madison Ave.' }}

Patient

{{ $p?->user->first_name ?? '' }} {{ $p?->user->last_name ?? '' }}

{{ $p?->mrn ?? '' }}

Clinician

{{ $d?->full_name ?? '—' }}

{{ $d?->specialty->name ?? '' }}

Started

{{ $t?->started_on?->format('j M Y') ?? $r?->recorded_at?->format('j M Y') ?? '—' }}

Encounter

{{ $r?->encounter_type ?? 'consultation' }}

{{ $r?->recorded_at?->format('j M Y H:i') ?? '' }}

Adherence

{{ $result['overall'] }}%

@if($result['overall']>=80) Following well @elseif($result['overall']>=40) Partially following @else Needs attention @endif

@foreach($result['adherence'] as $a)

{{ $a['prescription']->reference ?? substr($a['prescription']->uuid,0,8) }}

{{ $a['prescription']->status->value }} · {{ $a['pct'] }}%

@endforeach @forelse($result['adherence'] as $a) @empty

No prescriptions linked.

@endforelse

145 Madison Ave, NY · +1 (212) 555-0100

Prescriptions & medications

@forelse($result['prescriptions'] as $pres)

{{ $pres->reference }}

{{ $pres->status->value }}
    @foreach($pres->items as $it)
  • {{ $it->medication_name }} · {{ $it->dosage }} · {{ $it->frequency }} {{ $it->status }}@if($it->quantity_dispensed) ({{ $it->quantity_dispensed }}/{{ $it->quantity }}) @endif
  • @endforeach

Prescribed {{ $pres->prescribed_at?->format('j M Y') }} @if($pres->dispensed_at) · Dispensed {{ $pres->dispensed_at->format('j M Y') }} @endif

@empty

No prescriptions yet.

@endforelse

Treatment history

@forelse($result['treatments'] as $tx)

{{ $tx->name }}

{{ $tx->tracking_code }}

{{ $tx->started_on?->format('j M Y') ?? '' }} — {{ $tx->outcome ?? 'ongoing' }}

@empty

No treatments recorded.

@endforelse

Diagnoses

@forelse($result['diagnoses'] as $dx)

{{ $dx->title }}

{{ $dx->code ?? '' }} · {{ $dx->severity ?? '' }}

@empty

No diagnoses coded.

@endforelse

Vitals & labs

{{ $result['vitals']->count() }} vitals, {{ $result['labs']->count() }} lab requests

@forelse($result['labs'] as $lab)

{{ $lab->reference }} · {{ $lab->status->value }}

@empty

No labs linked.

@endforelse
@endif
@endsection