This function is a wrapper of api_descriptions that fetches description of one or several concept identifiers.

concept_descriptions(
  conceptIds,
  encoding = "UTF-8",
  silent = FALSE,
  limit = snomedizer_options_get("limit"),
  ...
)

Arguments

conceptIds

a character vector of concept identifiers

encoding

HTTP charset parameter to use. Default is "UTF-8".

silent

whether to hide progress bar. Default is FALSE.

limit

a positive integer for the maximum number of results to return. See snomedizer_options. The maximum limit on public endpoints is 10,000.

...

other optional arguments listed in api_operations, such as endpoint, branch or limit

Value

a named list of data frames sorted by conceptIds

Note

Duplicate conceptIds will be removed.

Disclaimer

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.

See also

Examples

pneumonia_descriptions <- concept_descriptions(conceptIds = "233604007")
str(pneumonia_descriptions)
#> List of 1
#>  $ 233604007:'data.frame':	2 obs. of  17 variables:
#>   ..$ active                             : logi [1:2] TRUE TRUE
#>   ..$ moduleId                           : chr [1:2] "900000000000207008" "900000000000207008"
#>   ..$ released                           : logi [1:2] TRUE TRUE
#>   ..$ releasedEffectiveTime              : int [1:2] 20170731 20170731
#>   ..$ descriptionId                      : chr [1:2] "350049016" "621810017"
#>   ..$ term                               : chr [1:2] "Pneumonia" "Pneumonia (disorder)"
#>   ..$ conceptId                          : chr [1:2] "233604007" "233604007"
#>   ..$ typeId                             : chr [1:2] "900000000000013009" "900000000000003001"
#>   ..$ type                               : chr [1:2] "SYNONYM" "FSN"
#>   ..$ caseSignificance                   : chr [1:2] "CASE_INSENSITIVE" "CASE_INSENSITIVE"
#>   ..$ lang                               : chr [1:2] "en" "en"
#>   ..$ effectiveTime                      : chr [1:2] "20170731" "20170731"
#>   ..$ acceptabilityMap.900000000000509007: chr [1:2] "PREFERRED" "PREFERRED"
#>   ..$ acceptabilityMap.900000000000508004: chr [1:2] "PREFERRED" "PREFERRED"
#>   ..$ total                              : int [1:2] 2 2
#>   ..$ limit                              : int [1:2] 50 50
#>   ..$ offset                             : int [1:2] 0 0