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
A loaded RxNormGraph.
rxcui
string
The generic concept.
Returns
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