org.LexGrid.LexBIG.Impl.loaders
Class HL7LoaderImpl
java.lang.Object
org.LexGrid.LexBIG.Impl.Extensions.AbstractExtendable
org.LexGrid.LexBIG.Impl.loaders.BaseLoader
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
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 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 |
metaDataFileLocation
public java.lang.String metaDataFileLocation
HL7LoaderImpl
public HL7LoaderImpl()
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.mdbstopOnErrors
- 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.mdbvalidationLevel
- 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