Function: getConcept()
getConcept(
graph,rxcui):RxNormConcept|undefined
Look up a single concept by RXCUI.
Parameters
graph
A loaded RxNormGraph.
rxcui
string
The concept unique identifier.
Returns
RxNormConcept | undefined
The RxNormConcept, or undefined when the RXCUI is not in the release.
Example
import { loadRxNormGraph, getConcept } from "@cosyte/terminology";
const g = loadRxNormGraph({ conso: "1|ENG||||||||||RXNORM|IN||aspirin||N||", rel: "" });
getConcept(g, "1")?.tty; // => "IN"