/**
  * {@inheritdoc}
  */
 public function getPatientByName($patientName)
 {
     try {
         if (!($patient = $this->repository->getByName($patientName))) {
             throw new PatientNotFoundException('name', $patientName);
         }
     } catch (NonUniqueResultException $exception) {
         throw new MultiplePatientsFoundException();
     }
     return $patient;
 }