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>
 
  • Field Details

  • Constructor Details

    • QuestionnaireItem

      public QuestionnaireItem()
  • Method Details

    • 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 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 Jakarta XML Binding 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
    • getType

      public QuestionnaireItemType getType()
      Gets the value of the type property.
      Returns:
      possible object is QuestionnaireItemType
    • setType

      public void setType(QuestionnaireItemType value)
      Sets the value of the type property.
      Parameters:
      value - allowed object is QuestionnaireItemType
    • getEnableWhen

      public 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 Jakarta XML Binding 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 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 Jakarta XML Binding 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 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 Jakarta XML Binding 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

    • withLinkId

      public QuestionnaireItem withLinkId(String value)
    • withConcept

      public QuestionnaireItem withConcept(Coding... values)
    • withConcept

      public QuestionnaireItem withConcept(Collection<Coding> values)
    • withPrefix

      public QuestionnaireItem withPrefix(String value)
    • withText

      public QuestionnaireItem withText(String value)
    • withType

      public QuestionnaireItem withType(QuestionnaireItemType value)
    • withEnableWhen

      public QuestionnaireItem withEnableWhen(QuestionnaireEnableWhen... values)
    • withEnableWhen

      public QuestionnaireItem withEnableWhen(Collection<QuestionnaireEnableWhen> values)
    • withRequired

      public QuestionnaireItem withRequired(Boolean value)
    • withRepeats

      public QuestionnaireItem withRepeats(Boolean value)
    • withReadOnly

      public QuestionnaireItem withReadOnly(Boolean value)
    • withMaxLength

      public QuestionnaireItem withMaxLength(Integer value)
    • withOptions

      public QuestionnaireItem withOptions(Reference value)
    • withOption

      public QuestionnaireItem withOption(QuestionnaireOption... values)
    • withOption

      public QuestionnaireItem withOption(Collection<QuestionnaireOption> values)
    • withInitialBoolean

      public QuestionnaireItem withInitialBoolean(Boolean value)
    • withInitialDecimal

      public QuestionnaireItem withInitialDecimal(Decimal value)
    • withInitialInteger

      public QuestionnaireItem withInitialInteger(Integer value)
    • withInitialDate

      public QuestionnaireItem withInitialDate(Date value)
    • withInitialDateTime

      public QuestionnaireItem withInitialDateTime(DateTime value)
    • withInitialInstant

      public QuestionnaireItem withInitialInstant(Instant value)
    • withInitialTime

      public QuestionnaireItem withInitialTime(Time value)
    • withInitialString

      public QuestionnaireItem withInitialString(String value)
    • withInitialUri

      public QuestionnaireItem withInitialUri(Uri value)
    • withInitialAttachment

      public QuestionnaireItem withInitialAttachment(Attachment value)
    • withInitialCoding

      public QuestionnaireItem withInitialCoding(Coding value)
    • withInitialQuantity

      public QuestionnaireItem withInitialQuantity(Quantity value)
    • withInitialReference

      public QuestionnaireItem withInitialReference(Reference value)
    • withItem

      public QuestionnaireItem withItem(QuestionnaireItem... values)
    • withItem

      public QuestionnaireItem withItem(Collection<QuestionnaireItem> values)
    • withModifierExtension

      public QuestionnaireItem withModifierExtension(Extension... values)
      Overrides:
      withModifierExtension in class BackboneElement
    • withModifierExtension

      public QuestionnaireItem withModifierExtension(Collection<Extension> values)
      Overrides:
      withModifierExtension in class BackboneElement
    • withExtension

      public QuestionnaireItem withExtension(Extension... values)
      Overrides:
      withExtension in class BackboneElement
    • withExtension

      public QuestionnaireItem withExtension(Collection<Extension> values)
      Overrides:
      withExtension in class BackboneElement
    • withId

      public QuestionnaireItem withId(String value)
      Overrides:
      withId in class BackboneElement
    • equals

      public boolean equals(org.jvnet.jaxb2_commons.locator.ObjectLocator thisLocator, org.jvnet.jaxb2_commons.locator.ObjectLocator thatLocator, 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(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
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class BackboneElement
    • toString

      public String toString()
      Overrides:
      toString in class BackboneElement
    • append

      public StringBuilder append(org.jvnet.jaxb2_commons.locator.ObjectLocator locator, 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 StringBuilder appendFields(org.jvnet.jaxb2_commons.locator.ObjectLocator locator, 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
    • setConcept

      public void setConcept(List<Coding> value)
    • setEnableWhen

      public void setEnableWhen(List<QuestionnaireEnableWhen> value)
    • setOption

      public void setOption(List<QuestionnaireOption> value)
    • setItem

      public void setItem(List<QuestionnaireItem> value)