feat: add durable ASR-to-patient extraction and guarded review
This commit is contained in:
@@ -93,7 +93,7 @@ $add('same_event_identical_evidence', '完全相同事件结构和逐字证据
|
||||
$quote = '最近睡眠不好,其他情况没有谈。';
|
||||
$add('absent_fields_not_defaulted', '仅给出现病史,不自动填过敏史、家族史、药物为无或0', $quote,
|
||||
[$event('diagnosis', ['symptoms' => '最近睡眠不好'], $quote, ['record_time' => null, 'time_text' => ''])],
|
||||
[$expectedItem('diagnosis', ['symptoms' => '最近睡眠不好'], '2026-09-20', null)]);
|
||||
[$expectedItem('diagnosis', ['symptoms' => '最近睡眠不好'], null, null)]);
|
||||
$quote = '我明确没有过敏史,家族病史没谈。';
|
||||
$add('explicit_zero_only', '明确无过敏史可保存0,但不扩展到未提及家族史', $quote,
|
||||
[$event('diagnosis', ['allergy_history' => 0], $quote, ['record_time' => null, 'time_text' => ''])],
|
||||
@@ -122,9 +122,9 @@ $add('missing_literal_evidence', '不存在于转写的证据不能成为已核
|
||||
$add('empty_literal_evidence', '没有证据的候选需要核对', $quote,
|
||||
[$event('blood', ['fasting_blood_sugar' => 6.1], $quote, ['evidence' => []])],
|
||||
[$expectedItem('blood', ['fasting_blood_sugar' => 6.1], '2026-09-20', '07:45', false, true)]);
|
||||
$add('missing_date', '日期未提供时不使用录制日期静默补齐', $quote,
|
||||
$add('missing_date_label_with_spoken_today', 'date_text遗漏但证据明确今天时只按录制日期锚定原话,不依赖模型日期标签', $quote,
|
||||
[$event('blood', ['fasting_blood_sugar' => 6.1], $quote, ['date_text' => ''])],
|
||||
[$expectedItem('blood', ['fasting_blood_sugar' => 6.1], null, '07:45', false, true)]);
|
||||
[$expectedItem('blood', ['fasting_blood_sugar' => 6.1], '2026-09-20', '07:45')]);
|
||||
$add('invalid_clock', '非法时分不能进入候选', $quote,
|
||||
[$event('blood', ['fasting_blood_sugar' => 6.1], $quote, ['record_time' => '25:01'])], []);
|
||||
$cases[array_key_last($cases)]['expectedErrorCode'] = 'TIME_INVALID';
|
||||
|
||||
Reference in New Issue
Block a user