{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/cms-gov/json-schema/cms-gov-provider-schema.json",
  "title": "Provider",
  "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/Provider",
  "properties": {
    "name": {
      "type": "string"
    },
    "gender": {
      "$ref": "#/$defs/ProviderGenderEnum"
    },
    "specialties": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "type": {
      "$ref": "#/$defs/ProviderTypeEnum"
    },
    "accepting": {
      "type": "string",
      "enum": [
        "accepting",
        "not accepting",
        "accepting in some locations",
        "unknown"
      ]
    },
    "npi": {
      "type": "string",
      "pattern": "^[0-9]{10}$",
      "title": "National Provider Identifier"
    },
    "languages": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "facility_types": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "If provider is a facility, this is a list of the applicable facility types"
    },
    "taxonomy": {
      "type": "string",
      "description": "provider taxonomy from National Uniform Claim Committee"
    }
  },
  "type": "object",
  "required": [
    "name",
    "type",
    "npi"
  ],
  "$defs": {
    "ProviderGenderEnum": {
      "enum": [
        "Male",
        "Female",
        "Other",
        "Transgender-female",
        "Transgender-male",
        "Non-binary",
        "Non-disclose"
      ],
      "type": "string",
      "properties": {}
    },
    "ProviderTypeEnum": {
      "enum": [
        "Individual",
        "Facility"
      ],
      "type": "string",
      "properties": {}
    }
  }
}