NIH | National Cancer Institute | NCI Wiki  

Versions Compared


  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 5.3
Code Block
titleJava Code Snippet
CodedNodeSet nodeSet = evsService.getNodeSet("NCI MetaThesaurus", null, null);

//Tell the api that you want to get back only the PRESENTATION type properties                    
CodedNodeSet.PropertyType[] types = new CodedNodeSet.PropertyType[1];                 
types[0] = CodedNodeSet.PropertyType.PRESENTATION;

//Now create the reference to the CUI you wish to retrieve                         
ConceptReferenceList crl = new ConceptReferenceList();                          
nodeSet = nodeSet.restrictToCodes(crl);