Skip to main content
Version: v0.0.2

Function: brandsFor()

brandsFor(graph, rxcui): RxNormNavResult

The branded form(s) of a generic concept - an SCD/IN/GPCK that has_tradename a brand. The authored forward edge; not a synthesized inverse of tradename_of.

Parameters

graph

RxNormGraph

A loaded RxNormGraph.

rxcui

string

The generic concept.

Returns

RxNormNavResult

The branded concept(s) (possibly empty), or a typed unknown source.

Example

import { loadRxNormGraph, brandsFor } from "@cosyte/terminology";

const g = loadRxNormGraph({
conso: "1|ENG||||||||||RXNORM|SCD||lisinopril 10 MG Oral Tablet||N||\n2|ENG||||||||||RXNORM|SBD||lisinopril 10 MG Oral Tablet [Zestril]||N||",
rel: "2|||RN|1|||has_tradename|||RXNORM||||||",
});
brandsFor(g, "1").found; // => true