{{ __('Medication Order #') . $order->id }}

@if($order->status === 'assigned') {{ __('Create Prescription') }} @endif {{ __('Back to Orders') }}

Order Information

Status
{{ $order::STATUSES[$order->status] }}
Created
{{ $order->created_at->format('M d, Y H:i') }}
Assigned
{{ $order->assigned_at ? $order->assigned_at->format('M d, Y H:i') : 'N/A' }}
@if($order->status === 'prescribed')
Prescribed
{{ $order->prescribed_at ? $order->prescribed_at->format('M d, Y H:i') : 'N/A' }}
@endif @if($order->status === 'completed')
Completed
{{ $order->completed_at ? $order->completed_at->format('M d, Y H:i') : 'N/A' }}
@endif @if($order->status === 'rejected')
Rejected
{{ $order->rejected_at ? $order->rejected_at->format('M d, Y H:i') : 'N/A' }}
@endif

Patient Information

View Full Profile
Name
{{ $order->patient->name }}
Email
{{ $order->patient->email }}
Phone
{{ $order->patient->phone ?: 'N/A' }}
Date of Birth
{{ $order->patient->dob ? $order->patient->dob->format('M d, Y') : 'N/A' }}
Age
{{ $order->patient->dob ? $order->patient->dob->age . ' years' : 'N/A' }}
Gender
{{ $order->patient->gender ?: 'N/A' }}

Allergies

@if($order->patient->allergies && $order->patient->allergies->count() > 0)
@foreach($order->patient->allergies as $allergy)
{{ $allergy->allergen }} @if($allergy->reaction) - {{ $allergy->reaction }} @endif @if($allergy->severity) {{ ucfirst($allergy->severity) }} @endif
@endforeach
@else
No known allergies
@endif
@if($order->patient->healthQuestion)

Health Information

@if($order->patient->healthQuestion->has_chronic_conditions)
Chronic Conditions:
{{ $order->patient->healthQuestion->chronic_conditions ?: 'Yes (details not provided)' }}
@endif @if($order->patient->healthQuestion->uses_tobacco_alcohol_drugs)
Substance Use:
{{ $order->patient->healthQuestion->substance_use_frequency ?: 'Yes (details not provided)' }}
@endif @if($order->patient->healthQuestion->is_pregnant)
Pregnancy Status:
Patient is pregnant
@endif @if($order->patient->healthQuestion->had_recent_surgeries)
Recent Surgeries:
{{ $order->patient->healthQuestion->recent_surgeries_details ?: 'Yes (details not provided)' }}
@endif @if($order->patient->healthQuestion->has_health_concerns)
Health Concerns:
{{ $order->patient->healthQuestion->health_concerns_details ?: 'Yes (details not provided)' }}
@endif
@endif

Notes

Patient Notes
{{ $order->patient_notes ?: 'No notes provided.' }}
@if($order->doctor_notes)
Your Notes
{{ $order->doctor_notes }}
@endif @if($order->rejection_reason)
Rejection Reason
{{ $order->rejection_reason }}
@endif

Requested Medications

@foreach($order->items as $item) @endforeach
Medication Requested Dosage Requested Quantity Status
@if($item->isCustomMedication())
{{ $item->custom_medication_name }}
@if($item->custom_medication_details)
{{ $item->custom_medication_details }}
@endif @else
{{ $item->medication->name }}
{{ $item->medication->generic_name }} - {{ $item->medication->strength }} {{ $item->medication->dosage_form }}
@endif
{{ $item->requested_dosage ?: 'Not specified' }} {{ $item->requested_quantity ?: 'Not specified' }} {{ $item::STATUSES[$item->status] }} @if($item->status === 'rejected' && $item->rejection_reason)
{{ $item->rejection_reason }}
@endif
@if($order->status === 'assigned')

Ready to Prescribe?

Review the patient information carefully before creating a prescription.

View Patient's Current Medications
@endif @if($order->prescription)

Prescription Details

@foreach($order->prescription->items as $item) @endforeach
Medication Dosage Frequency Duration Quantity
@if($item->isCustomMedication())
{{ $item->custom_medication_name }}
@if($item->custom_medication_details)
{{ $item->custom_medication_details }}
@endif @else
{{ $item->medication->name }}
@endif
{{ $item->dosage }} {{ $item->frequency }} {{ $item->duration }} days {{ $item->quantity }}
@endif