/**
  * Constructor.
  *
  * @param PatientRepositoryInterface $patientRepository
  * @param DiagnosisRepositoryInterface $diagnosisRepository
  * @param ActivityRepositoryInterface $activityRepository
  */
 public function __construct(PatientRepositoryInterface $patientRepository, DiagnosisRepositoryInterface $diagnosisRepository, ActivityRepositoryInterface $activityRepository)
 {
     $this->patientClass = $patientRepository->getClassName();
     $this->patientRepository = $patientRepository;
     $this->diagnosisClass = $diagnosisRepository->getClassName();
     $this->diagnosisRepository = $diagnosisRepository;
     $this->activityClass = $activityRepository->getClassName();
     $this->activityRepository = $activityRepository;
 }
 /**
  * {@inheritdoc}
  */
 public function getDiagnosesByCode(CodeInterface $code)
 {
     return $this->repository->findBy(array('code' => $code));
 }
 /**
  * Constructor.
  *
  * @param string $patientClass
  * @param DiagnosisRepositoryInterface $diagnosisRepository
  */
 public function __construct($patientClass, DiagnosisRepositoryInterface $diagnosisRepository)
 {
     $this->patientClass = $patientClass;
     $this->diagnosisClass = $diagnosisRepository->getClassName();
     $this->diagnosisRepository = $diagnosisRepository;
 }