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 5 Next »

			//Instantiate the search extension
         	LexBIGService lbsvc = LexBIGServiceImpl.defaultInstance();
         	SourceAssertedValueSetSearchExtensionImpl assertedVSsvc = null;
       		try {
        	assertedVSsvc = (SourceAssertedValueSetSearchExtensionImpl) lbsvc
                   .getGenericExtension("AssertedValueSetSearchExtension");
    		} catch (LBException e) {
        	e.printStackTrace();
    		}
			//Search for results based on a match of the unique identifier of the value set member
	        ResolvedConceptReferencesIterator itr = assertedVSsvc.
                search("C48323", null, null, MatchAlgorithm.CODE_EXACT,
                false, false);
			while(itr.hasNext()){
				ResolvedConceptReference ref = itr.next();
				System.out.println("description: " + ref.getEntityDescription().getContent()):
			}

			//Search for results based on an exact match of the text description of the value set member
			//Also, restrict the search to a given value set designation
			CodingSchemeReference csRef = new CodingSchemeReference();
        	csRef.setCodingScheme("http://evs.nci.nih.gov/valueset/FDA/C54453");
        	csRef.setVersionOrTag(Constructors.createCodingSchemeVersionOrTagFromVersion("0.1.5.1"));
        	ResolvedConceptReferencesIterator itr = assertedVSsvc.search("Black", csRef,  MatchAlgorithm.PROPERTY_EXACT);
			while(itr.hasNext()){
				ResolvedConceptReference ref = itr.next();
				System.out.println("description: " + ref.getEntityDescription().getContent()):
			}
  • No labels