{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/optum/json-schema/optum-complete-code-history-schema.json",
  "title": "CompleteCodeHistory",
  "x-generated": "2026-11-09",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/optum-code-information-api-openapi.yml#/components/schemas/CompleteCodeHistory",
  "required": [
    "codeHistory"
  ],
  "type": "object",
  "properties": {
    "codeHistory": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/CodeHistory"
      }
    }
  },
  "$defs": {
    "CodeHistory": {
      "type": "object",
      "properties": {
        "changeEffectiveDate": {
          "type": "string"
        },
        "status": {
          "type": "string"
        },
        "changeSummary": {
          "type": "string"
        },
        "fullInfo": {
          "type": "string"
        },
        "char48Info": {
          "type": "string"
        },
        "char35Info": {
          "type": "string"
        },
        "codeHistoryReferences": {
          "$ref": "#/$defs/CodeHistoryReferences"
        }
      }
    },
    "CodeHistoryReferences": {
      "type": "object",
      "properties": {
        "notInAmaBook": {
          "type": "string"
        },
        "retroactive": {
          "type": "string"
        }
      }
    }
  }
}