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
FieldsModifier and TypeFieldDescriptionprotected List<QuestionnaireResponseItem> protected Attachmentprotected Booleanprotected Codingprotected Dateprotected DateTimeprotected Decimalprotected Instantprotected Integerprotected Quantityprotected Referenceprotected Stringprotected Timeprotected UriFields inherited from class org.hl7.fhir.BackboneElement
modifierExtension -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionappend(org.jvnet.jaxb2_commons.locator.ObjectLocator locator, StringBuilder buffer, org.jvnet.jaxb2_commons.lang.ToStringStrategy2 strategy) appendFields(org.jvnet.jaxb2_commons.locator.ObjectLocator locator, StringBuilder buffer, org.jvnet.jaxb2_commons.lang.ToStringStrategy2 strategy) booleanbooleanequals(org.jvnet.jaxb2_commons.locator.ObjectLocator thisLocator, org.jvnet.jaxb2_commons.locator.ObjectLocator thatLocator, Object object, org.jvnet.jaxb2_commons.lang.EqualsStrategy2 strategy) getItem()Gets the value of the item property.Gets the value of the valueAttachment property.Gets the value of the valueBoolean property.Gets the value of the valueCoding property.Gets the value of the valueDate property.Gets the value of the valueDateTime property.Gets the value of the valueDecimal property.Gets the value of the valueInstant property.Gets the value of the valueInteger property.Gets the value of the valueQuantity property.Gets the value of the valueReference property.Gets the value of the valueString property.Gets the value of the valueTime property.Gets the value of the valueUri property.inthashCode()inthashCode(org.jvnet.jaxb2_commons.locator.ObjectLocator locator, org.jvnet.jaxb2_commons.lang.HashCodeStrategy2 strategy) voidsetItem(List<QuestionnaireResponseItem> value) 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.toString()withExtension(Collection<Extension> values) withExtension(Extension... values) withItem(Collection<QuestionnaireResponseItem> values) withItem(QuestionnaireResponseItem... values) withModifierExtension(Collection<Extension> values) withModifierExtension(Extension... values) withValueAttachment(Attachment value) withValueBoolean(Boolean value) withValueCoding(Coding value) withValueDate(Date value) withValueDateTime(DateTime value) withValueDecimal(Decimal value) withValueInstant(Instant value) withValueInteger(Integer value) withValueQuantity(Quantity value) withValueReference(Reference value) withValueString(String value) withValueTime(Time value) withValueUri(Uri value) Methods inherited from class org.hl7.fhir.BackboneElement
getModifierExtension, setModifierExtensionMethods inherited from class org.hl7.fhir.Element
getExtension, getId, setExtension, setId
-
Field Details
-
valueBoolean
-
valueDecimal
-
valueInteger
-
valueDate
-
valueDateTime
-
valueInstant
-
valueTime
-
valueString
-
valueUri
-
valueAttachment
-
valueCoding
-
valueQuantity
-
valueReference
-
item
-
-
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 Jakarta XML Binding 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
-
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, Object object, org.jvnet.jaxb2_commons.lang.EqualsStrategy2 strategy) - Specified by:
equalsin interfaceorg.jvnet.jaxb2_commons.lang.Equals2- Overrides:
equalsin classBackboneElement
-
equals
- 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
- Overrides:
toStringin classBackboneElement
-
append
public StringBuilder append(org.jvnet.jaxb2_commons.locator.ObjectLocator locator, StringBuilder buffer, org.jvnet.jaxb2_commons.lang.ToStringStrategy2 strategy) - Specified by:
appendin interfaceorg.jvnet.jaxb2_commons.lang.ToString2- Overrides:
appendin classBackboneElement
-
appendFields
public StringBuilder appendFields(org.jvnet.jaxb2_commons.locator.ObjectLocator locator, StringBuilder buffer, org.jvnet.jaxb2_commons.lang.ToStringStrategy2 strategy) - Specified by:
appendFieldsin interfaceorg.jvnet.jaxb2_commons.lang.ToString2- Overrides:
appendFieldsin classBackboneElement
-
setItem
-