Part D · Chapter 20 · Trust

20. Reference data

Reference data is the codes everyone uses: product lines, statuses, causes, countries, currencies. Managed well, it is one list per subject, with every system's codes mapped to it and every change kept as a version, so codes mean the same everywhere and history survives.

Codes becoming one managed, versioned list
Playback speed

The clip shows four code lists as each company writes them: product lines, policy statuses, claim statuses and loss causes. A managed list appears for each, and every code the two companies' systems use is mapped to it. Two of Kestrel's codes stay on no list, on purpose: they are defects in the data. Then the loss cause windscreen is retired on 1 January 2026, with an end date, and glass breakage starts the next day. Last year's report still shows windscreen; overwriting the code would have changed it, and deleting it would have left last year's claims unmapped.

The idea: one managed list, mappings, and versions

Reference data is the small, slow-changing sets of codes other data points at: product lines, policy and claim statuses, loss causes, and the standard ones such as ISO country and currency codes. Each system keeps its own, and they differ: Harbour Mutual writes motor, Kestrel AUTO.

  • One managed list per subject, owned by someone in the business, with a code, a label and the dates each code is valid.
  • Mappings from every system's codes to the managed codes. Nobody's system changes; the platform maps the codes as the data arrives (in the silver layer, chapter 26).
  • Versions: a code is never deleted or overwritten. It gets an end date, and its successor a start date, so a report about any period maps each record with the codes valid then.
Reference data and master data Master data (chapters 18 and 19) is about many things that change: customers, brokers. Reference data is about the few codes used to describe them, which change rarely but are used everywhere. A taxonomy (chapter 10) is reference data with a hierarchy.
Remember Map every source code to one managed list, and retire a code by ending it, never by deleting or overwriting it.

A worked example: four lists, and a code retired

The two companies' systems use 37 codes in these four lists. All but Kestrel's two planted codes are mapped to managed codes. From 2026, Kestrel's GLAS covers all glass, so the combined list ends windscreen on 31 December 2025 and starts glass breakage the next day.

Every source code and its managed code (on 31 December 2025, and from 1 January 2026)
SystemListSource codeUntil 2025From 2026
sys-catalogueProduct linehomeHomeHome
sys-catalogueProduct linemotorMotorMotor
sys-catalogueProduct linetravelTravelTravel
kes-polisProduct lineAUTOMotorMotor
kes-polisProduct lineREISTravelTravel
kes-polisProduct lineWOONHomeHome
sys-pasPolicy statusactiveActiveActive
sys-pasPolicy statuscancelledCancelledCancelled
sys-pasPolicy statusexpiredExpiredExpired
kes-polisPolicy statusAActiveActive
kes-polisPolicy statusGIn grace periodIn grace period
kes-polisPolicy statusOCancelledCancelled
kes-polisPolicy statusVExpiredExpired
sys-claimsClaim statusclosedClosedClosed
sys-claimsClaim statusopenOpenOpen
sys-claimsClaim statusrejectedRejectedRejected
kes-polisClaim statusafgewezenRejectedRejected
kes-polisClaim statusgeslotenClosedClosed
kes-polisClaim statusopenOpenOpen
sys-claimsLoss causebaggageBaggageBaggage
sys-claimsLoss causecollisionCollisionCollision
sys-claimsLoss causeescape of waterEscape of waterEscape of water
sys-claimsLoss causefireFireFire
sys-claimsLoss causemedicalMedical expensesMedical expenses
sys-claimsLoss causestormStormStorm
sys-claimsLoss causetheftTheftTheft
sys-claimsLoss causewindscreenWindscreenGlass breakage
kes-polisLoss causeAANRCollisionCollision
kes-polisLoss causeBAGBaggageBaggage
kes-polisLoss causeBRDFireFire
kes-polisLoss causeDIEFTheftTheft
kes-polisLoss causeGLASWindscreenGlass breakage
kes-polisLoss causeMEDMedical expensesMedical expenses
kes-polisLoss causeONBUnmappedUnmapped
kes-polisLoss causeSTRMStormStorm
kes-polisLoss causeWTREscape of waterEscape of water
kes-polisLoss causewtrUnmappedUnmapped

Each claim is mapped with the code valid on its loss date, so last year's report reads windscreen and this year's glass breakage, from one list:

