medkit.text.ner.adicap_norm_attribute#

Classes#

ADICAPNormAttribute

Attribute describing tissue sample using the ADICAP coding.

Module Contents#

class medkit.text.ner.adicap_norm_attribute.ADICAPNormAttribute(code: str, sampling_mode: str | None = None, technic: str | None = None, organ: str | None = None, pathology: str | None = None, pathology_type: str | None = None, behaviour_type: str | None = None, metadata: dict[str, Any] | None = None, uid: str | None = None)#

Bases: medkit.core.text.EntityNormAttribute

Attribute describing tissue sample using the ADICAP coding.

ADICAP: Association pour le Développement de l’Informatique en Cytologie et Anatomo-Pathologie

See:

https://smt.esante.gouv.fr/wp-json/ans/terminologies/document?terminologyId=terminologie-adicap&fileName=cgts_sem_adicap_fiche-detaillee.pdf

This class is replicating EDS-NLP’s Adicap class, making it a medkit Attribute.

The code field fully describes the tissue sample. Additional information is derived from code in human readable fields (sampling_code, technic, organ, pathology, pathology_type, behaviour_type)

Attributes:
uid:

Identifier of the attribute

label:

The attribute label, always set to EntityNormAttribute.LABEL

value:

ADICAP code prefix with “adicap:” (ex: “adicap:BHGS0040”)

code:

ADICAP code as a string (ex: “BHGS0040”)

kb_id:

Same as code

sampling_mode:

Sampling mode (ex: “BIOPSIE CHIRURGICALE”)

technic:

Sampling technic (ex: “HISTOLOGIE ET CYTOLOGIE PAR INCLUSION”)

organ:

Organ and regions (ex: “SEIN (ÉGALEMENT UTILISÉ CHEZ L’HOMME)”)

pathology:

General pathology (ex: “PATHOLOGIE GÉNÉRALE NON TUMORALE”)

pathology_type:

Pathology type (ex: “ETAT SUBNORMAL - LESION MINEURE”)

behaviour_type:

Behaviour type (ex: “CARACTERES GENERAUX”)

metadata:

Metadata of the attribute

sampling_mode: str | None#
technic: str | None#
organ: str | None#
pathology: str | None#
pathology_type: str | None#
behaviour_type: str | None#
property code: str#
to_dict() dict[str, Any]#
classmethod from_dict(adicap_dict: dict[str, Any]) typing_extensions.Self#

Create an Attribute from a dict.

Parameters:
attribute_dict: dict of str to Any

A dictionary from a serialized Attribute as generated by to_dict()