Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Version History

« Previous Version 3 Current »

Overview

Test case for normal use for ICD9CM of the Jpa ClamlComputePreferredNameHandler.

Procedure 1

  • Retrieve concept 728.1 (ICD9CM) from the content service.
  • Instantiate preferred name handler

     config = ConfigUtility.getConfigProperties();
     ComputePreferredNameHandler handlerService =
              ConfigUtility.newStandardHandlerInstanceWithConfiguration("compute.preferred.name.handler",
                  "ICD9CM", ComputePreferredNameHandler.class);
  • Call computePreferredName(concept)
    • TEST: result should match the known preferred name for the concept "Muscular calcification and ossification"
  • Call computePreferredName(concept.getDescriptions());
    • TEST: result should match the known preferred name for the concept "Muscular calcification and ossification"
  • For each description in the concept, call isPreferredName(description)
    • TEST: The description with a typeId of "4" should return true, others should return false.
  • For each description in the concept, call isPreferredName(description, null)
    • TEST: should produce same result as previous tests.
  • For each description in the concept, call isPreferredName(description, new LanguageRefSetMemberJpa());
    • TEST: should produce same result as previous tests.

Expected Runtime

  • < 1 sec

Notes

  • n/a

 

  • No labels