Enum Class ElgaAlcoholConsumption
java.lang.Object
java.lang.Enum<ElgaAlcoholConsumption>
org.projecthusky.cda.elga.generated.artdecor.ps.enums.ElgaAlcoholConsumption
- All Implemented Interfaces:
Serializable,Comparable<ElgaAlcoholConsumption>,Constable,CodedMetadataEnumInterface,TranslatedEnumInterface,ValueSetEnumInterface
@Generated(value="org.projecthusky.codegenerator.ch.valuesets.UpdateValueSets",
date="2022-03-01")
public enum ElgaAlcoholConsumption
extends Enum<ElgaAlcoholConsumption>
implements ValueSetEnumInterface
Enumeration of ELGA_AlcoholConsumption values
EN: Value Set Frequency of Alcohol Consumption.
DE: No designation found.
FR: No designation found.
IT: No designation found.
Identifier: 1.2.40.0.34.6.0.10.30
Effective date: 2019-01-25 21:52
Version: null
Status: DRAFT
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionEN: Alcohol consumption not known.EN: 4 or more times a week.EN: Monthly or less.EN: Never.EN: 2-3 times a week.EN: 2-4 times a month. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringEN: Code for Alcohol consumption not known.static final StringEN: Code for 4 or more times a week.static final StringEN: Code for Monthly or less.static final StringEN: Code for Never.static final StringEN: Code for 2-3 times a week.static final StringEN: Code for 2-4 times a month.static final StringIdentifier of the value set.static final StringName of the value set. -
Method Summary
Modifier and TypeMethodDescription@NonNull StringGets the code system identifier.@NonNull StringGets the code system name.@NonNull StringGets the code value as a string.@NonNull StringgetDisplayName(@Nullable LanguageCode languageCode) Gets the display name defined by the language param.static @Nullable ElgaAlcoholConsumptionGets the Enum with a given code.@NonNull StringGets the value set identifier.@NonNull StringGets the value set name.static booleanisEnumOfValueSet(@Nullable String enumName) Checks if a given enum is part of this value set.static booleanisInValueSet(@Nullable String codeValue) Checks if a given code value is in this value set.static ElgaAlcoholConsumptionReturns the enum constant of this class with the specified name.static ElgaAlcoholConsumption[]values()Returns an array containing the constants of this enum class, in the order they are declared.Methods inherited from class java.lang.Enum
clone, compareTo, describeConstable, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOfMethods inherited from interface org.projecthusky.common.enums.TranslatedEnumInterface
getDisplayNameMethods inherited from interface org.projecthusky.common.enums.ValueSetEnumInterface
getCD, getCD, getCE, getCE, getCode, getCode, getCodedString, getIpfCode, isContainedIn, isEqualTo, name
-
Enum Constant Details
-
ALCOHOL_CONSUMPTION_NOT_KNOWN
EN: Alcohol consumption not known. -
FOUR_OR_MORE_TIMES_A_WEEK
EN: 4 or more times a week. -
MONTHLY_OR_LESS
EN: Monthly or less. -
NEVER
EN: Never. -
TWO_3_TIMES_A_WEEK
EN: 2-3 times a week. -
TWO_4_TIMES_A_MONTH
EN: 2-4 times a month.
-
-
Field Details
-
ALCOHOL_CONSUMPTION_NOT_KNOWN_CODE
EN: Code for Alcohol consumption not known.- See Also:
-
FOUR_OR_MORE_TIMES_A_WEEK_CODE
EN: Code for 4 or more times a week.- See Also:
-
MONTHLY_OR_LESS_CODE
EN: Code for Monthly or less.- See Also:
-
NEVER_CODE
EN: Code for Never.- See Also:
-
TWO_3_TIMES_A_WEEK_CODE
EN: Code for 2-3 times a week.- See Also:
-
TWO_4_TIMES_A_MONTH_CODE
EN: Code for 2-4 times a month.- See Also:
-
VALUE_SET_ID
Identifier of the value set.- See Also:
-
VALUE_SET_NAME
Name of the value set.- See Also:
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
getEnum
Gets the Enum with a given code.- Parameters:
code- The code value.- Returns:
- the enum value found or
null.
-
isEnumOfValueSet
Checks if a given enum is part of this value set.- Parameters:
enumName- The name of the enum.- Returns:
trueif the name is found in this value set,falseotherwise.
-
isInValueSet
Checks if a given code value is in this value set.- Parameters:
codeValue- The code value.- Returns:
trueif the value is found in this value set,falseotherwise.
-
getCodeSystemId
Gets the code system identifier.- Specified by:
getCodeSystemIdin interfaceValueSetEnumInterface- Returns:
- the code system identifier.
-
getCodeSystemName
Gets the code system name.- Specified by:
getCodeSystemNamein interfaceValueSetEnumInterface- Returns:
- the code system name.
-
getCodeValue
Gets the code value as a string.- Specified by:
getCodeValuein interfaceValueSetEnumInterface- Returns:
- the code value.
-
getDisplayName
Gets the display name defined by the language param.- Specified by:
getDisplayNamein interfaceTranslatedEnumInterface- Parameters:
languageCode- The language code to get the display name for,nullto get the default display name.- Returns:
- the display name in the desired language.
-
getValueSetId
Gets the value set identifier.- Specified by:
getValueSetIdin interfaceValueSetEnumInterface- Returns:
- the value set identifier.
-
getValueSetName
Gets the value set name.- Specified by:
getValueSetNamein interfaceValueSetEnumInterface- Returns:
- the value set name.
-