Class ExtensionContextType

  • All Implemented Interfaces:
    Visitable

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

      • FHIRPATH

        public static final ExtensionContextType FHIRPATH
        FHIRPath

        The context is all elements that match the FHIRPath query found in the expression.

      • ELEMENT

        public static final ExtensionContextType ELEMENT
        Element ID

        The context is any element that has an ElementDefinition.id that matches that found in the expression. This includes ElementDefinition Ids that have slicing identifiers. The full path for the element is [url]#[elementid]. If there is no #, the Element id is one defined in the base specification.

      • EXTENSION

        public static final ExtensionContextType EXTENSION
        Extension URL

        The context is a particular extension from a particular StructureDefinition, and the expression is just a uri that identifies the extension.

    • Method Detail

      • of

        public static ExtensionContextType of​(String value)
        Factory method for creating ExtensionContextType 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 ExtensionContextType 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 ExtensionContextType 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