errors.addParseError(fieldName, "This coded entry must be provided");
}
}
return null;
}
VocabularyEntry entry = vocab.getByCode(codedEntry.getCode());
if (entry.getOID().equals(codedEntry.getOID())) {
return entry;
} else {
if (errors != null) {
errors.addParseError(fieldName, "Coded value does not appear to be from correct vocabulary - expected OID:" + entry.getOID() + " but got OID:" + codedEntry.getOID());
}
}
return null;
}