Skip to content

Fix 'ndication' typo mapped to 'impression' instead of 'indication'#1982

Open
Chessing234 wants to merge 1 commit intoMIT-LCP:mainfrom
Chessing234:fix/ndication-section-mapping
Open

Fix 'ndication' typo mapped to 'impression' instead of 'indication'#1982
Chessing234 wants to merge 1 commit intoMIT-LCP:mainfrom
Chessing234:fix/ndication-section-mapping

Conversation

@Chessing234
Copy link
Copy Markdown

Summary

In section_parser.py, the misspelling 'ndication' (missing leading "i") is mapped to 'impression' instead of 'indication'.

Bug: Line 130 — 'ndication': 'impression'
Root cause: 'ndication' is a typo for "indication" (the clinical reason for an exam), not "impression" (the radiologist's diagnostic conclusion). These are semantically distinct report sections.
Evidence:

  • Line 148 maps 'idication' (another single-letter-dropped indication typo) → 'indication' correctly
  • Lines 99, 106, 108, 111 all map indication synonyms/typos → 'indication'
  • All surrounding entries (lines 131–139) are misspellings of "impression" — 'ndication' does not fit this group

Impact: When a report header reads "NDICATION:", the clinical indication text is misclassified as the impression, which create_section_files.py then extracts as the radiologist's conclusion for NLP labeling.

Fix: 'impression''indication' on line 130.

Test plan

  • Verified all other indication typos/synonyms map to 'indication'
  • Confirmed downstream usage in create_section_files.py prioritizes 'impression' sections
  • One-word change, no side effects

The misspelling 'ndication' (missing leading 'i') is a typo for
'indication', not 'impression'. It is incorrectly mapped to
'impression', causing clinical indication text to be classified as the
radiologist's diagnostic conclusion. The sibling typo 'idication'
(line 148) is correctly mapped to 'indication'.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant