Skip to content

Commit 1970a0d

Browse files
Merge pull request #39 from linkml/add-qudt-quantity-kinds
Add QUDT QuantityKinds value set
2 parents 6c64121 + 074a3ab commit 1970a0d

File tree

13 files changed

+2337
-0
lines changed

13 files changed

+2337
-0
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
"""Auto-generated package."""
Lines changed: 196 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,196 @@
1+
"""
2+
ICD-O Cancer Classification Value Sets
3+
4+
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__ import annotations
10+
11+
from valuesets.generators.rich_enum import RichEnum
12+
13+
class TumorTopography(RichEnum):
14+
"""
15+
Major anatomic sites for tumor classification based on ICD-O topography codes (C00-C80). These represent primary sites where neoplasms occur.
16+
"""
17+
# Enum members
18+
LIP_ORAL_CAVITY_PHARYNX = "LIP_ORAL_CAVITY_PHARYNX"
19+
DIGESTIVE_ORGANS = "DIGESTIVE_ORGANS"
20+
ESOPHAGUS = "ESOPHAGUS"
21+
STOMACH = "STOMACH"
22+
COLON = "COLON"
23+
RECTUM = "RECTUM"
24+
LIVER = "LIVER"
25+
PANCREAS = "PANCREAS"
26+
RESPIRATORY_INTRATHORACIC = "RESPIRATORY_INTRATHORACIC"
27+
LUNG = "LUNG"
28+
BONE_ARTICULAR_CARTILAGE = "BONE_ARTICULAR_CARTILAGE"
29+
SKIN = "SKIN"
30+
SOFT_TISSUE = "SOFT_TISSUE"
31+
BREAST = "BREAST"
32+
FEMALE_GENITAL = "FEMALE_GENITAL"
33+
CERVIX_UTERI = "CERVIX_UTERI"
34+
OVARY = "OVARY"
35+
MALE_GENITAL = "MALE_GENITAL"
36+
PROSTATE = "PROSTATE"
37+
TESTIS = "TESTIS"
38+
URINARY_TRACT = "URINARY_TRACT"
39+
KIDNEY = "KIDNEY"
40+
BLADDER = "BLADDER"
41+
EYE_BRAIN_CNS = "EYE_BRAIN_CNS"
42+
BRAIN = "BRAIN"
43+
THYROID_ENDOCRINE = "THYROID_ENDOCRINE"
44+
THYROID = "THYROID"
45+
LYMPH_NODES = "LYMPH_NODES"
46+
UNKNOWN_PRIMARY = "UNKNOWN_PRIMARY"
47+
48+
# Set metadata after class creation
49+
TumorTopography._metadata = {
50+
"LIP_ORAL_CAVITY_PHARYNX": {'description': 'Malignant neoplasms of lip, oral cavity and pharynx (C00-C14)', 'annotations': {'icdo_range': 'C00-C14'}},
51+
"DIGESTIVE_ORGANS": {'description': 'Malignant neoplasms of digestive organs (C15-C26)', 'annotations': {'icdo_range': 'C15-C26'}},
52+
"ESOPHAGUS": {'description': 'Malignant neoplasm of esophagus (C15)', 'annotations': {'icdo_code': 'C15', 'uberon': 'UBERON:0001043'}},
53+
"STOMACH": {'description': 'Malignant neoplasm of stomach (C16)', 'annotations': {'icdo_code': 'C16', 'uberon': 'UBERON:0000945'}},
54+
"COLON": {'description': 'Malignant neoplasm of colon (C18)', 'annotations': {'icdo_code': 'C18', 'uberon': 'UBERON:0001155'}},
55+
"RECTUM": {'description': 'Malignant neoplasm of rectum (C20)', 'annotations': {'icdo_code': 'C20', 'uberon': 'UBERON:0001052'}},
56+
"LIVER": {'description': 'Malignant neoplasm of liver and intrahepatic bile ducts (C22)', 'annotations': {'icdo_code': 'C22', 'uberon': 'UBERON:0002107'}},
57+
"PANCREAS": {'description': 'Malignant neoplasm of pancreas (C25)', 'annotations': {'icdo_code': 'C25', 'uberon': 'UBERON:0001264'}},
58+
"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'}},
64+
"FEMALE_GENITAL": {'description': 'Malignant neoplasms of female genital organs (C51-C58)', 'annotations': {'icdo_range': 'C51-C58'}},
65+
"CERVIX_UTERI": {'description': 'Malignant neoplasm of cervix uteri (C53)', 'annotations': {'icdo_code': 'C53'}},
66+
"OVARY": {'description': 'Malignant neoplasm of ovary (C56)', 'annotations': {'icdo_code': 'C56', 'uberon': 'UBERON:0000992'}},
67+
"MALE_GENITAL": {'description': 'Malignant neoplasms of male genital organs (C60-C63)', 'annotations': {'icdo_range': 'C60-C63'}},
68+
"PROSTATE": {'description': 'Malignant neoplasm of prostate (C61)', 'annotations': {'icdo_code': 'C61', 'uberon': 'UBERON:0002367'}},
69+
"TESTIS": {'description': 'Malignant neoplasm of testis (C62)', 'annotations': {'icdo_code': 'C62', 'uberon': 'UBERON:0000473'}},
70+
"URINARY_TRACT": {'description': 'Malignant neoplasms of urinary tract (C64-C68)', 'annotations': {'icdo_range': 'C64-C68'}},
71+
"KIDNEY": {'description': 'Malignant neoplasm of kidney (C64)', 'annotations': {'icdo_code': 'C64', 'uberon': 'UBERON:0002113'}},
72+
"BLADDER": {'description': 'Malignant neoplasm of bladder (C67)', 'annotations': {'icdo_code': 'C67', 'uberon': 'UBERON:0001255'}},
73+
"EYE_BRAIN_CNS": {'description': 'Malignant neoplasms of eye, brain and other parts of CNS (C69-C72)', 'annotations': {'icdo_range': 'C69-C72'}},
74+
"BRAIN": {'description': 'Malignant neoplasm of brain (C71)', 'annotations': {'icdo_code': 'C71', 'uberon': 'UBERON:0000955'}},
75+
"THYROID_ENDOCRINE": {'description': 'Malignant neoplasms of thyroid and other endocrine glands (C73-C75)', 'annotations': {'icdo_range': 'C73-C75'}},
76+
"THYROID": {'description': 'Malignant neoplasm of thyroid gland (C73)', 'annotations': {'icdo_code': 'C73', 'uberon': 'UBERON:0002046'}},
77+
"LYMPH_NODES": {'description': 'Malignant neoplasms of lymph nodes (C77)', 'annotations': {'icdo_code': 'C77'}},
78+
"UNKNOWN_PRIMARY": {'description': 'Malignant neoplasm of unknown primary site (C80)', 'annotations': {'icdo_code': 'C80'}},
79+
}
80+
81+
class TumorMorphology(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.
84+
"""
85+
# Enum members
86+
CARCINOMA_NOS = "CARCINOMA_NOS"
87+
ADENOCARCINOMA_NOS = "ADENOCARCINOMA_NOS"
88+
SQUAMOUS_CELL_CARCINOMA = "SQUAMOUS_CELL_CARCINOMA"
89+
TRANSITIONAL_CELL_CARCINOMA = "TRANSITIONAL_CELL_CARCINOMA"
90+
SMALL_CELL_CARCINOMA = "SMALL_CELL_CARCINOMA"
91+
LARGE_CELL_CARCINOMA = "LARGE_CELL_CARCINOMA"
92+
SARCOMA_NOS = "SARCOMA_NOS"
93+
OSTEOSARCOMA = "OSTEOSARCOMA"
94+
CHONDROSARCOMA = "CHONDROSARCOMA"
95+
LIPOSARCOMA = "LIPOSARCOMA"
96+
LEIOMYOSARCOMA = "LEIOMYOSARCOMA"
97+
RHABDOMYOSARCOMA = "RHABDOMYOSARCOMA"
98+
LYMPHOMA_NOS = "LYMPHOMA_NOS"
99+
HODGKIN_LYMPHOMA = "HODGKIN_LYMPHOMA"
100+
NON_HODGKIN_LYMPHOMA = "NON_HODGKIN_LYMPHOMA"
101+
DIFFUSE_LARGE_B_CELL_LYMPHOMA = "DIFFUSE_LARGE_B_CELL_LYMPHOMA"
102+
LEUKEMIA_NOS = "LEUKEMIA_NOS"
103+
ACUTE_LYMPHOBLASTIC_LEUKEMIA = "ACUTE_LYMPHOBLASTIC_LEUKEMIA"
104+
ACUTE_MYELOID_LEUKEMIA = "ACUTE_MYELOID_LEUKEMIA"
105+
CHRONIC_LYMPHOCYTIC_LEUKEMIA = "CHRONIC_LYMPHOCYTIC_LEUKEMIA"
106+
CHRONIC_MYELOID_LEUKEMIA = "CHRONIC_MYELOID_LEUKEMIA"
107+
MELANOMA = "MELANOMA"
108+
MESOTHELIOMA = "MESOTHELIOMA"
109+
GERM_CELL_TUMOR = "GERM_CELL_TUMOR"
110+
NEUROENDOCRINE_TUMOR = "NEUROENDOCRINE_TUMOR"
111+
112+
# Set metadata after class creation
113+
TumorMorphology._metadata = {
114+
"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}},
122+
"CHONDROSARCOMA": {'description': 'Malignant cartilage-forming tumor.', 'meaning': 'NCIT:C2946', 'annotations': {'icdo_code': 9220}},
123+
"LIPOSARCOMA": {'description': 'Malignant tumor arising from adipose tissue.', 'meaning': 'NCIT:C3194', 'annotations': {'icdo_code': 8850}},
124+
"LEIOMYOSARCOMA": {'description': 'Malignant tumor arising from smooth muscle.', 'meaning': 'NCIT:C3158', 'annotations': {'icdo_code': 8890}},
125+
"RHABDOMYOSARCOMA": {'description': 'Malignant tumor arising from skeletal muscle.', 'meaning': 'NCIT:C3359', 'annotations': {'icdo_code': 8900}},
126+
"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}},
131+
"ACUTE_LYMPHOBLASTIC_LEUKEMIA": {'description': 'Acute leukemia of lymphoid precursor cells.', 'meaning': 'NCIT:C3167', 'annotations': {'icdo_code': 9811}},
132+
"ACUTE_MYELOID_LEUKEMIA": {'description': 'Acute leukemia of myeloid precursor cells.', 'meaning': 'NCIT:C3171', 'annotations': {'icdo_code': 9861}},
133+
"CHRONIC_LYMPHOCYTIC_LEUKEMIA": {'description': 'Chronic leukemia of mature B lymphocytes.', 'meaning': 'NCIT:C3163', 'annotations': {'icdo_code': 9823}},
134+
"CHRONIC_MYELOID_LEUKEMIA": {'description': 'Chronic leukemia characterized by BCR-ABL1 fusion gene.', 'meaning': 'NCIT:C3174', 'annotations': {'icdo_code': 9875}},
135+
"MELANOMA": {'description': 'Malignant neoplasm arising from melanocytes.', 'meaning': 'NCIT:C3224', 'annotations': {'icdo_code': 8720}},
136+
"MESOTHELIOMA": {'description': 'Malignant tumor arising from mesothelial cells lining pleura, peritoneum, or pericardium. Strongly associated with asbestos exposure.', 'meaning': 'NCIT:C3234', 'annotations': {'icdo_code': 9050}},
137+
"GERM_CELL_TUMOR": {'description': 'Tumor arising from germ cells. Includes seminoma, teratoma, etc.', 'meaning': 'NCIT:C3708', 'annotations': {'icdo_codes': '9060-9110'}},
138+
"NEUROENDOCRINE_TUMOR": {'description': 'Tumor arising from neuroendocrine cells.', 'annotations': {'icdo_codes': '8240-8249'}},
139+
}
140+
141+
class TumorBehavior(RichEnum):
142+
"""
143+
Biological behavior codes used in ICD-O morphology (5th digit). Indicates whether a neoplasm is benign, uncertain, in situ, or malignant.
144+
"""
145+
# Enum members
146+
BENIGN = "BENIGN"
147+
UNCERTAIN_BORDERLINE = "UNCERTAIN_BORDERLINE"
148+
IN_SITU = "IN_SITU"
149+
MALIGNANT_PRIMARY = "MALIGNANT_PRIMARY"
150+
MALIGNANT_METASTATIC = "MALIGNANT_METASTATIC"
151+
MALIGNANT_UNCERTAIN_PRIMARY_METASTATIC = "MALIGNANT_UNCERTAIN_PRIMARY_METASTATIC"
152+
153+
# Set metadata after class creation
154+
TumorBehavior._metadata = {
155+
"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+
class TumorGrade(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}},
185+
"T_CELL": {'description': 'Lymphoma/leukemia of T-cell origin.', 'annotations': {'icdo_grade': 5, 'use': 'lymphomas/leukemias'}},
186+
"B_CELL": {'description': 'Lymphoma/leukemia of B-cell origin.', 'annotations': {'icdo_grade': 6, 'use': 'lymphomas/leukemias'}},
187+
"NULL_CELL": {'description': 'Lymphoma/leukemia of neither T-cell nor B-cell origin.', 'annotations': {'icdo_grade': 7, 'use': 'lymphomas/leukemias'}},
188+
"NK_CELL": {'description': 'Lymphoma/leukemia of natural killer cell origin.', 'annotations': {'icdo_grade': 8, 'use': 'lymphomas/leukemias'}},
189+
}
190+
191+
__all__ = [
192+
"TumorTopography",
193+
"TumorMorphology",
194+
"TumorBehavior",
195+
"TumorGrade",
196+
]
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
"""Auto-generated package."""

0 commit comments

Comments
 (0)