Files
onboard/app/Models/MedicalHistoryCorrection.php
brusnitsyn 82673f385b Добавлено сохранение правок поверх МИС
Добавлено версионирование сохраненных правок
Добавлено сохранение отчета мед. сестры
2026-05-04 22:23:21 +09:00

38 lines
776 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',
'user_id',
'mis_user_id',
'comment',
];
protected $casts = [
'birth_date' => 'datetime',
'recipient_date' => 'datetime',
'extract_date' => 'datetime',
'death_date' => 'datetime',
];
public function medicalHistory()
{
return $this->belongsTo(MedicalHistory::class);
}
}