|
LexEVS CTS2 Association Query Operation API provides capability to query Associations available in the system.
org.lexevs.cts2.query.AssociationQueryOperation
is the main interface for all the queries against Associations. This interface can be accessed using main LexEVSCTS2 interface:
org.lexevs.cts2.query.AssociationQueryOperation associationQueryOp = new org.lexevs.cts2.LexEvsCTS2Impl().getQueryOperation().getAssociationQueryOperation(); |
Here are the major query functions available using AssociationQueryOperation interface:
This function returns the resolved concept reference (which contains the associations) according to given node.
listAssociations(String codingSystemName CodingSchemeVersionOrTag versionOrTag String namespace String code String associationName boolean isBackward int depth int maxToReturn)
Description: |
Returns the resolved concept reference (which contains the associations) according to given node. |
||
Input: |
|
||
Output: |
org.LexGrid.LexBIG.DataModel.Collections.ResolvedConceptReferenceList - List of Associations |
||
Sample Call: |
|
Returns the path according to given two nodes.
determineTransitiveConceptRelationship(String codingSystemName CodingSchemeVersionOrTag versionOrTag String relationContainerName String associationName String sourceCode String sourceNamespace String targetCode String targetNamespace)
Description: |
Returns the path according to given two nodes. |
||
Input: |
|
||
Output: |
org.LexGrid.LexBIG.DataModel.Core.ResolvedConceptReference - The path between the two nodes. |
||
Sample Call: |
|
Return whether the two nodes has a transitive closure path.
determineTransitiveConceptRelationship(String codingSystemName CodingSchemeVersionOrTag versionOrTag String associationType ConceptReference sourceCode, ConceptReference targetCode)
Description: |
Return whether the two nodes has a transitive closure path. |
|||
Input: |
|
|||
Output: |
boolean - 'true' if the two nodes have a transitive closure path, 'false' if not. |
|||
Sample Call: |
|
Return association triple according to association instance id.
getAssociationDetails(String codingSchemeName, CodingSchemeVersionOrTag versionOrTag, String associationInstanceId)
Description: |
Return association triple according to association instance id. |
|||
Input: |
|
|||
Output: |
org.lexevs.dao.database.service.association.AssociationService.AssociationTriple - Detailed Association Triple object |
|||
Sample Call: |
|