37 lines
774 B
PHP
37 lines
774 B
PHP
<?php
|
|
|
|
namespace App\Models;
|
|
|
|
use Illuminate\Database\Eloquent\Model;
|
|
|
|
class ObservableMedicalHistory extends Model
|
|
{
|
|
protected $fillable = [
|
|
'source_type',
|
|
'original_id',
|
|
|
|
'observable_in',
|
|
'observable_out',
|
|
'observable_reason',
|
|
'out_reason',
|
|
|
|
'medical_card_number',
|
|
'full_name',
|
|
'birth_date',
|
|
'recipient_date',
|
|
'extract_date',
|
|
'death_date',
|
|
'male',
|
|
'urgency_id',
|
|
'hospital_result_id',
|
|
'visit_result_id',
|
|
'comment',
|
|
'user_id',
|
|
];
|
|
|
|
public function medicalHistory(): \Illuminate\Database\Eloquent\Relations\BelongsTo
|
|
{
|
|
return $this->belongsTo(ReportDutyPatient::class, 'original_id', 'original_id');
|
|
}
|
|
}
|