Interface: SegmentRule
A rule for one segment type. usage constrains whether
the segment must / must not appear; cardinality constrains how many times;
fields are the per-field rules, applied to every occurrence of the
segment.
Properties
cardinality?
readonlyoptionalcardinality?:Cardinality
Occurrence-count constraint for this segment across the message.
fields?
readonlyoptionalfields?: readonlyFieldRule[]
Per-field rules, applied to each occurrence of this segment.
segment
readonlysegment:string
Segment name: 3 chars, [A-Z][A-Z0-9]{2} (standard or Z… segment).
severity?
readonlyoptionalseverity?:FindingSeverity
Severity for the segment-level presence / cardinality findings. Default "error".
usage?
readonlyoptionalusage?:UsageCode
Usage for the segment as a whole. R ⇒ at least one occurrence required;
X ⇒ none permitted; RE / O ⇒ no presence constraint; C / CE ⇒
presence not evaluated (no predicate language). Omitted ⇒ Optional.