valuesets 0.3.1__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of valuesets might be problematic. Click here for more details.

Files changed (248) hide show
  1. valuesets/__init__.py +7 -0
  2. valuesets/_version.py +8 -0
  3. valuesets/datamodel/valuesets.py +13796 -0
  4. valuesets/datamodel/valuesets_dataclass.py +24503 -0
  5. valuesets/datamodel/valuesets_pydantic.py +13796 -0
  6. valuesets/enums/__init__.py +590 -0
  7. valuesets/enums/academic/__init__.py +1 -0
  8. valuesets/enums/academic/research.py +559 -0
  9. valuesets/enums/analytical_chemistry/__init__.py +1 -0
  10. valuesets/enums/analytical_chemistry/mass_spectrometry.py +198 -0
  11. valuesets/enums/bio/__init__.py +1 -0
  12. valuesets/enums/bio/biological_colors.py +238 -0
  13. valuesets/enums/bio/cell_cycle.py +180 -0
  14. valuesets/enums/bio/currency_chemicals.py +52 -0
  15. valuesets/enums/bio/developmental_stages.py +103 -0
  16. valuesets/enums/bio/genome_features.py +182 -0
  17. valuesets/enums/bio/genomics.py +91 -0
  18. valuesets/enums/bio/go_aspect.py +32 -0
  19. valuesets/enums/bio/go_causality.py +58 -0
  20. valuesets/enums/bio/go_evidence.py +129 -0
  21. valuesets/enums/bio/human_developmental_stages.py +62 -0
  22. valuesets/enums/bio/insdc_geographic_locations.py +591 -0
  23. valuesets/enums/bio/insdc_missing_values.py +49 -0
  24. valuesets/enums/bio/lipid_categories.py +67 -0
  25. valuesets/enums/bio/mouse_developmental_stages.py +62 -0
  26. valuesets/enums/bio/plant_biology.py +86 -0
  27. valuesets/enums/bio/plant_developmental_stages.py +54 -0
  28. valuesets/enums/bio/plant_sex.py +81 -0
  29. valuesets/enums/bio/protein_evidence.py +61 -0
  30. valuesets/enums/bio/proteomics_standards.py +123 -0
  31. valuesets/enums/bio/psi_mi.py +306 -0
  32. valuesets/enums/bio/relationship_to_oxygen.py +37 -0
  33. valuesets/enums/bio/sequence_alphabets.py +449 -0
  34. valuesets/enums/bio/sequence_chemistry.py +357 -0
  35. valuesets/enums/bio/sequencing_platforms.py +302 -0
  36. valuesets/enums/bio/structural_biology.py +320 -0
  37. valuesets/enums/bio/taxonomy.py +238 -0
  38. valuesets/enums/bio/trophic_levels.py +85 -0
  39. valuesets/enums/bio/uniprot_species.py +344 -0
  40. valuesets/enums/bio/viral_genome_types.py +47 -0
  41. valuesets/enums/bioprocessing/__init__.py +1 -0
  42. valuesets/enums/bioprocessing/scale_up.py +249 -0
  43. valuesets/enums/business/__init__.py +1 -0
  44. valuesets/enums/business/human_resources.py +275 -0
  45. valuesets/enums/business/industry_classifications.py +181 -0
  46. valuesets/enums/business/management_operations.py +228 -0
  47. valuesets/enums/business/organizational_structures.py +236 -0
  48. valuesets/enums/business/quality_management.py +181 -0
  49. valuesets/enums/business/supply_chain.py +232 -0
  50. valuesets/enums/chemistry/__init__.py +1 -0
  51. valuesets/enums/chemistry/chemical_entities.py +315 -0
  52. valuesets/enums/chemistry/reaction_directionality.py +65 -0
  53. valuesets/enums/chemistry/reactions.py +256 -0
  54. valuesets/enums/clinical/__init__.py +1 -0
  55. valuesets/enums/clinical/nih_demographics.py +177 -0
  56. valuesets/enums/clinical/phenopackets.py +254 -0
  57. valuesets/enums/common_value_sets.py +8791 -0
  58. valuesets/enums/computing/__init__.py +1 -0
  59. valuesets/enums/computing/file_formats.py +294 -0
  60. valuesets/enums/computing/maturity_levels.py +196 -0
  61. valuesets/enums/computing/mime_types.py +227 -0
  62. valuesets/enums/confidence_levels.py +168 -0
  63. valuesets/enums/contributor.py +30 -0
  64. valuesets/enums/core.py +42 -0
  65. valuesets/enums/data/__init__.py +1 -0
  66. valuesets/enums/data/data_absent_reason.py +53 -0
  67. valuesets/enums/data_science/__init__.py +1 -0
  68. valuesets/enums/data_science/binary_classification.py +87 -0
  69. valuesets/enums/data_science/emotion_classification.py +66 -0
  70. valuesets/enums/data_science/priority_severity.py +73 -0
  71. valuesets/enums/data_science/quality_control.py +46 -0
  72. valuesets/enums/data_science/sentiment_analysis.py +50 -0
  73. valuesets/enums/data_science/text_classification.py +97 -0
  74. valuesets/enums/demographics.py +206 -0
  75. valuesets/enums/ecological_interactions.py +151 -0
  76. valuesets/enums/energy/__init__.py +1 -0
  77. valuesets/enums/energy/energy.py +343 -0
  78. valuesets/enums/energy/fossil_fuels.py +29 -0
  79. valuesets/enums/energy/nuclear/__init__.py +1 -0
  80. valuesets/enums/energy/nuclear/nuclear_facilities.py +195 -0
  81. valuesets/enums/energy/nuclear/nuclear_fuel_cycle.py +96 -0
  82. valuesets/enums/energy/nuclear/nuclear_fuels.py +175 -0
  83. valuesets/enums/energy/nuclear/nuclear_operations.py +191 -0
  84. valuesets/enums/energy/nuclear/nuclear_regulatory.py +188 -0
  85. valuesets/enums/energy/nuclear/nuclear_safety.py +164 -0
  86. valuesets/enums/energy/nuclear/nuclear_waste.py +158 -0
  87. valuesets/enums/energy/nuclear/reactor_types.py +163 -0
  88. valuesets/enums/environmental_health/__init__.py +1 -0
  89. valuesets/enums/environmental_health/exposures.py +265 -0
  90. valuesets/enums/geography/__init__.py +1 -0
  91. valuesets/enums/geography/geographic_codes.py +741 -0
  92. valuesets/enums/health/__init__.py +12 -0
  93. valuesets/enums/health/vaccination.py +98 -0
  94. valuesets/enums/health.py +36 -0
  95. valuesets/enums/health_base.py +36 -0
  96. valuesets/enums/healthcare.py +45 -0
  97. valuesets/enums/industry/__init__.py +1 -0
  98. valuesets/enums/industry/extractive_industry.py +94 -0
  99. valuesets/enums/industry/mining.py +388 -0
  100. valuesets/enums/industry/safety_colors.py +201 -0
  101. valuesets/enums/investigation.py +27 -0
  102. valuesets/enums/materials_science/__init__.py +1 -0
  103. valuesets/enums/materials_science/characterization_methods.py +112 -0
  104. valuesets/enums/materials_science/crystal_structures.py +76 -0
  105. valuesets/enums/materials_science/material_properties.py +119 -0
  106. valuesets/enums/materials_science/material_types.py +104 -0
  107. valuesets/enums/materials_science/pigments_dyes.py +198 -0
  108. valuesets/enums/materials_science/synthesis_methods.py +109 -0
  109. valuesets/enums/medical/__init__.py +1 -0
  110. valuesets/enums/medical/clinical.py +277 -0
  111. valuesets/enums/medical/neuroimaging.py +119 -0
  112. valuesets/enums/mining_processing.py +302 -0
  113. valuesets/enums/physics/__init__.py +1 -0
  114. valuesets/enums/physics/states_of_matter.py +46 -0
  115. valuesets/enums/social/__init__.py +1 -0
  116. valuesets/enums/social/person_status.py +29 -0
  117. valuesets/enums/spatial/__init__.py +1 -0
  118. valuesets/enums/spatial/spatial_qualifiers.py +246 -0
  119. valuesets/enums/statistics/__init__.py +5 -0
  120. valuesets/enums/statistics/prediction_outcomes.py +31 -0
  121. valuesets/enums/statistics.py +31 -0
  122. valuesets/enums/time/__init__.py +1 -0
  123. valuesets/enums/time/temporal.py +254 -0
  124. valuesets/enums/units/__init__.py +1 -0
  125. valuesets/enums/units/measurements.py +310 -0
  126. valuesets/enums/visual/__init__.py +1 -0
  127. valuesets/enums/visual/colors.py +376 -0
  128. valuesets/generators/__init__.py +19 -0
  129. valuesets/generators/auto_slot_injector.py +280 -0
  130. valuesets/generators/enhanced_pydantic_generator.py +100 -0
  131. valuesets/generators/enum_slot_generator.py +201 -0
  132. valuesets/generators/modular_rich_generator.py +353 -0
  133. valuesets/generators/prefix_standardizer.py +198 -0
  134. valuesets/generators/rich_enum.py +127 -0
  135. valuesets/generators/rich_pydantic_generator.py +310 -0
  136. valuesets/generators/smart_slot_syncer.py +428 -0
  137. valuesets/generators/sssom_generator.py +394 -0
  138. valuesets/merged/merged_hierarchy.yaml +21649 -0
  139. valuesets/schema/README.md +3 -0
  140. valuesets/schema/academic/research.yaml +911 -0
  141. valuesets/schema/analytical_chemistry/mass_spectrometry.yaml +206 -0
  142. valuesets/schema/bio/bio_entities.yaml +364 -0
  143. valuesets/schema/bio/biological_colors.yaml +434 -0
  144. valuesets/schema/bio/cell_cycle.yaml +309 -0
  145. valuesets/schema/bio/currency_chemicals.yaml +70 -0
  146. valuesets/schema/bio/developmental_stages.yaml +226 -0
  147. valuesets/schema/bio/genome_features.yaml +342 -0
  148. valuesets/schema/bio/genomics.yaml +101 -0
  149. valuesets/schema/bio/go_aspect.yaml +39 -0
  150. valuesets/schema/bio/go_causality.yaml +119 -0
  151. valuesets/schema/bio/go_evidence.yaml +215 -0
  152. valuesets/schema/bio/insdc_geographic_locations.yaml +911 -0
  153. valuesets/schema/bio/insdc_missing_values.yaml +85 -0
  154. valuesets/schema/bio/lipid_categories.yaml +72 -0
  155. valuesets/schema/bio/plant_biology.yaml +125 -0
  156. valuesets/schema/bio/plant_developmental_stages.yaml +77 -0
  157. valuesets/schema/bio/plant_sex.yaml +108 -0
  158. valuesets/schema/bio/protein_evidence.yaml +63 -0
  159. valuesets/schema/bio/proteomics_standards.yaml +116 -0
  160. valuesets/schema/bio/psi_mi.yaml +400 -0
  161. valuesets/schema/bio/relationship_to_oxygen.yaml +46 -0
  162. valuesets/schema/bio/sequence_alphabets.yaml +1168 -0
  163. valuesets/schema/bio/sequence_chemistry.yaml +477 -0
  164. valuesets/schema/bio/sequencing_platforms.yaml +515 -0
  165. valuesets/schema/bio/structural_biology.yaml +428 -0
  166. valuesets/schema/bio/taxonomy.yaml +453 -0
  167. valuesets/schema/bio/trophic_levels.yaml +118 -0
  168. valuesets/schema/bio/uniprot_species.yaml +1209 -0
  169. valuesets/schema/bio/viral_genome_types.yaml +99 -0
  170. valuesets/schema/bioprocessing/scale_up.yaml +458 -0
  171. valuesets/schema/business/human_resources.yaml +752 -0
  172. valuesets/schema/business/industry_classifications.yaml +448 -0
  173. valuesets/schema/business/management_operations.yaml +602 -0
  174. valuesets/schema/business/organizational_structures.yaml +645 -0
  175. valuesets/schema/business/quality_management.yaml +502 -0
  176. valuesets/schema/business/supply_chain.yaml +688 -0
  177. valuesets/schema/chemistry/chemical_entities.yaml +639 -0
  178. valuesets/schema/chemistry/reaction_directionality.yaml +60 -0
  179. valuesets/schema/chemistry/reactions.yaml +442 -0
  180. valuesets/schema/clinical/nih_demographics.yaml +285 -0
  181. valuesets/schema/clinical/phenopackets.yaml +429 -0
  182. valuesets/schema/computing/file_formats.yaml +631 -0
  183. valuesets/schema/computing/maturity_levels.yaml +229 -0
  184. valuesets/schema/computing/mime_types.yaml +266 -0
  185. valuesets/schema/confidence_levels.yaml +206 -0
  186. valuesets/schema/contributor.yaml +30 -0
  187. valuesets/schema/core.yaml +55 -0
  188. valuesets/schema/data/data_absent_reason.yaml +82 -0
  189. valuesets/schema/data_science/binary_classification.yaml +125 -0
  190. valuesets/schema/data_science/emotion_classification.yaml +109 -0
  191. valuesets/schema/data_science/priority_severity.yaml +122 -0
  192. valuesets/schema/data_science/quality_control.yaml +68 -0
  193. valuesets/schema/data_science/sentiment_analysis.yaml +81 -0
  194. valuesets/schema/data_science/text_classification.yaml +135 -0
  195. valuesets/schema/demographics.yaml +238 -0
  196. valuesets/schema/ecological_interactions.yaml +298 -0
  197. valuesets/schema/energy/energy.yaml +595 -0
  198. valuesets/schema/energy/fossil_fuels.yaml +28 -0
  199. valuesets/schema/energy/nuclear/nuclear_facilities.yaml +463 -0
  200. valuesets/schema/energy/nuclear/nuclear_fuel_cycle.yaml +82 -0
  201. valuesets/schema/energy/nuclear/nuclear_fuels.yaml +421 -0
  202. valuesets/schema/energy/nuclear/nuclear_operations.yaml +480 -0
  203. valuesets/schema/energy/nuclear/nuclear_regulatory.yaml +200 -0
  204. valuesets/schema/energy/nuclear/nuclear_safety.yaml +352 -0
  205. valuesets/schema/energy/nuclear/nuclear_waste.yaml +332 -0
  206. valuesets/schema/energy/nuclear/reactor_types.yaml +394 -0
  207. valuesets/schema/environmental_health/exposures.yaml +355 -0
  208. valuesets/schema/generated_slots.yaml +1828 -0
  209. valuesets/schema/geography/geographic_codes.yaml +1018 -0
  210. valuesets/schema/health/vaccination.yaml +102 -0
  211. valuesets/schema/health.yaml +38 -0
  212. valuesets/schema/healthcare.yaml +53 -0
  213. valuesets/schema/industry/extractive_industry.yaml +89 -0
  214. valuesets/schema/industry/mining.yaml +888 -0
  215. valuesets/schema/industry/safety_colors.yaml +375 -0
  216. valuesets/schema/investigation.yaml +64 -0
  217. valuesets/schema/materials_science/characterization_methods.yaml +193 -0
  218. valuesets/schema/materials_science/crystal_structures.yaml +138 -0
  219. valuesets/schema/materials_science/material_properties.yaml +135 -0
  220. valuesets/schema/materials_science/material_types.yaml +151 -0
  221. valuesets/schema/materials_science/pigments_dyes.yaml +465 -0
  222. valuesets/schema/materials_science/synthesis_methods.yaml +186 -0
  223. valuesets/schema/medical/clinical.yaml +610 -0
  224. valuesets/schema/medical/neuroimaging.yaml +325 -0
  225. valuesets/schema/mining_processing.yaml +295 -0
  226. valuesets/schema/physics/states_of_matter.yaml +46 -0
  227. valuesets/schema/slot_mixins.yaml +143 -0
  228. valuesets/schema/social/person_status.yaml +28 -0
  229. valuesets/schema/spatial/spatial_qualifiers.yaml +466 -0
  230. valuesets/schema/statistics/prediction_outcomes.yaml +26 -0
  231. valuesets/schema/statistics.yaml +34 -0
  232. valuesets/schema/time/temporal.yaml +435 -0
  233. valuesets/schema/types.yaml +15 -0
  234. valuesets/schema/units/measurements.yaml +675 -0
  235. valuesets/schema/valuesets.yaml +100 -0
  236. valuesets/schema/visual/colors.yaml +778 -0
  237. valuesets/utils/__init__.py +6 -0
  238. valuesets/utils/comparison.py +102 -0
  239. valuesets/utils/expand_dynamic_enums.py +414 -0
  240. valuesets/utils/mapping_utils.py +236 -0
  241. valuesets/validators/__init__.py +11 -0
  242. valuesets/validators/enum_evaluator.py +669 -0
  243. valuesets/validators/oak_config.yaml +70 -0
  244. valuesets/validators/validate_with_ols.py +241 -0
  245. valuesets-0.3.1.dist-info/METADATA +395 -0
  246. valuesets-0.3.1.dist-info/RECORD +248 -0
  247. valuesets-0.3.1.dist-info/WHEEL +4 -0
  248. valuesets-0.3.1.dist-info/licenses/LICENSE +201 -0
