41 lines
735 B
PHP
41 lines
735 B
PHP
<?php
|
|
|
|
namespace App\Models;
|
|
|
|
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
|
use Illuminate\Database\Eloquent\Model;
|
|
|
|
class ClaimDiagnosis extends Model
|
|
{
|
|
use HasFactory;
|
|
|
|
protected $table = 'claim_diagnosis';
|
|
|
|
public $fillable = [
|
|
'claim_id',
|
|
'type',
|
|
'diagnosis_id',
|
|
'note',
|
|
'description',
|
|
];
|
|
|
|
protected $hidden = [
|
|
'created_at',
|
|
'updated_at',
|
|
'deleted_at',
|
|
'created_by',
|
|
'updated_by',
|
|
'deleted_by',
|
|
];
|
|
|
|
public $type_enums = [
|
|
'primary' => 'Primary',
|
|
'secondary' => 'Secondary'
|
|
];
|
|
|
|
public function icd()
|
|
{
|
|
return $this->belongsTo(Icd::class, 'diagnosis_id', 'id');
|
|
}
|
|
}
|