Package org.hl7.fhir
Class QuestionnaireResponseAnswer
- java.lang.Object
-
- org.hl7.fhir.Element
-
- org.hl7.fhir.BackboneElement
-
- org.hl7.fhir.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 Summary
Fields Modifier and Type Field Description protected java.util.List<QuestionnaireResponseItem>itemprotected AttachmentvalueAttachmentprotected BooleanvalueBooleanprotected CodingvalueCodingprotected DatevalueDateprotected DateTimevalueDateTimeprotected DecimalvalueDecimalprotected InstantvalueInstantprotected IntegervalueIntegerprotected QuantityvalueQuantityprotected ReferencevalueReferenceprotected StringvalueStringprotected TimevalueTimeprotected UrivalueUri-
Fields inherited from class org.hl7.fhir.BackboneElement
modifierExtension
-
-
Constructor Summary
Constructors Constructor Description QuestionnaireResponseAnswer()
-
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<QuestionnaireResponseItem>getItem()Gets the value of the item property.AttachmentgetValueAttachment()Gets the value of the valueAttachment property.BooleangetValueBoolean()Gets the value of the valueBoolean property.CodinggetValueCoding()Gets the value of the valueCoding property.DategetValueDate()Gets the value of the valueDate property.DateTimegetValueDateTime()Gets the value of the valueDateTime property.DecimalgetValueDecimal()Gets the value of the valueDecimal property.InstantgetValueInstant()Gets the value of the valueInstant property.IntegergetValueInteger()Gets the value of the valueInteger property.QuantitygetValueQuantity()Gets the value of the valueQuantity property.ReferencegetValueReference()Gets the value of the valueReference property.StringgetValueString()Gets the value of the valueString property.TimegetValueTime()Gets the value of the valueTime property.UrigetValueUri()Gets the value of the valueUri property.inthashCode()inthashCode(org.jvnet.jaxb2_commons.locator.ObjectLocator locator, org.jvnet.jaxb2_commons.lang.HashCodeStrategy2 strategy)voidsetValueAttachment(Attachment value)Sets the value of the valueAttachment property.voidsetValueBoolean(Boolean value)Sets the value of the valueBoolean property.voidsetValueCoding(Coding value)Sets the value of the valueCoding property.voidsetValueDate(Date value)Sets the value of the valueDate property.voidsetValueDateTime(DateTime value)Sets the value of the valueDateTime property.voidsetValueDecimal(Decimal value)Sets the value of the valueDecimal property.voidsetValueInstant(Instant value)Sets the value of the valueInstant property.voidsetValueInteger(Integer value)Sets the value of the valueInteger property.voidsetValueQuantity(Quantity value)Sets the value of the valueQuantity property.voidsetValueReference(Reference value)Sets the value of the valueReference property.voidsetValueString(String value)Sets the value of the valueString property.voidsetValueTime(Time value)Sets the value of the valueTime property.voidsetValueUri(Uri value)Sets the value of the valueUri property.java.lang.StringtoString()QuestionnaireResponseAnswerwithExtension(java.util.Collection<Extension> values)QuestionnaireResponseAnswerwithExtension(Extension... values)QuestionnaireResponseAnswerwithId(java.lang.String value)QuestionnaireResponseAnswerwithItem(java.util.Collection<QuestionnaireResponseItem> values)QuestionnaireResponseAnswerwithItem(QuestionnaireResponseItem... values)QuestionnaireResponseAnswerwithModifierExtension(java.util.Collection<Extension> values)QuestionnaireResponseAnswerwithModifierExtension(Extension... values)QuestionnaireResponseAnswerwithValueAttachment(Attachment value)QuestionnaireResponseAnswerwithValueBoolean(Boolean value)QuestionnaireResponseAnswerwithValueCoding(Coding value)QuestionnaireResponseAnswerwithValueDate(Date value)QuestionnaireResponseAnswerwithValueDateTime(DateTime value)QuestionnaireResponseAnswerwithValueDecimal(Decimal value)QuestionnaireResponseAnswerwithValueInstant(Instant value)QuestionnaireResponseAnswerwithValueInteger(Integer value)QuestionnaireResponseAnswerwithValueQuantity(Quantity value)QuestionnaireResponseAnswerwithValueReference(Reference value)QuestionnaireResponseAnswerwithValueString(String value)QuestionnaireResponseAnswerwithValueTime(Time value)QuestionnaireResponseAnswerwithValueUri(Uri value)-
Methods inherited from class org.hl7.fhir.BackboneElement
getModifierExtension
-
Methods inherited from class org.hl7.fhir.Element
getExtension, getId, setId
-
-
-
-
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
-
item
protected java.util.List<QuestionnaireResponseItem> item
-
-
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 isBoolean
-
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 isDecimal
-
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 isInteger
-
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 isDate
-
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 isDateTime
-
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 isInstant
-
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 isTime
-
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 isString
-
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 isUri
-
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 isAttachment
-
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 isCoding
-
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 isQuantity
-
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 isReference
-
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
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
QuestionnaireResponseItem
-
withValueBoolean
public QuestionnaireResponseAnswer withValueBoolean(Boolean value)
-
withValueDecimal
public QuestionnaireResponseAnswer withValueDecimal(Decimal value)
-
withValueInteger
public QuestionnaireResponseAnswer withValueInteger(Integer value)
-
withValueDate
public QuestionnaireResponseAnswer withValueDate(Date value)
-
withValueDateTime
public QuestionnaireResponseAnswer withValueDateTime(DateTime value)
-
withValueInstant
public QuestionnaireResponseAnswer withValueInstant(Instant value)
-
withValueTime
public QuestionnaireResponseAnswer withValueTime(Time value)
-
withValueString
public QuestionnaireResponseAnswer withValueString(String value)
-
withValueUri
public QuestionnaireResponseAnswer withValueUri(Uri value)
-
withValueAttachment
public QuestionnaireResponseAnswer withValueAttachment(Attachment value)
-
withValueCoding
public QuestionnaireResponseAnswer withValueCoding(Coding value)
-
withValueQuantity
public QuestionnaireResponseAnswer withValueQuantity(Quantity value)
-
withValueReference
public QuestionnaireResponseAnswer withValueReference(Reference value)
-
withItem
public QuestionnaireResponseAnswer withItem(QuestionnaireResponseItem... values)
-
withItem
public QuestionnaireResponseAnswer withItem(java.util.Collection<QuestionnaireResponseItem> values)
-
withModifierExtension
public QuestionnaireResponseAnswer withModifierExtension(Extension... values)
- Overrides:
withModifierExtensionin classBackboneElement
-
withModifierExtension
public QuestionnaireResponseAnswer withModifierExtension(java.util.Collection<Extension> values)
- Overrides:
withModifierExtensionin classBackboneElement
-
withExtension
public QuestionnaireResponseAnswer withExtension(Extension... values)
- Overrides:
withExtensionin classBackboneElement
-
withExtension
public QuestionnaireResponseAnswer withExtension(java.util.Collection<Extension> values)
- Overrides:
withExtensionin classBackboneElement
-
withId
public QuestionnaireResponseAnswer 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
-
-