onconova.oncology.models.adverse_event
AdverseEvent
¶
Bases: BaseModel
Represents an adverse event experienced by a patient during oncology treatment.
Attributes:
Name | Type | Description |
---|---|---|
case |
ForeignKey[PatientCase]
|
Reference to the patient case associated with the adverse event. |
date |
DateField
|
The clinically relevant date when the adverse event occurred. |
event |
CodedConceptField[AdverseEventTerm]
|
Classification of the adverse event using CTCAE criteria. |
grade |
PositiveSmallIntegerField
|
Severity grade of the adverse event, following CTCAE criteria (0-5). |
outcome |
CharField
|
Outcome of the adverse event, selected from predefined choices. |
date_resolved |
DateField
|
Date when the adverse event ended or returned to baseline. |
is_resolved |
BooleanField
|
Indicates whether the adverse event has been resolved. |
case
class-attribute
instance-attribute
¶
date
class-attribute
instance-attribute
¶
date_resolved
class-attribute
instance-attribute
¶
description
property
¶
event
class-attribute
instance-attribute
¶
grade
class-attribute
instance-attribute
¶
is_resolved
class-attribute
instance-attribute
¶
outcome
class-attribute
instance-attribute
¶
AdverseEventMitigation
¶
Bases: BaseModel
Model representing a mitigation strategy for an adverse event in oncology.
Attributes:
Name | Type | Description |
---|---|---|
adverse_event |
ForeignKey[AdverseEvent]
|
Reference to the associated AdverseEvent instance. |
category |
CharField[AdverseEventMitigationCategory]
|
Type of mitigation employed, chosen from adjustment, pharmacological, or procedure. |
adjustment |
CodedConceptField[AdverseEventMitigationTreatmentAdjustment]
|
Classification of treatment adjustment used to mitigate the adverse event (optional). |
drug |
CodedConceptField[AdverseEventMitigationDrug]
|
Classification of pharmacological treatment used to mitigate the adverse event (optional). |
procedure |
CodedConceptField[AdverseEventMitigationProcedure]
|
Classification of non-pharmacological procedure used to mitigate the adverse event (optional). |
management |
CodedConceptField[AdverseEventMitigationManagement]
|
Management type of the adverse event mitigation (optional). |
adjustment
class-attribute
instance-attribute
¶
adverse_event
class-attribute
instance-attribute
¶
category
class-attribute
instance-attribute
¶
description
property
¶
drug
class-attribute
instance-attribute
¶
management
class-attribute
instance-attribute
¶
procedure
class-attribute
instance-attribute
¶
AdverseEventMitigationCategoryChoices
¶
AdverseEventOutcomeChoices
¶
Bases: TextChoices
Enumeration of possible outcomes for an adverse event.
Attributes:
Name | Type | Description |
---|---|---|
RESOLVED |
The adverse event has been resolved. |
|
RESOLVED_WITH_SEQUELAE |
The adverse event has resolved but with lasting effects (sequelae). |
|
RECOVERING |
The subject is currently recovering from the adverse event. |
|
ONGOING |
The adverse event is ongoing. |
|
FATAL |
The adverse event resulted in death. |
|
UNKNOWN |
The outcome of the adverse event is unknown. |
AdverseEventSuspectedCause
¶
Bases: BaseModel
Represents a suspected cause of an adverse event in oncology.
Attributes:
Name | Type | Description |
---|---|---|
adverse_event |
ForeignKey
|
Reference to the associated AdverseEvent. |
systemic_therapy |
ForeignKey[SystemicTherapy]
|
Suspected systemic therapy causing the adverse event. |
medication |
ForeignKey[SystemicTherapyMedication]
|
Suspected medication causing the adverse event. |
radiotherapy |
ForeignKey[Radiotherapy]
|
Suspected radiotherapy causing the adverse event. |
surgery |
ForeignKey[Surgery]
|
Suspected surgery causing the adverse event. |
causality |
CharField[AdverseEventCausality]
|
Assessment of the potential causality, chosen from predefined options. |
adverse_event
class-attribute
instance-attribute
¶
causality
class-attribute
instance-attribute
¶
cause
property
¶
Determines the cause of the adverse event by checking related treatment attributes.
Returns:
Type | Description |
---|---|
Any
|
The first non-falsy value among systemic_therapy, medication, radiotherapy, or surgery, indicating the treatment responsible for the adverse event. If none are present, returns None. |
description
property
¶
medication
class-attribute
instance-attribute
¶
radiotherapy
class-attribute
instance-attribute
¶
surgery
class-attribute
instance-attribute
¶
systemic_therapy
class-attribute
instance-attribute
¶
AdverseEventSuspectedCauseCausalityChoices
¶
Bases: TextChoices