org.lexgrid.valuesets.impl
Class LexEVSValueSetDefinitionServicesImpl

java.lang.Object
  extended by org.lexgrid.valuesets.impl.LexEVSValueSetDefinitionServicesImpl
All Implemented Interfaces:
java.io.Serializable, LexEVSValueSetDefinitionServices

public class LexEVSValueSetDefinitionServicesImpl
extends java.lang.Object
implements LexEVSValueSetDefinitionServices

Implementation of Value Set Definition for LexGrid.

Author:
Sridhar Dwarkanath
See Also:
Serialized Form

Field Summary
protected  MessageDirector md_
           
protected  LoadStatus status_
           
 
Constructor Summary
LexEVSValueSetDefinitionServicesImpl()
           
 
Method Summary
static LexEVSValueSetDefinitionServices defaultInstance()
          Returns a default singleton instance of the service.
 void exportValueSetDefinition(java.net.URI valueSetDefURI, java.lang.String valueSetDefinitionRevisionId, java.lang.String xmlFullPathName, boolean overwrite, boolean failOnAllErrors)
          Export value set definition to LexGrid canonical XML format.
 java.net.URI exportValueSetResolution(java.net.URI valueSetDefinitionURI, java.lang.String valueSetDefinitionRevisionId, java.net.URI exportDestination, AbsoluteCodingSchemeVersionReferenceList csVersionList, java.lang.String csVersionTag, boolean overwrite, boolean failOnAllErrors)
          Exports contents of Value Set Definition as Coding Scheme in LexGrid canonical XML format.
 java.util.List<java.lang.String> getAllValueSetDefinitionsWithNoName()
          Return the URI's of all unnamed value set definition(s).
 ResolvedValueSetCodedNodeSet getCodedNodeSetForValueSetDefinition(java.net.URI valueSetDefinitionURI, java.lang.String valueSetDefinitionRevisionId, AbsoluteCodingSchemeVersionReferenceList csVersionList, java.lang.String versionTag)
          Returns unresolved CodedNodeSet populated using definition entries in the value set definition.
 AbsoluteCodingSchemeVersionReferenceList getCodingSchemesInValueSetDefinition(java.net.URI valueSetDefinitionURI)
          Returns list of coding scheme summary that is referenced by the supplied value set definition.
 java.lang.String getDescription()
           
 LexBIGService getLexBIGService()
          Return the associated LexBIGService instance; lazy initialized as required.
 LogEntry[] getLogEntries()
           
 java.lang.String getName()
           
 java.lang.String getProvider()
           
 java.lang.String getStringFromURI(java.net.URI uri)
           
 ValueSetDefinition getValueSetDefinition(java.net.URI valueSetDefURI, java.lang.String valueSetRevisionId)
          Returns value set definition for supplied value set definition URI.
 ResolvedValueSetCodedNodeSet getValueSetDefinitionEntitiesForTerm(java.lang.String term, java.lang.String matchAlgorithm, java.net.URI valueSetDefinitionURI, AbsoluteCodingSchemeVersionReferenceList csVersionList, java.lang.String versionTag)
          Resolve the value set definition, restricting the matching values to entities the match the supplied term and match algorithm.
 java.util.List<java.lang.String> getValueSetDefinitionURIsForSupportedTagAndValue(java.lang.String supportedTag, java.lang.String value, java.lang.String uri)
          Returns list of Value Set Definition URIs that contain supplied SupportedAttribute Tag and Value.
 java.util.List<java.lang.String> getValueSetDefinitionURIsWithCodingScheme(java.lang.String codingSchemename, java.lang.String codingSchemeURI)
          Returns list of Value Set Definition URIs that references supplied coding scheme.
 java.util.List<java.lang.String> getValueSetDefinitionURIsWithConceptDomain(java.lang.String conceptDomain, java.lang.String codingSchemeURI)
          Returns list of Value Set Definition URIs that are bound to supplied concept domain.
 java.util.List<java.lang.String> getValueSetDefinitionURIsWithConceptDomainAndUsageContext(java.lang.String conceptDomain, java.util.List<java.lang.String> usageContexts, java.lang.String codingSchemeURI)
          Returns list of Value Set Definition URIs that are bound to supplied concept domain and in supplied usage context.
 java.util.List<java.lang.String> getValueSetDefinitionURIsWithUsageContext(java.util.List<java.lang.String> usageContexts, java.lang.String codingSchemeURI)
          Returns list of Value Set Definition URIs that can be used with in the supplied list of usage context.
 java.lang.String getVersion()
           
 AbsoluteCodingSchemeVersionReference isEntityInValueSet(java.lang.String entityCode, java.net.URI valueSetDefinitionURI, java.lang.String valueSetDefinitionRevisionId, java.lang.String versionTag)
          Determine whether the supplied entity code is a valid entity code somewhere in the supplied value set definition.
 AbsoluteCodingSchemeVersionReference isEntityInValueSet(java.lang.String entityCode, java.net.URI entityCodeNamespace, java.net.URI valueSetDefinitionURI, java.lang.String valueSetDefinitionRevisionId, AbsoluteCodingSchemeVersionReferenceList csVersionList, java.lang.String versionTag)
          Determine whether the supplied entity code is valid in the suppled value set definition, when reconciled against the supplied set of coding scheme versions and/or version tags
 boolean isSubSet(java.net.URI childValueSetDefinitionURI, java.net.URI parentValueSetDefinitionURI, AbsoluteCodingSchemeVersionReferenceList csVersionList, java.lang.String versionTag)
          Check whether childValueDSetDefinitionURI is a child of parentValueSetDefinitionURI.
 boolean isValueSetDefinition(java.lang.String entityCode, java.lang.String codingSchemeName, CodingSchemeVersionOrTag csvt)
          Determine if the supplied entity code is of type valueSetDefinition in supplied coding scheme and, if it is, return the true, otherwise return false.
 java.util.List<java.lang.String> listValueSetDefinitions(java.lang.String valueSetDefinitionName)
          Return the URI's for the value set definition(s) for the supplied value set definition name.
 java.util.List<java.lang.String> listValueSetDefinitionURIs()
          Lists all the value set definition URIs that are loaded in the system.
 java.util.List<java.lang.String> listValueSetsWithEntityCode(java.lang.String entityCode, java.net.URI entityCodeNamespace, AbsoluteCodingSchemeVersionReferenceList csVersionList, java.lang.String versionTag)
          Returns all the value set definition uris that contains supplied entity code.
 void loadValueSetDefinition(java.lang.String xmlFileLocation, boolean failOnAllErrors)
          Loads value set definition by reading XML file location supplied
 void loadValueSetDefinition(ValueSetDefinition definition, java.lang.String systemReleaseURI, Mappings mappings)
          Loads supplied valueSetDefinition object
 void removeValueSetDefinition(java.net.URI valueSetDefinitionURI)
          Removes supplied value set definition from the system.
 ResolvedValueSetDefinition resolveValueSetDefinition(java.net.URI valueSetDefinitionURI, java.lang.String valueSetDefinitionRevisionId, AbsoluteCodingSchemeVersionReferenceList csVersionList, java.lang.String versionTag, SortOptionList sortOptionList)
          Resolve a value set definition using the supplied set of coding scheme versions.
 ResolvedValueSetDefinition resolveValueSetDefinition(ValueSetDefinition vsDef, AbsoluteCodingSchemeVersionReferenceList csVersionList, java.lang.String versionTag, SortOptionList sortOptionList)
          Resolve a value set definition provided using the supplied set of coding scheme versions.
