Page History
Scrollbar | ||
---|---|---|
|
...
Page info | ||||
---|---|---|---|---|
|
Section | ||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
LexEVS Data Services to be discontinued.
The caCORE type REST queries will be discontinued with the LexEVS 6.5 release. The CTS2 will replace the previous REST services. Please replace your old queries with the listed examples.
Get CodingScheme details
Note | ||
---|---|---|
| ||
If a version is not included then LexEVS will look for a version tagged as "PRODUCTION". If no such coding scheme exists then an error will be returned. |
Code Block | ||
---|---|---|
| ||
https://lexevsapi6:title} {section} {column:width=75%} {panel:title=Contents of this Page} {toc:minLevel=2} {panel} {column} {column} {Include:LexEVS Code Pages to Include} {column} {section} h2. LexEVS 6.0 Examples Differences from the 5.0 examples include: * The server name points to a different server at NCI where 6.0 is running * org.LexGrid.concepts.Concept has changed to org.LexGrid.concepts.Entity h3. Get CodingScheme details {note:title=Note}This query may not work if the coding scheme in the query is not tagged as the "PRODUCTION" coding scheme.{note} [http://lexevsapi60.nci.nih.gov/lexevsapi60lexevsapi64/GetHTMLGetXML?query=org.LexGrid.codingSchemes.CodingScheme&org.LexGrid.codingSchemes.CodingScheme&codingSchemeName=Zebrafish] {code}http |
Code Block | ||
---|---|---|
| ||
https://lexevsapi60lexevscts2.nci.nih.gov/lexevsapi60lexevscts2/GetHTMLcodesystemversions?query=org.LexGrid.codingSchemes.CodingScheme&org.LexGrid.codingSchemes.CodingScheme&codingSchemeName=Zebrafish{code} Note that you could also add a version to a URL targeting a matchvalue=Zebrafish&format=xml |
Note that you could also add a version to a URL targeting a specific load in LexEVS. The following example shows the form to target the November_24_2016 version of the Zebrafish terminology.
Code Block | ||
---|---|---|
| ||
https://lexevsapi6specific load in LexEVS. The following non-working example show the form to target the 1.2_June_14_2010 version of the Zebrafish terminology. {code}http://lexevsapi60.nci.nih.gov/lexevsapi60lexevsapi64/GetHTMLGetXML?query=org.LexGrid.codingSchemes.CodingScheme&org.LexGrid.codingSchemes.CodingScheme&codingSchemeName=Zebrafish&codingSchemeVersion=1.2November_June_14_2010{code} h3. Get Concept by Code [http://lexevsapi6024_2016 |
Code Block | ||
---|---|---|
| ||
https://lexevscts2.nci.nih.gov/lexevscts2/lexevsapi60/GetHTML?query=org.LexGrid.concepts.Entity&org.LexGrid.concepts.Entity\[@_entityCode=ZFA:0001234\]&codingSchemeName=Zebrafish] {code}http://lexevsapi60.nci.nih.gov/lexevsapi60/GetHTML?query=org.LexGrid.concepts.Entity&org.LexGrid.concepts.Entity[@_entityCode=ZFA:0001234]&codingSchemeName=Zebrafish{code} h3. Get Concept by Code with codesystem/Zebrafish/version/November_24_2016?format=xml |
The information can also be returned as JSON.
Code Block | ||
---|---|---|
| ||
https://lexevscts2wildcard [http://lexevsapi60.nci.nih.gov/lexevscts2/codesystem/NCI_Thesaurus/version/17.01e?format=json |
The GetHTML function is not supported in CTS2
Code Block | ||
---|---|---|
| ||
https://lexevsapi6lexevsapi60/GetHTML?query=org.LexGrid.concepts.Entity&org.LexGrid.concepts.Entity\[@_entityCode=ZFA:000123*\]&codingSchemeName=Zebrafish] {code}http://lexevsapi60.nci.nih.gov/lexevsapi60/GetHTML?query=org.LexGrid.concepts.Entity&org.LexGrid.concepts.Entity[@_entityCode=ZFA:000123*]&codingSchemeName=Zebrafish{code} h3. Get Concept by Code by EntityDescription [http://lexevsapi60.nci.nih.gov/lexevsapi60/GetHTML?query=org.LexGrid.concepts.Entity,org.LexGrid.commonTypes.EntityDescription&org.LexGrid.commonTypes.EntityDescription\[@_content=heart\]&codingSchemeName=Zebrafish] {code}http://lexevsapi60.nci.nih.gov/lexevsapi60lexevsapi64/GetHTML?query=org.LexGrid.concepts.Entity,org.LexGrid.commonTypes.EntityDescriptioncodingSchemes.CodingScheme&org.LexGrid.commonTypes.EntityDescription[@_content=heart]codingSchemes.CodingScheme&codingSchemeName=Zebrafish{code} h3. Get Concept by Code by EntityDescription with wildcard [ |
Get Concept by Code
Code Block | ||
---|---|---|
| ||
http://lexevsapi60lexevsapi6.nci.nih.gov/lexevsapi60lexevsapi64/GetHTMLGetXML?query=org.LexGrid.concepts.Entity,org.LexGrid.commonTypes.EntityDescription&org.LexGrid.commonTypes.EntityDescription\[@_content=he*rt*\]&codingSchemeName=Zebrafish] {code}http://lexevsapi60.nci.nih.gov/lexevsapi60/GetHTML?query=org.LexGrid.concepts.Entity,org.LexGrid.commonTypes.EntityDescription&org.LexGrid.commonTypes.EntityDescription[@_content=he*rt*entityCode=C33999]&codingSchemeName=Zebrafish{code} h3. Get Concept by Presentation [http://lexevsapi60NCI_Thesaurus |
Code Block | ||
---|---|---|
| ||
https://lexevscts2.nci.nih.gov/lexevscts2/codesystem/NCI_Thesaurus/entity/C33999 |
Get Concept by Code with wildcard - Not supported
Searching by code with wildcard is not supported in CTS2
Code Block |
---|
http://lexevsapi6lexevsapi60/GetHTML?query=Concept,Presentation,Text&Text\[@_content=heart\]&codingSchemeName=Zebrafish] {code}http://lexevsapi60.nci.nih.gov/lexevsapi60/GetHTML?query=Concept,Presentation,Text&Text[@_content=heart]&codingSchemeName=Zebrafish{code} h3. Get Concept by Presentation with wildcard [http://lexevsapi60.nci.nih.gov/lexevsapi60/GetHTML?query=Concept,Presentation,Text&Text\[@_content=heart*\]&codingSchemeName=Zebrafish] {code}http://lexevsapi60.nci.nih.gov/lexevsapi60/GetHTML?query=Concept,Presentation,Text&Text[@_content=heart*]&codingSchemeName=Zebrafish{code} h3. Get Concept by Definition with wildcard [http://lexevsapi60.nci.nih.gov/lexevsapi60/GetHTML?query=Concept,Definition,Text&Text\[@_content=Bilateral%20groups%20of%20cells*\]&codingSchemeName=Zebrafish] {code}http://lexevsapi60.nci.nih.gov/lexevsapi60lexevsapi64/GetHTMLGetXML?query=Concept,Definition,Text&Text[@_content=Bilateral%20groups%20of%20cells*]&codingSchemeName=Zebrafish{code} h3. Show Presentations of a Concept [http://lexevsapi60.nci.nih.gov/lexevsapi60/GetHTML?query=org.LexGrid.concepts.Presentation&org.LexGrid.concepts.Entity\[@_entityCode=ZFA:0001234\]&roleName=_presentationList&codingSchemeName=Zebrafish] {code}http://lexevsapi60.nci.nih.gov/lexevsapi60/GetHTML?query=org.LexGrid.concepts.Presentation&org.LexGrid.concepts.Entity[@_entityCode=ZFA:0001234]&roleName=_presentationList000123*]&codingSchemeName=Zebrafish{code} h3. Show Definitions of a Concept [http://lexevsapi60.nci.nih.gov/lexevsapi60/GetHTML?query=org.LexGrid.concepts.Definition&org.LexGrid.concepts.Entity\[@_entityCode=ZFA:0001234\]&roleName=_definitionList&codingSchemeName=Zebrafish] {code}http://lexevsapi60.nci.nih.gov/lexevsapi60/GetHTML?query=org.LexGrid.concepts.Definition&org.LexGrid.concepts.Entity[@_entityCode=ZFA:0001234]&roleName=_definitionList&codingSchemeName=Zebrafish{code} h3. Show Supported Associations for a CodingScheme [http://lexevsapi60.nci.nih.gov/lexevsapi60/GetHTML?query=org.LexGrid.naming.SupportedAssociation&org.LexGrid.naming.SupportedAssociation&codingSchemeName=Zebrafish] {code}http://lexevsapi60.nci.nih.gov/lexevsapi60/GetHTML?query=org.LexGrid.naming.SupportedAssociation&org.LexGrid.naming.SupportedAssociation&codingSchemeName=Zebrafish{code} h2. LexEVS 5.0 Examples h3. Get CodingScheme details [http://lexevsapi.nci.nih.gov/lexevsapi50/GetHTML?query=org.LexGrid.codingSchemes.CodingScheme&org.LexGrid.codingSchemes.CodingScheme&codingSchemeName=Zebrafish] {code}http://lexevsapi.nci.nih.gov/lexevsapi50/GetHTML?query=org.LexGrid.codingSchemes.CodingScheme&org.LexGrid.codingSchemes.CodingScheme&codingSchemeName=Zebrafish{code} Note that you could also add a version to a URL targeting a specific load in LexEVS. For example, you might use this if you wanted to target the 1.2_June_14_2010 version of the Zebrafish terminology. {code}http://lexevsapi.nci.nih.gov/lexevsapi50/GetHTML?query=org.LexGrid.codingSchemes.CodingScheme&org.LexGrid.codingSchemes.CodingScheme&codingSchemeName=Zebrafish&codingSchemeVersion=1.2_June_14 |
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 | ||
---|---|---|
| ||
http://lexevsapi6_2010{code} h3. Get Concept by Code [http://lexevsapi.nci.nih.gov/lexevsapi50lexevsapi64/GetHTMLGetXML?query=org.LexGrid.concepts.Concept&Entity,org.LexGrid.concepts.Concept\[@_entityCode=ZFA:0001234\]&codingSchemeName=Zebrafish] {code}http://lexevsapi.nci.nih.gov/lexevsapi50/GetHTML?query=org.LexGrid.concepts.ConceptcommonTypes.EntityDescription&org.LexGrid.conceptscommonTypes.ConceptEntityDescription[@_entityCodecontent=ZFA:0001234Heart]&codingSchemeName=Zebrafish{code} h3. Get Concept by Code with wildcard [http://lexevsapi.nci.nih.gov/lexevsapi50/GetHTML?query=org.LexGrid.concepts.Concept&org.LexGrid.concepts.Concept\[@_entityCode=ZFA:000123*\]&codingSchemeName=Zebrafish] {code}http://lexevsapi.nci.nih.gov/lexevsapi50/GetHTML?query=org.LexGrid.concepts.Concept&org.LexGrid.concepts.Concept[@_entityCode=ZFA:000123*]&codingSchemeName=Zebrafish{code} h3. Get Concept by Code by EntityDescription [http://lexevsapiNCI_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 | ||
---|---|---|
| ||
http://lexevscts2.nci.nih.gov/lexevscts2/lexevsapi50/GetHTML?query=org.LexGrid.concepts.Concept,org.LexGrid.commonTypes.EntityDescription&org.LexGrid.commonTypes.EntityDescription\[@_content=heart\]&codingSchemeName=Zebrafish] {code}http://lexevsapi.nci.nih.gov/lexevsapi50/GetHTML?query=org.LexGrid.concepts.Concept,org.LexGrid.commonTypes.EntityDescription&org.LexGrid.commonTypes.EntityDescription[@_content=heart]&codingSchemeName=Zebrafish{code}codesystem/NCI_Thesaurus/entities?matchvalue=Heart&matchalgorithm=exactMatch?format=xml |
Search for Concept with wildcard
Code Block |
---|
https://lexevsapi6 h3. Get Concept by Code by EntityDescription with wildcard [http://lexevsapi.nci.nih.gov/lexevsapi50lexevsapi64/GetHTMLGetXML?query=org.LexGrid.concepts.ConceptEntity,org.LexGrid.commonTypes.EntityDescription&org.LexGrid.commonTypes.EntityDescription\[@_content=heHe*rt*\]&codingSchemeName=Zebrafish]NCI_Thesaurus |
In CTS2 the match algorithm must be specified as luceneQuery in order to use wildcards.
Code Block |
---|
https {code}http://lexevsapilexevscts2.nci.nih.gov/lexevscts2/codesystem/NCI_Thesaurus/entities?matchalgorithm=luceneQuery&format=xml&matchvalue=He*rt |
Search for Concept by Presentation - Not fully supported
Code Block | ||
---|---|---|
| ||
http://lexevsapi6/lexevsapi50/GetHTML?query=org.LexGrid.concepts.Concept,org.LexGrid.commonTypes.EntityDescription&org.LexGrid.commonTypes.EntityDescription[@_content=he*rt*]&codingSchemeName=Zebrafish{code} h3. Get Concept by Presentation [http://lexevsapi.nci.nih.gov/lexevsapi50lexevsapi64/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 | ||
---|---|---|
| ||
] {code}http://lexevsapilexevscts2.nci.nih.gov/lexevsapi50/GetHTML?query=Concept,Presentation,Text&Text[@_content=heart]&codingSchemeName=Zebrafish{code} h3. Get Concept by Presentation with wildcard [http://lexevsapilexevscts2/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 |
---|
Zebrafis] {code}http://lexevsapilexevsapi6.nci.nih.gov/lexevsapi50lexevsapi64/GetHTML?query=Concept,Presentation,Text&Text[@_content=heart*]&codingSchemeName=Zebrafish{code} h3. Get Concept by Definition with |
As above, the user cannot specify that only Presentation properties should be searched, but this is the default.
Code Block |
---|
https://lexevscts2 wildcard [http://lexevsapi.nci.nih.gov/lexevsapi50/GetHTML?query=Concept,Definition,Text&Text\[@_content=Bilateral%20groups%20of%20cells/lexevscts2/codesystem/NCI_Thesaurus/entities?matchalgorithm=luceneQuery&format=xml&matchvalue=He*rt |
Get Concept by Definition with wildcard - Not supported
Code Block |
---|
*\]&codingSchemeName=Zebrafish] {code}http://lexevsapilexevsapi6.nci.nih.gov/lexevsapi50lexevsapi64/GetHTMLGetXML?query=Concept,Definition,Text&Text[@_content=Bilateral%20groups%20of%20cells*]&codingSchemeName=Zebrafish |
Show Presentations of a Concept - Not fully supported
Code Block |
---|
{code} h3. Show Presentations of a Concept [http://lexevsapilexevsapi6.nci.nih.gov/lexevsapi50lexevsapi64/GetHTMLGetXML?query=org.LexGrid.concepts.Presentation&org.LexGrid.concepts.Concept\Entity[@_entityCode=ZFA:0001234\]&roleName=_presentationList&codingSchemeName=Zebrafish] {code}http://lexevsapi.nci.nih |
CTS2 does not permit the user to specify what properties should be returned by a search. The Presentations will be returned within the body of results from an entity query.
Show Definitions of a Concept - Not fully supported
Code Block |
---|
http://lexevsapi6.gov/lexevsapi50/GetHTML?query=org.LexGrid.concepts.Presentation&org.LexGrid.concepts.Concept[@_entityCode=ZFA:0001234]&roleName=_presentationList&codingSchemeName=Zebrafish{code} h3. Show Definitions of a Concept [http://lexevsapi.nci.nih.gov/lexevsapi50lexevsapi64/GetHTMLGetXML?query=org.LexGrid.concepts.Definition&org.LexGrid.concepts.Concept\Entity[@_entityCode=ZFA:0001234\]&roleName=_definitionList&codingSchemeName=Zebrafish |
CTS2 does not permit the user to specify what properties should be returned by a search. The Definition will be returned within the body of results from an entity query.
Show Supported Associations for a CodingScheme - Not supported
CTS2 does allow the retrieval of specific associations attached to a given concept or coding scheme but does not support the listing of all supported associations
Code Block |
---|
http://lexevsapi6] {code}http://lexevsapi.nci.nih.gov/lexevsapi50/GetHTML?query=org.LexGrid.concepts.Definition&org.LexGrid.concepts.Concept[@_entityCode=ZFA:0001234]&roleName=_definitionList&codingSchemeName=Zebrafish{code} h3. Show Supported Associations for a CodingScheme [http://lexevsapi.nci.nih.gov/lexevsapi50lexevsapi64/GetHTMLGetXML?query=org.LexGrid.naming.SupportedAssociation&org.LexGrid.naming.SupportedAssociation&codingSchemeName=Zebrafish] {code}http://lexevsapi.nci.nih.gov/lexevsapi50/GetHTML?query=org.LexGrid.naming.SupportedAssociation&org.LexGrid.naming.SupportedAssociation&codingSchemeName=Zebrafish{code} {scrollbar:icons=false} |
caCORE to LexEVS XML Mapping
The results from CTS2 are formatted in the LexEVS model which varies somewhat from the caCORE model. This mapping spreadsheet was created to allow users to update their parsers to use the new format.
Scrollbar | ||
---|---|---|
|