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
+1 -4
View File
@@ -1,5 +1,4 @@
"""Main entrypoint launcher for the Streamlit Medical Coding Application."""
import runpy
import sys
from pathlib import Path
@@ -24,6 +23,4 @@ for venv_name in ("env", ".venv", "venv"):
sys.path.insert(0, str(sp))
# Import and execute main Streamlit UI reliably across browser refreshes
import runpy
runpy.run_module("medical_coding.ui.app", run_name="__main__")