Skip to main content
Version: v0.0.4

Interface: RawField

A positional field inside a segment. Carries its repetitions plus an isNull discriminant that distinguishes the HL7 explicit null ("", a two-character literal double quote) from an empty field (no content between delimiters).

Example

import type { RawField } from "@cosyte/hl7";
const nullField: RawField = { repetitions: [], isNull: true };
const emptyField: RawField = { repetitions: [], isNull: false };

Properties

isNull

readonly isNull: boolean


repetitions

readonly repetitions: readonly RawRepetition[]