addInactiveConcepts: Add inactive concepts to a SNOMEDcodelist or SNOMEDconcept...

View source: R/SNOMEDcodelist.R

addInactiveConceptsR Documentation

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())

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.

Value

SNOMEDcodelist or SNOMEDconcept with linked inactive concepts included

See Also

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


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