## 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()](/content/docs/sdk/core.hl7segment.getfield) when you only need a subset of fields; that method avoids parsing unrelated fields.

**Signature:**

```typescript
get fields(): Hl7Field[];
```

- [Hl7Segment.fields property](/content/docs/sdk/core.hl7segment.fields#hl7segmentfields-property/index.html)
