{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://schemas.kodemed.ch/_common/Identifier.schema.json",
  "title": "KodeMed Identifier",
  "description": "Stable server-generated identifier used across every wire flow (REST request body, webhook payload, WebSocket envelope, COM GetResults). UUID-format `*Id` properties — `sessionId`, `caseId`, `requestId`, `deliveryId` — reference this type. Partner-controlled identifiers (`instanceId`, `targetUserId`) reference `_common/OpaqueIdentifier` instead. Drift to a different type (integer, uuid-without-format, custom string) fails the uniformity test (#640).",
  "type": "string",
  "format": "uuid",
  "pattern": "^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$",
  "examples": [
    "0f9ea092-c774-4624-bb10-8910ec03d1db"
  ]
}
