Open marieverdoux opened 1 year ago
Hello Marie,
Thank you for your feedbacks. The pipe's name is ambiguous... The idea of this pipe was to detect if the event (such as disease) occurs before the present time of the document.
Could you develop on your purposes when using the history pipe ?
Thanks Adam.
Usually in medical records, "antécédents" refer to previous diseases that are no longer of interest for the current visit, and "histoire de la maladie" details the history of the disease the visit is about. They are distinct categories of the medical record.
I think it can be useful in many contexts to differentiate both cases, for instance, if you want to know if the disease is still active.
In my curent application, I want to sort out documents related to current active disease, so I use the eds.history pipeline to filter out documents that would relate to old diseases. If I use the pipeline with use_section config, I end up filtering out all the entities under "histoire de la maladie", eventhough I want to keep them.
As built, if the use_section=True config is applied to the eds.history pipeline, all "antécédents", "antécédents familiaux" and "histoire de la maladie" sections are used to tag entities as "history".
The problem is that :
I suggest removing "histoire de la maladie" and "antécédents familiaux" from section_history list in edsnlp/pipelines/qualifiers/history/patterns.py
If an entity refers to the history of the current disease, this will be found with the section title.
Thank you !