static void setDefaultInstance(LexEVSValueSetDefinitionServicesImpl defaultInstance)
          Assigns the default singleton instance of the service.
 void setLexBIGService(LexBIGService lbs)
          Assign the associated LexBIGService instance.
 void validate(java.net.URI uri, int validationLevel)
          Perform validation of the candidate resource without loading data.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

md_

protected MessageDirector md_

status_

protected LoadStatus status_
Constructor Detail

LexEVSValueSetDefinitionServicesImpl

public LexEVSValueSetDefinitionServicesImpl()
Method Detail

defaultInstance

public static LexEVSValueSetDefinitionServices defaultInstance()
Returns a default singleton instance of the service.

Note: This is the recommended method of acquiring the service, since it will allow the application to run without change in distributed LexBIG environments (in which case the default instance is actually a distributed service). However, use of the public constructor is supported to preserve backward compatibility.

Returns:
LexEVSValueSetDefinitionServices

setDefaultInstance

public static void setDefaultInstance(LexEVSValueSetDefinitionServicesImpl defaultInstance)
Assigns the default singleton instance of the service.

Note: While this method is public, it is generally not intended to be part of the externalized API. It is made public so that the runtime system has the ability to assign the default instance when running in distributed LexBIG environments, etc.

Parameters:
LexEVSValueSetDefinitionServicesImpl - the default instance.

