Skip to content

Conversation

mart-r
Copy link
Collaborator

@mart-r mart-r commented Oct 16, 2025

The cui2original_names map was (in v1) in cdb.addl_info. But in v2 it's designed to reside in each CUI's CUIInfo. And when creating a new model from scratch it does. However, previsouly the legacy conversion wouldn't migrate the data correctly.

So this PR addresses that by:

  • Fixing the legacy converter and making it move the data to cdb.cui2info for each CUI
  • Adding an on the fly fix for CDBs that load with the incorrect conversion

The PR also adds a few tests that make sure that all of the above works as expected.

@tomolopolis
Copy link
Member

Copy link
Member

@tomolopolis tomolopolis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@mart-r mart-r merged commit 8960255 into main Oct 16, 2025
20 checks passed
@mart-r mart-r deleted the bug/medcat/CU-869avau57-fix-cui-to-original-names branch October 16, 2025 11:05
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.

2 participants