@php $showMeds = ($report_config['show_medications'] ?? true) && $prescriptions && $prescriptions->count() > 0; $showRecs = ($report_config['show_recommendations'] ?? true) && isset($examination->recommendations['instructions']) && count($examination->recommendations['instructions']) > 0; $showRefusal = isset($treatmentPlan) && isset($treatmentPlan->plan_details['refusal_documented']) && $treatmentPlan->plan_details['refusal_documented']; @endphp @if($showMeds || $showRecs || $showRefusal)
Treatment Plan
@if($showMeds)
DRUG PRESCRIPTIONS
@foreach($prescriptions as $prescription) @endforeach
MEDICATION DOSAGE / FREQUENCY EYE INSTRUCTIONS
{{ $prescription->drug->name ?? $prescription->drug_name }} {{ $prescription->dosage }} / {{ $prescription->frequency }} {{ $prescription->eye }} {{ $prescription->instructions }}
@endif @if($showRecs)
ADDITIONAL INSTRUCTIONS
@endif @if($showRefusal)
⚠ Documented Refusal
{{ $treatmentPlan->plan_details['refusal_details'] ?? '' }}
Patient declined the above recommendation. Documented for clinical record.
@endif @endif