@Test public void testGetAllLegalRepresentativeDto() { patientLegalRepresentativeAssociationService .getAllLegalRepresentativeDto(); }
@Override public List<LegalRepresentativeDto> getAllLegalRepresentativeDto() { List<PatientLegalRepresentativeAssociationDto> associationDtos = findAllPatientLegalRepresentativeAssociationDtos(); List<PatientProfileDto> legalRepDtos = findAllPatientLegalRepresentativeDto(); Iterator<PatientProfileDto> legalRepIterator = legalRepDtos.iterator(); List<LegalRepresentativeDto> legalRepresentativeDtos = new ArrayList<LegalRepresentativeDto>(); for (PatientLegalRepresentativeAssociationDto associationDto : associationDtos) { LegalRepresentativeDto legalRepresentativeDto = modelMapper.map( legalRepIterator.next(), LegalRepresentativeDto.class); if (associationDto.getLegalRepresentativeTypeCode() != null) { legalRepresentativeDto .setLegalRepresentativeTypeCode(associationDto .getLegalRepresentativeTypeCode().getCode()); } else { legalRepresentativeDto.setLegalRepresentativeTypeCode(null); } if (associationDto.getRelationshipStartDate() != null) { legalRepresentativeDto.setRelationshipStartDate(associationDto .getRelationshipStartDate()); } else { legalRepresentativeDto.setRelationshipStartDate(null); } if (associationDto.getRelationshipEndDate() != null) { legalRepresentativeDto.setRelationshipEndDate(associationDto .getRelationshipEndDate()); } else { legalRepresentativeDto.setRelationshipEndDate(null); } legalRepresentativeDtos.add(legalRepresentativeDto); } return legalRepresentativeDtos; }
PatientLegalRepresentativeAssociationServiceImpl implements
		PatientLegalRepresentativeAssociationService { @Override public List<LegalRepresentativeDto> getAllLegalRepresentativeDto() { List<PatientLegalRepresentativeAssociationDto> associationDtos = findAllPatientLegalRepresentativeAssociationDtos(); List<PatientProfileDto> legalRepDtos = findAllPatientLegalRepresentativeDto(); Iterator<PatientProfileDto> legalRepIterator = legalRepDtos.iterator(); List<LegalRepresentativeDto> legalRepresentativeDtos = new ArrayList<LegalRepresentativeDto>(); for (PatientLegalRepresentativeAssociationDto associationDto : associationDtos) { LegalRepresentativeDto legalRepresentativeDto = modelMapper.map( legalRepIterator.next(), LegalRepresentativeDto.class); if (associationDto.getLegalRepresentativeTypeCode() != null) { legalRepresentativeDto .setLegalRepresentativeTypeCode(associationDto .getLegalRepresentativeTypeCode().getCode()); } else { legalRepresentativeDto.setLegalRepresentativeTypeCode(null); } if (associationDto.getRelationshipStartDate() != null) { legalRepresentativeDto.setRelationshipStartDate(associationDto .getRelationshipStartDate()); } else { legalRepresentativeDto.setRelationshipStartDate(null); } if (associationDto.getRelationshipEndDate() != null) { legalRepresentativeDto.setRelationshipEndDate(associationDto .getRelationshipEndDate()); } else { legalRepresentativeDto.setRelationshipEndDate(null); } legalRepresentativeDtos.add(legalRepresentativeDto); } return legalRepresentativeDtos; } }
