core.hl7segment.fields | Medplum

Hl7Segment.fields property [​](/content/docs/sdk/core.hl7segment.fields#hl7segmentfields-property "Direct link to Hl7Segment.fields property"/index.html)

Returns all HL7 fields, parsing any unparsed field strings on first access.

Prefer Hl7Segment.getField() when you only need a subset of fields; that method avoids parsing unrelated fields.

Signature:

get fields(): Hl7Field[];