medkit.text.ner.tnm_attribute
medkit.text.ner.tnm_attribute#
This package needs extra-dependencies not installed as core dependencies of medkit. To install them, use pip install medkit[edsnlp].
Classes:
|
Attribute destructuring the fields of a TNM string. |
- class TNMAttribute(prefix=None, tumour=None, tumour_specification=None, tumour_suffix=None, node=None, node_specification=None, node_suffix=None, metastasis=None, resection_completeness=None, version=None, version_year=None, metadata=None, uid=None)[source]#
Attribute destructuring the fields of a TNM string.
The TNM (Tumour/Node/Metastasis) system is used to describe cancer stages.
This class is replicating EDS-NLP’s TDM class, making it a medkit
Attribute.- Variables
uid (str) – Identifier of the attribute
label (str) – The attribute label, always set to
TNMAttribute.LABELvalue (Optional[Any]) – TNM string (ex: “pTx N1 M1”)
tumour (Optional[edsnlp.pipelines.ner.scores.tnm.models.Tumour]) – Tumour score
tumour_specification (Optional[edsnlp.pipelines.ner.scores.tnm.models.Specification]) – Tumour specification
tumour_suffix (Optional[str]) – Tumour suffix
node (Optional[edsnlp.pipelines.ner.scores.tnm.models.Node]) – Node score
node_specification (Optional[edsnlp.pipelines.ner.scores.tnm.models.Specification]) – Node specification
node_suffix (Optional[str]) – Node suffix
metastasis (Optional[edsnlp.pipelines.ner.scores.tnm.models.Metastasis]) – Metastasis score
resection_completeness (Optional[int]) – Resection completeness (R factor)
version (Optional[str]) – Version (ex: “uicc”, “accj”)
version_year (Optional[int]) – Version year
Attributes:
Label used for all TNM attributes
- LABEL: ClassVar[str] = 'TNM'#
Label used for all TNM attributes