org.LexGrid.LexBIG.Impl
Class LexEVSAuthoringServiceImpl

java.lang.Object
  extended by org.LexGrid.LexBIG.Impl.LexEVSAuthoringServiceImpl
All Implemented Interfaces:
LexEVSAuthoringService

public class LexEVSAuthoringServiceImpl
extends java.lang.Object
implements LexEVSAuthoringService

Author:
Scott Bauer

Field Summary
static ChangeType CHANGE_TYPE
           
static java.lang.String CODING_SCHEME_NAME
           
static java.lang.String CODING_SCHEME_URI
           
static java.lang.String CONTAINER_NAME
           
static java.lang.String DEFAULT_LANGUAGE
           
static java.lang.String DEFAULT_MAPPING_NAME
           
static java.lang.String FORMAL_NAME
           
static boolean IS_MAPPING
           
static java.util.List<java.lang.String> LOCAL_NAME_LIST
           
static java.lang.Long RELATIVE_ORDER
           
static java.lang.String REPRESENTS_MAPPING_VERSION
           
static java.lang.String REPRESENTS_VERSION
           
static java.lang.String REVISIONID
           
 
Constructor Summary
LexEVSAuthoringServiceImpl()
           
 
Method Summary
protected  boolean associationPredicateExists(java.lang.String associationName, Relations[] relations)
           
protected  EntryState cloneEntryState(EntryState entryState, ChangeType changeType)
           
 boolean codingSchemeExists(CodingSchemeRendering[] codingSchemes, AbsoluteCodingSchemeVersionReference codingScheme)
           
 boolean conceptCodeExists(java.lang.String code, java.lang.String codingSchemeURI, java.lang.String version)
           
 void createAssociationMapping(EntryState entryState, AbsoluteCodingSchemeVersionReference mappingCodingScheme, AbsoluteCodingSchemeVersionReference sourceCodingScheme, AbsoluteCodingSchemeVersionReference targetCodingScheme, AssociationSource[] associationSources, java.lang.String associationType, java.lang.String relationsContainerName, java.util.Date effectiveDate, AssociationQualification[] associationQualifiers, Revision revision, boolean loadEntities)
          Creating a mapping to persist to an existing set of maps in a specified coding scheme If no mapping set exists -- start a new mapping set
 java.lang.String createAssociationPredicate(Revision revision, EntryState entryState, AbsoluteCodingSchemeVersionReference scheme, java.lang.String relationsContainerName, java.lang.String associationName)
          Creates and persists an association predicate (association type).
 AssociationPredicate createAssociationPredicate(java.lang.String associationName, AssociationSource[] assocSources)
          Populates the predicate only -- does not persist.
 AssociationSource createAssociationSource(Revision revision, EntryState entryState, AbsoluteCodingSchemeVersionReference sourceCodeSystemIdentifier, java.lang.String sourceConceptCodeIdentifier, java.lang.String relationsContainerName, java.lang.String associationName, AssociationTarget[] targetList)
          Creates and persists an Association source and target set in a given terminology.
 AssociationTarget createAssociationTarget(EntryState entryState, Versionable versionableData, java.lang.String instanceId, java.lang.Boolean isInferred, java.lang.Boolean isDefined, java.util.List<java.lang.String> usageContextList, java.util.List<AssociationQualification> associationQualifiers, AbsoluteCodingSchemeVersionReference targetCodeSystemIdentifier, java.lang.String targetConceptCodeIdentifier)
          Creates and returns an AssocitionTarget Object Must be created with a source and persisted as a revision Used as a method for creating targets when creating the source..
protected  CodingScheme createDefaultMappingCodingScheme()
           
 EntryState createDefaultMappingsEntryState(java.lang.String revisionId, java.lang.String prevRevisionId)
          Creates and returns an entry state with some preset meta data.