getLogEntries

public LogEntry[] getLogEntries()
Specified by:
getLogEntries in interface LexEVSValueSetDefinitionServices

loadValueSetDefinition

public void loadValueSetDefinition(ValueSetDefinition definition,
                                   java.lang.String systemReleaseURI,
                                   Mappings mappings)
                            throws LBException
Description copied from interface: LexEVSValueSetDefinitionServices
Loads supplied valueSetDefinition object

Specified by:
loadValueSetDefinition in interface LexEVSValueSetDefinitionServices
Parameters:
definition - value set definition to load
mappings - - additional mappings passed from the value set definition container
Throws:
LBException

loadValueSetDefinition

public void loadValueSetDefinition(java.lang.String xmlFileLocation,
                                   boolean failOnAllErrors)
                            throws LBException
Description copied from interface: LexEVSValueSetDefinitionServices
Loads value set definition by reading XML file location supplied

Specified by:
loadValueSetDefinition in interface LexEVSValueSetDefinitionServices
Parameters:
xmlFileLocation - XML file containing value set definitions
Throws:
LBException

validate

public void validate(java.net.URI uri,
                     int validationLevel)
              throws LBException
Description copied from interface: LexEVSValueSetDefinitionServices
Perform validation of the candidate resource without loading data.

Specified by:
validate in interface LexEVSValueSetDefinitionServices
Parameters:
uri - XML file containing value set definitions
validationLevel - validate <int> Supported levels of validation include: 0 = Verify document is well-formed 1 = Verify document is valid
Throws:
LBParameterException
LBException

isEntityInValueSet

public AbsoluteCodingSchemeVersionReference isEntityInValueSet(java.lang.String entityCode,
                                                               java.net.URI valueSetDefinitionURI,
                                                               java.lang.String valueSetDefinitionRevisionId,
                                                               java.lang.String versionTag)
                                                        throws LBException
Description copied from interface: LexEVSValueSetDefinitionServices
Determine whether the supplied entity code is a valid entity code somewhere in the supplied value set definition. This function is intended for use with simple value set definition that are drawn from a single coding scheme where most parameters can be defaulted

Specified by:
isEntityInValueSet in interface LexEVSValueSetDefinitionServices
Parameters:
entityCode - - the entity code to search for. If the value set definition has a default coding scheme, this will become the namespace for the entity code. If not, any matching entity code will pass.
valueSetDefinitionURI - - the URI of the value set definition to search
versionTag - - the version or tag (e.g. "devel", "production", etc.) to be used for all of the coding schemes searched.
Returns:
coding scheme and version if the entityCode is valid, null otherwise
Throws:
LBException

isEntityInValueSet

public AbsoluteCodingSchemeVersionReference isEntityInValueSet(java.lang.String entityCode,
                                                               java.net.URI entityCodeNamespace,
                                                               java.net.URI valueSetDefinitionURI,
                                                               java.lang.String valueSetDefinitionRevisionId,
                                                               AbsoluteCodingSchemeVersionReferenceList csVersionList,
                                                               java.lang.String versionTag)
                                                        throws LBException
Description copied from interface: LexEVSValueSetDefinitionServices
Determine whether the supplied entity code is valid in the suppled value set definition, when reconciled against the supplied set of coding scheme versions and/or version tags

Specified by:
isEntityInValueSet in interface LexEVSValueSetDefinitionServices
Parameters:
entityCode - - the entity code to validate.
entityCodeNamespace - - the URI of the entity code namespace. If omitted, the default coding scheme namespace for the value domain will be used, if it is present. Otherwise the first matching entity code, if any, will pass
valueSetDefinitionURI - - the URI of the value set definitionn
csVersionList - - a list of coding scheme URI's and versions to be used. These will be used only if they are present in the service. If absent, the most recent version will be used instead.
versionTag - - the tag (e.g "devel", "production", ...) to be used to reconcile coding schemes when more than one is present. Note that non-tagged versions will be used if the tagged version is missing.
Returns:
The codingScheme URI and version of that asserts that the code is in the domain
Throws:
LBException

