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 »

Java 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 a qualifier list containing the source you wish to search                                           
NameAndValueList qualifierList = new NameAndValueList();                   
NameAndValue nv = new NameAndValue();                   
nv.setName("source-code");
nv.setContent("12438");                 
qualifierList.addNameAndValue(nv);
nodeSet = nodeSet.restrictToProperties(null,types,null,null, qualifierList);


  • No labels