Skip to main content
Version: v0.0.4

Function: isSynonymTermType()

isSynonymTermType(tty): boolean

Is this term type a synonym-class one (PSN / SY / TMSY)?

Appendix 5 defines each as a "synonym of another TTY": it labels an alternate name for a concept, never the concept's own kind. So a synonym atom can never establish an RXCUI's term type, and ../rxnorm/load.loadRxNormGraph will not let one: an RXCUI whose release supplies only synonym atoms is skipped and surfaced, never typed "TMSY".

Parameters

tty

TermType

A TermType.

Returns

boolean

true for PSN / SY / TMSY; false for every defining term type.

Example

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

isSynonymTermType("TMSY"); // => true
isSynonymTermType("SCDF"); // => false