public class LexEVSValueSetDefinitionServicesImpl extends java.lang.Object implements LexEVSValueSetDefinitionServices
Modifier and Type | Field and Description |
---|---|
protected MessageDirector |
md_ |
protected LoadStatus |
status_ |
CS_NAME, GENERIC, RESOLVED_AGAINST_CODING_SCHEME_VERSION, VERSION
Constructor and Description |
---|
LexEVSValueSetDefinitionServicesImpl() |
Modifier and Type | Method and Description |
---|---|
static LexEVSValueSetDefinitionServices |
defaultInstance()
Returns a default singleton instance of the service.
|
java.lang.StringBuffer |
exportValueSetDefinition(java.net.URI valueSetDefinitionURI,
java.lang.String valueSetDefinitionRevisionId)
Exports Value Set Definition to StringBuffer in LexGrid XML format.
|
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.lang.StringBuffer |
exportValueSetDefinition(ValueSetDefinition valueSetDefinition)
Exports supplied Value Set Definition to StringBuffer in LexGrid XML format.
|
java.io.InputStream |
exportValueSetResolution(java.net.URI valueSetDefinitionURI,
java.lang.String valueSetDefinitionRevisionId,
AbsoluteCodingSchemeVersionReferenceList csVersionList,
java.lang.String csVersionTag,
boolean failOnAllErrors)
Resolves and Exports contents of Value Set Resolution as Coding Scheme in 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.io.InputStream |
exportValueSetResolution(ValueSetDefinition valueSetDefinition,
java.util.HashMap<java.lang.String,ValueSetDefinition> referencedVSDs,
AbsoluteCodingSchemeVersionReferenceList csVersionList,
java.lang.String csVersionTag,
boolean failOnAllErrors)
Resolves and Exports contents of supplied Value Set Definition object as Coding Scheme in LexGrid canonical XML format.
|
java.net.URI |
exportValueSetResolution(ValueSetDefinition valueSetDefinition,
java.util.HashMap<java.lang.String,ValueSetDefinition> referencedVSDs,
java.net.URI exportDestination,
AbsoluteCodingSchemeVersionReferenceList csVersionList,
java.lang.String csVersionTag,
boolean overwrite,
boolean failOnAllErrors)
Resolve and Exports contents of supplied Value Set Definition object
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.
|
ResolvedValueSetCodedNodeSet |
getCodedNodeSetForValueSetDefinition(java.net.URI valueSetDefinitionURI,
java.lang.String valueSetDefinitionRevisionId,
AbsoluteCodingSchemeVersionReferenceList csVersionList,
java.lang.String versionTag,
CodedNodeSet.AnonymousOption anonymousOption)
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() |
VSDServiceHelper |
getServiceHelper() |
java.lang.String |
getStringFromURI(java.net.URI uri) |
java.util.Map<java.lang.String,ValueSetDefinition> |
getURIToValueSetDefinitionsMap() |
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
|
static void |
main(java.lang.String... args) |
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,
java.util.HashMap<java.lang.String,ValueSetDefinition> referencedVSDs,
SortOptionList sortOptionList)
Resolve a value set definition provided 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.
|
protected MessageDirector md_
protected LoadStatus status_
public LexEVSValueSetDefinitionServicesImpl()
public static LexEVSValueSetDefinitionServices defaultInstance()
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.
public static void setDefaultInstance(LexEVSValueSetDefinitionServicesImpl defaultInstance)
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.
LexEVSValueSetDefinitionServicesImpl
- the default instance.public LogEntry[] getLogEntries()
getLogEntries
in interface LexEVSValueSetDefinitionServices
public void loadValueSetDefinition(ValueSetDefinition definition, java.lang.String systemReleaseURI, Mappings mappings) throws LBException
LexEVSValueSetDefinitionServices
loadValueSetDefinition
in interface LexEVSValueSetDefinitionServices
definition
- value set definition to loadmappings
- - additional mappings passed from the value set definition containerLBException
public void loadValueSetDefinition(java.lang.String xmlFileLocation, boolean failOnAllErrors) throws LBException
LexEVSValueSetDefinitionServices
loadValueSetDefinition
in interface LexEVSValueSetDefinitionServices
xmlFileLocation
- XML file containing value set definitionsLBException
public void validate(java.net.URI uri, int validationLevel) throws LBException
LexEVSValueSetDefinitionServices
validate
in interface LexEVSValueSetDefinitionServices
uri
- XML file containing value set definitionsvalidationLevel
- validate <int>
Supported levels of validation include:
0 = Verify document is well-formed
1 = Verify document is validLBParameterException
LBException
public AbsoluteCodingSchemeVersionReference isEntityInValueSet(java.lang.String entityCode, java.net.URI valueSetDefinitionURI, java.lang.String valueSetDefinitionRevisionId, java.lang.String versionTag) throws LBException
LexEVSValueSetDefinitionServices
isEntityInValueSet
in interface LexEVSValueSetDefinitionServices
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 searchversionTag
- - the version or tag (e.g. "devel", "production", etc.) to be used for all of the coding schemes searched.LBException
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
LexEVSValueSetDefinitionServices
isEntityInValueSet
in interface LexEVSValueSetDefinitionServices
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 passvalueSetDefinitionURI
- - the URI of the value set definitionncsVersionList
- - 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.LBException
public java.util.List<java.lang.String> listValueSetsWithEntityCode(java.lang.String entityCode, java.net.URI entityCodeNamespace, AbsoluteCodingSchemeVersionReferenceList csVersionList, java.lang.String versionTag) throws LBException
LexEVSValueSetDefinitionServices
listValueSetsWithEntityCode
in interface LexEVSValueSetDefinitionServices
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 passcsVersionList
- - 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.LBException
public ResolvedValueSetCodedNodeSet getCodedNodeSetForValueSetDefinition(java.net.URI valueSetDefinitionURI, java.lang.String valueSetDefinitionRevisionId, AbsoluteCodingSchemeVersionReferenceList csVersionList, java.lang.String versionTag) throws LBException
LexEVSValueSetDefinitionServices
getCodedNodeSetForValueSetDefinition
in interface LexEVSValueSetDefinitionServices
valueSetDefinitionURI
- - the URI of the value set definitioncsVersionList
- - 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.LBException
public ResolvedValueSetCodedNodeSet getCodedNodeSetForValueSetDefinition(java.net.URI valueSetDefinitionURI, java.lang.String valueSetDefinitionRevisionId, AbsoluteCodingSchemeVersionReferenceList csVersionList, java.lang.String versionTag, CodedNodeSet.AnonymousOption anonymousOption) throws LBException
LexEVSValueSetDefinitionServices
getCodedNodeSetForValueSetDefinition
in interface LexEVSValueSetDefinitionServices
valueSetDefinitionURI
- - the URI of the value set definitioncsVersionList
- - 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.LBException
public ResolvedValueSetDefinition resolveValueSetDefinition(java.net.URI valueSetDefinitionURI, java.lang.String valueSetDefinitionRevisionId, AbsoluteCodingSchemeVersionReferenceList csVersionList, java.lang.String versionTag, SortOptionList sortOptionList) throws LBException
LexEVSValueSetDefinitionServices
resolveValueSetDefinition
in interface LexEVSValueSetDefinitionServices
valueSetDefinitionURI
- value set definition URIcsVersionList
- 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 usedsortOptionList
- 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.LBException
public ResolvedValueSetDefinition resolveValueSetDefinition(ValueSetDefinition vsDef, AbsoluteCodingSchemeVersionReferenceList csVersionList, java.lang.String versionTag, SortOptionList sortOptionList) throws LBException
LexEVSValueSetDefinitionServices
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 usedsortOptionList
- 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.LBException
public ResolvedValueSetDefinition resolveValueSetDefinition(ValueSetDefinition vsDef, AbsoluteCodingSchemeVersionReferenceList csVersionList, java.lang.String versionTag, java.util.HashMap<java.lang.String,ValueSetDefinition> referencedVSDs, SortOptionList sortOptionList) throws LBException
LexEVSValueSetDefinitionServices
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 usedreferencedVSDs
- List of ValueSetDefinitions referenced by vsDef. If provided, these ValueSetDefinitions will be used to resolve vsDef.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.LBException
public boolean isSubSet(java.net.URI childValueSetDefinitionURI, java.net.URI parentValueSetDefinitionURI, AbsoluteCodingSchemeVersionReferenceList csVersionList, java.lang.String versionTag) throws LBException
LexEVSValueSetDefinitionServices
isSubSet
in interface LexEVSValueSetDefinitionServices
childValueSetDefinitionURI
- child value set definition URIparentValueSetDefinitionURI
- parent value set definition URIcsVersionList
- 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 usedLBException
public ValueSetDefinition getValueSetDefinition(java.net.URI valueSetDefURI, java.lang.String valueSetRevisionId) throws LBException
LexEVSValueSetDefinitionServices
getValueSetDefinition
in interface LexEVSValueSetDefinitionServices
valueSetDefURI
- value set definition URILBException
public java.util.List<java.lang.String> listValueSetDefinitions(java.lang.String valueSetDefinitionName) throws LBException
LexEVSValueSetDefinitionServices
listValueSetDefinitions
in interface LexEVSValueSetDefinitionServices
LBException
public java.util.List<java.lang.String> listValueSetDefinitionURIs()
LexEVSValueSetDefinitionServices
listValueSetDefinitionURIs
in interface LexEVSValueSetDefinitionServices
public java.util.Map<java.lang.String,ValueSetDefinition> getURIToValueSetDefinitionsMap()
getURIToValueSetDefinitionsMap
in interface LexEVSValueSetDefinitionServices
public java.util.List<java.lang.String> getAllValueSetDefinitionsWithNoName() throws LBException
LexEVSValueSetDefinitionServices
getAllValueSetDefinitionsWithNoName
in interface LexEVSValueSetDefinitionServices
LBException
public ResolvedValueSetCodedNodeSet getValueSetDefinitionEntitiesForTerm(java.lang.String term, java.lang.String matchAlgorithm, java.net.URI valueSetDefinitionURI, AbsoluteCodingSchemeVersionReferenceList csVersionList, java.lang.String versionTag) throws LBException
LexEVSValueSetDefinitionServices
getValueSetDefinitionEntitiesForTerm
in interface LexEVSValueSetDefinitionServices
term
- - text to match. Format is specific to the match algorithmmatchAlgorithm
- - match algorithm to use. Must be the name of a supported match algorithmvalueSetDefinitionURI
- - value set definition to resolvecsVersionList
- - list of coding schemes and versions to resolve againstversionTag
- - version tag to use for resolving coding schemesLBException
public AbsoluteCodingSchemeVersionReferenceList getCodingSchemesInValueSetDefinition(java.net.URI valueSetDefinitionURI) throws LBException
LexEVSValueSetDefinitionServices
getCodingSchemesInValueSetDefinition
in interface LexEVSValueSetDefinitionServices
LBException
public boolean isValueSetDefinition(java.lang.String entityCode, java.lang.String codingSchemeName, CodingSchemeVersionOrTag csvt) throws LBException
LexEVSValueSetDefinitionServices
isValueSetDefinition
in interface LexEVSValueSetDefinitionServices
LBException
public void removeValueSetDefinition(java.net.URI valueSetDefinitionURI) throws LBException
LexEVSValueSetDefinitionServices
removeValueSetDefinition
in interface LexEVSValueSetDefinitionServices
valueSetDefinitionURI
- URI of value set definition to removeLBException
public java.lang.String getDescription()
public java.lang.String getName()
public java.lang.String getProvider()
public java.lang.String getVersion()
public void setLexBIGService(LexBIGService lbs)
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.
public LexBIGService getLexBIGService()
public VSDServiceHelper getServiceHelper()
public java.lang.String getStringFromURI(java.net.URI uri) throws LBParameterException
LBParameterException
public void exportValueSetDefinition(java.net.URI valueSetDefURI, java.lang.String valueSetDefinitionRevisionId, java.lang.String xmlFullPathName, boolean overwrite, boolean failOnAllErrors) throws LBException
LexEVSValueSetDefinitionServices
exportValueSetDefinition
in interface LexEVSValueSetDefinitionServices
valueSetDefURI
- value set definition URIvalueSetDefinitionRevisionId
- revision id of the value set definition to exportxmlFullPathName
- Location to save the definitionoverwrite
- True: to override the existing file.failOnAllErrors
- True: stops exporting if any error.LBException
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
LexEVSValueSetDefinitionServices
exportValueSetResolution
in interface LexEVSValueSetDefinitionServices
valueSetDefinitionURI
- value set definition URIvalueSetDefinitionRevisionId
- value set definition revision idexportDestination
- Location to save the definitioncsVersionList
- 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.LBException
public java.net.URI exportValueSetResolution(ValueSetDefinition valueSetDefinition, java.util.HashMap<java.lang.String,ValueSetDefinition> referencedVSDs, java.net.URI exportDestination, AbsoluteCodingSchemeVersionReferenceList csVersionList, java.lang.String csVersionTag, boolean overwrite, boolean failOnAllErrors) throws LBException
LexEVSValueSetDefinitionServices
exportValueSetResolution
in interface LexEVSValueSetDefinitionServices
valueSetDefinition
- value set definition objectreferencedVSDs
- List of ValueSetDefinitions referenced by valueSetDefinition. If provided, these ValueSetDefinitions will be used to resolve valueSetDefinition.exportDestination
- Location to save the definitioncsVersionList
- 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.LBException
public java.io.InputStream exportValueSetResolution(ValueSetDefinition valueSetDefinition, java.util.HashMap<java.lang.String,ValueSetDefinition> referencedVSDs, AbsoluteCodingSchemeVersionReferenceList csVersionList, java.lang.String csVersionTag, boolean failOnAllErrors) throws LBException
LexEVSValueSetDefinitionServices
exportValueSetResolution
in interface LexEVSValueSetDefinitionServices
valueSetDefinition
- value set definition objectreferencedVSDs
- List of ValueSetDefinitions referenced by valueSetDefinition. If provided, these ValueSetDefinitions will be used to resolve valueSetDefinition.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.failOnAllErrors
- True: stops exporting if any error.LBException
public java.io.InputStream exportValueSetResolution(java.net.URI valueSetDefinitionURI, java.lang.String valueSetDefinitionRevisionId, AbsoluteCodingSchemeVersionReferenceList csVersionList, java.lang.String csVersionTag, boolean failOnAllErrors) throws LBException
LexEVSValueSetDefinitionServices
exportValueSetResolution
in interface LexEVSValueSetDefinitionServices
valueSetDefinitionURI
- value set definition URI to be resolvedvalueSetDefinitionRevisionId
- value set definition revision id to be usedcsVersionList
- 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.failOnAllErrors
- True: stops exporting if any error.LBException
public java.lang.StringBuffer exportValueSetDefinition(java.net.URI valueSetDefinitionURI, java.lang.String valueSetDefinitionRevisionId) throws LBException
LexEVSValueSetDefinitionServices
exportValueSetDefinition
in interface LexEVSValueSetDefinitionServices
valueSetDefinitionURI
- Value Set Definition URI to be exportedLBException
public java.lang.StringBuffer exportValueSetDefinition(ValueSetDefinition valueSetDefinition) throws LBException
LexEVSValueSetDefinitionServices
exportValueSetDefinition
in interface LexEVSValueSetDefinitionServices
valueSetDefinition
- Value Set Definition object to be exported to StringBuffer in LexGrid XML formatLBException
public java.util.List<java.lang.String> getValueSetDefinitionURIsForSupportedTagAndValue(java.lang.String supportedTag, java.lang.String value, java.lang.String uri)
LexEVSValueSetDefinitionServices
getValueSetDefinitionURIsForSupportedTagAndValue
in interface LexEVSValueSetDefinitionServices
supportedTag
- - Supported Attribute tag like CodingScheme, ConceptDomain, Source, Property etc.value
- - value of the supported attributeuri
- - uri of the supported attributepublic java.util.List<java.lang.String> getValueSetDefinitionURIsWithCodingScheme(java.lang.String codingSchemename, java.lang.String codingSchemeURI)
LexEVSValueSetDefinitionServices
getValueSetDefinitionURIsWithCodingScheme
in interface LexEVSValueSetDefinitionServices
codingSchemename
- name of the coding schemepublic java.util.List<java.lang.String> getValueSetDefinitionURIsWithConceptDomain(java.lang.String conceptDomain, java.lang.String codingSchemeURI)
LexEVSValueSetDefinitionServices
getValueSetDefinitionURIsWithConceptDomain
in interface LexEVSValueSetDefinitionServices
conceptDomain
- name/id of the conceptDomaincodingSchemeURI
- coding scheme URI to which the concept domain belongs topublic java.util.List<java.lang.String> getValueSetDefinitionURIsWithUsageContext(java.util.List<java.lang.String> usageContexts, java.lang.String codingSchemeURI)
LexEVSValueSetDefinitionServices
getValueSetDefinitionURIsWithUsageContext
in interface LexEVSValueSetDefinitionServices
usageContexts
- list of usage contextcodingSchemeURI
- coding scheme URI to which the concept domain belongs topublic java.util.List<java.lang.String> getValueSetDefinitionURIsWithConceptDomainAndUsageContext(java.lang.String conceptDomain, java.util.List<java.lang.String> usageContexts, java.lang.String codingSchemeURI)
LexEVSValueSetDefinitionServices
getValueSetDefinitionURIsWithConceptDomainAndUsageContext
in interface LexEVSValueSetDefinitionServices
conceptDomain
- name/id of the conceptDomainusageContexts
- list of usage context names/IDscodingSchemeURI
- coding scheme URI to which the concept domain belongs topublic static void main(java.lang.String... args)