{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/optum/json-schema/optum-discovery-response-schema.json",
  "title": "DiscoveryResponse",
  "x-generated": "2026-11-09",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/optum-discovery-api-openapi.yml#/components/schemas/DiscoveryResponse",
  "type": "object",
  "properties": {
    "services": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/DiscoveryService"
      }
    }
  },
  "$defs": {
    "DiscoveryService": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string"
        },
        "hook": {
          "type": "string"
        },
        "title": {
          "type": "string"
        },
        "description": {
          "type": "string"
        },
        "prefetch": {
          "$ref": "#/$defs/Prefetch"
        },
        "usageRequirements": {
          "type": "string"
        }
      },
      "required": [
        "id",
        "hook",
        "title"
      ]
    },
    "Prefetch": {
      "type": "object",
      "properties": {
        "claimResponse": {
          "type": "string"
        },
        "condition": {
          "type": "string"
        },
        "coverage": {
          "type": "string"
        },
        "device": {
          "type": "string"
        },
        "encounter": {
          "type": "string"
        },
        "location": {
          "type": "string"
        },
        "patient": {
          "type": "string"
        },
        "practitioner": {
          "type": "string"
        },
        "practitionerRole": {
          "type": "string"
        }
      }
    }
  }
}