CogStack / MedCATtutorials

General tutorials for the setup and use of MedCAT.
MIT License
33 stars 15 forks source link

CU-8693v4mx1: Update ICD10 and OPCS4 mappings in SNOMED CDB preprocessin #20

Closed mart-r closed 9 months ago

mart-r commented 9 months ago

The latest medcat version returns dict (with some metadata) rather than a DataFrame when calling Snomed.map_snomed2icd10 or Snomed.map_snomed2opcs4. This PR makes that change obvious.

It also adds a method to create a direct mapping from the dicts that are returned. Though this may be available in later versions of MedCAT (PR https://github.com/CogStack/MedCAT/pull/402).