@@ -0,0 +1,1348 @@
+/*******************************************************************************%0A * Copyright (c) 2020 B2i Healthcare. All rights reserved.%0A *******************************************************************************/%0Apackage com.b2international.snowowl.snomed.core;%0A%0Aimport java.util.function.Function;%0A%0Aimport com.b2international.snowowl.snomed.core.domain.SnomedConcept;%0A%0A/**%0A * @since 7.10.0%0A */%0Apublic enum SnomedDisplayTermType %7B%0A%09%0A%09FSN(%0A%09%09%22Fully specified name%22, %0A%09%09SnomedConcept.Expand.FULLY_SPECIFIED_NAME + %22()%22,%0A%09%09concept -%3E concept.getFsn() != null ? concept.getFsn().getTerm() : concept.getId()%0A%09),%0A%09%0A%09PT(%0A%09%09%22Preferred term%22, %0A%09%09SnomedConcept.Expand.PREFERRED_TERM + %22()%22,%0A%09%09concept -%3E concept.getPt() != null ? concept.getPt().getTerm() : concept.getId()%0A%09);%0A%09%0A%09private final String label;%0A%09private final String expand;%0A%09private final Function%3CSnomedConcept, String%3E getLabel;%0A%09%0A%09private SnomedDisplayTermType(final String label, final String expand, final Function%3CSnomedConcept, String%3E getLabel) %7B%0A%09%09this.label = label;%0A%09%09this.expand = expand;%0A%09%09this.getLabel = getLabel;%0A%09%7D%0A%09%0A%09public String getLabel() %7B%0A%09%09return label;%0A%09%7D%0A%09%0A%09public String getExpand() %7B%0A%09%09return expand;%0A%09%7D%0A%09%0A%09public String getLabel(SnomedConcept concept) %7B%0A%09%09return getLabel.apply(concept);%0A%09%7D%0A%09%0A%09@Override%0A%09public String toString() %7B%0A%09%09return label;%0A%09%7D%0A%09%0A%7D%0A

move SnomedDisplayTermType to snomed.core