PatientLegalRepresentativeAssociationServiceImpl implements
		PatientLegalRepresentativeAssociationService { @Override public List<LegalRepresentativeDto> getAllLegalRepresentativeDto() { List<PatientLegalRepresentativeAssociationDto> associationDtos = findAllPatientLegalRepresentativeAssociationDtos(); List<PatientProfileDto> legalRepDtos = findAllPatientLegalRepresentativeDto(); Iterator<PatientProfileDto> legalRepIterator = legalRepDtos.iterator(); List<LegalRepresentativeDto> legalRepresentativeDtos = new ArrayList<LegalRepresentativeDto>(); for (PatientLegalRepresentativeAssociationDto associationDto : associationDtos) { LegalRepresentativeDto legalRepresentativeDto = modelMapper.map( legalRepIterator.next(), LegalRepresentativeDto.class); if (associationDto.getLegalRepresentativeTypeCode() != null) { legalRepresentativeDto .setLegalRepresentativeTypeCode(associationDto .getLegalRepresentativeTypeCode().getCode()); } else { legalRepresentativeDto.setLegalRepresentativeTypeCode(null); } if (associationDto.getRelationshipStartDate() != null) { legalRepresentativeDto.setRelationshipStartDate(associationDto .getRelationshipStartDate()); } else { legalRepresentativeDto.setRelationshipStartDate(null); } if (associationDto.getRelationshipEndDate() != null) { legalRepresentativeDto.setRelationshipEndDate(associationDto .getRelationshipEndDate()); } else { legalRepresentativeDto.setRelationshipEndDate(null); } legalRepresentativeDtos.add(legalRepresentativeDto); } return legalRepresentativeDtos; } PatientLegalRepresentativeAssociationServiceImpl(
			PatientLegalRepresentativeAssociationRepository patientLegalRepresentativeAssociationRepository,
			PatientRepository patientRepository,
			LegalRepresentativeTypeCodeRepository legalRepresentativeTypeCodeRepository,
			ModelMapper modelMapper, UserContext userContext); }
PatientLegalRepresentativeAssociationServiceImpl implements
		PatientLegalRepresentativeAssociationService { @Override public List<LegalRepresentativeDto> getAllLegalRepresentativeDto() { List<PatientLegalRepresentativeAssociationDto> associationDtos = findAllPatientLegalRepresentativeAssociationDtos(); List<PatientProfileDto> legalRepDtos = findAllPatientLegalRepresentativeDto(); Iterator<PatientProfileDto> legalRepIterator = legalRepDtos.iterator(); List<LegalRepresentativeDto> legalRepresentativeDtos = new ArrayList<LegalRepresentativeDto>(); for (PatientLegalRepresentativeAssociationDto associationDto : associationDtos) { LegalRepresentativeDto legalRepresentativeDto = modelMapper.map( legalRepIterator.next(), LegalRepresentativeDto.class); if (associationDto.getLegalRepresentativeTypeCode() != null) { legalRepresentativeDto .setLegalRepresentativeTypeCode(associationDto .getLegalRepresentativeTypeCode().getCode()); } else { legalRepresentativeDto.setLegalRepresentativeTypeCode(null); } if (associationDto.getRelationshipStartDate() != null) { legalRepresentativeDto.setRelationshipStartDate(associationDto .getRelationshipStartDate()); } else { legalRepresentativeDto.setRelationshipStartDate(null); } if (associationDto.getRelationshipEndDate() != null) { legalRepresentativeDto.setRelationshipEndDate(associationDto .getRelationshipEndDate()); } else { legalRepresentativeDto.setRelationshipEndDate(null); } legalRepresentativeDtos.add(legalRepresentativeDto); } return legalRepresentativeDtos; } PatientLegalRepresentativeAssociationServiceImpl(
			PatientLegalRepresentativeAssociationRepository patientLegalRepresentativeAssociationRepository,
			PatientRepository patientRepository,
			LegalRepresentativeTypeCodeRepository legalRepresentativeTypeCodeRepository,
			ModelMapper modelMapper, UserContext userContext); @Override long countAllPatientLegalRepresentativeAssociations(); @Override void deletePatientLegalRepresentativeAssociation(
			PatientLegalRepresentativeAssociation patientLegalRepresentativeAssociation); @Override void deletePatientLegalRepresentativeById(Long legalRepId); @Override PatientLegalRepresentativeAssociation findPatientLegalRepresentativeAssociation(
			Long id); @Override List<PatientLegalRepresentativeAssociation> findAllPatientLegalRepresentativeAssociations(); @Override List<PatientLegalRepresentativeAssociationDto> findAllPatientLegalRepresentativeAssociationDtos(); @Override List<PatientProfileDto> findAllPatientLegalRepresentativeDto(); @Override List<PatientLegalRepresentativeAssociation> findPatientLegalRepresentativeAssociationEntries(
			int firstResult, int maxResults); @Override void savePatientLegalRepresentativeAssociation(
			PatientLegalRepresentativeAssociation patientLegalRepresentativeAssociation); @Override void savePatientLegalRepresentativeAssociationDto(
			PatientLegalRepresentativeAssociationDto patientLegalRepresentativeAssociationDto); @Override PatientLegalRepresentativeAssociation updatePatientLegalRepresentativeAssociation(
			PatientLegalRepresentativeAssociation patientLegalRepresentativeAssociation); @Override void updatePatientLegalRepresentativeAssociationDto(
			PatientLegalRepresentativeAssociationDto patientLegalRepresentativeAssociationDto); @Override List<LegalRepresentativeDto> getAllLegalRepresentativeDto(); @Override PatientLegalRepresentativeAssociationDto getAssociationDtoFromLegalRepresentativeDto(
			LegalRepresentativeDto legalRepresentativeDto); @Override PatientProfileDto getPatientDtoFromLegalRepresentativeDto(
			LegalRepresentativeDto legalRepresentativeDto); }
