<?php

namespace Modules\NeurologyClinic\Entities;

use Illuminate\Database\Eloquent\Model;
use Modules\ClinicCore\Entities\ClcPatient;

/** Neurology 1:1 extension of a shared ClinicCore patient. */
class NeurologyPatientProfile extends Model
{
    protected $table = 'neurology_patient_profiles';
    protected $guarded = ['id'];

    protected $casts = [
        'seizure_history' => 'boolean',
    ];

    public function patient()
    {
        return $this->belongsTo(ClcPatient::class, 'clc_patient_id');
    }
}
