NIH | National Cancer Institute | NCI Wiki  

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 code you wish to search                                           
NameAndValueList qualifierList = new NameAndValueList();                   
NameAndValue nv = new NameAndValue();                   
nv.setName("source-code");
nv.setContent("C12438");                 
qualifierList.addNameAndValue(nv);

//Specify the source code should come from the NCI source
LocalNameList LnL = new LocalNameList();
LnL.addEntry("NCI");


nodeSet = nodeSet.restrictToProperties(null,types,LnL,null, qualifierList);


  • No labels