for (RelatedPersonDetails personDetails : relationshipList.getRelationships().getRelatedPerson()) {
PatientRelationshipParticipantRole person = personDetails.getParticipant();
if (person.getPersonRole() != null) {
JobRoleName role = (JobRoleName)HelperUtils.safelyMapCodedValueToVocabEntry(
person.getPersonRole(), JobRoleName._NR0010, "RelatedPersonJobRole", parseExceptions, true);
JobRoleName associatedRole = null;
if (person.getAssociatedJobRole() != null) {
associatedRole = (JobRoleName)HelperUtils.safelyMapCodedValueToVocabEntry(
person.getAssociatedJobRole(), JobRoleName._NR0010, "RelatedPersonAssociatedJobRole", parseExceptions, true);
}