use of com.odysseusinc.arachne.portal.api.v1.dto.ParticipantExtendedDTO in project ArachneCentralAPI by OHDSI.
the class ParticipantLinkToParticipantExtendedDTOConverter method convert.
@Override
public ParticipantExtendedDTO convert(ParticipantLink participantLink) {
final ParticipantExtendedDTO participantDTO = new ParticipantExtendedDTO();
ParticipantRole role = participantLink.getRole();
final IUser user = participantLink.getUser();
participantDTO.setId(user.getUuid());
participantDTO.setFullName(user.getFullName());
participantDTO.setRole(new OptionDTO(role.name(), role.toString()));
participantDTO.setStatus(participantLink.getStatus().toString());
participantDTO.setAffilation(user.getAffiliation());
participantDTO.setProfessionalType(user.getProfessionalType());
return participantDTO;
}
Aggregations