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.
      • answered

        protected BooleanType answered
        If present, indicates that this item should be enabled only if the specified question is answered or not answered.
      • answer

        protected Type answer
        If present, then the answer for the referenced question must match this answer for all components present in the enableWhen.answer.
    • 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.
      • getAnsweredElement

        public BooleanType getAnsweredElement()
        Returns:
        answered (If present, indicates that this item should be enabled only if the specified question is answered or not answered.). This is the underlying object with id, value and extensions. The accessor "getAnswered" gives direct access to the value
      • getAnswered

        public boolean getAnswered()
        Returns:
        If present, indicates that this item should be enabled only if the specified question is answered or not answered.
      • getAnswer

        public Type getAnswer()
        Returns:
        answer (If present, then the answer for the referenced question must match this answer for all components present in the enableWhen.answer.)
      • getAnswerBooleanType

        public BooleanType getAnswerBooleanType()
                                         throws org.hl7.fhir.exceptions.FHIRException
        Returns:
        answer (If present, then the answer for the referenced question must match this answer for all components present in the enableWhen.answer.)
        Throws:
        org.hl7.fhir.exceptions.FHIRException
      • getAnswerDecimalType

        public DecimalType getAnswerDecimalType()
                                         throws org.hl7.fhir.exceptions.FHIRException
        Returns:
        answer (If present, then the answer for the referenced question must match this answer for all components present in the enableWhen.answer.)
        Throws:
        org.hl7.fhir.exceptions.FHIRException
      • getAnswerIntegerType

        public IntegerType getAnswerIntegerType()
                                         throws org.hl7.fhir.exceptions.FHIRException
        Returns:
        answer (If present, then the answer for the referenced question must match this answer for all components present in the enableWhen.answer.)
        Throws:
        org.hl7.fhir.exceptions.FHIRException
      • getAnswerDateType

        public DateType getAnswerDateType()
                                   throws org.hl7.fhir.exceptions.FHIRException
        Returns:
        answer (If present, then the answer for the referenced question must match this answer for all components present in the enableWhen.answer.)
        Throws:
        org.hl7.fhir.exceptions.FHIRException
      • getAnswerDateTimeType

        public DateTimeType getAnswerDateTimeType()
                                           throws org.hl7.fhir.exceptions.FHIRException
        Returns:
        answer (If present, then the answer for the referenced question must match this answer for all components present in the enableWhen.answer.)
        Throws:
        org.hl7.fhir.exceptions.FHIRException
      • getAnswerInstantType

        public InstantType getAnswerInstantType()
                                         throws org.hl7.fhir.exceptions.FHIRException
        Returns:
        answer (If present, then the answer for the referenced question must match this answer for all components present in the enableWhen.answer.)
        Throws:
        org.hl7.fhir.exceptions.FHIRException
      • getAnswerTimeType

        public TimeType getAnswerTimeType()
                                   throws org.hl7.fhir.exceptions.FHIRException
        Returns:
        answer (If present, then the answer for the referenced question must match this answer for all components present in the enableWhen.answer.)
        Throws:
        org.hl7.fhir.exceptions.FHIRException
      • getAnswerStringType

        public StringType getAnswerStringType()
                                       throws org.hl7.fhir.exceptions.FHIRException
        Returns:
        answer (If present, then the answer for the referenced question must match this answer for all components present in the enableWhen.answer.)
        Throws:
        org.hl7.fhir.exceptions.FHIRException
      • getAnswerUriType

        public UriType getAnswerUriType()
                                 throws org.hl7.fhir.exceptions.FHIRException
        Returns:
        answer (If present, then the answer for the referenced question must match this answer for all components present in the enableWhen.answer.)
        Throws:
        org.hl7.fhir.exceptions.FHIRException
      • getAnswerAttachment

        public Attachment getAnswerAttachment()
                                       throws org.hl7.fhir.exceptions.FHIRException
        Returns:
        answer (If present, then the answer for the referenced question must match this answer for all components present in the enableWhen.answer.)
        Throws:
        org.hl7.fhir.exceptions.FHIRException
      • getAnswerCoding

        public Coding getAnswerCoding()
                               throws org.hl7.fhir.exceptions.FHIRException
        Returns:
        answer (If present, then the answer for the referenced question must match this answer for all components present in the enableWhen.answer.)
        Throws:
        org.hl7.fhir.exceptions.FHIRException
      • getAnswerQuantity

        public Quantity getAnswerQuantity()
                                   throws org.hl7.fhir.exceptions.FHIRException
        Returns:
        answer (If present, then the answer for the referenced question must match this answer for all components present in the enableWhen.answer.)
        Throws:
        org.hl7.fhir.exceptions.FHIRException
      • getAnswerReference

        public Reference getAnswerReference()
                                     throws org.hl7.fhir.exceptions.FHIRException
        Returns:
        answer (If present, then the answer for the referenced question must match this answer for all components present in the enableWhen.answer.)
        Throws:
        org.hl7.fhir.exceptions.FHIRException
      • makeProperty

        public Base makeProperty​(int hash,
                                 String name)
                          throws org.hl7.fhir.exceptions.FHIRException
        Description copied from class: Base
        make an instance of a property. If the property is a repeating property, make a new instance. if the property is not repeating, return the property
        Overrides:
        makeProperty in class BackboneElement
        Returns:
        Throws:
        org.hl7.fhir.exceptions.FHIRException
      • isEmpty

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