## Hl7Context.getMsh2() method

Returns the MSH-2 field value based on the configured separators.

**Signature:**

```typescript
getMsh2(): string;
```

**Returns:**

string

The HL7 MSH-2 field value.

- [Hl7Context.getMsh2() method](/content/docs/sdk/core.hl7context.getmsh2#hl7contextgetmsh2-method/index.html)
