Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  • Retrieve concept 102276005 (SNOMEDCT) from the content service.
  • Instantiate preferred name handler

    Code Block
     config = ConfigUtility.getConfigProperties();
     ComputePreferredNameHandler handlerService =
              ConfigUtility.newStandardHandlerInstanceWithConfiguration("compute.preferred.name.handler",
                  "SNOMEDCT", ComputePreferredNameHandler.class);
  • Call getPreferredNamecomputePreferredName(concept)
    • TEST: result should match the known preferred name for the concept "Bipartite ossification"
  • Call getPreferredNamecomputePreferredName(concept.getDescriptions());
    • TEST: result should match the known preferred name for the concept "Bipartite ossification"
  • For each description in the concept, call isPreferredName(description)
    • TEST: the description with typeId=900000000000013009 and language refset member with refSetId=900000000000509007 and acceptabilityId=900000000000548007 should return true - all others should return false.

...