npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@ediflow/x12-006040

v0.3.0

Published

X12 006040 Standard Definitions - 319 Transaction Sets (Latest Release 2026)

Readme

@ediflow/x12-006040

X12 006040 (2026) Standard Definitions - Latest ANSI ASC X12 Release

License: MIT Package Size

X12 006040319 Transaction SetsLatest 2026 ReleaseMIT LicensedFree


📦 What is this?

This package contains X12 006040 (2026) standard definitions for use with @ediflow/core.

X12 006040 is the latest ANSI ASC X12 release with the most comprehensive transaction set coverage.

Includes:

  • Transaction set structures (319 transaction sets)
  • Segment definitions
  • Element definitions
  • Composite definitions
  • Code lists
  • Syntax rules

Version: 006040 (Released 2026) - Latest standard


🚀 Installation

# Install core library (required)
npm install @ediflow/core

# This package is internal - install locally
cd packages/x12-006040
npm install

📊 Supported Transaction Sets (319)

🛒 Core Purchasing

| Transaction Set | Description | Use Case | |----------------|-------------|----------| | 850 | Purchase Order | Order placement | | 855 | Purchase Order Acknowledgment | Order confirmation | | 860 | Purchase Order Change | Order modifications | | 865 | Purchase Order Change Acknowledgment | Change confirmation |

📦 Shipping & Receiving

| Transaction Set | Description | Use Case | |----------------|-------------|----------| | 856 | Ship Notice/Manifest | ASN (Advanced Shipping Notice) | | 857 | Shipment & Billing Notice | Shipment details |

💰 Invoicing & Payment

| Transaction Set | Description | Use Case | |----------------|-------------|----------| | 810 | Invoice | Billing documents | | 820 | Payment Order/Remittance | Payment processing | | 824 | Application Advice | Transaction status | | 997 | Functional Acknowledgment | EDI receipt confirmation |

🏥 Healthcare (HIPAA)

| Transaction Set | Description | |----------------|-------------| | 270/271 | Eligibility Inquiry/Response | | 276/277 | Claim Status Inquiry/Response | | 278 | Authorization Request | | 834 | Benefit Enrollment | | 835 | Claims Payment/Remittance | | 837 | Healthcare Claims (I/P/D) |

🚚 Transportation

| Transaction Set | Description | |----------------|-------------| | 204 | Motor Carrier Load Tender | | 210 | Freight Invoice | | 214 | Transportation Shipment Status | | 990 | Response to Load Tender |

📊 Inventory & Planning

| Transaction Set | Description | |----------------|-------------| | 846 | Inventory Inquiry/Advice | | 830 | Planning Schedule | | 862 | Shipping Schedule |

+ 300+ additional transaction sets covering all industries and use cases.


📖 Usage Example

import { DIContainer } from '@ediflow/core';

const container = DIContainer.getInstance();
const parseUseCase = container.resolve('ParseEDIUseCase');
const validateUseCase = container.resolve('ValidateMessageUseCase');

// Parse X12 message
const parsed = parseUseCase.execute({
  message: x12String,
  standard: 'X12'
});

// Validate against 006040 structure
const validation = validateUseCase.execute({
  message: parsed.message,
  messageType: '850',
  version: '006040',
  repositoryPath: './packages/x12-006040/data'
});

if (validation.success) {
  console.log('✅ Valid 006040 850 Purchase Order!');
}

📁 Package Contents

@ediflow/x12-006040/
└── data/
    ├── codes/                    # Code lists
    │   └── codes.json
    ├── composites.json           # Composite elements
    ├── elements.json             # Data elements
    ├── index.json                # Package metadata
    ├── messages/                 # Transaction set structures (319)
    │   ├── 850.json             # Purchase Order
    │   ├── 810.json             # Invoice
    │   ├── 856.json             # ASN
    │   ├── 997.json             # Functional ACK
    │   └── ... (315 more)
    ├── segment-syntax-rules.json # Segment validation rules
    └── segments.json             # Segment definitions

Package Size: ~8.5 MB


🎯 When to Use 006040

Use 006040 if:

  • Latest features - Need newest transaction sets
  • Future-proofing - Planning for long-term compatibility
  • Development - Testing against latest standard
  • Internal systems - Not exchanging with external partners

Use 004010 instead if:

  • 🔄 Production - Most widely adopted (industry standard)
  • 🔄 Interoperability - Trading partners use 004010
  • 🔄 Automotive - Industry standard for automotive

Use 005010 instead if:

  • 🔄 Healthcare - HIPAA compliance required
  • 🔄 Medical claims - 837/835 transactions

🆚 Version Comparison

| Version | Year | Transaction Sets | Use Case | |---------|------|-----------------|----------| | 004010 | 2000 | 293 | Industry standard | | 005010 | 2012 | 310 | HIPAA healthcare | | 006040 | 2026 | 319 | Latest release |


📦 Related Packages

Core:

Other X12 Standards:


📚 Documentation


🤝 Contributing

Data corrections or additional transaction sets? We welcome contributions!


📄 License

MIT License - see LICENSE


🔗 Links

  • GitHub: https://github.com/ediflow-lib/core
  • ASC X12: https://x12.org

Built with ❤️ by the EDIFlow community