Abhinav Gupta
2008a58d11
docs: remove developer contact info and update README overview on main
2026-10-13 15:07:55 +05:30
Abhinav Gupta
78463a33cd
chore: remove redundant and temporary audit/report markdown files
2026-10-12 16:49:05 +05:30
Abhinav Gupta
0256904ee4
docs: update README with detailed flowsheet architecture, nearest relatable matching, and updated diagrams
2026-10-12 16:44:18 +05:30
Abhinav Gupta
f8b8b8291d
feat(matching): implement nearest relatable match fallback, organism parsing, and UI badge
2026-10-12 15:46:23 +05:30
Abhinav Gupta
e4881bdd66
fix(ui): import AbstentionReason in components.py
2026-10-12 14:08:15 +05:30
Abhinav Gupta
a0f3c76490
fix(pipeline): strictly route uncoded conditions to abstentions on primary-fix
2026-10-12 13:18:55 +05:30
Abhinav Gupta
e5f960808a
fix(ui): import missing re module in components.py
2026-10-12 13:00:14 +05:30
Abhinav Gupta
1bb1f48271
fix(ranking): enforce Rank 1 is Primary and all remaining valid diagnoses are Secondary
2026-10-12 12:57:27 +05:30
Abhinav Gupta
0b5996ad1b
Fix compound diagnosis splitting, section boundaries, and attribute matching for secondary completeness
2026-10-12 12:40:30 +05:30
Abhinav Gupta
211a1bc480
fix(persistence): persist surgical procedures and structured oncology in database layer
2026-10-09 11:51:30 +05:30
Abhinav Gupta
7885abf57d
fix(validation): implement prioritized surgical oncology repair plan and semantic code validation
...
- Fix UI crash NameError: name 'Path' is not defined in medical_coding.ui.app
- Item 1: Enforce semantic code validation first; reject laterality and anatomical site mismatches even if active and billable
- Item 2: Segregate surgical procedures from diagnosis inventory (mastectomy, salpingo-oophorectomy in procedures, blocked from secondary diagnoses)
- Item 3: Capture structured oncology context preserving histology, grade, ER/PR/HER2 receptors, Ki-67, and treatment response
- Item 4: Extract operative findings separately with UHDDS eligibility gate (incidental findings excluded from secondary diagnosis coding)
- Item 5: Ground audit claims in evidence-based semantic checks (LateralityMatch, AnatomicalSiteMatch, SemanticAttributeMatch)
- Item 6: Accelerate candidate retrieval latency via query-level caching in HybridICDRetriever
- Add UI presentation cards for procedures, structured oncology, operative findings, and enhanced audit trails
- Add comprehensive test suite in tests/test_surgical_oncology_repair.py
2026-10-09 11:39:20 +05:30
Abhinav Gupta
c161b09095
fix(pipeline): implement comprehensive improvements across five key areas on noise-fix
...
- Area 1: Complete clinical inventory generation with compound concept decomposition (secondary to/due to), laterality preservation, and deduplication
- Area 2: First-class assertion, negation, entity typing, and CMS Guideline I.B.4 integral symptom suppression
- Area 3: Semantic code validation beyond database existence via reverse attribute matching and specificity downgrading
- Area 4: Strict UHDDS primary vs secondary role separation with complete deduplication and HTML escape rendering in Streamlit components
- Area 5: Exact clinical provenance preservation and 6-metric diagnostic scorecard with comprehensive regression tests
2026-10-09 10:42:54 +05:30
Abhinav Gupta
5d99f9b1a1
docs: update README with UHDDS precedence, meta-narrative filtering, UI fixes, and 161 passing tests
2026-10-08 17:43:04 +05:30
Abhinav Gupta
7b40481e36
fix: resolve HTML tag rendering bug and ensure explicit primary diagnosis precedence over secondary and meta-narratives
2026-10-08 15:03:02 +05:30
Abhinav Gupta
ced32805b3
fix(pipeline): complete database-grounded recall, exact evidence extraction, and Streamlit image width on extraction-fix
2026-10-08 13:50:56 +05:30
Abhinav Gupta
6a02ca2438
fix(pipeline): correct output arrangement, isolate noise, and properly assign primary vs secondary diagnoses
2026-10-08 13:34:03 +05:30
Abhinav Gupta
ecaae40bbe
fix(pipeline): word-boundary site matching, historical exclusion, trauma code gate, and retrieval fallback hardening
...
- ranker.py: Use \b word boundaries in has_matching_site to prevent 'fibula'
matching inside 'calcaneofibular' (fixes S93.412A beating S93.422A).
Add traumatic S/T code gate (-0.40) for non-trauma documentation.
- classifier.py: Expanded acuity detection (sepsis, infarction, STEMI/NSTEMI).
Added pure-symptom suppression when definitive diagnoses are available.
Improved primary/secondary classification reasons with evidence quotes.
Fixed organism detection to exclude sepsis from supplementary code penalty.
- clinical_extractor.py: Detect historical/resolved diagnoses and mark with
HISTORICAL role, zero relevance, and -50 admitting score. Added section
types (PERTINENT_NEGATIVES, ASSESSMENT, PLAN). Fix sentence splitting to
preserve decimal numbers (e.g. 101.4F). Skip metadata section headers.
- nodes.py: Refactored retrieval to use lexical_retriever for expansion
queries and BM25 fallback (eliminates 80k-row full scan).
- tokenizer.py: Extended CLINICAL_MORPHOLOGY with renal/kidney/nephropathy,
injury/failure, infarction/infarct/STEMI/NSTEMI mappings.
- clinical_gate.py: Added pertinent negatives, documentation audit, and
final coding summary to metadata patterns. Extended prescription syntax.
- reverse_attributes.py: Added coronary/artery/vessel/wall/vein to
non-specificity words for better attribute extraction.
- pipeline.py: Extract failed node name from traceback for error reporting.
- schemas/icd.py: Added 'fallback_token_scan' and 'vector_numpy' retrieval methods.
2026-10-07 12:32:27 +05:30
Abhinav Gupta
a75ec4700a
feat(pipeline): complete multi-diagnosis classification, UHDDS role assignment, and robust ICD code retrieval
2026-10-07 11:02:19 +05:30
Abhinav Gupta
f5ec8a66de
fix(pipeline): enforce Master Directive clinical reasoning, taxonomy, hard candidate gate, and generic query synthesis on extraction-fix
2026-10-06 17:08:45 +05:30
Abhinav Gupta
58cb6662f1
fix(ui): restore keyword argument signature in render_coding_session_results
2026-10-06 14:48:28 +05:30
Abhinav Gupta
72d0da1c22
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
2026-10-06 14:43:16 +05:30
Abhinav Gupta
1b09529534
fix(pipeline): heal diagnosis extraction, role classification, and ICD mapping invariants
...
- Architecture Audit & Root Cause Analysis: Documented full 10-node runtime architecture, 8 failure root causes, and target architecture in ARCHITECTURE_AUDIT.md, ROOT_CAUSE_ANALYSIS.md, and TARGET_ARCHITECTURE.md.
- Strict Separation of Clinical Extraction and Retrieval: Clinical extraction establishes candidate entities prior to retrieval; retrieval never invents diagnoses.
- Generalized Clinical Entity Extraction: Added unstructured narrative fallback parser in ClinicalExtractor for single-sentence and unstructured discharge text; stripped structural role prefixes ('Primary:', 'Secondary:'); constrained procedural corroboration to entity-relevant keywords.
- UHDDS Role Classification & Admitting Significance: Restored section-aware scoring hierarchy prioritizing discharge diagnoses (+5.0) and admission reasons (+3.5); resolved whole-word regex monitoring checks preventing PMH leaks; added clinical admission synonyms for tie-breaking; prioritized acute conditions and definitive etiologies over non-specific symptoms.
- Subtype Specificity & Etiology Alignment: Guarded against hallucinated and unsupported etiologies (transplant, rheumatic, hypertensive) and subtypes in CandidateRanker and DeterministicValidator; expanded retrieval candidate window (top_k=25) ensuring general leaf codes (e.g. I50.9) remain in candidate pool for realignment.
- Test Suite: 100% pass rate achieved across all 125 repository unit, integration, guardrail, and end-to-end tests.
2026-10-05 10:56:32 +05:30
Abhinav Gupta
fc5eb7aaab
fix(launcher): use runpy in entrypoint to ensure reliable execution across browser refreshes
2026-10-03 11:49:57 +05:30
Abhinav Gupta
c6c0cf477c
fix(pipeline): resolve repo attribute error, fix txt file upload crash, and ensure dual-mode vector retrieval
2026-10-03 11:37:28 +05:30
Abhinav Gupta
240d14e6f6
feat(pipeline): add thread persistence, live progress bar, node oversight timeline, and failure diagnostics
2026-10-03 11:14:42 +05:30
Abhinav Gupta
ae5c96895d
fix(pdf): make pdfplumber/pymupdf imports resilient with graceful fallback and add auto-venv discovery in app.py
2026-10-03 10:37:22 +05:30
Abhinav Gupta
c6bfcdc17d
fix(schema): remove redundant code field from JSON output in favor of multi-system codes (icd10cm, icdo, cpt)
2026-10-03 10:26:59 +05:30
Abhinav Gupta
d3b000cb7c
feat: integrate local multi-system Database (ICD-10-CM, ICD-O, CPT), add cross-platform installers & dedicated runners
2026-10-03 10:15:18 +05:30
Abhinav Gupta
9ed0318b19
feat: initial commit of Agentic ICD-10-CM Autonomous Code Matcher with 10-node LangGraph pipeline, deterministic guardrails, and professional documentation
2026-10-02 23:40:12 +05:30