protected  Relations createDefaultRelationsContainer(java.lang.String sourceCodingScheme, java.lang.String sourceCodingSchemeVersion, java.lang.String targetCodingScheme, java.lang.String targetCodingSchemeVersion, java.lang.String associationName, java.lang.String containerName)
           
 void createMappingScheme(CodingScheme mappingSchemeMetadata, AssociationSource[] sourcesAndTargets, java.lang.String sourceCodingScheme, java.lang.String sourceCodingSchemeVersion, java.lang.String targetCodingScheme, java.lang.String targetCodingSchemeVersion, java.lang.String associationName, java.lang.String containerName, java.lang.String revisionId, boolean loadEntities)
          Allows user to control every detail of the creation of a new mapping coding scheme.
 void createMappingWithDefaultValues(AssociationSource[] sourcesAndTargets, java.lang.String sourceCodingScheme, java.lang.String sourceCodingSchemeVersion, java.lang.String targetCodingScheme, java.lang.String targetCodingSchemeVersion, java.lang.String associationName, boolean loadEntities)
          Create a new mapping coding scheme with many coding scheme meta data values preset.
 CodingScheme createMinimalSchemeForRevision(CodingScheme revisedScheme, java.lang.String relationsContainer, java.lang.String associationName, Entity entity, AssociationEntity assocEntity)
           
 Relations createRelationsContainer(EntryState entryState, CodingScheme scheme, java.lang.String containerName, java.util.Date effectiveDate, AbsoluteCodingSchemeVersionReference sourceCodeSystemIdentifier, AbsoluteCodingSchemeVersionReference targetCodeSystemIdentifier, boolean isMapping, java.lang.String associationType, Properties relationProperties)
          Creates and returns an entry state with mapping related data members populated.
protected  AssociationSource createSingleSourceTargetPair(java.lang.String status, boolean isActive, java.lang.String sourceCode, java.lang.String sourceNamespace, java.lang.String targetCode, java.lang.String targetNamespace, java.lang.String instanceId, EntryState entryState)
           
protected  SupportedStatus createSupportedStatus(java.lang.String status)
           
 boolean doesAssociationExist(CodingScheme scheme, java.lang.String relationContainerName, java.lang.String associationName, java.lang.String sourceCode, java.lang.String sourceNamespace, java.lang.String targetCode, java.lang.String targetNamespace)
           
protected  boolean doesStatusExist(CodingScheme scheme, java.lang.String status)
           
protected  void enforcePreviousRevisionId(CodingScheme revisedScheme, EntryState entryState)
           
 NameAndValue getAssociationPairFromMappings(Mappings mappings, java.lang.String associationName)
           
protected  AssociationPredicate getAssociationPredicate(Relations relation, java.lang.String associationName)
           
 CodingScheme getCodingSchemeMetaData(AbsoluteCodingSchemeVersionReference reference)
           
 java.lang.String getCodingSchemeNameForMininumReference(AbsoluteCodingSchemeVersionReference reference)
           
 java.lang.String getCodingSchemeNameForNamespace(java.lang.String namespace, Mappings mappings)
           
 java.lang.String getCodingSchemeNamespace(CodingScheme scheme, java.lang.String URI)
           
 CodingSchemeRendering[] getCodingSchemes()
           
protected  Entity getEntity(java.lang.String code, java.lang.String codingSchemeURI, java.lang.String representsVersion)
           
protected  LgLoggerIF getLogger()
           
protected  Mappings getMappingsFromScheme(java.lang.String codingScheme, java.lang.String version)
           
 Relations getRelations(CodingScheme scheme, java.lang.String relationsContainerName)
           
protected  SupportedAssociation getSupportedAssociationFromMappings(Mappings mappings, java.lang.String associationName)
           
protected  SupportedCodingScheme getSupportedCodingSchemeFromMappings(Mappings mappings, java.lang.String scheme)
           
protected  SupportedContainerName getSupportedContainerNameFromMappings(Mappings mappings, java.lang.String relationsContainerName)
           
protected  SupportedNamespace getSupportedNameSpaceFromMappings(Mappings mappings, java.lang.String codingScheme)
           
