Real-time medical code validation using contrastive learning and retrieval-augmented generation
Патент · US A1
Полный текст
A system validates medical claim coding information during a coding workflow and before claim submission. The system receives diagnosis and procedure codes for a healthcare encounter and obtains embeddings produced by a contrastive machine-learning model trained on labeled valid and invalid code combinations. An embedding-based compatibility measure is determined using a similarity computation, and multi-code weighting generates an aggregated compatibility determination for encounters involving multiple codes. The aggregated determination is compared to a threshold to assign a preliminary classification of valid, invalid, or needs review. Policy or guidance passages are retrieved and used to confirm, revise, or override the preliminary classification, producing a final classification. A policy-cited explanation is generated from the retrieved passages. The system outputs the final classification and explanation to a user interface, enabling correction of potential coding errors before claim submission.