Skip to main content
Version: v0.0.2

Variable: RELA_INVERSE

const RELA_INVERSE: Readonly<Record<string, string>>

The authored inverse pairs of the drug-graph RELAs - a published fact (RxNorm Appendix 1), used only to document and validate that a caller is traversing a real relationship. The graph never uses this to synthesize a missing edge: RxNorm ships both directions, so ../rxnorm/navigate follows whichever authored predicate points the way it wants to go.

Example

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

RELA_INVERSE[RELA.HAS_INGREDIENT]; // => "ingredient_of"