NIH | National Cancer Institute | NCI Wiki  

Error rendering macro 'rw-search'

null

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

Compare with Current View Page History

« Previous Version 2 Next »

<source lang = java>

    //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);

</source>

  • No labels