feat(ai): 本地临床规则引擎 — AI 不可用时的回退方案
- LocalRulesEngine: 预定义 8 条临床规则(收缩压/心率/血糖/血氧) - CompareOp: GreaterThan/LessThan 比较运算 - evaluate(): 输入指标 JSON,输出 StructuredSuggestion 列表(按优先级排序) - 5 个单元测试覆盖:高值触发、正常无建议、缺失指标跳过、SpO2 低、优先级排序
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
pub mod analysis;
|
||||
pub mod auto_analysis;
|
||||
pub mod local_rules;
|
||||
pub mod output_parser;
|
||||
pub mod prompt;
|
||||
pub mod usage;
|
||||
|
||||
Reference in New Issue
Block a user