{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/hospitalforspecialsurgery/json-schema/hospitalforspecialsurgery-treatment-response-schema.json",
  "title": "TreatmentResponse",
  "x-generated": "2026-12-03",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/hospitalforspecialsurgery-openapi.json#/components/schemas/TreatmentResponse",
  "type": "object",
  "properties": {
    "id": {
      "type": [
        "string",
        "null"
      ]
    },
    "contentType": {
      "type": [
        "string",
        "null"
      ]
    },
    "slug": {
      "type": [
        "string",
        "null"
      ]
    },
    "name": {
      "type": [
        "string",
        "null"
      ]
    },
    "alternateNames": {
      "type": [
        "array",
        "null"
      ],
      "items": {
        "type": "string"
      }
    },
    "summary": {
      "type": [
        "string",
        "null"
      ]
    },
    "description": {
      "type": [
        "string",
        "null"
      ]
    },
    "relatedConditions": {
      "type": [
        "array",
        "null"
      ],
      "items": {
        "$ref": "#/$defs/RelationshipReference"
      }
    },
    "relatedDepartments": {
      "type": [
        "array",
        "null"
      ],
      "items": {
        "$ref": "#/$defs/RelationshipReference"
      }
    },
    "relatedProviders": {
      "type": [
        "array",
        "null"
      ],
      "items": {
        "$ref": "#/$defs/RelationshipReference"
      }
    },
    "contentUrl": {
      "type": [
        "string",
        "null"
      ]
    },
    "canonicalUrl": {
      "type": [
        "string",
        "null"
      ]
    },
    "apiUrl": {
      "type": [
        "string",
        "null"
      ]
    },
    "language": {
      "type": [
        "string",
        "null"
      ]
    },
    "lastModified": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time"
    },
    "structuredData": {
      "nullable": true
    },
    "aiMetadata": {
      "$ref": "#/$defs/AiMetadata"
    },
    "metadata": {
      "$ref": "#/$defs/ContentMetadata"
    },
    "expanded": {
      "type": [
        "object",
        "null"
      ],
      "additionalProperties": {}
    }
  },
  "additionalProperties": false,
  "$defs": {
    "AiMetadata": {
      "type": "object",
      "properties": {
        "keywords": {
          "type": [
            "array",
            "null"
          ],
          "items": {
            "type": "string"
          }
        },
        "synonyms": {
          "type": [
            "array",
            "null"
          ],
          "items": {
            "type": "string"
          }
        },
        "bodyParts": {
          "type": [
            "array",
            "null"
          ],
          "items": {
            "type": "string"
          }
        },
        "medicalSpecialties": {
          "type": [
            "array",
            "null"
          ],
          "items": {
            "type": "string"
          }
        },
        "lastReviewed": {
          "type": [
            "string",
            "null"
          ],
          "format": "date-time"
        }
      },
      "additionalProperties": false
    },
    "ContentMetadata": {
      "type": "object",
      "properties": {
        "source": {
          "type": [
            "string",
            "null"
          ]
        },
        "published": {
          "type": "boolean"
        },
        "lastModified": {
          "type": [
            "string",
            "null"
          ],
          "format": "date-time"
        }
      },
      "additionalProperties": false
    },
    "RelationshipReference": {
      "type": "object",
      "properties": {
        "id": {
          "type": [
            "string",
            "null"
          ]
        },
        "contentType": {
          "type": [
            "string",
            "null"
          ]
        },
        "slug": {
          "type": [
            "string",
            "null"
          ]
        },
        "name": {
          "type": [
            "string",
            "null"
          ]
        },
        "contentUrl": {
          "type": [
            "string",
            "null"
          ]
        }
      },
      "additionalProperties": false
    }
  }
}