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-
Fields inherited from class org.hl7.fhir.BackboneElement
modifierExtension
-
-
Constructor Summary
Constructors Constructor Description ObservationComponent()
-
Method Summary
All Methods Instance Methods Concrete Methods 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)-
Methods inherited from class org.hl7.fhir.BackboneElement
getModifierExtension
-
Methods inherited from class org.hl7.fhir.Element
getExtension, getId, setId
-
-
-
-
Field Detail
-
code
protected CodeableConcept code
-
valueQuantity
protected Quantity valueQuantity
-
valueCodeableConcept
protected CodeableConcept valueCodeableConcept
-
valueString
protected String valueString
-
valueRange
protected Range valueRange
-
valueRatio
protected Ratio valueRatio
-
valueSampledData
protected SampledData valueSampledData
-
valueAttachment
protected Attachment valueAttachment
-
valueTime
protected Time valueTime
-
valueDateTime
protected DateTime valueDateTime
-
valuePeriod
protected Period valuePeriod
-
dataAbsentReason
protected CodeableConcept dataAbsentReason
-
referenceRange
protected java.util.List<ObservationReferenceRange> referenceRange
-
-
Method Detail
-
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 isCodeableConcept
-
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 isQuantity
-
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 isCodeableConcept
-
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 isString
-
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 isRange
-
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 isRatio
-
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 isSampledData
-
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 isAttachment
-
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 isTime
-
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 isDateTime
-
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 isPeriod
-
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 isCodeableConcept
-
getReferenceRange
public java.util.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 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
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(java.util.Collection<ObservationReferenceRange> values)
-
withModifierExtension
public ObservationComponent withModifierExtension(Extension... values)
- Overrides:
withModifierExtensionin classBackboneElement
-
withModifierExtension
public ObservationComponent withModifierExtension(java.util.Collection<Extension> values)
- Overrides:
withModifierExtensionin classBackboneElement
-
withExtension
public ObservationComponent withExtension(Extension... values)
- Overrides:
withExtensionin classBackboneElement
-
withExtension
public ObservationComponent withExtension(java.util.Collection<Extension> values)
- Overrides:
withExtensionin classBackboneElement
-
withId
public ObservationComponent withId(java.lang.String value)
- 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
-
-