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.

...

  • EVSQuery and EVSQueryImpl
  • EVSQueryDAOImpl - Not a public API.
  • EVSWSDAOImpl - Not a public API.
  • EVSWSQuery - Not a public API.
  • DLBAdapter - Not a public API.
  • DLBWrapper (DLBWrapper is extended by DLBAdapter and it is not been used anywhere else) - Not a public API.
  • EVSApplicationService and EVSApplicationServiceImpl

EVSApplicationService - evsSearch and search - and LexEVS Counterparts

EVSApplicationService

evsSearch and search

These methods are replaced either by the LexEVS API or the LexEVS caCORE SDK Data Service 'search' method. This uses the standard caCORE SDK API. More information about the caCORE SDK can be obtained on the caCORE SDK site.

EVSQuery Methods and LexEVS Counterparts

...

getTree

All 'getTree' functionality is replaced by the LexEVS CodedNodeGraph API. For example:

...

  • org.LexGrid.LexBIG.example.BuildTreeForCode
  • org.LexGrid.LexBIG.example.ListHierarchy
  • org.LexGrid.LexBIG.example.ListHierarchyByCode
  • org.LexGrid.LexBIG.example.ListHierarchyPathToRoot

searchDescLogicConcepts

LexEVS provides many ways to restrict the result of a query. The method 'searchDescLogicConcepts' searches for matches based on a text String. To conduct similar queries using LexEVS, use the CodedNodeSet API.

...

  • org.LexGrid.LexBIG.example.SoundsLike
  • org.LexGrid.LexBIG.example.FindCodesForDescription

getConceptWithPropertyMatching

See example above. For Property-specific matching, see the following method in the CodedNodeSet API

...

This will ensure that each of the results will have at least one Property that matches the supplied criteria.

isSubConcept

In LexEVS, use the CodedNodeGraph API to find the immediate relations of a Concept.
For instance:

...

Code Block
 Boolean areCodesRelated(NameAndValue association, ConceptReference 
sourceCode, ConceptReference targetCode, boolean directOnly) 

isRetired

Use the LexBIGServiceConvenienceMethods API method 'isCodeRetired' method.

getDescendants

Use the LexEVS HistoryService API

...

Code Block
 NCIChangeEventList changeEventList = historySvc.getDescendants
(ConceptReference conceptReference);

getPropertyValues

Through the Entity class, all Properties (Presentations, Definitions, etc) are available.

...

  • To find the 'Comments' of a given Entity:
    Code Block
        Entity entity = ....;
        Comment[] comments= entity.getComment();
      
  • To find the non-classified Properties of a given Entity:
    Code Block
        Entity entity = ....;
        Property[] properties = entity.getProperties();
      

getAncestors

Use the LexEVS HistoryService API

...

Code Block
 NCIChangeEventList changeEventList = historySvc.getAncestors
(ConceptReference conceptReference);

getSubConcepts

Use the CodedNodeGraph API to find the immediate relations of a Concept.
For instance:

...

  • org.LexGrid.LexBIG.example.FindRelatedCodes
  • org.LexGrid.LexBIG.example.FindPropsAndAssocForCode

getSuperConcepts

See above 'getSubConcepts' – setting your resolve direction (boolean resolveForward, boolean resolveBackward) will determine if sub-concepts or super-concepts are resolved.

getPropertiesByConceptCode

To find the Properties of a given code, for example, code 'C1234' in the 'NCI Thesaurus' ontology - first obtain a 'CodedNodeSet' from the 'NCI Thesaurus' ontology:

...

  • org.LexGrid.LexBIG.example.FindPropsAndAssocForCode

getVocabularyNames

Use the 'LexBIGService' API method 'getSupportedCodingSchemes' - and extract the Names (local name, registered name, etc...) as needed.

getAllVocabularies

Use the 'LexBIGService' API method 'getSupportedCodingSchemes'.

getVocabularyByName

Use 'LexBIGService' API method 'resolveCodingScheme'.

getVocabularyVersion

Use 'LexBIGService' API method 'resolveCodingScheme' and extract the 'representsVersion' attribute from the Resulting CodingScheme.

getConceptEditAction

Use the LexEVS HistoryService API

...