protected  boolean isMappingScheme(CodingScheme scheme)
           
 AssociationSource mapTargetsToSource(EntryState entryState, CodingScheme scheme, AssociationSource source, AbsoluteCodingSchemeVersionReference codingSchemeIdentifier, java.lang.String relationsContainerName, java.lang.String associationName, AssociationTarget[] associationTargets)
          Utility method Checks for the existence of a set of targets for a given target.
 CodingScheme populateCodingScheme(java.lang.String codingSchemeName, java.lang.String codingSchemeURI, java.lang.String formalName, java.lang.String defaultLanguage, long approxNumConcepts, java.lang.String representsVersion, java.util.List<java.lang.String> localNameList, java.util.List<Source> sourceList, Text copyright, Mappings mappings, Properties properties, Entities entities, java.util.List<Relations> relationsList)
           
protected  Entities processEntitiesForExistingMappingScheme(CodingScheme existingMap, AssociationSource[] sourcesAndTargets, java.lang.String sourceScheme, java.lang.String sourceVersion, java.lang.String targetScheme, java.lang.String targetVersion, EntryState entryState)
           
protected  Entities processMappingEntities(AssociationSource[] sourcesAndTargets, java.lang.String sourceScheme, java.lang.String sourceVersion, java.lang.String targetScheme, java.lang.String targetVersion, EntryState entryState)
           
protected  Mappings processMappingsForAssociationMappings(java.lang.String sourceCodingScheme, java.lang.String sourceCodingSchemeVersion, java.lang.String targetCodingScheme, java.lang.String targetCodingSchemeVersion, java.lang.String associationName, java.lang.String CodingSchemeURI, java.lang.String relationsContainerName)
           
protected  Mappings processMappingsForExistingCodingScheme(CodingScheme existingScheme, java.lang.String sourceCodingScheme, java.lang.String sourceCodingSchemeVersion, java.lang.String targetCodingScheme, java.lang.String targetCodingSchemeVersion, java.lang.String associationName, java.lang.String relationsContainerName)
           
protected  Entity retrieveEntityForExistingMappingScheme(CodingScheme mappingScheme, java.lang.String mappedCode, java.lang.String namespace, java.lang.String mappedScheme, java.lang.String mappedVersion, EntryState entryState)
           
protected  Entity retrieveEntityForMappingScheme(java.lang.String code, java.lang.String codingScheme, java.lang.String version, EntryState entryState)
           
protected  void setAssociationEntryStates(AssociationSource[] sourcesAndTargets, EntryState entryState)
           
 boolean setAssociationStatus(Revision revision, EntryState entryState, AbsoluteCodingSchemeVersionReference scheme, java.lang.String relationsContainer, java.lang.String associationName, java.lang.String sourceCode, java.lang.String sourceNamespace, java.lang.String targetCode, java.lang.String targetNamespace, java.lang.String instanceId, java.lang.String status, boolean isActive)
          Updates the status of an association allowing it to be filtered depending status and isActive parameters.
 boolean supportedAssociationExists(CodingScheme scheme, java.lang.String associationName)
           
 boolean supportedAssociationQualifiersExists(CodingScheme scheme, AssociationQualification[] assocQualifiers)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CODING_SCHEME_NAME

public static java.lang.String CODING_SCHEME_NAME

CODING_SCHEME_URI

public static java.lang.String CODING_SCHEME_URI

FORMAL_NAME

public static java.lang.String FORMAL_NAME

DEFAULT_LANGUAGE

public static java.lang.String DEFAULT_LANGUAGE

REPRESENTS_VERSION

public static java.lang.String REPRESENTS_VERSION

LOCAL_NAME_LIST

public static java.util.List<java.lang.String> LOCAL_NAME_LIST

REVISIONID

public static java.lang.String REVISIONID

CONTAINER_NAME

public static java.lang.String CONTAINER_NAME

REPRESENTS_MAPPING_VERSION

public static java.lang.String REPRESENTS_MAPPING_VERSION

IS_MAPPING

public static boolean IS_MAPPING

DEFAULT_MAPPING_NAME

