{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/optum/json-schema/optum-operation-outcome-schema.json",
  "title": "OperationOutcome",
  "description": "FHIR OperationOutcome resource",
  "x-generated": "2026-11-09",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/optum-provideraccessdavinciexport-api-openapi.yml#/components/schemas/OperationOutcome",
  "type": "object",
  "properties": {
    "resourceType": {
      "type": "string"
    },
    "issue": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/OperationOutcomeIssue"
      }
    }
  },
  "$defs": {
    "OperationOutcomeIssue": {
      "type": "object",
      "properties": {
        "severity": {
          "type": "string",
          "enum": [
            "fatal",
            "error",
            "warning",
            "information"
          ]
        },
        "code": {
          "type": "string"
        },
        "diagnostics": {
          "type": "string"
        }
      }
    }
  }
}