Skip to main content
Version: v0.0.2

Variable: TERM_TYPES

const TERM_TYPES: Readonly<Record<TermType, string>>

The drug-graph term types (RXNCONSO.TTY), each mapped to its verbatim Appendix 5 name (ET excepted: the appendix publishes no Name for it, so the UMLS expansion "Entry Term" is used). Encoded as an identity fact; a concept's TTY is carried verbatim on its ../rxnorm/types.RxNormConcept, never re-labeled.

The keys are the full Appendix 5 vocabulary, defining and synonym alike. Only the defining ones can appear on a loaded concept (see isSynonymTermType).

Example

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

TERM_TYPES.SCD; // => "Semantic Clinical Drug"
TERM_TYPES.SCDF; // => "Semantic Clinical Drug Form"