@Override public boolean validValue(CodePhrase value) { if(value == null) { return false; } if(terminologyId != null && !terminologyId.equals(value.getTerminologyId())) { return false; } if(codeList != null && !codeList.contains(value.getCodeString())) { return false; } return true; }
@Override public boolean validValue(CodePhrase value) { if(value == null) { return false; } if(terminologyId != null && !terminologyId.equals(value.getTerminologyId())) { return false; } if(codeList != null && !codeList.contains(value.getCodeString())) { return false; } return true; }
/** * Tests if two instances are strictly comparable. * * @param ordered * @return true if two instances are strictly comparable */ public boolean isStrictlyComparableTo(DvOrdered ordered) { if (!(ordered instanceof DvOrdinal)) { return false; } final DvOrdinal dvOrdinal = (DvOrdinal) ordered; if (!symbol.getDefiningCode().getTerminologyId().equals( dvOrdinal.symbol.getDefiningCode().getTerminologyId())) { return false; } // todo: check if symbols are from same subset or value range in the same vocabulary return true; }
/** * Tests if two instances are strictly comparable. * * @param ordered * @return true if two instances are strictly comparable */ public boolean isStrictlyComparableTo(DvOrdered ordered) { if (!(ordered instanceof DvOrdinal)) { return false; } final DvOrdinal dvOrdinal = (DvOrdinal) ordered; if (!symbol.getDefiningCode().getTerminologyId().equals( dvOrdinal.symbol.getDefiningCode().getTerminologyId())) { return false; } // todo: check if symbols are from same subset or value range in the same vocabulary return true; }