public class ObservationComponent extends BackboneElement implements org.jvnet.jaxb2_commons.lang.Equals, org.jvnet.jaxb2_commons.lang.HashCode, org.jvnet.jaxb2_commons.lang.ToString
Java class for Observation.Component complex type.
The following schema fragment specifies the expected content contained within this class.
<complexType name="Observation.Component">
<complexContent>
<extension base="{http://hl7.org/fhir}BackboneElement">
<sequence>
<element name="code" type="{http://hl7.org/fhir}CodeableConcept"/>
<choice minOccurs="0">
<element name="valueQuantity" type="{http://hl7.org/fhir}Quantity"/>
<element name="valueCodeableConcept" type="{http://hl7.org/fhir}CodeableConcept"/>
<element name="valueString" type="{http://hl7.org/fhir}string"/>
<element name="valueRange" type="{http://hl7.org/fhir}Range"/>
<element name="valueRatio" type="{http://hl7.org/fhir}Ratio"/>
<element name="valueSampledData" type="{http://hl7.org/fhir}SampledData"/>
<element name="valueAttachment" type="{http://hl7.org/fhir}Attachment"/>
<element name="valueTime" type="{http://hl7.org/fhir}time"/>
<element name="valueDateTime" type="{http://hl7.org/fhir}dateTime"/>
<element name="valuePeriod" type="{http://hl7.org/fhir}Period"/>
</choice>
<element name="dataAbsentReason" type="{http://hl7.org/fhir}CodeableConcept" minOccurs="0"/>
<element name="referenceRange" type="{http://hl7.org/fhir}Observation.ReferenceRange" maxOccurs="unbounded" minOccurs="0"/>
</sequence>
</extension>
</complexContent>
</complexType>
| Modifier and Type | Field and Description |
|---|---|
protected CodeableConcept |
code |
protected CodeableConcept |
dataAbsentReason |
protected java.util.List<ObservationReferenceRange> |
referenceRange |
protected Attachment |
valueAttachment |
protected CodeableConcept |
valueCodeableConcept |
protected DateTime |
valueDateTime |
protected Period |
valuePeriod |
protected Quantity |
valueQuantity |
protected Range |
valueRange |
protected Ratio |
valueRatio |
protected SampledData |
valueSampledData |
protected String |
valueString |
protected Time |
valueTime |
modifierExtension| Constructor and Description |
|---|
ObservationComponent() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.StringBuilder |
append(org.jvnet.jaxb2_commons.locator.ObjectLocator locator,
java.lang.StringBuilder buffer,
org.jvnet.jaxb2_commons.lang.ToStringStrategy strategy) |
java.lang.StringBuilder |
appendFields(org.jvnet.jaxb2_commons.locator.ObjectLocator locator,
java.lang.StringBuilder buffer,
org.jvnet.jaxb2_commons.lang.ToStringStrategy strategy) |
boolean |
equals(java.lang.Object object) |
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.EqualsStrategy strategy) |
CodeableConcept |
getCode()
Gets the value of the code property.
|
CodeableConcept |
getDataAbsentReason()
Gets the value of the dataAbsentReason property.
|
java.util.List<ObservationReferenceRange> |
getReferenceRange()
Gets the value of the referenceRange property.
|
Attachment |
getValueAttachment()
Gets the value of the valueAttachment property.
|
CodeableConcept |
getValueCodeableConcept()
Gets the value of the valueCodeableConcept property.
|
DateTime |
getValueDateTime()
Gets the value of the valueDateTime property.
|
Period |
getValuePeriod()
Gets the value of the valuePeriod property.
|
Quantity |
getValueQuantity()
Gets the value of the valueQuantity property.
|
Range |
getValueRange()
Gets the value of the valueRange property.
|
Ratio |
getValueRatio()
Gets the value of the valueRatio property.
|
SampledData |
getValueSampledData()
Gets the value of the valueSampledData property.
|
String |
getValueString()
Gets the value of the valueString property.
|
Time |
getValueTime()
Gets the value of the valueTime property.
|
int |
hashCode() |
int |
hashCode(org.jvnet.jaxb2_commons.locator.ObjectLocator locator,
org.jvnet.jaxb2_commons.lang.HashCodeStrategy strategy) |
void |
setCode(CodeableConcept value)
Sets the value of the code property.
|
void |
setDataAbsentReason(CodeableConcept value)
Sets the value of the dataAbsentReason property.
|
void |
setValueAttachment(Attachment value)
Sets the value of the valueAttachment property.
|
void |
setValueCodeableConcept(CodeableConcept value)
Sets the value of the valueCodeableConcept property.
|
void |
setValueDateTime(DateTime value)
Sets the value of the valueDateTime property.
|
void |
setValuePeriod(Period value)
Sets the value of the valuePeriod property.
|
void |
setValueQuantity(Quantity value)
Sets the value of the valueQuantity property.
|
void |
setValueRange(Range value)
Sets the value of the valueRange property.
|
void |
setValueRatio(Ratio value)
Sets the value of the valueRatio property.
|
void |
setValueSampledData(SampledData value)
Sets the value of the valueSampledData property.
|
void |
setValueString(String value)
Sets the value of the valueString property.
|
void |
setValueTime(Time value)
Sets the value of the valueTime property.
|
java.lang.String |
toString() |
ObservationComponent |
withCode(CodeableConcept value) |
ObservationComponent |
withDataAbsentReason(CodeableConcept value) |
ObservationComponent |
withExtension(java.util.Collection<Extension> values) |
ObservationComponent |
withExtension(Extension... values) |
ObservationComponent |
withId(java.lang.String value) |
ObservationComponent |
withModifierExtension(java.util.Collection<Extension> values) |
ObservationComponent |
withModifierExtension(Extension... values) |
ObservationComponent |
withReferenceRange(java.util.Collection<ObservationReferenceRange> values) |
ObservationComponent |
withReferenceRange(ObservationReferenceRange... values) |
ObservationComponent |
withValueAttachment(Attachment value) |
ObservationComponent |
withValueCodeableConcept(CodeableConcept value) |
ObservationComponent |
withValueDateTime(DateTime value) |
ObservationComponent |
withValuePeriod(Period value) |
ObservationComponent |
withValueQuantity(Quantity value) |
ObservationComponent |
withValueRange(Range value) |
ObservationComponent |
withValueRatio(Ratio value) |
ObservationComponent |
withValueSampledData(SampledData value) |
ObservationComponent |
withValueString(String value) |
ObservationComponent |
withValueTime(Time value) |
getModifierExtensiongetExtension, getId, setIdprotected CodeableConcept code
protected Quantity valueQuantity
protected CodeableConcept valueCodeableConcept
protected String valueString
protected Range valueRange
protected Ratio valueRatio
protected SampledData valueSampledData
protected Attachment valueAttachment
protected Time valueTime
protected DateTime valueDateTime
protected Period valuePeriod
protected CodeableConcept dataAbsentReason
protected java.util.List<ObservationReferenceRange> referenceRange
public CodeableConcept getCode()
CodeableConceptpublic void setCode(CodeableConcept value)
value - allowed object is
CodeableConceptpublic Quantity getValueQuantity()
Quantitypublic void setValueQuantity(Quantity value)
value - allowed object is
Quantitypublic CodeableConcept getValueCodeableConcept()
CodeableConceptpublic void setValueCodeableConcept(CodeableConcept value)
value - allowed object is
CodeableConceptpublic String getValueString()
Stringpublic void setValueString(String value)
value - allowed object is
Stringpublic Range getValueRange()
Rangepublic void setValueRange(Range value)
value - allowed object is
Rangepublic Ratio getValueRatio()
Ratiopublic void setValueRatio(Ratio value)
value - allowed object is
Ratiopublic SampledData getValueSampledData()
SampledDatapublic void setValueSampledData(SampledData value)
value - allowed object is
SampledDatapublic Attachment getValueAttachment()
Attachmentpublic void setValueAttachment(Attachment value)
value - allowed object is
Attachmentpublic Time getValueTime()
Timepublic void setValueTime(Time value)
value - allowed object is
Timepublic DateTime getValueDateTime()
DateTimepublic void setValueDateTime(DateTime value)
value - allowed object is
DateTimepublic Period getValuePeriod()
Periodpublic void setValuePeriod(Period value)
value - allowed object is
Periodpublic CodeableConcept getDataAbsentReason()
CodeableConceptpublic void setDataAbsentReason(CodeableConcept value)
value - allowed object is
CodeableConceptpublic java.util.List<ObservationReferenceRange> getReferenceRange()
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 set method for the referenceRange property.
For example, to add a new item, do as follows:
getReferenceRange().add(newItem);
Objects of the following type(s) are allowed in the list
ObservationReferenceRange
public ObservationComponent withCode(CodeableConcept value)
public ObservationComponent withValueQuantity(Quantity value)
public ObservationComponent withValueCodeableConcept(CodeableConcept value)
public ObservationComponent withValueString(String value)
public ObservationComponent withValueRange(Range value)
public ObservationComponent withValueRatio(Ratio value)
public ObservationComponent withValueSampledData(SampledData value)
public ObservationComponent withValueAttachment(Attachment value)
public ObservationComponent withValueTime(Time value)
public ObservationComponent withValueDateTime(DateTime value)
public ObservationComponent withValuePeriod(Period value)
public ObservationComponent withDataAbsentReason(CodeableConcept value)
public ObservationComponent withReferenceRange(ObservationReferenceRange... values)
public ObservationComponent withReferenceRange(java.util.Collection<ObservationReferenceRange> values)
public ObservationComponent withModifierExtension(Extension... values)
withModifierExtension in class BackboneElementpublic ObservationComponent withModifierExtension(java.util.Collection<Extension> values)
withModifierExtension in class BackboneElementpublic ObservationComponent withExtension(Extension... values)
withExtension in class BackboneElementpublic ObservationComponent withExtension(java.util.Collection<Extension> values)
withExtension in class BackboneElementpublic ObservationComponent withId(java.lang.String value)
withId in class BackboneElementpublic 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.EqualsStrategy strategy)
equals in interface org.jvnet.jaxb2_commons.lang.Equalsequals in class BackboneElementpublic boolean equals(java.lang.Object object)
equals in class BackboneElementpublic int hashCode(org.jvnet.jaxb2_commons.locator.ObjectLocator locator,
org.jvnet.jaxb2_commons.lang.HashCodeStrategy strategy)
hashCode in interface org.jvnet.jaxb2_commons.lang.HashCodehashCode in class BackboneElementpublic int hashCode()
hashCode in class BackboneElementpublic java.lang.String toString()
toString in class BackboneElementpublic java.lang.StringBuilder append(org.jvnet.jaxb2_commons.locator.ObjectLocator locator,
java.lang.StringBuilder buffer,
org.jvnet.jaxb2_commons.lang.ToStringStrategy strategy)
append in interface org.jvnet.jaxb2_commons.lang.ToStringappend in class BackboneElementpublic java.lang.StringBuilder appendFields(org.jvnet.jaxb2_commons.locator.ObjectLocator locator,
java.lang.StringBuilder buffer,
org.jvnet.jaxb2_commons.lang.ToStringStrategy strategy)
appendFields in interface org.jvnet.jaxb2_commons.lang.ToStringappendFields in class BackboneElement