Skip to content

edsnlp.pipelines.ner.adicap.patterns

Source : https://esante.gouv.fr/sites/default/files/media_entity/documents/cgts_sem_adicap_fiche-detaillee.pdf

d1_4 = '[A-Z]{4}' module-attribute

d5_8_v1 = '\\d{4}' module-attribute

d5_8_v2 = '\\d{4}|[A-Z][0-9A-Z][A-Z][0-9]' module-attribute

d5_8_v3 = '[0-9A-Z][0-9][09A-Z][0-9]' module-attribute

d5_8_v4 = '0[A-Z][0-9]{2}' module-attribute

adicap_prefix = '(?i)(codification|adicap)' module-attribute

base_code = '(' + d1_4 + '(?:' + d5_8_v1 + '|' + d5_8_v2 + '|' + d5_8_v3 + '|' + d5_8_v4 + '))' module-attribute