Files
onboard/app/Models/ObservationPatient.php
2026-04-24 16:46:10 +09:00

32 lines
709 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_department_patient_id',
'rf_mkab_id',
'rf_department_id',
'rf_report_id',
'comment',
];
public function history()
{
return $this->belongsTo(MisMedicalHistory::class, 'rf_medicalhistory_id', 'MedicalHistoryID');
}
public function departmentPatient()
{
return $this->belongsTo(DepartmentPatient::class, 'rf_department_patient_id', 'department_patient_id');
}
}