Improve UPP list batch merge filtering
This commit is contained in:
@@ -111,6 +111,16 @@
|
||||
"contains": "肝胆外科",
|
||||
"业务分类1": "PACS",
|
||||
"业务分类2": "肝胆外科"
|
||||
},
|
||||
{
|
||||
"contains": "泌尿外科",
|
||||
"业务分类1": "PACS",
|
||||
"业务分类2": "泌尿外科"
|
||||
},
|
||||
{
|
||||
"contains": "胸外科",
|
||||
"业务分类1": "PACS",
|
||||
"业务分类2": "胸外科"
|
||||
}
|
||||
]
|
||||
},
|
||||
|
||||
@@ -176,11 +176,13 @@ def main() -> None:
|
||||
config = load_config(Path(args.config))
|
||||
root = Path(args.root)
|
||||
suffix = args.result_suffix or config.get("result_suffix") or "-列表归档结果"
|
||||
official_root = root / normalize_text(config.get("processed_input_root"))
|
||||
search_root = official_root if official_root.exists() else root
|
||||
archives: list[dict[str, Any]] = []
|
||||
batch_summaries: list[dict[str, Any]] = []
|
||||
raw_records: list[dict[str, Any]] = []
|
||||
|
||||
for result_dir in sorted(root.rglob(f"*{suffix}")):
|
||||
for result_dir in sorted(search_root.rglob(f"*{suffix}")):
|
||||
archive_path = result_dir / "图片表格_结构化.json"
|
||||
if not archive_path.exists():
|
||||
continue
|
||||
|
||||
Reference in New Issue
Block a user