getEntryConcept method

Concept? getEntryConcept(
  1. String entryConceptCode
)

Implementation

Concept? getEntryConcept(String entryConceptCode) {
  Concept? concept = concepts.singleWhereCode(entryConceptCode);

  if (concept == null) {
    throw EDNetException(
        '  Concept getEntryConcept(String entryConceptCode)');
  }
  if (!(concept.entry)) {
    throw ConceptException(
        '$entryConceptCode concept is not entry. $entryConceptCode');
  }
  return concept;
}