NIH | National Cancer Institute | NCI Wiki  

Versions Compared

Key

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

...

Panel
titleContents of this Page
Table of Contents
minLevel2

Introduction

LexEVS CTS2 Concept Domain Query API provides capability to query Concept Domain available in the system and also to query the binding between Value Set and Concept Domain. In LexEVS, the Concept Domain is essentially an entity of type 'conceptDomain' in a code system version. Using LexEVS CTS 2 Authoring or Loader interfaces, you could create a Code System specially for Concept Domain entities, but this is not necessary, but will be convenient to have concept domains in specific code system(s).

Interface

org.lexevs.cts2.query.ConceptDomainQueryOperation is the main interface for all the queries against Concept Domain. This interface can be accessed using main LexEVSCTS2 interface, like:

<source>
org.lexevs.cts2.query.ConceptDomainQueryOperation cdQueryOp = new org.lexevs.cts2.LexEvsCTS2Impl().getQueryOperation().getConceptDomainQueryOperation();
</source>

Query Functions

Here are the major query functions available using ConceptDomainQueryOperation interface:

getConceptDomainCodingScheme

This function returns detailed concept domain code system.

...

Panel

org.LexGrid.codingSchemes.CodingScheme conceptDomainCS = cdQuery.getConceptDomainCodingScheme("conceptDomainCodingScheme", "1.0"); |

getConceptDomainEntity

This function returns detailed concept domain entity.

...

Panel

org.LexGrid.concepts.Entity conceptDomainEntity = cdQuery.getConceptDomainEntity("ActAdjudicationInformationCode", null, "conceptDomainCodingScheme", "1.0"); |

getConceptDomainEntitisWithName

This function returns all the concept domain entities that matches the concept domain name supplied.

...

Panel

java.util.List<org.LexGrid.concepts.Entity> conceptDomainEntities = cdQuery.getConceptDomainEntitisWithName("code", "conceptDomainCodingScheme", null, null, "subString", null); |

getConceptDomainCodedNodeSet

This is a helper function that returns Coded Node Set(CNS) for concept domain entities. Further restrictions like, matchingDesignation, Status, Properties, etc., can be applied on this CNS and than resolved.

...

Panel
Wiki Markup
 _conceptDomainCNS.restrictToMatchingProperties(null, new PropertyType[] { PropertyType.PRESENTATION }, "Auto", "startsWith", null);_
 _org.LexGrid.LexBIG.DataModel.Core.ResolvedConceptReference[] rcr = conceptDomainCNS.resolveToList(null, null, null, 1).getResolvedConceptReference();_ |

listAllConceptDomainEntities

This function returns all the Concept Domain entities found in supplied code system version.

...

Panel

java.util.List<org.LexGrid.concepts.Entity> conceptDomains = cdQuery.listAllConceptDomainEntities("conceptDomainCodingScheme", "1.0"); |

listAllConceptDomainIds

This function is similar to previous one, but instead of returning detailed Concept Domain entities, it just returns identifiers of the concept domain.

...

Panel

java.util.List<java.lang.String> conceptDomainIds = cdQuery.listAllConceptDomainIds("conceptDomainCodingScheme", "1.0"); |

getConceptDomainBindings

This function returns list of value set definition URIs that are bound to given concept domain.

...

Panel

java.util.List<java.lang.String> valueSetURIS = cdQuery.getConceptDomainBindings("AcknowledgementDetailCode", "conceptDomainCodingScheme"); |

isEntityInConceptDomain

This function determines whether the supplied coded concept exists in a code system in use for the specified concept domain, optionally within specific usage contexts. Returns true if a coded concept is an element of a value set expansion bound to the provided concept domain, or bound to both concept domain and usage context.

...