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,227 @@
1
+ """
2
+ MIME Types Value Sets
3
+
4
+ Common MIME (Multipurpose Internet Mail Extensions) types for various file formats and content types used in web and application development.
5
+
6
+ Generated from: computing/mime_types.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 MimeType(RichEnum):
15
+ """
16
+ Common MIME types for various file formats
17
+ """
18
+ # Enum members
19
+ APPLICATION_JSON = "APPLICATION_JSON"
20
+ APPLICATION_XML = "APPLICATION_XML"
21
+ APPLICATION_PDF = "APPLICATION_PDF"
22
+ APPLICATION_ZIP = "APPLICATION_ZIP"
23
+ APPLICATION_GZIP = "APPLICATION_GZIP"
24
+ APPLICATION_OCTET_STREAM = "APPLICATION_OCTET_STREAM"
25
+ APPLICATION_X_WWW_FORM_URLENCODED = "APPLICATION_X_WWW_FORM_URLENCODED"
26
+ APPLICATION_VND_MS_EXCEL = "APPLICATION_VND_MS_EXCEL"
27
+ APPLICATION_VND_OPENXMLFORMATS_SPREADSHEET = "APPLICATION_VND_OPENXMLFORMATS_SPREADSHEET"
28
+ APPLICATION_VND_MS_POWERPOINT = "APPLICATION_VND_MS_POWERPOINT"
29
+ APPLICATION_MSWORD = "APPLICATION_MSWORD"
30
+ APPLICATION_VND_OPENXMLFORMATS_DOCUMENT = "APPLICATION_VND_OPENXMLFORMATS_DOCUMENT"
31
+ APPLICATION_JAVASCRIPT = "APPLICATION_JAVASCRIPT"
32
+ APPLICATION_TYPESCRIPT = "APPLICATION_TYPESCRIPT"
33
+ APPLICATION_SQL = "APPLICATION_SQL"
34
+ APPLICATION_GRAPHQL = "APPLICATION_GRAPHQL"
35
+ APPLICATION_LD_JSON = "APPLICATION_LD_JSON"
36
+ APPLICATION_WASM = "APPLICATION_WASM"
37
+ TEXT_PLAIN = "TEXT_PLAIN"
38
+ TEXT_HTML = "TEXT_HTML"
39
+ TEXT_CSS = "TEXT_CSS"
40
+ TEXT_CSV = "TEXT_CSV"
41
+ TEXT_MARKDOWN = "TEXT_MARKDOWN"
42
+ TEXT_YAML = "TEXT_YAML"
43
+ TEXT_X_PYTHON = "TEXT_X_PYTHON"
44
+ TEXT_X_JAVA = "TEXT_X_JAVA"
45
+ TEXT_X_C = "TEXT_X_C"
46
+ TEXT_X_CPP = "TEXT_X_CPP"
47
+ TEXT_X_CSHARP = "TEXT_X_CSHARP"
48
+ TEXT_X_GO = "TEXT_X_GO"
49
+ TEXT_X_RUST = "TEXT_X_RUST"
50
+ TEXT_X_RUBY = "TEXT_X_RUBY"
51
+ TEXT_X_SHELLSCRIPT = "TEXT_X_SHELLSCRIPT"
52
+ IMAGE_JPEG = "IMAGE_JPEG"
53
+ IMAGE_PNG = "IMAGE_PNG"
54
+ IMAGE_GIF = "IMAGE_GIF"
55
+ IMAGE_SVG_XML = "IMAGE_SVG_XML"
56
+ IMAGE_WEBP = "IMAGE_WEBP"
57
+ IMAGE_BMP = "IMAGE_BMP"
58
+ IMAGE_ICO = "IMAGE_ICO"
59
+ IMAGE_TIFF = "IMAGE_TIFF"
60
+ IMAGE_AVIF = "IMAGE_AVIF"
61
+ AUDIO_MPEG = "AUDIO_MPEG"
62
+ AUDIO_WAV = "AUDIO_WAV"
63
+ AUDIO_OGG = "AUDIO_OGG"
64
+ AUDIO_WEBM = "AUDIO_WEBM"
65
+ AUDIO_AAC = "AUDIO_AAC"
66
+ VIDEO_MP4 = "VIDEO_MP4"
67
+ VIDEO_MPEG = "VIDEO_MPEG"
68
+ VIDEO_WEBM = "VIDEO_WEBM"
69
+ VIDEO_OGG = "VIDEO_OGG"
70
+ VIDEO_QUICKTIME = "VIDEO_QUICKTIME"
71
+ VIDEO_AVI = "VIDEO_AVI"
72
+ FONT_WOFF = "FONT_WOFF"
73
+ FONT_WOFF2 = "FONT_WOFF2"
74
+ FONT_TTF = "FONT_TTF"
75
+ FONT_OTF = "FONT_OTF"
76
+ MULTIPART_FORM_DATA = "MULTIPART_FORM_DATA"
77
+ MULTIPART_MIXED = "MULTIPART_MIXED"
78
+
79
+ # Set metadata after class creation
80
+ MimeType._metadata = {
81
+ "APPLICATION_JSON": {'description': 'JSON format', 'meaning': 'iana:application/json'},
82
+ "APPLICATION_XML": {'description': 'XML format', 'meaning': 'iana:application/xml'},
83
+ "APPLICATION_PDF": {'description': 'Adobe Portable Document Format', 'meaning': 'iana:application/pdf'},
84
+ "APPLICATION_ZIP": {'description': 'ZIP archive', 'meaning': 'iana:application/zip'},
85
+ "APPLICATION_GZIP": {'description': 'GZIP compressed archive', 'meaning': 'iana:application/gzip'},
86
+ "APPLICATION_OCTET_STREAM": {'description': 'Binary data', 'meaning': 'iana:application/octet-stream'},
87
+ "APPLICATION_X_WWW_FORM_URLENCODED": {'description': 'Form data encoded', 'meaning': 'iana:application/x-www-form-urlencoded'},
88
+ "APPLICATION_VND_MS_EXCEL": {'description': 'Microsoft Excel', 'meaning': 'iana:application/vnd.ms-excel'},
89
+ "APPLICATION_VND_OPENXMLFORMATS_SPREADSHEET": {'description': 'Microsoft Excel (OpenXML)', 'meaning': 'iana:application/vnd.openxmlformats-officedocument.spreadsheetml.sheet'},
90
+ "APPLICATION_VND_MS_POWERPOINT": {'description': 'Microsoft PowerPoint', 'meaning': 'iana:application/vnd.ms-powerpoint'},
91
+ "APPLICATION_MSWORD": {'description': 'Microsoft Word', 'meaning': 'iana:application/msword'},
92
+ "APPLICATION_VND_OPENXMLFORMATS_DOCUMENT": {'description': 'Microsoft Word (OpenXML)', 'meaning': 'iana:application/vnd.openxmlformats-officedocument.wordprocessingml.document'},
93
+ "APPLICATION_JAVASCRIPT": {'description': 'JavaScript', 'meaning': 'iana:application/javascript'},
94
+ "APPLICATION_TYPESCRIPT": {'description': 'TypeScript source code', 'meaning': 'iana:application/typescript'},
95
+ "APPLICATION_SQL": {'description': 'SQL database format', 'meaning': 'iana:application/sql'},
96
+ "APPLICATION_GRAPHQL": {'description': 'GraphQL query language', 'meaning': 'iana:application/graphql'},
97
+ "APPLICATION_LD_JSON": {'description': 'JSON-LD format', 'meaning': 'iana:application/ld+json'},
98
+ "APPLICATION_WASM": {'description': 'WebAssembly binary format', 'meaning': 'iana:application/wasm'},
99
+ "TEXT_PLAIN": {'description': 'Plain text', 'meaning': 'iana:text/plain'},
100
+ "TEXT_HTML": {'description': 'HTML document', 'meaning': 'iana:text/html'},
101
+ "TEXT_CSS": {'description': 'Cascading Style Sheets', 'meaning': 'iana:text/css'},
102
+ "TEXT_CSV": {'description': 'Comma-separated values', 'meaning': 'iana:text/csv'},
103
+ "TEXT_MARKDOWN": {'description': 'Markdown format', 'meaning': 'iana:text/markdown'},
104
+ "TEXT_YAML": {'description': 'YAML format', 'meaning': 'iana:text/yaml'},
105
+ "TEXT_X_PYTHON": {'description': 'Python source code', 'meaning': 'iana:text/x-python'},
106
+ "TEXT_X_JAVA": {'description': 'Java source code', 'meaning': 'iana:text/x-java-source'},
107
+ "TEXT_X_C": {'description': 'C source code', 'meaning': 'iana:text/x-c'},
108
+ "TEXT_X_CPP": {'description': 'C++ source code', 'meaning': 'iana:text/x-c++'},
109
+ "TEXT_X_CSHARP": {'description': 'C# source code', 'meaning': 'iana:text/x-csharp'},
110
+ "TEXT_X_GO": {'description': 'Go source code', 'meaning': 'iana:text/x-go'},
111
+ "TEXT_X_RUST": {'description': 'Rust source code', 'meaning': 'iana:text/x-rust'},
112
+ "TEXT_X_RUBY": {'description': 'Ruby source code', 'meaning': 'iana:text/x-ruby'},
113
+ "TEXT_X_SHELLSCRIPT": {'description': 'Shell script', 'meaning': 'iana:text/x-shellscript'},
114
+ "IMAGE_JPEG": {'description': 'JPEG image', 'meaning': 'iana:image/jpeg'},
115
+ "IMAGE_PNG": {'description': 'PNG image', 'meaning': 'iana:image/png'},
116
+ "IMAGE_GIF": {'description': 'GIF image', 'meaning': 'iana:image/gif'},
117
+ "IMAGE_SVG_XML": {'description': 'SVG vector image', 'meaning': 'iana:image/svg+xml'},
118
+ "IMAGE_WEBP": {'description': 'WebP image', 'meaning': 'iana:image/webp'},
119
+ "IMAGE_BMP": {'description': 'Bitmap image', 'meaning': 'iana:image/bmp'},
120
+ "IMAGE_ICO": {'description': 'Icon format', 'meaning': 'iana:image/vnd.microsoft.icon'},
121
+ "IMAGE_TIFF": {'description': 'TIFF image', 'meaning': 'iana:image/tiff'},
122
+ "IMAGE_AVIF": {'description': 'AVIF image format', 'meaning': 'iana:image/avif'},
123
+ "AUDIO_MPEG": {'description': 'MP3 audio', 'meaning': 'iana:audio/mpeg'},
124
+ "AUDIO_WAV": {'description': 'WAV audio', 'meaning': 'iana:audio/wav'},
125
+ "AUDIO_OGG": {'description': 'OGG audio', 'meaning': 'iana:audio/ogg'},
126
+ "AUDIO_WEBM": {'description': 'WebM audio', 'meaning': 'iana:audio/webm'},
127
+ "AUDIO_AAC": {'description': 'AAC audio', 'meaning': 'iana:audio/aac'},
128
+ "VIDEO_MP4": {'description': 'MP4 video', 'meaning': 'iana:video/mp4'},
129
+ "VIDEO_MPEG": {'description': 'MPEG video', 'meaning': 'iana:video/mpeg'},
130
+ "VIDEO_WEBM": {'description': 'WebM video', 'meaning': 'iana:video/webm'},
131
+ "VIDEO_OGG": {'description': 'OGG video', 'meaning': 'iana:video/ogg'},
132
+ "VIDEO_QUICKTIME": {'description': 'QuickTime video', 'meaning': 'iana:video/quicktime'},
133
+ "VIDEO_AVI": {'description': 'AVI video', 'meaning': 'iana:video/x-msvideo'},
134
+ "FONT_WOFF": {'description': 'Web Open Font Format', 'meaning': 'iana:font/woff'},
135
+ "FONT_WOFF2": {'description': 'Web Open Font Format 2', 'meaning': 'iana:font/woff2'},
136
+ "FONT_TTF": {'description': 'TrueType Font', 'meaning': 'iana:font/ttf'},
137
+ "FONT_OTF": {'description': 'OpenType Font', 'meaning': 'iana:font/otf'},
138
+ "MULTIPART_FORM_DATA": {'description': 'Form data with file upload', 'meaning': 'iana:multipart/form-data'},
139
+ "MULTIPART_MIXED": {'description': 'Mixed multipart message', 'meaning': 'iana:multipart/mixed'},
140
+ }
141
+
142
+ class MimeTypeCategory(RichEnum):
143
+ """
144
+ Categories of MIME types
145
+ """
146
+ # Enum members
147
+ APPLICATION = "APPLICATION"
148
+ TEXT = "TEXT"
149
+ IMAGE = "IMAGE"
150
+ AUDIO = "AUDIO"
151
+ VIDEO = "VIDEO"
152
+ FONT = "FONT"
153
+ MULTIPART = "MULTIPART"
154
+ MESSAGE = "MESSAGE"
155
+ MODEL = "MODEL"
156
+
157
+ # Set metadata after class creation
158
+ MimeTypeCategory._metadata = {
159
+ "APPLICATION": {'description': 'Application data'},
160
+ "TEXT": {'description': 'Text documents'},
161
+ "IMAGE": {'description': 'Image files'},
162
+ "AUDIO": {'description': 'Audio files'},
163
+ "VIDEO": {'description': 'Video files'},
164
+ "FONT": {'description': 'Font files'},
165
+ "MULTIPART": {'description': 'Multipart messages'},
166
+ "MESSAGE": {'description': 'Message formats'},
167
+ "MODEL": {'description': '3D models and similar'},
168
+ }
169
+
170
+ class TextCharset(RichEnum):
171
+ """
172
+ Character encodings for text content
173
+ """
174
+ # Enum members
175
+ UTF_8 = "UTF_8"
176
+ UTF_16 = "UTF_16"
177
+ UTF_32 = "UTF_32"
178
+ ASCII = "ASCII"
179
+ ISO_8859_1 = "ISO_8859_1"
180
+ ISO_8859_2 = "ISO_8859_2"
181
+ WINDOWS_1252 = "WINDOWS_1252"
182
+ GB2312 = "GB2312"
183
+ SHIFT_JIS = "SHIFT_JIS"
184
+ EUC_KR = "EUC_KR"
185
+ BIG5 = "BIG5"
186
+
187
+ # Set metadata after class creation
188
+ TextCharset._metadata = {
189
+ "UTF_8": {'description': 'UTF-8 Unicode encoding'},
190
+ "UTF_16": {'description': 'UTF-16 Unicode encoding'},
191
+ "UTF_32": {'description': 'UTF-32 Unicode encoding'},
192
+ "ASCII": {'description': 'ASCII encoding'},
193
+ "ISO_8859_1": {'description': 'ISO-8859-1 (Latin-1) encoding'},
194
+ "ISO_8859_2": {'description': 'ISO-8859-2 (Latin-2) encoding'},
195
+ "WINDOWS_1252": {'description': 'Windows-1252 encoding'},
196
+ "GB2312": {'description': 'Simplified Chinese encoding'},
197
+ "SHIFT_JIS": {'description': 'Japanese encoding'},
198
+ "EUC_KR": {'description': 'Korean encoding'},
199
+ "BIG5": {'description': 'Traditional Chinese encoding'},
200
+ }
201
+
202
+ class CompressionType(RichEnum):
203
+ """
204
+ Compression types used with Content-Encoding
205
+ """
206
+ # Enum members
207
+ GZIP = "GZIP"
208
+ DEFLATE = "DEFLATE"
209
+ BR = "BR"
210
+ COMPRESS = "COMPRESS"
211
+ IDENTITY = "IDENTITY"
212
+
213
+ # Set metadata after class creation
214
+ CompressionType._metadata = {
215
+ "GZIP": {'description': 'GZIP compression'},
216
+ "DEFLATE": {'description': 'DEFLATE compression'},
217
+ "BR": {'description': 'Brotli compression'},
218
+ "COMPRESS": {'description': 'Unix compress'},
219
+ "IDENTITY": {'description': 'No compression'},
220
+ }
221
+
222
+ __all__ = [
223
+ "MimeType",
224
+ "MimeTypeCategory",
225
+ "TextCharset",
226
+ "CompressionType",
227
+ ]
@@ -0,0 +1,168 @@
1
+ """
2
+ Confidence Level Value Sets
3
+
4
+ Value sets for expressing levels of confidence, certainty, and evidence strength in various contexts including research, clinical, and data quality assessments.
5
+
6
+ Generated from: confidence_levels.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 RelativeTimeEnum(RichEnum):
15
+ # Enum members
16
+ BEFORE = "BEFORE"
17
+ AFTER = "AFTER"
18
+ AT_SAME_TIME_AS = "AT_SAME_TIME_AS"
19
+
20
+ # Set metadata after class creation
21
+ RelativeTimeEnum._metadata = {
22
+ }
23
+
24
+ class PresenceEnum(RichEnum):
25
+ # Enum members
26
+ PRESENT = "PRESENT"
27
+ ABSENT = "ABSENT"
28
+ BELOW_DETECTION_LIMIT = "BELOW_DETECTION_LIMIT"
29
+ ABOVE_DETECTION_LIMIT = "ABOVE_DETECTION_LIMIT"
30
+
31
+ # Set metadata after class creation
32
+ PresenceEnum._metadata = {
33
+ "PRESENT": {'description': 'The entity is present'},
34
+ "ABSENT": {'description': 'The entity is absent'},
35
+ "BELOW_DETECTION_LIMIT": {'description': 'The entity is below the detection limit'},
36
+ "ABOVE_DETECTION_LIMIT": {'description': 'The entity is above the detection limit'},
37
+ }
38
+
39
+ class ConfidenceLevel(RichEnum):
40
+ """
41
+ Standard confidence levels based on NCIT (NCI Thesaurus) definitions. Used to express the degree of confidence in evidence, data, or assertions.
42
+ """
43
+ # Enum members
44
+ HIGH_CONFIDENCE = "HIGH_CONFIDENCE"
45
+ MODERATE_CONFIDENCE = "MODERATE_CONFIDENCE"
46
+ LOW_CONFIDENCE = "LOW_CONFIDENCE"
47
+ VERY_LOW_OR_NO_CONFIDENCE = "VERY_LOW_OR_NO_CONFIDENCE"
48
+
49
+ # Set metadata after class creation
50
+ ConfidenceLevel._metadata = {
51
+ "HIGH_CONFIDENCE": {'description': 'A response indicating a high level of confidence.', 'meaning': 'NCIT:C129479'},
52
+ "MODERATE_CONFIDENCE": {'description': 'A response indicating a moderate level of confidence.', 'meaning': 'NCIT:C129480'},
53
+ "LOW_CONFIDENCE": {'description': 'A response indicating a low level of confidence.', 'meaning': 'NCIT:C129481'},
54
+ "VERY_LOW_OR_NO_CONFIDENCE": {'description': 'A response indicating a very low level of confidence or an absence.', 'meaning': 'NCIT:C129482', 'aliases': ['Very Low Confidence or No Confidence']},
55
+ }
56
+
57
+ class CIOConfidenceLevel(RichEnum):
58
+ """
59
+ Confidence levels from the Confidence Information Ontology (CIO), representing different levels of trust in evidence.
60
+ """
61
+ # Enum members
62
+ HIGH = "HIGH"
63
+ MEDIUM = "MEDIUM"
64
+ LOW = "LOW"
65
+
66
+ # Set metadata after class creation
67
+ CIOConfidenceLevel._metadata = {
68
+ "HIGH": {'description': 'A confidence level representing a high trust in an evidence.', 'meaning': 'CIO:0000029', 'aliases': ['high confidence level']},
69
+ "MEDIUM": {'description': 'A confidence level representing a moderate trust in an evidence.', 'meaning': 'CIO:0000030', 'aliases': ['medium confidence level']},
70
+ "LOW": {'description': 'A confidence level representing an absence of trust in an evidence.', 'meaning': 'CIO:0000031', 'aliases': ['low confidence level']},
71
+ }
72
+
73
+ class OBCSCertaintyLevel(RichEnum):
74
+ """
75
+ Certainty levels from the Ontology of Biological and Clinical Statistics (OBCS). These terms are used to express degrees of certainty in statistical and clinical contexts.
76
+ """
77
+ # Enum members
78
+ DEFINITIVE = "DEFINITIVE"
79
+ HIGH = "HIGH"
80
+ INTERMEDIATE = "INTERMEDIATE"
81
+
82
+ # Set metadata after class creation
83
+ OBCSCertaintyLevel._metadata = {
84
+ "DEFINITIVE": {'description': 'Definitive certainty level - the highest degree of certainty.', 'meaning': 'OBCS:0000368', 'aliases': ['definitive certainty level']},
85
+ "HIGH": {'description': 'High certainty level - strong confidence but not absolute.', 'meaning': 'OBCS:0000369', 'aliases': ['high certainty level']},
86
+ "INTERMEDIATE": {'description': 'Intermediate certainty level - moderate degree of certainty.', 'meaning': 'OBCS:0000370', 'aliases': ['intermediate certainty level']},
87
+ }
88
+
89
+ class IPCCLikelihoodScale(RichEnum):
90
+ """
91
+ IPCC (Intergovernmental Panel on Climate Change) standardized likelihood scale used to communicate the assessed probability of an outcome or result. Widely used in climate science and environmental assessments.
92
+ """
93
+ # Enum members
94
+ VIRTUALLY_CERTAIN = "VIRTUALLY_CERTAIN"
95
+ EXTREMELY_LIKELY = "EXTREMELY_LIKELY"
96
+ VERY_LIKELY = "VERY_LIKELY"
97
+ LIKELY = "LIKELY"
98
+ MORE_LIKELY_THAN_NOT = "MORE_LIKELY_THAN_NOT"
99
+ ABOUT_AS_LIKELY_AS_NOT = "ABOUT_AS_LIKELY_AS_NOT"
100
+ UNLIKELY = "UNLIKELY"
101
+ VERY_UNLIKELY = "VERY_UNLIKELY"
102
+ EXTREMELY_UNLIKELY = "EXTREMELY_UNLIKELY"
103
+ EXCEPTIONALLY_UNLIKELY = "EXCEPTIONALLY_UNLIKELY"
104
+
105
+ # Set metadata after class creation
106
+ IPCCLikelihoodScale._metadata = {
107
+ "VIRTUALLY_CERTAIN": {'description': '99-100% probability of occurrence/truth.', 'annotations': {'probability_range': '0.99-1.00'}},
108
+ "EXTREMELY_LIKELY": {'description': '95-100% probability of occurrence/truth.', 'annotations': {'probability_range': '0.95-1.00'}},
109
+ "VERY_LIKELY": {'description': '90-100% probability of occurrence/truth.', 'annotations': {'probability_range': '0.90-1.00'}},
110
+ "LIKELY": {'description': '66-100% probability of occurrence/truth.', 'annotations': {'probability_range': '0.66-1.00'}},
111
+ "MORE_LIKELY_THAN_NOT": {'description': 'Greater than 50% to 100% probability of occurrence/truth.', 'annotations': {'probability_range': '0.50-1.00'}},
112
+ "ABOUT_AS_LIKELY_AS_NOT": {'description': '33-66% probability of occurrence/truth.', 'annotations': {'probability_range': '0.33-0.66'}},
113
+ "UNLIKELY": {'description': '0-33% probability of occurrence/truth.', 'annotations': {'probability_range': '0.00-0.33'}},
114
+ "VERY_UNLIKELY": {'description': '0-10% probability of occurrence/truth.', 'annotations': {'probability_range': '0.00-0.10'}},
115
+ "EXTREMELY_UNLIKELY": {'description': '0-5% probability of occurrence/truth.', 'annotations': {'probability_range': '0.00-0.05'}},
116
+ "EXCEPTIONALLY_UNLIKELY": {'description': '0-1% probability of occurrence/truth.', 'annotations': {'probability_range': '0.00-0.01'}},
117
+ }
118
+
119
+ class IPCCConfidenceLevel(RichEnum):
120
+ """
121
+ IPCC confidence qualifiers used to express the degree of confidence in a finding based on the type, amount, quality, and consistency of evidence and the degree of agreement.
122
+ """
123
+ # Enum members
124
+ VERY_HIGH_CONFIDENCE = "VERY_HIGH_CONFIDENCE"
125
+ HIGH_CONFIDENCE = "HIGH_CONFIDENCE"
126
+ MEDIUM_CONFIDENCE = "MEDIUM_CONFIDENCE"
127
+ LOW_CONFIDENCE = "LOW_CONFIDENCE"
128
+ VERY_LOW_CONFIDENCE = "VERY_LOW_CONFIDENCE"
129
+
130
+ # Set metadata after class creation
131
+ IPCCConfidenceLevel._metadata = {
132
+ "VERY_HIGH_CONFIDENCE": {'description': 'Very high confidence in the validity of a finding.'},
133
+ "HIGH_CONFIDENCE": {'description': 'High confidence in the validity of a finding.'},
134
+ "MEDIUM_CONFIDENCE": {'description': 'Medium confidence in the validity of a finding.'},
135
+ "LOW_CONFIDENCE": {'description': 'Low confidence in the validity of a finding.'},
136
+ "VERY_LOW_CONFIDENCE": {'description': 'Very low confidence in the validity of a finding.'},
137
+ }
138
+
139
+ class NCITFivePointConfidenceScale(RichEnum):
140
+ """
141
+ NCIT 5-point subjective confidence scale ranging from "Not at all confident" (1) to "Very confident" (5). Used in clinical assessments and questionnaires.
142
+ """
143
+ # Enum members
144
+ NOT_AT_ALL_CONFIDENT = "NOT_AT_ALL_CONFIDENT"
145
+ SLIGHTLY_CONFIDENT = "SLIGHTLY_CONFIDENT"
146
+ SOMEWHAT_CONFIDENT = "SOMEWHAT_CONFIDENT"
147
+ MODERATELY_CONFIDENT = "MODERATELY_CONFIDENT"
148
+ VERY_CONFIDENT = "VERY_CONFIDENT"
149
+
150
+ # Set metadata after class creation
151
+ NCITFivePointConfidenceScale._metadata = {
152
+ "NOT_AT_ALL_CONFIDENT": {'description': 'A subjective score of 1 - Not at all confident.', 'meaning': 'NCIT:C153491', 'aliases': ['Confidence 1']},
153
+ "SLIGHTLY_CONFIDENT": {'description': 'A subjective score of 2 - Slightly confident.', 'meaning': 'NCIT:C153492', 'aliases': ['Confidence 2']},
154
+ "SOMEWHAT_CONFIDENT": {'description': 'A subjective score of 3 - Somewhat confident.', 'meaning': 'NCIT:C153493', 'aliases': ['Confidence 3']},
155
+ "MODERATELY_CONFIDENT": {'description': 'A subjective score of 4 - Moderately confident.', 'meaning': 'NCIT:C153494', 'aliases': ['Confidence 4']},
156
+ "VERY_CONFIDENT": {'description': 'A subjective score of 5 - Very confident.', 'meaning': 'NCIT:C153495', 'aliases': ['Confidence 5']},
157
+ }
158
+
159
+ __all__ = [
160
+ "RelativeTimeEnum",
161
+ "PresenceEnum",
162
+ "ConfidenceLevel",
163
+ "CIOConfidenceLevel",
164
+ "OBCSCertaintyLevel",
165
+ "IPCCLikelihoodScale",
166
+ "IPCCConfidenceLevel",
167
+ "NCITFivePointConfidenceScale",
168
+ ]
@@ -0,0 +1,30 @@
1
+ """
2
+ Contributor Value Sets
3
+
4
+ Value sets related to contributors and their roles
5
+
6
+ Generated from: contributor.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 ContributorType(RichEnum):
15
+ """
16
+ The type of contributor being represented.
17
+ """
18
+ # Enum members
19
+ PERSON = "PERSON"
20
+ ORGANIZATION = "ORGANIZATION"
21
+
22
+ # Set metadata after class creation
23
+ ContributorType._metadata = {
24
+ "PERSON": {'description': 'A person.', 'meaning': 'NCIT:C25190'},
25
+ "ORGANIZATION": {'description': 'An organization.', 'meaning': 'NCIT:C41206', 'aliases': ['Institution']},
26
+ }
27
+
28
+ __all__ = [
29
+ "ContributorType",
30
+ ]
@@ -0,0 +1,42 @@
1
+ """
2
+ comet-core
3
+
4
+ Common Observational Model: Core
5
+
6
+ Generated from: core.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 RelativeTimeEnum(RichEnum):
15
+ # Enum members
16
+ BEFORE = "BEFORE"
17
+ AFTER = "AFTER"
18
+ AT_SAME_TIME_AS = "AT_SAME_TIME_AS"
19
+
20
+ # Set metadata after class creation
21
+ RelativeTimeEnum._metadata = {
22
+ }
23
+
24
+ class PresenceEnum(RichEnum):
25
+ # Enum members
26
+ PRESENT = "PRESENT"
27
+ ABSENT = "ABSENT"
28
+ BELOW_DETECTION_LIMIT = "BELOW_DETECTION_LIMIT"
29
+ ABOVE_DETECTION_LIMIT = "ABOVE_DETECTION_LIMIT"
30
+
31
+ # Set metadata after class creation
32
+ PresenceEnum._metadata = {
33
+ "PRESENT": {'description': 'The entity is present'},
34
+ "ABSENT": {'description': 'The entity is absent'},
35
+ "BELOW_DETECTION_LIMIT": {'description': 'The entity is below the detection limit'},
36
+ "ABOVE_DETECTION_LIMIT": {'description': 'The entity is above the detection limit'},
37
+ }
38
+
39
+ __all__ = [
40
+ "RelativeTimeEnum",
41
+ "PresenceEnum",
42
+ ]
@@ -0,0 +1 @@
1
+ """Auto-generated package."""
@@ -0,0 +1,53 @@
1
+ """
2
+
3
+ Generated from: data/data_absent_reason.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 DataAbsentEnum(RichEnum):
12
+ """
13
+ Used to specify why the normally expected content of the data element is missing.
14
+ """
15
+ # Enum members
16
+ UNKNOWN = "unknown"
17
+ ASKED_UNKNOWN = "asked-unknown"
18
+ TEMP_UNKNOWN = "temp-unknown"
19
+ NOT_ASKED = "not-asked"
20
+ ASKED_DECLINED = "asked-declined"
21
+ MASKED = "masked"
22
+ NOT_APPLICABLE = "not-applicable"
23
+ UNSUPPORTED = "unsupported"
24
+ AS_TEXT = "as-text"
25
+ ERROR = "error"
26
+ NOT_A_NUMBER = "not-a-number"
27
+ NEGATIVE_INFINITY = "negative-infinity"
28
+ POSITIVE_INFINITY = "positive-infinity"
29
+ NOT_PERFORMED = "not-performed"
30
+ NOT_PERMITTED = "not-permitted"
31
+
32
+ # Set metadata after class creation
33
+ DataAbsentEnum._metadata = {
34
+ "UNKNOWN": {'description': 'The value is expected to exist but is not known.', 'meaning': 'fhir_data_absent_reason:unknown'},
35
+ "ASKED_UNKNOWN": {'description': 'The source was asked but does not know the value.', 'meaning': 'fhir_data_absent_reason:asked-unknown'},
36
+ "TEMP_UNKNOWN": {'description': 'There is reason to expect (from the workflow) that the value may become known.', 'meaning': 'fhir_data_absent_reason:temp-unknown'},
37
+ "NOT_ASKED": {'description': "The workflow didn't lead to this value being known.", 'meaning': 'fhir_data_absent_reason:not-asked'},
38
+ "ASKED_DECLINED": {'description': 'The source was asked but declined to answer.', 'meaning': 'fhir_data_absent_reason:asked-declined'},
39
+ "MASKED": {'description': 'The information is not available due to security, privacy or related reasons.', 'meaning': 'fhir_data_absent_reason:masked'},
40
+ "NOT_APPLICABLE": {'description': 'There is no proper value for this element (e.g. last menstrual period for a male).', 'meaning': 'fhir_data_absent_reason:not-applicable'},
41
+ "UNSUPPORTED": {'description': "The source system wasn't capable of supporting this element.", 'meaning': 'fhir_data_absent_reason:unsupported'},
42
+ "AS_TEXT": {'description': 'The content of the data is represented in the resource narrative.', 'meaning': 'fhir_data_absent_reason:as-text'},
43
+ "ERROR": {'description': 'Some system or workflow process error means that the information is not available.', 'meaning': 'fhir_data_absent_reason:error'},
44
+ "NOT_A_NUMBER": {'description': 'The numeric value is undefined or unrepresentable due to a floating point processing error.', 'meaning': 'fhir_data_absent_reason:not-a-number'},
45
+ "NEGATIVE_INFINITY": {'description': 'The numeric value is excessively low and unrepresentable due to a floating point processing error.', 'meaning': 'fhir_data_absent_reason:negative-infinity'},
46
+ "POSITIVE_INFINITY": {'description': 'The numeric value is excessively high and unrepresentable due to a floating point processing error.', 'meaning': 'fhir_data_absent_reason:positive-infinity'},
47
+ "NOT_PERFORMED": {'description': 'The value is not available because the observation procedure (test, etc.) was not performed.', 'meaning': 'fhir_data_absent_reason:not-performed'},
48
+ "NOT_PERMITTED": {'description': 'The value is not permitted in this context (e.g. due to profiles, or the base data types).', 'meaning': 'fhir_data_absent_reason:not-permitted'},
49
+ }
50
+
51
+ __all__ = [
52
+ "DataAbsentEnum",
53
+ ]
@@ -0,0 +1 @@
1
+ """Auto-generated package."""
@@ -0,0 +1,87 @@
1
+ """
2
+
3
+ Generated from: data_science/binary_classification.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 BinaryClassificationEnum(RichEnum):
12
+ """
13
+ Generic binary classification labels
14
+ """
15
+ # Enum members
16
+ POSITIVE = "POSITIVE"
17
+ NEGATIVE = "NEGATIVE"
18
+
19
+ # Set metadata after class creation
20
+ BinaryClassificationEnum._metadata = {
21
+ "POSITIVE": {'description': 'Positive class', 'meaning': 'NCIT:C38758', 'aliases': ['1', 'true', 'yes', 'T']},
22
+ "NEGATIVE": {'description': 'Negative class', 'meaning': 'NCIT:C35681', 'aliases': ['0', 'false', 'no', 'F']},
23
+ }
24
+
25
+ class SpamClassificationEnum(RichEnum):
26
+ """
27
+ Standard labels for spam/ham email classification
28
+ """
29
+ # Enum members
30
+ SPAM = "SPAM"
31
+ HAM = "HAM"
32
+
33
+ # Set metadata after class creation
34
+ SpamClassificationEnum._metadata = {
35
+ "SPAM": {'description': 'Unwanted or unsolicited message', 'annotations': {'note': 'No appropriate ontology term found for spam concept'}, 'aliases': ['junk', '1']},
36
+ "HAM": {'description': 'Legitimate, wanted message', 'annotations': {'note': 'No appropriate ontology term found for ham concept'}, 'aliases': ['not_spam', 'legitimate', '0']},
37
+ }
38
+
39
+ class AnomalyDetectionEnum(RichEnum):
40
+ """
41
+ Labels for anomaly detection tasks
42
+ """
43
+ # Enum members
44
+ NORMAL = "NORMAL"
45
+ ANOMALY = "ANOMALY"
46
+
47
+ # Set metadata after class creation
48
+ AnomalyDetectionEnum._metadata = {
49
+ "NORMAL": {'description': 'Normal, expected behavior or pattern', 'meaning': 'NCIT:C14165', 'aliases': ['inlier', 'regular', '0']},
50
+ "ANOMALY": {'description': 'Abnormal, unexpected behavior or pattern', 'meaning': 'STATO:0000036', 'aliases': ['outlier', 'abnormal', 'irregular', '1']},
51
+ }
52
+
53
+ class ChurnClassificationEnum(RichEnum):
54
+ """
55
+ Customer churn prediction labels
56
+ """
57
+ # Enum members
58
+ RETAINED = "RETAINED"
59
+ CHURNED = "CHURNED"
60
+
61
+ # Set metadata after class creation
62
+ ChurnClassificationEnum._metadata = {
63
+ "RETAINED": {'description': 'Customer continues using the service', 'annotations': {'note': 'No appropriate ontology term found for customer retention'}, 'aliases': ['active', 'staying', '0']},
64
+ "CHURNED": {'description': 'Customer stopped using the service', 'annotations': {'note': 'No appropriate ontology term found for customer churn'}, 'aliases': ['lost', 'inactive', 'attrited', '1']},
65
+ }
66
+
67
+ class FraudDetectionEnum(RichEnum):
68
+ """
69
+ Fraud detection classification labels
70
+ """
71
+ # Enum members
72
+ LEGITIMATE = "LEGITIMATE"
73
+ FRAUDULENT = "FRAUDULENT"
74
+
75
+ # Set metadata after class creation
76
+ FraudDetectionEnum._metadata = {
77
+ "LEGITIMATE": {'description': 'Legitimate, non-fraudulent transaction or activity', 'meaning': 'NCIT:C14165', 'aliases': ['genuine', 'valid', '0']},
78
+ "FRAUDULENT": {'description': 'Fraudulent transaction or activity', 'meaning': 'NCIT:C121839', 'aliases': ['fraud', 'invalid', '1']},
79
+ }
80
+
81
+ __all__ = [
82
+ "BinaryClassificationEnum",
83
+ "SpamClassificationEnum",
84
+ "AnomalyDetectionEnum",
85
+ "ChurnClassificationEnum",
86
+ "FraudDetectionEnum",
87
+ ]