org.LexGrid.LexBIG.Impl.loaders
Class HL7LoaderImpl

java.lang.Object
  extended by org.LexGrid.LexBIG.Impl.Extensions.AbstractExtendable
      extended by org.LexGrid.LexBIG.Impl.loaders.BaseLoader
          extended by org.LexGrid.LexBIG.Impl.loaders.HL7LoaderImpl
All Implemented Interfaces:
java.io.Serializable, Extendable, HL7_Loader, Loader, StatusReporter

public class HL7LoaderImpl
extends BaseLoader
implements HL7_Loader

This loader loads a series of coding schemes to a LexBIG service according to a mapping of HL7 RIM database elements to LexBIG/LexGrid.

Author:
Scott Bauer, Craig Stancl
See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class org.LexGrid.LexBIG.Impl.loaders.BaseLoader
BaseLoader.DoConversion
 
Field Summary
 java.lang.String metaDataFileLocation
           
 
Fields inherited from class org.LexGrid.LexBIG.Impl.loaders.BaseLoader
ASYNC_OPTION, FAIL_ON_ERROR_OPTION, inUse, LOADER_POST_PROCESSOR_OPTION, LOADER_PREFERENCE_FILE_OPTION, MANIFEST_FILE_OPTION, SUPPLEMENT_OPTION
 
Fields inherited from interface org.LexGrid.LexBIG.Extensions.Load.HL7_Loader
description, name
 
Constructor Summary
HL7LoaderImpl()
           
 
Method Summary
protected  ExtensionDescription buildExtensionDescription()
          Builds the extension description.
protected  OptionHolder declareAllowedOptions(OptionHolder holder)
           
protected  URNVersionPair[] doLoad()
           
protected  LgLoggerIF getLogger()
           
 java.lang.String getMetaDataFileLocation()
           
 OntologyFormat getOntologyFormat()
          Return the ontology format the loader can handle
 void load(java.lang.String dbName, boolean stopOnErrors, boolean async)
           
 void setMetaDataFileLocation(java.lang.String metaDataFileLocation)
           
 void validate(java.lang.String dbName, int validationLevel)
           
 
Methods inherited from class org.LexGrid.LexBIG.Impl.loaders.BaseLoader
addBooleanOptionValue, baseLoad, buildRootNode, clearLog, constructVersionPairsFromCodingSchemes, createCachingMessageDirectorIF, createDefaultInserter, createDefaultInserter, doesOptionExist, doIndex, doPostProcessing, doTransitiveAndIndex, doTransitiveTable, getAbsoluteCodingSchemeVersionReferenceFromOptionString, getCodingSchemeManifest, getCodingSchemeManifestURI, getCodingSchemeReferences, getDescription, getLoaderPreferences, getLog, getManifestUtil, getMessageDirector, getName, getOptions, getPostProcessor, getProvider, getResourceUri, getStatus, getStringFromURI, getVersion, isDoApplyPostLoadManifest, isDoComputeTransitiveClosure, isDoIndexing, isDoRegister, isDoRemoveOnFailure, isInUse, load, lock, persistCodingSchemeToDatabase, persistCodingSchemeToDatabase, register, register, setCachingMessageDirectorIF, setCodingSchemeManifest, setCodingSchemeManifestURI, setCodingSchemeReferences, setDoApplyPostLoadManifest, setDoComputeTransitiveClosure, setDoIndexing, setDoRegister, setDoRemoveOnFailure, setInUse, setLoaderPreferences, setLoaderPreferences, setManifestUtil, setOptions, setResourceUri, setStatus, unlock, urnVersionPairToAbsoluteCodingSchemeVersionReference
 
Methods inherited from class org.LexGrid.LexBIG.Impl.Extensions.AbstractExtendable
getExtensionDescription
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.LexGrid.LexBIG.Extensions.Load.Loader
clearLog, getCodingSchemeManifest, getCodingSchemeManifestURI, getCodingSchemeReferences, getLoaderPreferences, getLog, getOptions, getStatus, load, setCodingSchemeManifest, setCodingSchemeManifestURI, setLoaderPreferences, setLoaderPreferences
 
Methods inherited from interface org.LexGrid.LexBIG.Extensions.Extendable
getDescription, getName, getProvider, getVersion
 

Field Detail

metaDataFileLocation

public java.lang.String metaDataFileLocation
Constructor Detail

HL7LoaderImpl

public HL7LoaderImpl()
Method Detail

getLogger

protected LgLoggerIF getLogger()
Overrides:
getLogger in class BaseLoader

load

public void load(java.lang.String dbName,
                 boolean stopOnErrors,
                 boolean async)
          throws LBParameterException,
                 LBInvocationException
Specified by:
load in interface HL7_Loader
Parameters:
dbName - Location of the source Access database. Example: C:/rim0216d-rim-vocab.mdb
stopOnErrors - True means stop if any load error is detected. False means attempt to load what can be loaded if recoverable errors are encountered.
async - Flag controlling whether load occurs in the calling thread. If true, the load will occur in a separate asynchronous process. If false, this method blocks until the load operation completes or fails. Regardless of setting, the getStatus and getLog calls are used to fetch results.
Throws:
LBParameterException
LBInvocationException

validate

public void validate(java.lang.String dbName,
                     int validationLevel)
              throws LBException
Specified by:
validate in interface HL7_Loader
Parameters:
dbName - Location of the source Access database. Example: C:/rim0216d-rim-vocab.mdb
validationLevel - Loader-specific level of validation; 0 = verify that the database and target terminologies are present and accessible.
Throws:
LBException

declareAllowedOptions

protected OptionHolder declareAllowedOptions(OptionHolder holder)
Specified by:
declareAllowedOptions in class BaseLoader

doLoad

protected URNVersionPair[] doLoad()
                           throws CodingSchemeAlreadyLoadedException
Specified by:
doLoad in class BaseLoader
Throws:
CodingSchemeAlreadyLoadedException

buildExtensionDescription

protected ExtensionDescription buildExtensionDescription()
Description copied from class: AbstractExtendable
Builds the extension description.

Specified by:
buildExtensionDescription in class AbstractExtendable
Returns:
the extension description

getMetaDataFileLocation

public java.lang.String getMetaDataFileLocation()

setMetaDataFileLocation

public void setMetaDataFileLocation(java.lang.String metaDataFileLocation)

getOntologyFormat

public OntologyFormat getOntologyFormat()
Description copied from interface: Loader
Return the ontology format the loader can handle

Specified by:
getOntologyFormat in interface Loader
Overrides:
getOntologyFormat in class BaseLoader

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.