更新
This commit is contained in:
@@ -19,7 +19,7 @@ function patientReportContractExpect(bool $condition, string $message): void
|
||||
$reflection = new ReflectionClass(PatientAiReportLogic::class);
|
||||
patientReportContractExpect(
|
||||
$reflection->getConstant('DISCLAIMER')
|
||||
=== '仅供临床辅助参考,不可替代医生诊断,不得直接用于开方、用药调整或其他医疗决策。系统未对舌像、报告附件或视频画面进行视觉诊断;仅分析已录入、归档或转写的文字及附件元数据。',
|
||||
=== '仅供临床辅助参考,不可替代医生诊断。系统会把舌像、报告等附件与全部文字资料提交给已配置的模型分析,但模型识别结果仍须由执业医师核对原始资料;视频面诊以归档转写文字为准。',
|
||||
'fixed medical disclaimer is exact'
|
||||
);
|
||||
patientReportContractExpect(
|
||||
@@ -33,8 +33,9 @@ patientReportContractExpect(
|
||||
|
||||
$logicSource = file_get_contents($reflection->getFileName());
|
||||
patientReportContractExpect(is_string($logicSource), 'patient report logic source is readable');
|
||||
// 报告生成与 compactSourceForPrompt 各有一组“单次 / 分片 / 归并”调用点,共 6 处。
|
||||
patientReportContractExpect(
|
||||
substr_count($logicSource, 'DifyChatService::chat(') === 4,
|
||||
substr_count($logicSource, 'DifyChatService::chat(') === 6,
|
||||
'single-pass, evidence-chunk, summary-reduction, and final synthesis upstream call sites are explicit'
|
||||
);
|
||||
patientReportContractExpect(
|
||||
|
||||
Reference in New Issue
Block a user