org.LexGrid.LexBIG.example
Class FindRelatedCodes

java.lang.Object
  extended by org.LexGrid.LexBIG.example.FindRelatedCodes

public class FindRelatedCodes
extends java.lang.Object

Example showing how to find all concepts codes related to another code with distance 1.


Constructor Summary
FindRelatedCodes()
           
 
Method Summary
static void main(java.lang.String[] args)
          Entry point for processing.
protected  void printFrom(java.lang.String code, java.lang.String relation, LexBIGService lbSvc, java.lang.String scheme, CodingSchemeVersionOrTag csvt)
          Display relations from the given code to other concepts.
protected  void printTo(java.lang.String code, java.lang.String relation, LexBIGService lbSvc, java.lang.String scheme, CodingSchemeVersionOrTag csvt)
          Display relations to the given code from other concepts.
 void run(java.lang.String code, java.lang.String rel)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FindRelatedCodes

public FindRelatedCodes()
Method Detail

main

public static void main(java.lang.String[] args)
Entry point for processing.

Parameters:
args -

run

public void run(java.lang.String code,
                java.lang.String rel)
         throws LBException
Throws:
LBException

printFrom

protected void printFrom(java.lang.String code,
                         java.lang.String relation,
                         LexBIGService lbSvc,
                         java.lang.String scheme,
                         CodingSchemeVersionOrTag csvt)
                  throws LBException
Display relations from the given code to other concepts.

Parameters:
code -
relation -
lbSvc -
scheme -
csvt -
Throws:
LBException

printTo

protected void printTo(java.lang.String code,
                       java.lang.String relation,
                       LexBIGService lbSvc,
                       java.lang.String scheme,
                       CodingSchemeVersionOrTag csvt)
                throws LBException
Display relations to the given code from other concepts.

Parameters:
code -
relation -
lbSvc -
scheme -
csvt -
Throws:
LBException

Copyright: (c) 2004-2006 Mayo Foundation for Medical Education and Research (MFMER). All rights reserved. MAYO, MAYO CLINIC, and the triple-shield Mayo logo are trademarks and service marks of MFMER.