The Current State of CTS2
(Compared to the LexEVS API based on the Draft Standard for Trial Use)
The CTS2 REST API in LexEVS 6.1
The OMG CTS2 1.1 Specification is written as a REST based architecture. It can be implemented as a minimal set of modules as a result.
CodeSystemCatalogVersions Read
Returns a set of CodeSystemVersions
http://bmidev4:5555/cts2/codesystemversions
Output
CodeSystemVersions Query
Returns a set of CodeSystemVersions based on a text match
http://bmidev4:5555/cts2/codesystemversions?matchvalue=nci_thesaurus&filtercomponent=resourceName
Output
CodeSystemVersion Read
Returns a specific code system version
http://bmidev4:5555/cts2/codesystem/NCI_Thesaurus/version/10.07e
Output
Code System Entities
http://bmidev4:5555/cts2/codesystem/NCI_Thesaurus/version/10.10a/entities
Output
<EntityDirectory xmlns="http://schema.omg.org/spec/CTS2/1.0/Entity" xmlns:core="http://schema.omg.org/spec/CTS2/1.0/Core" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"xsi:schemaLocation="http://schema.omg.org/spec/CTS2/1.0/Entity http://www.omg.org/spec/cts2/201206/entity/Entity.xsd" complete="PARTIAL" numEntries="50"next="http://bmidev4:5555/cts2/codesystem/NCI_Thesaurus/version/10.10a/entities?page=1&maxtoreturn=50"> <core:heading> <core:resourceRoot>codesystem/NCI_Thesaurus/version/10.10a/entities</core:resourceRoot> <core:resourceURI> http://bmidev4:5555/cts2/codesystem/NCI_Thesaurus/version/10.10a/entities </core:resourceURI> <core:accessDate>2013-09-13T15:33:42.494-05:00</core:accessDate> </core:heading> <entry about="http://ncicb.nci.nih.gov/xml/owl/EVS/Thesaurus.owl#C33945"> <core:name> <core:namespace>NCI_Thesaurus</core:namespace> <core:name>C33945</core:name> </core:name> <core:knownEntityDescription href="http://bmidev4:5555/cts2/codesystem/NCI_Thesaurus/version/10.10a/entity/C33945"> <core:describingCodeSystemVersion> <core:version href="http://bmidev4:5555/cts2/codesystem/NCI_Thesaurus/version/10.10a">NCI_Thesaurus-10.10a</core:version> <core:codeSystem uri="http://ncicb.nci.nih.gov/xml/owl/EVS/Thesaurus.owl#">NCI_Thesaurus</core:codeSystem> </core:describingCodeSystemVersion> <core:designation>Protein AF-9</core:designation> </core:knownEntityDescription> </entry> <entry about="http://ncicb.nci.nih.gov/xml/owl/EVS/Thesaurus.owl#R138"> <core:name> <core:namespace>NCI_Thesaurus</core:namespace> <core:name>R138</core:name> </core:name> <core:knownEntityDescription href="http://bmidev4:5555/cts2/codesystem/NCI_Thesaurus/version/10.10a/entity/R138"> <core:describingCodeSystemVersion> <core:version href="http://bmidev4:5555/cts2/codesystem/NCI_Thesaurus/version/10.10a">NCI_Thesaurus-10.10a</core:version> <core:codeSystem uri="http://ncicb.nci.nih.gov/xml/owl/EVS/Thesaurus.owl#">NCI_Thesaurus</core:codeSystem> </core:describingCodeSystemVersion> </core:knownEntityDescription> </entry> <entry about="http://ncicb.nci.nih.gov/xml/owl/EVS/Thesaurus.owl#C91509"> <core:name> <core:namespace>NCI_Thesaurus</core:namespace> <core:name>C91509</core:name> </core:name> <core:knownEntityDescription href="http://bmidev4:5555/cts2/codesystem/NCI_Thesaurus/version/10.10a/entity/C91509"> <core:describingCodeSystemVersion> <core:version href="http://bmidev4:5555/cts2/codesystem/NCI_Thesaurus/version/10.10a">NCI_Thesaurus-10.10a</core:version> <core:codeSystem uri="http://ncicb.nci.nih.gov/xml/owl/EVS/Thesaurus.owl#">NCI_Thesaurus</core:codeSystem> </core:describingCodeSystemVersion> <core:designation>ABC Transporter Pathway</core:designation> </core:knownEntityDescription> </entry>
Enitity Read
http://bmidev4:5555/cts2/codesystem/NCI_Thesaurus/version/10.10a/entity/C3399
<EntityDescriptionMsg xmlns="http://schema.omg.org/spec/CTS2/1.0/Entity" xmlns:core="http://schema.omg.org/spec/CTS2/1.0/Core" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://schema.omg.org/spec/CTS2/1.0/Entity http://www.omg.org/spec/cts2/201206/entity/Entity.xsd"> <core:heading> <core:resourceRoot>codesystem/NCI_Thesaurus/version/10.10a/entity/C3399</core:resourceRoot> <core:resourceURI>http://bmidev4:5555/cts2/codesystem/NCI_Thesaurus/version/10.10a/entity/C3399</core:resourceURI> <core:accessDate>2013-09-13T15:41:14.480-05:00</core:accessDate> </core:heading> <EntityDescription> <namedEntity about="http://ncicb.nci.nih.gov/xml/owl/EVS/Thesaurus.owl#C3399" entryState="ACTIVE"> <entityID> <core:namespace>NCI_Thesaurus</core:namespace> <core:name>C3399</core:name> </entityID> <describingCodeSystemVersion> <core:version href="http://bmidev4:5555/cts2/codesystem/NCI_Thesaurus/version/10.10a">NCI_Thesaurus-10.10a</core:version> <core:codeSystem uri="http://ncicb.nci.nih.gov/xml/owl/EVS/Thesaurus.owl#">NCI_Thesaurus</core:codeSystem> </describingCodeSystemVersion> <designation designationRole="ALTERNATIVE"> <core:value>SWELLING</core:value> </designation> <designation designationRole="ALTERNATIVE"> <core:value>Swelling</core:value> </designation> <designation designationRole="ALTERNATIVE"> <core:value>Swelling</core:value> </designation> <designation designationRole="PREFERRED"> <core:value>Swelling</core:value> </designation> <definition definitionRole="NORMATIVE"> <core:value>Enlargement; expansion in size; sign of inflammation</core:value> </definition> <property> <core:predicate uri="http://ncicb.nci.nih.gov/xml/owl/EVS/Thesaurus.owl#Contributing_Source"> <core:namespace>NCI_Thesaurus</core:namespace> <core:name>Contributing_Source</core:name> </core:predicate> <core:value> <core:literal> <core:value>FDA</core:value> </core:literal> </core:value> </property> <property> <core:predicate uri="http://ncicb.nci.nih.gov/xml/owl/EVS/Thesaurus.owl#FDA_Table"> <core:namespace>NCI_Thesaurus</core:namespace> <core:name>FDA_Table</core:name> </core:predicate> <core:value> <core:literal> <core:value>Patient Code (Appendix B)</core:value> </core:literal> </core:value> </property> <property> <core:predicate uri="http://ncicb.nci.nih.gov/xml/owl/EVS/Thesaurus.owl#Legacy_Concept_Name"> <core:namespace>NCI_Thesaurus</core:namespace> <core:name>Legacy_Concept_Name</core:name> </core:predicate> <core:value> <core:literal> <core:value>Swelling</core:value> </core:literal> </core:value> </property> <property> <core:predicate uri="http://ncicb.nci.nih.gov/xml/owl/EVS/Thesaurus.owl#primitive"> <core:namespace>NCI_Thesaurus</core:namespace> <core:name>primitive</core:name> </core:predicate> <core:value> <core:literal> <core:value>true</core:value> </core:literal> </core:value> </property> <property> <core:predicate uri="http://ncicb.nci.nih.gov/xml/owl/EVS/Thesaurus.owl#Semantic_Type"> <core:namespace>NCI_Thesaurus</core:namespace> <core:name>Semantic_Type</core:name> </core:predicate> <core:value> <core:literal> <core:value>Sign or Symptom</core:value> </core:literal> </core:value> </property> <property> <core:predicate uri="http://ncicb.nci.nih.gov/xml/owl/EVS/Thesaurus.owl#UMLS_CUI"> <core:namespace>NCI_Thesaurus</core:namespace> <core:name>UMLS_CUI</core:name> </core:predicate> <core:value> <core:literal> <core:value>C0038999</core:value> </core:literal> </core:value> </property> <subjectOf>http://bmidev4:5555/cts2/codesystem/NCI_Thesaurus/version/10.10a/entity/C3399/subjectof</subjectOf> <targetOf>http://bmidev4:5555/cts2/codesystem/NCI_Thesaurus/version/10.10a/entity/C3399/targetof</targetOf> <parent uri="http://ncicb.nci.nih.gov/xml/owl/EVS/Thesaurus.owl#C4876" href="http://bmidev4:5555/cts2/codesystem/NCI_Thesaurus/version/10.10a/entity/C4876"> <core:namespace>NCI_Thesaurus</core:namespace> <core:name>C4876</core:name> </parent> <children>http://bmidev4:5555/cts2/codesystem/NCI_Thesaurus/version/10.10a/entity/C3399/children</children> <entityType uri="http://www.w3.org/2002/07/owl#Class"> <core:namespace>owl</core:namespace> <core:name>Class</core:name> </entityType> </namedEntity> </EntityDescription> </EntityDescriptionMsg>
Entity Query
http://bmidev4:5555/cts2/codesystem/NCI_Thesaurus/version/10.10a/entities?matchvalue=swelling
Output
Association Read
Association Query
Map Read
Map Query
ResolvedValueSet Read
ResolvedValueSet Query
ResolvedValueSetDefinition Read
ResolvedValueSetDefinition Query