Package org.hl7.fhir

Class 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 Details

  • Constructor Details

    • ObservationComponent

      public ObservationComponent()
  • Method Details

    • getCode

      public CodeableConcept getCode()
      Gets the value of the code property.
      Returns:
      possible object is CodeableConcept
    • setCode

      public void setCode(CodeableConcept value)
      Sets the value of the code property.
      Parameters:
      value - allowed object is CodeableConcept
    • 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 is Quantity
    • getValueCodeableConcept

      public CodeableConcept getValueCodeableConcept()
      Gets the value of the valueCodeableConcept property.
      Returns:
      possible object is CodeableConcept
    • setValueCodeableConcept

      public void setValueCodeableConcept(CodeableConcept value)
      Sets the value of the valueCodeableConcept property.
      Parameters:
      value - allowed object is CodeableConcept
    • 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 is String
    • getValueRange

      public Range getValueRange()
      Gets the value of the valueRange property.
      Returns:
      possible object is Range
    • setValueRange

      public void setValueRange(Range value)
      Sets the value of the valueRange property.
      Parameters:
      value - allowed object is Range
    • getValueRatio

      public Ratio getValueRatio()
      Gets the value of the valueRatio property.
      Returns:
      possible object is Ratio
    • setValueRatio

      public void setValueRatio(Ratio value)
      Sets the value of the valueRatio property.
      Parameters:
      value - allowed object is Ratio
    • getValueSampledData

      public SampledData getValueSampledData()
      Gets the value of the valueSampledData property.
      Returns:
      possible object is SampledData
    • setValueSampledData

      public void setValueSampledData(SampledData value)
      Sets the value of the valueSampledData property.
      Parameters:
      value - allowed object is SampledData
    • 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 is Attachment
    • 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 is Time
    • 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 is DateTime
    • getValuePeriod

      public Period getValuePeriod()
      Gets the value of the valuePeriod property.
      Returns:
      possible object is Period
    • setValuePeriod

      public void setValuePeriod(Period value)
      Sets the value of the valuePeriod property.
      Parameters:
      value - allowed object is Period
    • getDataAbsentReason

      public CodeableConcept getDataAbsentReason()
      Gets the value of the dataAbsentReason property.
      Returns:
      possible object is CodeableConcept
    • setDataAbsentReason

      public void setDataAbsentReason(CodeableConcept value)
      Sets the value of the dataAbsentReason property.
      Parameters:
      value - allowed object is CodeableConcept
    • getReferenceRange

      public List<ObservationReferenceRange> 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 Jakarta XML Binding 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

    • withCode

      public ObservationComponent withCode(CodeableConcept value)
    • withValueQuantity

      public ObservationComponent withValueQuantity(Quantity value)
    • withValueCodeableConcept

      public ObservationComponent withValueCodeableConcept(CodeableConcept value)
    • withValueString

      public ObservationComponent withValueString(String value)
    • withValueRange

      public ObservationComponent withValueRange(Range value)
    • withValueRatio

      public ObservationComponent withValueRatio(Ratio value)
    • withValueSampledData

      public ObservationComponent withValueSampledData(SampledData value)
    • withValueAttachment

      public ObservationComponent withValueAttachment(Attachment value)
    • withValueTime

      public ObservationComponent withValueTime(Time value)
    • withValueDateTime

      public ObservationComponent withValueDateTime(DateTime value)
    • withValuePeriod

      public ObservationComponent withValuePeriod(Period value)
    • withDataAbsentReason

      public ObservationComponent withDataAbsentReason(CodeableConcept value)
    • withReferenceRange

      public ObservationComponent withReferenceRange(ObservationReferenceRange... values)
    • withReferenceRange

      public ObservationComponent withReferenceRange(Collection<ObservationReferenceRange> values)
    • withModifierExtension

      public ObservationComponent withModifierExtension(Extension... values)
      Overrides:
      withModifierExtension in class BackboneElement
    • withModifierExtension

      public ObservationComponent withModifierExtension(Collection<Extension> values)
      Overrides:
      withModifierExtension in class BackboneElement
    • withExtension

      public ObservationComponent withExtension(Extension... values)
      Overrides:
      withExtension in class BackboneElement
    • withExtension

      public ObservationComponent withExtension(Collection<Extension> values)
      Overrides:
      withExtension in class BackboneElement
    • withId

      public ObservationComponent withId(String value)
      Overrides:
      withId in class BackboneElement
    • 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:
      equals in interface org.jvnet.jaxb2_commons.lang.Equals2
      Overrides:
      equals in class BackboneElement
    • equals

      public boolean equals(Object object)
      Overrides:
      equals in class BackboneElement
    • hashCode

      public int hashCode(org.jvnet.jaxb2_commons.locator.ObjectLocator locator, org.jvnet.jaxb2_commons.lang.HashCodeStrategy2 strategy)
      Specified by:
      hashCode in interface org.jvnet.jaxb2_commons.lang.HashCode2
      Overrides:
      hashCode in class BackboneElement
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class BackboneElement
    • toString

      public String toString()
      Overrides:
      toString in class BackboneElement
    • append

      public StringBuilder append(org.jvnet.jaxb2_commons.locator.ObjectLocator locator, StringBuilder buffer, org.jvnet.jaxb2_commons.lang.ToStringStrategy2 strategy)
      Specified by:
      append in interface org.jvnet.jaxb2_commons.lang.ToString2
      Overrides:
      append in class BackboneElement
    • appendFields

      public StringBuilder appendFields(org.jvnet.jaxb2_commons.locator.ObjectLocator locator, StringBuilder buffer, org.jvnet.jaxb2_commons.lang.ToStringStrategy2 strategy)
      Specified by:
      appendFields in interface org.jvnet.jaxb2_commons.lang.ToString2
      Overrides:
      appendFields in class BackboneElement
    • setReferenceRange

      public void setReferenceRange(List<ObservationReferenceRange> value)