gov.nih.nci.evs.query
Class EVSQueryImpl

java.lang.Object
  extended bygov.nih.nci.evs.query.EVSQueryImpl
All Implemented Interfaces:
EVSQuery, java.io.Serializable

public class EVSQueryImpl
extends java.lang.Object
implements EVSQuery, java.io.Serializable

EVSQueryImpl class implements the EVSQuery interface. The query object generated by this class can hold one query at a time.

See Also:
Serialized Form

Field Summary
 java.util.HashMap descLogicValues
           
 java.util.HashMap metaThesaurusValues
           
 
Constructor Summary
EVSQueryImpl()
           
 
Method Summary
 void containsInverseRole(java.lang.String vocabularyName, java.lang.String roleName, java.lang.String roleValue, java.lang.String conceptName)
          Checks if the specified concept has the specified inverse role and role value.
 void containsRole(java.lang.String vocabularyName, java.lang.String roleName, java.lang.String roleValue, java.lang.String conceptName)
          Checks if the specified concept has the specified role and role value.
 void fetchDTSProperties(java.lang.String vocabularyName, java.lang.String term)
          Gets the properties of a given concept from the specified namespace
 void fetchTermAssociations(java.lang.String vocabularyName, java.lang.String term)
          Fetchs term association data for a given concept from the specified namespace
 void getAllAssociationTypes(java.lang.String vocabularyName)
          Gets all associationTypes from a given namespace
 void getAllConceptAssociationQualifierTypes(java.lang.String vocabularyName)
          Retrievs the name of all concecpt association quailifer types from the specified namespace
 void getAllConceptAssociationTypes(java.lang.String vocabularyName)
          Retrievs the name of all concecpt association types from the specified namespace
 void getAllConceptPropertyQualifierTypes(java.lang.String vocabularyName)
          Retrievs the name of all concecpt property qualifier types from the specified namespace
 void getAllConceptPropertyTypes(java.lang.String vocabularyName)
          Retrievs the name of all concecpt property types from the specified namespace
 void getAllLicenses(java.lang.String vocabularyName, java.lang.String condition)
          Gets all licenses from the specified namespace
 void getAllPropertyTypes(java.lang.String vocabularyName)
          Gets all the property types from a specified namespace
 void getAllQualifierTypes(java.lang.String vocabularyName)
          Gets all qualifier types from the specified namespace
 void getAllRoleNames(java.lang.String vocabularyName)
          Gets all the role names from the specified namespace
 void getAllSubConceptCodes(java.lang.String vocabularyName, java.lang.String conceptCode)
          Gets all the sub concept codes for the specified concept from a given namespace
 void getAllSubConceptNames(java.lang.String vocabularyName, java.lang.String conceptName)
          Gets all the sub concept names for the specified concept from a given namespace
 void getAllSynonymTypes(java.lang.String vocabularyName)
          Gets all synonym types from a given namespace
 void getAllTermAssociationQualifierTypes(java.lang.String vocabularyName)
          Gets all the term-association qualifier types from a given namespace
 void getAllTermPropertyQualifierTypes(java.lang.String vocabularyName)
          Gets all the term-property qualifier types from a given namespace
 void getAllTermPropertyTypes(java.lang.String vocabularyName)
          Gets all the term-property types from a given namespace
 void getAncestors(java.lang.String vocabularyName, java.lang.String code, boolean flag, java.lang.String iBaseLineDate, java.lang.String fBaseLineDate)
          Gets the ancestor concept codes of the specified concept.
 void getBroaderConcepts(java.lang.String conceptCode)
          Gets all the broader MetaThesaurus concepts for a given concept The relationship between these concepts are of type "RB" (Related Broader)
 void getBroaderConcepts(java.lang.String conceptCode, java.lang.String sourceAbbr)
          Gets all the broader MetaThesaurusConcepts for a given concept from the specified source.
 void getChildConcepts(java.lang.String vocabularyName, java.lang.String conceptName, boolean inputFlag)
          Retrievs all the child DescLogicConcepts for a given conceptName
 void getChildren(java.lang.String conceptCode, java.lang.String sourceAbbr)
          Gets all the child MetaThesaurusConcepts for a given conncept in the specified source
 void getConceptByName(java.lang.String vocabularyName, java.lang.String conceptName)
          Gets a DescLogicConcept for the specified conceptName.
 void getConceptCodeByName(java.lang.String vocabularyName, java.lang.String conceptName)
          Gets the code of the specified concept.
 void getConceptEditAction(java.lang.String vocabularyName, java.lang.String code)
          Gets all EditAction of the specified concept.
 void getConceptEditActionDates(java.lang.String vocabularyName, java.lang.String code, java.lang.String action)
          Gets EditActionDate that match with the given concept code and edit action.
 void getConceptNameByCode(java.lang.String vocabularyName, java.lang.String conceptCode)
          Gets the concept name for the specified concept code
 void getConceptsByCategories(java.lang.String conceptCode, java.lang.String category)
          Gets the concepts of specified category for the given metathesaurus concept
 void getConceptsBySource(java.lang.String sourceAbbr)
          Gets MetaThesaurusConcepts for the specified source
 void getConceptWithPropertyMatching(java.lang.String vocabularyName, java.lang.String propertyName, java.lang.String propertyValue, int matchLimit)
          Gets all the concept names that matches the argument pattern of a property.
 void getDescendants(java.lang.String vocabularyName, java.lang.String code, boolean flag, java.lang.String iBaseLineDate, java.lang.String fBaseLineDate)
          Gets the descendant concept codes of the specified conceptCode.
 void getDescLogicConcept(java.lang.String vocabularyName, java.lang.String conceptName, boolean inputFlag)
          Gets a DescLogicConcept for a given conceptName or concept code
 void getDescLogicConceptNameByCode(java.lang.String vocabularyName, java.lang.String conceptCode)
          Gets Concept name for the given concept code
 void getMetaConceptNameByCode(java.lang.String conceptCode)
          gets MetaThesaurusConcept name
 void getMetaSources()
          Get all MetaThesaurus Sources
 void getNarrowerConcepts(java.lang.String conceptCode)
          Gets narrower MetaThesaurus concepts for the specified concept The relationship between these concepts are of type "RN" (Related Narrower)
 void getNarrowerConcepts(java.lang.String conceptCode, java.lang.String sourceAbbr)
          Gets narrower MetaThesaurus concepts for the specified concept from a given source The relationship between these concepts are of type "RN" (Related Narrower)
 void getParent(java.lang.String conceptCode, java.lang.String sourceAbbr)
          Gets all the Parent MetaThesaurusConcepts for a given concept from the specified source.
 void getParentConcepts(java.lang.String vocabularyName, java.lang.String conceptName, boolean inputFlag)
          Retrievs all the parent DescLogicConcepts for a given conceptName
 void getPropertiesByConceptName(java.lang.String vocabularyName, java.lang.String conceptName)
          Gets the names and values of properties owned by the specified concept.
 void getPropertyValues(java.lang.String vocabularyName, java.lang.String conceptName, java.lang.String propertyName)
          Gets the values of a property owned by a concept
 void getRelatedConcepts(java.lang.String conceptCode)
          Gets related metathesaurus concepts for a given metaconcept The relationship between these concepts are of type "RN" (Related Narrower)
 void getRelatedConcepts(java.lang.String conceptCode, java.lang.String sourceAbbr)
          Gets all the related metathesaurus concepts for a given metaconcept from the specified source
 void getRelatedConcepts(java.lang.String conceptCode, java.lang.String sourceAbbr, java.lang.String relation)
          Gets the related metathesaurus concepts for a given metaconcept from the specified source
 void getRolesByConceptName(java.lang.String vocabularyName, java.lang.String conceptName)
          Gets the roles owned by the specified concept.
 void getRootConcepts(java.lang.String vocabularyName, boolean allAttributes)
          Retrieves all root DescLogicConcept objects
 void getSemanticTypes()
          Gets all semantic types from metaphrase
 void getSubConcepts(java.lang.String vocabularyName, java.lang.String conceptName, java.lang.Boolean inputFlag, java.lang.Boolean outputFlag)
          Gets the codes, or the names, of all subconcepts of the specified concept
 void getSuperConcepts(java.lang.String vocabularyName, java.lang.String conceptName, java.lang.Boolean inputFlag, java.lang.Boolean outputFlag)
          Gets the codes (or the names) of all superconcepts of the specified concept.
 void getTree(java.lang.String vocabularyName, java.lang.String rootName, boolean direction, boolean isaFlag, int attributes, java.lang.String levels, java.util.Vector roles)
          get tree for the specified rootName
 void getVocabularyHost(java.lang.String vocabularyName)
          Gets the host of a vocabulary server
 void getVocabularyNames()
          Gets vocabulary names from EVS
 void getVocabularyPort(java.lang.String vocabularyName)
          Gets the port of a vocabulary server
 void hasChildren(java.lang.String vocabularyName, java.lang.String conceptName)
          Returns true if a given concept has a child
 void hasParents(java.lang.String vocabularyName, java.lang.String conceptName)
          Returns true if a given concept has a parent
 void isRetired(java.lang.String vocabularyName, java.lang.String code)
          Checks if the specified concept is retired or not.
 void isSubConcept(java.lang.String vocabularyName, java.lang.String code1, java.lang.String code2)
          Checks if the first concept is a subconcept of the second concept
 void searchByLoincId(java.lang.String code, java.lang.String sourceAbbr)
          Search the specified vocabulary for a given code
 void searchDescLogicConcepts(java.lang.String vocabularyName, java.lang.String searchTerm, int limit)
          Search DescLogicConcepts
 void searchDescLogicConcepts(java.lang.String vocabularyName, java.lang.String searchTerm, int limit, int matchOption, java.lang.String matchType, int ASDIndex)
          Search DescLogicConcepts
 void searchMetaThesaurus(java.lang.String searchTerm, int limit, java.lang.String source, boolean cui, boolean shortResult, boolean score)
          Search concepts in MetaThesaurus
 void searchSourceByCode(java.lang.String code, java.lang.String sourceAbbr)
          Search the specified vocabulary for a given code
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

