Package org.hl7.fhir

Class QuestionnaireResponseAnswer

  • All Implemented Interfaces:
    org.jvnet.jaxb2_commons.lang.Equals2, org.jvnet.jaxb2_commons.lang.HashCode2, org.jvnet.jaxb2_commons.lang.ToString2

    public class QuestionnaireResponseAnswer
    extends BackboneElement
    implements org.jvnet.jaxb2_commons.lang.Equals2, org.jvnet.jaxb2_commons.lang.HashCode2, org.jvnet.jaxb2_commons.lang.ToString2
    A structured set of questions and their answers. The questions are ordered and grouped into coherent subsets, corresponding to the structure of the grouping of the underlying questions.

    Java class for QuestionnaireResponse.Answer complex type.

    The following schema fragment specifies the expected content contained within this class.

     <complexType name="QuestionnaireResponse.Answer">
       <complexContent>
         <extension base="{http://hl7.org/fhir}BackboneElement">
           <sequence>
             <choice minOccurs="0">
               <element name="valueBoolean" type="{http://hl7.org/fhir}boolean"/>
               <element name="valueDecimal" type="{http://hl7.org/fhir}decimal"/>
               <element name="valueInteger" type="{http://hl7.org/fhir}integer"/>
               <element name="valueDate" type="{http://hl7.org/fhir}date"/>
               <element name="valueDateTime" type="{http://hl7.org/fhir}dateTime"/>
               <element name="valueInstant" type="{http://hl7.org/fhir}instant"/>
               <element name="valueTime" type="{http://hl7.org/fhir}time"/>
               <element name="valueString" type="{http://hl7.org/fhir}string"/>
               <element name="valueUri" type="{http://hl7.org/fhir}uri"/>
               <element name="valueAttachment" type="{http://hl7.org/fhir}Attachment"/>
               <element name="valueCoding" type="{http://hl7.org/fhir}Coding"/>
               <element name="valueQuantity" type="{http://hl7.org/fhir}Quantity"/>
               <element name="valueReference" type="{http://hl7.org/fhir}Reference"/>
             </choice>
             <element name="item" type="{http://hl7.org/fhir}QuestionnaireResponse.Item" maxOccurs="unbounded" minOccurs="0"/>
           </sequence>
         </extension>
       </complexContent>
     </complexType>
     
    • Field Detail

      • valueBoolean

        protected Boolean valueBoolean
      • valueDecimal

        protected Decimal valueDecimal
      • valueInteger

        protected Integer valueInteger
      • valueDate

        protected Date valueDate
      • valueDateTime

        protected DateTime valueDateTime
      • valueInstant

        protected Instant valueInstant
      • valueTime

        protected Time valueTime
      • valueString

        protected String valueString
      • valueUri

        protected Uri valueUri
      • valueAttachment

        protected Attachment valueAttachment
      • valueCoding

        protected Coding valueCoding
      • valueQuantity

        protected Quantity valueQuantity
      • valueReference

        protected Reference valueReference
    • Constructor Detail

      • QuestionnaireResponseAnswer

        public QuestionnaireResponseAnswer()
    • Method Detail

      • getValueBoolean

        public Boolean getValueBoolean()
        Gets the value of the valueBoolean property.
        Returns:
        possible object is Boolean
      • setValueBoolean

        public void setValueBoolean​(Boolean value)
        Sets the value of the valueBoolean property.
        Parameters:
        value - allowed object is Boolean
      • getValueDecimal

        public Decimal getValueDecimal()
        Gets the value of the valueDecimal property.
        Returns:
        possible object is Decimal
      • setValueDecimal

        public void setValueDecimal​(Decimal value)
        Sets the value of the valueDecimal property.
        Parameters:
        value - allowed object is Decimal
      • getValueInteger

        public Integer getValueInteger()
        Gets the value of the valueInteger property.
        Returns:
        possible object is Integer
      • setValueInteger

        public void setValueInteger​(Integer value)
        Sets the value of the valueInteger property.
        Parameters:
        value - allowed object is Integer
      • getValueDate

        public Date getValueDate()
        Gets the value of the valueDate property.
        Returns:
        possible object is Date
      • setValueDate

        public void setValueDate​(Date value)
        Sets the value of the valueDate property.
        Parameters:
        value - allowed object is Date
      • getValueDateTime

        public DateTime getValueDateTime()
        Gets the value of the valueDateTime property.
        Returns:
        possible object is DateTime
      • setValueDateTime

        public void setValueDateTime​(DateTime value)
        Sets the value of the valueDateTime property.
        Parameters:
        value - allowed object is DateTime
      • getValueInstant

        public Instant getValueInstant()
        Gets the value of the valueInstant property.
        Returns:
        possible object is Instant
      • setValueInstant

        public void setValueInstant​(Instant value)
        Sets the value of the valueInstant property.
        Parameters:
        value - allowed object is Instant
      • getValueTime

        public Time getValueTime()
        Gets the value of the valueTime property.
        Returns:
        possible object is Time
      • setValueTime

        public void setValueTime​(Time value)
        Sets the value of the valueTime property.
        Parameters:
        value - allowed object is Time
      • getValueString

        public String getValueString()
        Gets the value of the valueString property.
        Returns:
        possible object is String
      • setValueString

        public void setValueString​(String value)
        Sets the value of the valueString property.
        Parameters:
        value - allowed object is String
      • getValueUri

        public Uri getValueUri()
        Gets the value of the valueUri property.
        Returns:
        possible object is Uri
      • setValueUri

        public void setValueUri​(Uri value)
        Sets the value of the valueUri property.
        Parameters:
        value - allowed object is Uri
      • getValueAttachment

        public Attachment getValueAttachment()
        Gets the value of the valueAttachment property.
        Returns:
        possible object is Attachment
      • setValueAttachment

        public void setValueAttachment​(Attachment value)
        Sets the value of the valueAttachment property.
        Parameters:
        value - allowed object is Attachment
      • getValueCoding

        public Coding getValueCoding()
        Gets the value of the valueCoding property.
        Returns:
        possible object is Coding
      • setValueCoding

        public void setValueCoding​(Coding value)
        Sets the value of the valueCoding property.
        Parameters:
        value - allowed object is Coding
      • getValueQuantity

        public Quantity getValueQuantity()
        Gets the value of the valueQuantity property.
        Returns:
        possible object is Quantity
      • setValueQuantity

        public void setValueQuantity​(Quantity value)
        Sets the value of the valueQuantity property.
        Parameters:
        value - allowed object is Quantity
      • getValueReference

        public Reference getValueReference()
        Gets the value of the valueReference property.
        Returns:
        possible object is Reference
      • setValueReference

        public void setValueReference​(Reference value)
        Sets the value of the valueReference property.
        Parameters:
        value - allowed object is Reference
      • getItem

        public java.util.List<QuestionnaireResponseItem> getItem()
        Gets the value of the item property.

        This accessor method returns a reference to the live list, not a snapshot. Therefore any modification you make to the returned list will be present inside the JAXB object. This is why there is not a set method for the item property.

        For example, to add a new item, do as follows:

            getItem().add(newItem);
         

        Objects of the following type(s) are allowed in the list QuestionnaireResponseItem

      • equals

        public boolean equals​(org.jvnet.jaxb2_commons.locator.ObjectLocator thisLocator,
                              org.jvnet.jaxb2_commons.locator.ObjectLocator thatLocator,
                              java.lang.Object object,
                              org.jvnet.jaxb2_commons.lang.EqualsStrategy2 strategy)
        Specified by:
        equals in interface org.jvnet.jaxb2_commons.lang.Equals2
        Overrides:
        equals in class BackboneElement
      • equals

        public boolean equals​(java.lang.Object object)
        Overrides:
        equals in class BackboneElement
      • hashCode

        public int hashCode​(org.jvnet.jaxb2_commons.locator.ObjectLocator locator,
                            org.jvnet.jaxb2_commons.lang.HashCodeStrategy2 strategy)
        Specified by:
        hashCode in interface org.jvnet.jaxb2_commons.lang.HashCode2
        Overrides:
        hashCode in class BackboneElement
      • append

        public java.lang.StringBuilder append​(org.jvnet.jaxb2_commons.locator.ObjectLocator locator,
                                              java.lang.StringBuilder buffer,
                                              org.jvnet.jaxb2_commons.lang.ToStringStrategy2 strategy)
        Specified by:
        append in interface org.jvnet.jaxb2_commons.lang.ToString2
        Overrides:
        append in class BackboneElement
      • appendFields

        public java.lang.StringBuilder appendFields​(org.jvnet.jaxb2_commons.locator.ObjectLocator locator,
                                                    java.lang.StringBuilder buffer,
                                                    org.jvnet.jaxb2_commons.lang.ToStringStrategy2 strategy)
        Specified by:
        appendFields in interface org.jvnet.jaxb2_commons.lang.ToString2
        Overrides:
        appendFields in class BackboneElement