add unmatched summary export options

This commit is contained in:
2026-05-08 22:35:21 +08:00
parent 1be6cb287e
commit 11600e7d09
5 changed files with 213 additions and 9 deletions

View File

@@ -332,8 +332,8 @@ for pat_no in pat_no_col:
if row_test_name_exist == True:
break
# 如果没有row_test_name_exist的话将信息加入行信息中
if row_test_name_exist == False:
rows_not_match.append(row_test_name)
if row_test_name_exist == False:
rows_not_match.append(f"{row_test_name}{row_2.get(test_result_col_name, '')}")
# 如果没有寻找到对应test_check_result的话设置为Not_Find
for test_result_name in test_check_list:
@@ -361,4 +361,3 @@ save_excel()

View File

@@ -297,8 +297,8 @@ for pat_no in os.listdir(file_dir): # 遍历 file_dir 下的所有文件和文
if row_test_name_exist == True:
break
# 如果没有row_test_name_exist的话将信息加入行信息中
if row_test_name_exist == False:
rows_not_match.append(row_test_name)
if row_test_name_exist == False:
rows_not_match.append(f"{row_test_name}{row_2.get(test_result_col_name, '')}")
# 如果没有寻找到对应test_check_result的话设置为Not_Find
for test_result_name in test_check_list:
@@ -322,4 +322,4 @@ for pat_no in os.listdir(file_dir): # 遍历 file_dir 下的所有文件和文
add_content_to_excel(result_save_pth, test['test_check_name'], excel_head + excel_basic + excel_fromat_result)
# 每处理一个患者数据,保存相关信息
save_excel()
save_excel()