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
710 B
29 lines
710 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_age_fix():
|
|
# 模拟用户的情况:带年龄的报告
|
|
report_text = "肝脏大小、形态正常,表面光整。"
|
|
|
|
mock_report_data = {
|
|
"report": report_text,
|
|
"examinePart": "全腹",
|
|
"patient_info": {
|
|
"sex": "男",
|
|
"patientName": "张三",
|
|
"age": "36"
|
|
}
|
|
}
|
|
|
|
print("--- Testing Age Context Fix ---")
|
|
result = await qc_manager.run_qc(mock_report_data)
|
|
print(result)
|
|
|
|
if __name__ == "__main__":
|
|
asyncio.run(test_age_fix())
|
|
|