{{-- DTHospital - doctor share policies, their rules and the doctors on each. Copyright (c) ICT Innovations Part of DTHospital Licensed under the GNU General Public License v3.0. --}} @extends('layouts.master') @section('content') @include('app.partials._alerts')

Doctor share policies

A policy is a set of rules. Each doctor is on one policy. Every invoice line is matched to the most specific rule of the doctor's policy: a rule for the exact service beats one for its department, which beats a catch-all, and a rule for the patient type beats one without. The share is worked out on the line total less its part of any discount.

@forelse ($policies as $policy)
{{ csrf_field() }}
@foreach ($policy->rules as $rule)
{{ csrf_field() }}
{{ csrf_field() }}
@endforeach
{{ csrf_field() }}
@foreach ($policy->rules as $rule) @endforeach
ServiceDepartmentPatient typeDoctor %Referral %
{{ csrf_field() }}
@foreach ($doctors as $d)
@endforeach
@if ($doctors->isEmpty())No doctors yet. Add them under Doctors.@endif
{{ csrf_field() }}
@empty

No policies yet. Add one below, then assign doctors to it.

@endforelse

Add a policy

{{ csrf_field() }}
@stop