software/test/performance/src/org/LexGrid/LexBIG/example/FindUMLSContextsForCUI.java
/**
	 * Display name and description information for the given cui.
	 * @param code
	 * @param lbSvc
	 * @param scheme
	 * @param csvt
	 * @return A fully resolved concept reference for the code.
	 * @throws LBException
	 */
Display name and description information for the given cui.
Display name and description information for the given cui .
protected ResolvedConceptReference printCode(String cui, EVSApplicationService lbSvc, String scheme, CodingSchemeVersionOrTag csvt)
			throws LBException
	{
		CodedNodeSet cns = lbSvc.getCodingSchemeConcepts(scheme, csvt);
		cns.restrictToMatchingProperties(
				ConvenienceMethods.createLocalNameList("UMLS_CUI"),
				new PropertyType[] {PropertyType.GENERIC},
				cui,
				"exactMatch",
				null);
		ResolvedConceptReferenceList cnsList = cns.resolveToList(
				null, 
				null, 
				new PropertyType[] {PropertyType.PRESENTATION}, 
				1);
		if (cnsList.getResolvedConceptReferenceCount() == 0) {
			Util.displayMessage("Unable to find code for CUI = '" + cui + "'");
			return null;
		}
		ResolvedConceptReference rcr = cnsList.getResolvedConceptReference(0);
		Util.displayMessage("Concept code: " + rcr.getConceptCode());
		Util.displayMessage("Description : " + rcr.getEntityDescription().getContent());
		return rcr;
	}
protected ResolvedConceptReference printCode ( String cui , EVSApplicationService lbSvc , String scheme , CodingSchemeVersionOrTag csvt ) throws LBException { CodedNodeSet cns = lbSvc . getCodingSchemeConcepts ( scheme , csvt ) ; cns . restrictToMatchingProperties ( ConvenienceMethods . createLocalNameList ( "UMLS_CUI" ) , new PropertyType [ ] { PropertyType . GENERIC } , cui , "exactMatch" , null ) ; ResolvedConceptReferenceList cnsList = cns . resolveToList ( null , null , new PropertyType [ ] { PropertyType . PRESENTATION } , 1 ) ; if ( cnsList . getResolvedConceptReferenceCount ( ) == 0 ) { Util . displayMessage ( "Unable to find code for CUI = '" + cui + "'" ) ; return null ; } ResolvedConceptReference rcr = cnsList . getResolvedConceptReference ( 0 ) ; Util . displayMessage ( "Concept code: " + rcr . getConceptCode ( ) ) ; Util . displayMessage ( "Description : " + rcr . getEntityDescription ( ) . getContent ( ) ) ; return rcr ; }
Display name and description information for the given cui.
Display name and description information for the given cui .
// Locate the matching concept ...
 // sort options
 // property names
 // property types