listValueSetsWithEntityCode

public java.util.List<java.lang.String> listValueSetsWithEntityCode(java.lang.String entityCode,
                                                                    java.net.URI entityCodeNamespace,
                                                                    AbsoluteCodingSchemeVersionReferenceList csVersionList,
                                                                    java.lang.String versionTag)
                                                             throws LBException
Description copied from interface: LexEVSValueSetDefinitionServices
Returns all the value set definition uris that contains supplied entity code.

Specified by:
listValueSetsWithEntityCode in interface LexEVSValueSetDefinitionServices
Parameters:
entityCode - - the entity code to validate.
entityCodeNamespace - - the URI of the entity code namespace. If omitted, the default coding scheme namespace for the value domain will be used, if it is present. Otherwise the first matching entity code, if any, will pass
csVersionList - - a list of coding scheme URI's and versions to be used. These will be used only if they are present in the service. If absent, the most recent version will be used instead.
versionTag - - the tag (e.g "devel", "production", ...) to be used to reconcile coding schemes when more than one is present. Note that non-tagged versions will be used if the tagged version is missing.
Returns:
The value set definition URIs
Throws:
LBException

getCodedNodeSetForValueSetDefinition

public ResolvedValueSetCodedNodeSet getCodedNodeSetForValueSetDefinition(java.net.URI valueSetDefinitionURI,
                                                                         java.lang.String valueSetDefinitionRevisionId,
                                                                         AbsoluteCodingSchemeVersionReferenceList csVersionList,
                                                                         java.lang.String versionTag)
                                                                  throws LBException
Description copied from interface: LexEVSValueSetDefinitionServices
Returns unresolved CodedNodeSet populated using definition entries in the value set definition.

Specified by:
getCodedNodeSetForValueSetDefinition in interface LexEVSValueSetDefinitionServices
Parameters:
valueSetDefinitionURI - - the URI of the value set definition
csVersionList - - a list of coding scheme URI's and versions to be used. These will be used only if they are present in the service. If absent, the most recent version will be used instead.
versionTag - - the tag (e.g "devel", "production", ...) to be used to reconcile coding schemes when more than one is present. Note that non-tagged versions will be used if the tagged version is missing.
Returns:
Throws:
LBException

resolveValueSetDefinition

public ResolvedValueSetDefinition resolveValueSetDefinition(java.net.URI valueSetDefinitionURI,
                                                            java.lang.String valueSetDefinitionRevisionId,
                                                            AbsoluteCodingSchemeVersionReferenceList csVersionList,
                                                            java.lang.String versionTag,
                                                            SortOptionList sortOptionList)
                                                     throws LBException
Description copied from interface: LexEVSValueSetDefinitionServices
Resolve a value set definition using the supplied set of coding scheme versions.

Specified by:
resolveValueSetDefinition in interface LexEVSValueSetDefinitionServices
Parameters:
valueSetDefinitionURI - value set definition URI
csVersionList - list of coding scheme versions to use in resolution. IF the value set definition uses a version that isn't mentioned in this list, the resolve function will return the codingScheme and version that was used as a default for the resolution.
versionTag - the tag (e.g. "devel", "production", ...) to be used to determine which coding scheme to be used
sortOptionList - List of sort options to apply during resolution. If supplied, the sort algorithms will be applied in the order provided. Any algorithms not valid to be applied in context of node set iteration, as specified in the sort extension description, will result in a parameter exception. Available algorithms can be retrieved through the LexBIGService getSortExtensions() method after being defined to the LexBIGServiceManager extension registry.
Returns:
Resolved Value Set Definition
Throws:
LBException

resolveValueSetDefinition

public ResolvedValueSetDefinition resolveValueSetDefinition(ValueSetDefinition vsDef,
                                                            AbsoluteCodingSchemeVersionReferenceList csVersionList,
                                                            java.lang.String versionTag,
                                                            SortOptionList sortOptionList)
                                                     throws LBException
