Page History
Scrollbar | ||
---|---|---|
|
...
Page info |
---|
...
|
Section | |||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
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:
Code Block |
---|
} org.lexevs.cts2.query.ValueSetQueryOperation vsQueryOp = new org.lexevs.cts2.LexEvsCTS2Impl().getQueryOperation().getValueSetQueryOperation(); {code} h2. Query Functions Here are the major query functions available using ValueSetQueryOperation interface: h3. 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. {{listValueSets(String codeSystemId, String conceptDomainId, String usageContextId, String codeSystemURI, SortOption sortOption)}} || *Description:* | Lists the value sets that are available to the CTS 2 service. | || *Input:* | * *_java.lang.String codeSystemId_* - (Optional) code system id the value set should reference. * *_java.lang.String conceptDomainId_* - (Optional) conceptDomain the value set should be bound to. * *_java.lang.String usageContextId_* - (Optional) usage context in which the value set can be used. * *_java.lang.String codeSystemURI_* - (Optional) URI of code system the codeSystemId or conceptDomainId or usageContextId belongs to. *_ |
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.
listValueSets(String codeSystemId, String conceptDomainId, String usageContextId, String codeSystemURI, SortOption sortOption)
Description: | Lists the value sets that are available to the CTS 2 service. |
---|---|
Input: |
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
Output: |
---|
...
java.util.List<java.lang.String> |
...
- |
...
List |
...
of |
...
value |
...
set |
...
identifiers | |
Exception: | org.LexGrid.LexBIG.Exceptions.LBException |
---|
...
Sample Call: |
|
---|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
listAllValueSets
This function returns all the value sets that are available in the system.
listAllValueSets(SortOption sortOption)
Description: | Lists all the value sets that are available to the CTS 2 service. |
---|---|
Input: | org.LexGrid.LexBIG.DataModel.InterfaceElements.SortOption |
...
sortOption |
...
- |
...
(Optional) |
...
to |
...
sort |
...
the |
...
return |
...
list |
...
of |
...
value |
...
set |
...
identifiers |
...
in |
...
Ascending |
...
or |
...
Descending. |
...
Output: | java.util.List<java.lang.String> |
---|
...
- |
...
List |
...
of |
...
value |
...
set |
...
identifiers | |
Exception: | org.LexGrid.LexBIG.Exceptions.LBException |
---|
...
Sample Call: |
|
---|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
getValueSetDetails
This function returns detailed information about the value set.
getValueSetDetails(String valueSetId, String valueSetVersion)
Description: | Returns detailed information about the value set. |
---|---|
Input: |
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
Output: |
---|
...
org.LexGrid.valueSets.ValueSetDefinition |
...
- |
...
Value |
...
Set |
...
Definition |
...
object |
...
with |
...
the |
...
details |
...
of |
...
value |
...
set | |
Exception: | org.LexGrid.LexBIG.Exceptions.LBException |
---|
...
Sample Call: |
|
---|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
listValueSetContents
This function returns the contents of value set (expanded value set).
listValueSetContents(String valueSetId, String valueSetVersion, AbsoluteCodingSchemeVersionReferenceList csVersionList, String versionTag, SortOption sortOption)
Description: | Returns the contents of value set (expanded value set). |
---|---|
Input: |
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
Output: |
---|
...
org.lexgrid.valuesets.dto.ResolvedValueSetDefinition |
...
- |
...
A |
...
resolved |
...
Value |
...
Set |
...
definition |
...
containing |
...
the |
...
code |
...
system |
...
version |
...
reference |
...
list |
...
that |
...
was |
...
used |
...
to |
...
resolve |
...
the |
...
value |
...
set |
...
and |
...
an |
...
iterator |
...
for |
...
resolved |
...
concepts. |
...
Exception: |
---|
...
org.LexGrid.LexBIG.Exceptions.LBException |
...
Sample Call: |
|
---|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
checkValueSetSubsumption
This function determines whether one of the two supplied value sets subsumes the other.
checkValueSetSubsumption(String childValueSetId, String childValueSetVersion, String parentValueSetId, String parentValueSetVersion, AbsoluteCodingSchemeVersionReferenceList csVersionList, String versionTag)
Description: | Determine whether one of the two supplied value sets subsumes the other. |
---|---|
Input: |
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
Output: |
---|
...
boolean - True; |
...
if |
...
childValueSet |
...
subsumes |
...
parentValueSet. |
...
False; |
...
otherwise. | |
Exception: | org.LexGrid.LexBIG.Exceptions.LBException |
---|
...
Sample Call: |
|
---|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
checkConceptValueSetMembership
This function determines whether the supplied coded concept exists in the supplied value set.
checkConceptValueSetMembership(String conceptCode, URI entityCodeNamespace, AbsoluteCodingSchemeVersionReference codeSystemAndVersion, String valueSetId, String valueSetVersion, String versionTag)
Description: | Determine whether the supplied coded concept exists in the supplied value set. |
---|---|
Input: |
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
Output: |
---|
...
boolean - True; |
...
if |
...
coded |
...
concept |
...
exists |
...
in |
...
value |
...
set. |
...
False; |
...
otherwise. |
...
Exception: |
---|
...
org.LexGrid.LexBIG.Exceptions.LBException |
...
Sample Call: |
|
---|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
listValueSetsWithConceptCode
This function returns all the value set identifiers that contains supplied concept code.
listValueSetsWithConceptCode(String conceptCode, URI entityCodeNamespace, AbsoluteCodingSchemeVersionReferenceList csVersionList, String versionTag)
Description: | Returns all the value set identifiers that contains supplied concept code. |
---|---|
Input: |
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
Output: |
---|
...
java.util.List<java.lang.String> |
...
- |
...
List |
...
of |
...
value |
...
set |
...
identifiers |
...
that |
...
contains |
...
the |
...
supplied |
...
concept |
...
code. | |
Exception: | org.LexGrid.LexBIG.Exceptions.LBException |
---|
...
Sample Call: |
|
---|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
|
...
Scrollbar | ||
---|---|---|
|