@extends('layouts.app') @section('title', ($admission->patient->full_name ?? '') . ' | Inpatient') @section('styles') @endsection @section('content') @php $isDischarged = $admission->status === 'discharged'; @endphp @if($isDischarged)
This patient has been discharged on {{ $admission->discharge_date ? $admission->discharge_date->format('d M Y H:i') : '' }}. Records are read-only.
{{ $admission->patient->mrn ?? '' }} · {{ ucfirst($admission->patient->gender??'') }} · {{ $admission->patient->age ?? '' }} · {{ $admission->ward->name ?? '' }} · Bed {{ $admission->bed->bed_number ?? '' }}
No invoice
@endif{{ $admission->nursingNotes->first()->content }}
{{ $admission->nursingNotes->first()->nurse->name ?? '' }} · {{ $admission->nursingNotes->first()->created_at->format('d M H:i') }}
@elseNo notes yet
@endifAdmission Date
{{ $admission->admission_date->format('l, d M Y H:i') }}
Ward / Bed
{{ $admission->ward->name ?? '' }} · Bed {{ $admission->bed->bed_number ?? '' }}
Admitting Clinician
{{ $admission->clinician->name ?? '-' }}
Reason for Admission
{{ $admission->reason ?? '-' }}
Diagnosis on Admission
{{ $admission->diagnosis_on_admission ?? '-' }}
Vitals on Admission
{{ $l }}
{{ $val }}
{{ $note->content }}
No notes recorded yet. Add the first progress note above.
@endforelseDrug Safety Warnings
Re-submit the prescription with the acknowledgement checkbox checked to override.
| Date | Drug | Dose | Freq | Route | Duration | Qty | Schedule | Status | Actions |
|---|---|---|---|---|---|---|---|---|---|
| {{ $rx->created_at->format('d M Y') }} | {{ $rx->drug_name }} | {{ $rx->dosage ?? '-' }} | {{ $rx->frequency ?? '-' }} | {{ $rx->route ?? 'oral' }} | {{ $rx->duration ?? '-' }} | {{ $rx->quantity }} |
@if($hasSchedule)
@php $scheduledTimes = $rx->administrations->pluck('scheduled_time')->unique()->sort(); @endphp
@foreach($scheduledTimes as $t)
{{ $t }}
@endforeach
@else
@foreach($times as $t)
{{ $t }}
@endforeach
@endif
|
@php $rxSC = ['pending'=>'badge-warning','dispensed'=>'badge-success','cancelled'=>'badge-danger']; @endphp {{ ucfirst($rx->status) }} |
@if($rx->status === 'dispensed' && !$hasSchedule)
@elseif($hasSchedule)
@php
$doneCount = $rx->administrations->whereIn('status',['administered','partially_given'])->count();
$totalCount = $rx->administrations->count();
@endphp
{{ $doneCount }}/{{ $totalCount }} given
@elseif($rx->status === 'pending')
Awaiting pharmacy
@endif
|
{{ $overdueDoses }} Overdue Dose(s)
Some scheduled doses are past their administration time.
| Time | Drug | Dose | Route | Dose # | Status | Administered | Nurse | Actions |
|---|---|---|---|---|---|---|---|---|
| {{ $mar->scheduled_time ? \Carbon\Carbon::createFromFormat('H:i:s', $mar->scheduled_time)->format('h:i A') : '-' }} @if($isOverdue)OVERDUE@elseif($isDue)DUE@endif | {{ $mar->prescription->drug_name ?? '' }} | {{ $mar->prescription->dosage ?? '-' }} | {{ $mar->prescription->route ?? 'oral' }} | {{ $mar->dose_number }} | {{ ucfirst(str_replace('_',' ',$mar->status)) }} | {{ $mar->administered_at ? $mar->administered_at->format('H:i') : '-' }} | {{ $mar->nurse->name ?? '-' }} |
@if($mar->status === 'scheduled')
@if(auth()->user()->hasAnyRole('Nurse','Clinician','Super Admin','Hospital Admin'))
|
No medication schedules for today. Generate schedules from the Medication Chart tab after pharmacy dispenses.
@endif| Time | Drug | Dose | Status | Given At | Nurse | Comments |
|---|---|---|---|---|---|---|
| {{ $d->scheduled_time ? \Carbon\Carbon::createFromFormat('H:i:s',$d->scheduled_time)->format('h:i A') : '-' }} | {{ $d->prescription->drug_name ?? '' }} | {{ $d->prescription->dosage ?? '' }} | {{ ucfirst(str_replace('_',' ',$d->status)) }} | {{ $d->administered_at ? $d->administered_at->format('H:i') : '-' }} | {{ $d->nurse->name ?? '-' }} | {{ $d->comments ?? '-' }} |
No administration records yet.
@endforelse| Test | Urgency | Result | Status |
|---|---|---|---|
| {{ $lo->test_name }} | {{ $lo->urgency }} | @if($lo->result && is_array($lo->result->results)) @php $resData = $lo->result->results; @endphp @if(isset($resData['generic'])) {{ $resData['generic']['value'] ?? '-' }} {{ $resData['generic']['unit'] ?? '' }} @else @foreach($resData as $param) @if(is_array($param) && isset($param['name'])) {{ $param['short_code'] ?? $param['name'] }}: {{ $param['value'] ?? '-' }} {{ $param['unit'] ?? '' }}@if(!$loop->last), @endif @endif @endforeach @endif @elseif($lo->result) {{ $lo->result->results ?? '-' }} @else - @endif | {{ ucfirst($lo->status) }} |
| Type | Body Part | Status |
|---|---|---|
| {{ $ir->imaging_type }} | {{ $ir->body_part ?? '-' }} | {{ ucfirst($ir->status) }} |
Total
KES {{ number_format($inv->total_amount) }}
Paid
KES {{ number_format($inv->amount_paid) }}
Balance
KES {{ number_format($inv->balance) }}
| Item | Details | Qty | Price | Total | |
|---|---|---|---|---|---|
| {{ $item->description }} | {{ $item->category }} | @if($isEditable) @else {{ $item->quantity }} @endif | @if($isEditable) @else {{ number_format($item->unit_price) }} @endif | {{ number_format($item->total) }} | @if(auth()->user()->hasAnyRole('Receptionist','Clinician','Nurse','Triage Nurse','Dental User','Hospital Admin','Super Admin')) @endif |
| Grand Total | KES {{ number_format($inv->total_amount) }} | ||||
| Method | Details | Amount | Reference | |
|---|---|---|---|---|
| {{ str_replace('_',' ',$pay->payment_method) }} | {{ $pay->description ?? '' }} | KES {{ number_format($pay->amount) }} | {{ $pay->reference_number ?? '' }} | @if(auth()->user()->hasAnyRole('Super Admin','Hospital Admin','Receptionist','Clinician','Nurse','Triage Nurse')) @endif |
| Total Paid | KES {{ number_format($inv->amount_paid) }} | |||
| Balance Due | KES {{ number_format($inv->balance) }} | |||
No invoice yet. Orders will auto-generate billing items.
@endifDischarge is restricted to Clinicians.
Contact the attending clinician to complete the discharge summary.