public static java.lang.String DEFAULT_MAPPING_NAME

CHANGE_TYPE

public static ChangeType CHANGE_TYPE

RELATIVE_ORDER

public static java.lang.Long RELATIVE_ORDER
Constructor Detail

LexEVSAuthoringServiceImpl

public LexEVSAuthoringServiceImpl()
Method Detail

createAssociationMapping

public void createAssociationMapping(EntryState entryState,
                                     AbsoluteCodingSchemeVersionReference mappingCodingScheme,
                                     AbsoluteCodingSchemeVersionReference sourceCodingScheme,
                                     AbsoluteCodingSchemeVersionReference targetCodingScheme,
                                     AssociationSource[] associationSources,
                                     java.lang.String associationType,
                                     java.lang.String relationsContainerName,
                                     java.util.Date effectiveDate,
                                     AssociationQualification[] associationQualifiers,
                                     Revision revision,
                                     boolean loadEntities)
                              throws LBException
Description copied from interface: LexEVSAuthoringService
Creating a mapping to persist to an existing set of maps in a specified coding scheme If no mapping set exists -- start a new mapping set

Specified by:
createAssociationMapping in interface LexEVSAuthoringService
Throws:
LBException

createMappingWithDefaultValues

public void createMappingWithDefaultValues(AssociationSource[] sourcesAndTargets,
                                           java.lang.String sourceCodingScheme,
                                           java.lang.String sourceCodingSchemeVersion,
                                           java.lang.String targetCodingScheme,
                                           java.lang.String targetCodingSchemeVersion,
                                           java.lang.String associationName,
                                           boolean loadEntities)
                                    throws LBException
Description copied from interface: LexEVSAuthoringService
Create a new mapping coding scheme with many coding scheme meta data values preset.

Specified by:
createMappingWithDefaultValues in interface LexEVSAuthoringService
Throws:
LBException

createMappingScheme

public void createMappingScheme(CodingScheme mappingSchemeMetadata,
                                AssociationSource[] sourcesAndTargets,
                                java.lang.String sourceCodingScheme,
                                java.lang.String sourceCodingSchemeVersion,
                                java.lang.String targetCodingScheme,
                                java.lang.String targetCodingSchemeVersion,
                                java.lang.String associationName,
                                java.lang.String containerName,
                                java.lang.String revisionId,
                                boolean loadEntities)
                         throws LBException
Description copied from interface: LexEVSAuthoringService
Allows user to control every detail of the creation of a new mapping coding scheme.

Specified by:
createMappingScheme in interface LexEVSAuthoringService
Throws:
LBException

createRelationsContainer

public Relations createRelationsContainer(EntryState entryState,
                                          CodingScheme scheme,
                                          java.lang.String containerName,
                                          java.util.Date effectiveDate,
                                          AbsoluteCodingSchemeVersionReference sourceCodeSystemIdentifier,
                                          AbsoluteCodingSchemeVersionReference targetCodeSystemIdentifier,
                                          boolean isMapping,
                                          java.lang.String associationType,
                                          Properties relationProperties)
                                   throws LBException
Description copied from interface: LexEVSAuthoringService
Creates and returns an entry state with mapping related data members populated.

Specified by:
createRelationsContainer in interface LexEVSAuthoringService
Returns:
Throws:
LBException

createAssociationPredicate

public AssociationPredicate createAssociationPredicate(java.lang.String associationName,
                                                       AssociationSource[] assocSources)
                                                throws LBException
Description copied from interface: LexEVSAuthoringService
Populates the predicate only -- does not persist.

Specified by:
createAssociationPredicate in interface LexEVSAuthoringService
Returns:
Throws:
LBException

createAssociationSource

public AssociationSource createAssociationSource(Revision revision,
                                                 EntryState entryState,
                                                 AbsoluteCodingSchemeVersionReference sourceCodeSystemIdentifier,
                                                 java.lang.String sourceConceptCodeIdentifier,
                                                 java.lang.String relationsContainerName,
                                                 java.lang.String associationName,
                                                 AssociationTarget[] targetList)
                                          throws LBException
