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.

North Carolina workers comp unit statistical reports
Rules, test data and a pipeline snapshot. Zip, 134 KB.
Download the template

See it in Quantemplate

The pipeline

The North Carolina workers comp pipeline in Quantemplate, showing its first 13 of 29 stages: Prepare units, exposures and losses, a Keys stage for each, Units by key, Exposure totals by unit, Loss totals by unit, three joins to the units and Check units. The Uploads tab lists the three test files, for losses, exposures and units, uploaded to stages 3, 2 and 1.

The validations

The test run’s Validations tab: the three rule sets, 02 Exposures, 03 Losses and 01 Unit headers and totals, each with failures, as the test files are built to fail every rule.

Claims across reports

Stage 29’s output for the clean data, scrolled to the columns joined from other reports. Rows 1 to 7 are the trucking policy: its first report, a loss correction and its second report. On the second report’s two repeat claims, rows 6 and 7, the previous report’s columns show the claim found once, its status, open and closed, its accident date, class 7219 and 8810, and its paid indemnity and medical. On the first report, rows 1 and 2 are on the next report, and rows 1 to 5 show one unit loaded for it. The other rows, a new claim on the second report and the other policies’ claims, show 0.

What it checks

124 rules 111 Fail 13 Warning

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

  1. Stages 1–3 Prepare Detect headers and tidy the units, exposures and losses files
  2. 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
  3. 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
  4. Stages 14–15 Check exposures Join each exposure record to its unit and run the exposure rules
  5. 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 plan isn’t included. Read it on the North Carolina Rate Bureau website.

Build it

  1. Install the Quantemplate skills, version 1.0.0 or later, if you haven’t already. Then unzip the download.
  2. 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.
  3. 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

Contact the Quantemplate support team, or use your AI agent, to build custom logic for your use case.

Limits