Skip to content

Commit 512fd64

Browse files
authored
Merge pull request #42 from ldorigo/patch-1
Add a set of available semtypes so users can easily choose the ones they need.
2 parents a1f98e9 + ff517a0 commit 512fd64

1 file changed

Lines changed: 130 additions & 26 deletions

File tree

constants.py

Lines changed: 130 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -8,33 +8,137 @@
88

99
NEGATIONS = {'none', 'non', 'neither', 'nor', 'no', 'not'}
1010

11+
# The following is a list of all existing semtypes along with their name and some examples.
12+
# You can easily select the ones you need by commenting out the lines that are not relevant for your application.
13+
1114
ACCEPTED_SEMTYPES = {
12-
'T029', # Body Location or Region
13-
'T023', # Body Part, Organ, or Organ Component
14-
'T031', # Body Substance
15-
'T060', # Diagnostic Procedure
16-
'T047', # Disease or Syndrome
17-
'T074', # Medical Device
18-
'T200', # Clinical Drug
19-
'T203', # Drug Delivery Device
20-
'T033', # Finding
21-
'T184', # Sign or Symptom
22-
'T034', # Laboratory or Test Result
23-
'T058', # Health Care Activity
24-
'T059', # Laboratory Procedure
25-
'T037', # Injury or Poisoning
26-
'T061', # Therapeutic or Preventive Procedure
27-
'T048', # Mental or Behavioral Dysfunction
28-
'T046', # Pathologic Function
29-
'T121', # Pharmacologic Substance
30-
'T201', # Clinical Attribute
31-
'T130', # Indicator, Reagent, or Diagnostic Aid
32-
'T195', # Antibiotic
33-
'T039', # Physiologic Function
34-
'T040', # Organism Function
35-
'T041', # Mental Process
36-
'T170', # Intellectual Product
37-
'T191' # Neoplastic Process
15+
# 'T020', # Acquired Abnormality, ex.: Hemorrhoids; Hernia, Femoral; Cauliflower ear
16+
# 'T052', # Activity, ex.: Expeditions; Information Distribution; Social Planning
17+
# 'T100', # Age Group, ex.: Adult; Infant, Premature; Adolescent (age group)
18+
# 'T087', # Amino Acid Sequence, ex.: Signal Peptides; Homologous Sequences, Amino Acid; Abnormal amino acid
19+
# 'T116', # Amino Acid, Peptide, or Protein, ex.: Amino Acids, Cyclic; Glycopeptides; Keratin
20+
# 'T011', # Amphibian, ex.: Salamandra; Urodela; Brazilian horned frog
21+
# 'T190', # Anatomical Abnormality, ex.: Bronchial Fistula; Foot Deformities; Hyperostosis of skull
22+
# 'T017', # Anatomical Structure, ex.: Cadaver; Pharyngostome; Anatomic structures
23+
# 'T008', # Animal, ex.: Animals; Animals, Laboratory; Carnivore
24+
'T195', # Antibiotic, ex.: Antibiotics; bactericide; Thienamycins
25+
# 'T194', # Archaeon, ex.: Thermoproteales; Haloferax volcanii; Methanospirillum
26+
# 'T007', # Bacterium, ex.: Acetobacter; Bacillus cereus; Cytophaga
27+
# 'T053', # Behavior, ex.: Homing Behavior; Sexuality; Habitat Selection
28+
# 'T038', # Biologic Function, ex.: Antibody Formation; Drug resistance; Homeostasis
29+
# 'T123', # Biologically Active Substance, ex.: Cytokinins; Pheromone
30+
# 'T091', # Biomedical Occupation or Discipline, ex.: Adolescent Medicine; Cellular Neurobiology; Dentistry
31+
# 'T122', # Biomedical or Dental Material, ex.: Acrylic Resins; Bone Cements; Dentifrices
32+
# 'T012', # Bird, ex.: Serinus; Ducks; Quail
33+
'T029', # Body Location or Region, ex.: Forehead; Sublingual Region; Base of skull structure
34+
'T023', # Body Part, Organ, or Organ Component, ex.: Aorta; Brain Stem; Structure of neck of femur
35+
# 'T030', # Body Space or Junction, ex.: Knee joint; Greater sac of peritoneum; Synapses
36+
'T031', # Body Substance, ex.: Amniotic Fluid; saliva; Smegma
37+
# 'T022', # Body System, ex.: Endocrine system; Renin-angiotensin system; Reticuloendothelial System
38+
# 'T088', # Carbohydrate Sequence, ex.: Carbohydrate Sequence; Abnormal carbohydrate sequence
39+
# 'T025', # Cell, ex.: B-Lymphocytes; Dendritic Cells; Fibroblasts
40+
# 'T026', # Cell Component, ex.: Axon; Golgi Apparatus; Organelles
41+
# 'T043', # Cell Function, ex.: Cell Cycle; Cell division; Phagocytosis
42+
# 'T049', # Cell or Molecular Dysfunction, ex.: DNA Damage; Wallerian Degeneration; Atypical squamous metaplasia
43+
# 'T103', # Chemical, ex.: Acids; Chemicals; Ionic Liquids
44+
# 'T120', # Chemical Viewed Functionally, ex.: Aerosol Propellants; Detergents; Stabilizing Agents
45+
# 'T104', # Chemical Viewed Structurally, ex.: Ammonium Compounds; Cations; Sulfur Compounds
46+
# 'T185', # Classification, ex.: Anatomy (MeSH Category); Tumor Stage Classification; axis i
47+
'T201', # Clinical Attribute, ex.: Bone Density; heart rate; Range of Motion, Articular
48+
'T200', # Clinical Drug, ex.: Ranitidine 300 MG Oral Tablet [Zantac]; Aspirin 300 MG Delayed Release Oral
49+
# 'T077', # Conceptual Entity, ex.: Geographic Factors; Fractals; Secularism
50+
# 'T019', # Congenital Abnormality, ex.: Albinism; Cleft palate with cleft lip; Polydactyly of toes
51+
# 'T056', # Daily or Recreational Activity, ex.: Badminton; Dancing; Swimming
52+
'T060', # Diagnostic Procedure, ex.: Biopsy; Heart Auscultation; Magnetic Resonance Imaging
53+
'T047', # Disease or Syndrome, ex.: Diabetes Mellitus; Drug Allergy; Malabsorption Syndrome
54+
'T203', # Drug Delivery Device, ex.: Nordette 21 Day Pack; {7 (Terazosin 1 MG Oral Tablet) / 7 (Terazosin 2 MG
55+
# 'T065', # Educational Activity, ex.: Academic Training; Family Planning Training; Preceptorship
56+
# 'T196', # Element, Ion, or Isotope, ex.: Carbon; Chromium Isotopes; Radioisotopes
57+
# 'T018', # Embryonic Structure, ex.: Blastoderm; Fetus; Neural Crest
58+
# 'T071', # Entity, ex.: Gifts, Financial; Image; Product Part
59+
# 'T069', # Environmental Effect of Humans, ex.: Air Pollution; Desertification; Bioremediation
60+
# 'T126', # Enzyme, ex.: GTP Cyclohydrolase II; enzyme substrate complex; arginine amidase
61+
# 'T204', # Eukaryote, ex.: Order Acarina; Bees; Plasmodium malariae
62+
# 'T051', # Event, ex.: Anniversaries; Exposure to Mumps virus (event); Device Unattended
63+
# 'T050', # Experimental Model of Disease, ex.: Alloxan Diabetes; Liver Cirrhosis, Experimental; Transient Gene Knock-Out
64+
# 'T099', # Family Group, ex.: Daughter; Is an only child; Unmarried Fathers
65+
'T033', # Finding, ex.: Birth History; Downward displacement of diaphragm; Decreased glucose level
66+
# 'T013', # Fish, ex.: Bass; Salmonidae; Whitefish
67+
# 'T168', # Food, ex.: Beverages; Egg Yolk (Dietary); Ice Cream
68+
# 'T021', # Fully Formed Anatomical Structure, ex.: Entire body as a whole; Female human body; Set of parts of human body
69+
# 'T169', # Functional Concept, ex.: Interviewer Effect; Problem Formulation; Endogenous
70+
# 'T004', # Fungus, ex.: Aspergillus clavatus; Blastomyces; Neurospora
71+
# 'T028', # Gene or Genome, ex.: Alleles; Genome, Human; rRNA Operon
72+
# 'T045', # Genetic Function, ex.: Early Gene Transcription; Gene Amplification; RNA Splicing
73+
# 'T083', # Geographic Area, ex.: Baltimore; Canada; Far East
74+
# 'T064', # Governmental or Regulatory Activity, ex.: Certification; Credentialing; Public Policy
75+
# 'T096', # Group, ex.: Focus Groups; jury; teams
76+
# 'T102', # Group Attribute, ex.: Family Size; Group Structure; Life Expectancy
77+
# 'T131', # Hazardous or Poisonous Substance, ex.: Carcinogens; Fumigant; Mutagens
78+
'T058', # Health Care Activity, ex.: ambulatory care services; Clinic Activities; Preventive Health Services
79+
# 'T093', # Health Care Related Organization, ex.: Centers for Disease Control and Prevention (U.S.); Halfway Houses;
80+
# 'T125', # Hormone, ex.: Enteric Hormones; thymic humoral factor; Prohormone
81+
# 'T016', # Human, ex.: Homo sapiens; jean piaget; Member of public
82+
# 'T068', # Human-caused Phenomenon or Process, ex.: Baby Boom; Cultural Evolution; Mass Media
83+
# 'T078', # Idea or Concept, ex.: Capitalism; Civil Rights; Ethics
84+
# 'T129', # Immunologic Factor, ex.: Antigens; Immunologic Factors; Blood group antigen P
85+
'T130', # Indicator, Reagent, or Diagnostic Aid, ex.: Fluorescent Dyes; Indicators and Reagents; India ink stain
86+
# 'T055', # Individual Behavior, ex.: Assertiveness; Grooming; Risk-Taking
87+
'T037', # Injury or Poisoning, ex.: Accidental Falls; Carbon Monoxide Poisoning; Snake Bites
88+
# 'T197', # Inorganic Chemical, ex.: Carbonic Acid; aluminum nitride; ferric citrate
89+
'T170', # Intellectual Product, ex.: Decision Support Techniques; Information Systems; Literature
90+
'T034', # Laboratory or Test Result, ex.: Blood Flow Velocity; Serum Calcium Level; Spinal Fluid Pressure
91+
'T059', # Laboratory Procedure, ex.: Blood Protein Electrophoresis; Crystallography; Radioimmunoassay
92+
# 'T171', # Language, ex.: Armenian language; braille; Bilingualism
93+
# 'T066', # Machine Activity, ex.: Computer Simulation; Equipment Failure; Natural Language Processing
94+
# 'T015', # Mammal, ex.: Ursidae Family; Hamsters; Macaca
95+
# 'T073', # Manufactured Object, ex.: car seat; Cooking and Eating Utensils; Goggles
96+
'T074', # Medical Device, ex.: Bone Screws; Headgear, Orthodontic; Compression Stockings
97+
'T048', # Mental or Behavioral Dysfunction, ex.: Agoraphobia; Cyclothymic Disorder; Frigidity
98+
'T041', # Mental Process, ex.: Anger; Auditory Fatigue; Avoidance Learning
99+
# 'T063', # Molecular Biology Research Technique, ex.: Northern Blotting; Genetic Engineering; In Situ Hybridization
100+
# 'T044', # Molecular Function, ex.: Binding, Competitive; Electron Transport; Glycolysis
101+
# 'T085', # Molecular Sequence, ex.: Genetic Code; Homologous Sequences; Molecular Sequence
102+
# 'T070', # Natural Phenomenon or Process, ex.: Air Movements; Corrosion; Lightning (phenomenon)
103+
'T191', # Neoplastic Process, ex.: Abdominal Neoplasms; Bowen's Disease; Polyp in nasopharynx
104+
# 'T114', # Nucleic Acid, Nucleoside, or Nucleotide, ex.: Cytosine Nucleotides; Guanine; Oligonucleotides
105+
# 'T086', # Nucleotide Sequence, ex.: Base Sequence; Direct Repeat; RNA Sequence
106+
# 'T090', # Occupation or Discipline, ex.: Aviation; Craniology; Ecology
107+
# 'T057', # Occupational Activity, ex.: Collective Bargaining; Commerce; Containment of Biohazards
108+
# 'T042', # Organ or Tissue Function, ex.: Osteogenesis; Renal Circulation; Tooth Calcification
109+
# 'T109', # Organic Chemical, ex.: Benzene Derivatives
110+
# 'T001', # Organism, ex.: Organism; Infectious agent; Heterotroph
111+
# 'T032', # Organism Attribute, ex.: Age; Birth Weight; Eye Color
112+
'T040', # Organism Function, ex.: Breeding; Hibernation; Motor Skills
113+
# 'T092', # Organization, ex.: Labor Unions; United Nations; Boarding school
114+
'T046', # Pathologic Function, ex.: Inflammation; Shock; Thrombosis
115+
# 'T101', # Patient or Disabled Group, ex.: Amputees; Institutionalized Child; Mentally Ill Persons
116+
'T121', # Pharmacologic Substance, ex.: Antiemetics; Cardiovascular Agents; Alka-Seltzer
117+
'T067', # Phenomenon or Process, ex.: Disasters; Motor Traffic Accidents; Depolymerization
118+
# 'T072', # Physical Object, ex.: Printed Media; Meteors; Physical object
119+
'T039', # Physiologic Function, ex.: Biorhythms; Hearing; Vasodilation
120+
# 'T002', # Plant, ex.: Aloe; Pollen; Helianthus species
121+
# 'T098', # Population Group, ex.: Asian Americans; Ethnic group; Adult Offenders
122+
# 'T097', # Professional or Occupational Group, ex.: Clergy; Demographers; Hospital Volunteers
123+
# 'T094', # Professional Society, ex.: American Medical Association; International Council of Nurses; Library
124+
# 'T080', # Qualitative Concept, ex.: Clinical Competence; Consumer Satisfaction; Health Status
125+
# 'T081', # Quantitative Concept, ex.: Age Distribution; Metric System; Selection Bias
126+
# 'T192', # Receptor, ex.: Binding Sites; Lymphocyte antigen CD4 receptor; integrin alpha11beta1
127+
# 'T089', # Regulation or Law, ex.: Building Codes; Criminal Law; Health Planning Guidelines
128+
# 'T014', # Reptile, ex.: Alligators; Water Mocassin; Genus Python (organism)
129+
# 'T062', # Research Activity, ex.: Animal Experimentation; Biomedical Research; Experimental Replication
130+
# 'T075', # Research Device, ex.: Electrodes, Enzyme; DNA Microarray Chip; Particle Count and Size Analyzer
131+
# 'T095', # Self-help or Relief Organization, ex.: Alcoholics Anonymous; Charities - organization; Red Cross
132+
'T184', # Sign or Symptom, ex.: Dyspnea; Nausea; Pain
133+
# 'T054', # Social Behavior, ex.: Acculturation; Communication; Interpersonal Relations
134+
# 'T082', # Spatial Concept, ex.: Mandibular Rest Position; Lateral; Extrinsic
135+
# 'T167', # Substance, ex.: Air (substance); Fossils; Plastics
136+
# 'T079', # Temporal Concept, ex.: Birth Intervals; Half-Life; Postoperative Period
137+
'T061', # Therapeutic or Preventive Procedure, ex.: Cesarean section; Dermabrasion; Family psychotherapy
138+
# 'T024', # Tissue, ex.: Cartilage; Endothelium; Epidermis
139+
# 'T010', # Vertebrate, ex.: Vertebrates; Gnathostomata vertebrate; Craniata <chordata>
140+
# 'T005', # Virus, ex.: Coliphages; Echovirus; Parvoviridae
141+
# 'T127' # Vitamin, ex.: 5,25-Dihydroxy cholecalciferol; alpha-tocopheryl oxalate; Vitamin A [EPC]
38142
}
39143

40144
UNICODE_DASHES = {

0 commit comments

Comments
 (0)