Description copied from interface: LexEVSAuthoringService
Creates and persists an Association source and target set in a given terminology. Does not handle mappings to external sources.

Specified by:
createAssociationSource in interface LexEVSAuthoringService
Returns:
Throws:
LBException

createAssociationTarget

public AssociationTarget createAssociationTarget(EntryState entryState,
                                                 Versionable versionableData,
                                                 java.lang.String instanceId,
                                                 java.lang.Boolean isInferred,
                                                 java.lang.Boolean isDefined,
                                                 java.util.List<java.lang.String> usageContextList,
                                                 java.util.List<AssociationQualification> associationQualifiers,
                                                 AbsoluteCodingSchemeVersionReference targetCodeSystemIdentifier,
                                                 java.lang.String targetConceptCodeIdentifier)
                                          throws LBException
Description copied from interface: LexEVSAuthoringService
Creates and returns an AssocitionTarget Object Must be created with a source and persisted as a revision Used as a method for creating targets when creating the source..

Specified by:
createAssociationTarget in interface LexEVSAuthoringService
Returns:
Throws:
LBException

setAssociationStatus

public boolean setAssociationStatus(Revision revision,
                                    EntryState entryState,
                                    AbsoluteCodingSchemeVersionReference scheme,
                                    java.lang.String relationsContainer,
                                    java.lang.String associationName,
                                    java.lang.String sourceCode,
                                    java.lang.String sourceNamespace,
                                    java.lang.String targetCode,
                                    java.lang.String targetNamespace,
                                    java.lang.String instanceId,
                                    java.lang.String status,
                                    boolean isActive)
                             throws LBException
Description copied from interface: LexEVSAuthoringService
Updates the status of an association allowing it to be filtered depending status and isActive parameters.

Specified by:
setAssociationStatus in interface LexEVSAuthoringService
Returns:
Throws:
LBException

createDefaultMappingsEntryState

public EntryState createDefaultMappingsEntryState(java.lang.String revisionId,
                                                  java.lang.String prevRevisionId)
Description copied from interface: LexEVSAuthoringService
Creates and returns an entry state with some preset meta data.

Specified by:
createDefaultMappingsEntryState in interface LexEVSAuthoringService
Returns:

mapTargetsToSource

public AssociationSource mapTargetsToSource(EntryState entryState,
                                            CodingScheme scheme,
                                            AssociationSource source,
                                            AbsoluteCodingSchemeVersionReference codingSchemeIdentifier,
                                            java.lang.String relationsContainerName,
                                            java.lang.String associationName,
                                            AssociationTarget[] associationTargets)
                                     throws LBException
Description copied from interface: LexEVSAuthoringService
Utility method Checks for the existence of a set of targets for a given target. If they don't already exist in the coding scheme versioning elements are applied

Specified by:
mapTargetsToSource in interface LexEVSAuthoringService
Returns:
Throws:
LBException

createAssociationPredicate

public java.lang.String createAssociationPredicate(Revision revision,
                                                   EntryState entryState,
                                                   AbsoluteCodingSchemeVersionReference scheme,
                                                   java.lang.String relationsContainerName,
                                                   java.lang.String associationName)
                                            throws LBException
Description copied from interface: LexEVSAuthoringService
Creates and persists an association predicate (association type).

Specified by:
createAssociationPredicate in interface LexEVSAuthoringService
Returns:
Throws:
LBException

getAssociationPredicate

protected AssociationPredicate getAssociationPredicate(Relations relation,
                                                       java.lang.String associationName)
                                                throws LBException
Throws:
LBException

getCodingSchemeNameForMininumReference

public java.lang.String getCodingSchemeNameForMininumReference(AbsoluteCodingSchemeVersionReference reference)
                                                        throws LBException
Throws:
LBException

createMinimalSchemeForRevision

