public function getAllergies(\Patient $patient) { if (count($patient->allergies)) { return implode(', ', $patient->allergies); } return 'none'; }