Section:

HIPAAsuite.AuroraParser

Class

Class Reference

123 Items

Type Description
Builds a 999 acknowledgment for a functional group.
Detailed Remarks
This generator builds ISA/GS/ST/AK/IK/SE/GE/IEA segments based on validation results and group metadata.
Usage Example
var generator = new Ack999Generator(fg, errors, false, ref stCounter, out var isa);

Type Description
Generates 999 implementation acknowledgments.
Detailed Remarks
The 999 generator builds functional-group acknowledgments from validation errors and original group metadata.
Usage Example
var ack = EDIGenerator.Ack999Line.Assembly.BuildFromGroup(fg, errors);

Type Description
AK1 functional group response header segment.
Detailed Remarks
AK1 identifies the functional group being acknowledged.
Usage Example
var ak1 = new AK1("*", "HC", "1", "005010X231A1");

Type Description
AK2 transaction set response header segment.
Detailed Remarks
AK2 identifies the transaction set within the functional group.
Usage Example
var ak2 = new AK2("*", "837", "0001");

Type Description
AK9 functional group response trailer segment.
Detailed Remarks
AK9 summarizes group-level acceptance and optional syntax error codes for the functional group.
Usage Example
var ak9 = new AK9("*", AK9.FunctionalGroupAcknowledgmentCodeEnum.Accepted, 1, 1, 1);

Type Description
Provides factory methods to initialize and retrieve APF loaders for X12 transaction set standards. Maintains a per-file cache of GenericAPFLoader{T} instances and supports optional custom path overrides for APF files.
Detailed Remarks
Call Initialize(APFFileEnum, ICustomAPFPathResolver) once for each APF file you plan to use, then retrieve the parsed standards via GetOrInitialize{T}(APFFileEnum) or GetOrInitializeAysnc{T}(APFFileEnum). The loader resolves APF content from embedded resources by default and falls back to disk when a custom path is supplied or resources are unavailable. The cache is process- wide and intended to be reused across validator instances for performance.
Usage Example
APFFactory.Initialize(APFFileEnum.Claim_5010x222A1);
var standard = APFFactory.GetOrInitialize<TransactionSetStandard>(APFFileEnum.Claim_5010x222A1);

Type Description
Provides a method to locate an embedded APF resource by name (or partial name) and return a Stream for reading.
Detailed Remarks
This helper performs a simple substring search over manifest resources and is used by the APF loader to fall back to embedded resources.
Usage Example
using (var stream = ApfResourceHandler.GetApfResourceStream("837_005010X222A1.APF"))
{
    // Read APF stream content.
}

Type Description
Assembles 999 envelopes from functional groups and errors.
Detailed Remarks
This namespace-like class groups the main 999 builder and loop generators for assembling response envelopes.
Usage Example
var generator = new Assembly.Ack999Generator(fg, errors, false, ref stCounter, out var isa);

Type Description
Assembles TA1 envelopes from interchange data and errors.
Detailed Remarks
This class groups the main TA1 builder and helper methods used to construct ISA/TA1/IEA segments.
Usage Example
var generator = new Assembly.TA1Generator(interchange, errors, false, out var isaId);

Type Description
Error creators for claim and payment balancing SNIP3 validations.
Detailed Remarks
Groups error helpers used by the validator pipeline.
Usage Example
var placeholder = typeof(EdiErrorFactory.Enrollments);

Type Description
Base class for claim validators that adds claim-specific SNIP3/4 checks.
Detailed Remarks
This base class extends Validator with common claim-level validations used by 837 variants, such as balancing and loop-specific rules. Concrete validators focus on schema loading and call these helpers to enforce shared claim semantics across professional, institutional, and dental guides.
Usage Example
// Used by 837 validators to share claim-specific checks.

Type Description
Default in-memory handler that builds Interchange, FunctionalGroup, and TransactionSet objects as segments are streamed by a parser, wiring segment callbacks to construct envelope objects and raise higher-level parse events.
Detailed Remarks

The CommonEDIHandler acts as the bridge between the raw streaming parser and the object model. It listens for ISA/GS/ST/SE/GE/IEA boundaries and constructs the envelope hierarchy while segments stream in.

Key Features:

  • Event-Driven: Raises events (TransactionSetParsedEvent, etc.) as soon as an envelope closes, allowing for low-memory processing of large files.
  • Object Construction: Automatically builds the Interchange object graph so you don't have to manually parse segments.
  • Streaming Support: Designed to be paired with streaming parsers to keep only a working envelope in memory at a time.

Usage Example
Basic Usage:
// 1. Create the handler
using var handler = new CommonEDIHandler();

// 2. Subscribe to events (e.g. process each Transaction Set as it arrives)
handler.TransactionSetParsedEvent += (transactionSet) => 
{
    Console.WriteLine($"Processed Transaction: {transactionSet.ST?.TransactionSetId}");
    // Process segments inside the transaction...
};

// 3. Configure and run the parser
var parser = new X12Parser(); // or EDIFACTParser
parser.SegmentParsedEvent += handler.SegmentParsedEvent; // Wire up the handler

string ediData = File.ReadAllText("input.edi");
parser.ParseString(ediData);

Type Description
Builds common ISA/GS/GE/IEA segment standards for multiple transactions.
Detailed Remarks
Provides shared envelope segment definitions for common transaction sets. These segments are reused across transaction sets to ensure consistent envelope parsing and sequencing.
Usage Example
var dict = CommonSegmentStandardFactory.GetSegmentStandardDictionary(
    CommonSegmentStandardTypeEnum.Enrollment_5010X220);

Type Description
999 segment component definitions.
Detailed Remarks
Component classes here encapsulate the AK/IK/AK9 segments used in 999 acknowledgments.
Usage Example
var ak1 = new Components.AK1("*", "HC", "1", "005010X231A1");

Type Description
TA1 segment component definitions.
Detailed Remarks
Component classes here encapsulate the TA1 segment used for interchange-level acknowledgments.
Usage Example
var ta1 = new Components.TA1("*", "000000001", "240101", "1200", InterchangeNoteCodeEnum.InvalidInterchangeContent, Components.TA1.InterchangeAcknowledgmentCodeEnum.Rejected);

Enum

Enum Reference

25 Items

Interface

Interface Reference

20 Items