Package org.hl7.fhir
Class ObservationComponent
java.lang.Object
org.hl7.fhir.Element
org.hl7.fhir.BackboneElement
org.hl7.fhir.ObservationComponent
- All Implemented Interfaces:
org.jvnet.jaxb2_commons.lang.Equals2,org.jvnet.jaxb2_commons.lang.HashCode2,org.jvnet.jaxb2_commons.lang.ToString2
public class ObservationComponent extends BackboneElement implements org.jvnet.jaxb2_commons.lang.Equals2, org.jvnet.jaxb2_commons.lang.HashCode2, org.jvnet.jaxb2_commons.lang.ToString2
Measurements and simple assertions made about a patient, device or other subject.
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>
-
Field Summary
Fields Modifier and Type Field Description protected CodeableConceptcodeprotected CodeableConceptdataAbsentReasonprotected java.util.List<ObservationReferenceRange>referenceRangeprotected AttachmentvalueAttachmentprotected CodeableConceptvalueCodeableConceptprotected DateTimevalueDateTimeprotected PeriodvaluePeriodprotected QuantityvalueQuantityprotected RangevalueRangeprotected RatiovalueRatioprotected SampledDatavalueSampledDataprotected StringvalueStringprotected TimevalueTime -
Constructor Summary
Constructors Constructor Description ObservationComponent() -
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)CodeableConceptgetCode()Gets the value of the code property.CodeableConceptgetDataAbsentReason()Gets the value of the dataAbsentReason property.java.util.List<ObservationReferenceRange>getReferenceRange()Gets the value of the referenceRange property.AttachmentgetValueAttachment()Gets the value of the valueAttachment property.CodeableConceptgetValueCodeableConcept()Gets the value of the valueCodeableConcept property.DateTimegetValueDateTime()Gets the value of the valueDateTime property.PeriodgetValuePeriod()Gets the value of the valuePeriod property.QuantitygetValueQuantity()Gets the value of the valueQuantity property.RangegetValueRange()Gets the value of the valueRange property.RatiogetValueRatio()Gets the value of the valueRatio property.SampledDatagetValueSampledData()Gets the value of the valueSampledData property.StringgetValueString()Gets the value of the valueString property.TimegetValueTime()Gets the value of the valueTime property.inthashCode()inthashCode(org.jvnet.jaxb2_commons.locator.ObjectLocator locator, org.jvnet.jaxb2_commons.lang.HashCodeStrategy2 strategy)voidsetCode(CodeableConcept value)Sets the value of the code property.voidsetDataAbsentReason(CodeableConcept value)Sets the value of the dataAbsentReason property.voidsetValueAttachment(Attachment value)Sets the value of the valueAttachment property.voidsetValueCodeableConcept(CodeableConcept value)Sets the value of the valueCodeableConcept property.voidsetValueDateTime(DateTime value)Sets the value of the valueDateTime property.voidsetValuePeriod(Period value)Sets the value of the valuePeriod property.voidsetValueQuantity(Quantity value)Sets the value of the valueQuantity property.voidsetValueRange(Range value)Sets the value of the valueRange property.voidsetValueRatio(Ratio value)Sets the value of the valueRatio property.voidsetValueSampledData(SampledData value)Sets the value of the valueSampledData property.voidsetValueString(String value)Sets the value of the valueString property.voidsetValueTime(Time value)Sets the value of the valueTime property.java.lang.StringtoString()ObservationComponentwithCode(CodeableConcept value)ObservationComponentwithDataAbsentReason(CodeableConcept value)ObservationComponentwithExtension(java.util.Collection<Extension> values)ObservationComponentwithExtension(Extension... values)ObservationComponentwithId(java.lang.String value)ObservationComponentwithModifierExtension(java.util.Collection<Extension> values)ObservationComponentwithModifierExtension(Extension... values)ObservationComponentwithReferenceRange(java.util.Collection<ObservationReferenceRange> values)ObservationComponentwithReferenceRange(ObservationReferenceRange... values)ObservationComponentwithValueAttachment(Attachment value)ObservationComponentwithValueCodeableConcept(CodeableConcept value)ObservationComponentwithValueDateTime(DateTime value)ObservationComponentwithValuePeriod(Period value)ObservationComponentwithValueQuantity(Quantity value)ObservationComponentwithValueRange(Range value)ObservationComponentwithValueRatio(Ratio value)ObservationComponentwithValueSampledData(SampledData value)ObservationComponentwithValueString(String value)ObservationComponentwithValueTime(Time value)
-
Field Details
-
Constructor Details
-
ObservationComponent
public ObservationComponent()
-
-
Method Details
-
getCode
Gets the value of the code property.- Returns:
- possible object is
CodeableConcept
-
setCode
Sets the value of the code property.- Parameters:
value- allowed object isCodeableConcept
-
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
-
getValueCodeableConcept
Gets the value of the valueCodeableConcept property.- Returns:
- possible object is
CodeableConcept
-
setValueCodeableConcept
Sets the value of the valueCodeableConcept property.- Parameters:
value- allowed object isCodeableConcept
-
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
-
getValueRange
Gets the value of the valueRange property.- Returns:
- possible object is
Range
-
setValueRange
Sets the value of the valueRange property.- Parameters:
value- allowed object isRange
-
getValueRatio
Gets the value of the valueRatio property.- Returns:
- possible object is
Ratio
-
setValueRatio
Sets the value of the valueRatio property.- Parameters:
value- allowed object isRatio
-
getValueSampledData
Gets the value of the valueSampledData property.- Returns:
- possible object is
SampledData
-
setValueSampledData
Sets the value of the valueSampledData property.- Parameters:
value- allowed object isSampledData
-
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
-
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
-
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
-
getValuePeriod
Gets the value of the valuePeriod property.- Returns:
- possible object is
Period
-
setValuePeriod
Sets the value of the valuePeriod property.- Parameters:
value- allowed object isPeriod
-
getDataAbsentReason
Gets the value of the dataAbsentReason property.- Returns:
- possible object is
CodeableConcept
-
setDataAbsentReason
Sets the value of the dataAbsentReason property.- Parameters:
value- allowed object isCodeableConcept
-
getReferenceRange
Gets the value of the referenceRange 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 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 -
withCode
-
withValueQuantity
-
withValueCodeableConcept
-
withValueString
-
withValueRange
-
withValueRatio
-
withValueSampledData
-
withValueAttachment
-
withValueTime
-
withValueDateTime
-
withValuePeriod
-
withDataAbsentReason
-
withReferenceRange
-
withReferenceRange
public ObservationComponent withReferenceRange(java.util.Collection<ObservationReferenceRange> 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
-