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).
addInactiveConcepts(x, provenance = 0:3, SNOMED = getSNOMED())
SNOMEDcodelist or SNOMEDconcept with linked inactive concepts included
SNOMEDcodelist or SNOMEDconcept object
vector of provenance values to use
SNOMED environment containing HISTORY and QUERY tables
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.
Other SNOMEDcodelist functions:
SNOMEDcodelist()
,
expandSNOMED()
,
export()
,
is.SNOMEDcodelist()
,
print.SNOMEDcodelist()