Работа над журналом для ст. мед сестер
This commit is contained in:
34
app/Models/MedicalHistoryCorrection.php
Normal file
34
app/Models/MedicalHistoryCorrection.php
Normal file
@@ -0,0 +1,34 @@
|
||||
<?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);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user