{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/optum/json-schema/optum-policy-search-request-schema.json",
  "title": "PolicySearchRequest",
  "x-generated": "2026-11-09",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/optum-policy-lookup-apis-api-openapi.yml#/components/schemas/PolicySearchRequest",
  "type": "object",
  "properties": {
    "policyType": {
      "type": "string",
      "enum": [
        "NCD_PART_A",
        "NCD_PART_B",
        "LCD_DME",
        "NCD_DME",
        "LCD_PART_A",
        "LCD_PART_B",
        "NCD_LAB"
      ]
    },
    "searchType": {
      "type": "string"
    },
    "procedureCode": {
      "type": "string"
    },
    "termSearch": {
      "$ref": "#/$defs/TermSearch"
    },
    "diagnosisCode": {
      "$ref": "#/$defs/DiagnosisCode"
    },
    "effectiveDate": {
      "type": "string",
      "format": "date-time"
    },
    "lcd": {
      "$ref": "#/$defs/Lcd"
    }
  },
  "$defs": {
    "DiagnosisCode": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string"
        },
        "codeType": {
          "type": "string"
        }
      }
    },
    "Lcd": {
      "type": "object",
      "properties": {
        "carrierId": {
          "type": "integer",
          "format": "int32"
        },
        "fiId": {
          "type": "integer",
          "format": "int32"
        },
        "dmeId": {
          "type": "integer",
          "format": "int32"
        },
        "retiredPolicies": {
          "type": "boolean"
        }
      }
    },
    "TermSearch": {
      "type": "object",
      "properties": {
        "keyword": {
          "type": "string"
        },
        "searchBy": {
          "type": "string"
        },
        "searchLogic": {
          "type": "string"
        }
      }
    }
  }
}