descLogicValues

public java.util.HashMap descLogicValues

metaThesaurusValues

public java.util.HashMap metaThesaurusValues
Constructor Detail

EVSQueryImpl

public EVSQueryImpl()
Method Detail

getTree

public void getTree(java.lang.String vocabularyName,
                    java.lang.String rootName,
                    boolean direction,
                    boolean isaFlag,
                    int attributes,
                    java.lang.String levels,
                    java.util.Vector roles)
get tree for the specified rootName

Specified by:
getTree in interface EVSQuery
Parameters:
vocabularyName -
rootName - - RootNode of the tree
direction - - a boolean value; set to true, if traverse down; to false, otherwise
isaFlag - - a boolean value; set to true, if the tree contains taxonomy (is a relationships); to false, otherwise
attributes - - an AttributeSetDescriptor instance
levels - - the depth of the tree
roles - - the names of role relationships

searchDescLogicConcepts

public void searchDescLogicConcepts(java.lang.String vocabularyName,
                                    java.lang.String searchTerm,
                                    int limit)
Search DescLogicConcepts

Specified by:
searchDescLogicConcepts in interface EVSQuery
Parameters:
vocabularyName -
searchTerm -
limit -

searchDescLogicConcepts

public void searchDescLogicConcepts(java.lang.String vocabularyName,
                                    java.lang.String searchTerm,
                                    int limit,
                                    int matchOption,
                                    java.lang.String matchType,
                                    int ASDIndex)
                             throws java.lang.Exception
