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).
The latest
medcat
version returnsdict
(with some metadata) rather than aDataFrame
when callingSnomed.map_snomed2icd10
orSnomed.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).