Case testNormalUseHandlerJpa007

Case testNormalUseHandlerJpa007

Overview

Test case for normal use for SNOMED of the Jpa Rf2ComputePreferredNameHandler.

Procedure 1

  • Retrieve concept 102276005 (SNOMEDCT) from the content service.

  • Instantiate preferred name handler

    config = ConfigUtility.getConfigProperties(); ComputePreferredNameHandler handlerService = ConfigUtility.newStandardHandlerInstanceWithConfiguration("compute.preferred.name.handler", "SNOMEDCT", ComputePreferredNameHandler.class);
  • Call computePreferredName(concept)

    • TEST: result should match the known preferred name for the concept "Bipartite ossification"

  • Call computePreferredName(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.

Expected Runtime

  • < 1 sec

Notes

  • n/a