Learn R Programming

Rdiagnosislist (version 1.4.0)

addInactiveConcepts: Add inactive concepts to a SNOMEDcodelist or SNOMEDconcept vector

Description

Adds SNOMED concepts linked by the QUERY or HISTORY tables that are mapped to or descendants of concepts in a SNOMEDcodelist or a SNOMEDconcept vector. If a SNOMEDcodelist, it is automatically converted to the 'simple' format (all items enumerated).

Usage

addInactiveConcepts(x, provenance = 0:3, SNOMED = getSNOMED())

Value

SNOMEDcodelist or SNOMEDconcept with linked inactive concepts included

Arguments

x

SNOMEDcodelist or SNOMEDconcept object

provenance

vector of provenance values to use

SNOMED

SNOMED environment containing HISTORY and QUERY tables

Details

It is recommended to use this function to convert a reference into a codelist for running a query against an electronic health record database which might contain historic SNOMED CT concepts.

See Also

Other SNOMEDcodelist functions: SNOMEDcodelist(), expandSNOMED(), export(), is.SNOMEDcodelist(), print.SNOMEDcodelist()