You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
29 lines
871 B
29 lines
871 B
import asyncio
|
|
import sys
|
|
import os
|
|
|
|
# 将当前目录加入路径以便导入 qc_engine
|
|
sys.path.append(os.path.dirname(__file__))
|
|
|
|
from qc_engine import qc_manager
|
|
|
|
async def test_score_stability():
|
|
# 模拟用户提到的带“冥想”错误的报告
|
|
report_text = "超声所见:肝脏大小、形态正常,表面光整,肝内见多发点片状冥想异常高灶。双肾见多发点片状冥想灶密度影。"
|
|
|
|
mock_report_data = {
|
|
"report": report_text,
|
|
"examinePart": "肝胆脾胰双肾",
|
|
"patient_info": {
|
|
"sex": "男",
|
|
"patientName": "测试",
|
|
"age": "36"
|
|
}
|
|
}
|
|
|
|
print("--- Testing Score Stability (Terminology Typo) ---")
|
|
result = await qc_manager.run_qc(mock_report_data)
|
|
print(result)
|
|
|
|
if __name__ == "__main__":
|
|
asyncio.run(test_score_stability())
|
|
|