Harbour Mutual's 2025 claims by managed loss cause, each mapped on its loss date (PostgreSQL)
WITH cause_map (source_code, managed_code, valid_from, valid_to) AS (
  VALUES
    ('collision', 'COLLISION', DATE '2000-01-01', DATE '9999-12-31'),
    ('theft', 'THEFT', DATE '2000-01-01', DATE '9999-12-31'),
    ('windscreen', 'WINDSCREEN', DATE '2000-01-01', DATE '2025-12-31'),
    ('windscreen', 'GLASS', DATE '2026-01-01', DATE '9999-12-31'),
    ('storm', 'STORM', DATE '2000-01-01', DATE '9999-12-31'),
    ('escape of water', 'ESCAPE_OF_WATER', DATE '2000-01-01', DATE '9999-12-31'),
    ('fire', 'FIRE', DATE '2000-01-01', DATE '9999-12-31'),
    ('medical', 'MEDICAL', DATE '2000-01-01', DATE '9999-12-31'),
    ('baggage', 'BAGGAGE', DATE '2000-01-01', DATE '9999-12-31')
)
SELECT COALESCE(m.managed_code, 'UNMAPPED') AS cause, COUNT(*) AS claims
FROM claims c
LEFT JOIN cause_map m ON m.source_code = c.cause AND c.loss_date BETWEEN m.valid_from AND m.valid_to
WHERE c.loss_date BETWEEN DATE '2025-01-01' AND DATE '2025-12-31'
GROUP BY 1
ORDER BY COALESCE(m.managed_code, 'UNMAPPED') COLLATE "C"
The same list for 2026's claims
WITH cause_map (source_code, managed_code, valid_from, valid_to) AS (
  VALUES
    ('collision', 'COLLISION', DATE '2000-01-01', DATE '9999-12-31'),
    ('theft', 'THEFT', DATE '2000-01-01', DATE '9999-12-31'),
    ('windscreen', 'WINDSCREEN', DATE '2000-01-01', DATE '2025-12-31'),
    ('windscreen', 'GLASS', DATE '2026-01-01', DATE '9999-12-31'),
    ('storm', 'STORM', DATE '2000-01-01', DATE '9999-12-31'),
    ('escape of water', 'ESCAPE_OF_WATER', DATE '2000-01-01', DATE '9999-12-31'),
    ('fire', 'FIRE', DATE '2000-01-01', DATE '9999-12-31'),
    ('medical', 'MEDICAL', DATE '2000-01-01', DATE '9999-12-31'),
    ('baggage', 'BAGGAGE', DATE '2000-01-01', DATE '9999-12-31')
)
SELECT COALESCE(m.managed_code, 'UNMAPPED') AS cause, COUNT(*) AS claims
FROM claims c
LEFT JOIN cause_map m ON m.source_code = c.cause AND c.loss_date BETWEEN m.valid_from AND m.valid_to
WHERE c.loss_date BETWEEN DATE '2026-01-01' AND DATE '2026-12-31'
GROUP BY 1
ORDER BY COALESCE(m.managed_code, 'UNMAPPED') COLLATE "C"
Try this In the Taxonomy and ontology builder, run "Every source code under a concept" for Vehicle damage: the loss-cause list is a taxonomy, with each system's codes mapped to it.

Why it matters for Alex

Every combined report the merger needs (claims by cause, policies by status, premium by product line) depends on these mappings. And the auditors will re-run last year's figures: if a code change rewrote history, Alex has to explain numbers that changed after they were signed off.

Where it goes wrong

  • Editing a code in place. Renaming windscreen to glass breakage rewrites every past report that used it, silently.
  • Deleting a retired code. Last year's records point at nothing and fall out of every total.
  • Mapping the defects. Adding wtr and ONB to the list makes the bad data look valid; fix them at the source (chapter 15).
  • Lists in every spreadsheet. A code list copied into ten workbooks is ten lists within a year. Keep one, owned, and publish it.

Exercises

The lab checks each one against facts written down in advance, so any answer the brief allows passes. A pass is kept in this browser.

Map Kestrel's codes

Each code below is one Kestrel's package uses. Choose the managed code it means.

AUTO (product line)
REIS (product line)
WOON (product line)
A (policy status)
G (policy status)
O (policy status)
V (policy status)
afgewezen (claim status)
gesloten (claim status)

Retire a code without breaking history

Windscreen must give way to glass breakage from 1 January 2026. Each line is a way to do it. Choose what each does to last year's report.

Change the windscreen row: its code and label become glass breakage.
Delete windscreen from the list and add glass breakage from 1 January 2026.
End windscreen on 31 December 2025 and add glass breakage from 1 January 2026, each source code mapped to each for its dates.

Read the versions

With windscreen ended on 31 December 2025 and glass breakage started on 1 January 2026, choose what each claim's cause is in the combined reports.

A Harbour Mutual claim with the cause windscreen, lost in July 2025
A Harbour Mutual claim with the cause windscreen, lost in March 2026
A Kestrel claim with the code GLAS, lost in May 2024
A Kestrel claim with the code GLAS, lost in February 2026
A Kestrel claim with the code wtr, lost in 2023

On Azure

Checked against Microsoft's documentation on 18 October 2026.

Azure has no reference data service of its own. A pattern that works:

  • The source of truth: each list as a file in Git (or a table with an owner and a review), with codes, labels, valid-from and valid-to dates, and the mappings from every system.
  • Published to the lakehouse: a Delta table in Microsoft Fabric or Azure Databricks, which the silver layer joins on the record's date to conform every source's codes.
  • Found in the catalogue: the lists registered in Microsoft Purview's Unified Catalog as data assets with owners, and their subjects as glossary terms.

Never let a pipeline edit the list: changes go through the owner's review, as a new version.

Take it to work

Code list card

Describe one managed code list so it stays one list, with history.

The list

  • Its subject and its owner
  • Its codes, labels and valid dates

The mappings

  • Every system that uses these codes, and each source code's managed code
  • What happens to a code that is on no list?

Changes

  • Who approves a new or retired code?
  • How is a retired code ended, and its successor started?

Publishing

  • Where do the pipelines read it, and where do people find it?

Tools in this chapter

Terms taught here: Reference data

An unhandled error has occurred. Reload 🗙

Reconnecting…

Your connection to the Cloud Data Architecture Lab dropped, probably a Wi-Fi blip. Hold on while it reconnects.

The connection could not be restored. The page will reload in a few seconds.