class Patient(mixins.LockedDatasetMixin, loggers.ModelLoggerMixin, models.Model):
The representation of a patient in the database.
Contains some demographic information, as well as patient-specific characteristics that are important in the context of cancer, e.g. HPV status.
This model also ties together the information about the patient's tumor(s)
and the lymphatic progression pattern of that patient in the form of a
Diagnose
model.
Class |
|
Defines the possible M-stages as choice class. |
Class |
|
Defines the possible N-stages as choice class. |
Class |
|
Defines the possible T-stages as choice class. |
Method | __str__ |
Report some patient specifics. |
Method | get |
Return the absolute URL for a particular patient. |
Method | get |
Return the LNL diagnose(s) of the patient. |
Method | get |
Return the primary tumor(s) of that patient. |
Method | update |
Update T-stage after new Tumor is added to Patient . |
Method | validate |
Make sure the patient has not already been added. |
Class Variable | age |
Age in years at the time of diagnosis. |
Class Variable | alcohol |
Was the patient a drinker? |
Class Variable | dataset |
Every patient must belong to a dataset entry that manages importing, exporting as well as preventing edits that compromise the integrity of the dataset. |
Class Variable | diagnose |
Date of histological confirmation with a squamous cell carcinoma. |
Class Variable | hpv |
Was the patient HPV positive (True) or negative (False)? |
Class Variable | m |
Indicates whether or not there are distant metastases. |
Class Variable | n |
Categorizes the extend of regional metastases. |
Class Variable | neck |
Did the patient undergo (radical) neck dissection? |
Class Variable | nicotine |
Was the patient a smoker? |
Class Variable | sex |
Biological sex of the patient. |
Class Variable | tnm |
The edition of the TNM staging system that was used. |
Instance Variable | stage |
'c' for 'clinical' and 'p' for 'pathological'. |
Instance Variable | t |
Stage of the primary tumor. Categorized the tumor by size and infiltration of tissue types. |
Inherited from LockedDatasetMixin
:
Method | delete |
Raise LockedDatasetError befor deleting if associated dataset is locked. |
Method | save |
Raise LockedDatasetError before saving if associated dataset is locked. |
Property | _must |
Infer from class if an error should be raised on save/delete. |
Update T-stage after new Tumor
is added to Patient
.
This Patient
method gets called in Tumor.save
method. It also updates the
patient's stage prefix to that of the tumor with the highest T-category.
Make sure the patient has not already been added.
Uniqueness is checked by ensuring this patient's combination of sex, age, date of diagnosis, alcohol, nicotine, and HPV status, as well as TNM stage is unique in the dataset.
Every patient must belong to a dataset entry that manages importing, exporting as well as preventing edits that compromise the integrity of the dataset.
Stage of the primary tumor. Categorized the tumor by size and infiltration of tissue types.