{
  "$schema": "http://json-schema.org/draft-04/schema#",
  "title": "Patient Allergies Schema",
  "type": "array",
  "items": {
    "type": "object",
    "properties": {
      "allergy": { "type": "string", "required": true },
      "description": { "type": "string", "required": true },
      "onset_date": { "type": "string" },
      "reaction": {"type": "string" }
    }
  }
}
