{
  "id": "SAFETY-LABEL-CHANGE-SEARCH",
  "title": "Search FDA-designated safety labeling changes",
  "shortTitle": "Safety labeling changes",
  "method": "GET",
  "path": "/v1/safety-labeling-changes/search",
  "queryPath": null,
  "group": "safety",
  "unsupportedFields": [],
  "availability": "preview",
  "request": {
    "additionalProperties": false,
    "properties": {
      "q": {
        "maxLength": 500,
        "minLength": 1,
        "type": "string",
        "title": "Q"
      },
      "change_id": {
        "anyOf": [
          {
            "type": "string"
          },
          {
            "items": {
              "type": "string"
            },
            "type": "array"
          }
        ],
        "title": "Change Id"
      },
      "application_number": {
        "anyOf": [
          {
            "type": "string"
          },
          {
            "items": {
              "type": "string"
            },
            "type": "array"
          }
        ],
        "title": "Application Number"
      },
      "section": {
        "anyOf": [
          {
            "type": "string"
          },
          {
            "items": {
              "type": "string"
            },
            "type": "array"
          }
        ],
        "title": "Section"
      },
      "changed_from": {
        "type": "string",
        "title": "Changed From"
      },
      "changed_to": {
        "type": "string",
        "title": "Changed To"
      },
      "include": {
        "anyOf": [
          {
            "enum": [
              "section_text",
              "source_formatting"
            ],
            "type": "string"
          },
          {
            "items": {
              "enum": [
                "section_text",
                "source_formatting"
              ],
              "type": "string"
            },
            "type": "array"
          }
        ],
        "title": "Include"
      },
      "limit": {
        "default": 20,
        "maximum": 100,
        "minimum": 1,
        "title": "Limit",
        "type": "integer"
      },
      "cursor": {
        "type": "string",
        "title": "Cursor"
      }
    },
    "title": "SafetyLabelChangeSearchRequest",
    "type": "object"
  },
  "response": {
    "$defs": {
      "SafetyLabelChangeAskedProduct": {
        "additionalProperties": false,
        "properties": {
          "application_number": {
            "title": "Application Number",
            "type": "string"
          },
          "trade_name": {
            "type": "string",
            "title": "Trade Name"
          }
        },
        "required": [
          "application_number"
        ],
        "title": "SafetyLabelChangeAskedProduct",
        "type": "object"
      },
      "SafetyLabelChangeViaReference": {
        "additionalProperties": false,
        "properties": {
          "reference_name": {
            "title": "Reference Name",
            "type": "string"
          },
          "reference_application_number": {
            "title": "Reference Application Number",
            "type": "string"
          },
          "for_products": {
            "items": {
              "$ref": "#/$defs/SafetyLabelChangeAskedProduct"
            },
            "title": "For Products",
            "type": "array"
          }
        },
        "required": [
          "for_products",
          "reference_application_number",
          "reference_name"
        ],
        "title": "SafetyLabelChangeViaReference",
        "type": "object"
      },
      "SafetyLabelSectionChange": {
        "additionalProperties": false,
        "properties": {
          "section_code": {
            "type": "string",
            "title": "Section Code"
          },
          "section_title": {
            "title": "Section Title",
            "type": "string"
          },
          "new_text": {
            "items": {
              "type": "string"
            },
            "type": "array",
            "title": "New Text"
          },
          "source_text": {
            "type": "string",
            "title": "Source Text"
          },
          "source_text_truncated": {
            "type": "boolean",
            "title": "Source Text Truncated"
          },
          "underline_spans": {
            "items": {
              "$ref": "#/$defs/SafetyLabelUnderlineSpan"
            },
            "type": "array",
            "title": "Underline Spans"
          }
        },
        "required": [
          "section_title"
        ],
        "title": "SafetyLabelSectionChange",
        "type": "object"
      },
      "SafetyLabelUnderlineSpan": {
        "additionalProperties": false,
        "properties": {
          "start": {
            "minimum": 0,
            "title": "Start",
            "type": "integer"
          },
          "end": {
            "exclusiveMinimum": 0,
            "title": "End",
            "type": "integer"
          }
        },
        "required": [
          "end",
          "start"
        ],
        "title": "SafetyLabelUnderlineSpan",
        "type": "object"
      },
      "WirePublicSafetyLabelingChange": {
        "additionalProperties": false,
        "properties": {
          "change_id": {
            "title": "Change Id",
            "type": "string"
          },
          "drug_name": {
            "title": "Drug Name",
            "type": "string"
          },
          "active_ingredient": {
            "type": "string",
            "title": "Active Ingredient"
          },
          "application_number": {
            "title": "Application Number",
            "type": "string"
          },
          "application_type": {
            "title": "Application Type",
            "type": "string"
          },
          "supplement_type": {
            "title": "Supplement Type",
            "type": "string"
          },
          "supplement_number": {
            "title": "Supplement Number",
            "type": "string"
          },
          "changed_date": {
            "title": "Changed Date",
            "type": "string"
          },
          "source_url": {
            "title": "Source Url",
            "type": "string"
          },
          "label_url": {
            "type": "string",
            "title": "Label Url"
          },
          "changed_sections": {
            "items": {
              "$ref": "#/$defs/SafetyLabelSectionChange"
            },
            "title": "Changed Sections",
            "type": "array"
          },
          "via_reference": {
            "$ref": "#/$defs/SafetyLabelChangeViaReference"
          }
        },
        "required": [
          "application_number",
          "application_type",
          "change_id",
          "changed_date",
          "changed_sections",
          "drug_name",
          "source_url",
          "supplement_number",
          "supplement_type"
        ],
        "title": "WirePublicSafetyLabelingChange",
        "type": "object"
      }
    },
    "items": {
      "$ref": "#/$defs/WirePublicSafetyLabelingChange"
    },
    "type": "array"
  }
}
