Class QuestionnaireItem
- java.lang.Object
-
- org.hl7.fhir.Element
-
- org.hl7.fhir.BackboneElement
-
- org.hl7.fhir.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 Summary
Fields Modifier and Type Field Description protected java.util.List<Coding>conceptprotected java.util.List<QuestionnaireEnableWhen>enableWhenprotected AttachmentinitialAttachmentprotected BooleaninitialBooleanprotected CodinginitialCodingprotected DateinitialDateprotected DateTimeinitialDateTimeprotected DecimalinitialDecimalprotected InstantinitialInstantprotected IntegerinitialIntegerprotected QuantityinitialQuantityprotected ReferenceinitialReferenceprotected StringinitialStringprotected TimeinitialTimeprotected UriinitialUriprotected java.util.List<QuestionnaireItem>itemprotected StringlinkIdprotected IntegermaxLengthprotected java.util.List<QuestionnaireOption>optionprotected Referenceoptionsprotected Stringprefixprotected BooleanreadOnlyprotected Booleanrepeatsprotected Booleanrequiredprotected Stringtextprotected QuestionnaireItemTypetype-
Fields inherited from class org.hl7.fhir.BackboneElement
modifierExtension
-
-
Constructor Summary
Constructors Constructor Description QuestionnaireItem()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringBuilderappend(org.jvnet.jaxb2_commons.locator.ObjectLocator locator, java.lang.StringBuilder buffer, org.jvnet.jaxb2_commons.lang.ToStringStrategy2 strategy)java.lang.StringBuilderappendFields(org.jvnet.jaxb2_commons.locator.ObjectLocator locator, java.lang.StringBuilder buffer, org.jvnet.jaxb2_commons.lang.ToStringStrategy2 strategy)booleanequals(java.lang.Object object)booleanequals(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)java.util.List<Coding>getConcept()Gets the value of the concept property.java.util.List<QuestionnaireEnableWhen>getEnableWhen()Gets the value of the enableWhen property.AttachmentgetInitialAttachment()Gets the value of the initialAttachment property.BooleangetInitialBoolean()Gets the value of the initialBoolean property.CodinggetInitialCoding()Gets the value of the initialCoding property.DategetInitialDate()Gets the value of the initialDate property.DateTimegetInitialDateTime()Gets the value of the initialDateTime property.DecimalgetInitialDecimal()Gets the value of the initialDecimal property.InstantgetInitialInstant()Gets the value of the initialInstant property.IntegergetInitialInteger()Gets the value of the initialInteger property.QuantitygetInitialQuantity()Gets the value of the initialQuantity property.ReferencegetInitialReference()Gets the value of the initialReference property.StringgetInitialString()Gets the value of the initialString property.TimegetInitialTime()Gets the value of the initialTime property.UrigetInitialUri()Gets the value of the initialUri property.java.util.List<QuestionnaireItem>getItem()Gets the value of the item property.StringgetLinkId()Gets the value of the linkId property.IntegergetMaxLength()Gets the value of the maxLength property.java.util.List<QuestionnaireOption>getOption()Gets the value of the option property.ReferencegetOptions()Gets the value of the options property.StringgetPrefix()Gets the value of the prefix property.BooleangetReadOnly()Gets the value of the readOnly property.BooleangetRepeats()Gets the value of the repeats property.BooleangetRequired()Gets the value of the required property.StringgetText()Gets the value of the text property.QuestionnaireItemTypegetType()Gets the value of the type property.inthashCode()inthashCode(org.jvnet.jaxb2_commons.locator.ObjectLocator locator, org.jvnet.jaxb2_commons.lang.HashCodeStrategy2 strategy)voidsetInitialAttachment(Attachment value)Sets the value of the initialAttachment property.voidsetInitialBoolean(Boolean value)Sets the value of the initialBoolean property.voidsetInitialCoding(Coding value)Sets the value of the initialCoding property.voidsetInitialDate(Date value)Sets the value of the initialDate property.voidsetInitialDateTime(DateTime value)Sets the value of the initialDateTime property.voidsetInitialDecimal(Decimal value)Sets the value of the initialDecimal property.voidsetInitialInstant(Instant value)Sets the value of the initialInstant property.voidsetInitialInteger(Integer value)Sets the value of the initialInteger property.voidsetInitialQuantity(Quantity value)Sets the value of the initialQuantity property.voidsetInitialReference(Reference value)Sets the value of the initialReference property.voidsetInitialString(String value)Sets the value of the initialString property.voidsetInitialTime(Time value)Sets the value of the initialTime property.voidsetInitialUri(Uri value)Sets the value of the initialUri property.voidsetLinkId(String value)Sets the value of the linkId property.voidsetMaxLength(Integer value)Sets the value of the maxLength property.voidsetOptions(Reference value)Sets the value of the options property.voidsetPrefix(String value)Sets the value of the prefix property.voidsetReadOnly(Boolean value)Sets the value of the readOnly property.voidsetRepeats(Boolean value)Sets the value of the repeats property.voidsetRequired(Boolean value)Sets the value of the required property.voidsetText(String value)Sets the value of the text property.voidsetType(QuestionnaireItemType value)Sets the value of the type property.java.lang.StringtoString()QuestionnaireItemwithConcept(java.util.Collection<Coding> values)QuestionnaireItemwithConcept(Coding... values)QuestionnaireItemwithEnableWhen(java.util.Collection<QuestionnaireEnableWhen> values)QuestionnaireItemwithEnableWhen(QuestionnaireEnableWhen... values)QuestionnaireItemwithExtension(java.util.Collection<Extension> values)QuestionnaireItemwithExtension(Extension... values)QuestionnaireItemwithId(java.lang.String value)QuestionnaireItemwithInitialAttachment(Attachment value)QuestionnaireItemwithInitialBoolean(Boolean value)QuestionnaireItemwithInitialCoding(Coding value)QuestionnaireItemwithInitialDate(Date value)QuestionnaireItemwithInitialDateTime(DateTime value)QuestionnaireItemwithInitialDecimal(Decimal value)QuestionnaireItemwithInitialInstant(Instant value)QuestionnaireItemwithInitialInteger(Integer value)QuestionnaireItemwithInitialQuantity(Quantity value)QuestionnaireItemwithInitialReference(Reference value)QuestionnaireItemwithInitialString(String value)QuestionnaireItemwithInitialTime(Time value)QuestionnaireItemwithInitialUri(Uri value)QuestionnaireItemwithItem(java.util.Collection<QuestionnaireItem> values)QuestionnaireItemwithItem(QuestionnaireItem... values)QuestionnaireItemwithLinkId(String value)QuestionnaireItemwithMaxLength(Integer value)QuestionnaireItemwithModifierExtension(java.util.Collection<Extension> values)QuestionnaireItemwithModifierExtension(Extension... values)QuestionnaireItemwithOption(java.util.Collection<QuestionnaireOption> values)QuestionnaireItemwithOption(QuestionnaireOption... values)QuestionnaireItemwithOptions(Reference value)QuestionnaireItemwithPrefix(String value)QuestionnaireItemwithReadOnly(Boolean value)QuestionnaireItemwithRepeats(Boolean value)QuestionnaireItemwithRequired(Boolean value)QuestionnaireItemwithText(String value)QuestionnaireItemwithType(QuestionnaireItemType value)-
Methods inherited from class org.hl7.fhir.BackboneElement
getModifierExtension
-
Methods inherited from class org.hl7.fhir.Element
getExtension, getId, setId
-
-
-
-
Field Detail
-
linkId
protected String linkId
-
concept
protected java.util.List<Coding> concept
-
prefix
protected String prefix
-
text
protected String text
-
type
protected QuestionnaireItemType type
-
enableWhen
protected java.util.List<QuestionnaireEnableWhen> enableWhen
-
required
protected Boolean required
-
repeats
protected Boolean repeats
-
readOnly
protected Boolean readOnly
-
maxLength
protected Integer maxLength
-
options
protected Reference options
-
option
protected java.util.List<QuestionnaireOption> option
-
initialBoolean
protected Boolean initialBoolean
-
initialDecimal
protected Decimal initialDecimal
-
initialInteger
protected Integer initialInteger
-
initialDate
protected Date initialDate
-
initialDateTime
protected DateTime initialDateTime
-
initialInstant
protected Instant initialInstant
-
initialTime
protected Time initialTime
-
initialString
protected String initialString
-
initialUri
protected Uri initialUri
-
initialAttachment
protected Attachment initialAttachment
-
initialCoding
protected Coding initialCoding
-
initialQuantity
protected Quantity initialQuantity
-
initialReference
protected Reference initialReference
-
item
protected java.util.List<QuestionnaireItem> item
-
-
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 isString
-
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
setmethod 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 isString
-
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 isString
-
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 isQuestionnaireItemType
-
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
setmethod 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 isBoolean
-
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 isBoolean
-
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 isBoolean
-
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 isInteger
-
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 isReference
-
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
setmethod 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 isBoolean
-
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 isDecimal
-
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 isInteger
-
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 isDate
-
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 isDateTime
-
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 isInstant
-
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 isTime
-
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 isString
-
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 isUri
-
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 isAttachment
-
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 isCoding
-
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 isQuantity
-
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 isReference
-
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
setmethod 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(java.util.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(java.util.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(java.util.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(java.util.Collection<QuestionnaireItem> values)
-
withModifierExtension
public QuestionnaireItem withModifierExtension(Extension... values)
- Overrides:
withModifierExtensionin classBackboneElement
-
withModifierExtension
public QuestionnaireItem withModifierExtension(java.util.Collection<Extension> values)
- Overrides:
withModifierExtensionin classBackboneElement
-
withExtension
public QuestionnaireItem withExtension(Extension... values)
- Overrides:
withExtensionin classBackboneElement
-
withExtension
public QuestionnaireItem withExtension(java.util.Collection<Extension> values)
- Overrides:
withExtensionin classBackboneElement
-
withId
public QuestionnaireItem withId(java.lang.String value)
- Overrides:
withIdin classBackboneElement
-
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:
equalsin interfaceorg.jvnet.jaxb2_commons.lang.Equals2- Overrides:
equalsin classBackboneElement
-
equals
public boolean equals(java.lang.Object object)
- Overrides:
equalsin classBackboneElement
-
hashCode
public int hashCode(org.jvnet.jaxb2_commons.locator.ObjectLocator locator, org.jvnet.jaxb2_commons.lang.HashCodeStrategy2 strategy)- Specified by:
hashCodein interfaceorg.jvnet.jaxb2_commons.lang.HashCode2- Overrides:
hashCodein classBackboneElement
-
hashCode
public int hashCode()
- Overrides:
hashCodein classBackboneElement
-
toString
public java.lang.String toString()
- Overrides:
toStringin classBackboneElement
-
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:
appendin interfaceorg.jvnet.jaxb2_commons.lang.ToString2- Overrides:
appendin classBackboneElement
-
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:
appendFieldsin interfaceorg.jvnet.jaxb2_commons.lang.ToString2- Overrides:
appendFieldsin classBackboneElement
-
-