## Hl7Segment.(constructor)
Creates a new HL7 segment.

Field strings are not parsed until they are accessed via [Hl7Segment.getField()](/content/docs/sdk/core.hl7segment.getfield) or via the [Hl7Segment.fields](/content/docs/sdk/core.hl7segment.fields) getter.

**Signature:**

```typescript
constructor(fields: (Hl7Field | string)[], context?: Hl7Context);
```

## Parameters

| Parameter | Type | Description |
| --- | --- | --- |
| fields | ( [Hl7Field](/content/docs/sdk/core.hl7field) \| string)\[\] | The HL7 fields. The first field is the segment name. |
| context | [Hl7Context](/content/docs/sdk/core.hl7context) | _(Optional)_ Optional HL7 parsing context. |
