NIH | National Cancer Institute | NCI Wiki  

Versions Compared

Key

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

<?xml version="1.0" encoding="utf-8"?>
<html>
Template:Menu LexEVS 6.0 CTS2

Scrollbar
iconsfalse

Page info
title
title

Panel
titleContents of this Page
Table of Contents
minLevel2

Introduction

LexEVS CTS2 Value Set Query API provides capability to query Value Sets available in the system and also to query the binding between Value Set and Concept Domain.

Interface

org.lexevs.cts2.query.ValueSetQueryOperation is the main interface for all the queries against Value Set. This interface can be accessed using main LexEVSCTS2 interface, like:

<source>
org.lexevs.cts2.query.ValueSetQueryOperation vsQueryOp = new org.lexevs.cts2.LexEvsCTS2Impl().getQueryOperation().getValueSetQueryOperation();
</source>

Query Functions

Here are the major query functions available using ValueSetQueryOperation interface:

listValueSets

This function returns value sets that are available in the system. Optionally, the list can be filtered by providing the criteria as input parameters.

...

Panel

java.util.List<java.lang.String> valueSetList = vsQuery.listValueSets("Automobiles", "Autos", null, null, sortOption); |

listAllValueSets

This function returns all the value sets that are available in the system.

...

Panel

java.util.List<java.lang.String> valueSetList = vsQuery.listAllValueSets(sortOption); |

getValueSetDetails

This function returns detailed information about the value set.

...

Panel

org.LexGrid.valueSets.ValueSetDefinition vsd = vsQuery.getValueSetDetails("SRITEST:AUTO:AllDomesticButGM", null); |

listValueSetContents

This function returns the contents of value set (expanded value set).

...

Panel

ResolvedValueSetDefinition vsdResolved = vsQueryop.listValueSetContents("SRITEST:AUTO:DomasticLeafOnly", null, csList, null, null); |

checkValueSetSubsumption

This function determines whether one of the two supplied value sets subsumes the other.

...

Panel

boolean subsume = vsQueryop.checkValueSetSubsumption("SRITEST:AUTO:DomasticLeafOnly", null, "SRITEST:AUTO:EveryThing", null, csList, null); |

checkConceptValueSetMembership

This function determines whether the supplied coded concept exists in the supplied value set.

...

Panel

boolean member = vsQueryop.checkConceptValueSetMembership("GMC", new URI("Automobiles"), acsvr, "SRITEST:AUTO:GM", null, null); |

listValueSetsWithConceptCode

This function returns all the value set identifiers that contains supplied concept code.

...

Panel

List<String> valueSetIdList = vsQueryop.listValueSetsWithConceptCode("GMC", new URI("Automobiles"), csList, null); |

...

Scrollbar
iconsfalse