CodeFlow: Neurosymbolic AI for medical coding

A local language model picks out phrases from a visit note. BioPortal connects the phrases a medical coder selects to possible ICD-10-CM codes. Rules flag duplicate codes and unresolved terms. Together, these steps give the coder a short list to review alongside the original wording. The coder decides which diagnoses the visit supports.

One visit, two mentions of pneumonia

In the scripted walkthrough, a synthetic note says the patient had pneumonia six months ago and shows no evidence of it today. The clinician documents acute bronchitis. The medical coder selects acute bronchitis and records why pneumonia was excluded.

CodeFlow draws on two biomedical data science resources. Coders can explore related diagnoses in BioPortal’s ICD-10-CM vocabulary. For research use, they can also tag the note with Medical Subject Headings (MeSH). CodeFlow stores those tags separately from the diagnosis codes.

Design the review around the medical coder

For a coding team, Thompson Axiomata can prototype one review step with the people who do it. The coder sees the suggested code, the exact phrase that prompted it, and a place to record a correction. A pilot using reviewed examples can measure time per visit and how often unsupported suggestions reach the final list.

Explore vocabulary and ontology design