Skip to content

N1Segment

N1Segment models the X12 N1 party-identification segment, used throughout 837/835 transactions to name a party (e.g. payer, payee, billing provider) within a loop, along with an optional identifier and its qualifier for cross-reference lookups.

Purpose

  • Represents the N1 segment identity via SegmentId returning the literal "N1" (BR-020).
  • Carries Type, the entity identifier code classifying which party this loop instance represents, paired with Name, the party's free-text name.
  • Carries IdQualifier and Identifier, an optional coded cross-reference identifier for the party.

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 "N1".
Type string Type { get; set; } The entity identifier code classifying the party (N101), element 1.
Name string Name { get; set; } The party's free-text name (N102), element 2.
IdQualifier string IdQualifier { get; set; } The qualifier for the party's identification code (N103), element 3.
Identifier string Identifier { get; set; } The party's identification code value (N104), element 4.
Build IEdiSegment Build() Creates a SegmentBuilder("N1") and adds Type, Name, IdQualifier, and Identifier at elements 1-4, returning the built segment.
Fill void Fill(IEdiSegment segment) Reads elements 1-4 via GetChildValue into Type, Name, IdQualifier, and Identifier.
Parse static N1Segment Parse(IEdiSegment segment) Instantiates a new N1Segment, calls Fill(segment) on it, and returns it.

Sources

  • Common\SAIF.Common.Files\Edi\Segments\N1Segment.cs