use of com.odysseusinc.arachne.portal.model.ProfessionalType in project ArachneCentralAPI by OHDSI.
the class ProfessionalTypeController method list.
@ApiOperation("List professional types.")
@RequestMapping(value = "/api/v1/user-management/professional-types", method = RequestMethod.GET)
public JsonResult<List<CommonProfessionalTypeDTO>> list() {
JsonResult result = null;
Iterable<ProfessionalType> professionalTypes = professionalTypeService.list();
result = new JsonResult<>(JsonResult.ErrorCode.NO_ERROR);
result.setResult(professionalTypes);
return result;
}
use of com.odysseusinc.arachne.portal.model.ProfessionalType in project ArachneCentralAPI by OHDSI.
the class UserDTOToUserConverter method convert.
@Override
public User convert(CommonUserRegistrationDTO dto) {
User user = new User();
user.setEmail(dto.getEmail());
user.setPassword(dto.getPassword());
user.setMiddlename(dto.getMiddlename());
user.setFirstname(dto.getFirstname());
user.setLastname(dto.getLastname());
ProfessionalType professionalType = new ProfessionalType();
professionalType.setId(dto.getProfessionalTypeId());
user.setProfessionalType(professionalType);
return user;
}
Aggregations