api_operations | R Documentation |
Low-level wrapper functions based on httr for interfacing with the operations built in the Snowstorm API
api_concept( conceptId, endpoint = snomedizer_options_get("endpoint"), branch = snomedizer_options_get("branch"), catch404 = TRUE ) api_concepts( term = NULL, conceptIds = NULL, ecl = NULL, eclStated = NULL, activeFilter = NULL, searchAfter = NULL, endpoint = snomedizer_options_get("endpoint"), branch = snomedizer_options_get("branch"), limit = snomedizer_options_get("limit"), offset = 0, catch404 = TRUE, ... ) api_concept_descendants( conceptId, stated = FALSE, limit = snomedizer_options_get("limit"), offset = 0, endpoint = snomedizer_options_get("endpoint"), branch = snomedizer_options_get("branch"), catch404 = TRUE ) api_concept_descriptions( conceptId, endpoint = snomedizer_options_get("endpoint"), branch = snomedizer_options_get("branch"), catch404 = TRUE ) api_all_branches( endpoint = snomedizer_options_get("endpoint"), catch404 = TRUE ) api_branch( endpoint = snomedizer_options_get("endpoint"), branch = snomedizer_options_get("branch"), catch404 = TRUE, ... ) api_branch_descendants( endpoint = snomedizer_options_get("endpoint"), branch = snomedizer_options_get("branch"), catch404 = TRUE, ... ) api_descriptions( conceptIds = NULL, endpoint = snomedizer_options_get("endpoint"), branch = snomedizer_options_get("branch"), offset = 0, limit = snomedizer_options_get("limit"), catch404 = TRUE, ... ) api_version(endpoint = snomedizer_options_get("endpoint"), catch404 = TRUE) api_browser_concepts( conceptId, descendantCountForm = c(NULL, "inferred", "stated", "additional"), endpoint = snomedizer_options_get("endpoint"), branch = snomedizer_options_get("branch"), catch404 = TRUE ) api_browser_concept_ancestors( conceptId, form = "inferred", endpoint = snomedizer_options_get("endpoint"), branch = snomedizer_options_get("branch"), catch404 = TRUE ) api_browser_concept_children( conceptId, form = "inferred", includeDescendantCount = TRUE, endpoint = snomedizer_options_get("endpoint"), branch = snomedizer_options_get("branch"), catch404 = TRUE ) api_browser_concept_parents( conceptId, form = "inferred", includeDescendantCount = TRUE, endpoint = snomedizer_options_get("endpoint"), branch = snomedizer_options_get("branch"), catch404 = TRUE ) api_browser_concept_descriptions( term, active = NULL, module = NULL, language = NULL, type = NULL, semanticTag = NULL, semanticTags = NULL, preferredIn = NULL, acceptableIn = NULL, preferredOrAcceptableIn = NULL, conceptActive = NULL, conceptRefset = NULL, groupByConcept = FALSE, searchMode = "STANDARD", limit = snomedizer_options_get("limit"), offset = 0, endpoint = snomedizer_options_get("endpoint"), branch = snomedizer_options_get("branch"), catch404 = TRUE ) api_descriptions_semantic_tags( endpoint = snomedizer_options_get("endpoint"), branch = snomedizer_options_get("branch"), catch404 = TRUE ) api_relationships( endpoint = snomedizer_options_get("endpoint"), branch = snomedizer_options_get("branch"), active = NULL, source = NULL, type = NULL, destination = NULL, characteristicType = NULL, limit = snomedizer_options_get("limit"), offset = 0, catch404 = TRUE, ... ) api_relationship( endpoint = snomedizer_options_get("endpoint"), branch = snomedizer_options_get("branch"), relationshipId, catch404 = TRUE, ... ) api_all_code_systems( endpoint = snomedizer_options_get("endpoint"), forBranch = NULL, catch404 = TRUE ) api_code_system( endpoint = snomedizer_options_get("endpoint"), shortName, catch404 = TRUE ) api_code_system_all_versions( endpoint = snomedizer_options_get("endpoint"), shortName, showFutureVersions = FALSE, showInternalReleases = FALSE, catch404 = TRUE ) api_browser_refset_members( referenceSet = NULL, referenceSetModule = NULL, referencedComponentId = NULL, active = NULL, offset = NULL, searchAfter = NULL, endpoint = snomedizer_options_get("endpoint"), branch = snomedizer_options_get("branch"), limit = snomedizer_options_get("limit"), catch404 = TRUE ) api_refset_members( referenceSet = NULL, referenceSetModule = NULL, referencedComponentId = NULL, active = NULL, offset = NULL, searchAfter = NULL, targetComponent = NULL, mapTarget = NULL, owlExpression.conceptId = NULL, owlExpression.gci = NULL, endpoint = snomedizer_options_get("endpoint"), branch = snomedizer_options_get("branch"), limit = snomedizer_options_get("limit"), catch404 = TRUE )
conceptId |
character string of a SNOMED CT concept identifier (for example:
|
endpoint |
URL of a SNOMED CT Terminology Server REST API endpoint.
See |
branch |
a string for the name of the API endpoint branch to use (most
commonly |
catch404 |
whether to display a warning if the API operation returns a
'404 Not Found' status. Default is |
term |
character vector of terms to search |
conceptIds |
a character vector of SNOMED CT concept identifiers (for example:
|
ecl |
a character expression constraint query (with full relationship inference). Consult the Expression Constraint Language guide for more detail. |
eclStated |
a character expression constraint query (limited to stated relationships). Consult the Expression Constraint Language guide for more detail. |
activeFilter |
optional boolean:
|
searchAfter |
integer for the number of results to skip. May be used for
for querying more that 10,000 records (current |
limit |
a positive integer for the maximum number of results to return.
See |
offset |
an integer indicating the number of results to skip |
... |
other REST API parameters |
stated |
a boolean indicating whether to limit search to descendants
whose relationship is stated rather than inferred. Default is |
descendantCountForm |
a character string indicating whether to report
the count of descendant concepts based on stated or inferred relationships.
Must be one of |
form |
a character string indicating which ancestors/parents or
descendants/children to extract based on stated or inferred relationships.
Must be one of |
includeDescendantCount |
a boolean indicating whether a number of children/descendants counter should be included in the result |
active |
optional boolean:
|
module |
character vector of SNOMED CT modules to include (example:
|
language |
vector of two-character language codes to include
(example: |
type |
character vector of concept codes defining the type of description or the type of attribute/relationship to include, depending on the function:
|
semanticTag |
character string of a description semantic tag
to include (example: |
semanticTags |
character vector of description semantic tags
to include (example: |
preferredIn |
character vector of description language reference sets
(example: |
acceptableIn |
character vector of description language reference sets
(example: |
preferredOrAcceptableIn |
character vector of description language reference sets
(example: |
conceptActive |
optional boolean:
|
conceptRefset |
character vector of reference sets concept identifiers
to include (example: |
groupByConcept |
a boolean indicating whether to group descriptions
by concept. Default is |
searchMode |
a character string for the search mode. Must be either
|
source |
a character vector of concepts to be included as sources defined by the relationship |
destination |
concept character string restricting the range of the relationships to be included in results |
characteristicType |
a character string indicating whether to include results for:
This parameter corresponds to |
relationshipId |
string of a relationship concept |
forBranch |
a character name of a single branch (eg |
shortName |
character name of a code system (eg |
showFutureVersions |
a boolean indicating whether to include all code
systems ( |
showInternalReleases |
a boolean indicating whether to include all
terminology releases ( |
referenceSet |
a string for a reference set identifier or ECL expression
can be used to limit the reference sets searched. Example: |
referenceSetModule |
a string identifier for a SNOMED CT module containing
the reference sets to include. An ECL expression can be used to limit
the modules searched, for example: |
referencedComponentId |
a character vector of identifiers of SNOMED CT components to be included. For Map Reference Sets, this refers to the SNOMED CT concept that is mapped to the other terminology or code system |
targetComponent |
string identifier the target code (concept or description) in an Association Reference Set. Consult the Association Reference Set data structure for detail. |
mapTarget |
target code to which the SNOMED CT concept represented the
|
owlExpression.conceptId |
a string for a concept identifier within an owlExpression. Consult the SNOMED CT OWL Guide for detail. |
owlExpression.gci |
a boolean indicating whether to return axiom members
with a GCI owlExpression ( |
An httr
response()
object.
In order to use SNOMED CT, a licence is required which depends both on the country you are based in, and the purpose of your work. See details on snomedizer.
# look up the pneumonia concept api_concept(conceptId = "233604007") api_concepts(term = "pneumonia") api_concepts(conceptIds = c("233604007", "68566005")) # get the content of the server request pneumonia <- httr::content(api_concepts(term = "pneumonia"), limit = 1) str(pneumonia$items[[1]])
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.