Frailty migration#484
Conversation
Docs preview URL |
d44a265 to
0421e77
Compare
0421e77 to
aec7c72
Compare
Coverage Report
Files without new missing coverage
380 files skipped due to complete coverage. Coverage success: total of 98.17% is above 98.07% 🎉 |
|
Hi @theoimbert-aphp, congratulations on this massive work!
Some component names are a bit short and ambiguous (e.g., For example:
What do you think about this ? we can discuss this mapping here and I can handle the refactoring if you want to.
Some pipes have missing coverage, which can be quite easily improved by adding specific tests : could you handle that ? To use the rebased PR, run the following commands: |
|
Hi @percevalw, thanks for the feedback !
As for the rest, your propositions seem great to me !
|
|
I'm ok with all your comments. Regarding the pipe names, can I let you edit and suggest a final mapping that would go in the same direction of being more explicit ? |
|
Sure, the final mapping would be like so :
|
|



Summary
This PR implements NER pipelines for mentions of frailty across several domains of the Geriatric Assessment, along with some clinically validated geriatric scores for these domains.
Description
The following new NER components were added:
eds.autonomyeds.cognitioneds.frailtyeds.general_statuseds.geriatric_assessmenteds.incontinenceeds.mobilityeds.nutritioneds.paineds.polymededs.sensoryeds.socialeds.thymiceds.adleds.iadleds.brefeds.chair_standeds.en_evaeds.g8eds.gait_speededs.gdseds.mini_gdseds.mini_cogeds.mmseds.mocaeds.pseds.rockwoodeds.sppbeds.tugThose components are the result of the work done on the PASSAGE cohort and project (article yet to come).
Behavior
All these pipelines are based on ContextualMatchers, and work similarly to other NER pipelines already present in EDS-NLP. The "basic" frailty domain pipelines store their matches in
doc.entsanddoc.spans[{domain}]by default. The score pipelines store their matches indoc.ents,doc.spans[{score}]anddoc.spans[{domain}], where{domain}is their corresponding frailty domain. For example, theeds.adlpipeline stores its matches indoc.ents,doc.spans["adl"]anddoc.spans["autonomy"].For each match, a severity attribute is set for the corresponding domain. Here is an example :
Tests
Added unit tests for all these pipelines.
Documentation
Added documentation for all these pipelines. The documentation may need to be updated later on, notably when the article releases, and to provide some additional information on the scores.
Checklist