{ "$schema": "https://json-schema.org/draft/2020-12/schema", "title": "Drug Entry", "description": "结构化药品条目 schema,用于药典 PDF 解析输出", "type": "object", "properties": { "drug_id": { "type": "string", "description": "唯一标识符,如 H20000001" }, "name": { "type": "string", "description": "药品通用名" }, "name_en": { "type": "string", "description": "英文名" }, "name_pinyin": { "type": "string", "description": "汉语拼音" }, "category": { "type": "string", "enum": ["化学药", "中药", "生物制品", "辅料"], "description": "药品分类" }, "subcategory": { "type": "string", "description": "子分类" }, "sections": { "type": "object", "properties": { "性状": {"type": "string"}, "鉴别": {"type": "string"}, "检查": {"type": "string"}, "含量测定": {"type": "string"}, "类别": {"type": "string"}, "贮藏": {"type": "string"}, "制剂": {"type": "string"}, "用法与用量": {"type": "string"}, "禁忌": {"type": "string"}, "不良反应": {"type": "string"}, "注意事项": {"type": "string"} } }, "source": { "type": "object", "properties": { "version": {"type": "string", "description": "药典版本,如 2020年版"}, "volume": {"type": "string", "description": "部,如 二部"}, "page": {"type": "string", "description": "页码"}, "entry_id": {"type": "string", "description": "条目ID"} }, "required": ["version", "volume", "page"] } }, "required": ["drug_id", "name", "category", "sections", "source"] }