PatientLegalRepresentativeAssociationServiceImpl implements
		PatientLegalRepresentativeAssociationService { @Override public List<LegalRepresentativeDto> getAllLegalRepresentativeDto() { List<PatientLegalRepresentativeAssociationDto> associationDtos = findAllPatientLegalRepresentativeAssociationDtos(); List<PatientProfileDto> legalRepDtos = findAllPatientLegalRepresentativeDto(); Iterator<PatientProfileDto> legalRepIterator = legalRepDtos.iterator(); List<LegalRepresentativeDto> legalRepresentativeDtos = new ArrayList<LegalRepresentativeDto>(); for (PatientLegalRepresentativeAssociationDto associationDto : associationDtos) { LegalRepresentativeDto legalRepresentativeDto = modelMapper.map( legalRepIterator.next(), LegalRepresentativeDto.class); if (associationDto.getLegalRepresentativeTypeCode() != null) { legalRepresentativeDto .setLegalRepresentativeTypeCode(associationDto .getLegalRepresentativeTypeCode().getCode()); } else { legalRepresentativeDto.setLegalRepresentativeTypeCode(null); } if (associationDto.getRelationshipStartDate() != null) { legalRepresentativeDto.setRelationshipStartDate(associationDto .getRelationshipStartDate()); } else { legalRepresentativeDto.setRelationshipStartDate(null); } if (associationDto.getRelationshipEndDate() != null) { legalRepresentativeDto.setRelationshipEndDate(associationDto .getRelationshipEndDate()); } else { legalRepresentativeDto.setRelationshipEndDate(null); } legalRepresentativeDtos.add(legalRepresentativeDto); } return legalRepresentativeDtos; } PatientLegalRepresentativeAssociationServiceImpl(
			PatientLegalRepresentativeAssociationRepository patientLegalRepresentativeAssociationRepository,
			PatientRepository patientRepository,
			LegalRepresentativeTypeCodeRepository legalRepresentativeTypeCodeRepository,
			ModelMapper modelMapper, UserContext userContext); @Override long countAllPatientLegalRepresentativeAssociations(); @Override void deletePatientLegalRepresentativeAssociation(
			PatientLegalRepresentativeAssociation patientLegalRepresentativeAssociation); @Override void deletePatientLegalRepresentativeById(Long legalRepId); @Override PatientLegalRepresentativeAssociation findPatientLegalRepresentativeAssociation(
			Long id); @Override List<PatientLegalRepresentativeAssociation> findAllPatientLegalRepresentativeAssociations(); @Override List<PatientLegalRepresentativeAssociationDto> findAllPatientLegalRepresentativeAssociationDtos(); @Override List<PatientProfileDto> findAllPatientLegalRepresentativeDto(); @Override List<PatientLegalRepresentativeAssociation> findPatientLegalRepresentativeAssociationEntries(
			int firstResult, int maxResults); @Override void savePatientLegalRepresentativeAssociation(
			PatientLegalRepresentativeAssociation patientLegalRepresentativeAssociation); @Override void savePatientLegalRepresentativeAssociationDto(
			PatientLegalRepresentativeAssociationDto patientLegalRepresentativeAssociationDto); @Override PatientLegalRepresentativeAssociation updatePatientLegalRepresentativeAssociation(
			PatientLegalRepresentativeAssociation patientLegalRepresentativeAssociation); @Override void updatePatientLegalRepresentativeAssociationDto(
			PatientLegalRepresentativeAssociationDto patientLegalRepresentativeAssociationDto); @Override List<LegalRepresentativeDto> getAllLegalRepresentativeDto(); @Override PatientLegalRepresentativeAssociationDto getAssociationDtoFromLegalRepresentativeDto(
			LegalRepresentativeDto legalRepresentativeDto); @Override PatientProfileDto getPatientDtoFromLegalRepresentativeDto(
			LegalRepresentativeDto legalRepresentativeDto);  }