MFSA national specific templates
Insurance Malta
Checks the quarterly and annual national specific templates an insurer in Malta submits to the MFSA: that every total adds up as the templates work it out, that every cell of each template is given, that the management accounts balance sheet balances, and that business written in other countries is on a basis that fits the country.
From the MFSA’s national specific templates for undertakings reporting under IFRS 17: Appendix I, the quarterly templates (version 10/2024), and Appendix II, the annual templates (version 09/2024), with their notes and formulas
- 18validation rules
- 22pipeline stages
- 16MFSA templates
- 4 minto build and check
See it in Quantemplate
The pipeline

The flow

The checked output

What it checks
18 rules 15 Fail 3 Warning
- CellsThe template, row, line of business and column are the MFSA’s, and the template asks for each cell 4 Fail 4
- FormatDates, currencies and the type of business are valid, every cell has a number, counts are whole and no cell is given twice 6 Fail 6
- TotalsEvery total adds up as the templates work it out, across templates too 1 Fail 1
- Signs and businessAmounts have the sign the template expects, and the insurer’s type of business reports the template 0 Fail, 2 Warning 2
- Activity by countryCountries are ones the MFSA lists, and the basis is FOS, FOE, Non-EEA or Not applicable and fits the country 2 Fail, 1 Warning 3
- TemplatesEvery cell of each template is given, and the management accounts balance sheet balances 2 Fail 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 Prepare Clean each templates file, add the numbers and keys the checks use, and stack the files
- Stages 3–8 Reference data The cells, sums and countries tables, and how many cells each template has in all, by row and by column
- Stages 9–12 Totals Each cell’s value type, expected sign and whether it must be given, the cells that add into each total, and duplicates
- Stages 13–19 Check rows Bring the totals, counts and EEA membership onto every cell and run the 16 row checks
- Stage 20 Check templates One row per insurer, period and template, with the cells given and missing and the balance sheet totals, then the 2 template checks
- Stages 21–22 Outputs Every cell with the totals and counts its checks compare, and each template each insurer gave
The templates it covers
The pipeline covers the 16 templates for undertakings that report under IFRS 17. General business undertakings give the general business templates and long term business undertakings the long term ones. Composites and reinsurers can give both.
Template |
What it is |
Business |
|---|---|---|
QNST01 |
Technical account, quarterly |
General |
QNST02 |
Technical account, quarterly |
Long term |
QNST03 |
Non-technical account, quarterly |
Both |
QNST04 |
Balance sheet, with Solvency II and management accounts columns |
Both |
QNST05_A |
Activity by country, quarterly |
General |
QNST05_B |
Activity by country, quarterly |
Long term |
ANST01 |
Gross premiums written by source of business |
General |
ANST02 |
Gross premiums written by source of business |
Long term |
ANST03 |
Changes in the number of policyholders |
Long term |
ANST04 |
Claim amounts by type of decrement |
Long term |
ANST05 |
Technical account, annual |
General |
ANST06 |
Technical account, annual |
Long term |
ANST07 |
Non-technical account, annual |
Both |
ANST09_A |
Activity by country, annual |
General |
ANST09_B |
Activity by country, annual |
Long term |
ANST10 |
Statement of cash flows, indirect method |
Both |
The quarterly Central Bank of Malta sheet and the annual register of binder agreements, ANST08, aren’t covered.
What’s in the download
- The 18 rules as JSON, and a table of every rule with its formula, notes and source
- Three reference tables: every cell the 16 templates ask for, which cells add into which totals, and the countries, with whether each is in the EEA
- Four fictional insurers’ quarterly and annual templates, every total adding up, and a test file with a case for each rule
- The rows each rule should flag on the test file
- 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 read the MFSA’s workbooks and generate everything in the download
The MFSA’s workbooks aren’t included. Download them from the MFSA’s website: Appendix I, the quarterly templates, and Appendix II, the annual templates. Both are Excel workbooks with macros.
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 MFSA national specific templates pipeline from the malta-nst folder. Test it with the test file and the good file and compare the results with the expected ones.
- Claude creates the three reference datasets, uploads the test file, builds the 22 stages and checks both test files. This takes around 4 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 templates
- Give your templates the same columns as the test file, one row per cell: Entity, Type of business, Period start, Period end, Currency, Template, Line of business, Row, Row label, Column, Jurisdiction, Basis and Value. Several insurers and periods can share a file, or have one each.
- Use the MFSA’s template codes and row and column numbers, such as QNST04, row 1.10 and column 2. Rows, columns and lines of business are matched as numbers, so 1.1 and 1.10 are the same row. Give the line of business for ANST01 and the activity by country templates, and the jurisdiction and basis for the activity by country templates only.
- Give every cell of each template you report, with zero where there’s nothing to report, as the MFSA asks. In the activity by country templates, give only the lines of business and countries that apply.
- In the activity by country templates, the jurisdiction is the country’s two-letter ISO code, such as DE. The basis is FOS or FOE for business passported to another EEA state, Non-EEA for countries outside the EEA, and Not applicable for business in Malta.
- Upload each file and add it to stage 1’s inputs. Stage 2 stacks stage 1’s outputs with Linked Stages on, so nothing after it needs changing.
- The sign check, the basis check and the type of business check are warnings, so they don’t block Auto Export. Set them to Fail if they should stop the data going further.
Contact the Quantemplate support team, or use your AI agent, to build custom logic for your use case.
Limits
- The rules are written from the MFSA’s templates, their notes and the formulas in its workbooks. The checks the MFSA runs when templates are submitted aren’t published, so review the rules against your own reading.
- In ANST03 and ANST04, the MFSA’s workbook types many totals in rather than working them out, so the checks follow the layout: each line’s total is its Malta and other countries’ columns added together, net claims are gross less reinsurance, and policyholders at the year end are those at the start plus the movements.
- The discontinuance rate in ANST03 isn’t worked out, only checked as a number, or a dash where there were no policies.
- Totals can differ from the sum of their parts by half a unit for each amount added, to allow for rounding.
- The balance sheet’s Solvency II column isn’t compared with the Solvency II balance sheet, and currencies aren’t converted.
- The insurers and their figures are made up.
- 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.