North Carolina workers comp unit statistical reports
Insurance United States
Checks a carrier’s workers compensation unit statistical reports before they go to the North Carolina Rate Bureau: every unit, exposure and claim record against the statistical plan, each first report’s totals against its records, every claim against the policy’s exposure, and each claim against the same claim on the policy’s previous and next reports.
From the NCRB Workers Compensation Statistical Plan, Parts 1 to 6.
- 124validation rules
- 29pipeline stages
- 71fields
- 5 minto build and check
See it in Quantemplate
The pipeline

The validations

Claims across reports

What it checks
124 rules 111 Fail 13 Warning
- UnitsCarrier code, policy number, dates and term, report level, corrections, state, insured, policy conditions, estimated audit, coverage and plan codes, deductibles, one record per unit, and each first report’s payroll, premium, claim count and loss totals against its records 55 Fail 55
- ExposuresThe unit, update type, classification and statistical codes, coverage code, split period, exposure, rate and premium, experience modification and its date, rate effective date, and the sign of credits and charges 15 Fail, 3 Warning 18
- LossesThe unit, claim number and one record per claim, correction records, accident date, classification and its exposure, injury, status and amounts, act, loss, recovery, claim and settlement codes, part of body, nature and cause, COVID-19 coding, managed care and fraud, and each claim against the previous and next reports 41 Fail, 10 Warning 51
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 units, exposures and losses files
- Stages 4–6 Keys Work out each date’s year, month and day, the report number, keys for units, policies, classes and claims, and each exposure record’s payroll, subject premium and modified premium
- Stages 7–13 Check units Count the units with each key, add up each unit’s exposure and loss records, join them to the units and run the unit rules
- Stages 14–15 Check exposures Join each exposure record to its unit and run the exposure rules
- Stages 16–29 Check losses Count each policy’s exposure by class, each claim’s records and the units loaded for each report, find each claim on the policy’s previous and next reports, join them to the losses and run the loss rules
What’s in the download
- The 124 rules as JSON, and a table of every rule with its formula and why
- Good data for a fictional carrier’s July 2026 valuation, with first, second, fourth and tenth reports and a loss correction, 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 plan isn’t included. Read it on the North Carolina Rate Bureau website.
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 North Carolina workers comp unit statistical pipeline from the ncrb-wc-unit-statistical 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 valuation: units, with each unit’s header, insured and totals; exposures, one row per classification or statistical code; and losses, one row per claim. Use the plan’s field names as column names, such as
Policy Effective DateandClaim Status Code. - Repeat the carrier code, policy number, policy effective date, report level and correction sequence number on every exposure and loss row, so each links to its unit.
- Units are usually sent in the WCIO’s fixed-width WCSTAT format. Export the three record types from your statistical system as CSV, or split a WCSTAT file by record type.
- Give amounts in whole dollars and dates as yyyymmdd, as the plan requires.
- To check later reports against earlier ones, include the earlier reports’ units and losses. A claim is only compared with the previous report when both are 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 your WCSTAT file to the North Carolina Rate Bureau.
Contact the Quantemplate support team, or use your AI agent, to build custom logic for your use case.
Limits
- It’s built for North Carolina. Other states’ bureaus and NCCI use the same WCSTAT format with their own codes and rules, and California and Massachusetts have their own plans.
- Classification codes are checked for their shape and against the policy’s exposure, not against the North Carolina Basic Manual.
- Totals are only checked on first reports. A later report needn’t list claims that closed earlier and haven’t changed, so its records may not add up to its totals.
- Corrections are checked for their records, not against the report they correct.
- Rates aren’t checked against the Rate Bureau’s loss costs.
- 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.