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,12 @@
1
+ """Health-related enums."""
2
+
3
+ # Import from base health module and vaccination module
4
+ from ..health_base import VitalStatusEnum
5
+ from .vaccination import VaccinationStatusEnum, VaccinationPeriodicityEnum, VaccineCategoryEnum
6
+
7
+ __all__ = [
8
+ "VitalStatusEnum",
9
+ "VaccinationStatusEnum",
10
+ "VaccinationPeriodicityEnum",
11
+ "VaccineCategoryEnum"
12
+ ]
@@ -0,0 +1,98 @@
1
+ """
2
+ valuesets-vaccination
3
+
4
+ Vaccination-related value sets
5
+
6
+ Generated from: health/vaccination.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 VaccinationStatusEnum(RichEnum):
15
+ """
16
+ The vaccination status of an individual
17
+ """
18
+ # Enum members
19
+ VACCINATED = "VACCINATED"
20
+ NOT_VACCINATED = "NOT_VACCINATED"
21
+ FULLY_VACCINATED = "FULLY_VACCINATED"
22
+ PARTIALLY_VACCINATED = "PARTIALLY_VACCINATED"
23
+ BOOSTER = "BOOSTER"
24
+ UNVACCINATED = "UNVACCINATED"
25
+ UNKNOWN = "UNKNOWN"
26
+
27
+ # Set metadata after class creation
28
+ VaccinationStatusEnum._metadata = {
29
+ "VACCINATED": {'description': 'A status indicating that an individual has received a vaccination', 'meaning': 'NCIT:C28385'},
30
+ "NOT_VACCINATED": {'description': 'A status indicating that an individual has not received any of the required vaccinations', 'meaning': 'NCIT:C183125'},
31
+ "FULLY_VACCINATED": {'description': 'A status indicating that an individual has received all the required vaccinations', 'meaning': 'NCIT:C183123'},
32
+ "PARTIALLY_VACCINATED": {'description': 'A status indicating that an individual has received some of the required vaccinations', 'meaning': 'NCIT:C183124'},
33
+ "BOOSTER": {'description': 'A status indicating that an individual has received a booster vaccination', 'meaning': 'NCIT:C28320'},
34
+ "UNVACCINATED": {'description': 'An organismal quality that indicates an organism is unvaccinated with any vaccine', 'meaning': 'VO:0001377'},
35
+ "UNKNOWN": {'description': 'The vaccination status is not known', 'meaning': 'NCIT:C17998'},
36
+ }
37
+
38
+ class VaccinationPeriodicityEnum(RichEnum):
39
+ """
40
+ The periodicity or frequency of vaccination
41
+ """
42
+ # Enum members
43
+ SINGLE_DOSE = "SINGLE_DOSE"
44
+ ANNUAL = "ANNUAL"
45
+ SEASONAL = "SEASONAL"
46
+ BOOSTER = "BOOSTER"
47
+ PRIMARY_SERIES = "PRIMARY_SERIES"
48
+ PERIODIC = "PERIODIC"
49
+ ONE_TIME = "ONE_TIME"
50
+ AS_NEEDED = "AS_NEEDED"
51
+
52
+ # Set metadata after class creation
53
+ VaccinationPeriodicityEnum._metadata = {
54
+ "SINGLE_DOSE": {'description': 'A vaccination regimen requiring only one dose'},
55
+ "ANNUAL": {'description': 'Vaccination occurring once per year', 'meaning': 'NCIT:C54647'},
56
+ "SEASONAL": {'description': 'Vaccination occurring seasonally (e.g., for influenza)'},
57
+ "BOOSTER": {'description': 'A second or later vaccine dose to maintain immune response', 'meaning': 'NCIT:C28320'},
58
+ "PRIMARY_SERIES": {'description': 'The initial series of vaccine doses'},
59
+ "PERIODIC": {'description': 'Vaccination occurring at regular intervals'},
60
+ "ONE_TIME": {'description': 'A vaccination given only once in a lifetime'},
61
+ "AS_NEEDED": {'description': 'Vaccination given as needed based on exposure risk or other factors'},
62
+ }
63
+
64
+ class VaccineCategoryEnum(RichEnum):
65
+ """
66
+ The broad category or type of vaccine
67
+ """
68
+ # Enum members
69
+ LIVE_ATTENUATED_VACCINE = "LIVE_ATTENUATED_VACCINE"
70
+ INACTIVATED_VACCINE = "INACTIVATED_VACCINE"
71
+ CONJUGATE_VACCINE = "CONJUGATE_VACCINE"
72
+ MRNA_VACCINE = "MRNA_VACCINE"
73
+ DNA_VACCINE = "DNA_VACCINE"
74
+ PEPTIDE_VACCINE = "PEPTIDE_VACCINE"
75
+ VIRAL_VECTOR = "VIRAL_VECTOR"
76
+ SUBUNIT = "SUBUNIT"
77
+ TOXOID = "TOXOID"
78
+ RECOMBINANT = "RECOMBINANT"
79
+
80
+ # Set metadata after class creation
81
+ VaccineCategoryEnum._metadata = {
82
+ "LIVE_ATTENUATED_VACCINE": {'description': 'A vaccine made from microbes that have been weakened in the laboratory', 'meaning': 'VO:0000367'},
83
+ "INACTIVATED_VACCINE": {'description': 'A preparation of killed microorganisms intended to prevent infectious disease', 'meaning': 'NCIT:C29694'},
84
+ "CONJUGATE_VACCINE": {'description': 'A vaccine created by covalently attaching an antigen to a carrier protein', 'meaning': 'NCIT:C1455'},
85
+ "MRNA_VACCINE": {'description': 'A vaccine based on mRNA that encodes the antigen of interest', 'meaning': 'NCIT:C172787'},
86
+ "DNA_VACCINE": {'description': 'A vaccine using DNA to produce protein that promotes immune responses', 'meaning': 'NCIT:C39619'},
87
+ "PEPTIDE_VACCINE": {'description': 'A vaccine based on synthetic peptides', 'meaning': 'NCIT:C1752'},
88
+ "VIRAL_VECTOR": {'description': 'A vaccine using a modified virus as a delivery system'},
89
+ "SUBUNIT": {'description': 'A vaccine containing purified pieces of the pathogen'},
90
+ "TOXOID": {'description': 'A vaccine made from a toxin that has been made harmless'},
91
+ "RECOMBINANT": {'description': 'A vaccine produced using recombinant DNA technology'},
92
+ }
93
+
94
+ __all__ = [
95
+ "VaccinationStatusEnum",
96
+ "VaccinationPeriodicityEnum",
97
+ "VaccineCategoryEnum",
98
+ ]
@@ -0,0 +1,36 @@
1
+ """
2
+ valuesets-health
3
+
4
+ General health-related value sets
5
+
6
+ Generated from: health.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 VitalStatusEnum(RichEnum):
15
+ """
16
+ The vital status of a person or organism
17
+ """
18
+ # Enum members
19
+ ALIVE = "ALIVE"
20
+ DECEASED = "DECEASED"
21
+ UNKNOWN = "UNKNOWN"
22
+ PRESUMED_ALIVE = "PRESUMED_ALIVE"
23
+ PRESUMED_DECEASED = "PRESUMED_DECEASED"
24
+
25
+ # Set metadata after class creation
26
+ VitalStatusEnum._metadata = {
27
+ "ALIVE": {'description': 'The person is living', 'meaning': 'NCIT:C37987'},
28
+ "DECEASED": {'description': 'The person has died', 'meaning': 'NCIT:C28554'},
29
+ "UNKNOWN": {'description': 'The vital status is not known', 'meaning': 'NCIT:C17998'},
30
+ "PRESUMED_ALIVE": {'description': 'The person is presumed to be alive based on available information'},
31
+ "PRESUMED_DECEASED": {'description': 'The person is presumed to be deceased based on available information'},
32
+ }
33
+
34
+ __all__ = [
35
+ "VitalStatusEnum",
36
+ ]
@@ -0,0 +1,36 @@
1
+ """
2
+ valuesets-health
3
+
4
+ General health-related value sets
5
+
6
+ Generated from: health.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 VitalStatusEnum(RichEnum):
15
+ """
16
+ The vital status of a person or organism
17
+ """
18
+ # Enum members
19
+ ALIVE = "ALIVE"
20
+ DECEASED = "DECEASED"
21
+ UNKNOWN = "UNKNOWN"
22
+ PRESUMED_ALIVE = "PRESUMED_ALIVE"
23
+ PRESUMED_DECEASED = "PRESUMED_DECEASED"
24
+
25
+ # Set metadata after class creation
26
+ VitalStatusEnum._metadata = {
27
+ "ALIVE": {'description': 'The person is living', 'meaning': 'NCIT:C37987'},
28
+ "DECEASED": {'description': 'The person has died', 'meaning': 'NCIT:C28554'},
29
+ "UNKNOWN": {'description': 'The vital status is not known', 'meaning': 'NCIT:C17998'},
30
+ "PRESUMED_ALIVE": {'description': 'The person is presumed to be alive based on available information'},
31
+ "PRESUMED_DECEASED": {'description': 'The person is presumed to be deceased based on available information'},
32
+ }
33
+
34
+ __all__ = [
35
+ "VitalStatusEnum",
36
+ ]
@@ -0,0 +1,45 @@
1
+ """
2
+ valuesets-healthcare
3
+
4
+ Common Data Model Elements
5
+
6
+ Generated from: healthcare.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 HealthcareEncounterClassification(RichEnum):
15
+ # Enum members
16
+ INPATIENT_VISIT = "Inpatient Visit"
17
+ EMERGENCY_ROOM_VISIT = "Emergency Room Visit"
18
+ EMERGENCY_ROOM_AND_INPATIENT_VISIT = "Emergency Room and Inpatient Visit"
19
+ NON_HOSPITAL_INSTITUTION_VISIT = "Non-hospital institution Visit"
20
+ OUTPATIENT_VISIT = "Outpatient Visit"
21
+ HOME_VISIT = "Home Visit"
22
+ TELEHEALTH_VISIT = "Telehealth Visit"
23
+ PHARMACY_VISIT = "Pharmacy Visit"
24
+ LABORATORY_VISIT = "Laboratory Visit"
25
+ AMBULANCE_VISIT = "Ambulance Visit"
26
+ CASE_MANAGEMENT_VISIT = "Case Management Visit"
27
+
28
+ # Set metadata after class creation
29
+ HealthcareEncounterClassification._metadata = {
30
+ "INPATIENT_VISIT": {'description': 'Person visiting hospital, at a Care Site, in bed, for duration of more than one day, with physicians and other Providers permanently available to deliver service around the clock'},
31
+ "EMERGENCY_ROOM_VISIT": {'description': 'Person visiting dedicated healthcare institution for treating emergencies, at a Care Site, within one day, with physicians and Providers permanently available to deliver service around the clock'},
32
+ "EMERGENCY_ROOM_AND_INPATIENT_VISIT": {'description': 'Person visiting ER followed by a subsequent Inpatient Visit, where Emergency department is part of hospital, and transition from the ER to other hospital departments is undefined'},
33
+ "NON_HOSPITAL_INSTITUTION_VISIT": {'description': 'Person visiting dedicated institution for reasons of poor health, at a Care Site, long-term or permanently, with no physician but possibly other Providers permanently available to deliver service around the clock'},
34
+ "OUTPATIENT_VISIT": {'description': 'Person visiting dedicated ambulatory healthcare institution, at a Care Site, within one day, without bed, with physicians or medical Providers delivering service during Visit'},
35
+ "HOME_VISIT": {'description': 'Provider visiting Person, without a Care Site, within one day, delivering service'},
36
+ "TELEHEALTH_VISIT": {'description': 'Patient engages with Provider through communication media'},
37
+ "PHARMACY_VISIT": {'description': 'Person visiting pharmacy for dispensing of Drug, at a Care Site, within one day'},
38
+ "LABORATORY_VISIT": {'description': 'Patient visiting dedicated institution, at a Care Site, within one day, for the purpose of a Measurement.'},
39
+ "AMBULANCE_VISIT": {'description': 'Person using transportation service for the purpose of initiating one of the other Visits, without a Care Site, within one day, potentially with Providers accompanying the Visit and delivering service'},
40
+ "CASE_MANAGEMENT_VISIT": {'description': 'Person interacting with healthcare system, without a Care Site, within a day, with no Providers involved, for administrative purposes'},
41
+ }
42
+
43
+ __all__ = [
44
+ "HealthcareEncounterClassification",
45
+ ]
@@ -0,0 +1 @@
1
+ """Auto-generated package."""
@@ -0,0 +1,94 @@
1
+ """
2
+
3
+ Generated from: industry/extractive_industry.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 ExtractiveIndustryFacilityTypeEnum(RichEnum):
12
+ """
13
+ Types of extractive industry facilities
14
+ """
15
+ # Enum members
16
+ MINING_FACILITY = "MINING_FACILITY"
17
+ WELL_FACILITY = "WELL_FACILITY"
18
+ QUARRY_FACILITY = "QUARRY_FACILITY"
19
+
20
+ # Set metadata after class creation
21
+ ExtractiveIndustryFacilityTypeEnum._metadata = {
22
+ "MINING_FACILITY": {'description': 'A facility where mineral resources are extracted'},
23
+ "WELL_FACILITY": {'description': 'A facility where fluid resources are extracted'},
24
+ "QUARRY_FACILITY": {'description': 'A facility where stone, sand, or gravel are extracted'},
25
+ }
26
+
27
+ class ExtractiveIndustryProductTypeEnum(RichEnum):
28
+ """
29
+ Types of products extracted from extractive industry facilities
30
+ """
31
+ # Enum members
32
+ MINERAL = "MINERAL"
33
+ METAL = "METAL"
34
+ COAL = "COAL"
35
+ OIL = "OIL"
36
+ GAS = "GAS"
37
+ STONE = "STONE"
38
+ SAND = "SAND"
39
+ GRAVEL = "GRAVEL"
40
+
41
+ # Set metadata after class creation
42
+ ExtractiveIndustryProductTypeEnum._metadata = {
43
+ "MINERAL": {'description': 'A solid inorganic substance'},
44
+ "METAL": {'description': 'A solid metallic substance'},
45
+ "COAL": {'description': 'A combustible black or brownish-black sedimentary rock'},
46
+ "OIL": {'description': 'A liquid petroleum resource'},
47
+ "GAS": {'description': 'A gaseous petroleum resource'},
48
+ "STONE": {'description': 'A solid aggregate of minerals'},
49
+ "SAND": {'description': 'A granular material composed of finely divided rock and mineral particles'},
50
+ "GRAVEL": {'description': 'A loose aggregation of rock fragments'},
51
+ }
52
+
53
+ class MiningMethodEnum(RichEnum):
54
+ """
55
+ Methods used for extracting minerals from the earth
56
+ """
57
+ # Enum members
58
+ UNDERGROUND = "UNDERGROUND"
59
+ OPEN_PIT = "OPEN_PIT"
60
+ PLACER = "PLACER"
61
+ IN_SITU = "IN_SITU"
62
+
63
+ # Set metadata after class creation
64
+ MiningMethodEnum._metadata = {
65
+ "UNDERGROUND": {'description': "Extraction occurs beneath the earth's surface"},
66
+ "OPEN_PIT": {'description': "Extraction occurs on the earth's surface"},
67
+ "PLACER": {'description': 'Extraction of valuable minerals from alluvial deposits'},
68
+ "IN_SITU": {'description': 'Extraction without removing the ore from its original location'},
69
+ }
70
+
71
+ class WellTypeEnum(RichEnum):
72
+ """
73
+ Types of wells used for extracting fluid resources
74
+ """
75
+ # Enum members
76
+ OIL = "OIL"
77
+ GAS = "GAS"
78
+ WATER = "WATER"
79
+ INJECTION = "INJECTION"
80
+
81
+ # Set metadata after class creation
82
+ WellTypeEnum._metadata = {
83
+ "OIL": {'description': 'A well that primarily extracts crude oil'},
84
+ "GAS": {'description': 'A well that primarily extracts natural gas'},
85
+ "WATER": {'description': 'A well that extracts water for various purposes'},
86
+ "INJECTION": {'description': 'A well used to inject fluids into underground formations'},
87
+ }
88
+
89
+ __all__ = [
90
+ "ExtractiveIndustryFacilityTypeEnum",
91
+ "ExtractiveIndustryProductTypeEnum",
92
+ "MiningMethodEnum",
93
+ "WellTypeEnum",
94
+ ]