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.
- valuesets/__init__.py +7 -0
- valuesets/_version.py +8 -0
- valuesets/datamodel/valuesets.py +13796 -0
- valuesets/datamodel/valuesets_dataclass.py +24503 -0
- valuesets/datamodel/valuesets_pydantic.py +13796 -0
- valuesets/enums/__init__.py +590 -0
- valuesets/enums/academic/__init__.py +1 -0
- valuesets/enums/academic/research.py +559 -0
- valuesets/enums/analytical_chemistry/__init__.py +1 -0
- valuesets/enums/analytical_chemistry/mass_spectrometry.py +198 -0
- valuesets/enums/bio/__init__.py +1 -0
- valuesets/enums/bio/biological_colors.py +238 -0
- valuesets/enums/bio/cell_cycle.py +180 -0
- valuesets/enums/bio/currency_chemicals.py +52 -0
- valuesets/enums/bio/developmental_stages.py +103 -0
- valuesets/enums/bio/genome_features.py +182 -0
- valuesets/enums/bio/genomics.py +91 -0
- valuesets/enums/bio/go_aspect.py +32 -0
- valuesets/enums/bio/go_causality.py +58 -0
- valuesets/enums/bio/go_evidence.py +129 -0
- valuesets/enums/bio/human_developmental_stages.py +62 -0
- valuesets/enums/bio/insdc_geographic_locations.py +591 -0
- valuesets/enums/bio/insdc_missing_values.py +49 -0
- valuesets/enums/bio/lipid_categories.py +67 -0
- valuesets/enums/bio/mouse_developmental_stages.py +62 -0
- valuesets/enums/bio/plant_biology.py +86 -0
- valuesets/enums/bio/plant_developmental_stages.py +54 -0
- valuesets/enums/bio/plant_sex.py +81 -0
- valuesets/enums/bio/protein_evidence.py +61 -0
- valuesets/enums/bio/proteomics_standards.py +123 -0
- valuesets/enums/bio/psi_mi.py +306 -0
- valuesets/enums/bio/relationship_to_oxygen.py +37 -0
- valuesets/enums/bio/sequence_alphabets.py +449 -0
- valuesets/enums/bio/sequence_chemistry.py +357 -0
- valuesets/enums/bio/sequencing_platforms.py +302 -0
- valuesets/enums/bio/structural_biology.py +320 -0
- valuesets/enums/bio/taxonomy.py +238 -0
- valuesets/enums/bio/trophic_levels.py +85 -0
- valuesets/enums/bio/uniprot_species.py +344 -0
- valuesets/enums/bio/viral_genome_types.py +47 -0
- valuesets/enums/bioprocessing/__init__.py +1 -0
- valuesets/enums/bioprocessing/scale_up.py +249 -0
- valuesets/enums/business/__init__.py +1 -0
- valuesets/enums/business/human_resources.py +275 -0
- valuesets/enums/business/industry_classifications.py +181 -0
- valuesets/enums/business/management_operations.py +228 -0
- valuesets/enums/business/organizational_structures.py +236 -0
- valuesets/enums/business/quality_management.py +181 -0
- valuesets/enums/business/supply_chain.py +232 -0
- valuesets/enums/chemistry/__init__.py +1 -0
- valuesets/enums/chemistry/chemical_entities.py +315 -0
- valuesets/enums/chemistry/reaction_directionality.py +65 -0
- valuesets/enums/chemistry/reactions.py +256 -0
- valuesets/enums/clinical/__init__.py +1 -0
- valuesets/enums/clinical/nih_demographics.py +177 -0
- valuesets/enums/clinical/phenopackets.py +254 -0
- valuesets/enums/common_value_sets.py +8791 -0
- valuesets/enums/computing/__init__.py +1 -0
- valuesets/enums/computing/file_formats.py +294 -0
- valuesets/enums/computing/maturity_levels.py +196 -0
- valuesets/enums/computing/mime_types.py +227 -0
- valuesets/enums/confidence_levels.py +168 -0
- valuesets/enums/contributor.py +30 -0
- valuesets/enums/core.py +42 -0
- valuesets/enums/data/__init__.py +1 -0
- valuesets/enums/data/data_absent_reason.py +53 -0
- valuesets/enums/data_science/__init__.py +1 -0
- valuesets/enums/data_science/binary_classification.py +87 -0
- valuesets/enums/data_science/emotion_classification.py +66 -0
- valuesets/enums/data_science/priority_severity.py +73 -0
- valuesets/enums/data_science/quality_control.py +46 -0
- valuesets/enums/data_science/sentiment_analysis.py +50 -0
- valuesets/enums/data_science/text_classification.py +97 -0
- valuesets/enums/demographics.py +206 -0
- valuesets/enums/ecological_interactions.py +151 -0
- valuesets/enums/energy/__init__.py +1 -0
- valuesets/enums/energy/energy.py +343 -0
- valuesets/enums/energy/fossil_fuels.py +29 -0
- valuesets/enums/energy/nuclear/__init__.py +1 -0
- valuesets/enums/energy/nuclear/nuclear_facilities.py +195 -0
- valuesets/enums/energy/nuclear/nuclear_fuel_cycle.py +96 -0
- valuesets/enums/energy/nuclear/nuclear_fuels.py +175 -0
- valuesets/enums/energy/nuclear/nuclear_operations.py +191 -0
- valuesets/enums/energy/nuclear/nuclear_regulatory.py +188 -0
- valuesets/enums/energy/nuclear/nuclear_safety.py +164 -0
- valuesets/enums/energy/nuclear/nuclear_waste.py +158 -0
- valuesets/enums/energy/nuclear/reactor_types.py +163 -0
- valuesets/enums/environmental_health/__init__.py +1 -0
- valuesets/enums/environmental_health/exposures.py +265 -0
- valuesets/enums/geography/__init__.py +1 -0
- valuesets/enums/geography/geographic_codes.py +741 -0
- valuesets/enums/health/__init__.py +12 -0
- valuesets/enums/health/vaccination.py +98 -0
- valuesets/enums/health.py +36 -0
- valuesets/enums/health_base.py +36 -0
- valuesets/enums/healthcare.py +45 -0
- valuesets/enums/industry/__init__.py +1 -0
- valuesets/enums/industry/extractive_industry.py +94 -0
- valuesets/enums/industry/mining.py +388 -0
- valuesets/enums/industry/safety_colors.py +201 -0
- valuesets/enums/investigation.py +27 -0
- valuesets/enums/materials_science/__init__.py +1 -0
- valuesets/enums/materials_science/characterization_methods.py +112 -0
- valuesets/enums/materials_science/crystal_structures.py +76 -0
- valuesets/enums/materials_science/material_properties.py +119 -0
- valuesets/enums/materials_science/material_types.py +104 -0
- valuesets/enums/materials_science/pigments_dyes.py +198 -0
- valuesets/enums/materials_science/synthesis_methods.py +109 -0
- valuesets/enums/medical/__init__.py +1 -0
- valuesets/enums/medical/clinical.py +277 -0
- valuesets/enums/medical/neuroimaging.py +119 -0
- valuesets/enums/mining_processing.py +302 -0
- valuesets/enums/physics/__init__.py +1 -0
- valuesets/enums/physics/states_of_matter.py +46 -0
- valuesets/enums/social/__init__.py +1 -0
- valuesets/enums/social/person_status.py +29 -0
- valuesets/enums/spatial/__init__.py +1 -0
- valuesets/enums/spatial/spatial_qualifiers.py +246 -0
- valuesets/enums/statistics/__init__.py +5 -0
- valuesets/enums/statistics/prediction_outcomes.py +31 -0
- valuesets/enums/statistics.py +31 -0
- valuesets/enums/time/__init__.py +1 -0
- valuesets/enums/time/temporal.py +254 -0
- valuesets/enums/units/__init__.py +1 -0
- valuesets/enums/units/measurements.py +310 -0
- valuesets/enums/visual/__init__.py +1 -0
- valuesets/enums/visual/colors.py +376 -0
- valuesets/generators/__init__.py +19 -0
- valuesets/generators/auto_slot_injector.py +280 -0
- valuesets/generators/enhanced_pydantic_generator.py +100 -0
- valuesets/generators/enum_slot_generator.py +201 -0
- valuesets/generators/modular_rich_generator.py +353 -0
- valuesets/generators/prefix_standardizer.py +198 -0
- valuesets/generators/rich_enum.py +127 -0
- valuesets/generators/rich_pydantic_generator.py +310 -0
- valuesets/generators/smart_slot_syncer.py +428 -0
- valuesets/generators/sssom_generator.py +394 -0
- valuesets/merged/merged_hierarchy.yaml +21649 -0
- valuesets/schema/README.md +3 -0
- valuesets/schema/academic/research.yaml +911 -0
- valuesets/schema/analytical_chemistry/mass_spectrometry.yaml +206 -0
- valuesets/schema/bio/bio_entities.yaml +364 -0
- valuesets/schema/bio/biological_colors.yaml +434 -0
- valuesets/schema/bio/cell_cycle.yaml +309 -0
- valuesets/schema/bio/currency_chemicals.yaml +70 -0
- valuesets/schema/bio/developmental_stages.yaml +226 -0
- valuesets/schema/bio/genome_features.yaml +342 -0
- valuesets/schema/bio/genomics.yaml +101 -0
- valuesets/schema/bio/go_aspect.yaml +39 -0
- valuesets/schema/bio/go_causality.yaml +119 -0
- valuesets/schema/bio/go_evidence.yaml +215 -0
- valuesets/schema/bio/insdc_geographic_locations.yaml +911 -0
- valuesets/schema/bio/insdc_missing_values.yaml +85 -0
- valuesets/schema/bio/lipid_categories.yaml +72 -0
- valuesets/schema/bio/plant_biology.yaml +125 -0
- valuesets/schema/bio/plant_developmental_stages.yaml +77 -0
- valuesets/schema/bio/plant_sex.yaml +108 -0
- valuesets/schema/bio/protein_evidence.yaml +63 -0
- valuesets/schema/bio/proteomics_standards.yaml +116 -0
- valuesets/schema/bio/psi_mi.yaml +400 -0
- valuesets/schema/bio/relationship_to_oxygen.yaml +46 -0
- valuesets/schema/bio/sequence_alphabets.yaml +1168 -0
- valuesets/schema/bio/sequence_chemistry.yaml +477 -0
- valuesets/schema/bio/sequencing_platforms.yaml +515 -0
- valuesets/schema/bio/structural_biology.yaml +428 -0
- valuesets/schema/bio/taxonomy.yaml +453 -0
- valuesets/schema/bio/trophic_levels.yaml +118 -0
- valuesets/schema/bio/uniprot_species.yaml +1209 -0
- valuesets/schema/bio/viral_genome_types.yaml +99 -0
- valuesets/schema/bioprocessing/scale_up.yaml +458 -0
- valuesets/schema/business/human_resources.yaml +752 -0
- valuesets/schema/business/industry_classifications.yaml +448 -0
- valuesets/schema/business/management_operations.yaml +602 -0
- valuesets/schema/business/organizational_structures.yaml +645 -0
- valuesets/schema/business/quality_management.yaml +502 -0
- valuesets/schema/business/supply_chain.yaml +688 -0
- valuesets/schema/chemistry/chemical_entities.yaml +639 -0
- valuesets/schema/chemistry/reaction_directionality.yaml +60 -0
- valuesets/schema/chemistry/reactions.yaml +442 -0
- valuesets/schema/clinical/nih_demographics.yaml +285 -0
- valuesets/schema/clinical/phenopackets.yaml +429 -0
- valuesets/schema/computing/file_formats.yaml +631 -0
- valuesets/schema/computing/maturity_levels.yaml +229 -0
- valuesets/schema/computing/mime_types.yaml +266 -0
- valuesets/schema/confidence_levels.yaml +206 -0
- valuesets/schema/contributor.yaml +30 -0
- valuesets/schema/core.yaml +55 -0
- valuesets/schema/data/data_absent_reason.yaml +82 -0
- valuesets/schema/data_science/binary_classification.yaml +125 -0
- valuesets/schema/data_science/emotion_classification.yaml +109 -0
- valuesets/schema/data_science/priority_severity.yaml +122 -0
- valuesets/schema/data_science/quality_control.yaml +68 -0
- valuesets/schema/data_science/sentiment_analysis.yaml +81 -0
- valuesets/schema/data_science/text_classification.yaml +135 -0
- valuesets/schema/demographics.yaml +238 -0
- valuesets/schema/ecological_interactions.yaml +298 -0
- valuesets/schema/energy/energy.yaml +595 -0
- valuesets/schema/energy/fossil_fuels.yaml +28 -0
- valuesets/schema/energy/nuclear/nuclear_facilities.yaml +463 -0
- valuesets/schema/energy/nuclear/nuclear_fuel_cycle.yaml +82 -0
- valuesets/schema/energy/nuclear/nuclear_fuels.yaml +421 -0
- valuesets/schema/energy/nuclear/nuclear_operations.yaml +480 -0
- valuesets/schema/energy/nuclear/nuclear_regulatory.yaml +200 -0
- valuesets/schema/energy/nuclear/nuclear_safety.yaml +352 -0
- valuesets/schema/energy/nuclear/nuclear_waste.yaml +332 -0
- valuesets/schema/energy/nuclear/reactor_types.yaml +394 -0
- valuesets/schema/environmental_health/exposures.yaml +355 -0
- valuesets/schema/generated_slots.yaml +1828 -0
- valuesets/schema/geography/geographic_codes.yaml +1018 -0
- valuesets/schema/health/vaccination.yaml +102 -0
- valuesets/schema/health.yaml +38 -0
- valuesets/schema/healthcare.yaml +53 -0
- valuesets/schema/industry/extractive_industry.yaml +89 -0
- valuesets/schema/industry/mining.yaml +888 -0
- valuesets/schema/industry/safety_colors.yaml +375 -0
- valuesets/schema/investigation.yaml +64 -0
- valuesets/schema/materials_science/characterization_methods.yaml +193 -0
- valuesets/schema/materials_science/crystal_structures.yaml +138 -0
- valuesets/schema/materials_science/material_properties.yaml +135 -0
- valuesets/schema/materials_science/material_types.yaml +151 -0
- valuesets/schema/materials_science/pigments_dyes.yaml +465 -0
- valuesets/schema/materials_science/synthesis_methods.yaml +186 -0
- valuesets/schema/medical/clinical.yaml +610 -0
- valuesets/schema/medical/neuroimaging.yaml +325 -0
- valuesets/schema/mining_processing.yaml +295 -0
- valuesets/schema/physics/states_of_matter.yaml +46 -0
- valuesets/schema/slot_mixins.yaml +143 -0
- valuesets/schema/social/person_status.yaml +28 -0
- valuesets/schema/spatial/spatial_qualifiers.yaml +466 -0
- valuesets/schema/statistics/prediction_outcomes.yaml +26 -0
- valuesets/schema/statistics.yaml +34 -0
- valuesets/schema/time/temporal.yaml +435 -0
- valuesets/schema/types.yaml +15 -0
- valuesets/schema/units/measurements.yaml +675 -0
- valuesets/schema/valuesets.yaml +100 -0
- valuesets/schema/visual/colors.yaml +778 -0
- valuesets/utils/__init__.py +6 -0
- valuesets/utils/comparison.py +102 -0
- valuesets/utils/expand_dynamic_enums.py +414 -0
- valuesets/utils/mapping_utils.py +236 -0
- valuesets/validators/__init__.py +11 -0
- valuesets/validators/enum_evaluator.py +669 -0
- valuesets/validators/oak_config.yaml +70 -0
- valuesets/validators/validate_with_ols.py +241 -0
- valuesets-0.3.1.dist-info/METADATA +395 -0
- valuesets-0.3.1.dist-info/RECORD +248 -0
- valuesets-0.3.1.dist-info/WHEEL +4 -0
- valuesets-0.3.1.dist-info/licenses/LICENSE +201 -0
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
"""
|
|
2
|
+
|
|
3
|
+
Generated from: data_science/emotion_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 BasicEmotionEnum(RichEnum):
|
|
12
|
+
"""
|
|
13
|
+
Ekman's six basic emotions commonly used in emotion recognition
|
|
14
|
+
"""
|
|
15
|
+
# Enum members
|
|
16
|
+
ANGER = "ANGER"
|
|
17
|
+
DISGUST = "DISGUST"
|
|
18
|
+
FEAR = "FEAR"
|
|
19
|
+
HAPPINESS = "HAPPINESS"
|
|
20
|
+
SADNESS = "SADNESS"
|
|
21
|
+
SURPRISE = "SURPRISE"
|
|
22
|
+
|
|
23
|
+
# Set metadata after class creation
|
|
24
|
+
BasicEmotionEnum._metadata = {
|
|
25
|
+
"ANGER": {'description': 'Feeling of displeasure or hostility', 'meaning': 'MFOEM:000009', 'aliases': ['angry', 'mad']},
|
|
26
|
+
"DISGUST": {'description': 'Feeling of revulsion or strong disapproval', 'meaning': 'MFOEM:000019', 'aliases': ['disgusted', 'repulsed']},
|
|
27
|
+
"FEAR": {'description': 'Feeling of anxiety or apprehension', 'meaning': 'MFOEM:000026', 'aliases': ['afraid', 'scared']},
|
|
28
|
+
"HAPPINESS": {'description': 'Feeling of pleasure or contentment', 'meaning': 'MFOEM:000042', 'aliases': ['happy', 'joy', 'joyful']},
|
|
29
|
+
"SADNESS": {'description': 'Feeling of sorrow or unhappiness', 'meaning': 'MFOEM:000056', 'aliases': ['sad', 'sorrow']},
|
|
30
|
+
"SURPRISE": {'description': 'Feeling of mild astonishment or shock', 'meaning': 'MFOEM:000032', 'aliases': ['surprised', 'shocked']},
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
class ExtendedEmotionEnum(RichEnum):
|
|
34
|
+
"""
|
|
35
|
+
Extended emotion set including complex emotions
|
|
36
|
+
"""
|
|
37
|
+
# Enum members
|
|
38
|
+
ANGER = "ANGER"
|
|
39
|
+
DISGUST = "DISGUST"
|
|
40
|
+
FEAR = "FEAR"
|
|
41
|
+
HAPPINESS = "HAPPINESS"
|
|
42
|
+
SADNESS = "SADNESS"
|
|
43
|
+
SURPRISE = "SURPRISE"
|
|
44
|
+
CONTEMPT = "CONTEMPT"
|
|
45
|
+
ANTICIPATION = "ANTICIPATION"
|
|
46
|
+
TRUST = "TRUST"
|
|
47
|
+
LOVE = "LOVE"
|
|
48
|
+
|
|
49
|
+
# Set metadata after class creation
|
|
50
|
+
ExtendedEmotionEnum._metadata = {
|
|
51
|
+
"ANGER": {'description': 'Feeling of displeasure or hostility', 'meaning': 'MFOEM:000009'},
|
|
52
|
+
"DISGUST": {'description': 'Feeling of revulsion', 'meaning': 'MFOEM:000019'},
|
|
53
|
+
"FEAR": {'description': 'Feeling of anxiety', 'meaning': 'MFOEM:000026'},
|
|
54
|
+
"HAPPINESS": {'description': 'Feeling of pleasure', 'meaning': 'MFOEM:000042'},
|
|
55
|
+
"SADNESS": {'description': 'Feeling of sorrow', 'meaning': 'MFOEM:000056'},
|
|
56
|
+
"SURPRISE": {'description': 'Feeling of astonishment', 'meaning': 'MFOEM:000032'},
|
|
57
|
+
"CONTEMPT": {'description': 'Feeling that something is worthless', 'meaning': 'MFOEM:000018'},
|
|
58
|
+
"ANTICIPATION": {'description': 'Feeling of excitement about something that will happen', 'meaning': 'MFOEM:000175', 'aliases': ['expectation', 'expectant']},
|
|
59
|
+
"TRUST": {'description': 'Feeling of confidence in someone or something', 'meaning': 'MFOEM:000224'},
|
|
60
|
+
"LOVE": {'description': 'Feeling of deep affection', 'meaning': 'MFOEM:000048'},
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
__all__ = [
|
|
64
|
+
"BasicEmotionEnum",
|
|
65
|
+
"ExtendedEmotionEnum",
|
|
66
|
+
]
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
"""
|
|
2
|
+
|
|
3
|
+
Generated from: data_science/priority_severity.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 PriorityLevelEnum(RichEnum):
|
|
12
|
+
"""
|
|
13
|
+
Standard priority levels for task/issue classification
|
|
14
|
+
"""
|
|
15
|
+
# Enum members
|
|
16
|
+
CRITICAL = "CRITICAL"
|
|
17
|
+
HIGH = "HIGH"
|
|
18
|
+
MEDIUM = "MEDIUM"
|
|
19
|
+
LOW = "LOW"
|
|
20
|
+
TRIVIAL = "TRIVIAL"
|
|
21
|
+
|
|
22
|
+
# Set metadata after class creation
|
|
23
|
+
PriorityLevelEnum._metadata = {
|
|
24
|
+
"CRITICAL": {'description': 'Highest priority, requires immediate attention', 'aliases': ['P0', 'urgent', 'blocker', '1']},
|
|
25
|
+
"HIGH": {'description': 'High priority, should be addressed soon', 'aliases': ['P1', 'important', '2']},
|
|
26
|
+
"MEDIUM": {'description': 'Medium priority, normal workflow', 'aliases': ['P2', 'normal', '3']},
|
|
27
|
+
"LOW": {'description': 'Low priority, can be deferred', 'aliases': ['P3', 'minor', '4']},
|
|
28
|
+
"TRIVIAL": {'description': 'Lowest priority, nice to have', 'aliases': ['P4', 'cosmetic', '5']},
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
class SeverityLevelEnum(RichEnum):
|
|
32
|
+
"""
|
|
33
|
+
Severity levels for incident/bug classification
|
|
34
|
+
"""
|
|
35
|
+
# Enum members
|
|
36
|
+
CRITICAL = "CRITICAL"
|
|
37
|
+
MAJOR = "MAJOR"
|
|
38
|
+
MINOR = "MINOR"
|
|
39
|
+
TRIVIAL = "TRIVIAL"
|
|
40
|
+
|
|
41
|
+
# Set metadata after class creation
|
|
42
|
+
SeverityLevelEnum._metadata = {
|
|
43
|
+
"CRITICAL": {'description': 'System is unusable, data loss possible', 'aliases': ['S1', 'blocker', 'showstopper']},
|
|
44
|
+
"MAJOR": {'description': 'Major functionality impaired', 'aliases': ['S2', 'severe', 'high']},
|
|
45
|
+
"MINOR": {'description': 'Minor functionality impaired', 'aliases': ['S3', 'moderate', 'medium']},
|
|
46
|
+
"TRIVIAL": {'description': 'Cosmetic issue, minimal impact', 'aliases': ['S4', 'cosmetic', 'low']},
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
class ConfidenceLevelEnum(RichEnum):
|
|
50
|
+
"""
|
|
51
|
+
Confidence levels for predictions and classifications
|
|
52
|
+
"""
|
|
53
|
+
# Enum members
|
|
54
|
+
VERY_HIGH = "VERY_HIGH"
|
|
55
|
+
HIGH = "HIGH"
|
|
56
|
+
MEDIUM = "MEDIUM"
|
|
57
|
+
LOW = "LOW"
|
|
58
|
+
VERY_LOW = "VERY_LOW"
|
|
59
|
+
|
|
60
|
+
# Set metadata after class creation
|
|
61
|
+
ConfidenceLevelEnum._metadata = {
|
|
62
|
+
"VERY_HIGH": {'description': 'Very high confidence (>95%)', 'aliases': ['certain', '5']},
|
|
63
|
+
"HIGH": {'description': 'High confidence (80-95%)', 'aliases': ['confident', '4']},
|
|
64
|
+
"MEDIUM": {'description': 'Medium confidence (60-80%)', 'aliases': ['moderate', '3']},
|
|
65
|
+
"LOW": {'description': 'Low confidence (40-60%)', 'aliases': ['uncertain', '2']},
|
|
66
|
+
"VERY_LOW": {'description': 'Very low confidence (<40%)', 'aliases': ['guess', '1']},
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
__all__ = [
|
|
70
|
+
"PriorityLevelEnum",
|
|
71
|
+
"SeverityLevelEnum",
|
|
72
|
+
"ConfidenceLevelEnum",
|
|
73
|
+
]
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
"""
|
|
2
|
+
|
|
3
|
+
Generated from: data_science/quality_control.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 QualityControlEnum(RichEnum):
|
|
12
|
+
"""
|
|
13
|
+
Quality control classification labels
|
|
14
|
+
"""
|
|
15
|
+
# Enum members
|
|
16
|
+
PASS = "PASS"
|
|
17
|
+
FAIL = "FAIL"
|
|
18
|
+
|
|
19
|
+
# Set metadata after class creation
|
|
20
|
+
QualityControlEnum._metadata = {
|
|
21
|
+
"PASS": {'description': 'Item meets quality standards', 'meaning': 'NCIT:C81275', 'aliases': ['passed', 'acceptable', 'ok', '1']},
|
|
22
|
+
"FAIL": {'description': 'Item does not meet quality standards', 'meaning': 'NCIT:C44281', 'aliases': ['failed', 'reject', 'defective', '0']},
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
class DefectClassificationEnum(RichEnum):
|
|
26
|
+
"""
|
|
27
|
+
Manufacturing defect classification
|
|
28
|
+
"""
|
|
29
|
+
# Enum members
|
|
30
|
+
NO_DEFECT = "NO_DEFECT"
|
|
31
|
+
MINOR_DEFECT = "MINOR_DEFECT"
|
|
32
|
+
MAJOR_DEFECT = "MAJOR_DEFECT"
|
|
33
|
+
CRITICAL_DEFECT = "CRITICAL_DEFECT"
|
|
34
|
+
|
|
35
|
+
# Set metadata after class creation
|
|
36
|
+
DefectClassificationEnum._metadata = {
|
|
37
|
+
"NO_DEFECT": {'description': 'No defect detected', 'meaning': 'NCIT:C14165', 'aliases': ['good', 'normal', '0']},
|
|
38
|
+
"MINOR_DEFECT": {'description': "Minor defect that doesn't affect functionality", 'aliases': ['minor', 'cosmetic', '1']},
|
|
39
|
+
"MAJOR_DEFECT": {'description': 'Major defect affecting functionality', 'aliases': ['major', 'functional', '2']},
|
|
40
|
+
"CRITICAL_DEFECT": {'description': 'Critical defect rendering item unusable or unsafe', 'aliases': ['critical', 'severe', '3']},
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
__all__ = [
|
|
44
|
+
"QualityControlEnum",
|
|
45
|
+
"DefectClassificationEnum",
|
|
46
|
+
]
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
"""
|
|
2
|
+
|
|
3
|
+
Generated from: data_science/sentiment_analysis.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 SentimentClassificationEnum(RichEnum):
|
|
12
|
+
"""
|
|
13
|
+
Standard labels for sentiment analysis classification tasks
|
|
14
|
+
"""
|
|
15
|
+
# Enum members
|
|
16
|
+
POSITIVE = "POSITIVE"
|
|
17
|
+
NEGATIVE = "NEGATIVE"
|
|
18
|
+
NEUTRAL = "NEUTRAL"
|
|
19
|
+
|
|
20
|
+
# Set metadata after class creation
|
|
21
|
+
SentimentClassificationEnum._metadata = {
|
|
22
|
+
"POSITIVE": {'description': 'Positive sentiment or opinion', 'meaning': 'NCIT:C38758', 'aliases': ['pos', '1', '+']},
|
|
23
|
+
"NEGATIVE": {'description': 'Negative sentiment or opinion', 'meaning': 'NCIT:C35681', 'aliases': ['neg', '0', '-']},
|
|
24
|
+
"NEUTRAL": {'description': 'Neutral sentiment, neither positive nor negative', 'meaning': 'NCIT:C14165', 'aliases': ['neu', '2']},
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
class FineSentimentClassificationEnum(RichEnum):
|
|
28
|
+
"""
|
|
29
|
+
Fine-grained sentiment analysis labels with intensity levels
|
|
30
|
+
"""
|
|
31
|
+
# Enum members
|
|
32
|
+
VERY_POSITIVE = "VERY_POSITIVE"
|
|
33
|
+
POSITIVE = "POSITIVE"
|
|
34
|
+
NEUTRAL = "NEUTRAL"
|
|
35
|
+
NEGATIVE = "NEGATIVE"
|
|
36
|
+
VERY_NEGATIVE = "VERY_NEGATIVE"
|
|
37
|
+
|
|
38
|
+
# Set metadata after class creation
|
|
39
|
+
FineSentimentClassificationEnum._metadata = {
|
|
40
|
+
"VERY_POSITIVE": {'description': 'Strongly positive sentiment', 'meaning': 'NCIT:C38758', 'aliases': ['5', '++']},
|
|
41
|
+
"POSITIVE": {'description': 'Positive sentiment', 'meaning': 'NCIT:C38758', 'aliases': ['4', '+']},
|
|
42
|
+
"NEUTRAL": {'description': 'Neutral sentiment', 'meaning': 'NCIT:C14165', 'aliases': ['3', '0']},
|
|
43
|
+
"NEGATIVE": {'description': 'Negative sentiment', 'meaning': 'NCIT:C35681', 'aliases': ['2', '-']},
|
|
44
|
+
"VERY_NEGATIVE": {'description': 'Strongly negative sentiment', 'meaning': 'NCIT:C35681', 'aliases': ['1', '--']},
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
__all__ = [
|
|
48
|
+
"SentimentClassificationEnum",
|
|
49
|
+
"FineSentimentClassificationEnum",
|
|
50
|
+
]
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
"""
|
|
2
|
+
|
|
3
|
+
Generated from: data_science/text_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 NewsTopicCategoryEnum(RichEnum):
|
|
12
|
+
"""
|
|
13
|
+
Common news article topic categories
|
|
14
|
+
"""
|
|
15
|
+
# Enum members
|
|
16
|
+
POLITICS = "POLITICS"
|
|
17
|
+
BUSINESS = "BUSINESS"
|
|
18
|
+
TECHNOLOGY = "TECHNOLOGY"
|
|
19
|
+
SPORTS = "SPORTS"
|
|
20
|
+
ENTERTAINMENT = "ENTERTAINMENT"
|
|
21
|
+
SCIENCE = "SCIENCE"
|
|
22
|
+
HEALTH = "HEALTH"
|
|
23
|
+
WORLD = "WORLD"
|
|
24
|
+
LOCAL = "LOCAL"
|
|
25
|
+
|
|
26
|
+
# Set metadata after class creation
|
|
27
|
+
NewsTopicCategoryEnum._metadata = {
|
|
28
|
+
"POLITICS": {'description': 'Political news and government affairs'},
|
|
29
|
+
"BUSINESS": {'description': 'Business, finance, and economic news', 'aliases': ['finance', 'economy']},
|
|
30
|
+
"TECHNOLOGY": {'description': 'Technology and computing news', 'aliases': ['tech', 'IT']},
|
|
31
|
+
"SPORTS": {'description': 'Sports news and events'},
|
|
32
|
+
"ENTERTAINMENT": {'description': 'Entertainment and celebrity news', 'aliases': ['showbiz']},
|
|
33
|
+
"SCIENCE": {'description': 'Scientific discoveries and research'},
|
|
34
|
+
"HEALTH": {'description': 'Health, medicine, and wellness news', 'aliases': ['medical']},
|
|
35
|
+
"WORLD": {'description': 'International news and events', 'aliases': ['international', 'global']},
|
|
36
|
+
"LOCAL": {'description': 'Local and regional news', 'aliases': ['regional']},
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
class ToxicityClassificationEnum(RichEnum):
|
|
40
|
+
"""
|
|
41
|
+
Text toxicity classification labels
|
|
42
|
+
"""
|
|
43
|
+
# Enum members
|
|
44
|
+
NON_TOXIC = "NON_TOXIC"
|
|
45
|
+
TOXIC = "TOXIC"
|
|
46
|
+
SEVERE_TOXIC = "SEVERE_TOXIC"
|
|
47
|
+
OBSCENE = "OBSCENE"
|
|
48
|
+
THREAT = "THREAT"
|
|
49
|
+
INSULT = "INSULT"
|
|
50
|
+
IDENTITY_HATE = "IDENTITY_HATE"
|
|
51
|
+
|
|
52
|
+
# Set metadata after class creation
|
|
53
|
+
ToxicityClassificationEnum._metadata = {
|
|
54
|
+
"NON_TOXIC": {'description': 'Text is appropriate and non-harmful', 'meaning': 'SIO:001010', 'aliases': ['safe', 'clean', '0']},
|
|
55
|
+
"TOXIC": {'description': 'Text contains harmful or inappropriate content', 'aliases': ['harmful', 'inappropriate', '1']},
|
|
56
|
+
"SEVERE_TOXIC": {'description': 'Text contains severely harmful content'},
|
|
57
|
+
"OBSCENE": {'description': 'Text contains obscene content'},
|
|
58
|
+
"THREAT": {'description': 'Text contains threatening content'},
|
|
59
|
+
"INSULT": {'description': 'Text contains insulting content'},
|
|
60
|
+
"IDENTITY_HATE": {'description': 'Text contains identity-based hate'},
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
class IntentClassificationEnum(RichEnum):
|
|
64
|
+
"""
|
|
65
|
+
Common chatbot/NLU intent categories
|
|
66
|
+
"""
|
|
67
|
+
# Enum members
|
|
68
|
+
GREETING = "GREETING"
|
|
69
|
+
GOODBYE = "GOODBYE"
|
|
70
|
+
THANKS = "THANKS"
|
|
71
|
+
HELP = "HELP"
|
|
72
|
+
INFORMATION = "INFORMATION"
|
|
73
|
+
COMPLAINT = "COMPLAINT"
|
|
74
|
+
FEEDBACK = "FEEDBACK"
|
|
75
|
+
PURCHASE = "PURCHASE"
|
|
76
|
+
CANCEL = "CANCEL"
|
|
77
|
+
REFUND = "REFUND"
|
|
78
|
+
|
|
79
|
+
# Set metadata after class creation
|
|
80
|
+
IntentClassificationEnum._metadata = {
|
|
81
|
+
"GREETING": {'description': 'User greeting or hello'},
|
|
82
|
+
"GOODBYE": {'description': 'User saying goodbye'},
|
|
83
|
+
"THANKS": {'description': 'User expressing gratitude'},
|
|
84
|
+
"HELP": {'description': 'User requesting help or assistance'},
|
|
85
|
+
"INFORMATION": {'description': 'User requesting information'},
|
|
86
|
+
"COMPLAINT": {'description': 'User expressing dissatisfaction'},
|
|
87
|
+
"FEEDBACK": {'description': 'User providing feedback'},
|
|
88
|
+
"PURCHASE": {'description': 'User intent to buy or purchase'},
|
|
89
|
+
"CANCEL": {'description': 'User intent to cancel'},
|
|
90
|
+
"REFUND": {'description': 'User requesting refund'},
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
__all__ = [
|
|
94
|
+
"NewsTopicCategoryEnum",
|
|
95
|
+
"ToxicityClassificationEnum",
|
|
96
|
+
"IntentClassificationEnum",
|
|
97
|
+
]
|
|
@@ -0,0 +1,206 @@
|
|
|
1
|
+
"""
|
|
2
|
+
valuesets-demographics
|
|
3
|
+
|
|
4
|
+
Demographic and social determinant value sets from NIH CDE and HL7 standards
|
|
5
|
+
|
|
6
|
+
Generated from: demographics.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 EducationLevel(RichEnum):
|
|
15
|
+
"""
|
|
16
|
+
Years of education that a person has completed
|
|
17
|
+
"""
|
|
18
|
+
# Enum members
|
|
19
|
+
ELEM = "ELEM"
|
|
20
|
+
SEC = "SEC"
|
|
21
|
+
HS = "HS"
|
|
22
|
+
SCOL = "SCOL"
|
|
23
|
+
ASSOC = "ASSOC"
|
|
24
|
+
BD = "BD"
|
|
25
|
+
PB = "PB"
|
|
26
|
+
GD = "GD"
|
|
27
|
+
POSTG = "POSTG"
|
|
28
|
+
|
|
29
|
+
# Set metadata after class creation
|
|
30
|
+
EducationLevel._metadata = {
|
|
31
|
+
"ELEM": {'description': 'Elementary School', 'meaning': 'HL7:v3-EducationLevel#ELEM'},
|
|
32
|
+
"SEC": {'description': 'Some secondary or high school education', 'meaning': 'HL7:v3-EducationLevel#SEC'},
|
|
33
|
+
"HS": {'description': 'High School or secondary school degree complete', 'meaning': 'HL7:v3-EducationLevel#HS'},
|
|
34
|
+
"SCOL": {'description': 'Some College education', 'meaning': 'HL7:v3-EducationLevel#SCOL'},
|
|
35
|
+
"ASSOC": {'description': "Associate's or technical degree complete", 'meaning': 'HL7:v3-EducationLevel#ASSOC'},
|
|
36
|
+
"BD": {'description': 'College or baccalaureate degree complete', 'meaning': 'HL7:v3-EducationLevel#BD'},
|
|
37
|
+
"PB": {'description': 'Some post-baccalaureate education', 'meaning': 'HL7:v3-EducationLevel#PB'},
|
|
38
|
+
"GD": {'description': 'Graduate or professional Degree complete', 'meaning': 'HL7:v3-EducationLevel#GD'},
|
|
39
|
+
"POSTG": {'description': 'Doctoral or post graduate education', 'meaning': 'HL7:v3-EducationLevel#POSTG'},
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
class MaritalStatus(RichEnum):
|
|
43
|
+
"""
|
|
44
|
+
The domestic partnership status of a person
|
|
45
|
+
"""
|
|
46
|
+
# Enum members
|
|
47
|
+
ANNULLED = "ANNULLED"
|
|
48
|
+
DIVORCED = "DIVORCED"
|
|
49
|
+
INTERLOCUTORY = "INTERLOCUTORY"
|
|
50
|
+
LEGALLY_SEPARATED = "LEGALLY_SEPARATED"
|
|
51
|
+
MARRIED = "MARRIED"
|
|
52
|
+
COMMON_LAW = "COMMON_LAW"
|
|
53
|
+
POLYGAMOUS = "POLYGAMOUS"
|
|
54
|
+
DOMESTIC_PARTNER = "DOMESTIC_PARTNER"
|
|
55
|
+
UNMARRIED = "UNMARRIED"
|
|
56
|
+
NEVER_MARRIED = "NEVER_MARRIED"
|
|
57
|
+
WIDOWED = "WIDOWED"
|
|
58
|
+
UNKNOWN = "UNKNOWN"
|
|
59
|
+
|
|
60
|
+
# Set metadata after class creation
|
|
61
|
+
MaritalStatus._metadata = {
|
|
62
|
+
"ANNULLED": {'description': 'Marriage contract has been declared null and to not have existed', 'meaning': 'HL7:marital-status#A'},
|
|
63
|
+
"DIVORCED": {'description': 'Marriage contract has been declared dissolved and inactive', 'meaning': 'HL7:marital-status#D'},
|
|
64
|
+
"INTERLOCUTORY": {'description': 'Subject to an Interlocutory Decree', 'meaning': 'HL7:marital-status#I'},
|
|
65
|
+
"LEGALLY_SEPARATED": {'description': 'Legally Separated', 'meaning': 'HL7:marital-status#L'},
|
|
66
|
+
"MARRIED": {'description': 'A current marriage contract is active', 'meaning': 'HL7:marital-status#M'},
|
|
67
|
+
"COMMON_LAW": {'description': "Marriage recognized in some jurisdictions based on parties' agreement", 'meaning': 'HL7:marital-status#C'},
|
|
68
|
+
"POLYGAMOUS": {'description': 'More than 1 current spouse', 'meaning': 'HL7:marital-status#P'},
|
|
69
|
+
"DOMESTIC_PARTNER": {'description': 'Person declares that a domestic partner relationship exists', 'meaning': 'HL7:marital-status#T'},
|
|
70
|
+
"UNMARRIED": {'description': 'Currently not in a marriage contract', 'meaning': 'HL7:marital-status#U'},
|
|
71
|
+
"NEVER_MARRIED": {'description': 'No marriage contract has ever been entered', 'meaning': 'HL7:marital-status#S'},
|
|
72
|
+
"WIDOWED": {'description': 'The spouse has died', 'meaning': 'HL7:marital-status#W'},
|
|
73
|
+
"UNKNOWN": {'description': 'A proper value is applicable, but not known', 'meaning': 'HL7:marital-status#UNK'},
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
class EmploymentStatus(RichEnum):
|
|
77
|
+
"""
|
|
78
|
+
Employment status of a person
|
|
79
|
+
"""
|
|
80
|
+
# Enum members
|
|
81
|
+
FULL_TIME_EMPLOYED = "FULL_TIME_EMPLOYED"
|
|
82
|
+
PART_TIME_EMPLOYED = "PART_TIME_EMPLOYED"
|
|
83
|
+
UNEMPLOYED = "UNEMPLOYED"
|
|
84
|
+
SELF_EMPLOYED = "SELF_EMPLOYED"
|
|
85
|
+
RETIRED = "RETIRED"
|
|
86
|
+
ACTIVE_MILITARY = "ACTIVE_MILITARY"
|
|
87
|
+
CONTRACT = "CONTRACT"
|
|
88
|
+
PER_DIEM = "PER_DIEM"
|
|
89
|
+
LEAVE_OF_ABSENCE = "LEAVE_OF_ABSENCE"
|
|
90
|
+
OTHER = "OTHER"
|
|
91
|
+
TEMPORARILY_UNEMPLOYED = "TEMPORARILY_UNEMPLOYED"
|
|
92
|
+
UNKNOWN = "UNKNOWN"
|
|
93
|
+
|
|
94
|
+
# Set metadata after class creation
|
|
95
|
+
EmploymentStatus._metadata = {
|
|
96
|
+
"FULL_TIME_EMPLOYED": {'description': 'Full time employed', 'meaning': 'HL7:v2-0066#1'},
|
|
97
|
+
"PART_TIME_EMPLOYED": {'description': 'Part time employed', 'meaning': 'HL7:v2-0066#2'},
|
|
98
|
+
"UNEMPLOYED": {'description': 'Unemployed', 'meaning': 'HL7:v2-0066#3'},
|
|
99
|
+
"SELF_EMPLOYED": {'description': 'Self-employed', 'meaning': 'HL7:v2-0066#4'},
|
|
100
|
+
"RETIRED": {'description': 'Retired', 'meaning': 'HL7:v2-0066#5'},
|
|
101
|
+
"ACTIVE_MILITARY": {'description': 'On active military duty', 'meaning': 'HL7:v2-0066#6'},
|
|
102
|
+
"CONTRACT": {'description': 'Contract, per diem', 'meaning': 'HL7:v2-0066#C'},
|
|
103
|
+
"PER_DIEM": {'description': 'Per Diem', 'meaning': 'HL7:v2-0066#D'},
|
|
104
|
+
"LEAVE_OF_ABSENCE": {'description': 'Leave of absence', 'meaning': 'HL7:v2-0066#L'},
|
|
105
|
+
"OTHER": {'description': 'Other', 'meaning': 'HL7:v2-0066#O'},
|
|
106
|
+
"TEMPORARILY_UNEMPLOYED": {'description': 'Temporarily unemployed', 'meaning': 'HL7:v2-0066#T'},
|
|
107
|
+
"UNKNOWN": {'description': 'Unknown', 'meaning': 'HL7:v2-0066#9'},
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
class HousingStatus(RichEnum):
|
|
111
|
+
"""
|
|
112
|
+
Housing status of patients per UDS Plus HRSA standards
|
|
113
|
+
"""
|
|
114
|
+
# Enum members
|
|
115
|
+
HOMELESS_SHELTER = "HOMELESS_SHELTER"
|
|
116
|
+
TRANSITIONAL = "TRANSITIONAL"
|
|
117
|
+
DOUBLING_UP = "DOUBLING_UP"
|
|
118
|
+
STREET = "STREET"
|
|
119
|
+
PERMANENT_SUPPORTIVE_HOUSING = "PERMANENT_SUPPORTIVE_HOUSING"
|
|
120
|
+
OTHER = "OTHER"
|
|
121
|
+
UNKNOWN = "UNKNOWN"
|
|
122
|
+
|
|
123
|
+
# Set metadata after class creation
|
|
124
|
+
HousingStatus._metadata = {
|
|
125
|
+
"HOMELESS_SHELTER": {'description': 'Patients who are living in a homeless shelter', 'meaning': 'HL7:udsplus-housing-status-codes#homeless-shelter'},
|
|
126
|
+
"TRANSITIONAL": {'description': 'Patients who do not have a house and are in a transitional state', 'meaning': 'HL7:udsplus-housing-status-codes#transitional'},
|
|
127
|
+
"DOUBLING_UP": {'description': 'Patients who are doubling up with others', 'meaning': 'HL7:udsplus-housing-status-codes#doubling-up'},
|
|
128
|
+
"STREET": {'description': 'Patients who do not have a house and are living on the streets', 'meaning': 'HL7:udsplus-housing-status-codes#street'},
|
|
129
|
+
"PERMANENT_SUPPORTIVE_HOUSING": {'description': 'Patients who are living in a permanent supportive housing', 'meaning': 'HL7:udsplus-housing-status-codes#permanent-supportive-housing'},
|
|
130
|
+
"OTHER": {'description': 'Patients who have other kinds of accommodation', 'meaning': 'HL7:udsplus-housing-status-codes#other'},
|
|
131
|
+
"UNKNOWN": {'description': 'Patients with Unknown accommodation', 'meaning': 'HL7:udsplus-housing-status-codes#unknown'},
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
class GenderIdentity(RichEnum):
|
|
135
|
+
"""
|
|
136
|
+
Gender identity codes indicating an individual's personal sense of gender
|
|
137
|
+
"""
|
|
138
|
+
# Enum members
|
|
139
|
+
FEMALE = "FEMALE"
|
|
140
|
+
MALE = "MALE"
|
|
141
|
+
NON_BINARY = "NON_BINARY"
|
|
142
|
+
ASKED_DECLINED = "ASKED_DECLINED"
|
|
143
|
+
UNKNOWN = "UNKNOWN"
|
|
144
|
+
|
|
145
|
+
# Set metadata after class creation
|
|
146
|
+
GenderIdentity._metadata = {
|
|
147
|
+
"FEMALE": {'description': 'Identifies as female gender (finding)', 'meaning': 'SNOMED:446141000124107'},
|
|
148
|
+
"MALE": {'description': 'Identifies as male gender (finding)', 'meaning': 'SNOMED:446151000124109'},
|
|
149
|
+
"NON_BINARY": {'description': 'Identifies as gender nonbinary', 'meaning': 'SNOMED:33791000087105'},
|
|
150
|
+
"ASKED_DECLINED": {'description': 'Asked But Declined', 'meaning': 'HL7:asked-declined'},
|
|
151
|
+
"UNKNOWN": {'description': 'A proper value is applicable, but not known', 'meaning': 'HL7:UNK'},
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
class OmbRaceCategory(RichEnum):
|
|
155
|
+
"""
|
|
156
|
+
Office of Management and Budget (OMB) race category codes
|
|
157
|
+
"""
|
|
158
|
+
# Enum members
|
|
159
|
+
AMERICAN_INDIAN_OR_ALASKA_NATIVE = "AMERICAN_INDIAN_OR_ALASKA_NATIVE"
|
|
160
|
+
ASIAN = "ASIAN"
|
|
161
|
+
BLACK_OR_AFRICAN_AMERICAN = "BLACK_OR_AFRICAN_AMERICAN"
|
|
162
|
+
NATIVE_HAWAIIAN_OR_OTHER_PACIFIC_ISLANDER = "NATIVE_HAWAIIAN_OR_OTHER_PACIFIC_ISLANDER"
|
|
163
|
+
WHITE = "WHITE"
|
|
164
|
+
OTHER_RACE = "OTHER_RACE"
|
|
165
|
+
ASKED_BUT_UNKNOWN = "ASKED_BUT_UNKNOWN"
|
|
166
|
+
UNKNOWN = "UNKNOWN"
|
|
167
|
+
|
|
168
|
+
# Set metadata after class creation
|
|
169
|
+
OmbRaceCategory._metadata = {
|
|
170
|
+
"AMERICAN_INDIAN_OR_ALASKA_NATIVE": {'description': 'American Indian or Alaska Native', 'meaning': 'HL7:CDCREC#1002-5'},
|
|
171
|
+
"ASIAN": {'description': 'Asian', 'meaning': 'HL7:CDCREC#2028-9'},
|
|
172
|
+
"BLACK_OR_AFRICAN_AMERICAN": {'description': 'Black or African American', 'meaning': 'HL7:CDCREC#2054-5'},
|
|
173
|
+
"NATIVE_HAWAIIAN_OR_OTHER_PACIFIC_ISLANDER": {'description': 'Native Hawaiian or Other Pacific Islander', 'meaning': 'HL7:CDCREC#2076-8'},
|
|
174
|
+
"WHITE": {'description': 'White', 'meaning': 'HL7:CDCREC#2106-3'},
|
|
175
|
+
"OTHER_RACE": {'description': 'Other Race (discouraged for statistical analysis)', 'meaning': 'HL7:CDCREC#2131-1'},
|
|
176
|
+
"ASKED_BUT_UNKNOWN": {'description': 'asked but unknown', 'meaning': 'HL7:ASKU'},
|
|
177
|
+
"UNKNOWN": {'description': 'unknown', 'meaning': 'HL7:UNK'},
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
class OmbEthnicityCategory(RichEnum):
|
|
181
|
+
"""
|
|
182
|
+
Office of Management and Budget (OMB) ethnicity category codes
|
|
183
|
+
"""
|
|
184
|
+
# Enum members
|
|
185
|
+
HISPANIC_OR_LATINO = "HISPANIC_OR_LATINO"
|
|
186
|
+
NOT_HISPANIC_OR_LATINO = "NOT_HISPANIC_OR_LATINO"
|
|
187
|
+
ASKED_BUT_UNKNOWN = "ASKED_BUT_UNKNOWN"
|
|
188
|
+
UNKNOWN = "UNKNOWN"
|
|
189
|
+
|
|
190
|
+
# Set metadata after class creation
|
|
191
|
+
OmbEthnicityCategory._metadata = {
|
|
192
|
+
"HISPANIC_OR_LATINO": {'description': 'Hispanic or Latino', 'meaning': 'HL7:CDCREC#2135-2'},
|
|
193
|
+
"NOT_HISPANIC_OR_LATINO": {'description': 'Not Hispanic or Latino', 'meaning': 'HL7:CDCREC#2186-5'},
|
|
194
|
+
"ASKED_BUT_UNKNOWN": {'description': 'asked but unknown', 'meaning': 'HL7:ASKU'},
|
|
195
|
+
"UNKNOWN": {'description': 'unknown', 'meaning': 'HL7:UNK'},
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
__all__ = [
|
|
199
|
+
"EducationLevel",
|
|
200
|
+
"MaritalStatus",
|
|
201
|
+
"EmploymentStatus",
|
|
202
|
+
"HousingStatus",
|
|
203
|
+
"GenderIdentity",
|
|
204
|
+
"OmbRaceCategory",
|
|
205
|
+
"OmbEthnicityCategory",
|
|
206
|
+
]
|