Description copied from interface: LexEVSValueSetDefinitionServices
Resolve a value set definition provided using the supplied set of coding scheme versions.

Specified by:
resolveValueSetDefinition in interface LexEVSValueSetDefinitionServices
csVersionList - list of coding scheme versions to use in resolution. IF the value set definition uses a version that isn't mentioned in this list, the resolve function will return the codingScheme and version that was used as a default for the resolution.
versionTag - the tag (e.g. "devel", "production", ...) to be used to determine which coding scheme to be used
sortOptionList - List of sort options to apply during resolution. If supplied, the sort algorithms will be applied in the order provided. Any algorithms not valid to be applied in context of node set iteration, as specified in the sort extension description, will result in a parameter exception. Available algorithms can be retrieved through the LexBIGService getSortExtensions() method after being defined to the LexBIGServiceManager extension registry.
Returns:
Resolved Value Domain Definition
Throws:
LBException

isSubSet

public boolean isSubSet(java.net.URI childValueSetDefinitionURI,
                        java.net.URI parentValueSetDefinitionURI,
                        AbsoluteCodingSchemeVersionReferenceList csVersionList,
                        java.lang.String versionTag)
                 throws LBException
Description copied from interface: LexEVSValueSetDefinitionServices
Check whether childValueDSetDefinitionURI is a child of parentValueSetDefinitionURI.

Specified by:
isSubSet in interface LexEVSValueSetDefinitionServices
Parameters:
childValueSetDefinitionURI - child value set definition URI
parentValueSetDefinitionURI - parent value set definition URI
csVersionList - list of coding scheme versions to use in resolution. IF the value set definition uses a version that isn't mentioned in this list, the resolve function will return the codingScheme and version that was used as a default for the resolution.
versionTag - the tag (e.g. "devel", "production", ...) to be used to determine which coding scheme to be used
Returns:
YES, if all the elements of the child domain are in the parent domain NO otherwise.
Throws:
LBException

getValueSetDefinition

public ValueSetDefinition getValueSetDefinition(java.net.URI valueSetDefURI,
                                                java.lang.String valueSetRevisionId)
                                         throws LBException
Description copied from interface: LexEVSValueSetDefinitionServices
Returns value set definition for supplied value set definition URI.

Specified by:
getValueSetDefinition in interface LexEVSValueSetDefinitionServices
Parameters:
valueSetDefURI - value set definition URI
Returns:
value set definition
Throws:
LBException

listValueSetDefinitions

public java.util.List<java.lang.String> listValueSetDefinitions(java.lang.String valueSetDefinitionName)
                                                         throws LBException
Description copied from interface: LexEVSValueSetDefinitionServices
Return the URI's for the value set definition(s) for the supplied value set definition name. If the name is null, returns everything. If the name is not null, returns the value set definition(s) that have the assigned name. Note: plural because there is no guarantee of valueSetDefinition uniqueness. If the name is the empty string "", returns all unnamed valueSetDefinitions.

Specified by:
listValueSetDefinitions in interface LexEVSValueSetDefinitionServices
Returns:
value domain URI's
Throws:
LBException

listValueSetDefinitionURIs

public java.util.List<java.lang.String> listValueSetDefinitionURIs()
Description copied from interface: LexEVSValueSetDefinitionServices
Lists all the value set definition URIs that are loaded in the system.

Specified by:
listValueSetDefinitionURIs in interface LexEVSValueSetDefinitionServices
Returns:
list of value set definition URIs

getAllValueSetDefinitionsWithNoName

public java.util.List<java.lang.String> getAllValueSetDefinitionsWithNoName()
                                                                     throws LBException
Description copied from interface: LexEVSValueSetDefinitionServices
Return the URI's of all unnamed value set definition(s).

Specified by:
getAllValueSetDefinitionsWithNoName in interface LexEVSValueSetDefinitionServices
Returns:
value set definition URI's
Throws:
LBException

getValueSetDefinitionEntitiesForTerm

public ResolvedValueSetCodedNodeSet getValueSetDefinitionEntitiesForTerm(java.lang.String term,
                                                                         java.lang.String matchAlgorithm,
                                                                         java.net.URI valueSetDefinitionURI,
                                                                         AbsoluteCodingSchemeVersionReferenceList csVersionList,
                                                                         java.lang.String versionTag)
                                                                  throws LBException