Search DescLogicConcepts

Specified by:
searchDescLogicConcepts in interface EVSQuery
Parameters:
vocabularyName - - Specifies the namespace
searchTerm - - Specifies the search term
limit - - Specifies the maximum limit of search results
matchOption - - Specifies the match option
Example: option values
0 - MATCH_BY_NAME
1 - MATCH_BY_ROLE
2 - MATCH_BY_PROPERTY
matchType - - Depends on the match options (not all the time)
If match option is 0 match type should be ""
If match option is 1 match type should be role name
If match option is 2 match type should be property name
ASDIndex - - Takes an integer ranging from 0-3
0 - WITH_NO_ATTRIBUTES
1 - WITH_ALL_ATTRIBUTES
2 - WITH_ALL_ROLES
3 - WITH_ALL_PROPERTIES
Throws:
java.lang.Exception

getConceptWithPropertyMatching

public void getConceptWithPropertyMatching(java.lang.String vocabularyName,
                                           java.lang.String propertyName,
                                           java.lang.String propertyValue,
                                           int matchLimit)
Description copied from interface: EVSQuery
Gets all the concept names that matches the argument pattern of a property.

Specified by:
getConceptWithPropertyMatching in interface EVSQuery
Parameters:
vocabularyName - - specifies the namespace
propertyName - - all returned concepts should have the value of this Property
propertyValue - - pattern for searching
matchLimit - - number of records to get
See Also:
EVSQuery.getConceptWithPropertyMatching(java.lang.String, java.lang.String, java.lang.String, int)

getDescLogicConceptNameByCode

public void getDescLogicConceptNameByCode(java.lang.String vocabularyName,
                                          java.lang.String conceptCode)
Description copied from interface: EVSQuery
Gets Concept name for the given concept code

Specified by:
getDescLogicConceptNameByCode in interface EVSQuery
Parameters:
vocabularyName - - specifies the vocabulary
conceptCode - - specifies the concept code
See Also:
EVSQuery.getDescLogicConceptNameByCode(java.lang.String, java.lang.String)

isSubConcept

public void isSubConcept(java.lang.String vocabularyName,
                         java.lang.String code1,
                         java.lang.String code2)
Description copied from interface: EVSQuery
Checks if the first concept is a subconcept of the second concept

Specified by:
isSubConcept in interface EVSQuery
Parameters:
vocabularyName - - specifies the namespace
code1 - - the name of the first concept
code2 - - the name of the second concept
See Also:
EVSQuery.isSubConcept(java.lang.String, java.lang.String, java.lang.String)

isRetired

public void isRetired(java.lang.String vocabularyName,
                      java.lang.String code)
Description copied from interface: EVSQuery
Checks if the specified concept is retired or not.

Specified by:
isRetired in interface EVSQuery
Parameters:
vocabularyName -
code - - conceptCode
See Also:
EVSQuery.isRetired(java.lang.String, java.lang.String)

getDescendants

public void getDescendants(java.lang.String vocabularyName,
                           java.lang.String code,
                           boolean flag,
                           java.lang.String iBaseLineDate,
                           java.lang.String fBaseLineDate)
Description copied from interface: EVSQuery
Gets the descendant concept codes of the specified conceptCode. The search extends to a final baseline date starting from an initial baseline date. The search is based on a boolean value(flag). If the value is true, the method only searches for the active concepts at the final baseline date. If the value is false, the method searches for all descendant concepts, whether active or retired.

