class documentation
class Subsites:
All tumor subsites as ICD-10 codes with the respective names.
This container class for all the subsite ICD enums provides the convenience of accessing all subsites in a single place. One may use it as follows:
>>> Subsites.Tongue.C02_0.label 'Dorsal surface of tongue' >>> Subsites.Gum.choices # doctest: +NORMALIZE_WHITESPACE [('C03', 'Gum'), ('C03.0', 'Upper gum'), ('C03.1', 'Lower gum'), ('C03.9', 'Gum, unspecified')] >>> Subsites.all_values() # doctest: +NORMALIZE_WHITESPACE +ELLIPSIS ['C01', 'C01.9', ..., 'C32.9']
Class |
|
Tumor subsites in the base of the tongue. |
Class |
|
Tumor subsites in the gums and cheeks. |
Class |
|
Tumor subsites in the floor of the mouth. |
Class |
|
Tumor subsites in the gums. |
Class |
|
Tumor subsites in the rest of the hypopharynx. |
Class |
|
Tumor subsites in the rest of the larynx. |
Class |
|
Tumor subsites in the rest of the oropharynx. |
Class |
|
Tumor subsites in the palate. |
Class |
|
Tumor subsites in the tongue. |
Class |
|
Tumor subsites in the tonsils. |
Class Method | all |
Return concatenated choices list of all subsites. |
Class Method | all |
Return concatenated values list of all subsites. |
Class Method | get |
Return a dictionary of all subsite enums. |
Return a dictionary of all subsite enums.
Note that the keys are the subsite names in snake case. E.g., BaseOfTongue
would become base_of_tongue. This is done by the convert_camel_to_snake
helper function.
>>> Subsites.get_subsite_enums().keys() # doctest: +NORMALIZE_WHITESPACE dict_keys(['base_of_tongue', 'tongue', 'gum', 'floor_of_mouth', 'palate', 'cheek', 'glands', 'tonsil', 'oropharynx', 'hypopharynx', 'larynx'])