System Design Atlas

Insurance claims with documents and payouts

05 / 10Worked example

Authoritative data and states

How does a decision remain comprehensible after receiving new evidence?

The interfaces need authoritative state. Each payout refers to exactly one approved decision with its document version, amount and recipient. The same approved entitlement is paid at most once; new evidence does not overwrite the decision. The table separates current states from the evidence supporting them.

Starting point Persist the key and content with E-31 and Z-31.

Assumptions for the example case

Fictitious example design: a simple property claim under one policy; manual coverage decision based on a fixed document version; one full payout in EUR; reasoned rejection and a later reassessment as a separate process. Figures and quality targets are illustrative test assumptions. Automatic claim rejection by AI, fraud investigation, partial payments and comprehensive statutory deadline calculation are outside scope.

Data relationships and permitted transitions

Claim, document version, decision and command

Claim S-31belongs to P-31
S-31 → D-31:n document versions
Document version D-33 Immutable supporting documents
D-3 → E-311:n Decisions
Decision E-3145,000 cents + recipients
E-31 → Z-310..1 payout
Payment order Z-31Open → paid/rejected
gemeldet → in_prüfung ↔ nachforderungin_prüfung → freigegeben / abgelehntauszahlung_offen → ausgezahlt / zahlung_abgelehnt

New evidence creates a new review version; it does not change the approved decision.

A new document arrives after approval. Preserve immutable document versions and their decisions. The earlier rationale remains reconstructable; reassessment starts explicitly.

Entities and relationships

EntityAuthoritative dataResponsibility
Claim S-31Policy, loss event, state, versionBinds notification and decisions.
Document version D-3Three Immutable File References with HashThe decision refers exactly to this version.
Decision E-31Coverage, rationale, amount, document version, approvalsNew evidence does not silently update an old decision.
Payment order Z-31Decision, beneficiary, amount, EUR, external resultAt most one payout per approved decision.

Claim S-31

Authoritative data
Policy, loss event, state, version
Responsibility
Binds notification and decisions.

Document version D-3

Authoritative data
Three Immutable File References with Hash
Responsibility
The decision refers exactly to this version.

Decision E-31

Authoritative data
Coverage, rationale, amount, document version, approvals
Responsibility
New evidence does not silently update an old decision.

Payment order Z-31

Authoritative data
Decision, beneficiary, amount, EUR, external result
Responsibility
At most one payout per approved decision.

Permitted state transitions

Starting pointTargetCondition
gemeldetin_prüfungClaims handlers start the documented assessment.
in_prüfungnachforderungA named document is missing.
nachforderungin_prüfungThe new document version is explicitly adopted for review.
in_prüfungfreigegebenCoverage is affirmed and required approvals refer to the same version.
in_prüfungabgelehntReasoned decision is documented.
freigegebenauszahlung_offenZ-31 permanently stored.
auszahlung_offenausgezahltMatching payment evidence is available.
auszahlung_offenzahlung_abgelehntDefinitive rejection; payment operations handles a new payout separately.
abgelehnt or ausgezahlt or zahlung_abgelehntterminalA reassessment or corrected payout command receives its own identity and predecessor reference.

gemeldet

Target
in_prüfung
Condition
Claims handlers start the documented assessment.

in_prüfung

Target
nachforderung
Condition
A named document is missing.

nachforderung

Target
in_prüfung
Condition
The new document version is explicitly adopted for review.

in_prüfung

Target
freigegeben
Condition
Coverage is affirmed and required approvals refer to the same version.

in_prüfung

Target
abgelehnt
Condition
Reasoned decision is documented.

freigegeben

Target
auszahlung_offen
Condition
Z-31 permanently stored.

auszahlung_offen

Target
ausgezahlt
Condition
Matching payment evidence is available.

auszahlung_offen

Target
zahlung_abgelehnt
Condition
Definitive rejection; payment operations handles a new payout separately.

abgelehnt or ausgezahlt or zahlung_abgelehnt

Target
terminal
Condition
A reassessment or corrected payout command receives its own identity and predecessor reference.

Preserve document versions

Preserve document versions

Track immutable document versions and the decisions based on them.

A new document arrives after approval.

The earlier rationale remains reconstructable; reassessment starts explicitly.

Alternative considered
Current files under the same address overwrite the decision reference.
Trade-off
Multiple file versions require retention.
Reassess
Deletion deadlines require an agreed archiving and evidence strategy.

Terms in this step

Preserve document versions
The earlier rationale remains reconstructable; reassessment starts explicitly.

Try it yourself

New evidence arrives after E-31. Draw the relationship between the old document version, decision and reassessment.

A hint for your attempt

Use the specific entities and conditions from this step. The two solution parts distinguish the decision from its evidenced outcome.

Compare with a possible solution
First part of the solution
E-31 remains bound to D-3. New evidence creates a new document version and does not overwrite a reviewed file.
Second part of the solution
Reassessment receives an explicit predecessor reference. New evidence cannot retroactively erase the already-started payout Z-31.

Apply to your project

Which corresponding assumption would you check first in your project when deletion deadlines require an archiving and evidence strategy?

Step 6 examines: Move files outside the core processing path.