...
- 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.
...