Skip to main content
Version: v0.0.2

Function: getConcept()

getConcept(graph, rxcui): RxNormConcept | undefined

Look up a single concept by RXCUI.

Parameters

graph

RxNormGraph

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"