Specified by:
getDescendants in interface EVSQuery
Parameters:
vocabularyName -
code - - concept code
flag - - boolean value to specify the search type
iBaseLineDate - - initial baseline date
fBaseLineDate - - final baseline date
See Also:
EVSQuery.getDescendants(java.lang.String, java.lang.String, boolean, java.lang.String, java.lang.String)

getPropertyValues

public void getPropertyValues(java.lang.String vocabularyName,
                              java.lang.String conceptName,
                              java.lang.String propertyName)
Description copied from interface: EVSQuery
Gets the values of a property owned by a concept

Specified by:
getPropertyValues in interface EVSQuery
Parameters:
vocabularyName -
conceptName -
propertyName -
See Also:
EVSQuery.getPropertyValues(java.lang.String, java.lang.String, java.lang.String)

getAncestors

public void getAncestors(java.lang.String vocabularyName,
                         java.lang.String code,
                         boolean flag,
                         java.lang.String iBaseLineDate,
                         java.lang.String fBaseLineDate)
Description copied from interface: EVSQuery
Gets the ancestor concept codes of the specified concept. The search extends to a final baseline date starting from an initial baseline date. The search is based on a boolean value. If the value is true, the method only searches for the active concepts at the initial baseline date. If the value is false, the method searches for all ancestor concepts, whether active or retired.

Specified by:
getAncestors in interface EVSQuery
Parameters:
vocabularyName -
code -
flag -
iBaseLineDate - - Initial baseline date "MM/DD/YYYY"
fBaseLineDate - - Final baseline date "MM/DD/YYYY"
See Also:
EVSQuery.getAncestors(java.lang.String, java.lang.String, boolean, java.lang.String, java.lang.String)

getSubConcepts

public void getSubConcepts(java.lang.String vocabularyName,
                           java.lang.String conceptName,
                           java.lang.Boolean inputFlag,
                           java.lang.Boolean outputFlag)
Description copied from interface: EVSQuery
Gets the codes, or the names, of all subconcepts of the specified concept

Specified by:
getSubConcepts in interface EVSQuery
Parameters:
vocabularyName -
conceptName - - code or the specified concept name
inputFlag - - a Boolean true - if inputFlag is a concept code; false - if it is a concept name
outputFlag - - a Boolean true - if returned value is a concept code ; false - if it is a concept name.
See Also:
EVSQuery.getSubConcepts(java.lang.String, java.lang.String, java.lang.Boolean, java.lang.Boolean)

getSuperConcepts

public void getSuperConcepts(java.lang.String vocabularyName,
                             java.lang.String conceptName,
                             java.lang.Boolean inputFlag,
                             java.lang.Boolean outputFlag)
Description copied from interface: EVSQuery
Gets the codes (or the names) of all superconcepts of the specified concept.

Specified by:
getSuperConcepts in interface EVSQuery
Parameters:
vocabularyName -
conceptName -
inputFlag - - a Boolean true - if inputFlag is a concept code; false - if it is a concept name
outputFlag - - a Boolean true - if returned value is a concept code ; false - if it is a concept name.
See Also:
EVSQuery.getSuperConcepts(java.lang.String, java.lang.String, java.lang.Boolean, java.lang.Boolean)

getRolesByConceptName

public void getRolesByConceptName(java.lang.String vocabularyName,
                                  java.lang.String conceptName)
Description copied from interface: EVSQuery
Gets the roles owned by the specified concept.

Specified by:
getRolesByConceptName in interface EVSQuery
Parameters:
vocabularyName -
conceptName -
See Also:
EVSQuery.getRolesByConceptName(java.lang.String, java.lang.String)

getPropertiesByConceptName

public void getPropertiesByConceptName(java.lang.String vocabularyName,
                                       java.lang.String conceptName)
Description copied from interface: EVSQuery
Gets the names and values of properties owned by the specified concept.

Specified by:
getPropertiesByConceptName in interface EVSQuery
Parameters:
vocabularyName -
conceptName -
See Also:
EVSQuery.getPropertiesByConceptName(java.lang.String, java.lang.String)

getVocabularyNames

public void getVocabularyNames()
Description copied from interface: EVSQuery
Gets vocabulary names from EVS

Specified by:
getVocabularyNames in interface EVSQuery
See Also:
EVSQuery.getVocabularyNames()

getConceptCodeByName

public void getConceptCodeByName(java.lang.String vocabularyName,
                                 java.lang.String conceptName)
Description copied from interface: EVSQuery
Gets the code of the specified concept.

Specified by:
getConceptCodeByName in interface EVSQuery
Parameters:
vocabularyName -
conceptName -
See Also:
EVSQuery.getConceptCodeByName(java.lang.String, java.lang.String)

getConceptByName

public void getConceptByName(java.lang.String vocabularyName,
                             java.lang.String conceptName)
Description copied from interface: EVSQuery
Gets a DescLogicConcept for the specified conceptName.

Specified by:
getConceptByName in interface EVSQuery
Parameters:
vocabularyName -
conceptName -
See Also:
EVSQuery.getConceptByName(java.lang.String, java.lang.String)

getVocabularyHost

public void getVocabularyHost(java.lang.String vocabularyName)
Description copied from interface: EVSQuery
Gets the host of a vocabulary server