public CodingScheme createMinimalSchemeForRevision(CodingScheme revisedScheme,
                                                   java.lang.String relationsContainer,
                                                   java.lang.String associationName,
                                                   Entity entity,
                                                   AssociationEntity assocEntity)
                                            throws LBException
Throws:
LBException

createSingleSourceTargetPair

protected AssociationSource createSingleSourceTargetPair(java.lang.String status,
                                                         boolean isActive,
                                                         java.lang.String sourceCode,
                                                         java.lang.String sourceNamespace,
                                                         java.lang.String targetCode,
                                                         java.lang.String targetNamespace,
                                                         java.lang.String instanceId,
                                                         EntryState entryState)

createSupportedStatus

protected SupportedStatus createSupportedStatus(java.lang.String status)

doesStatusExist

protected boolean doesStatusExist(CodingScheme scheme,
                                  java.lang.String status)

cloneEntryState

protected EntryState cloneEntryState(EntryState entryState,
                                     ChangeType changeType)

doesAssociationExist

public boolean doesAssociationExist(CodingScheme scheme,
                                    java.lang.String relationContainerName,
                                    java.lang.String associationName,
                                    java.lang.String sourceCode,
                                    java.lang.String sourceNamespace,
                                    java.lang.String targetCode,
                                    java.lang.String targetNamespace)

getRelations

public Relations getRelations(CodingScheme scheme,
                              java.lang.String relationsContainerName)

getAssociationPairFromMappings

public NameAndValue getAssociationPairFromMappings(Mappings mappings,
                                                   java.lang.String associationName)

getLogger

protected LgLoggerIF getLogger()

getCodingSchemes

public CodingSchemeRendering[] getCodingSchemes()

enforcePreviousRevisionId

protected void enforcePreviousRevisionId(CodingScheme revisedScheme,
                                         EntryState entryState)

getEntity

protected Entity getEntity(java.lang.String code,
                           java.lang.String codingSchemeURI,
                           java.lang.String representsVersion)
                    throws LBException
Throws:
LBException

associationPredicateExists

protected boolean associationPredicateExists(java.lang.String associationName,
                                             Relations[] relations)

getCodingSchemeMetaData

public CodingScheme getCodingSchemeMetaData(AbsoluteCodingSchemeVersionReference reference)
                                     throws LBException
Throws:
LBException

setAssociationEntryStates

protected void setAssociationEntryStates(AssociationSource[] sourcesAndTargets,
                                         EntryState entryState)

isMappingScheme

protected boolean isMappingScheme(CodingScheme scheme)

processMappingsForExistingCodingScheme

protected Mappings processMappingsForExistingCodingScheme(CodingScheme existingScheme,
                                                          java.lang.String sourceCodingScheme,
                                                          java.lang.String sourceCodingSchemeVersion,
                                                          java.lang.String targetCodingScheme,
                                                          java.lang.String targetCodingSchemeVersion,
                                                          java.lang.String associationName,
                                                          java.lang.String relationsContainerName)
                                                   throws java.lang.IndexOutOfBoundsException,
                                                          LBException
Throws:
java.lang.IndexOutOfBoundsException
LBException

getSupportedAssociationFromMappings

protected SupportedAssociation getSupportedAssociationFromMappings(Mappings mappings,
                                                                   java.lang.String associationName)

getSupportedContainerNameFromMappings

protected SupportedContainerName getSupportedContainerNameFromMappings(Mappings mappings,
                                                                       java.lang.String relationsContainerName)

processMappingsForAssociationMappings

protected Mappings processMappingsForAssociationMappings(java.lang.String sourceCodingScheme,
                                                         java.lang.String sourceCodingSchemeVersion,
                                                         java.lang.String targetCodingScheme,
                                                         java.lang.String targetCodingSchemeVersion,
                                                         java.lang.String associationName,
                                                         java.lang.String CodingSchemeURI,
                                                         java.lang.String relationsContainerName)
                                                  throws java.lang.IndexOutOfBoundsException,
                                                         LBException
Throws:
java.lang.IndexOutOfBoundsException
LBException

getSupportedNameSpaceFromMappings

