CTS2 Links for LexEVS 6.0 |
---|
Introduction
LexEVS CTS2 Usage Context Query API provides capability to query Usage Context available in the system and also to query the binding between Value Set and Concept Domain in conjunction with Usage Context. In LexEVS, the Usage Context is essentially an entity of type 'usageContext' in a code system version. Using LexEVS CTS 2 Authoring or Loader interfaces, you could create a Code System specially for Usage Context entities, but this is not necessary, but will be convenient to have Usage Context entries in specific code system(s).
Interface
org.lexevs.cts2.query.UsageContextQueryOperation is the main interface for all the queries against Usage Context. This interface can be accessed using main LexEVSCTS2 interface, like:
org.lexevs.cts2.query.UsageContextQueryOperation cdQueryOp = new org.lexevs.cts2.LexEvsCTS2Impl().getQueryOperation().getUsageContextQueryOperation();
Query Functions
Here are the major query functions available using UsageContextQueryOperation interface:
getUsageContextCodingScheme
This function returns detailed usage context code system.
getUsageContextCodingScheme(String codeSystemNameOrURI, String codeSystemVersion)
Description: |
Gets the usage context code system. |
---|---|
Input: |
|
Output: |
org.LexGrid.codingSchemes.CodingScheme - Detailed usage context Code System |
Exception: |
org.LexGrid.LexBIG.Exceptions.LBException |
Sample Call: |
|
getUsageContextEntity
This function returns detailed Usage Context entity.
getUsageContextEntity(String usageContextId, String namespace, String codeSystemNameOrURI, String codeSystemVersion)
Description: |
Returns Usage Context entity object. |
---|---|
Input: |
|
Output: |
org.LexGrid.concepts.Entity - Detailed Usage Context Entity |
Exception: |
org.LexGrid.LexBIG.Exceptions.LBException |
Sample Call: |
|
getUsageContextEntitisWithName
This function returns all the Usage Context entities that matches the name supplied.
getUsageContextEntitisWithName(String usageContextName, String codeSystemNameOrURI, String codeSystemVersion, SearchDesignationOption option, String matchAlgorithm, String language)
Description: |
Returns list of Usage Context entities matching the name provided. |
---|---|
Input: |
|
Output: |
java.util.List<org.LexGrid.concepts.Entity> - List of detailed Usage Context entities that match supplied name. |
Exception: |
org.LexGrid.LexBIG.Exceptions.LBException |
Sample Call: |
|
getUsageContextCodedNodeSet
This is a helper function that returns Coded Node Set(CNS) for Usage Context entities. Further restrictions like, matchingDesignation, Status, Properties, etc., can be applied on this CNS and than resolved.
getUsageContextCodedNodeSet(String codeSystemNameOrURI, String codeSystemVersion)
Description: |
Returns coded node set for UsageContext entities. |
---|---|
Input: |
|
Output: |
org.LexGrid.LexBIG.LexBIGService.CodedNodeSet - Unresolved Usage Context coded node set. |
Exception: |
org.LexGrid.LexBIG.Exceptions.LBException |
Sample Call: |
|
listAllUsageContextEntities
This function returns all the Usage Context entities found in supplied code system version.
listAllUsageContextEntities(String codeSystemNameOrURI, String codeSystemVersion)
Description: |
Returns all the Usage Context entities found in supplied code system version. |
---|---|
Input: |
|
Output: |
java.util.List<org.LexGrid.concepts.Entity> - List of Usage Context entities found in supplied code system version. |
Exception: |
org.LexGrid.LexBIG.Exceptions.LBException |
Sample Call: |
|
listAllUsageContextIds
This function is similar to previous one, but instead of returning detailed Usage Context entities, it just returns identifiers of the Usage Context.
listAllUsageContextIds(String codeSystemNameOrURI, String codeSystemVersion)
Description: |
Returns all the Usage Context identifiers found in supplied code system version. |
---|---|
Input: |
|
Output: |
java.util.List<String> - List of Usage Context identifiers found in supplied code system version. |
Exception: |
org.LexGrid.LexBIG.Exceptions.LBException |
Sample Call: |
|