---
title: PwkSegment
summary: API reference for PwkSegment.
status: draft
owner: SAIF Doc Gen
last_reviewed: 2026-09-15
library: SAIF.Framework.Common.Files
reference_type: package
---

# PwkSegment

`PwkSegment` models the X12 PWK paperwork segment, used in 837 claim transactions to indicate that supporting documentation exists for a claim, describing the document type, how it will be transmitted, and an optional identifier for retrieving it. Notably its element usage skips positions 3-4, mapping `Qualifier`/`IdCode` directly to elements 5-6.

## Purpose
- Represents the PWK segment identity via `SegmentId` returning the literal `"PWK"` ([BR-020](../../business-rules.md#br-020-first-element-is-the-segment-identifier)).
- Carries `Type` (the paperwork/report type code) and `TransmissionCode` (how the paperwork will be sent), the core description of the supporting documentation.
- Carries `Qualifier` and `IdCode` at elements 5-6, an optional identifier for locating the referenced paperwork.

## Context
- Namespace: `SAIF.Common.Files.Edi.Segments`
- Assembly/package: `SAIF.Framework.Common.Files`

## Public members
| Member | Signature | Purpose |
| --- | --- | --- |
| SegmentId | `string SegmentId { get; }` | Returns the literal X12 segment identifier `"PWK"`. |
| Type | `string Type { get; set; }` | The report/paperwork type code (PWK01), element 1. |
| TransmissionCode | `string TransmissionCode { get; set; }` | The code describing how the paperwork will be transmitted (PWK02), element 2. |
| Qualifier | `string Qualifier { get; set; }` | The identification code qualifier for `IdCode` (PWK05), element 5. |
| IdCode | `string IdCode { get; set; }` | The identifier used to locate the referenced paperwork (PWK06), element 6. |
| Build | `IEdiSegment Build()` | Creates a `SegmentBuilder("PWK")` and adds `Type`/`TransmissionCode` at elements 1-2 and `Qualifier`/`IdCode` at elements 5-6, leaving elements 3-4 unset, returning the built segment. |
| Fill | `void Fill(IEdiSegment segment)` | Reads elements 1-2 and 5-6 via `GetChildValue` into `Type`, `TransmissionCode`, `Qualifier`, and `IdCode`. |
| Parse | `static PwkSegment Parse(IEdiSegment segment)` | Instantiates a new `PwkSegment`, calls `Fill(segment)` on it, and returns it. |

## Sources
- Common\SAIF.Common.Files\Edi\Segments\PwkSegment.cs
