{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/optum/json-schema/optum-term-search-results-schema.json",
  "title": "TermSearchResults",
  "x-generated": "2026-11-09",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/optum-reference-code-api-openapi.yml#/components/schemas/TermSearchResults",
  "type": "object",
  "properties": {
    "termSearchResult": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/TermSearchResult"
      }
    },
    "link": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/Link"
      }
    }
  },
  "$defs": {
    "Link": {
      "type": "object",
      "properties": {
        "href": {
          "type": "string"
        },
        "value": {
          "type": "string"
        }
      }
    },
    "TermSearchResult": {
      "required": [
        "code"
      ],
      "type": "object",
      "properties": {
        "code": {
          "type": "string"
        },
        "rank": {
          "type": "integer",
          "format": "int64"
        },
        "desc": {
          "type": "string"
        },
        "descFull": {
          "type": "string"
        },
        "href": {
          "type": "string"
        },
        "codeType": {
          "type": "integer",
          "format": "int32"
        }
      }
    }
  }
}