question_schema.json 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. {
  2. "$schema": "https://json-schema.org/draft/2020-12/schema",
  3. "title": "Question",
  4. "description": "执业药师考试题目 schema (A/B/X 型题)",
  5. "type": "object",
  6. "properties": {
  7. "question_id": {
  8. "type": "string",
  9. "description": "题目唯一ID,格式 Q{yyyy}{mm}{seq}"
  10. },
  11. "question_type": {
  12. "type": "string",
  13. "enum": ["A", "B", "X"],
  14. "description": "A型(单选)、B型(配伍)、X型(多选)"
  15. },
  16. "subject": {
  17. "type": "string",
  18. "enum": ["yao1", "yao2", "fagui", "zonghe"],
  19. "description": "所属科目"
  20. },
  21. "chapter_id": {
  22. "type": "string",
  23. "description": "所属章节ID"
  24. },
  25. "difficulty": {
  26. "type": "integer",
  27. "minimum": 1,
  28. "maximum": 5
  29. },
  30. "content": {
  31. "type": "string",
  32. "description": "题干"
  33. },
  34. "options": {
  35. "type": "array",
  36. "items": {"type": "string"},
  37. "minItems": 4,
  38. "description": "选项列表"
  39. },
  40. "answer": {
  41. "type": "string",
  42. "description": "正确答案(如 A / ABC)"
  43. },
  44. "explanation": {
  45. "type": "string",
  46. "description": "答案解析"
  47. },
  48. "knowledge_point_ids": {
  49. "type": "array",
  50. "items": {"type": "string"},
  51. "description": "关联知识点ID"
  52. },
  53. "source": {
  54. "type": "string",
  55. "description": "依据来源(药典版本/页码)"
  56. },
  57. "frequency": {
  58. "type": "string",
  59. "enum": ["高频", "中频", "低频", "未考"]
  60. },
  61. "audited": {
  62. "type": "boolean",
  63. "description": "是否已人工审核"
  64. }
  65. },
  66. "required": ["question_id", "question_type", "subject", "content", "options", "answer", "explanation"]
  67. }