Class Questionnaire.QuestionnaireItemEnableWhenComponent

  • All Implemented Interfaces:
    ca.uhn.fhir.model.api.IElement, Serializable, org.hl7.fhir.instance.model.api.IBase, org.hl7.fhir.instance.model.api.IBaseBackboneElement, org.hl7.fhir.instance.model.api.IBaseElement, org.hl7.fhir.instance.model.api.IBaseHasExtensions, org.hl7.fhir.instance.model.api.IBaseHasModifierExtensions
    Enclosing class:
    Questionnaire

    public static class Questionnaire.QuestionnaireItemEnableWhenComponent
    extends BackboneElement
    implements org.hl7.fhir.instance.model.api.IBaseBackboneElement
    See Also:
    Serialized Form
    • Field Detail

      • question

        protected StringType question
        The linkId for the question whose answer (or lack of answer) governs whether this item is enabled.
      • answer

        protected DataType answer
        A value that the referenced question is tested using the specified operator in order for the item to be enabled. If there are multiple answers, a match on any of the answers suffices. If different behavior is desired (all must match, at least 2 must match, etc.), consider using the enableWhenExpression extension.
    • Method Detail

      • getQuestionElement

        public StringType getQuestionElement()
        Returns:
        question (The linkId for the question whose answer (or lack of answer) governs whether this item is enabled.). This is the underlying object with id, value and extensions. The accessor "getQuestion" gives direct access to the value
      • getQuestion

        public String getQuestion()
        Returns:
        The linkId for the question whose answer (or lack of answer) governs whether this item is enabled.
      • getAnswer

        public DataType getAnswer()
        Returns:
        answer (A value that the referenced question is tested using the specified operator in order for the item to be enabled. If there are multiple answers, a match on any of the answers suffices. If different behavior is desired (all must match, at least 2 must match, etc.), consider using the enableWhenExpression extension.)
      • getAnswerBooleanType

        public BooleanType getAnswerBooleanType()
                                         throws org.hl7.fhir.exceptions.FHIRException
        Returns:
        answer (A value that the referenced question is tested using the specified operator in order for the item to be enabled. If there are multiple answers, a match on any of the answers suffices. If different behavior is desired (all must match, at least 2 must match, etc.), consider using the enableWhenExpression extension.)
        Throws:
        org.hl7.fhir.exceptions.FHIRException
      • getAnswerDecimalType

        public DecimalType getAnswerDecimalType()
                                         throws org.hl7.fhir.exceptions.FHIRException
        Returns:
        answer (A value that the referenced question is tested using the specified operator in order for the item to be enabled. If there are multiple answers, a match on any of the answers suffices. If different behavior is desired (all must match, at least 2 must match, etc.), consider using the enableWhenExpression extension.)
        Throws:
        org.hl7.fhir.exceptions.FHIRException
      • getAnswerIntegerType

        public IntegerType getAnswerIntegerType()
                                         throws org.hl7.fhir.exceptions.FHIRException
        Returns:
        answer (A value that the referenced question is tested using the specified operator in order for the item to be enabled. If there are multiple answers, a match on any of the answers suffices. If different behavior is desired (all must match, at least 2 must match, etc.), consider using the enableWhenExpression extension.)
        Throws:
        org.hl7.fhir.exceptions.FHIRException
      • getAnswerDateType

        public DateType getAnswerDateType()
                                   throws org.hl7.fhir.exceptions.FHIRException
        Returns:
        answer (A value that the referenced question is tested using the specified operator in order for the item to be enabled. If there are multiple answers, a match on any of the answers suffices. If different behavior is desired (all must match, at least 2 must match, etc.), consider using the enableWhenExpression extension.)
        Throws:
        org.hl7.fhir.exceptions.FHIRException
      • getAnswerDateTimeType

        public DateTimeType getAnswerDateTimeType()
                                           throws org.hl7.fhir.exceptions.FHIRException
        Returns:
        answer (A value that the referenced question is tested using the specified operator in order for the item to be enabled. If there are multiple answers, a match on any of the answers suffices. If different behavior is desired (all must match, at least 2 must match, etc.), consider using the enableWhenExpression extension.)
        Throws:
        org.hl7.fhir.exceptions.FHIRException
      • getAnswerTimeType

        public TimeType getAnswerTimeType()
                                   throws org.hl7.fhir.exceptions.FHIRException
        Returns:
        answer (A value that the referenced question is tested using the specified operator in order for the item to be enabled. If there are multiple answers, a match on any of the answers suffices. If different behavior is desired (all must match, at least 2 must match, etc.), consider using the enableWhenExpression extension.)
        Throws:
        org.hl7.fhir.exceptions.FHIRException
      • getAnswerStringType

        public StringType getAnswerStringType()
                                       throws org.hl7.fhir.exceptions.FHIRException
        Returns:
        answer (A value that the referenced question is tested using the specified operator in order for the item to be enabled. If there are multiple answers, a match on any of the answers suffices. If different behavior is desired (all must match, at least 2 must match, etc.), consider using the enableWhenExpression extension.)
        Throws:
        org.hl7.fhir.exceptions.FHIRException
      • getAnswerCoding

        public Coding getAnswerCoding()
                               throws org.hl7.fhir.exceptions.FHIRException
        Returns:
        answer (A value that the referenced question is tested using the specified operator in order for the item to be enabled. If there are multiple answers, a match on any of the answers suffices. If different behavior is desired (all must match, at least 2 must match, etc.), consider using the enableWhenExpression extension.)
        Throws:
        org.hl7.fhir.exceptions.FHIRException
      • getAnswerQuantity

        public Quantity getAnswerQuantity()
                                   throws org.hl7.fhir.exceptions.FHIRException
        Returns:
        answer (A value that the referenced question is tested using the specified operator in order for the item to be enabled. If there are multiple answers, a match on any of the answers suffices. If different behavior is desired (all must match, at least 2 must match, etc.), consider using the enableWhenExpression extension.)
        Throws:
        org.hl7.fhir.exceptions.FHIRException
      • getAnswerReference

        public Reference getAnswerReference()
                                     throws org.hl7.fhir.exceptions.FHIRException
        Returns:
        answer (A value that the referenced question is tested using the specified operator in order for the item to be enabled. If there are multiple answers, a match on any of the answers suffices. If different behavior is desired (all must match, at least 2 must match, etc.), consider using the enableWhenExpression extension.)
        Throws:
        org.hl7.fhir.exceptions.FHIRException
      • setAnswer

        public Questionnaire.QuestionnaireItemEnableWhenComponent setAnswer​(DataType value)
        Parameters:
        value - answer (A value that the referenced question is tested using the specified operator in order for the item to be enabled. If there are multiple answers, a match on any of the answers suffices. If different behavior is desired (all must match, at least 2 must match, etc.), consider using the enableWhenExpression extension.)
      • isEmpty

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