CTS2 Links for LexEVS 6.0 |
---|
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:
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 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:
org.lexevs.cts2.admin.load.CodeSystemLoadOperation csLoadOp = new org.lexevs.cts2.LexEvsCTS2Impl().getAdminOperation().getCodeSystemLoadOperation();
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:
org.lexevs.cts2.admin.load.ValueSetLoadOperation vsLoadOp = new org.lexevs.cts2.LexEvsCTS2Impl().getAdminOperation().getValueSetLoadOperation();
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:
org.lexevs.cts2.admin.load.AssociationLoadOperation assnLoadOp = new org.lexevs.cts2.LexEvsCTS2Impl().getAdminOperation().getAssociationLoadOperation();
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: |
|