class documentation
class Diagnose(mixins.LockedDatasetMixin, loggers.ModelLoggerMixin, models.Model):
Model describing the diagnosis of one side of a patient's neck with regard to their lymphaitc metastatic involvement.
Class |
|
Meta class for providing the classmethod attributes to the Modalities class similar to what Django's enum types have. |
Class |
|
Class that aims to replicate the functionality of TextChoices from Django's enum types, but with the added functionality of storing the sensitivity & specificity of the respective modality. |
Method | __str__ |
Report some info for admin view. |
Method | save |
Make sure LNLs and their sublevels (e.g. 'a' and 'b') are treated consistelntly. E.g. when sublevel Ia is reported to be involved, the involvement status of level I cannot be reported as healthy. |
Class Variable | diagnose |
Undocumented |
Class Variable |
|
List of implemented lymph node levels. When the models module is imported, a simple for-loop creates additional fields for the Diagnose class for each of the elements in this list. |
Class Variable | modality |
The diagnostic modality that was used to reach the diagnosis. |
Class Variable | patient |
This defines the connection to the Patient model. |
Class Variable | side |
Undocumented |
Instance Variable | I |
Undocumented |
Instance Variable | II |
Undocumented |
Instance Variable | V |
Undocumented |
Inherited from LockedDatasetMixin
:
Method | delete |
Raise LockedDatasetError befor deleting if associated dataset is locked. |
Property | _must |
Infer from class if an error should be raised on save/delete. |