Skip to content

onconova.oncology.models.surgery

Surgery

Bases: BaseModel

Represents a surgical procedure performed on a patient within an oncology context.

Attributes:

Name Type Description
case ForeignKey[PatientCase]

Reference to the patient case associated with the surgery.

date DateField

The clinically relevant date when the surgical procedure was performed.

targeted_entities ManyToManyField[NeoplasticEntities]

Neoplastic entities targeted by the surgery.

procedure CodedConceptField[SurgicalProcedure]

The specific surgical procedure performed, coded using a controlled terminology.

intent CharField[TreatmentIntent]

Therapeutic intent of the surgery (curative or palliative).

bodysite CodedConceptField[CancerTopography]

Anatomical location where the surgery was performed.

bodysite_qualifier CodedConceptField[CancerTopography]

Qualifier for the anatomical location of the surgery.

bodysite_laterality CodedConceptField[CancerLaterality]

Laterality of the anatomical location of the surgery.

outcome CodedConceptField[SurgicalOutcome]

Outcome of the surgical procedure.

therapy_line ForeignKey[TherapyLine]

Therapy line to which the surgery is assigned.

description str

Returns a human-readable description of the surgery, including therapy line or intent and procedure.

bodysite class-attribute instance-attribute

bodysite_laterality class-attribute instance-attribute

bodysite_qualifier class-attribute instance-attribute

case class-attribute instance-attribute

date class-attribute instance-attribute

description property

intent class-attribute instance-attribute

outcome class-attribute instance-attribute

procedure class-attribute instance-attribute

targeted_entities class-attribute instance-attribute

therapy_line class-attribute instance-attribute

assign_therapy_line()

Source code in onconova/oncology/models/surgery.py
def assign_therapy_line(self):
    TherapyLine.assign_therapy_lines(self.case)
    self.refresh_from_db()
    return self

SurgeryIntentChoices

Bases: TextChoices

An enumeration of possible treatment intents for a surgical procedure.

Attributes:

Name Type Description
CURATIVE

Indicates that the surgery is performed with the intention to cure the patient.

PALLIATIVE

Indicates that the surgery is performed to relieve symptoms or improve quality of life, without aiming for a cure.

CURATIVE class-attribute instance-attribute

PALLIATIVE class-attribute instance-attribute

runner