{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/itsbaba-com/json-schema/itsbaba-com-medical-query-request-schema.json",
  "title": "MedicalQueryRequest",
  "x-generated": "2026-10-30",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/hc-openapi.json#/components/schemas/MedicalQueryRequest",
  "type": "object",
  "properties": {
    "text": {
      "type": "string",
      "minLength": 1,
      "maxLength": 2000,
      "description": "The Hebrew question, up to 2,000 characters."
    },
    "known_terms": {
      "type": "array",
      "items": {
        "type": "string",
        "minLength": 1,
        "maxLength": 200
      },
      "maxItems": 500,
      "description": "English terms from the patient's record, used to map Hebrew spellings back. Up to 500. Account terms are added automatically."
    },
    "glossary": {
      "type": "object",
      "additionalProperties": {
        "type": "string",
        "minLength": 1,
        "maxLength": 200
      },
      "description": "English term → Hebrew rendering, used to map the Hebrew back to English."
    }
  },
  "required": [
    "text"
  ]
}