You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Value sets based on the International Classification of Diseases for Oncology (ICD-O) bi-axial classification system. ICD-O uses two independent axes: topography (anatomic site) and morphology (histological type and behavior).
5
+
6
+
Generated from: medical/oncology/icdo.yaml
7
+
"""
8
+
9
+
from __future__ importannotations
10
+
11
+
fromvaluesets.generators.rich_enumimportRichEnum
12
+
13
+
classTumorTopography(RichEnum):
14
+
"""
15
+
Major anatomic sites for tumor classification based on ICD-O topography codes (C00-C80). These represent primary sites where neoplasms occur.
"RESPIRATORY_INTRATHORACIC": {'description': 'Malignant neoplasms of respiratory and intrathoracic organs (C30-C39)', 'annotations': {'icdo_range': 'C30-C39'}},
59
+
"LUNG": {'description': 'Malignant neoplasm of bronchus and lung (C34)', 'annotations': {'icdo_code': 'C34', 'uberon': 'UBERON:0002048'}},
60
+
"BONE_ARTICULAR_CARTILAGE": {'description': 'Malignant neoplasms of bone and articular cartilage (C40-C41)', 'annotations': {'icdo_range': 'C40-C41'}},
61
+
"SKIN": {'description': 'Melanoma and other malignant neoplasms of skin (C43-C44)', 'annotations': {'icdo_range': 'C43-C44', 'uberon': 'UBERON:0002097'}},
62
+
"SOFT_TISSUE": {'description': 'Malignant neoplasms of mesothelial and soft tissues (C45-C49)', 'annotations': {'icdo_range': 'C45-C49'}},
63
+
"BREAST": {'description': 'Malignant neoplasm of breast (C50)', 'annotations': {'icdo_code': 'C50', 'uberon': 'UBERON:0000310'}},
"UNKNOWN_PRIMARY": {'description': 'Malignant neoplasm of unknown primary site (C80)', 'annotations': {'icdo_code': 'C80'}},
79
+
}
80
+
81
+
classTumorMorphology(RichEnum):
82
+
"""
83
+
Major histological types for tumor classification based on ICD-O morphology codes. These represent the cell type and histological pattern of neoplasms.
"CARCINOMA_NOS": {'description': 'Malignant epithelial neoplasm, not otherwise specified. General term for cancers arising from epithelial cells.', 'meaning': 'NCIT:C2916', 'annotations': {'icdo_code': 8010}},
115
+
"ADENOCARCINOMA_NOS": {'description': 'Malignant glandular epithelial neoplasm. Cancer arising from glandular epithelium.', 'meaning': 'NCIT:C2852', 'annotations': {'icdo_code': 8140}},
116
+
"SQUAMOUS_CELL_CARCINOMA": {'description': 'Malignant neoplasm arising from squamous epithelium. Common in skin, lung, esophagus, and cervix.', 'meaning': 'NCIT:C2929', 'annotations': {'icdo_code': 8070}},
117
+
"TRANSITIONAL_CELL_CARCINOMA": {'description': 'Malignant neoplasm arising from transitional epithelium (urothelium). Most common in bladder and urinary tract.', 'meaning': 'NCIT:C2930', 'annotations': {'icdo_code': 8120}},
118
+
"SMALL_CELL_CARCINOMA": {'description': 'Highly malignant neuroendocrine carcinoma with small cells. Most common in lung.', 'meaning': 'NCIT:C3915', 'annotations': {'icdo_code': 8041}},
119
+
"LARGE_CELL_CARCINOMA": {'description': 'Undifferentiated carcinoma with large cells.', 'annotations': {'icdo_code': 8012}},
120
+
"SARCOMA_NOS": {'description': 'Malignant mesenchymal neoplasm, not otherwise specified. Cancers arising from connective tissue, bone, cartilage, fat, muscle, or blood vessels.', 'meaning': 'NCIT:C9118', 'annotations': {'icdo_code': 8800}},
121
+
"OSTEOSARCOMA": {'description': 'Malignant bone-forming tumor. Most common primary malignant bone tumor.', 'meaning': 'NCIT:C9145', 'annotations': {'icdo_code': 9180}},
"LYMPHOMA_NOS": {'description': 'Malignant neoplasm of lymphoid tissue, not otherwise specified. Includes Hodgkin and non-Hodgkin lymphomas.', 'meaning': 'NCIT:C3208', 'annotations': {'icdo_code': 9590}},
127
+
"HODGKIN_LYMPHOMA": {'description': 'Lymphoma characterized by presence of Reed-Sternberg cells and specific histological patterns.', 'meaning': 'NCIT:C9357', 'annotations': {'icdo_code': 9650}},
128
+
"NON_HODGKIN_LYMPHOMA": {'description': 'All lymphomas other than Hodgkin lymphoma. Includes B-cell and T-cell lymphomas.', 'meaning': 'NCIT:C3211', 'annotations': {'icdo_codes': '9591, 9670-9729'}},
129
+
"DIFFUSE_LARGE_B_CELL_LYMPHOMA": {'description': 'Most common type of non-Hodgkin lymphoma.', 'meaning': 'NCIT:C8851', 'annotations': {'icdo_code': 9680}},
130
+
"LEUKEMIA_NOS": {'description': 'Malignant neoplasm of blood-forming tissues, not otherwise specified.', 'meaning': 'NCIT:C3161', 'annotations': {'icdo_code': 9800}},
"BENIGN": {'description': 'Non-cancerous neoplasm that does not invade surrounding tissue or metastasize.', 'meaning': 'NCIT:C3677', 'annotations': {'icdo_behavior': '/0'}},
156
+
"UNCERTAIN_BORDERLINE": {'description': 'Neoplasm with borderline malignancy or uncertain behavior. May recur but typically does not metastasize.', 'annotations': {'icdo_behavior': '/1'}},
157
+
"IN_SITU": {'description': 'Malignant cells confined to epithelium without invasion through basement membrane. Pre-invasive cancer.', 'meaning': 'NCIT:C2917', 'annotations': {'icdo_behavior': '/2'}},
158
+
"MALIGNANT_PRIMARY": {'description': 'Invasive malignant neoplasm at primary site. Cancer that has invaded through basement membrane.', 'annotations': {'icdo_behavior': '/3'}},
159
+
"MALIGNANT_METASTATIC": {'description': 'Malignant neoplasm that has spread from primary site to secondary (metastatic) site.', 'annotations': {'icdo_behavior': '/6'}},
160
+
"MALIGNANT_UNCERTAIN_PRIMARY_METASTATIC": {'description': 'Malignant neoplasm where it is uncertain if this is the primary site or a metastatic site.', 'annotations': {'icdo_behavior': '/9'}},
161
+
}
162
+
163
+
classTumorGrade(RichEnum):
164
+
"""
165
+
Histological grade/differentiation codes used in ICD-O (6th digit). Indicates how abnormal the tumor cells appear compared to normal cells.
166
+
"""
167
+
# Enum members
168
+
GRADE_1="GRADE_1"
169
+
GRADE_2="GRADE_2"
170
+
GRADE_3="GRADE_3"
171
+
GRADE_4="GRADE_4"
172
+
GRADE_NOT_DETERMINED="GRADE_NOT_DETERMINED"
173
+
T_CELL="T_CELL"
174
+
B_CELL="B_CELL"
175
+
NULL_CELL="NULL_CELL"
176
+
NK_CELL="NK_CELL"
177
+
178
+
# Set metadata after class creation
179
+
TumorGrade._metadata= {
180
+
"GRADE_1": {'description': 'Tumor cells closely resemble normal cells. Typically slow-growing with better prognosis.', 'annotations': {'icdo_grade': 1, 'differentiation': 'well differentiated'}},
181
+
"GRADE_2": {'description': 'Tumor cells show moderate resemblance to normal cells. Intermediate behavior.', 'annotations': {'icdo_grade': 2, 'differentiation': 'moderately differentiated'}},
182
+
"GRADE_3": {'description': 'Tumor cells show little resemblance to normal cells. More aggressive with poorer prognosis.', 'annotations': {'icdo_grade': 3, 'differentiation': 'poorly differentiated'}},
183
+
"GRADE_4": {'description': 'Tumor cells bear no resemblance to normal cells. Most aggressive with poorest prognosis.', 'annotations': {'icdo_grade': 4, 'differentiation': 'undifferentiated, anaplastic'}},
184
+
"GRADE_NOT_DETERMINED": {'description': 'Histological grade has not been assessed or is not applicable.', 'annotations': {'icdo_grade': 9}},
0 commit comments