Description copied from interface: LexEVSValueSetDefinitionServices
Resolve the value set definition, restricting the matching values to entities the match the supplied term and match algorithm. Behavior is the same as resolveValueSetDefinition with the exception that a restricted set is returned

Specified by:
getValueSetDefinitionEntitiesForTerm in interface LexEVSValueSetDefinitionServices
Parameters:
term - - text to match. Format is specific to the match algorithm
matchAlgorithm - - match algorithm to use. Must be the name of a supported match algorithm
valueSetDefinitionURI - - value set definition to resolve
csVersionList - - list of coding schemes and versions to resolve against
versionTag - - version tag to use for resolving coding schemes
Returns:
Resolution
Throws:
LBException

getCodingSchemesInValueSetDefinition

public AbsoluteCodingSchemeVersionReferenceList getCodingSchemesInValueSetDefinition(java.net.URI valueSetDefinitionURI)
                                                                              throws LBException
Description copied from interface: LexEVSValueSetDefinitionServices
Returns list of coding scheme summary that is referenced by the supplied value set definition.

Specified by:
getCodingSchemesInValueSetDefinition in interface LexEVSValueSetDefinitionServices
Returns:
coding scheme version reference list
Throws:
LBException

isValueSetDefinition

public boolean isValueSetDefinition(java.lang.String entityCode,
                                    java.lang.String codingSchemeName,
                                    CodingSchemeVersionOrTag csvt)
                             throws LBException
Description copied from interface: LexEVSValueSetDefinitionServices
Determine if the supplied entity code is of type valueSetDefinition in supplied coding scheme and, if it is, return the true, otherwise return false.

Specified by:
isValueSetDefinition in interface LexEVSValueSetDefinitionServices
Returns:
TRUE : If entityCode is of type valueSetDefinition in supplied coding scheme, FALSE : otherwise
Throws:
LBException

removeValueSetDefinition

public void removeValueSetDefinition(java.net.URI valueSetDefinitionURI)
                              throws LBException
Description copied from interface: LexEVSValueSetDefinitionServices
Removes supplied value set definition from the system.

Specified by:
removeValueSetDefinition in interface LexEVSValueSetDefinitionServices
Parameters:
valueSetDefinitionURI - URI of value set definition to remove
Throws:
LBException

getDescription

public java.lang.String getDescription()

getName

public java.lang.String getName()

getProvider

public java.lang.String getProvider()

getVersion

public java.lang.String getVersion()

setLexBIGService

public void setLexBIGService(LexBIGService lbs)
Assign the associated LexBIGService instance.

Note: This method must be invoked by users of the distributed LexBIG API to set the service to an EVSApplicationService object, allowing client side implementations to use these convenience methods.


getLexBIGService

public LexBIGService getLexBIGService()
Return the associated LexBIGService instance; lazy initialized as required.


getStringFromURI

public java.lang.String getStringFromURI(java.net.URI uri)
                                  throws LBParameterException
Throws:
LBParameterException

exportValueSetDefinition

public void exportValueSetDefinition(java.net.URI valueSetDefURI,
                                     java.lang.String valueSetDefinitionRevisionId,
                                     java.lang.String xmlFullPathName,
                                     boolean overwrite,
                                     boolean failOnAllErrors)
                              throws LBException
Description copied from interface: LexEVSValueSetDefinitionServices
Export value set definition to LexGrid canonical XML format.

Specified by:
exportValueSetDefinition in interface LexEVSValueSetDefinitionServices
Parameters:
valueSetDefURI - value set definition URI
valueSetDefinitionRevisionId - revision id of the value set definition to export
xmlFullPathName - Location to save the definition
overwrite - True: to override the existing file.
failOnAllErrors - True: stops exporting if any error.
Throws:
LBException

exportValueSetResolution

public java.net.URI exportValueSetResolution(java.net.URI valueSetDefinitionURI,
                                             java.lang.String valueSetDefinitionRevisionId,
                                             java.net.URI exportDestination,
                                             AbsoluteCodingSchemeVersionReferenceList csVersionList,
                                             java.lang.String csVersionTag,
                                             boolean overwrite,
                                             boolean failOnAllErrors)
                                      throws LBException