Specified by:
getVocabularyHost in interface EVSQuery
Parameters:
vocabularyName -
See Also:
EVSQuery.getVocabularyHost(java.lang.String)

getVocabularyPort

public void getVocabularyPort(java.lang.String vocabularyName)
Description copied from interface: EVSQuery
Gets the port of a vocabulary server

Specified by:
getVocabularyPort in interface EVSQuery
Parameters:
vocabularyName -
See Also:
EVSQuery.getVocabularyPort(java.lang.String)

getConceptEditAction

public void getConceptEditAction(java.lang.String vocabularyName,
                                 java.lang.String code)
Description copied from interface: EVSQuery
Gets all EditAction of the specified concept. A EditAction contains a edit date and an editing action. The method searches for all editing actions and the corresponding editing dates on the specified concept.

Specified by:
getConceptEditAction in interface EVSQuery
Parameters:
vocabularyName -
code -
See Also:
EVSQuery.getConceptEditAction(java.lang.String, java.lang.String)

getConceptEditActionDates

public void getConceptEditActionDates(java.lang.String vocabularyName,
                                      java.lang.String code,
                                      java.lang.String action)
Description copied from interface: EVSQuery
Gets EditActionDate that match with the given concept code and edit action.

Specified by:
getConceptEditActionDates in interface EVSQuery
Parameters:
vocabularyName -
code - - concept code
action - - edit action
See Also:
EVSQuery.getConceptEditActionDates(java.lang.String, java.lang.String, java.lang.String)

getRootConcepts

public void getRootConcepts(java.lang.String vocabularyName,
                            boolean allAttributes)
Description copied from interface: EVSQuery
Retrieves all root DescLogicConcept objects

Specified by:
getRootConcepts in interface EVSQuery
Parameters:
vocabularyName -
allAttributes - - true, if all attributes are retrieved; false, if no attribute is retrieved.
See Also:
EVSQuery.getRootConcepts(java.lang.String, boolean)

searchMetaThesaurus

public void searchMetaThesaurus(java.lang.String searchTerm,
                                int limit,
                                java.lang.String source,
                                boolean cui,
                                boolean shortResult,
                                boolean score)
Description copied from interface: EVSQuery
Search concepts in MetaThesaurus

Specified by:
searchMetaThesaurus in interface EVSQuery
Parameters:
searchTerm - - CUI or search string
limit - - maximum records
source - - source abbreviation
cui - - a boolean value - true, if the searchTerm is CUI, - false, otherwise
shortResult - - a boolean value
score - - a boolean value
See Also:
EVSQuery.searchMetaThesaurus(java.lang.String, int, java.lang.String, boolean, boolean, boolean)

searchByLoincId

public void searchByLoincId(java.lang.String code,
                            java.lang.String sourceAbbr)
Description copied from interface: EVSQuery
Search the specified vocabulary for a given code

Specified by:
searchByLoincId in interface EVSQuery
Parameters:
code - - Concepts unique identifier within the given source
sourceAbbr - - specifies the source abbreviation
See Also:
EVSQuery.searchByLoincId(java.lang.String, java.lang.String)

searchSourceByCode

public void searchSourceByCode(java.lang.String code,
                               java.lang.String sourceAbbr)
Description copied from interface: EVSQuery
Search the specified vocabulary for a given code

Specified by:
searchSourceByCode in interface EVSQuery
Parameters:
code - - Concepts unique identifier within the given source
sourceAbbr - - specifies the source abbreviation
See Also:
EVSQuery.searchSourceByCode(String, String)

getSemanticTypes

public void getSemanticTypes()
Description copied from interface: EVSQuery
Gets all semantic types from metaphrase

Specified by:
getSemanticTypes in interface EVSQuery
See Also:
EVSQuery.getSemanticTypes()

getConceptsBySource

public void getConceptsBySource(java.lang.String sourceAbbr)
Description copied from interface: EVSQuery
Gets MetaThesaurusConcepts for the specified source

Specified by:
getConceptsBySource in interface EVSQuery
Parameters:
sourceAbbr - - specifies the source abbreviation
See Also:
EVSQuery.getConceptsBySource(java.lang.String)

getMetaConceptNameByCode

public void getMetaConceptNameByCode(java.lang.String conceptCode)
Description copied from interface: EVSQuery
gets MetaThesaurusConcept name

Specified by:
getMetaConceptNameByCode in interface EVSQuery
Parameters:
conceptCode - - specifies the concept code
See Also:
EVSQuery.getMetaConceptNameByCode(java.lang.String)

getMetaSources

public void getMetaSources()
Description copied from interface: EVSQuery
Get all MetaThesaurus Sources

Specified by:
getMetaSources in interface EVSQuery
See Also:
EVSQuery.getMetaSources()

getChildren

public void getChildren(java.lang.String conceptCode,
                        java.lang.String sourceAbbr)
Description copied from interface: EVSQuery
Gets all the child MetaThesaurusConcepts for a given conncept in the specified source

