org.LexGrid.LexBIG.example
Class ListHierarchyPathToRoot

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

public class ListHierarchyPathToRoot
extends java.lang.Object

Example showing how to determine and display paths from a given concept back to defined root nodes through any hierarchies registered for the coding scheme. This program accepts one parameter (required), indicating the code to evaluate. BACKGROUND: From a database perspective, LexBIG stores relationships internally in a forward direction, source to target. Due to differences in source formats, however, a wide variety of associations may be used ('PAR', 'CHD', 'isa', 'hasSubtype', etc). In addition, the direction of navigation may vary ('isa' expands in a reverse direction whereas 'hasSubtype' expands in a forward direction. The intent of the getHierarchy* methods on the LexBIGServiceConvenienceMethods interface is to simplify the process of hierarchy discovery and navigation. These methods significantly reduce the need to understand conventions for root nodes, associations, and direction of navigation for a specific source format.


Constructor Summary
ListHierarchyPathToRoot()
           
 
Method Summary
static void main(java.lang.String[] args)
          Entry point for processing.
protected  void printChain(Association assoc, int depth)
          Displays the given concept chain, taking into account any branches that might be imbedded.
 void run(java.lang.String code)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ListHierarchyPathToRoot

public ListHierarchyPathToRoot()
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)
         throws LBException
Throws:
LBException

printChain

protected void printChain(Association assoc,
                          int depth)
                   throws LBException
Displays the given concept chain, taking into account any branches that might be imbedded.

Parameters:
assoc -
depth -
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.