Page History
Wiki Markup |
---|
{scrollbar:icons=false}
h1. { |
Page info | ||||
---|---|---|---|---|
|
Section | |||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
Introduction
LexEVS CTS2 Load API provides capability to load complete or incremental updates of Code System, Value Sets and Association contents. It also provides capability to activate and deactivate loaded contents.
Load Interfaces
There are three major load interfaces proved, each for loading specific content:
- Code System loader - Provides capability to load complete or partial contents of Code System plus functions to activate and deactivate loaded Code System.
- Value Sets loader - Provides capability to load Value Sets.
- Association loader - Provides capability to load Associations.
Each of these interfaces can be accessed using:
Code Block |
---|
:title} {section} {column:width=75%} {panel:title=Contents of this Page} {toc:minLevel=2} {panel} {column} {column} {align:right}{include:Menu LexEVS 6.0 CTS2 to Include}{align} {column} {section} h2. Introduction LexEVS CTS2 Load API provides capability to load complete or incremental updates of Code System, Value Sets and Association contents. It also provides capability to activate and deactivate loaded contents. h2. Load Interfaces There are three major load interfaces proved, each for loading specific content: * Code System loader - Provides capability to load complete or partial contents of Code System plus functions to activate and deactivate loaded Code System. * Value Sets loader - Provides capability to load Value Sets. * Association loader - Provides capability to load Associations. Each of these interfaces can be accessed using: {code} org.lexevs.cts2.admin.load.CodeSystemLoadOperation csLoadOp = new org.lexevs.cts2.LexEvsCTS2Impl().getAdminOperation().getCodeSystemLoadOperation(); org.lexevs.cts2.admin.load.ValueSetLoadOperation vsLoadOp = new org.lexevs.cts2.LexEvsCTS2Impl().getAdminOperation().getValueSetLoadOperation(); org.lexevs.cts2.admin.load.AssociationLoadOperation assnLoadOp = new org.lexevs.cts2.LexEvsCTS2Impl().getAdminOperation().getAssociationLoadOperation(); {code} h3. Code System Loader {{ |
Code System Loader
org.lexevs.cts2.admin.load.CodeSystemLoadOperation
...
is
...
the
...
main
...
interface
...
which
...
can
...
be
...
used
...
to
...
load,
...
activate
...
and
...
deactivate
...
Code
...
System.
...
This
...
interface
...
can
...
be
...
accessed
...
using
...
main
...
LexEVSCTS2
...
interface,
...
like:
Code Block |
---|
} org.lexevs.cts2.admin.load.CodeSystemLoadOperation csLoadOp = new org.lexevs.cts2.LexEvsCTS2Impl().getAdminOperation().getCodeSystemLoadOperation(); {code} There are two different methods available to load Code System: * Loading Code System from a file - This method provides capability to load complete Code System contents that are present in a file system. * Loading Code System Object - This method provides capability to load supplied Code System Object. h4. Loading Code System from a File This function provides the capability to load Code System found in the file using the loader specified. {{load(URI source, URI metadata, URI manifest, String loaderName, Boolean stopOnErrors, Boolean async, Boolean overwriteMetadata, String versionTag, Boolean activate)}} || *Description:* | Loads Code System found in source file using the loader specified. | || *Input:* | * *_java.net.URI source_* - (*Mandatory*) URI corresponding to the code system file. * *_java.net.URI metadata_* - (Optional) URI of the XML file containing custom code system meta data. Loads additional data to be maintained and queried as terminology meta-information within the system. All tags and values are interpreted as simple text-based key/value pairs. * *_java.net.URI manifest_* - (Optional) URI corresponding to the manifest file. The LexGrid Manifest accommodates the need to supplement or override default information provided by the source. More specifically, the manifest provides a means to customize the same code system metadata defined by the LexGrid model, since each element of the manifest extends directly from an element used to define the LexGrid coding scheme(aka code system) object. Each extended element allows for the administrator to specify whether the manifest definition replaces or supplements original values provided in the terminology source. Like the LexGrid Terminology model, the manifest is defined by a formal model mastered as XML Schema. * *_java.lang.String loaderName_* - (*Mandatory*) Loader to use for loading the code system. Use getSupportedLoaderNames() method to get all the loaders supported by the service. For example, 'OBOLoader' could be used to load code system source that is in OBO format, 'OWLLoader' for code system source in OWL format, 'LexGrid_Loader' for Code System in LexGrid XML format, etc. * *_boolean stopOnErrors_* - (Optional) default is false. True means stop if any load error is detected. False means attempt to load what can be loaded if recoverable errors are encountered. * *_boolean async_* - (Optional) Flag controlling whether load occurs in the calling thread. If true, the load will occur in a separate asynchronous process. If false, this method blocks until the load operation completes or fails. Regardless of setting, the getStatus and getLog calls are used to fetch results. * *_boolean_overwriteMetadata_* - (Optional) If true, existing meta data for the code system will be erased. If false, new meta data will be appended to existing meta data. * *_java.lang.String versionTag_* - (Optional) The tag (e.g "devel", "production", ...) to be set for the this code system. * *_boolean activate_* - (Optional) True: activates the code system after the load. | || *Output:* | Array of *_; |
There are two different methods available to load Code System:
- Loading Code System from a file - This method provides capability to load complete Code System contents that are present in a file system.
- Loading Code System Object - This method provides capability to load supplied Code System Object.
Loading Code System from a File
This function provides the capability to load Code System found in the file using the loader specified.
load(URI source, URI metadata, URI manifest, String loaderName, Boolean stopOnErrors, Boolean async, Boolean overwriteMetadata, String versionTag, Boolean activate)
Description: | Loads Code System found in source file using the loader specified. |
---|---|
Input: |
|
Output: | Array of edu.mayo.informatics.lexgrid.convert.utility.URNVersionPair |
...
- |
...
URN |
...
and |
...
Version |
...
of |
...
the |
...
loaded |
...
code |
...
system | |
Exception: | org.LexGrid.LexBIG.Exceptions.LBException |
---|
...
Sample Call: |
|
---|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
Loading Code System Object
This function provides the capability to load supplied Code System object.
load(CodingScheme codeSystem, URI metadata, Boolean stopOnErrors, Boolean async, Boolean overwriteMetadata, String versionTag, Boolean activate)
Description: | Loads supplied Code System Object. |
---|---|
Input: |
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
Output: |
---|
...
Array |
...
of |
...
edu.mayo.informatics.lexgrid.convert.utility.URNVersionPair |
...
- |
...
URN |
...
and |
...
Version |
...
of |
...
the |
...
loaded |
...
code |
...
system | |
Exception: | org.LexGrid.LexBIG.Exceptions.LBException |
---|
...
Sample Call: |
|
---|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
Value Set Loader
Value Set is stored in repository in terms of definitions, in LexEVS, it is known as 'Value Set Definition'. As name indicates, it is a definition of a value set contents, NOT the expanded value set contents that will be loaded. During the runtime, these definitions are resolved against the supplied Code System Version to return expanded Value Set contents. Visit LexEVS 6.0 Value Set and Pick List Definition Guide for detailed information about LexEVS Value Set Definition.
org.lexevs.cts2.admin.load.ValueSetLoadOperation
...
is
...
the
...
main
...
interface
...
which
...
can
...
be
...
used
...
to
...
load
...
Value
...
Set
...
Definition.
...
This
...
interface
...
can
...
be
...
accessed
...
using
...
main
...
LexEVSCTS2
...
interface,
...
like:
Code Block |
---|
} org.lexevs.cts2.admin.load.ValueSetLoadOperation vsLoadOp = new org.lexevs.cts2.LexEvsCTS2Impl().getAdminOperation().getValueSetLoadOperation(); {code} |
Similar
...
to
...
Code
...
System,
...
there
...
are
...
two
...
different
...
methods
...
available
...
to
...
load
...
Value
...
Sets:
...
- Loading
...
- Value
...
- Set
...
- Definition
...
- from
...
- a
...
- file
...
- -
...
- This
...
- method
...
- provides
...
- capability
...
- to
...
- load
...
- Value
...
- Set
...
- Definition(s)
...
- that
...
- are
...
- present
...
- in
...
- a
...
- file
...
- system.
...
- Loading
...
- Value
...
- Set
...
- Definition
...
- Object
...
- -
...
- This
...
- method
...
- provides
...
- capability
...
- to
...
- load
...
- supplied
...
- Value
...
- Set
...
- Definition
...
- Object.
...
Loading
...
Value
...
Set
...
Definition
...
from
...
a
...
File
...
This
...
function
...
provides
...
the
...
capability
...
to
...
load
...
Value
...
Set
...
Definition(s)
...
found
...
in
...
the
...
file
...
using
...
the
...
loader
...
specified.
...
load(URI
...
source,
...
URI
...
releaseURI,
...
String
...
loaderName,
...
Boolean
...
stopOnErrors)
...
Description: |
---|
...
Loads |
...
Value |
...
Set |
...
Definition(s) |
...
found |
...
in |
...
source |
...
file |
...
using |
...
the |
...
loader |
...
specified. |
...
Input: |
|
---|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
Output: |
---|
...
Array |
...
of |
...
edu.mayo.informatics.lexgrid.convert.utility.URNVersionPair |
...
- |
...
URI |
...
and |
...
Version |
...
of |
...
the |
...
loaded |
...
Value |
...
Set |
...
Definition | |
Exception: | org.LexGrid.LexBIG.Exceptions.LBException |
---|
...
Sample Call: |
|
---|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
Loading Value Set Definition Object
This function provides the capability to load supplied Value Set Definition object.
load(ValueSetDefinition valueSetDefinition, URI releaseURI, Boolean stopOnErrors)
Description: | Loads supplied Value Set Definition Object. |
---|---|
Input: |
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
Output: |
---|
...
java.lang.String |
...
- |
...
URI |
...
of |
...
Value |
...
Set |
...
Definition |
...
loaded | |
Exception: | org.LexGrid.LexBIG.Exceptions.LBException |
---|
...
Sample Call: |
|
---|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
Association Loader
org.lexevs.cts2.admin.load.AssociationLoadOperation
...
is
...
the
...
main
...
interface
...
which
...
can
...
be
...
used
...
to
...
load
...
Associations
...
with
...
in
...
a
...
Code
...
System.
...
This
...
interface
...
can
...
be
...
accessed
...
using
...
main
...
LexEVSCTS2
...
interface,
...
like:
Code Block |
---|
} org.lexevs.cts2.admin.load.AssociationLoadOperation assnLoadOp = new org.lexevs.cts2.LexEvsCTS2Impl().getAdminOperation().getAssociationLoadOperation(); {code} |
There
...
are
...
two
...
different
...
methods
...
available
...
to
...
load
...
Associations:
...
- Load
...
- Associations
...
- from
...
- a
...
- file
...
- -
...
- This
...
- method
...
- provides
...
- capability
...
- to
...
- load
...
- Associations
...
- from
...
- a
...
- file
...
- system.
...
- Load
...
- Associations
...
- from
...
- an
...
- Object
...
- -
...
- This
...
- method
...
- provides
...
- capability
...
- to
...
- load
...
- Associations
...
- supplied
...
- with
...
- in
...
- a
...
- Code
...
- System
...
- Object.
...
Loading
...
Associations
...
from
...
a
...
File
...
This
...
function
...
provides
...
the
...
capability
...
to
...
load
...
Associations
...
found
...
in
...
the
...
file
...
using
...
the
...
loader
...
specified.
...
importAssociationVersion(URI
...
source,
...
URI
...
metadata,
...
URI
...
manifest,
...
String
...
loaderName,
...
Boolean
...
stopOnErrors,
...
Boolean
...
async,
...
Boolean
...
overwriteMetadata,
...
String
...
versionTag,
...
Boolean
...
activate)
...
Description: |
---|
...
Loads |
...
Associations |
...
found |
...
in |
...
source |
...
file |
...
using |
...
the |
...
loader |
...
specified. |
...
Input: |
|
---|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
Output: |
---|
...
None | |
Exception: | org.LexGrid.LexBIG.Exceptions.LBException |
...
Sample Call: |
|
---|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
Loading Associations from an Object
This function provides the capability to load Associations supplied with in a Code System object.
importAssociationVersion(CodingScheme codeSystem, URI metadata, Boolean stopOnErrors, Boolean async, Boolean overwriteMetadata, String versionTag, Boolean activate)
Description: | Loads Associations supplied with in Code System Object. |
---|---|
Input: |
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
Output: |
---|
...
None | |
Exception: | org.LexGrid.LexBIG.Exceptions.LBException |
...
Sample Call: |
|
---|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
Wiki Markup |
---|
{code} |
\\
{scrollbar:icons=false} |