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
FieldsModifier and TypeFieldDescriptionprotected CodeableConceptprotected CodeableConceptprotected List<ObservationReferenceRange> protected Attachmentprotected CodeableConceptprotected DateTimeprotected Periodprotected Quantityprotected Rangeprotected Ratioprotected SampledDataprotected Stringprotected TimeFields 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) getCode()Gets the value of the code property.Gets the value of the dataAbsentReason property.Gets the value of the referenceRange property.Gets the value of the valueAttachment property.Gets the value of the valueCodeableConcept property.Gets the value of the valueDateTime property.Gets the value of the valuePeriod property.Gets the value of the valueQuantity property.Gets the value of the valueRange property.Gets the value of the valueRatio property.Gets the value of the valueSampledData property.Gets the value of the valueString property.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.voidSets the value of the dataAbsentReason property.voidvoidsetValueAttachment(Attachment value) Sets the value of the valueAttachment property.voidSets 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.toString()withCode(CodeableConcept value) withExtension(Collection<Extension> values) withExtension(Extension... values) withModifierExtension(Collection<Extension> values) withModifierExtension(Extension... values) withReferenceRange(ObservationReferenceRange... values) withValueAttachment(Attachment value) withValueDateTime(DateTime value) withValuePeriod(Period value) withValueQuantity(Quantity value) withValueRange(Range value) withValueRatio(Ratio value) withValueSampledData(SampledData value) withValueString(String value) withValueTime(Time value) Methods inherited from class org.hl7.fhir.BackboneElement
getModifierExtension, setModifierExtensionMethods inherited from class org.hl7.fhir.Element
getExtension, getId, setExtension, setId
-
Field Details
-
code
-
valueQuantity
-
valueCodeableConcept
-
valueString
-
valueRange
-
valueRatio
-
valueSampledData
-
valueAttachment
-
valueTime
-
valueDateTime
-
valuePeriod
-
dataAbsentReason
-
referenceRange
-
-
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 Jakarta XML Binding 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
-
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
-
setReferenceRange
-