NIH | National Cancer Institute | NCI Wiki  

Versions Compared

Key

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

...

Code Block
http://lexevsapi6.nci.nih.gov/lexevsapi64/GetXML?query=org.LexGrid.concepts.Entity&org.LexGrid.concepts.Entity[@_entityCode=ZFA:000123*]&codingSchemeName=Zebrafish

 

...


Search for Concept by EntityDescription - Not fully supported

The old DataServices performed a strict exact match.  This query will return only one result.  It also specifies to only search the EntityDescription.

Code Block
titleGet Search for Concept by Entity Description 6.4
http://lexevsapi6.nci.nih.gov/lexevsapi64/GetXML?query=org.LexGrid.concepts.Entity,org.LexGrid.commonTypes.EntityDescription&org.LexGrid.commonTypes.EntityDescription[@_content=Heart]&codingSchemeName=NCI_Thesaurus

CTS2 does a tokenized exact match.  A concept where any one token is an exact match will be included in the result set.  As a result, this returns multiple concepts.  In addition, CTS2 does not support specifying what value to search, so looks at all presentation properties, not just the EntityDescription.

Code Block
titleGet Search for Concept by Entity Description CTS2
http://lexevscts2.nci.nih.gov/lexevscts2/codesystem/NCI_Thesaurus/entities?matchvalue=Heart&matchalgorithmatchalgorithm=exactMatch?format=xml

...

Search for Concept with wildcard

Code Block
https://lexevsapi6.nci.nih.gov/lexevsapi64/GetXML?query=org.LexGrid.concepts.Entity,org.LexGrid.commonTypes.EntityDescription&org.LexGrid.commonTypes.EntityDescription[@_content=He*rt*]&codingSchemeName=NCI_Thesaurus

In CTS2 the match algorithm must be specified as luceneQuery in order to use wildcards.

Code Block
https://lexevscts2.nci.nih.gov/lexevscts2/codesystem/NCI_Thesaurus/version/NCI_Thesaurus-17.01e/entities?matchalgorithm=luceneQuery&format=xml&matchvalue=He*rt

...

Search for Concept by Presentation - Not fully supported

Code Block
titleSearch for Concept by Presentation - 6.4
http://

...

lexevsapi6.nci.nih.gov/

...

lexevsapi64/GetHTML?query=Concept,Presentation,Text&Text

...

[@_content=heart

...

]&codingSchemeName=Zebrafish

CTS2 by default searches all presentation properties, so this use case is coincidentally supported.  However CTS2 does not allow the user to specifically choose what is searched. 

Code Block
titleSearch for Concept CTS2
http://lexevsapi60lexevscts2.nci.nih.gov/lexevsapi60/GetHTML?query=Concept,Presentation,Text&Text[@_content=heart]&codingSchemeName=Zebrafish

...

/lexevscts2/codesystem/NCI_Thesaurus/entities?matchvalue=Heart&matchalgorithm=exactMatch?format=xml


Search for Concept by Presentation with wildcard - Not fully supported

http://lexevsapi60.nci.nih.gov/lexevsapi60/GetHTML?query=Concept,Presentation,Text&Text\[@_content=heart*\]&codingSchemeName=Zebrafish

Code Block
http://lexevsapi60.nci.nih.gov/lexevsapi60/GetHTML?query=Concept,Presentation,Text&Text[@_content=heart*]&codingSchemeName=Zebrafish

As above, the user cannot specify the only Presentation properties should be searched, but this is the default.

Code Block
https://lexevscts2.nci.nih.gov/lexevscts2/codesystem/NCI_Thesaurus/entities?matchalgorithm=luceneQuery&format=xml&matchvalue=He*rt


Get Concept by Definition with wildcard - Not Supported

http://lexevsapi60.nci.nih.gov/lexevsapi60/GetHTML?query=Concept,Definition,Text&Text\[@_content=Bilateral%20groups%20of%20cells*\]&codingSchemeName=Zebrafish

Code Block
http://lexevsapi60.nci.nih.gov/lexevsapi60/GetHTML?query=Concept,Definition,Text&Text[@_content=Bilateral%20groups%20of%20cells*]&codingSchemeName=Zebrafish

Show Presentations of a ConceptConcept 

http://lexevsapi60.nci.nih.gov/lexevsapi60/GetHTML?query=org.LexGrid.concepts.Presentation&org.LexGrid.concepts.Entity\[@_entityCode=ZFA:0001234\]&roleName=_presentationList&codingSchemeName=Zebrafish

Code Block
http://lexevsapi60.nci.nih.gov/lexevsapi60/GetHTML?query=org.LexGrid.concepts.Presentation&org.LexGrid.concepts.Entity[@_entityCode=ZFA:0001234]&roleName=_presentationList&codingSchemeName=Zebrafish

Show Definitions of a Concept - Not Supported

http://lexevsapi60.nci.nih.gov/lexevsapi60/GetHTML?query=org.LexGrid.concepts.Definition&org.LexGrid.concepts.Entity\[@_entityCode=ZFA:0001234\]&roleName=_definitionList&codingSchemeName=Zebrafish

...