Specified by:
getChildren in interface EVSQuery
Parameters:
conceptCode - - specifies the concept code
sourceAbbr - - specifies the source abbreviation
See Also:
EVSQuery.getChildren(java.lang.String, java.lang.String)

getParent

public void getParent(java.lang.String conceptCode,
                      java.lang.String sourceAbbr)
Description copied from interface: EVSQuery
Gets all the Parent MetaThesaurusConcepts for a given concept from the specified source. The relationship between these concepts are of type "PAR" (Parent)

Specified by:
getParent in interface EVSQuery
Parameters:
conceptCode - - specifies the concept code
sourceAbbr - - specifies the source abbreviation
See Also:
EVSQuery.getParent(java.lang.String, java.lang.String)

getBroaderConcepts

public void getBroaderConcepts(java.lang.String conceptCode)
Description copied from interface: EVSQuery
Gets all the broader MetaThesaurus concepts for a given concept The relationship between these concepts are of type "RB" (Related Broader)

Specified by:
getBroaderConcepts in interface EVSQuery
Parameters:
conceptCode - - specifies the concept code
See Also:
EVSQuery.getBroaderConcepts(java.lang.String)

getBroaderConcepts

public void getBroaderConcepts(java.lang.String conceptCode,
                               java.lang.String sourceAbbr)
Description copied from interface: EVSQuery
Gets all the broader MetaThesaurusConcepts for a given concept from the specified source. The relationship between these concepts are of type "RB" (Related Broader)

Specified by:
getBroaderConcepts in interface EVSQuery
Parameters:
conceptCode - - specifies the concept code
sourceAbbr - - specifies the source abbreviation
See Also:
EVSQuery.getBroaderConcepts(java.lang.String, java.lang.String)

getNarrowerConcepts

public void getNarrowerConcepts(java.lang.String conceptCode)
Description copied from interface: EVSQuery
Gets narrower MetaThesaurus concepts for the specified concept The relationship between these concepts are of type "RN" (Related Narrower)

Specified by:
getNarrowerConcepts in interface EVSQuery
Parameters:
conceptCode - - specifies the concept code
See Also:
EVSQuery.getNarrowerConcepts(java.lang.String)

getNarrowerConcepts

public void getNarrowerConcepts(java.lang.String conceptCode,
                                java.lang.String sourceAbbr)
Description copied from interface: EVSQuery
Gets narrower MetaThesaurus concepts for the specified concept from a given source The relationship between these concepts are of type "RN" (Related Narrower)

Specified by:
getNarrowerConcepts in interface EVSQuery
Parameters:
conceptCode - - specifies the concept code
See Also:
EVSQuery.getNarrowerConcepts(java.lang.String, java.lang.String)

getRelatedConcepts

public void getRelatedConcepts(java.lang.String conceptCode)
Description copied from interface: EVSQuery
Gets related metathesaurus concepts for a given metaconcept The relationship between these concepts are of type "RN" (Related Narrower)

Specified by:
getRelatedConcepts in interface EVSQuery
Parameters:
conceptCode - - specifies the concept code
See Also:
EVSQuery.getRelatedConcepts(java.lang.String)

getRelatedConcepts

public void getRelatedConcepts(java.lang.String conceptCode,
                               java.lang.String sourceAbbr)
Description copied from interface: EVSQuery
Gets all the related metathesaurus concepts for a given metaconcept from the specified source

Specified by:
getRelatedConcepts in interface EVSQuery
Parameters:
conceptCode - - specifies the concept code
sourceAbbr - - specifies the source abbreviation
See Also:
EVSQuery.getRelatedConcepts(java.lang.String, java.lang.String)

getRelatedConcepts

public void getRelatedConcepts(java.lang.String conceptCode,
                               java.lang.String sourceAbbr,
                               java.lang.String relation)
Description copied from interface: EVSQuery
Gets the related metathesaurus concepts for a given metaconcept from the specified source

Specified by:
getRelatedConcepts in interface EVSQuery
Parameters:
conceptCode - - specifies the concept code
sourceAbbr - - specifies the source abbreviation
relation - - Specifies the relation of a second concept to the first concept
RB - Related Broader, RN - Related Narrower, RO - Related Other, RL - Related Alike,
PAR - Parent, CHD - Child, SIB - Sibling, AQ - Allowed Qualifier (MeSH only), QB - Qualified By (MeSH Only)
See Also:
EVSQuery.getRelatedConcepts(String, String, String)

getConceptsByCategories

public void getConceptsByCategories(java.lang.String conceptCode,
                                    java.lang.String category)
Description copied from interface: EVSQuery
Gets the concepts of specified category for the given metathesaurus concept

Specified by:
getConceptsByCategories in interface EVSQuery
Parameters:
conceptCode - - specifies the concept code
category - - one of "Medications", "Procedures", "Laboratory", "Diagnosis"
See Also:
EVSQuery.getConceptsByCategories(String, String)

containsInverseRole

public void containsInverseRole(java.lang.String vocabularyName,
                                java.lang.String roleName,
                                java.lang.String roleValue,
                                java.lang.String conceptName)
Description copied from interface: EVSQuery
Checks if the specified concept has the specified inverse role and role value.

