Medical malpractice closed claim reporting
Insurance United States
Checks a medical professional liability insurer’s closed claims before they’re reported to a state, then sums them into summary tables and line 2 of the Schedule T reconciliation: every claim’s NPDB provider, facility and allegation codes, the injury, its dates, how and when the claim was disposed of, the indemnity and defence costs, and the verdict for claims decided at trial.
From the codebook in the NAIC’s Guideline for Implementation of Medical Professional Liability Closed Claim Reporting (GL-1077), for the states that collect closed claim reports, such as Missouri, Illinois, Iowa, Connecticut and Massachusetts.
- 68validation rules
- 12pipeline stages
- 49codebook items
- 2 minto build and check
See it in Quantemplate
The pipeline

The validations

Claims by severity

What it checks
68 rules 60 Fail 8 Warning
- Claims and incidentsThe reporting entity’s code and name, the claim identifier, filled and once for each entity, the incident identifier, and companion claims with the same severity and gender 5 Fail, 2 Warning 7
- Policy limitsPrimary and excess limits, annual limits no less than per occurrence limits, the limits available no more than the per occurrence limits, and indemnity within the limits available 6 Fail, 1 Warning 7
- Provider, place and injuryNPDB field of licensure, specialty, type of facility and allegation codes, physicians with a physician specialty and dentists with a dental one, the location in the facility and allegation group, the county and its FIPS code, injuries outside the state, gender, age and severity 13 Fail 13
- DatesReal dates, the claim closed in the reporting period, the injury, report, lawsuit and close in order, and a final indemnity payment date exactly when indemnity was paid 11 Fail 11
- DispositionDisposition and timing codes, a lawsuit for claims decided by a court or on appeal, none for claims settled before suit, no indemnity for claims abandoned or decided for the defendant, and indemnity for judgments for the plaintiff and settlements 7 Fail, 2 Warning 9
- Indemnity and defence costsAmounts, economic and non-economic indemnity adding up to the indemnity paid but not split half and half, defence costs adding up to their total, and very large payments for emotional injuries 5 Fail, 3 Warning 8
- Trials and verdictsTrial type and liable defendants, verdict items only when a defendant was found liable, the liability doctrine, fault percentages, damages adding up to the verdict, and the final verdict worked out from it 13 Fail 13
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
- Stage 1 Prepare closed claims Detect headers and tidy the file: trim, collapse spaces and upper-case
- Stage 2 Claim keys Set the reporting state and period, work out each date’s year, month and day, key each claim by its claim and incident identifiers, and label the severity, allegation group, disposition, timing and indemnity range
- Stages 3–4 Counts Count the claims with each claim identifier, and the companion claims in each incident with their highest and lowest severity and gender
- Stages 5–6 Joins Join both counts to each claim
- Stage 7 Check closed claims Turn blank counts into 0 and run the rules
- Stages 8–11 Summaries Count the claims and the paid claims, and add up the indemnity and defence costs, by severity of injury, allegation group, disposition and timing, and indemnity paid
- Stage 12 Schedule T reconciliation Count the paid claims and add up their indemnity, for line 2 of the guideline’s Schedule T reconciliation form
What’s in the download
- The 68 rules as JSON, and a table of every rule with its formula and why
- Good data for a fictional Missouri insurer’s 17 claims closed in the third quarter of 2026, from surgical and birth injury claims to a pharmacist’s dispensing error, a bench verdict upheld on appeal and an injury outside the state, and a test file with a filing built to fail each rule
- The number of rows each rule should flag on the test file, and the summaries the good data should give
- A template file the Quantemplate build skill reads to build the pipeline and check the results
- A snapshot of the finished pipeline
The guideline isn’t included. Download the Guideline for Implementation of Medical Professional Liability Closed Claim Reporting from the NAIC, and your state’s form or instructions from its insurance department.
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 medical malpractice closed claim reporting pipeline from the med-mal-closed-claims folder.
- Claude creates the datasets and stages, runs the test data and checks every rule’s result. This takes around 2 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 claims
- Export the period’s closed claims as one CSV file, one row per claim. Use the codebook’s item names as column names, such as
Field of Licensure CodeandDate Claim Closed. The header row of the test data in the download lists them all. - Give companion claims, such as claims against a surgeon and a hospital for the same injury, the same incident identifier.
- Give dates as yyyymmdd and amounts in whole dollars. Use the NPDB codes for the field of licensure, specialty, type of facility and allegation, and the guideline’s own codes for the rest.
- Change
Reporting State FIPS Code,Reporting Period StartandReporting Period Endin stage 2, Claim keys, to the state and period you’re reporting. The template is set up for Missouri’s third quarter of 2026. - Choose the new file in stage 1, Prepare closed claims, in place of the previous one. Or give it 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, and check the warnings. Then key or upload the claims into the state’s reporting system, and use stage 12 for line 2 of the Schedule T reconciliation.
Contact the Quantemplate support team, or use your AI agent, to build custom logic for your use case.
Limits
- It follows the NAIC’s codebook, not one state’s form. States collect closed claim reports in their own formats, often through a web reporting tool, and some ask for items the codebook leaves out. Compare your state’s form with the codebook before you rely on the results.
- It covers closed claims only. Some states also ask for open claims, as Iowa does, or for a yearly report, such as Connecticut’s yearly information.
- Dates are yyyymmdd, where the codebook writes MM/DD/YYYY. Change them to your state’s format when you report.
- State law isn’t checked: damages caps, minimum policy limits and reporting thresholds differ from state to state. The rules check the codes, how the items fit together and the arithmetic.
- It gives line 2 of the Schedule T reconciliation only. The other lines come from the annual statement and your accounts.
- 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.