NIH | National Cancer Institute | NCI Wiki  

Error rendering macro 'rw-search'

null

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Description:

Returns the resolved concept reference (which contains the associations) according to given node.

Input:

  • java.lang.String codingSystemName - The code system of the Associations to be returned.
  • org.LexGrid.LexBIG.DataModel.Core.CodingSchemeVersionOrTag versionOrTag - (Optional) Version identifier of the code system (defaults to 'PRODUCTION' tagged code systems)
  • java.lang.String namespace - The namespace of the Entity focus.
  • java.lang.String code - The code of the Entity focus.
  • java.lang.String associationName - (Optional) The Association to restrict to (if null, all Associations will be returned)
  • boolean isBackward - The code system of the Associations to be returned.
  • integer depth - The Association depth to traverse
  • integer maxToReturn - The max number of results to return (use '-1' for 'no limit')

Output:

  • org.LexGrid.LexBIG.DataModel.Collections.ResolvedConceptReferenceList - List of Associations

Sample Call: *

  • Step 1: Instantiate CodeSystemQueryOperation if it is not done yet :
    Code Block
    
    org.lexevs.cts2.query.AssociationQueryOperation associationQueryOp = new org.lexevs.cts2.LexEvsCTS2Impl().getQueryOperation().getAssociationQueryOperation();
    
  • Step 2: To get all the Associations for a given code and namespace:
    Code Block
     org.LexGrid.LexBIG.DataModel.Collections.CodingSchemeRenderingList csrList = associationQueryOp.listAssociations("CodeSystem",null,"ns","code",null,false,1,-1);

...

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: *

  • java.lang.String codingSystemName - The code system of the Associations to be returned.
  • org.LexGrid.LexBIG.DataModel.Core.CodingSchemeVersionOrTag versionOrTag - (Optional) Version identifier of the code system (defaults to 'PRODUCTION' tagged code systems)
  • java.lang.String relationContainerName - (Optional) The Relations Container name.
  • java.lang.String associationName - (Optional) The Association to restrict to (if null, all Associations will be used)
  • java.lang.String sourceCode - The source Entity code.
  • java.lang.String sourceNamespace - The source Entity namespace.
  • java.lang.String targetCode - The target Entity code.
  • java.lang.String targetNamespace - The target Entity namespace.

*Output: *

  • org.LexGrid.LexBIG.DataModel.Core.ResolvedConceptReference - The path between the two nodes.

*Sample Call: *

  • Step 1: Instantiate CodeSystemQueryOperation if it is not done yet :
    Code Block
    org.lexevs.cts2.query.AssociationQueryOperation associationQueryOp = new org.lexevs.cts2.LexEvsCTS2Impl().getQueryOperation().getAssociationQueryOperation();
  • Step 2: To get all the Associations for a given code and namespace:
    Code Block
    org.LexGrid.LexBIG.DataModel.Collections.CodingSchemeRenderingList csrList = associationQueryOp.determineTransitiveConceptRelationship("CodeSystem",null,"r1","hasSubtype","sc","sns","tc","tns");

...

Description:

Return whether the two nodes has a transitive closure path.

Input:

  • java.lang.String codingSystemName - The code system of the Associations to be returned.
  • org.LexGrid.LexBIG.DataModel.Core.CodingSchemeVersionOrTag versionOrTag - (Optional) Version identifier of the code system (defaults to 'PRODUCTION' tagged code systems)
  • java.lang.String associationType - (Optional) The Association to restrict to (if null, all Associations will be used)
  • org.LexGrid.LexBIG.DataModel.Core.ConceptReference sourceCode - The source Entity.
  • org.LexGrid.LexBIG.DataModel.Core.ConceptReference sourceNamespace - The target Entity.

*Output: *

  • boolean - 'true' if the two nodes have a transitive closure path, 'false' if not.

*Sample Call: *

  • Step 1: Instantiate CodeSystemQueryOperation if it is not done yet :
    Code Block
    org.lexevs.cts2.query.AssociationQueryOperation associationQueryOp = new org.lexevs.cts2.LexEvsCTS2Impl().getQueryOperation().getAssociationQueryOperation();
    
  • Step 2a: Create Concept References:
    Code Block
    ConceptReference source = new ConceptReference();
    source.setCode = "sourceCode";
    ConceptReference target= new ConceptReference();
    target.setCode = "targetCode";
    
  • Step 2b: To check the ConceptReferences for subsumption:
    Code Block
    boolean isSubsumed = associationQueryOp.computeSubsumptionRelationship("CodeSystem",null,"hasSubtype",source,target");

...