<?php

namespace App\Http\Requests\Profile;

use Illuminate\Foundation\Http\FormRequest;

class UpdateMedicalRequest extends FormRequest
{
    public function authorize(): bool
    {
        return true;
    }

    public function rules(): array
    {
        return [
            'blood_group'              => ['sometimes', 'nullable', 'string', 'max:10'],
            'allergies'                => ['sometimes', 'nullable', 'string', 'max:1000'],
            'chronic_conditions'       => ['sometimes', 'nullable', 'string', 'max:1000'],
            'disability_needs'         => ['sometimes', 'nullable', 'string', 'max:1000'],
            'emergency_contact_name'   => ['sometimes', 'nullable', 'string', 'max:255'],
            'emergency_contact_phone'  => ['sometimes', 'nullable', 'string', 'max:20'],
        ];
    }
}
