belongsTo(MisMedicalHistory::class, 'rf_medicalhistory_id', 'MedicalHistoryID'); } public function departmentPatient() { return $this->belongsTo(DepartmentPatient::class, 'rf_department_patient_id', 'department_patient_id'); } }