NIH | National Cancer Institute | NCI Wiki  

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 5.3
Code Block
languageJava
titleJava Code Snippet
    //first obtain a 'CodedNodeSet' from the 'NCI Thesaurus' ontology:
    ResolvedConceptReferenceList cns = lbSvc.getCodingSchemeConcepts("NCI Thesaurus", null);

    //Next, restrict that to the desired Code ('C1234' in this example):
    ConceptReferenceList crefs = ConvenienceMethods.
                    createConceptReferenceList(new String[]{"C1234"}, "NCI Thesaurus");
    cns.restrictToCodes(crefs);

    //Lastly, resolve the match.
    ResolvedConceptReferenceList matches = cns.resolveToList(null, null, null, 1);