'Primary', 'secondary' => 'Secondary' ]; public function icd() { return $this->belongsTo(Icd::class, 'diagnosis_id', 'id'); } }