Learn R Programming

Rdiagnosislist (version 1.4.0)

as.data.frame.SNOMEDconcept: Return 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 SNOMEDconcept
as.data.frame(x, ...)

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

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

as.SNOMEDconcept(x, ...)

Value

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

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

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

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

Run the code above in your browser using DataLab