Specified by:
containsInverseRole in interface EVSQuery
Parameters:
vocabularyName - - Specifies the namespace
roleName - - role name
roleValue - - role value
conceptName - - concpet name
See Also:
EVSQuery.containsInverseRole(String, String, String, String)

containsRole

public void containsRole(java.lang.String vocabularyName,
                         java.lang.String roleName,
                         java.lang.String roleValue,
                         java.lang.String conceptName)
Description copied from interface: EVSQuery
Checks if the specified concept has the specified role and role value.

Specified by:
containsRole in interface EVSQuery
Parameters:
vocabularyName - - Specifies the namespace
roleName - - role name
roleValue - - role value
conceptName - - concept name
See Also:
EVSQuery.containsRole(String, String, String, String)

getAllAssociationTypes

public void getAllAssociationTypes(java.lang.String vocabularyName)
Description copied from interface: EVSQuery
Gets all associationTypes from a given namespace

Specified by:
getAllAssociationTypes in interface EVSQuery
Parameters:
vocabularyName - - Specifies the namespace
See Also:
EVSQuery.getAllAssociationTypes(String)

getAllConceptAssociationQualifierTypes

public void getAllConceptAssociationQualifierTypes(java.lang.String vocabularyName)
Description copied from interface: EVSQuery
Retrievs the name of all concecpt association quailifer types from the specified namespace

Specified by:
getAllConceptAssociationQualifierTypes in interface EVSQuery
Parameters:
vocabularyName - - Specifies the namespace
See Also:
EVSQuery.getAllConceptAssociationQualifierTypes(String)

getAllConceptAssociationTypes

public void getAllConceptAssociationTypes(java.lang.String vocabularyName)
Description copied from interface: EVSQuery
Retrievs the name of all concecpt association types from the specified namespace

Specified by:
getAllConceptAssociationTypes in interface EVSQuery
Parameters:
vocabularyName - - Specifies the namespace
See Also:
EVSQuery.getAllConceptAssociationTypes(String)

getAllConceptPropertyQualifierTypes

public void getAllConceptPropertyQualifierTypes(java.lang.String vocabularyName)
Description copied from interface: EVSQuery
Retrievs the name of all concecpt property qualifier types from the specified namespace

Specified by:
getAllConceptPropertyQualifierTypes in interface EVSQuery
Parameters:
vocabularyName - - Specifies the namespace
See Also:
EVSQuery.getAllConceptPropertyQualifierTypes(String)

getAllConceptPropertyTypes

public void getAllConceptPropertyTypes(java.lang.String vocabularyName)
Description copied from interface: EVSQuery
Retrievs the name of all concecpt property types from the specified namespace

Specified by:
getAllConceptPropertyTypes in interface EVSQuery
Parameters:
vocabularyName - - Specifies the namespace
See Also:
EVSQuery.getAllConceptPropertyTypes(String)

getAllLicenses

public void getAllLicenses(java.lang.String vocabularyName,
                           java.lang.String condition)
Description copied from interface: EVSQuery
Gets all licenses from the specified namespace

Specified by:
getAllLicenses in interface EVSQuery
Parameters:
vocabularyName - - Specifies the namespace
condition - - Specifies the value for a condition parameter
See Also:
EVSQuery.getAllLicenses(String, String)

getAllPropertyTypes

public void getAllPropertyTypes(java.lang.String vocabularyName)
Description copied from interface: EVSQuery
Gets all the property types from a specified namespace

Specified by:
getAllPropertyTypes in interface EVSQuery
Parameters:
vocabularyName - - specfifies the namespace
See Also:
EVSQuery.getAllPropertyTypes(String)

getAllQualifierTypes

public void getAllQualifierTypes(java.lang.String vocabularyName)
Description copied from interface: EVSQuery
Gets all qualifier types from the specified namespace

Specified by:
getAllQualifierTypes in interface EVSQuery
Parameters:
vocabularyName - - Specifies the namespace
See Also:
EVSQuery.getAllQualifierTypes(String)

getAllRoleNames

public void getAllRoleNames(java.lang.String vocabularyName)
Description copied from interface: EVSQuery
Gets all the role names from the specified namespace

Specified by:
getAllRoleNames in interface EVSQuery
Parameters:
vocabularyName - - Specifies the namespace
See Also:
EVSQuery.getAllRoleNames(String)

getAllSubConceptCodes

public void getAllSubConceptCodes(java.lang.String vocabularyName,
                                  java.lang.String conceptCode)
Description copied from interface: EVSQuery
Gets all the sub concept codes for the specified concept from a given namespace

Specified by:
getAllSubConceptCodes in interface EVSQuery
Parameters:
vocabularyName - - Specifies the namespace
conceptCode - - Specifies the concept code
See Also:
EVSQuery.getAllSubConceptCodes(String, String)

getAllSubConceptNames

public void getAllSubConceptNames(java.lang.String vocabularyName,
                                  java.lang.String conceptName)
Description copied from interface: EVSQuery
Gets all the sub concept names for the specified concept from a given namespace

