map_to_id: Map ICD, OMIM, SNOMED or any cross-reference code to an...

Description Usage Arguments Value Author(s)

Description

Will look up a code within the "xref" part of an ontology database and translate to an ontology identifier. If several identifiers are found, the one that is deepest in the tree will be returned. If there are multiple entries within the same depth, the first identifier in the list will be returned.

Usage

1
map_to_id(ontology, code, from = "ICD10CM", root = "DOID:4")

Arguments

ontology

a list (of class ontology) in which to look

code

the code to look-up

from

Which classification is 'code' apart of? Defaults to "ICD10CM", other options (when using the disease ontology database) include "OMIM", "MSH", "SNOMEDCT_US_2016-03-01", etc.

Value

Outputs a character string containing the mapped identifier.

Author(s)

Daniel Lindholm


dlindholm/oboe documentation built on May 15, 2019, 9:18 a.m.