Skip to main content
Version: v0.0.4

Variable: RELA

const RELA: object

The drug-graph RELA relationship names, grounded on the NLM RxNorm Technical Documentation (Appendix 1). Each is directional and read subject ⟶RELA⟶ object after normalization (see the module doc). RxNorm ships both members of an inverse pair as separate rows, so the graph traverses the authored predicate for the direction it wants - it never synthesizes an inverse.

Type Declaration

CONSISTS_OF

readonly CONSISTS_OF: "consists_of" = "consists_of"

consists_of - subject (an SCD/SBD) consists of object (its SCDC/SBDC component(s)).

CONSTITUTES

readonly CONSTITUTES: "constitutes" = "constitutes"

constitutes - subject (a component) constitutes object (the drug). Inverse of consists_of.

CONTAINED_IN

readonly CONTAINED_IN: "contained_in" = "contained_in"

contained_in - subject (a drug) is contained in object (a pack). Inverse of contains.

CONTAINS

readonly CONTAINS: "contains" = "contains"

contains - subject (a pack) contains object (a member drug).

DOSE_FORM_GROUP_OF

readonly DOSE_FORM_GROUP_OF: "doseformgroup_of" = "doseformgroup_of"

doseformgroup_of - inverse of has_doseformgroup.

DOSE_FORM_OF

readonly DOSE_FORM_OF: "dose_form_of" = "dose_form_of"

dose_form_of - subject (a DF) is the dose form of object (a drug).

HAS_DOSE_FORM

readonly HAS_DOSE_FORM: "has_dose_form" = "has_dose_form"

has_dose_form - subject (a drug) has dose form object (a DF).

HAS_DOSE_FORM_GROUP

readonly HAS_DOSE_FORM_GROUP: "has_doseformgroup" = "has_doseformgroup"

has_doseformgroup - subject has dose-form group object (a DFG).

HAS_INGREDIENT

readonly HAS_INGREDIENT: "has_ingredient" = "has_ingredient"

has_ingredient: subject has ingredient object. Authored from the clinical side (SCDC/SCDF/SCDG) to an IN and from the branded side (SBD/SBDC/SBDF/SBDG) to a BN; RxNorm authors no SCD ⟶ IN row.

HAS_PRECISE_INGREDIENT

readonly HAS_PRECISE_INGREDIENT: "has_precise_ingredient" = "has_precise_ingredient"

has_precise_ingredient - subject has precise ingredient object (a PIN).

HAS_QUANTIFIED_FORM

readonly HAS_QUANTIFIED_FORM: "has_quantified_form" = "has_quantified_form"

has_quantified_form - subject has quantified form object.

HAS_TRADENAME

readonly HAS_TRADENAME: "has_tradename" = "has_tradename"

has_tradename - subject (a generic concept) has tradename object (a branded concept).

INGREDIENT_OF

readonly INGREDIENT_OF: "ingredient_of" = "ingredient_of"

ingredient_of: subject is an ingredient of object. The authored inverse, so an IN reaches clinical components and dose forms and a BN reaches branded concepts (the SBD included). Neither reaches an SCD.

INVERSE_ISA

readonly INVERSE_ISA: "inverse_isa" = "inverse_isa"

inverse_isa - subject is a parent of object. Inverse of isa.

ISA

readonly ISA: "isa" = "isa"

isa - subject is a object (hierarchical, e.g. SCD isa SCDG).

PRECISE_INGREDIENT_OF

readonly PRECISE_INGREDIENT_OF: "precise_ingredient_of" = "precise_ingredient_of"

precise_ingredient_of - inverse of has_precise_ingredient.

QUANTIFIED_FORM_OF

readonly QUANTIFIED_FORM_OF: "quantified_form_of" = "quantified_form_of"

quantified_form_of - inverse of has_quantified_form.

TRADENAME_OF

readonly TRADENAME_OF: "tradename_of" = "tradename_of"

tradename_of - subject (a branded concept) is a tradename of object (its generic).

Example

import { RELA } from "@cosyte/terminology";

RELA.HAS_INGREDIENT; // => "has_ingredient"