Class Expression

  • All Implemented Interfaces:
    ca.uhn.fhir.model.api.IElement, Serializable, org.hl7.fhir.instance.model.api.IBase, org.hl7.fhir.instance.model.api.IBaseDatatype, org.hl7.fhir.instance.model.api.IBaseElement, org.hl7.fhir.instance.model.api.IBaseHasExtensions, org.hl7.fhir.instance.model.api.ICompositeType

    public class Expression
    extends Type
    implements org.hl7.fhir.instance.model.api.ICompositeType
    A expression that is evaluated in a specified context and returns a value. The context of use of the expression must specify the context in which the expression is evaluated, and how the result of the expression is used.
    See Also:
    Serialized Form
    • Field Detail

      • description

        protected StringType description
        A brief, natural language description of the condition that effectively communicates the intended semantics.
      • name

        protected IdType name
        A short name assigned to the expression to allow for multiple reuse of the expression in the context where it is defined.
      • language

        protected CodeType language
        The media type of the language for the expression.
      • expression

        protected StringType expression
        An expression in the specified language that returns a value.
      • reference

        protected UriType reference
        A URI that defines where the expression is found.
    • Method Detail

      • getDescriptionElement

        public StringType getDescriptionElement()
        Returns:
        description (A brief, natural language description of the condition that effectively communicates the intended semantics.). This is the underlying object with id, value and extensions. The accessor "getDescription" gives direct access to the value
      • setDescriptionElement

        public Expression setDescriptionElement​(StringType value)
        Parameters:
        value - description (A brief, natural language description of the condition that effectively communicates the intended semantics.). This is the underlying object with id, value and extensions. The accessor "getDescription" gives direct access to the value
      • getDescription

        public String getDescription()
        Returns:
        A brief, natural language description of the condition that effectively communicates the intended semantics.
      • setDescription

        public Expression setDescription​(String value)
        Parameters:
        value - A brief, natural language description of the condition that effectively communicates the intended semantics.
      • getNameElement

        public IdType getNameElement()
        Returns:
        name (A short name assigned to the expression to allow for multiple reuse of the expression in the context where it is defined.). This is the underlying object with id, value and extensions. The accessor "getName" gives direct access to the value
      • hasName

        public boolean hasName()
      • setNameElement

        public Expression setNameElement​(IdType value)
        Parameters:
        value - name (A short name assigned to the expression to allow for multiple reuse of the expression in the context where it is defined.). This is the underlying object with id, value and extensions. The accessor "getName" gives direct access to the value
      • getName

        public String getName()
        Returns:
        A short name assigned to the expression to allow for multiple reuse of the expression in the context where it is defined.
      • setName

        public Expression setName​(String value)
        Parameters:
        value - A short name assigned to the expression to allow for multiple reuse of the expression in the context where it is defined.
      • getLanguageElement

        public CodeType getLanguageElement()
        Returns:
        language (The media type of the language for the expression.). This is the underlying object with id, value and extensions. The accessor "getLanguage" gives direct access to the value
      • setLanguageElement

        public Expression setLanguageElement​(CodeType value)
        Parameters:
        value - language (The media type of the language for the expression.). This is the underlying object with id, value and extensions. The accessor "getLanguage" gives direct access to the value
      • getLanguage

        public String getLanguage()
        Returns:
        The media type of the language for the expression.
      • getExpressionElement

        public StringType getExpressionElement()
        Returns:
        expression (An expression in the specified language that returns a value.). This is the underlying object with id, value and extensions. The accessor "getExpression" gives direct access to the value
      • setExpressionElement

        public Expression setExpressionElement​(StringType value)
        Parameters:
        value - expression (An expression in the specified language that returns a value.). This is the underlying object with id, value and extensions. The accessor "getExpression" gives direct access to the value
      • getExpression

        public String getExpression()
        Returns:
        An expression in the specified language that returns a value.
      • setExpression

        public Expression setExpression​(String value)
        Parameters:
        value - An expression in the specified language that returns a value.
      • getReferenceElement

        public UriType getReferenceElement()
        Returns:
        reference (A URI that defines where the expression is found.). This is the underlying object with id, value and extensions. The accessor "getReference" gives direct access to the value
      • setReferenceElement

        public Expression setReferenceElement​(UriType value)
        Parameters:
        value - reference (A URI that defines where the expression is found.). This is the underlying object with id, value and extensions. The accessor "getReference" gives direct access to the value
      • getReference

        public String getReference()
        Returns:
        A URI that defines where the expression is found.
      • getProperty

        public Base[] getProperty​(int hash,
                                  String name,
                                  boolean checkValid)
                           throws org.hl7.fhir.exceptions.FHIRException
        Overrides:
        getProperty in class Element
        Throws:
        org.hl7.fhir.exceptions.FHIRException
      • addChild

        public Base addChild​(String name)
                      throws org.hl7.fhir.exceptions.FHIRException
        Overrides:
        addChild in class Element
        Throws:
        org.hl7.fhir.exceptions.FHIRException
      • fhirType

        public String fhirType()
        Specified by:
        fhirType in interface org.hl7.fhir.instance.model.api.IBase
        Overrides:
        fhirType in class Element
      • isEmpty

        public boolean isEmpty()
        Specified by:
        isEmpty in interface org.hl7.fhir.instance.model.api.IBase
        Overrides:
        isEmpty in class Element