24 lines
488 B
PHP
24 lines
488 B
PHP
<?php
|
|
|
|
namespace App\Models;
|
|
|
|
use Illuminate\Database\Eloquent\Model;
|
|
|
|
class ObservationPatient extends Model
|
|
{
|
|
protected $primaryKey = 'observation_patient_id';
|
|
public $timestamps = false;
|
|
|
|
protected $fillable = [
|
|
'rf_medicalhistory_id',
|
|
'rf_mkab_id',
|
|
'rf_department_id',
|
|
'rf_report_id',
|
|
];
|
|
|
|
public function history()
|
|
{
|
|
return $this->belongsTo(MisMedicalHistory::class, 'rf_medicalhistory_id', 'MedicalHistoryID');
|
|
}
|
|
}
|