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 -
Constructor Summary
Constructors Constructor Description QuestionnaireResponseAnswer() -
Method Summary
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)
-
Field Details
-
Constructor Details
-
QuestionnaireResponseAnswer
public QuestionnaireResponseAnswer()
-
-
Method Details
-
getValueBoolean
Gets the value of the valueBoolean property.- Returns:
- possible object is
Boolean
-
setValueBoolean
Sets the value of the valueBoolean property.- Parameters:
value- allowed object isBoolean
-
getValueDecimal
Gets the value of the valueDecimal property.- Returns:
- possible object is
Decimal
-
setValueDecimal
Sets the value of the valueDecimal property.- Parameters:
value- allowed object isDecimal
-
getValueInteger
Gets the value of the valueInteger property.- Returns:
- possible object is
Integer
-
setValueInteger
Sets the value of the valueInteger property.- Parameters:
value- allowed object isInteger
-
getValueDate
Gets the value of the valueDate property.- Returns:
- possible object is
Date
-
setValueDate
Sets the value of the valueDate property.- Parameters:
value- allowed object isDate
-
getValueDateTime
Gets the value of the valueDateTime property.- Returns:
- possible object is
DateTime
-
setValueDateTime
Sets the value of the valueDateTime property.- Parameters:
value- allowed object isDateTime
-
getValueInstant
Gets the value of the valueInstant property.- Returns:
- possible object is
Instant
-
setValueInstant
Sets the value of the valueInstant property.- Parameters:
value- allowed object isInstant
-
getValueTime
Gets the value of the valueTime property.- Returns:
- possible object is
Time
-
setValueTime
Sets the value of the valueTime property.- Parameters:
value- allowed object isTime
-
getValueString
Gets the value of the valueString property.- Returns:
- possible object is
String
-
setValueString
Sets the value of the valueString property.- Parameters:
value- allowed object isString
-
getValueUri
Gets the value of the valueUri property.- Returns:
- possible object is
Uri
-
setValueUri
Sets the value of the valueUri property.- Parameters:
value- allowed object isUri
-
getValueAttachment
Gets the value of the valueAttachment property.- Returns:
- possible object is
Attachment
-
setValueAttachment
Sets the value of the valueAttachment property.- Parameters:
value- allowed object isAttachment
-
getValueCoding
Gets the value of the valueCoding property.- Returns:
- possible object is
Coding
-
setValueCoding
Sets the value of the valueCoding property.- Parameters:
value- allowed object isCoding
-
getValueQuantity
Gets the value of the valueQuantity property.- Returns:
- possible object is
Quantity
-
setValueQuantity
Sets the value of the valueQuantity property.- Parameters:
value- allowed object isQuantity
-
getValueReference
Gets the value of the valueReference property.- Returns:
- possible object is
Reference
-
setValueReference
Sets the value of the valueReference property.- Parameters:
value- allowed object isReference
-
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
-
withValueDecimal
-
withValueInteger
-
withValueDate
-
withValueDateTime
-
withValueInstant
-
withValueTime
-
withValueString
-
withValueUri
-
withValueAttachment
-
withValueCoding
-
withValueQuantity
-
withValueReference
-
withItem
-
withItem
public QuestionnaireResponseAnswer withItem(java.util.Collection<QuestionnaireResponseItem> values) -
withModifierExtension
- Overrides:
withModifierExtensionin classBackboneElement
-
withModifierExtension
- Overrides:
withModifierExtensionin classBackboneElement
-
withExtension
- Overrides:
withExtensionin classBackboneElement
-
withExtension
- Overrides:
withExtensionin classBackboneElement
-
withId
- 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
-