Skip to main content
Version: v0.0.4

Interface: GemFlags

The decoded 5-position flag field of a GEM entry (CMS Dx GEM User's Guide). Each digit is a steward signal a caller must not ignore; the verbatim field rides through as raw.

Positions (left to right): approximate | no-map | combination | scenario | choice-list.

Properties

approximate

readonly approximate: boolean

Position 1 - approximate flag. true when the mapping is approximate (the common case: the source and target are not identical in meaning); false when the entry is an exact identity. A GEM entry is a reference mapping either way - never an assertion of clinical equivalence.


choiceList

readonly choiceList: number

Position 5 - choice-list number (0 for a non-combination entry). Within a scenario, a valid cluster is built by taking one target from each distinct choice list.


combination

readonly combination: boolean

Position 3 - combination flag. true when the source requires a combination of target codes to be fully represented; the entry is one candidate within a scenario/choice-list cluster (see scenario / choiceList), never a standalone 1:1 target.


noMap

readonly noMap: boolean

Position 2 - no-map flag. true when the source code has no valid target in the other classification (the target field is the NoDx/NoPCS sentinel). A first-class typed outcome - surfaced as a CrosswalkNoMap, never a fabricated target.


raw

readonly raw: string

The verbatim 5-character flag field, carried through untouched.


scenario

readonly scenario: number

Position 4 - scenario number (0 for a non-combination entry). Within a combination, all entries sharing a scenario describe one valid way to represent the source; distinct scenarios are alternative representations.