modified: .gitignore
This commit is contained in:
@@ -11,6 +11,7 @@ class ObservationPatient extends Model
|
||||
|
||||
protected $fillable = [
|
||||
'rf_medicalhistory_id',
|
||||
'rf_department_patient_id',
|
||||
'rf_mkab_id',
|
||||
'rf_department_id',
|
||||
'rf_report_id',
|
||||
@@ -21,4 +22,9 @@ class ObservationPatient extends Model
|
||||
{
|
||||
return $this->belongsTo(MisMedicalHistory::class, 'rf_medicalhistory_id', 'MedicalHistoryID');
|
||||
}
|
||||
|
||||
public function departmentPatient()
|
||||
{
|
||||
return $this->belongsTo(DepartmentPatient::class, 'rf_department_patient_id', 'department_patient_id');
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user