fix: override ICD10CM prefix expansion to use icd10data.com#1260
fix: override ICD10CM prefix expansion to use icd10data.com#1260kevinschaper wants to merge 1 commit intomainfrom
Conversation
✅ Deploy Preview for monarch-app canceled.
|
PR Review: fix: override ICD10CM prefix expansion to use icd10data.comOverall: Looks good — clear fix for a real breakage, well-commented. One suggestion below. What the change doesDirectly patches Positive observations
One concern: no test case added
Consider adding a test case: ("ICD10CM:J45.20", "www.icd10data.com/search?s=J45.20"),(following the existing pattern of checking Minor note: search-URL semanticsThe target URL ( No blockers — the fix addresses a real user-facing issue. Adding the test case would strengthen confidence in the workaround. |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #1260 +/- ##
=======================================
Coverage 73.51% 73.52%
=======================================
Files 95 95
Lines 3417 3418 +1
=======================================
+ Hits 2512 2513 +1
Misses 905 905 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
The upstream prefixmaps library maps ICD10CM to icd.codes, which is dead/returning 403s. Override to use purl.bioontology.org, which redirects to BioPortal's ICD10CM class pages. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
582f74b to
e0651f7
Compare
PR Review: fix: override ICD10CM prefix expansionOverall: Straightforward, well-motivated fix. One suggestion below.
What the change doesDirectly patches Positive observations
Minor: PR title vs. actual target URLThe PR title says "use icd10data.com" but the code and commit message use Missing test case
Suggested addition to the parametrize list (following the existing pattern): ("ICD10CM:J45.20", "purl.bioontology.org/ontology/ICD10CM/J45.20"),No blockers — the fix addresses a real user-facing issue with a clear workaround and good documentation. |
Summary
prefixmapslibrary mapsICD10CMCURIEs tohttps://icd.codes/icd10cm/, but that domain is dead (returning 403s)http://purl.bioontology.org/ontology/ICD10CM/instead, which redirects to BioPortal's ICD10CM class pagesprefix_mapmutation becauseadd_prefix(merge=True)only adds the new URL as a synonym rather than replacing the canonical prefixUpstream fix should go into linkml/prefixmaps and/or biopragmatics/bioregistry.