Code Block
 NCIChangeEventList changeEventList = historySvc.getEditActionList(ConceptReference conceptReference, 
CodingSchemeVersion codingSchemeVersion);

getRootConcepts

Use 'LexBIGServiceConvenienceMethods' API method 'getHierarchyRoots' or 'getHierarchyRootSet'

searchSourceByCode

Use 'CodedNodeSet' API - adding a 'restrictToCodes' restriction.

...

Code Block
 ResolvedConceptReferenceList matches = cns.resolveToList(null, null, 
null, 1);

searchSourceByAtomCode

In the NCI MetaThesaurus, fidning the 'source' of an 'Atom' is equivalent to finding the 'source' of a given Property of an Entity. Each CUI (which is equivalent to an Entity in LexEVS) may contain several Presentation Properties (Atoms or AUI's of that CUI). Each of these Presentation Properties is Qualified by a 'source-code' Qualifier, which reflects the code of this Atom in its original source, and a 'source' qualifier, which states the source itself that this Atom came from.

getMetaConceptNameByCode

To find the Properties of a given code, for example, code 'C1234567' in the 'NCI MetaThesaurus' ontology - first obtain a 'CodedNodeSet' from the 'NCI MetaThesaurus' ontology:

...

To see the name of the code, use 'getEntityDescription' on the resulting ResolvedConceptReference. The 'EntityDescription' will always be equal to the Preferred Presentation in the Default Language.

getMetaSources

Use the 'LexBIGService' API method 'getMappings'.
Extract for this the Supported Association Qualifiers using the 'getSupportedSource' method.

Info
titleNote

This can be applied to any Coding Scheme, not just the NCI MetaThesaurus.

getChildren

Use the 'CodedNodeGraph' API.

...

  • org.LexGrid.LexBIG.example.FindRelatedCodes
  • org.LexGrid.LexBIG.example.FindPropsAndAssocForCode

getParent

Use the 'CodedNodeGraph' API.

...

  • org.LexGrid.LexBIG.example.FindRelatedCodes
  • org.LexGrid.LexBIG.example.FindPropsAndAssocForCode

getBroaderConcepts

Use the CodedNodeGraph API to find the immediate relations of a Concept. Resolve forward or backwards based on the hierarchy structure of the ontology.

...

  • org.LexGrid.LexBIG.example.FindRelatedCodes
  • org.LexGrid.LexBIG.example.FindPropsAndAssocForCode

getNarrowerConcepts

Use the CodedNodeGraph API to find the immediate relations of a Concept. Resolve forward or backwards based on the hierarchy structure of the ontology.

...

  • org.LexGrid.LexBIG.example.FindRelatedCodes
  • org.LexGrid.LexBIG.example.FindPropsAndAssocForCode

getRelatedConcepts

Use the CodedNodeGraph API to find the immediate relations of a Concept.

...

  • org.LexGrid.LexBIG.example.FindRelatedCodes
  • org.LexGrid.LexBIG.example.FindPropsAndAssocForCode

containsInverseRole

Use the LexBIGServiceConvenienceMethods API method 'isReverseName' method.

containsRole

Use the LexBIGServiceConvenienceMethods API method 'isForwardName' method.

getAllAssociationTypes

Use the 'LexBIGService' API method 'getMappings'.
Extract for this the Supported Associations using the 'getSupportedAssociation' method.

getAllConceptAssociationQualifierTypes

Use the 'LexBIGService' API method 'getMappings'.
Extract for this the Supported Association Qualifiers using the 'getSupportedAssociationQualifier' method.

getAllConceptAssociationTypes

Use the 'LexBIGService' API method 'getMappings'.
Extract for this the Supported Associations using the 'getSupportedAssociation' method.

getAllConceptPropertyQualifierTypes

Use the 'LexBIGService' API method 'getMappings'.
Extract for this the Supported Property Qualifiers using the 'getSupportedPropertyQualifier' method.

getAllConceptPropertyTypes

Use the 'LexBIGService' API method 'getMappings'.
Extract for this the Supported Properties using the 'getSupportedProperty' method.

getAllLicenses

Use the 'LexBIGService' API method 'resolveCodingSchemeCopyright'. To get the Copyright for every loaded ontology, do this for each one.

getAllPropertyTypes

Use the 'LexBIGService' API method 'getMappings'.
Extract for this the Supported Properties using the 'getSupportedProperty' method.

getAllQualifierTypes

Use the 'LexBIGService' API method 'getMappings'.
Extract for this the Supported Property Qualifiers using the 'getSupportedPropertyQualifier' method.

getAllRoleNames

Use the 'LexBIGService' API method 'resolveCodingScheme'.
Once the CodingScheme Object is obtained, use the method 'getRelations'.

getAllSubConceptCodes

Use the CodedNodeGraph API to find the immediate relations of a Concept.

...

  • org.LexGrid.LexBIG.example.FindRelatedCodes
  • org.LexGrid.LexBIG.example.FindPropsAndAssocForCode

getAllSynonymTypes

Use the 'LexBIGService' API method 'getMappings'.
Extract for this the Supported Associations using the 'getSupportedAssociation' method.

Info
titleNote

Different ontologies may describe their 'Synonym' relations differently.

getAllTermAssociationQualifierTypes

Use the 'LexBIGService' API method 'getMappings'.
Extract for this the Supported Association Qualifiers using the 'getSupportedAssociationQualifier' method.

getAllTermPropertyQualifierTypes

Use the 'LexBIGService' API method 'getMappings'.
Extract for this the Supported Property Qualifiers using the 'getSupportedPropertyQualifier' method.

getAllTermPropertyTypes

Use the 'LexBIGService' API method 'getMappings'.
Extract for this the Supported Property using the 'getSupportedProperty' method.

getParentConcepts

Use the CodedNodeGraph API to find the immediate relations of a Concept.

...

  • org.LexGrid.LexBIG.example.FindRelatedCodes
  • org.LexGrid.LexBIG.example.FindPropsAndAssocForCode

getChildConcepts

Use the CodedNodeGraph API to find the immediate relations of a Concept.

...

  • org.LexGrid.LexBIG.example.FindRelatedCodes
  • org.LexGrid.LexBIG.example.FindPropsAndAssocForCode

hasParents

Use the CodedNodeGraph API to find the immediate relations of a Concept.

...

  • org.LexGrid.LexBIG.example.FindRelatedCodes
  • org.LexGrid.LexBIG.example.FindPropsAndAssocForCode

hasChildren

Use the CodedNodeGraph API to find the immediate relations of a Concept.

...

  • org.LexGrid.LexBIG.example.FindRelatedCodes
  • org.LexGrid.LexBIG.example.FindPropsAndAssocForCode

getDescLogicConcept

A 'DescLogicConcept' can be thought of as an 'Entity' in LexEVS. To obtain an Entity, use the CodedNodeSet API, restricting the query as necessary.

...

Code Block
 ResolvedConceptReferenceList matches = cns.resolveToList(null, null, null, 1);

getHistoryRecords

Use the HistoryService API 'getBaselines' and specify the required Data range.

...

Code Block
 SystemReleaseList systemReleaseList = historySvc.getBaselines(Date 
releasedAfter, Date releasedBefore);

getHistoryStartDate

Use the HistoryService API method 'getEarliestBaseline';

...

Code Block
 SystemRelease systemRelease = historySvc.getEarliestBaseline();

getHistoryEndDate

Use the HistoryService API method 'getLatestBaseline';

...

Code Block
 SystemRelease systemRelease = historySvc.getLatestBaseline();

getCodeActionChildren

Use the HistoryService API method 'getDescendants';
Obtain a the HistoryService API as follows:

...

Code Block
 NCIChangeEventList changeEventList = historySvc.getDescendants
(ConceptReference conceptReference);

getCodeActionParents

Use the HistoryService API method 'getAncestors';

...

Code Block
 NCIChangeEventList changeEventList = historySvc.getAncestors
(ConceptReference conceptReference);

getAssociationCollectionbyCode

Use the CodedNodeGraph API to find the immediate relations of a Concept.
For instance:

...

  • org.LexGrid.LexBIG.example.FindRelatedCodes
  • org.LexGrid.LexBIG.example.FindPropsAndAssocForCode

getSemanticTypeCollectionbyCui

Use 'CodedNodeSet' API - adding a 'restrictToCodes' restriction.

...

Once the ResolvedConceptReference has been obtained, extract the desired Properties and inspect the Qualifiers for the Semantic Type.

getQualifierCollectionbyName

Use 'CodedNodeSet' API - adding a 'restrictToCodes' restriction.

...

Info
titleNote

Associations between codes may also have Qualifiers.

getAtomCollectionbyCui

In LexEVS, a NCI MetaThesaurus CUI is represented by an Entity (with the CUI being the code for that Entity).
Atoms of that CUI are represented by 'Presentation'(s) of the Entity.

...

  • org.LexGrid.LexBIG.example.FindPropsAndAssocForCode

getSynonymCollectionbyCui

Use 'CodedNodeGraph' API - restricting to Synonym Associations. Note: Each ontology may describe their Synonym Associations differently.

...

  • org.LexGrid.LexBIG.example.FindRelatedCodes
  • org.LexGrid.LexBIG.example.FindPropsAndAssocForCode

getSourceCollectionbyCui

Use 'CodedNodeSet' API - adding a 'restrictToCodes' restriction.

...

Once the ResolvedConceptReference has been obtained, extract the desired Properties and inspect Source using 'getSource'.

getSemanticTypeCollectionbyCui

Use 'CodedNodeSet' API - adding a 'restrictToCodes' restriction.

...

Once the ResolvedConceptReference has been obtained, extract the desired Properties and inspect the Semantic Types. Semantic Types are held as Qualifiers to the Properties of an Entity.

getSourcebyDefinition

Use 'CodedNodeSet' API - adding a 'restrictToCodes' restriction.

...

Once the ResolvedConceptReference has been obtained, using 'getDefinition', extract the Definition Collection from the Entity. Then extract the source using 'getSource'

getDefinitionCollectionbyCui

Use 'CodedNodeSet' API - adding a 'restrictToCodes' restriction.

...

Once the ResolvedConceptReference has been obtained, use the 'getReferencedEntry' method to obtain the actual Entity. Using the 'getDefinition', extract the Definition Collection from the Entity.

getPropertyCollectionbyName

To find the Properties of a given code, for example, a code with a name of 'Heart' in the 'NCI Thesaurus' ontology - first obtain a 'CodedNodeSet' from the 'NCI Thesaurus' ontology:

...

  • org.LexGrid.LexBIG.example.FindPropsAndAssocForCode

getPropertyCollectionbyCode

To find the Properties of a given code, for example, code 'C1234' in the 'NCI Thesaurus' ontology - first obtain a 'CodedNodeSet' from the 'NCI Thesaurus' ontology:

...

  • org.LexGrid.LexBIG.example.FindPropsAndAssocForCode

fetchPropertyCollectionByCodes

See 'getPropertyCollectionbyCode;

getRoleCollectionbyCode

Use the CodedNodeGraph API to find the immediate relations of a Concept.

...

  • org.LexGrid.LexBIG.example.FindRelatedCodes
  • org.LexGrid.LexBIG.example.FindPropsAndAssocForCode

getInverseRoleCollectionbyCode

Use the CodedNodeGraph API to find the immediate relations of a Concept.

...

  • org.LexGrid.LexBIG.example.FindRelatedCodes
  • org.LexGrid.LexBIG.example.FindPropsAndAssocForCode

getInverseAssociationCollectionbyCode

Use the CodedNodeGraph API to find the immediate relations of a Concept.

...

  • org.LexGrid.LexBIG.example.FindRelatedCodes
  • org.LexGrid.LexBIG.example.FindPropsAndAssocForCode

getHasParentsbyCode

Either:

  • Use the 'LexBIGServiceConvenienceMethods' API method 'getHierarchyLevelPrev'
  • Use the CodedNodeGraph API to resolve the immediate Associations of a given code, and check if they exist.

getHasChildrenbyCode

Either:

  • Use the 'LexBIGServiceConvenienceMethods' API method 'getHierarchyLevelNext'
  • Use the CodedNodeGraph API to resolve the immediate Associations of a given code, and check if they exist.

getIsRetiredbyCode

Use the 'LexBIGServiceConvenienceMethods' API method 'isCodeRetired'

getLocalNames

Use the 'LexBIGService' API method 'getSupportedCodingSchemes' - and extract the Names (local name, registered name, etc...) as needed.

...