Virginia workers comp claims EDI Release 3.1
Insurance United States
Checks a claim administrator’s workers’ compensation claims EDI transactions before they go to the Virginia Workers’ Compensation Commission: every first and subsequent report of injury and benefit segment against the Commission’s Release 3.1 requirement tables, each subsequent report against the claim’s first report and earlier reports under the sequencing table, and each benefit segment against its report.
From the Virginia Workers’ Compensation Commission’s EDI Release 3.1 requirement tables, version 1.7.
- 200validation rules
- 23pipeline stages
- 112data elements
- 5 minto build and check
See it in Quantemplate
The pipeline

The validations

Benefits on each SROI

What it checks
200 rules 198 Fail 2 Warning
- FROITransaction set, maintenance type code and dates, jurisdiction claim number, insurer, claim administrator and employer, industry code and policy, date, time and place of injury, nature, cause and part of body, knowledge dates, the employee’s ID, name, address, age, gender, marital status, dependents and death, class code, insured type, severity, late reason codes, denials, cancellations, changes and narratives, one FROI 00 per claim, and FROI 04, 01 and 02 in sequence 82 Fail 82
- SROITransaction set, maintenance type code and dates, jurisdiction claim number, FEINs and the claim representative, the employee and date of injury against the FROI, disability dates, wages and compensation rate, employer-paid salary, acquired claims, maximum medical improvement, return to work, suspensions, denials, payments and lump sums, reduced benefits, other benefits, permanent impairment, fatal benefits, late reason codes and changes, the claim’s FROI, insurer and employer, one IP and EP per claim, the sequencing table, and the benefit segments each SROI needs 97 Fail, 1 Warning 98
- Benefit segmentsThe SROI each belongs to, benefit type code, benefit-level maintenance type code and the benefit types it allows, one segment per type, gross weekly amount and its date, benefit period, weeks and days, amount paid, payment issue dates, and weeks and days against the benefit period 19 Fail, 1 Warning 20
A rule set to Fail marks its rows as failed, and any failure blocks Auto Export if you set it up. Warnings are only reported. Validation never removes a row. Every rule and its formula is listed in VALIDATIONS.md in the download.
How the pipeline works
- Stages 1–3 Prepare Detect headers and tidy the FROI, SROI and benefit segment files
- Stages 4–6 Keys Work out each date’s year, month, day and day number, which FROIs are originals, the dates the sequencing checks compare, and keys for claims, SROIs and benefit types
- Stages 7–12 Summaries Add up each claim’s FROIs and SROIs, count the SROIs with each key, and add up each SROI’s benefit segments and each benefit type
- Stages 13–14 Check FROI Join the claim’s FROIs to each FROI and run the FROI rules
- Stages 15–20 Check SROI Join the claim’s FROIs, its employer on the FROI, the SROIs with the same key, the claim’s SROIs and the SROI’s benefit segments to each SROI, and run the SROI rules
- Stages 21–23 Check benefit segments Join each benefit segment’s SROI and the count of its benefit type, and run the benefit segment rules
What’s in the download
- The 200 rules as JSON, and a table of every rule with its formula and why
- Good data for a fictional claim administrator’s transactions on ten claims, from medical-only and lost-time claims to denials, acquisitions, a cancellation, a settlement and a legacy claim, and test files with a filing built to fail each rule
- The number of rows each rule should flag on the test files
- A template file the Quantemplate build skill reads to build the pipeline and check the results
- A snapshot of the finished pipeline
The Commission’s tables aren’t included. Download them from the VWC EDI requirements page.
Build it
- Install the Quantemplate skills, version 1.0.0 or later, if you haven’t already. Then unzip the download.
- With Claude in Chrome signed in to Quantemplate, ask Claude Code:
Build the Virginia workers comp claims EDI pipeline from the va-wc-edi-claims folder.
- Claude creates the datasets and stages, runs the test data and checks every rule’s result. This takes around 5 minutes.
The agent builds through the Quantemplate app’s own API in your browser. That API isn’t published, so if a release changes it, the build stops and tells you what went wrong. Review what the agent builds before you rely on it.
Using real files
- Add three CSV files for each batch: first reports of injury (FROI), subsequent reports of injury (SROI) and SROI benefit segments, one row per transaction or segment. Use the IAIABC data element names as column names, as Virginia’s element requirement table spells them, such as
Maintenance Type CodeandInitial Date Disability Began. - Repeat the claim administrator claim number, maintenance type code and maintenance type code date on every benefit segment, so each links to its SROI.
- Claims are usually sent as IAIABC flat files or XML through an EDI vendor. Export the transactions from your claims system or vendor as CSV, or flatten an EDI file by record type.
- Give dates as yyyymmdd.
- To check new transactions against a claim’s history, include the claim’s FROI and earlier SROIs with their benefit segments. The sequencing and match checks only see what’s loaded.
- Choose each new file in its Prepare stage, stages 1 to 3, in place of the previous one. Or give each file the name of the one it replaces: an upload with the same name replaces it, and the stage keeps using it.
- Correct anything a Fail rule flags, then send the batch to the Virginia Workers’ Compensation Commission.
Contact the Quantemplate support team, or use your AI agent, to build custom logic for your use case.
Limits
- It’s built for Virginia. Every state that takes Release 3.1 publishes its own requirement tables, with its own codes, conditions and sequencing.
- It follows version 1.7 of the Commission’s tables, in force from 15 December 2026. Transactions sent before then are edited against version 1.6.
- The SROI file has one set of payment, other benefit, permanent impairment and dependent columns, so only one of each is checked per SROI. Reduced earnings, concurrent employment and recovery segments aren’t included.
- The Commission’s own records aren’t available, so match data is checked against the FROIs in the files.
- Late reason codes are required from calendar days between the dates on the transaction, not from the Commission’s processing calendar.
- Industry and class codes are checked for their shape, not against NAICS or the class code lists.
- The test data is fictional.
- The build doesn’t set up Auto Run, Auto Export or feeds.
- The agent works through the app in your browser, so changes someone makes in the app whilst it’s working can trip it up.