Files
onboard/app/Models/MedicalHistoryCorrection.php

35 lines
715 B
PHP

<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
class MedicalHistoryCorrection extends Model
{
protected $fillable = [
'medical_history_id',
'medical_card_number',
'full_name',
'birth_date',
'recipient_date',
'extract_date',
'death_date',
'male',
'urgency_id',
'hospital_result_id',
'visit_result_id',
];
protected $casts = [
'birth_date' => 'datetime',
'recipient_date' => 'datetime',
'extract_date' => 'datetime',
'death_date' => 'datetime',
];
public function medicalHistory()
{
return $this->belongsTo(MedicalHistory::class);
}
}