<?php

namespace App\Policies;

use App\Models\Patient;
use App\Models\User;
use App\Services\AccessService;

class PatientPolicy
{
    public function __construct(private readonly AccessService $access) {}

    public function view(User $user, Patient $patient): bool
    {
        return $this->access->canViewPatient($user, $patient);
    }

    public function update(User $user, Patient $patient): bool
    {
        return $this->access->canEditPatient($user, $patient);
    }
}
