{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/elation-health/main/json-schema/elation-health-allergy-create-schema.json",
  "title": "AllergyCreate",
  "x-generated": "2026-10-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/elation-health-allergies-api-openapi.yml#/components/schemas/AllergyCreate",
  "type": "object",
  "required": [
    "patient",
    "allergen",
    "status"
  ],
  "properties": {
    "patient": {
      "type": "integer",
      "description": "Patient ID"
    },
    "allergen": {
      "type": "string",
      "description": "Substance causing the allergy"
    },
    "reaction": {
      "type": "string",
      "description": "Allergic reaction description"
    },
    "severity": {
      "type": "string",
      "enum": [
        "Mild",
        "Moderate",
        "Severe",
        "Unknown"
      ]
    },
    "status": {
      "type": "string",
      "enum": [
        "Active",
        "Inactive"
      ]
    },
    "start_date": {
      "type": "string",
      "format": "date"
    },
    "notes": {
      "type": "string"
    }
  }
}