> ## Documentation Index
> Fetch the complete documentation index at: https://docs.khanhng.com/llms.txt
> Use this file to discover all available pages before exploring further.

# AD-004 Claim Partitioning

## Context

A claim and its related documents, assessment, approvals, refund, and audit records are read and updated together.

## Decision

Use Cosmos DB for NoSQL with claim aggregate items partitioned by claim ID. The order container uses customer ID as its partition key.

**Status:** Approved design.

## Alternatives

\[OWNER INPUT REQUIRED: alternatives considered in the design review.]

## Consequences

Claim-scoped queries remain aligned with the aggregate boundary.

The administrator KPI route scans the small showcase dataset; the guide recommends asynchronous materialized counters for a larger system.

## Date and evidence

Decision date: \[OWNER INPUT REQUIRED: decision date].

Evidence: repository `GUIDE.md`, sections 6, 8, and 15.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.