SAM quarterly return: number of claims and claims paid
Insurance South Africa
Works out sheets M1.3S and M2.3S of the SAM quarterly return, the number of claims and the claims paid for direct business and inwards reinsurance, from a short-term insurer’s claims listings. It checks each claim’s product, status, dates and amounts, that the movements explain the claims outstanding at the end of the quarter, and that the start matches last quarter’s end.
From the Prudential Authority’s Quarterly Solo Quantitative Reporting Template v3, sheets M1.3S and M2.3S, and the formula for total claims paid on M2.3S
- 20validation rules
- 13pipeline stages
- 119template rows
- 3 minto build and check
See it in Quantemplate
The pipeline

The test run’s checks

The M1.3S and M2.3S output

What it checks
20 rules 9 Fail 11 Warning
- Fields and codesA claim number given once, a product that’s in the products table, and valid open flags and movement code 5 Fail 5
- DatesThe quarter end and the loss, reported and movement dates are dates, in order, and a claim reported in the quarter is new 2 Fail, 3 Warning 5
- Status and movementsEach claim is open at the start and end of the quarter as its movement says 0 Fail, 4 Warning 4
- AmountsAmounts are numbers and not negative, the reinsurers’ share is no more than the gross, and a claim closed all quarter has no payments in it 1 Fail, 3 Warning 4
- TotalsClaims outstanding at the end follow from the movements, and the start matches last quarter’s end 1 Fail, 1 Warning 2
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–2 Read claims Remove blank rows, detect the header, add each file’s name and stack the listings
- Stages 3–6 Products and counts Match each claim to its product, business type and line of business, and count the rows for each claim number
- Stages 7–8 Check claims Work out each claim’s share of every M1.3S and M2.3S column, and run the 18 claim checks. Output: every claim
- Stages 9–11 Claim totals Total the claims by business type and line of business, and bring in last quarter’s figures
- Stages 12–13 M1.3S and M2.3S Check that the movements explain the claims outstanding at the end and that the start matches last quarter, and run the 2 total checks. Output: one row per business type and line of business, with amounts and total claims paid in R’000
The claims listing’s columns
Each claims system gives a claims listing for the quarter as a CSV file, with one row per claim that was outstanding at the start or end of the quarter, or had a payment, ALAE or recovery in it. A claim number appears once across all the files.
Column |
What it holds |
|---|---|
Claim Number |
The claim’s number |
Product Code |
Your product code, as in the products dataset |
Quarter End |
The last day of the quarter, as yyyy-mm-dd, such as 2026-09-30 |
Loss Date |
The date of the loss, as yyyy-mm-dd |
Reported Date |
The date the claim was reported to you, as yyyy-mm-dd |
Open at Start |
Y if the claim was outstanding at the start of the quarter, otherwise N |
Movement |
What changed the claim’s status in the quarter, as one of the codes below. Blank for no change |
Movement Date |
The date of the movement, as yyyy-mm-dd. For NEW CLOSED, the date it was closed |
Open at End |
Y if the claim is outstanding at the end of the quarter, otherwise N |
Gross Claims Paid |
Claims paid on the claim in the quarter, excluding ALAE, in rand |
Gross ALAE |
Allocated loss adjustment expenses paid on the claim in the quarter, such as assessors’ and lawyers’ fees, in rand |
Gross Recoveries |
Non-reinsurance recoveries received on the claim in the quarter, such as salvage and subrogation, in rand |
Ceded Claims Paid |
The reinsurers’ share of the claims paid, in rand. Blank if none |
Ceded ALAE |
The reinsurers’ share of the ALAE, in rand. Blank if none |
Ceded Recoveries |
The reinsurers’ share of the recoveries, in rand. Blank if none |
The movement codes are used to check the claims outstanding at the end of the quarter against those at the start. Codes and the Y and N flags can be in any case: the pipeline trims them and puts them in capitals.
Movement |
What it means |
|---|---|
NEW |
Reported in the quarter, and outstanding at the end |
NEW CLOSED |
Reported and closed in the quarter |
CLOSED |
Outstanding at the start and closed in the quarter, whether paid or not |
REOPENED |
Closed before the quarter and reopened in it |
What’s in the download
- The 20 rules as JSON, and a table of every rule with its formula, notes and source
- A table of 16 products, each mapped to its business type, its SAM line of business and its row on M1.3S and M2.3S, and last quarter’s figures
- Two fictional claims listings for the quarter ending 30 September 2026, from a made-up insurer’s personal lines system and its commercial lines and inwards reinsurance system, which pass every rule, and the M1.3S and M2.3S figures they give
- The same listings with a case for each rule, and the rows each rule should flag on them
- A template file the Quantemplate build skill reads to build the pipeline and check the results
- A snapshot of the finished pipeline, and the Python scripts that generate everything in the download
The PA’s quarterly template isn’t included. Download the current version from the PA’s insurer returns 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 SAM number of claims and claims paid pipeline from the sam-short-term-claims folder. Test it with the test claims listings and the clean ones and compare the results with the expected ones.
- Claude creates the products and previous quarter datasets, uploads the two test listings, builds the 13 stages and checks the test listings and the clean ones. This takes around 3 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 your own claims data
- Upload each system’s claims listing to stage 1 under a test file’s name, such as
kammanassie-personal-claims-test.csv, which replaces it. Or upload it under its own name, tick it in stage 1’s inputs and untick the test files. - Replace the data of the SAM Short-term Claims Products dataset with your own products, each with its business type, SAM line of business and template row. The business type is
Dfor direct business, orLoB_17atoLoB_17ffor the six kinds of inwards reinsurance, as on the template. Drag your file onto the dataset to replace its data. - Each quarter, replace the data of SAM Previous Quarter Claims with last quarter’s figures as filed: the number of claims outstanding and with payments from M1.3S, and the current quarter amounts from M2.3S, in R’000.
- Check the validation report’s Fail rules first: they mark claims that can’t be placed and movements that don’t add up. Warnings are worth checking before you file.
- The M1.3S and M2.3S output has one row per business type and line of business, with its template row, which is the same on both sheets. Direct business is on rows 30 to 46, and each kind of inwards reinsurance has a block of 17 rows below it, up to row 172.
- On M1.3S, Claims Outstanding and Claims with Payments go in columns E and F, and last quarter’s in G and H.
- On M2.3S, claims paid, gross and net, go in columns E and F, ALAE in I and J, and non-reinsurance recoveries in M and N, each with last quarter’s in the two columns after it. The template works out total claims paid in columns Q to T, and Q and R should match the output’s Total Claims Paid Gross and Net.
Contact the Quantemplate support team, or use your AI agent, to build custom logic for your use case.
Limits
- It covers claims. The short-term policies and premiums template works out M1.1S and M2.1S, the number of policies and premiums for direct business.
- The PA doesn’t define a claim paid for M1.3S, so a claim counts when it has a gross payment, excluding ALAE, in the quarter, including a part payment on a claim that’s still open. A claim with only ALAE or a recovery isn’t counted.
- M1.3S has no movement columns. The movement codes are Quantemplate’s own, used only to check the claims outstanding at the end against those at the start.
- Each claim has one movement a quarter, apart from
NEW CLOSED, which counts as reported and as closed. A claim reopened and closed again in the quarter has no movement. - It doesn’t produce the summary rows 19 to 26. The template adds them up itself.
- Last quarter’s figures are taken as filed, from the dataset. The pipeline doesn’t work them out again.
- The PA publishes no completion guide or rule list for these sheets. The checks follow the template’s layout and its formula for total claims paid, and Quantemplate’s own checks go further.
- It produces the figures, ready to copy into the PA’s template. It doesn’t fill in or submit the template, or check the filing deadline.
- The insurer in the test data, Kammanassie General, is made up. No insurer of that name turned up when we searched in December 2026.
- 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.