{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/cms-gov/json-schema/cms-gov-provider-coverage-schema.json",
  "title": "ProviderCoverage",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/cms-gov-provider-drug-coverage-api-openapi.yml#/components/schemas/ProviderCoverage",
  "properties": {
    "npi": {
      "$ref": "#/$defs/NPI"
    },
    "plan_id": {
      "$ref": "#/$defs/PlanID"
    },
    "coverage": {
      "$ref": "#/$defs/Coverage"
    },
    "addresses": {
      "description": "at which addresses this provider is covered by the plan, if any",
      "type": "array",
      "items": {
        "$ref": "#/$defs/Address"
      }
    },
    "accepting": {
      "type": "string",
      "enum": [
        "accepting",
        "not accepting",
        "accepting in some locations",
        "unknown"
      ]
    }
  },
  "$defs": {
    "Address": {
      "properties": {
        "city": {
          "type": "string"
        },
        "state": {
          "type": "string"
        },
        "street_1": {
          "type": "string"
        },
        "street_2": {
          "type": "string"
        },
        "zipcode": {
          "type": "string"
        },
        "countyfips": {
          "description": "5-digit county FIPS code",
          "type": "string"
        }
      },
      "type": "object"
    },
    "Coverage": {
      "type": "string",
      "enum": [
        "Covered",
        "NotCovered",
        "DataNotProvided",
        "GenericCovered"
      ],
      "properties": {}
    },
    "NPI": {
      "type": "string",
      "pattern": "^[0-9]{10}$",
      "properties": {}
    },
    "PlanID": {
      "type": "string",
      "pattern": "^[0-9]{5}[A-Z]{2}[0-9]{7}$",
      "properties": {}
    }
  }
}