Open JBarsotti opened 5 months ago
Hi,
To answer your questions:
diabetes
may refer to many different concepts. And due to the self-supervised nature of the training it received, the model was unable to properly learn the name. But again, this is just speculation.Thank you for the fast reply! Your responses make sense. One other question:
If I wanted to include ICD-10 codes as part of a model, is there a way to do that using the prebuilt models, or do I need a new one?
Some models have ICD-10 mappings baked into them. So you may be able to look up the CUIs in cat.cdb.addl_info['cui2icd10']
. In fact, if you use CAT.get_entities
, the default behaviour would be to make use of the ICD-10 mappings embedded in the CDB (if they exist).
A recognised entity in this case could look something like this:
{'pretty_name': 'Fever', 'cui': '386661006', 'type_ids': ['67667581'], 'types': ['finding'], 'source_value': 'fever', 'detected_name': 'fever', 'acc': 1.0, 'context_similarity': 1.0, 'start': 29, 'end': 34, 'icd10': ['R509', 'R508', 'R502', 'P819', 'P818', 'T670', 'O752', 'P810', 'O864'], 'ontologies': ['SNOMED-CT'], 'snomed': [], 'id': 2, 'meta_anns': {}}
If the ICD-10 mappings do not exist within a model pack, you would need to add them or map the Snomed or UMLS term yourself.
Thakns again for the reply! Is there a model out there that you would recommend that has ICD codes baked in?
I don't know off the top of my head. But the SNOMED model is more likely to have ICD10 mappings since we have built in functionality for that within the SNOMED preprocessing script.
This is an amazing module. Thanks for all your hard work.
I was working through the notebook notebooks/introductory/Part_3_2_Extracting_Diseases_from_Electronic_Health_Records.ipynb, and I have a couple of questions:
Thanks for an awesome module! It really is great.