protected SupportedNamespace getSupportedNameSpaceFromMappings(Mappings mappings,
                                                               java.lang.String codingScheme)
                                                        throws LBException
Throws:
LBException

getSupportedCodingSchemeFromMappings

protected SupportedCodingScheme getSupportedCodingSchemeFromMappings(Mappings mappings,
                                                                     java.lang.String scheme)
                                                              throws LBException
Throws:
LBException

getMappingsFromScheme

protected Mappings getMappingsFromScheme(java.lang.String codingScheme,
                                         java.lang.String version)

processMappingEntities

protected Entities processMappingEntities(AssociationSource[] sourcesAndTargets,
                                          java.lang.String sourceScheme,
                                          java.lang.String sourceVersion,
                                          java.lang.String targetScheme,
                                          java.lang.String targetVersion,
                                          EntryState entryState)
                                   throws LBException
Throws:
LBException

processEntitiesForExistingMappingScheme

protected Entities processEntitiesForExistingMappingScheme(CodingScheme existingMap,
                                                           AssociationSource[] sourcesAndTargets,
                                                           java.lang.String sourceScheme,
                                                           java.lang.String sourceVersion,
                                                           java.lang.String targetScheme,
                                                           java.lang.String targetVersion,
                                                           EntryState entryState)
                                                    throws LBException
Throws:
LBException

retrieveEntityForExistingMappingScheme

protected Entity retrieveEntityForExistingMappingScheme(CodingScheme mappingScheme,
                                                        java.lang.String mappedCode,
                                                        java.lang.String namespace,
                                                        java.lang.String mappedScheme,
                                                        java.lang.String mappedVersion,
                                                        EntryState entryState)
                                                 throws LBException
Throws:
LBException

retrieveEntityForMappingScheme

protected Entity retrieveEntityForMappingScheme(java.lang.String code,
                                                java.lang.String codingScheme,
                                                java.lang.String version,
                                                EntryState entryState)
                                         throws LBException
Throws:
LBException

createDefaultMappingCodingScheme

protected CodingScheme createDefaultMappingCodingScheme()

createDefaultRelationsContainer

protected Relations createDefaultRelationsContainer(java.lang.String sourceCodingScheme,
                                                    java.lang.String sourceCodingSchemeVersion,
                                                    java.lang.String targetCodingScheme,
                                                    java.lang.String targetCodingSchemeVersion,
                                                    java.lang.String associationName,
                                                    java.lang.String containerName)

populateCodingScheme

public CodingScheme populateCodingScheme(java.lang.String codingSchemeName,
                                         java.lang.String codingSchemeURI,
                                         java.lang.String formalName,
                                         java.lang.String defaultLanguage,
                                         long approxNumConcepts,
                                         java.lang.String representsVersion,
                                         java.util.List<java.lang.String> localNameList,
                                         java.util.List<Source> sourceList,
                                         Text copyright,
                                         Mappings mappings,
                                         Properties properties,
                                         Entities entities,
                                         java.util.List<Relations> relationsList)
                                  throws LBException
Throws:
LBException

codingSchemeExists

public boolean codingSchemeExists(CodingSchemeRendering[] codingSchemes,
                                  AbsoluteCodingSchemeVersionReference codingScheme)

supportedAssociationExists

public boolean supportedAssociationExists(CodingScheme scheme,
                                          java.lang.String associationName)

supportedAssociationQualifiersExists

public boolean supportedAssociationQualifiersExists(CodingScheme scheme,
                                                    AssociationQualification[] assocQualifiers)

getCodingSchemeNamespace

public java.lang.String getCodingSchemeNamespace(CodingScheme scheme,
                                                 java.lang.String URI)

getCodingSchemeNameForNamespace

public java.lang.String getCodingSchemeNameForNamespace(java.lang.String namespace,
                                                        Mappings mappings)

conceptCodeExists

public boolean conceptCodeExists(java.lang.String code,
                                 java.lang.String codingSchemeURI,
                                 java.lang.String version)
                          throws LBException
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.