Specified by:
getAllSubConceptNames in interface EVSQuery
Parameters:
vocabularyName - - Specifies the namespace
conceptName - - Specifies the concept name
See Also:
EVSQuery.getAllSubConceptNames(String, String)

getAllSynonymTypes

public void getAllSynonymTypes(java.lang.String vocabularyName)
Description copied from interface: EVSQuery
Gets all synonym types from a given namespace

Specified by:
getAllSynonymTypes in interface EVSQuery
Parameters:
vocabularyName - - Specifies the namespace
See Also:
EVSQuery.getAllSynonymTypes(String)

getAllTermAssociationQualifierTypes

public void getAllTermAssociationQualifierTypes(java.lang.String vocabularyName)
Description copied from interface: EVSQuery
Gets all the term-association qualifier types from a given namespace

Specified by:
getAllTermAssociationQualifierTypes in interface EVSQuery
Parameters:
vocabularyName - - Specifies the namespace
See Also:
EVSQuery.getAllTermAssociationQualifierTypes(String)

getAllTermPropertyQualifierTypes

public void getAllTermPropertyQualifierTypes(java.lang.String vocabularyName)
Description copied from interface: EVSQuery
Gets all the term-property qualifier types from a given namespace

Specified by:
getAllTermPropertyQualifierTypes in interface EVSQuery
Parameters:
vocabularyName - - Specifies the namespace
See Also:
EVSQuery.getAllTermPropertyQualifierTypes(String)

getAllTermPropertyTypes

public void getAllTermPropertyTypes(java.lang.String vocabularyName)
Description copied from interface: EVSQuery
Gets all the term-property types from a given namespace

Specified by:
getAllTermPropertyTypes in interface EVSQuery
Parameters:
vocabularyName - - Specifies the namespace
See Also:
EVSQuery.getAllTermPropertyTypes(String)

getParentConcepts

public void getParentConcepts(java.lang.String vocabularyName,
                              java.lang.String conceptName,
                              boolean inputFlag)
Retrievs all the parent DescLogicConcepts for a given conceptName

Specified by:
getParentConcepts in interface EVSQuery
Parameters:
vocabularyName - - Specifies the vocabulary name
conceptName - - Specifies the conceptName
inputFlag - - If the input parameter is a concpeName inputFlag should be false If the input parameter is a conceptCode this value should be true.

getChildConcepts

public void getChildConcepts(java.lang.String vocabularyName,
                             java.lang.String conceptName,
                             boolean inputFlag)
Retrievs all the child DescLogicConcepts for a given conceptName

Specified by:
getChildConcepts in interface EVSQuery
Parameters:
vocabularyName - - Specifies the vocabulary name
conceptName - - Specifies the conceptName
inputFlag - - If the input parameter is a concpeName inputFlag should be false If the input parameter is a conceptCode this value should be true.

hasParents

public void hasParents(java.lang.String vocabularyName,
                       java.lang.String conceptName)
Returns true if a given concept has a parent

Specified by:
hasParents in interface EVSQuery
Parameters:
vocabularyName - - Specifies the vocabulary name
conceptName - - Specifies the conceptName

hasChildren

public void hasChildren(java.lang.String vocabularyName,
                        java.lang.String conceptName)
Returns true if a given concept has a child

Specified by:
hasChildren in interface EVSQuery
Parameters:
vocabularyName - - Specifies the vocabulary name
conceptName - - Specifies the conceptName

fetchDTSProperties

public void fetchDTSProperties(java.lang.String vocabularyName,
                               java.lang.String term)
Description copied from interface: EVSQuery
Gets the properties of a given concept from the specified namespace

Specified by:
fetchDTSProperties in interface EVSQuery
Parameters:
vocabularyName - - Specifies the namespace
term - - Specifies the concept name
See Also:
EVSQuery.fetchDTSProperties(String, String)

fetchTermAssociations

public void fetchTermAssociations(java.lang.String vocabularyName,
                                  java.lang.String term)
Description copied from interface: EVSQuery
Fetchs term association data for a given concept from the specified namespace

Specified by:
fetchTermAssociations in interface EVSQuery
Parameters:
vocabularyName - - Specifies the namespace
term - - Specifies the concept name
See Also:
EVSQuery.fetchTermAssociations(String, String)

getConceptNameByCode

public void getConceptNameByCode(java.lang.String vocabularyName,
                                 java.lang.String conceptCode)
Description copied from interface: EVSQuery
Gets the concept name for the specified concept code

Specified by:
getConceptNameByCode in interface EVSQuery
Parameters:
vocabularyName - - specifies the namespace
conceptCode - - specifies the concept code
See Also:
EVSQuery.getConceptNameByCode(String, String)

getDescLogicConcept

public void getDescLogicConcept(java.lang.String vocabularyName,
                                java.lang.String conceptName,
                                boolean inputFlag)
Gets a DescLogicConcept for a given conceptName or concept code

Specified by:
getDescLogicConcept in interface EVSQuery
Parameters:
conceptName - - Specifies the conceptName or concept code
inputFlag - - If a concept code is entered this value is a Boolean.TRUE or if a concept name has been entered this value should be Boolean.FALSE