@@ -0,0 +1,246 @@
1
+ """
2
+ Spatial Qualifier Value Sets
3
+
4
+ Value sets for spatial qualifiers, directions, and anatomical positions,
5
+ including both simple directional terms and biological spatial terminology
6
+
7
+ Generated from: spatial/spatial_qualifiers.yaml
8
+ """
9
+
10
+ from __future__ import annotations
11
+
12
+ from typing import Dict, Any, Optional
13
+ from valuesets.generators.rich_enum import RichEnum
14
+
15
+ class SimpleSpatialDirection(RichEnum):
16
+ """
17
+ Basic spatial directional terms for general use
18
+ """
19
+ # Enum members
20
+ LEFT = "LEFT"
21
+ RIGHT = "RIGHT"
22
+ FORWARD = "FORWARD"
23
+ BACKWARD = "BACKWARD"
24
+ UP = "UP"
25
+ DOWN = "DOWN"
26
+ INWARD = "INWARD"
27
+ OUTWARD = "OUTWARD"
28
+ TOP = "TOP"
29
+ BOTTOM = "BOTTOM"
30
+ MIDDLE = "MIDDLE"
31
+
32
+ # Set metadata after class creation
33
+ SimpleSpatialDirection._metadata = {
34
+ "LEFT": {'description': 'To the left side'},
35
+ "RIGHT": {'description': 'To the right side'},
36
+ "FORWARD": {'description': 'In the forward direction', 'annotations': {'aliases': 'ahead, front'}},
37
+ "BACKWARD": {'description': 'In the backward direction', 'annotations': {'aliases': 'back, behind, rear'}},
38
+ "UP": {'description': 'In the upward direction', 'annotations': {'aliases': 'above, upward'}},
39
+ "DOWN": {'description': 'In the downward direction', 'annotations': {'aliases': 'below, downward'}},
40
+ "INWARD": {'description': 'Toward the center or interior', 'annotations': {'aliases': 'medial, toward center'}},
41
+ "OUTWARD": {'description': 'Away from the center or exterior', 'annotations': {'aliases': 'peripheral, away from center'}},
42
+ "TOP": {'description': 'At or toward the top', 'annotations': {'aliases': 'upper, uppermost'}},
43
+ "BOTTOM": {'description': 'At or toward the bottom', 'annotations': {'aliases': 'lower, lowermost'}},
44
+ "MIDDLE": {'description': 'At or toward the middle', 'annotations': {'aliases': 'center, central'}},
45
+ }
46
+
47
+ class AnatomicalSide(RichEnum):
48
+ """
49
+ Anatomical sides as defined in the Biological Spatial Ontology (BSPO).
50
+ An anatomical region bounded by a plane perpendicular to an axis through the middle.
51
+ """
52
+ # Enum members
53
+ LEFT = "LEFT"
54
+ RIGHT = "RIGHT"
55
+ ANTERIOR = "ANTERIOR"
56
+ POSTERIOR = "POSTERIOR"
57
+ DORSAL = "DORSAL"
58
+ VENTRAL = "VENTRAL"
59
+ LATERAL = "LATERAL"
60
+ MEDIAL = "MEDIAL"
61
+ PROXIMAL = "PROXIMAL"
62
+ DISTAL = "DISTAL"
63
+ APICAL = "APICAL"
64
+ BASAL = "BASAL"
65
+ SUPERFICIAL = "SUPERFICIAL"
66
+ DEEP = "DEEP"
67
+ SUPERIOR = "SUPERIOR"
68
+ INFERIOR = "INFERIOR"
69
+ IPSILATERAL = "IPSILATERAL"
70
+ CONTRALATERAL = "CONTRALATERAL"
71
+ CENTRAL = "CENTRAL"
72
+
73
+ # Set metadata after class creation
74
+ AnatomicalSide._metadata = {
75
+ "LEFT": {'meaning': 'BSPO:0000000', 'aliases': ['left side']},
76
+ "RIGHT": {'meaning': 'BSPO:0000007', 'aliases': ['right side']},
77
+ "ANTERIOR": {'meaning': 'BSPO:0000055', 'annotations': {'aliases': 'front, rostral, cranial (in head region)'}, 'aliases': ['anterior side']},
78
+ "POSTERIOR": {'meaning': 'BSPO:0000056', 'annotations': {'aliases': 'back, caudal'}, 'aliases': ['posterior side']},
79
+ "DORSAL": {'meaning': 'BSPO:0000063', 'annotations': {'aliases': 'back (in vertebrates), upper (in humans)'}, 'aliases': ['dorsal side']},
80
+ "VENTRAL": {'meaning': 'BSPO:0000068', 'annotations': {'aliases': 'belly, front (in vertebrates), lower (in humans)'}, 'aliases': ['ventral side']},
81
+ "LATERAL": {'meaning': 'BSPO:0000066', 'annotations': {'aliases': 'side, outer'}, 'aliases': ['lateral side']},
82
+ "MEDIAL": {'meaning': 'BSPO:0000067', 'annotations': {'aliases': 'inner, middle'}, 'aliases': ['medial side']},
83
+ "PROXIMAL": {'meaning': 'BSPO:0000061', 'annotations': {'context': 'commonly used for limbs'}, 'aliases': ['proximal side']},
84
+ "DISTAL": {'meaning': 'BSPO:0000062', 'annotations': {'context': 'commonly used for limbs'}, 'aliases': ['distal side']},
85
+ "APICAL": {'meaning': 'BSPO:0000057', 'annotations': {'context': 'cells, organs, organisms'}, 'aliases': ['apical side']},
86
+ "BASAL": {'meaning': 'BSPO:0000058', 'annotations': {'context': 'cells, organs, organisms'}, 'aliases': ['basal side']},
87
+ "SUPERFICIAL": {'meaning': 'BSPO:0000004', 'annotations': {'aliases': 'external, outer'}, 'aliases': ['superficial side']},
88
+ "DEEP": {'meaning': 'BSPO:0000003', 'annotations': {'aliases': 'internal, inner'}, 'aliases': ['deep side']},
89
+ "SUPERIOR": {'meaning': 'BSPO:0000022', 'annotations': {'aliases': 'cranial (toward head), upper'}, 'aliases': ['superior side']},
90
+ "INFERIOR": {'meaning': 'BSPO:0000025', 'annotations': {'aliases': 'caudal (toward tail), lower'}, 'aliases': ['inferior side']},
91
+ "IPSILATERAL": {'meaning': 'BSPO:0000065', 'annotations': {'context': 'relative to a reference point'}, 'aliases': ['ipsilateral side']},
92
+ "CONTRALATERAL": {'meaning': 'BSPO:0000060', 'annotations': {'context': 'relative to a reference point'}, 'aliases': ['contralateral side']},
93
+ "CENTRAL": {'meaning': 'BSPO:0000059', 'annotations': {'aliases': 'middle'}, 'aliases': ['central side']},
94
+ }
95
+
96
+ class AnatomicalRegion(RichEnum):
97
+ """
98
+ Anatomical regions based on spatial position
99
+ """
100
+ # Enum members
101
+ ANTERIOR_REGION = "ANTERIOR_REGION"
102
+ POSTERIOR_REGION = "POSTERIOR_REGION"
103
+ DORSAL_REGION = "DORSAL_REGION"
104
+ VENTRAL_REGION = "VENTRAL_REGION"
105
+ LATERAL_REGION = "LATERAL_REGION"
106
+ MEDIAL_REGION = "MEDIAL_REGION"
107
+ PROXIMAL_REGION = "PROXIMAL_REGION"
108
+ DISTAL_REGION = "DISTAL_REGION"
109
+ APICAL_REGION = "APICAL_REGION"
110
+ BASAL_REGION = "BASAL_REGION"
111
+ CENTRAL_REGION = "CENTRAL_REGION"
112
+ PERIPHERAL_REGION = "PERIPHERAL_REGION"
113
+
114
+ # Set metadata after class creation
115
+ AnatomicalRegion._metadata = {
116
+ "ANTERIOR_REGION": {'meaning': 'BSPO:0000071', 'aliases': ['anterior region']},
117
+ "POSTERIOR_REGION": {'meaning': 'BSPO:0000072', 'aliases': ['posterior region']},
118
+ "DORSAL_REGION": {'meaning': 'BSPO:0000079', 'aliases': ['dorsal region']},
119
+ "VENTRAL_REGION": {'meaning': 'BSPO:0000084', 'aliases': ['ventral region']},
120
+ "LATERAL_REGION": {'meaning': 'BSPO:0000082', 'aliases': ['lateral region']},
121
+ "MEDIAL_REGION": {'meaning': 'BSPO:0000083', 'aliases': ['medial region']},
122
+ "PROXIMAL_REGION": {'meaning': 'BSPO:0000077', 'aliases': ['proximal region']},
123
+ "DISTAL_REGION": {'meaning': 'BSPO:0000078', 'aliases': ['distal region']},
124
+ "APICAL_REGION": {'meaning': 'BSPO:0000073', 'aliases': ['apical region']},
125
+ "BASAL_REGION": {'meaning': 'BSPO:0000074', 'aliases': ['basal region']},
126
+ "CENTRAL_REGION": {'meaning': 'BSPO:0000075', 'aliases': ['central region']},
127
+ "PERIPHERAL_REGION": {'meaning': 'BSPO:0000127', 'aliases': ['peripheral region']},
128
+ }
129
+
130
+ class AnatomicalAxis(RichEnum):
131
+ """
132
+ Anatomical axes defining spatial organization
133
+ """
134
+ # Enum members
135
+ ANTERIOR_POSTERIOR = "ANTERIOR_POSTERIOR"
136
+ DORSAL_VENTRAL = "DORSAL_VENTRAL"
137
+ LEFT_RIGHT = "LEFT_RIGHT"
138
+ PROXIMAL_DISTAL = "PROXIMAL_DISTAL"
139
+ APICAL_BASAL = "APICAL_BASAL"
140
+
141
+ # Set metadata after class creation
142
+ AnatomicalAxis._metadata = {
143
+ "ANTERIOR_POSTERIOR": {'meaning': 'BSPO:0000013', 'annotations': {'aliases': 'AP axis, rostrocaudal axis'}, 'aliases': ['anterior-posterior axis']},
144
+ "DORSAL_VENTRAL": {'meaning': 'BSPO:0000016', 'annotations': {'aliases': 'DV axis'}, 'aliases': ['dorsal-ventral axis']},
145
+ "LEFT_RIGHT": {'meaning': 'BSPO:0000017', 'annotations': {'aliases': 'LR axis, mediolateral axis'}, 'aliases': ['left-right axis']},
146
+ "PROXIMAL_DISTAL": {'meaning': 'BSPO:0000018', 'annotations': {'context': 'commonly used for appendages'}, 'aliases': ['transverse plane']},
147
+ "APICAL_BASAL": {'meaning': 'BSPO:0000023', 'annotations': {'context': 'epithelial cells, plant structures'}, 'aliases': ['apical-basal gradient']},
148
+ }
149
+
150
+ class AnatomicalPlane(RichEnum):
151
+ """
152
+ Standard anatomical planes for sectioning
153
+ """
154
+ # Enum members
155
+ SAGITTAL = "SAGITTAL"
156
+ MIDSAGITTAL = "MIDSAGITTAL"
157
+ PARASAGITTAL = "PARASAGITTAL"
158
+ CORONAL = "CORONAL"
159
+ TRANSVERSE = "TRANSVERSE"
160
+ OBLIQUE = "OBLIQUE"
161
+
162
+ # Set metadata after class creation
163
+ AnatomicalPlane._metadata = {
164
+ "SAGITTAL": {'meaning': 'BSPO:0000417', 'annotations': {'orientation': 'parallel to the median plane'}, 'aliases': ['sagittal plane']},
165
+ "MIDSAGITTAL": {'meaning': 'BSPO:0000009', 'annotations': {'aliases': 'median plane', 'note': 'divides body into equal left and right halves'}, 'aliases': ['midsagittal plane']},
166
+ "PARASAGITTAL": {'meaning': 'BSPO:0000008', 'annotations': {'note': 'any sagittal plane not at midline'}, 'aliases': ['parasagittal plane']},
167
+ "CORONAL": {'meaning': 'BSPO:0000019', 'annotations': {'aliases': 'frontal plane', 'orientation': 'perpendicular to sagittal plane'}, 'aliases': ['horizontal plane']},
168
+ "TRANSVERSE": {'meaning': 'BSPO:0000018', 'annotations': {'aliases': 'horizontal plane, axial plane', 'orientation': 'perpendicular to longitudinal axis'}, 'aliases': ['transverse plane']},
169
+ "OBLIQUE": {'description': 'Any plane not parallel to sagittal, coronal, or transverse planes', 'annotations': {'note': 'angled section'}},
170
+ }
171
+
172
+ class SpatialRelationship(RichEnum):
173
+ """
174
+ Spatial relationships between anatomical structures
175
+ """
176
+ # Enum members
177
+ ADJACENT_TO = "ADJACENT_TO"
178
+ ANTERIOR_TO = "ANTERIOR_TO"
179
+ POSTERIOR_TO = "POSTERIOR_TO"
180
+ DORSAL_TO = "DORSAL_TO"
181
+ VENTRAL_TO = "VENTRAL_TO"
182
+ LATERAL_TO = "LATERAL_TO"
183
+ MEDIAL_TO = "MEDIAL_TO"
184
+ PROXIMAL_TO = "PROXIMAL_TO"
185
+ DISTAL_TO = "DISTAL_TO"
186
+ SUPERFICIAL_TO = "SUPERFICIAL_TO"
187
+ DEEP_TO = "DEEP_TO"
188
+ SURROUNDS = "SURROUNDS"
189
+ WITHIN = "WITHIN"
190
+ BETWEEN = "BETWEEN"
191
+
192
+ # Set metadata after class creation
193
+ SpatialRelationship._metadata = {
194
+ "ADJACENT_TO": {'meaning': 'RO:0002220', 'aliases': ['adjacent to']},
195
+ "ANTERIOR_TO": {'meaning': 'BSPO:0000096', 'aliases': ['anterior to']},
196
+ "POSTERIOR_TO": {'meaning': 'BSPO:0000099', 'aliases': ['posterior to']},
197
+ "DORSAL_TO": {'meaning': 'BSPO:0000098', 'aliases': ['dorsal to']},
198
+ "VENTRAL_TO": {'meaning': 'BSPO:0000102', 'aliases': ['ventral to']},
199
+ "LATERAL_TO": {'meaning': 'BSPO:0000114', 'aliases': ['lateral to']},
200
+ "MEDIAL_TO": {'meaning': 'BSPO:0000115', 'aliases': ['X medial to y if x is closer to the midsagittal plane than y.']},
201
+ "PROXIMAL_TO": {'meaning': 'BSPO:0000100', 'aliases': ['proximal to']},
202
+ "DISTAL_TO": {'meaning': 'BSPO:0000097', 'aliases': ['distal to']},
203
+ "SUPERFICIAL_TO": {'meaning': 'BSPO:0000108', 'aliases': ['superficial to']},
204
+ "DEEP_TO": {'meaning': 'BSPO:0000107', 'aliases': ['deep to']},
205
+ "SURROUNDS": {'meaning': 'RO:0002221', 'aliases': ['surrounds']},
206
+ "WITHIN": {'description': 'Inside or contained by', 'annotations': {'inverse_of': 'contains'}},
207
+ "BETWEEN": {'description': 'In the space separating two structures', 'annotations': {'note': 'requires two reference points'}},
208
+ }
209
+
210
+ class CellPolarity(RichEnum):
211
+ """
212
+ Spatial polarity in cells and tissues
213
+ """
214
+ # Enum members
215
+ APICAL = "APICAL"
216
+ BASAL = "BASAL"
217
+ LATERAL = "LATERAL"
218
+ APICAL_LATERAL = "APICAL_LATERAL"
219
+ BASAL_LATERAL = "BASAL_LATERAL"
220
+ LEADING_EDGE = "LEADING_EDGE"
221
+ TRAILING_EDGE = "TRAILING_EDGE"
222
+ PROXIMAL_POLE = "PROXIMAL_POLE"
223
+ DISTAL_POLE = "DISTAL_POLE"
224
+
225
+ # Set metadata after class creation
226
+ CellPolarity._metadata = {
227
+ "APICAL": {'description': 'The free surface of an epithelial cell', 'annotations': {'location': 'typically faces lumen or external environment'}},
228
+ "BASAL": {'description': 'The attached surface of an epithelial cell', 'annotations': {'location': 'typically attached to basement membrane'}},
229
+ "LATERAL": {'description': 'The sides of an epithelial cell', 'annotations': {'location': 'faces neighboring cells'}},
230
+ "APICAL_LATERAL": {'description': 'Junction between apical and lateral surfaces'},
231
+ "BASAL_LATERAL": {'description': 'Junction between basal and lateral surfaces'},
232
+ "LEADING_EDGE": {'description': 'Front of a migrating cell', 'annotations': {'context': 'cell migration'}},
233
+ "TRAILING_EDGE": {'description': 'Rear of a migrating cell', 'annotations': {'context': 'cell migration'}},
234
+ "PROXIMAL_POLE": {'description': 'Pole closer to the cell body', 'annotations': {'context': 'neurons, polarized cells'}},
235
+ "DISTAL_POLE": {'description': 'Pole further from the cell body', 'annotations': {'context': 'neurons, polarized cells'}},
236
+ }
237
+
238
+ __all__ = [
239
+ "SimpleSpatialDirection",
240
+ "AnatomicalSide",
241
+ "AnatomicalRegion",
242
+ "AnatomicalAxis",
243
+ "AnatomicalPlane",
244
+ "SpatialRelationship",
245
+ "CellPolarity",
246
+ ]
@@ -0,0 +1,5 @@
1
+ """Auto-generated package."""
2
+
3
+ from .prediction_outcomes import OutcomeTypeEnum as PredictionOutcomeType
4
+
5
+ __all__ = ["PredictionOutcomeType"]
@@ -0,0 +1,31 @@
1
+ """
2
+
3
+ Generated from: statistics/prediction_outcomes.yaml
4
+ """
5
+
6
+ from __future__ import annotations
7
+
8
+ from typing import Dict, Any, Optional
9
+ from valuesets.generators.rich_enum import RichEnum
10
+
11
+ class OutcomeTypeEnum(RichEnum):
12
+ """
13
+ Types of prediction outcomes for classification tasks
14
+ """
15
+ # Enum members
16
+ TP = "TP"
17
+ FP = "FP"
18
+ TN = "TN"
19
+ FN = "FN"
20
+
21
+ # Set metadata after class creation
22
+ OutcomeTypeEnum._metadata = {
23
+ "TP": {'description': 'True Positive'},
24
+ "FP": {'description': 'False Positive'},
25
+ "TN": {'description': 'True Negative'},
26
+ "FN": {'description': 'False Negative'},
27
+ }
28
+
29
+ __all__ = [
30
+ "OutcomeTypeEnum",
31
+ ]
@@ -0,0 +1,31 @@
1
+ """
2
+ valuesets-statistics
3
+
4
+ Common Data Model Elements: Human and statistics activities
5
+
6
+ Generated from: statistics.yaml
7
+ """
8
+
9
+ from __future__ import annotations
10
+
11
+ from typing import Dict, Any, Optional
12
+ from valuesets.generators.rich_enum import RichEnum
13
+
14
+ class PredictionOutcomeType(RichEnum):
15
+ # Enum members
16
+ TP = "TP"
17
+ FP = "FP"
18
+ TN = "TN"
19
+ FN = "FN"
20
+
21
+ # Set metadata after class creation
22
+ PredictionOutcomeType._metadata = {
23
+ "TP": {'description': 'True Positive'},
24
+ "FP": {'description': 'False Positive'},
25
+ "TN": {'description': 'True Negative'},
26
+ "FN": {'description': 'False Negative'},
27
+ }
28
+
29
+ __all__ = [
30
+ "PredictionOutcomeType",
31
+ ]
@@ -0,0 +1 @@
1
+ """Auto-generated package."""
@@ -0,0 +1,254 @@
1
+ """
2
+ Temporal and Time-Related Value Sets
3
+
4
+ Value sets for temporal concepts including days, months, time periods, and durations
5
+
6
+ Generated from: time/temporal.yaml
7
+ """
8
+
9
+ from __future__ import annotations
10
+
11
+ from typing import Dict, Any, Optional
12
+ from valuesets.generators.rich_enum import RichEnum
13
+
14
+ class DayOfWeek(RichEnum):
15
+ """
16
+ Days of the week following ISO 8601 standard (Monday = 1)
17
+ """
18
+ # Enum members
19
+ MONDAY = "MONDAY"
20
+ TUESDAY = "TUESDAY"
21
+ WEDNESDAY = "WEDNESDAY"
22
+ THURSDAY = "THURSDAY"
23
+ FRIDAY = "FRIDAY"
24
+ SATURDAY = "SATURDAY"
25
+ SUNDAY = "SUNDAY"
26
+
27
+ # Set metadata after class creation
28
+ DayOfWeek._metadata = {
29
+ "MONDAY": {'description': 'Monday (first day of week in ISO 8601)', 'meaning': 'TIME:Monday', 'annotations': {'iso_number': 1, 'abbreviation': 'Mon'}},
30
+ "TUESDAY": {'description': 'Tuesday', 'meaning': 'TIME:Tuesday', 'annotations': {'iso_number': 2, 'abbreviation': 'Tue'}},
31
+ "WEDNESDAY": {'description': 'Wednesday', 'meaning': 'TIME:Wednesday', 'annotations': {'iso_number': 3, 'abbreviation': 'Wed'}},
32
+ "THURSDAY": {'description': 'Thursday', 'meaning': 'TIME:Thursday', 'annotations': {'iso_number': 4, 'abbreviation': 'Thu'}},
33
+ "FRIDAY": {'description': 'Friday', 'meaning': 'TIME:Friday', 'annotations': {'iso_number': 5, 'abbreviation': 'Fri'}},
34
+ "SATURDAY": {'description': 'Saturday', 'meaning': 'TIME:Saturday', 'annotations': {'iso_number': 6, 'abbreviation': 'Sat'}},
35
+ "SUNDAY": {'description': 'Sunday (last day of week in ISO 8601)', 'meaning': 'TIME:Sunday', 'annotations': {'iso_number': 7, 'abbreviation': 'Sun'}},
36
+ }
37
+
38
+ class Month(RichEnum):
39
+ """
40
+ Months of the year
41
+ """
42
+ # Enum members
43
+ JANUARY = "JANUARY"
44
+ FEBRUARY = "FEBRUARY"
45
+ MARCH = "MARCH"
46
+ APRIL = "APRIL"
47
+ MAY = "MAY"
48
+ JUNE = "JUNE"
49
+ JULY = "JULY"
50
+ AUGUST = "AUGUST"
51
+ SEPTEMBER = "SEPTEMBER"
52
+ OCTOBER = "OCTOBER"
53
+ NOVEMBER = "NOVEMBER"
54
+ DECEMBER = "DECEMBER"
55
+
56
+ # Set metadata after class creation
57
+ Month._metadata = {
58
+ "JANUARY": {'description': 'January', 'meaning': 'greg:January', 'annotations': {'month_number': 1, 'abbreviation': 'Jan', 'days': 31}},
59
+ "FEBRUARY": {'description': 'February', 'meaning': 'greg:February', 'annotations': {'month_number': 2, 'abbreviation': 'Feb', 'days': '28/29'}},
60
+ "MARCH": {'description': 'March', 'meaning': 'greg:March', 'annotations': {'month_number': 3, 'abbreviation': 'Mar', 'days': 31}},
61
+ "APRIL": {'description': 'April', 'meaning': 'greg:April', 'annotations': {'month_number': 4, 'abbreviation': 'Apr', 'days': 30}},
62
+ "MAY": {'description': 'May', 'meaning': 'greg:May', 'annotations': {'month_number': 5, 'abbreviation': 'May', 'days': 31}},
63
+ "JUNE": {'description': 'June', 'meaning': 'greg:June', 'annotations': {'month_number': 6, 'abbreviation': 'Jun', 'days': 30}},
64
+ "JULY": {'description': 'July', 'meaning': 'greg:July', 'annotations': {'month_number': 7, 'abbreviation': 'Jul', 'days': 31}},
65
+ "AUGUST": {'description': 'August', 'meaning': 'greg:August', 'annotations': {'month_number': 8, 'abbreviation': 'Aug', 'days': 31}},
66
+ "SEPTEMBER": {'description': 'September', 'meaning': 'greg:September', 'annotations': {'month_number': 9, 'abbreviation': 'Sep', 'days': 30}},
67
+ "OCTOBER": {'description': 'October', 'meaning': 'greg:October', 'annotations': {'month_number': 10, 'abbreviation': 'Oct', 'days': 31}},
68
+ "NOVEMBER": {'description': 'November', 'meaning': 'greg:November', 'annotations': {'month_number': 11, 'abbreviation': 'Nov', 'days': 30}},
69
+ "DECEMBER": {'description': 'December', 'meaning': 'greg:December', 'annotations': {'month_number': 12, 'abbreviation': 'Dec', 'days': 31}},
70
+ }
71
+
72
+ class Quarter(RichEnum):
73
+ """
74
+ Calendar quarters
75
+ """
76
+ # Enum members
77
+ Q1 = "Q1"
78
+ Q2 = "Q2"
79
+ Q3 = "Q3"
80
+ Q4 = "Q4"
81
+
82
+ # Set metadata after class creation
83
+ Quarter._metadata = {
84
+ "Q1": {'description': 'First quarter (January-March)', 'annotations': {'months': 'Jan-Mar'}},
85
+ "Q2": {'description': 'Second quarter (April-June)', 'annotations': {'months': 'Apr-Jun'}},
86
+ "Q3": {'description': 'Third quarter (July-September)', 'annotations': {'months': 'Jul-Sep'}},
87
+ "Q4": {'description': 'Fourth quarter (October-December)', 'annotations': {'months': 'Oct-Dec'}},
88
+ }
89
+
90
+ class Season(RichEnum):
91
+ """
92
+ Seasons of the year (Northern Hemisphere)
93
+ """
94
+ # Enum members
95
+ SPRING = "SPRING"
96
+ SUMMER = "SUMMER"
97
+ AUTUMN = "AUTUMN"
98
+ WINTER = "WINTER"
99
+
100
+ # Set metadata after class creation
101
+ Season._metadata = {
102
+ "SPRING": {'description': 'Spring season', 'meaning': 'NCIT:C94731', 'annotations': {'months': 'Mar-May', 'astronomical_start': '~Mar 20'}},
103
+ "SUMMER": {'description': 'Summer season', 'meaning': 'NCIT:C94732', 'annotations': {'months': 'Jun-Aug', 'astronomical_start': '~Jun 21'}},
104
+ "AUTUMN": {'description': 'Autumn/Fall season', 'meaning': 'NCIT:C94733', 'annotations': {'months': 'Sep-Nov', 'astronomical_start': '~Sep 22', 'aliases': 'Fall'}},
105
+ "WINTER": {'description': 'Winter season', 'meaning': 'NCIT:C94730', 'annotations': {'months': 'Dec-Feb', 'astronomical_start': '~Dec 21'}},
106
+ }
107
+
108
+ class TimePeriod(RichEnum):
109
+ """
110
+ Common time periods and intervals
111
+ """
112
+ # Enum members
113
+ HOURLY = "HOURLY"
114
+ DAILY = "DAILY"
115
+ WEEKLY = "WEEKLY"
116
+ BIWEEKLY = "BIWEEKLY"
117
+ MONTHLY = "MONTHLY"
118
+ QUARTERLY = "QUARTERLY"
119
+ SEMIANNUALLY = "SEMIANNUALLY"
120
+ ANNUALLY = "ANNUALLY"
121
+ BIANNUALLY = "BIANNUALLY"
122
+
123
+ # Set metadata after class creation
124
+ TimePeriod._metadata = {
125
+ "HOURLY": {'description': 'Every hour', 'annotations': {'ucum': 'h'}},
126
+ "DAILY": {'description': 'Every day', 'annotations': {'ucum': 'd'}},
127
+ "WEEKLY": {'description': 'Every week', 'annotations': {'ucum': 'wk'}},
128
+ "BIWEEKLY": {'description': 'Every two weeks', 'annotations': {'ucum': '2.wk'}},
129
+ "MONTHLY": {'description': 'Every month', 'annotations': {'ucum': 'mo'}},
130
+ "QUARTERLY": {'description': 'Every quarter (3 months)', 'annotations': {'ucum': '3.mo'}},
131
+ "SEMIANNUALLY": {'description': 'Every six months', 'annotations': {'ucum': '6.mo'}},
132
+ "ANNUALLY": {'description': 'Every year', 'annotations': {'ucum': 'a'}},
133
+ "BIANNUALLY": {'description': 'Every two years', 'annotations': {'ucum': '2.a'}},
134
+ }
135
+
136
+ class TimeOfDay(RichEnum):
137
+ """
138
+ Common times of day
139
+ """
140
+ # Enum members
141
+ DAWN = "DAWN"
142
+ MORNING = "MORNING"
143
+ NOON = "NOON"
144
+ AFTERNOON = "AFTERNOON"
145
+ EVENING = "EVENING"
146
+ NIGHT = "NIGHT"
147
+ MIDNIGHT = "MIDNIGHT"
148
+
149
+ # Set metadata after class creation
150
+ TimeOfDay._metadata = {
151
+ "DAWN": {'description': 'Dawn (first light)', 'annotations': {'typical_time': '05:00-06:00'}},
152
+ "MORNING": {'description': 'Morning', 'annotations': {'typical_time': '06:00-12:00'}},
153
+ "NOON": {'description': 'Noon/Midday', 'annotations': {'typical_time': 720}},
154
+ "AFTERNOON": {'description': 'Afternoon', 'annotations': {'typical_time': '12:00-18:00'}},
155
+ "EVENING": {'description': 'Evening', 'annotations': {'typical_time': '18:00-21:00'}},
156
+ "NIGHT": {'description': 'Night', 'annotations': {'typical_time': '21:00-05:00'}},
157
+ "MIDNIGHT": {'description': 'Midnight', 'annotations': {'typical_time': '00:00'}},
158
+ }
159
+
160
+ class BusinessTimeFrame(RichEnum):
161
+ """
162
+ Common business and financial time frames
163
+ """
164
+ # Enum members
165
+ REAL_TIME = "REAL_TIME"
166
+ INTRADAY = "INTRADAY"
167
+ T_PLUS_1 = "T_PLUS_1"
168
+ T_PLUS_2 = "T_PLUS_2"
169
+ T_PLUS_3 = "T_PLUS_3"
170
+ END_OF_DAY = "END_OF_DAY"
171
+ END_OF_WEEK = "END_OF_WEEK"
172
+ END_OF_MONTH = "END_OF_MONTH"
173
+ END_OF_QUARTER = "END_OF_QUARTER"
174
+ END_OF_YEAR = "END_OF_YEAR"
175
+ YEAR_TO_DATE = "YEAR_TO_DATE"
176
+ MONTH_TO_DATE = "MONTH_TO_DATE"
177
+ QUARTER_TO_DATE = "QUARTER_TO_DATE"
178
+
179
+ # Set metadata after class creation
180
+ BusinessTimeFrame._metadata = {
181
+ "REAL_TIME": {'description': 'Real-time/instantaneous'},
182
+ "INTRADAY": {'description': 'Within the same day'},
183
+ "T_PLUS_1": {'description': 'Trade date plus one business day', 'annotations': {'abbreviation': 'T+1'}},
184
+ "T_PLUS_2": {'description': 'Trade date plus two business days', 'annotations': {'abbreviation': 'T+2'}},
185
+ "T_PLUS_3": {'description': 'Trade date plus three business days', 'annotations': {'abbreviation': 'T+3'}},
186
+ "END_OF_DAY": {'description': 'End of business day', 'annotations': {'abbreviation': 'EOD'}},
187
+ "END_OF_WEEK": {'description': 'End of business week', 'annotations': {'abbreviation': 'EOW'}},
188
+ "END_OF_MONTH": {'description': 'End of calendar month', 'annotations': {'abbreviation': 'EOM'}},
189
+ "END_OF_QUARTER": {'description': 'End of calendar quarter', 'annotations': {'abbreviation': 'EOQ'}},
190
+ "END_OF_YEAR": {'description': 'End of calendar year', 'annotations': {'abbreviation': 'EOY'}},
191
+ "YEAR_TO_DATE": {'description': 'From beginning of year to current date', 'annotations': {'abbreviation': 'YTD'}},
192
+ "MONTH_TO_DATE": {'description': 'From beginning of month to current date', 'annotations': {'abbreviation': 'MTD'}},
193
+ "QUARTER_TO_DATE": {'description': 'From beginning of quarter to current date', 'annotations': {'abbreviation': 'QTD'}},
194
+ }
195
+
196
+ class GeologicalEra(RichEnum):
197
+ """
198
+ Major geological eras
199
+ """
200
+ # Enum members
201
+ PRECAMBRIAN = "PRECAMBRIAN"
202
+ PALEOZOIC = "PALEOZOIC"
203
+ MESOZOIC = "MESOZOIC"
204
+ CENOZOIC = "CENOZOIC"
205
+
206
+ # Set metadata after class creation
207
+ GeologicalEra._metadata = {
208
+ "PRECAMBRIAN": {'description': 'Precambrian (4.6 billion - 541 million years ago)'},
209
+ "PALEOZOIC": {'description': 'Paleozoic Era (541 - 252 million years ago)'},
210
+ "MESOZOIC": {'description': 'Mesozoic Era (252 - 66 million years ago)'},
211
+ "CENOZOIC": {'description': 'Cenozoic Era (66 million years ago - present)'},
212
+ }
213
+
214
+ class HistoricalPeriod(RichEnum):
215
+ """
216
+ Major historical periods
217
+ """
218
+ # Enum members
219
+ PREHISTORIC = "PREHISTORIC"
220
+ ANCIENT = "ANCIENT"
221
+ CLASSICAL_ANTIQUITY = "CLASSICAL_ANTIQUITY"
222
+ MIDDLE_AGES = "MIDDLE_AGES"
223
+ RENAISSANCE = "RENAISSANCE"
224
+ EARLY_MODERN = "EARLY_MODERN"
225
+ INDUSTRIAL_AGE = "INDUSTRIAL_AGE"
226
+ MODERN = "MODERN"
227
+ CONTEMPORARY = "CONTEMPORARY"
228
+ DIGITAL_AGE = "DIGITAL_AGE"
229
+
230
+ # Set metadata after class creation
231
+ HistoricalPeriod._metadata = {
232
+ "PREHISTORIC": {'description': 'Before written records'},
233
+ "ANCIENT": {'description': 'Ancient history (3000 BCE - 500 CE)'},
234
+ "CLASSICAL_ANTIQUITY": {'description': 'Classical antiquity (8th century BCE - 6th century CE)'},
235
+ "MIDDLE_AGES": {'description': 'Middle Ages (5th - 15th century)'},
236
+ "RENAISSANCE": {'description': 'Renaissance (14th - 17th century)'},
237
+ "EARLY_MODERN": {'description': 'Early modern period (15th - 18th century)'},
238
+ "INDUSTRIAL_AGE": {'description': 'Industrial age (1760 - 1840)'},
239
+ "MODERN": {'description': 'Modern era (19th century - mid 20th century)'},
240
+ "CONTEMPORARY": {'description': 'Contemporary period (mid 20th century - present)'},
241
+ "DIGITAL_AGE": {'description': 'Digital/Information age (1950s - present)'},
242
+ }
243
+
244
+ __all__ = [
245
+ "DayOfWeek",
246
+ "Month",
247
+ "Quarter",
248
+ "Season",
249
+ "TimePeriod",
250
+ "TimeOfDay",
251
+ "BusinessTimeFrame",
252
+ "GeologicalEra",
253
+ "HistoricalPeriod",
254
+ ]
@@ -0,0 +1 @@
1
+ """Auto-generated package."""