{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/med-reveal-com/json-schema/med-reveal-com-market-search-request-schema.json",
  "title": "MarketSearchRequest",
  "description": "Market search request model.\n\nSearch for provider rates across the healthcare market.",
  "x-generated": "2026-11-05",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/med-reveal-com-openapi.json#/components/schemas/MarketSearchRequest",
  "properties": {
    "insurance": {
      "type": "string",
      "title": "Insurance",
      "description": "Insurance company code (e.g., 'uhc', 'cigna', 'aetna', 'bcbs', 'optum')"
    },
    "state": {
      "type": "string",
      "title": "State",
      "description": "Two-letter state code (e.g., 'TX', 'CA')"
    },
    "billingCode": {
      "type": "string",
      "title": "Billingcode",
      "description": "CPT/HCPCS billing code"
    },
    "taxonomyCodes": {
      "anyOf": [
        {
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        {
          "type": "null"
        }
      ],
      "title": "Taxonomycodes",
      "description": "List of taxonomy codes or classification names"
    },
    "entityType": {
      "anyOf": [
        {
          "type": "integer"
        },
        {
          "type": "null"
        }
      ],
      "title": "Entitytype",
      "description": "Entity type (1=Individual, 2=Organization)"
    },
    "page": {
      "type": "integer",
      "minimum": 1.0,
      "title": "Page",
      "description": "Page number (1-indexed)",
      "default": 1
    },
    "pageSize": {
      "type": "integer",
      "maximum": 500.0,
      "minimum": 1.0,
      "title": "Pagesize",
      "description": "Results per page",
      "default": 50
    },
    "filterNPIs": {
      "anyOf": [
        {
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        {
          "type": "null"
        }
      ],
      "title": "Filternpis",
      "description": "Filter by specific NPIs"
    },
    "filterTINs": {
      "anyOf": [
        {
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        {
          "type": "null"
        }
      ],
      "title": "Filtertins",
      "description": "Filter by specific TINs"
    },
    "filterCities": {
      "anyOf": [
        {
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        {
          "type": "null"
        }
      ],
      "title": "Filtercities",
      "description": "Filter by cities"
    }
  },
  "type": "object",
  "required": [
    "insurance",
    "state",
    "billingCode"
  ]
}