feat(pipeline): complete healing and hardening of clinical reasoning and matching pipeline

- Implement soft dimensional compatibility and 3-way attribute logic (SUPPORTED, CONTRADICTED, UNKNOWN)
- Replace binary hardwall rejection with nuanced compatibility scoring
- Isolate context per diagnosis to prevent cross-condition contamination (MD Sec 41)
- Generalize disease families (liver sarcoma, net, asthma, acl) and category priors
- Add regex word boundary acuity checking and laterality alignment scoring in ranker
- Fix candidate sort by sorting on unconstrained multi-factor raw score before output clamping
- Preserve zero-modification immutability of local Database_2.xlsx
- Pass 100% of full regression test suite (158/158 tests) and ruff linting
This commit is contained in:
Abhinav Gupta
2026-10-06 14:43:16 +05:30
parent 1b09529534
commit 72d0da1c22
46 changed files with 6348 additions and 734 deletions
+2
View File
@@ -558,6 +558,8 @@ class ExcelWorkbookLoader(BaseICDDatasetLoader):
"sheet": sheet_name,
"file": str(self.file_path.name),
"row_id": str(row.get("id", "")),
"active_yesno": int(row.get("active_yesno", 1)) if pd.notna(row.get("active_yesno")) else 1,
"provenance": f"{self.file_path.name}::{sheet_name}::row_{row.get('id', '')}",
},
)
records[lookup_key] = rec