Description copied from interface: LexEVSValueSetDefinitionServices
Exports contents of Value Set Definition as Coding Scheme in LexGrid canonical XML format.

Specified by:
exportValueSetResolution in interface LexEVSValueSetDefinitionServices
Parameters:
valueSetDefinitionURI - value set definition URI
valueSetDefinitionRevisionId - value set definition revision id
exportDestination - Location to save the definition
csVersionList - A list of coding scheme URI's and versions to be used. These will be used only if they are present in the service. If absent, the most recent version will be used instead.
csVersionTag - the tag (e.g "devel", "production", ...) to be used to reconcile coding schemes when more than one is present.
overwrite - True: to override the existing file.
failOnAllErrors - True: stops exporting if any error.
Returns:
URI of destination if successfully exported.
Throws:
LBException

getValueSetDefinitionURIsForSupportedTagAndValue

public java.util.List<java.lang.String> getValueSetDefinitionURIsForSupportedTagAndValue(java.lang.String supportedTag,
                                                                                         java.lang.String value,
                                                                                         java.lang.String uri)
Description copied from interface: LexEVSValueSetDefinitionServices
Returns list of Value Set Definition URIs that contain supplied SupportedAttribute Tag and Value.

Specified by:
getValueSetDefinitionURIsForSupportedTagAndValue in interface LexEVSValueSetDefinitionServices
Parameters:
supportedTag - SupportedAttribute tag like SupportedCodingScheme, SupportedConceptDomain etc.
value - value of the supportedAttribute
Returns:
list of URIs

getValueSetDefinitionURIsWithCodingScheme

public java.util.List<java.lang.String> getValueSetDefinitionURIsWithCodingScheme(java.lang.String codingSchemename,
                                                                                  java.lang.String codingSchemeURI)
Description copied from interface: LexEVSValueSetDefinitionServices
Returns list of Value Set Definition URIs that references supplied coding scheme.

Specified by:
getValueSetDefinitionURIsWithCodingScheme in interface LexEVSValueSetDefinitionServices
Parameters:
codingSchemename - name of the coding scheme
Returns:
list of URIs

getValueSetDefinitionURIsWithConceptDomain

public java.util.List<java.lang.String> getValueSetDefinitionURIsWithConceptDomain(java.lang.String conceptDomain,
                                                                                   java.lang.String codingSchemeURI)
Description copied from interface: LexEVSValueSetDefinitionServices
Returns list of Value Set Definition URIs that are bound to supplied concept domain.

Specified by:
getValueSetDefinitionURIsWithConceptDomain in interface LexEVSValueSetDefinitionServices
Parameters:
conceptDomain - name/id of the conceptDomain
codingSchemeURI - coding scheme URI to which the concept domain belongs to
Returns:
list of URIs

getValueSetDefinitionURIsWithUsageContext

public java.util.List<java.lang.String> getValueSetDefinitionURIsWithUsageContext(java.util.List<java.lang.String> usageContexts,
                                                                                  java.lang.String codingSchemeURI)
Description copied from interface: LexEVSValueSetDefinitionServices
Returns list of Value Set Definition URIs that can be used with in the supplied list of usage context.

Specified by:
getValueSetDefinitionURIsWithUsageContext in interface LexEVSValueSetDefinitionServices
Parameters:
usageContexts - list of usage context
codingSchemeURI - coding scheme URI to which the concept domain belongs to
Returns:
list of URIs

getValueSetDefinitionURIsWithConceptDomainAndUsageContext

public java.util.List<java.lang.String> getValueSetDefinitionURIsWithConceptDomainAndUsageContext(java.lang.String conceptDomain,
                                                                                                  java.util.List<java.lang.String> usageContexts,
                                                                                                  java.lang.String codingSchemeURI)
Description copied from interface: LexEVSValueSetDefinitionServices
Returns list of Value Set Definition URIs that are bound to supplied concept domain and in supplied usage context.

Specified by:
getValueSetDefinitionURIsWithConceptDomainAndUsageContext in interface LexEVSValueSetDefinitionServices
Parameters:
conceptDomain - name/id of the conceptDomain
usageContexts - list of usage context names/IDs
codingSchemeURI - coding scheme URI to which the concept domain belongs to
Returns:
list of URIs

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.