{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://openvisual.org/schema/hemianopia/1.0",
  "title": "OVS: Hemianopia",
  "description": "Loss of half the visual field. Caused by stroke, pituitary tumors, or chiasmal compression.",
  "allOf": [
    { "$ref": "https://openvisual.org/schema/symptom-base/1.0" },
    {
      "type": "object",
      "required": ["side"],
      "properties": {
        "ovs_type": { "const": "ovs:hemianopia" },
        "side":     { "type": "string", "enum": ["left", "right", "bitemporal"] },
        "opacity":  { "type": "number", "minimum": 0, "maximum": 1, "description": "Field loss density" }
      }
    }
  ]
}
