SNOMEDconcept: Returns the SNOMED CT concept IDs for a set of terms

View source: R/concepts.R

as.data.frame.SNOMEDconceptR Documentation

Returns the SNOMED CT concept IDs for a set of terms

Description

Carries out an exact or regular expression match to return the concept ID for a set of search terms, or converts a character, integer or integer64 vector to a SNOMEDconcept object.

Usage

## S3 method for class 'SNOMEDconcept'
as.data.frame(x, ...)

## S3 method for class 'SNOMEDconcept'
as.integer64(x, ...)

SNOMEDconcept(
  x,
  active_only = TRUE,
  exact_match = TRUE,
  unique = TRUE,
  SNOMED = getSNOMED()
)

as.SNOMEDconcept(x, ...)

Arguments

x

character vector of terms to match, or character vector containing SNOMED CT concept IDs, or 64-bit integer vector containing SNOMED CT concept IDs

...

additional arguments to send to grepl if using regular expression matching

active_only

whether or not to include inactive concepts

exact_match

if TRUE, only an exact (case sensitive) match is performed. If FALSE, a regular expression match is performed.

unique

whether to include no more than one instance of each SNOMED CT concept

SNOMED

environment containing SNOMED dictionary. Defaults to an object named 'SNOMED' in the global environment

Value

a SNOMEDconcept object (vector of 64-bit integers) containing unique SNOMED CT concept IDs

See Also

Other SNOMEDconcept functions: c.SNOMEDconcept(), is.SNOMEDconcept(), print.SNOMEDconcept(), union.SNOMEDconcept(), unique.SNOMEDconcept()

Other SNOMEDconcept functions: c.SNOMEDconcept(), is.SNOMEDconcept(), print.SNOMEDconcept(), union.SNOMEDconcept(), unique.SNOMEDconcept()

Other SNOMEDconcept functions: c.SNOMEDconcept(), is.SNOMEDconcept(), print.SNOMEDconcept(), union.SNOMEDconcept(), unique.SNOMEDconcept()

Examples

SNOMEDconcept('Heart failure', SNOMED = sampleSNOMED()) -> hf
is.SNOMEDconcept(hf)
SNOMEDconcept('900000000000003001')
as.SNOMEDconcept('900000000000003001')

anoopshah/Rdiagnosislist documentation built on April 21, 2023, 11:49 p.m.