{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "Question",
  "description": "执业药师考试题目 schema (A/B/X 型题)",
  "type": "object",
  "properties": {
    "question_id": {
      "type": "string",
      "description": "题目唯一ID，格式 Q{yyyy}{mm}{seq}"
    },
    "question_type": {
      "type": "string",
      "enum": ["A", "B", "X"],
      "description": "A型（单选）、B型（配伍）、X型（多选）"
    },
    "subject": {
      "type": "string",
      "enum": ["yao1", "yao2", "fagui", "zonghe"],
      "description": "所属科目"
    },
    "chapter_id": {
      "type": "string",
      "description": "所属章节ID"
    },
    "difficulty": {
      "type": "integer",
      "minimum": 1,
      "maximum": 5
    },
    "content": {
      "type": "string",
      "description": "题干"
    },
    "options": {
      "type": "array",
      "items": {"type": "string"},
      "minItems": 4,
      "description": "选项列表"
    },
    "answer": {
      "type": "string",
      "description": "正确答案（如 A / ABC）"
    },
    "explanation": {
      "type": "string",
      "description": "答案解析"
    },
    "knowledge_point_ids": {
      "type": "array",
      "items": {"type": "string"},
      "description": "关联知识点ID"
    },
    "source": {
      "type": "string",
      "description": "依据来源（药典版本/页码）"
    },
    "frequency": {
      "type": "string",
      "enum": ["高频", "中频", "低频", "未考"]
    },
    "audited": {
      "type": "boolean",
      "description": "是否已人工审核"
    }
  },
  "required": ["question_id", "question_type", "subject", "content", "options", "answer", "explanation"]
}
