Package org.hl7.fhir

Class QuestionnaireItem

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

    public class QuestionnaireItem
    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 intended to guide the collection of answers. The questions are ordered and grouped into coherent subsets, corresponding to the structure of the grouping of the underlying questions.

    Java class for Questionnaire.Item complex type.

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

     <complexType name="Questionnaire.Item">
       <complexContent>
         <extension base="{http://hl7.org/fhir}BackboneElement">
           <sequence>
             <element name="linkId" type="{http://hl7.org/fhir}string" minOccurs="0"/>
             <element name="concept" type="{http://hl7.org/fhir}Coding" maxOccurs="unbounded" minOccurs="0"/>
             <element name="prefix" type="{http://hl7.org/fhir}string" minOccurs="0"/>
             <element name="text" type="{http://hl7.org/fhir}string" minOccurs="0"/>
             <element name="type" type="{http://hl7.org/fhir}QuestionnaireItemType"/>
             <element name="enableWhen" type="{http://hl7.org/fhir}Questionnaire.EnableWhen" maxOccurs="unbounded" minOccurs="0"/>
             <element name="required" type="{http://hl7.org/fhir}boolean" minOccurs="0"/>
             <element name="repeats" type="{http://hl7.org/fhir}boolean" minOccurs="0"/>
             <element name="readOnly" type="{http://hl7.org/fhir}boolean" minOccurs="0"/>
             <element name="maxLength" type="{http://hl7.org/fhir}integer" minOccurs="0"/>
             <element name="options" type="{http://hl7.org/fhir}Reference" minOccurs="0"/>
             <element name="option" type="{http://hl7.org/fhir}Questionnaire.Option" maxOccurs="unbounded" minOccurs="0"/>
             <choice minOccurs="0">
               <element name="initialBoolean" type="{http://hl7.org/fhir}boolean"/>
               <element name="initialDecimal" type="{http://hl7.org/fhir}decimal"/>
               <element name="initialInteger" type="{http://hl7.org/fhir}integer"/>
               <element name="initialDate" type="{http://hl7.org/fhir}date"/>
               <element name="initialDateTime" type="{http://hl7.org/fhir}dateTime"/>
               <element name="initialInstant" type="{http://hl7.org/fhir}instant"/>
               <element name="initialTime" type="{http://hl7.org/fhir}time"/>
               <element name="initialString" type="{http://hl7.org/fhir}string"/>
               <element name="initialUri" type="{http://hl7.org/fhir}uri"/>
               <element name="initialAttachment" type="{http://hl7.org/fhir}Attachment"/>
               <element name="initialCoding" type="{http://hl7.org/fhir}Coding"/>
               <element name="initialQuantity" type="{http://hl7.org/fhir}Quantity"/>
               <element name="initialReference" type="{http://hl7.org/fhir}Reference"/>
             </choice>
             <element name="item" type="{http://hl7.org/fhir}Questionnaire.Item" maxOccurs="unbounded" minOccurs="0"/>
           </sequence>
         </extension>
       </complexContent>
     </complexType>
     
    • Constructor Detail

      • QuestionnaireItem

        public QuestionnaireItem()
    • Method Detail

      • getLinkId

        public String getLinkId()
        Gets the value of the linkId property.
        Returns:
        possible object is String
      • setLinkId

        public void setLinkId​(String value)
        Sets the value of the linkId property.
        Parameters:
        value - allowed object is String
      • getConcept

        public java.util.List<Coding> getConcept()
        Gets the value of the concept 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 concept property.

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

            getConcept().add(newItem);
         

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

      • getPrefix

        public String getPrefix()
        Gets the value of the prefix property.
        Returns:
        possible object is String
      • setPrefix

        public void setPrefix​(String value)
        Sets the value of the prefix property.
        Parameters:
        value - allowed object is String
      • getText

        public String getText()
        Gets the value of the text property.
        Returns:
        possible object is String
      • setText

        public void setText​(String value)
        Sets the value of the text property.
        Parameters:
        value - allowed object is String
      • getEnableWhen

        public java.util.List<QuestionnaireEnableWhen> getEnableWhen()
        Gets the value of the enableWhen 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 enableWhen property.

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

            getEnableWhen().add(newItem);
         

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

      • getRequired

        public Boolean getRequired()
        Gets the value of the required property.
        Returns:
        possible object is Boolean
      • setRequired

        public void setRequired​(Boolean value)
        Sets the value of the required property.
        Parameters:
        value - allowed object is Boolean
      • getRepeats

        public Boolean getRepeats()
        Gets the value of the repeats property.
        Returns:
        possible object is Boolean
      • setRepeats

        public void setRepeats​(Boolean value)
        Sets the value of the repeats property.
        Parameters:
        value - allowed object is Boolean
      • getReadOnly

        public Boolean getReadOnly()
        Gets the value of the readOnly property.
        Returns:
        possible object is Boolean
      • setReadOnly

        public void setReadOnly​(Boolean value)
        Sets the value of the readOnly property.
        Parameters:
        value - allowed object is Boolean
      • getMaxLength

        public Integer getMaxLength()
        Gets the value of the maxLength property.
        Returns:
        possible object is Integer
      • setMaxLength

        public void setMaxLength​(Integer value)
        Sets the value of the maxLength property.
        Parameters:
        value - allowed object is Integer
      • getOptions

        public Reference getOptions()
        Gets the value of the options property.
        Returns:
        possible object is Reference
      • setOptions

        public void setOptions​(Reference value)
        Sets the value of the options property.
        Parameters:
        value - allowed object is Reference
      • getOption

        public java.util.List<QuestionnaireOption> getOption()
        Gets the value of the option 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 option property.

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

            getOption().add(newItem);
         

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

      • getInitialBoolean

        public Boolean getInitialBoolean()
        Gets the value of the initialBoolean property.
        Returns:
        possible object is Boolean
      • setInitialBoolean

        public void setInitialBoolean​(Boolean value)
        Sets the value of the initialBoolean property.
        Parameters:
        value - allowed object is Boolean
      • getInitialDecimal

        public Decimal getInitialDecimal()
        Gets the value of the initialDecimal property.
        Returns:
        possible object is Decimal
      • setInitialDecimal

        public void setInitialDecimal​(Decimal value)
        Sets the value of the initialDecimal property.
        Parameters:
        value - allowed object is Decimal
      • getInitialInteger

        public Integer getInitialInteger()
        Gets the value of the initialInteger property.
        Returns:
        possible object is Integer
      • setInitialInteger

        public void setInitialInteger​(Integer value)
        Sets the value of the initialInteger property.
        Parameters:
        value - allowed object is Integer
      • getInitialDate

        public Date getInitialDate()
        Gets the value of the initialDate property.
        Returns:
        possible object is Date
      • setInitialDate

        public void setInitialDate​(Date value)
        Sets the value of the initialDate property.
        Parameters:
        value - allowed object is Date
      • getInitialDateTime

        public DateTime getInitialDateTime()
        Gets the value of the initialDateTime property.
        Returns:
        possible object is DateTime
      • setInitialDateTime

        public void setInitialDateTime​(DateTime value)
        Sets the value of the initialDateTime property.
        Parameters:
        value - allowed object is DateTime
      • getInitialInstant

        public Instant getInitialInstant()
        Gets the value of the initialInstant property.
        Returns:
        possible object is Instant
      • setInitialInstant

        public void setInitialInstant​(Instant value)
        Sets the value of the initialInstant property.
        Parameters:
        value - allowed object is Instant
      • getInitialTime

        public Time getInitialTime()
        Gets the value of the initialTime property.
        Returns:
        possible object is Time
      • setInitialTime

        public void setInitialTime​(Time value)
        Sets the value of the initialTime property.
        Parameters:
        value - allowed object is Time
      • getInitialString

        public String getInitialString()
        Gets the value of the initialString property.
        Returns:
        possible object is String
      • setInitialString

        public void setInitialString​(String value)
        Sets the value of the initialString property.
        Parameters:
        value - allowed object is String
      • getInitialUri

        public Uri getInitialUri()
        Gets the value of the initialUri property.
        Returns:
        possible object is Uri
      • setInitialUri

        public void setInitialUri​(Uri value)
        Sets the value of the initialUri property.
        Parameters:
        value - allowed object is Uri
      • getInitialAttachment

        public Attachment getInitialAttachment()
        Gets the value of the initialAttachment property.
        Returns:
        possible object is Attachment
      • setInitialAttachment

        public void setInitialAttachment​(Attachment value)
        Sets the value of the initialAttachment property.
        Parameters:
        value - allowed object is Attachment
      • getInitialCoding

        public Coding getInitialCoding()
        Gets the value of the initialCoding property.
        Returns:
        possible object is Coding
      • setInitialCoding

        public void setInitialCoding​(Coding value)
        Sets the value of the initialCoding property.
        Parameters:
        value - allowed object is Coding
      • getInitialQuantity

        public Quantity getInitialQuantity()
        Gets the value of the initialQuantity property.
        Returns:
        possible object is Quantity
      • setInitialQuantity

        public void setInitialQuantity​(Quantity value)
        Sets the value of the initialQuantity property.
        Parameters:
        value - allowed object is Quantity
      • getInitialReference

        public Reference getInitialReference()
        Gets the value of the initialReference property.
        Returns:
        possible object is Reference
      • setInitialReference

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

        public java.util.List<QuestionnaireItem> 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 QuestionnaireItem

      • 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