{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/backworkhealth-com/json-schema/backworkhealth-com-drug-formulary-evidence-schema.json",
  "title": "DrugFormularyEvidence",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/backworkhealth-com-drugs-api-openapi.yml#/components/schemas/DrugFormularyEvidence",
  "type": "object",
  "properties": {
    "source": {
      "type": "string",
      "enum": [
        "cvs_caremark",
        "express_scripts",
        "uhc"
      ]
    },
    "payer_name": {
      "type": "string"
    },
    "pbm_name": {
      "type": [
        "string",
        "null"
      ]
    },
    "formulary_name": {
      "type": [
        "string",
        "null"
      ]
    },
    "plan_year": {
      "anyOf": [
        {
          "type": "integer"
        },
        {
          "type": "null"
        }
      ]
    },
    "effective_date": {
      "type": [
        "string",
        "null"
      ]
    },
    "drug_name": {
      "type": "string"
    },
    "matched_text": {
      "type": [
        "string",
        "null"
      ]
    },
    "therapeutic_category": {
      "type": [
        "string",
        "null"
      ]
    },
    "drug_class": {
      "type": [
        "string",
        "null"
      ]
    },
    "tier": {
      "type": [
        "string",
        "null"
      ]
    },
    "coverage_status": {
      "type": [
        "string",
        "null"
      ]
    },
    "requirements": {
      "type": "object",
      "properties": {
        "prior_authorization": {
          "type": [
            "boolean",
            "string",
            "null"
          ]
        },
        "step_therapy": {
          "type": [
            "boolean",
            "string",
            "null"
          ]
        },
        "quantity_limit": {
          "type": [
            "boolean",
            "string",
            "null"
          ]
        },
        "specialty": {
          "type": [
            "boolean",
            "null"
          ]
        },
        "text": {
          "type": [
            "string",
            "null"
          ]
        },
        "codes": {
          "type": "array",
          "items": {
            "type": "string"
          }
        }
      },
      "required": [
        "prior_authorization",
        "step_therapy",
        "quantity_limit",
        "specialty",
        "text",
        "codes"
      ]
    },
    "alternatives": {
      "type": [
        "string",
        "null"
      ]
    },
    "preferred_alternatives": {
      "type": [
        "string",
        "null"
      ]
    },
    "source_url": {
      "type": [
        "string",
        "null"
      ]
    },
    "source_page": {
      "anyOf": [
        {
          "type": "integer"
        },
        {
          "type": "null"
        }
      ]
    }
  },
  "required": [
    "source",
    "payer_name",
    "pbm_name",
    "formulary_name",
    "plan_year",
    "effective_date",
    "drug_name",
    "matched_text",
    "therapeutic_category",
    "drug_class",
    "tier",
    "coverage_status",
    "requirements",
    "alternatives",
    "preferred_alternatives",
    "source_url",
    "source_page"
  ]
}