org.LexGrid.LexBIG.example
Class ProfileScheme

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

public class ProfileScheme
extends java.lang.Object

Requires loading valid scheme (must have root node named @ pointing to top nodes) Profiles a coding scheme based on unique URN, version, relation and scheme name. Note: If the URN and version values are unspecified, a list of available coding schemes will be presented for user selection.

     Example: java org.LexGrid.LexBIG.example.ProfileScheme
      -u, --urn &lturn> URN uniquely identifying the code system.
      -v, --version &ltversionId> Version identifier.
 
     Example: java -Xmx1500m -cp lgRuntime.jar
     org.LexGrid.LexBIG.example.ProfileScheme
       -u "urn:oid:2.16.840.1.113883.3.26.1.1" -v "05.09e"
 

Author:
Scott Bauer, Thomas Johnson

Constructor Summary
ProfileScheme()
          Association type defaults to hasSubtype in this constructor
 
Method Summary
static void main(java.lang.String[] args)
           
protected  void printPath(java.util.List<ResolvedConceptReference> path)
          Print the description of concepts in the path, indenting for each represented level.
protected  void profileAssociations(LexBIGService lbs, LexBIGServiceConvenienceMethods lbscm, java.lang.String schemeName, CodingSchemeVersionOrTag csVorT)
           
protected  int profileConcepts(LexBIGService lbs, java.lang.String schemeName, CodingSchemeVersionOrTag csVorT)
           
protected  java.util.List<ResolvedConceptReference> profileHierarchy(LexBIGService lbs, LexBIGServiceConvenienceMethods lbscm, java.lang.String schemeName, CodingSchemeVersionOrTag csVorT, java.lang.String hID, ResolvedConceptReference root, int level)
          Recursive traversal method gauges maximum depth, average depth
 void run(java.lang.String[] args)
          Primary entry point for the program.
protected  void runReport(LexBIGService lbs, CodingSchemeSummary css)
          Initiates profiling of different code system attributes and displays a report for the caller.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ProfileScheme

public ProfileScheme()
Association type defaults to hasSubtype in this constructor

Method Detail

main

public static void main(java.lang.String[] args)
Parameters:
args -

run

public void run(java.lang.String[] args)
         throws java.lang.Exception
Primary entry point for the program.

Parameters:
args -
Throws:
java.lang.Exception

runReport

protected void runReport(LexBIGService lbs,
                         CodingSchemeSummary css)
                  throws LBException
Initiates profiling of different code system attributes and displays a report for the caller.

Throws:
LBException

profileConcepts

protected int profileConcepts(LexBIGService lbs,
                              java.lang.String schemeName,
                              CodingSchemeVersionOrTag csVorT)
                       throws LBException
Parameters:
lbs - - service object
schemeName - - coding scheme name
csVorT - - coding scheme version or tag (version in this case)
Returns:
the number of enumerated concepts
Throws:
LBException

profileAssociations

protected void profileAssociations(LexBIGService lbs,
                                   LexBIGServiceConvenienceMethods lbscm,
                                   java.lang.String schemeName,
                                   CodingSchemeVersionOrTag csVorT)
                            throws LBException
Parameters:
lbs - - service context
lbscm - - convenience methods
csVorT - - coding scheme version or tag (version in this case)
Throws:
LBException

profileHierarchy

protected java.util.List<ResolvedConceptReference> profileHierarchy(LexBIGService lbs,
                                                                    LexBIGServiceConvenienceMethods lbscm,
                                                                    java.lang.String schemeName,
                                                                    CodingSchemeVersionOrTag csVorT,
                                                                    java.lang.String hID,
                                                                    ResolvedConceptReference root,
                                                                    int level)
                                                             throws LBException
Recursive traversal method gauges maximum depth, average depth

Parameters:
lbs - - service context
lbscm - - convenience methods
schemeName - - coding scheme name
csVorT - - coding scheme version or tag (version in this case)
hID - - hierarchy ID
root - - concept to navigate from
level - - current level of recursion
Returns:
references representing deepest path in branch (root first)
Throws:
LBException

printPath

protected void printPath(java.util.List<ResolvedConceptReference> path)
Print the description of concepts in the path, indenting for each represented level.

Parameters:
path - Chain of concept references, root first.

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.