Class X12Group
Inherited Members
Namespace: Bishop.X12
Assembly: Bishop.X12.dll
Syntax
public class X12Group : X12Disposable, IDisposable
Properties
AgencyCode
GS07: Gets the code identifying the issuer of the X12 standard.
Declaration
public string AgencyCode { get; }
Property Value
Type | Description |
---|---|
System.String | 'X' for Accredited Standards Committee X12 |
ControlNumber
GS06/GE02: Gets the group interchange control number. Each group must have a unuique number within the interchange.
Declaration
public int ControlNumber { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 | Group interchange control number |
DateTime
GS04/GS05: Gets/Sets the group date and time
Declaration
public DateTime DateTime { get; set; }
Property Value
Type | Description |
---|---|
System.DateTime | Date and Time the Group was created |
FunctionCode
GS01: Gets/Sets the Function code identifying the application related transaction sets within the group.
Declaration
public X12FunctionCode FunctionCode { get; set; }
Property Value
Type | Description |
---|---|
X12FunctionCode | code identifying a group of application related transaction sets |
Remarks
The Function Code identifies a group of application related transaction sets. This 2-character code is assigned to to transaction sets by X12. The specific code to use for a transaction must match that defined by its X12 implementation guide. It is presented in section 1.2, Version Information in the specific ASC X12N/005010XXXX Standards for Electronic Data Interchange Technical Report Type 3.
Examples
Code Snippet
// Create a group that will contain 837 (Professional) HealthCare Claim transactions starting with Control number 1
using X12Group grp1 = xDoc.AddGroup(X12FunctionCode.HC, 1, X12VersionRelease.X005010X222A1);
ReceiverId
GS03: Gets/Sets the Receiver ETIN (Electronic Trader Identification Number) identifying the party receiving the transmission.
Declaration
public string ReceiverId { get; set; }
Property Value
Type | Description |
---|---|
System.String | Receiver Electronic Trader Identification Number |
SenderId
GS02: Gets/Sets the Sender ETIN (Electronic Trader Identification Number) identifying the party sending the transmission.
Declaration
public string SenderId { get; set; }
Property Value
Type | Description |
---|---|
System.String | Sender Electronic Trader Identification Number |
TransactionCount
GE01: Gets the reported transaction count within the group.
Declaration
public int TransactionCount { get; }
Property Value
Type | Description |
---|---|
System.Int32 | Reported (not actual) transaction count within the group |
Version
GS08: Gets the Agency Code indicating the version, release, subrelease, and industry identifier of the EDI standard in use.
Declaration
public X12VersionRelease Version { get; }
Property Value
Type | Description |
---|---|
X12VersionRelease | X12 Implementation Version / Release code. |
Methods
AddTransaction(Int32)
Adds a new transaction to the curreng X12Group object of the appropriate type.
Declaration
public X12Transaction AddTransaction(int controlNumber)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | controlNumber | GS06/GE02. Sets the group control number which must be unique within the interchange |
Returns
Type | Description |
---|---|
X12Transaction | The resulting X12Transaction Object |
Refresh()
Refreshes the Transaction count of actual transactions in the X12Group. Use this method after creating and populating the X12Group
Declaration
public bool Refresh()
Returns
Type | Description |
---|---|
System.Boolean | true on success else false |
Transactions()
Declaration
public IEnumerable<X12Transaction> Transactions()
Returns
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<X12Transaction> |