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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user