Enum Class RelativeToMeal
java.lang.Object
java.lang.Enum<RelativeToMeal>
org.projecthusky.fhir.emed.ch.epr.model.emediplan.enums.RelativeToMeal
- All Implemented Interfaces:
Serializable
,Comparable<RelativeToMeal>
,Constable
,EMediplanEnum<Integer>
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescription -
Method Summary
Modifier and TypeMethodDescriptionstatic @Nullable RelativeToMeal
fromCodeableConcept
(org.hl7.fhir.r4.model.CodeableConcept codeableConcept) Trie to convert the received FHIR codeable concept to a RelativeToMeal enum value.static @Nullable RelativeToMeal
fromCoding
(org.hl7.fhir.r4.model.Coding coding) Tries to convert the received FHIR coding to a RelativeToMeal enum value.static RelativeToMeal
Returns the enum constant of this class with the specified name.static RelativeToMeal[]
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, valueOf
Methods inherited from interface org.projecthusky.fhir.emed.ch.epr.model.emediplan.enums.EMediplanEnum
getCode
-
Enum Constant Details
-
BEFORE
-
DURING
-
AFTER
-
EMPTY_STOMACH
-
WITH_A_HIGH_FAT_MEAL
-
WITH_A_LIGHT_MEAL
-
WITH_A_MAIN_MEAL
-
-
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
-
fromCoding
Tries to convert the received FHIR coding to a RelativeToMeal enum value. This method has implemented its logic based on the example binding value set only.- Parameters:
coding
- The coding to be converted.- Returns:
- The equivalent RelativeToMeal if it could be converted,
null
otherwise.
-
fromCodeableConcept
public static @Nullable RelativeToMeal fromCodeableConcept(org.hl7.fhir.r4.model.CodeableConcept codeableConcept) Trie to convert the received FHIR codeable concept to a RelativeToMeal enum value. SeefromCoding(Coding)
for information on the conversion of a single coding.Once a matching coding is found, the method returns the converted value immediately.
- Parameters:
codeableConcept
- The codeable concept to be converted.- Returns:
- The RelativeToMeal enum value, if the codeable concept could be converted,
null
otherwise.
-