software/test/performance/src/org/LexGrid/LexBIG/example/FindPropsAndAssocForCode.java
//protected boolean printProps(String code, LexBIGService lbSvc, String scheme, CodingSchemeVersionOrTag csvt)

protected boolean printProps(String code, LexBIGService lbSvc, String scheme, CodingSchemeVersionOrTag csvt)
protected boolean printProps ( String code LexBIGService lbSvc String scheme CodingSchemeVersionOrTag csvt )
protected boolean printProps(String code, EVSApplicationService lbSvc, String scheme, CodingSchemeVersionOrTag csvt)
			throws LBException
	{
		ConceptReferenceList crefs =
			ConvenienceMethods
				.createConceptReferenceList(new String[] { code }, scheme);
/*
		ResolvedConceptReferenceList matches =
			lbSvc.getCodingSchemeConcepts(scheme, csvt)
				.restrictToStatus(ActiveOption.ALL, null)
				.restrictToCodes(crefs).resolveToList(null,null,null, 1);
*/
        CodedNodeSet cns = lbSvc.getCodingSchemeConcepts(scheme, csvt);
        cns = cns.restrictToStatus(ActiveOption.ALL, null);
        cns = cns.restrictToCodes(crefs);
		ResolvedConceptReferenceList matches =cns.resolveToList(null,null,null, 1);
		if (matches.getResolvedConceptReferenceCount() > 0) {
			ResolvedConceptReference ref =
				(ResolvedConceptReference) matches
					.enumerateResolvedConceptReference().nextElement();
			Concept entry = ref.getReferencedEntry();
			ConceptProperty[] props = entry.getConceptProperty();
			for (int i = 0; i < props.length; i++) {
				Property prop = props[i];
				Util.displayMessage(new StringBuffer()
					.append("\tProperty name: ").append(prop.getPropertyName())
					.append(" text: ").append(prop.getText().getContent())
					.toString());
			}
		} else {
			Util.displayMessage("No match found!");
			return false;
		}
		return true;
	}
protected boolean printProps ( String code , EVSApplicationService lbSvc , String scheme , CodingSchemeVersionOrTag csvt ) throws LBException { ConceptReferenceList crefs = ConvenienceMethods . createConceptReferenceList ( new String [ ] { code } , scheme ) ; /*
		ResolvedConceptReferenceList matches =
			lbSvc.getCodingSchemeConcepts(scheme, csvt)
				.restrictToStatus(ActiveOption.ALL, null)
				.restrictToCodes(crefs).resolveToList(null,null,null, 1);
*/ CodedNodeSet cns = lbSvc . getCodingSchemeConcepts ( scheme , csvt ) ; cns = cns . restrictToStatus ( ActiveOption . ALL , null ) ; cns = cns . restrictToCodes ( crefs ) ; ResolvedConceptReferenceList matches = cns . resolveToList ( null , null , null , 1 ) ; if ( matches . getResolvedConceptReferenceCount ( ) > 0 ) { ResolvedConceptReference ref = ( ResolvedConceptReference ) matches . enumerateResolvedConceptReference ( ) . nextElement ( ) ; Concept entry = ref . getReferencedEntry ( ) ; ConceptProperty [ ] props = entry . getConceptProperty ( ) ; for ( int i = 0 ; i < props . length ; i ++ ) { Property prop = props [ i ] ; Util . displayMessage ( new StringBuffer ( ) . append ( "\tProperty name: " ) . append ( prop . getPropertyName ( ) ) . append ( " text: " ) . append ( prop . getText ( ) . getContent ( ) ) . toString ( ) ) ; } } else { Util . displayMessage ( "No match found!" ) ; return false ; } return true ; }
protected boolean printProps(String code, LexBIGService lbSvc, String scheme, CodingSchemeVersionOrTag csvt)
protected boolean printProps ( String code LexBIGService lbSvc String scheme CodingSchemeVersionOrTag csvt )
// Perform the query ...
 // Analyze the result ...
