{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/certifyos/main/json-schema/certifyos-override-outcome-schema.json",
  "title": "OverrideOutcome",
  "description": "The persisted result of an override write.",
  "x-generated": "2026-10-20",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/certifyos-anchoroverride-api-openapi.yml#/components/schemas/OverrideOutcome",
  "type": "object",
  "required": [
    "anchorGroupPractitionerId"
  ],
  "properties": {
    "anchorGroupPractitionerId": {
      "type": "string",
      "description": "Anchor group practitioner id."
    },
    "effectiveAnchorDate": {
      "$ref": "#/$defs/LocalDate",
      "type": "string",
      "description": "Effective anchor date after the write (yyyy-MM-dd)."
    },
    "manualOverrideAnchorDate": {
      "$ref": "#/$defs/LocalDate",
      "type": "string",
      "description": "Stored manual override anchor date (yyyy-MM-dd)."
    },
    "controlStatus": {
      "type": "string",
      "description": "Who owns the date — AUTOMATIC or MANUAL. Written on every write."
    },
    "reviewStatus": {
      "type": "string",
      "description": "Whether review is required — REQUIRED or NOT_REQUIRED. Written on every write."
    },
    "updatedAt": {
      "$ref": "#/$defs/Instant",
      "type": "string",
      "description": "Commit timestamp of this write."
    },
    "participatingTenantIds": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "Tenants participating after the write."
    }
  },
  "$defs": {
    "Instant": {
      "type": "string",
      "format": "date-time"
    },
    "LocalDate": {
      "type": "string",
      "format": "date"
    }
  }
}