Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update patterns.py #163

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 7 additions & 2 deletions edsnlp/pipelines/misc/sections/patterns.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
r"antecedents medicaux",
r"antecedents chirurgicaux",
r"atcd",
r"antecedents-allergies",
]

antecedents_familiaux = [r"antecedents familiaux"]
Expand All @@ -25,6 +26,7 @@
r"traitement a l'entree",
r"traitement actuel",
r"traitement en cours",
r"traitement en-cours",
r"traitements a l'entree",
]

Expand Down Expand Up @@ -56,9 +58,11 @@
donnees_biometriques_entree = [
r"donnees biometriques et parametres vitaux a l'entree",
r"parametres vitaux et donnees biometriques a l'entree",
r"constantes initiales",
r"dernieres constantes",
]

examens = [r"examen clinique", r"examen clinique a l'entree"]
examens = [r"examen clinique", r"examen clinique a l'entree", r"examen clinique initial"]

examens_complementaires = [
r"examen(s) complementaire(s)",
Expand All @@ -68,6 +72,7 @@
r"examens complementaires realises pendant le sejour",
r"examens para-cliniques",
r"imagerie post-operatoire",
r"examens complementaires (Résultats et commentaires)"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lowercase + accent stripping since we expect eds.normalizer to be run before

Suggested change
r"examens complementaires (Résultats et commentaires)"
r"examens complementaires (resultats et commentaires)"

]

facteurs_de_risques = [r"facteurs de risque", r"facteurs de risques"]
Expand Down Expand Up @@ -99,7 +104,7 @@

traitements_sortie = [r"traitement de sortie"]

evolution = [r"evolution", r"evolution et examen clinique aux lits portes :"]
evolution = [r"evolution", r"evolution et examen clinique aux lits portes :", r"evolution clinique"]

modalites_sortie = [r"modalites de sortie", r"devenir du patient"]

Expand Down