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>

public enum RelativeToMeal extends Enum<RelativeToMeal> implements EMediplanEnum<Integer>
  • Enum Constant Details

  • Method Details

    • values

      public static RelativeToMeal[] 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

      public static RelativeToMeal valueOf(String name)
      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 name
      NullPointerException - if the argument is null
    • fromCoding

      public static @Nullable RelativeToMeal fromCoding(org.hl7.fhir.r4.model.Coding coding)
      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. See fromCoding(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.