onconova.oncology.models.neoplastic_entity
LOCAL_RECURRENCE
module-attribute
¶
METASTATIC
module-attribute
¶
PRIMARY
module-attribute
¶
REGIONAL_RECURRENCE
module-attribute
¶
NeoplasticEntity
¶
Bases: BaseModel
Represents a neoplastic entity (tumor or neoplasm) associated with a patient case, including its anatomical location, morphology, relationship to other neoplasms, and additional qualifiers.
Attributes:
Name | Type | Description |
---|---|---|
objects |
QueryablePropertiesManager
|
Manager for queryable properties. |
case |
ForeignKey[PatientCase]
|
Reference to the patient case associated with the neoplasm. |
relationship |
CharField[NeoplasticEntityRelationship]
|
Relationship linking secondary and recurrent tumors to their primary origin or distinguishing disease phases. |
related_primary |
ForeignKey[NeoplasticEntity]
|
Reference to the primary neoplasm from which this neoplasm originated (nullable). |
assertion_date |
DateField
|
Date when the existence of the neoplasm was first asserted. |
topography |
CodedConceptField[CancerTopography]
|
Anatomical location of the neoplasm. |
morphology |
CodedConceptField[CancerMorphology]
|
Cell type and biologic activity of the tumor. |
topography_group |
SubqueryObjectProperty[CancerTopography]
|
Grouping of topography codes for classification. |
differentiation |
CodedConceptField[CancerDifferentiation]
|
Morphologic differentiation characteristics (nullable). |
laterality |
CodedConceptField[CancerLaterality]
|
Laterality qualifier for the neoplasm's location (nullable). |
description |
str
|
Human-readable description of the neoplastic entity, including morphology, topography, laterality, differentiation, and relationship. |
Constraints
Ensures that a primary neoplasm cannot have a related primary.
assertion_date
class-attribute
instance-attribute
¶
case
class-attribute
instance-attribute
¶
description
property
¶
Human-readable description of the neoplastic entity
differentitation
class-attribute
instance-attribute
¶
laterality
class-attribute
instance-attribute
¶
morphology
class-attribute
instance-attribute
¶
objects
class-attribute
instance-attribute
¶
related_primary
class-attribute
instance-attribute
¶
relationship
class-attribute
instance-attribute
¶
topography
class-attribute
instance-attribute
¶
topography_group
class-attribute
instance-attribute
¶
NeoplasticEntityRelationshipChoices
¶
Bases: TextChoices
An enumeration of possible relationships between neoplastic entities.
Attributes:
Name | Type | Description |
---|---|---|
PRIMARY |
Indicates the neoplastic entity is a primary tumor. |
|
METASTATIC |
Indicates the neoplastic entity is a metastasis. |
|
LOCAL_RECURRENCE |
Indicates the neoplastic entity is a local recurrence of a previous tumor. |
|
REGIONAL_RECURRENCE |
Indicates the neoplastic entity is a regional recurrence of a previous tumor. |