Class DiscriminatorType

  • All Implemented Interfaces:
    Visitable

    @Generated("com.ibm.fhir.tools.CodeGenerator")
    public class DiscriminatorType
    extends Code
    • Field Detail

      • VALUE

        public static final DiscriminatorType VALUE
        Value

        The slices have different values in the nominated element.

      • EXISTS

        public static final DiscriminatorType EXISTS
        Exists

        The slices are differentiated by the presence or absence of the nominated element.

      • PATTERN

        public static final DiscriminatorType PATTERN
        Pattern

        The slices have different values in the nominated element, as determined by testing them against the applicable ElementDefinition.pattern[x].

      • TYPE

        public static final DiscriminatorType TYPE
        Type

        The slices are differentiated by type of the nominated element.

      • PROFILE

        public static final DiscriminatorType PROFILE
        Profile

        The slices are differentiated by conformance of the nominated element to a specified profile. Note that if the path specifies .resolve() then the profile is the target profile on the reference. In this case, validation by the possible profiles is required to differentiate the slices.

    • Method Detail

      • of

        public static DiscriminatorType of​(String value)
        Factory method for creating DiscriminatorType objects from a passed string value.
        Parameters:
        value - A string that matches one of the allowed code values
        Throws:
        IllegalArgumentException - If the passed string cannot be parsed into an allowed code value
      • string

        public static String string​(String value)
        Inherited factory method for creating DiscriminatorType objects from a passed string value.
        Parameters:
        value - A string that matches one of the allowed code values
        Throws:
        IllegalArgumentException - If the passed string cannot be parsed into an allowed code value
      • code

        public static Code code​(String value)
        Inherited factory method for creating DiscriminatorType objects from a passed string value.
        Parameters:
        value - A string that matches one of the allowed code values
        Throws:
        IllegalArgumentException - If the passed string cannot be parsed into an allowed code value
      • equals

        public boolean equals​(Object obj)
        Overrides:
        equals in class Code
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Code