Package org.hl7.fhir
Class DeviceMetric
- java.lang.Object
-
- org.hl7.fhir.Resource
-
- org.hl7.fhir.DomainResource
-
- org.hl7.fhir.DeviceMetric
-
- All Implemented Interfaces:
org.jvnet.jaxb2_commons.lang.Equals2,org.jvnet.jaxb2_commons.lang.HashCode2,org.jvnet.jaxb2_commons.lang.ToString2
public class DeviceMetric extends DomainResource implements org.jvnet.jaxb2_commons.lang.Equals2, org.jvnet.jaxb2_commons.lang.HashCode2, org.jvnet.jaxb2_commons.lang.ToString2
If the element is present, it must have either a @value, an @id, or extensionsJava class for DeviceMetric complex type.
The following schema fragment specifies the expected content contained within this class.
<complexType name="DeviceMetric"> <complexContent> <extension base="{http://hl7.org/fhir}DomainResource"> <sequence> <element name="type" type="{http://hl7.org/fhir}CodeableConcept"/> <element name="identifier" type="{http://hl7.org/fhir}Identifier"/> <element name="unit" type="{http://hl7.org/fhir}CodeableConcept" minOccurs="0"/> <element name="source" type="{http://hl7.org/fhir}Reference" minOccurs="0"/> <element name="parent" type="{http://hl7.org/fhir}Reference" minOccurs="0"/> <element name="operationalStatus" type="{http://hl7.org/fhir}DeviceMetricOperationalStatus" minOccurs="0"/> <element name="color" type="{http://hl7.org/fhir}DeviceMetricColor" minOccurs="0"/> <element name="category" type="{http://hl7.org/fhir}DeviceMetricCategory"/> <element name="measurementPeriod" type="{http://hl7.org/fhir}Timing" minOccurs="0"/> <element name="calibration" type="{http://hl7.org/fhir}DeviceMetric.Calibration" maxOccurs="unbounded" minOccurs="0"/> </sequence> </extension> </complexContent> </complexType>
-
-
Field Summary
Fields Modifier and Type Field Description protected java.util.List<DeviceMetricCalibration>calibrationprotected DeviceMetricCategorycategoryprotected DeviceMetricColorcolorprotected Identifieridentifierprotected TimingmeasurementPeriodprotected DeviceMetricOperationalStatusoperationalStatusprotected Referenceparentprotected Referencesourceprotected CodeableConcepttypeprotected CodeableConceptunit-
Fields inherited from class org.hl7.fhir.DomainResource
contained, extension, modifierExtension, text
-
Fields inherited from class org.hl7.fhir.Resource
id, implicitRules, language, meta
-
-
Constructor Summary
Constructors Constructor Description DeviceMetric()
-
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)java.util.List<DeviceMetricCalibration>getCalibration()Gets the value of the calibration property.DeviceMetricCategorygetCategory()Gets the value of the category property.DeviceMetricColorgetColor()Gets the value of the color property.IdentifiergetIdentifier()Gets the value of the identifier property.TiminggetMeasurementPeriod()Gets the value of the measurementPeriod property.DeviceMetricOperationalStatusgetOperationalStatus()Gets the value of the operationalStatus property.ReferencegetParent()Gets the value of the parent property.ReferencegetSource()Gets the value of the source property.CodeableConceptgetType()Gets the value of the type property.CodeableConceptgetUnit()Gets the value of the unit property.inthashCode()inthashCode(org.jvnet.jaxb2_commons.locator.ObjectLocator locator, org.jvnet.jaxb2_commons.lang.HashCodeStrategy2 strategy)voidsetCategory(DeviceMetricCategory value)Sets the value of the category property.voidsetColor(DeviceMetricColor value)Sets the value of the color property.voidsetIdentifier(Identifier value)Sets the value of the identifier property.voidsetMeasurementPeriod(Timing value)Sets the value of the measurementPeriod property.voidsetOperationalStatus(DeviceMetricOperationalStatus value)Sets the value of the operationalStatus property.voidsetParent(Reference value)Sets the value of the parent property.voidsetSource(Reference value)Sets the value of the source property.voidsetType(CodeableConcept value)Sets the value of the type property.voidsetUnit(CodeableConcept value)Sets the value of the unit property.java.lang.StringtoString()DeviceMetricwithCalibration(java.util.Collection<DeviceMetricCalibration> values)DeviceMetricwithCalibration(DeviceMetricCalibration... values)DeviceMetricwithCategory(DeviceMetricCategory value)DeviceMetricwithColor(DeviceMetricColor value)DeviceMetricwithContained(java.util.Collection<ResourceContainer> values)DeviceMetricwithContained(ResourceContainer... values)DeviceMetricwithExtension(java.util.Collection<Extension> values)DeviceMetricwithExtension(Extension... values)DeviceMetricwithId(Id value)DeviceMetricwithIdentifier(Identifier value)DeviceMetricwithImplicitRules(Uri value)DeviceMetricwithLanguage(Code value)DeviceMetricwithMeasurementPeriod(Timing value)DeviceMetricwithMeta(Meta value)DeviceMetricwithModifierExtension(java.util.Collection<Extension> values)DeviceMetricwithModifierExtension(Extension... values)DeviceMetricwithOperationalStatus(DeviceMetricOperationalStatus value)DeviceMetricwithParent(Reference value)DeviceMetricwithSource(Reference value)DeviceMetricwithText(Narrative value)DeviceMetricwithType(CodeableConcept value)DeviceMetricwithUnit(CodeableConcept value)-
Methods inherited from class org.hl7.fhir.DomainResource
getContained, getExtension, getModifierExtension, getText, setText
-
Methods inherited from class org.hl7.fhir.Resource
getId, getImplicitRules, getLanguage, getMeta, setId, setImplicitRules, setLanguage, setMeta
-
-
-
-
Field Detail
-
type
protected CodeableConcept type
-
identifier
protected Identifier identifier
-
unit
protected CodeableConcept unit
-
source
protected Reference source
-
parent
protected Reference parent
-
operationalStatus
protected DeviceMetricOperationalStatus operationalStatus
-
color
protected DeviceMetricColor color
-
category
protected DeviceMetricCategory category
-
measurementPeriod
protected Timing measurementPeriod
-
calibration
protected java.util.List<DeviceMetricCalibration> calibration
-
-
Method Detail
-
getType
public CodeableConcept getType()
Gets the value of the type property.- Returns:
- possible object is
CodeableConcept
-
setType
public void setType(CodeableConcept value)
Sets the value of the type property.- Parameters:
value- allowed object isCodeableConcept
-
getIdentifier
public Identifier getIdentifier()
Gets the value of the identifier property.- Returns:
- possible object is
Identifier
-
setIdentifier
public void setIdentifier(Identifier value)
Sets the value of the identifier property.- Parameters:
value- allowed object isIdentifier
-
getUnit
public CodeableConcept getUnit()
Gets the value of the unit property.- Returns:
- possible object is
CodeableConcept
-
setUnit
public void setUnit(CodeableConcept value)
Sets the value of the unit property.- Parameters:
value- allowed object isCodeableConcept
-
getSource
public Reference getSource()
Gets the value of the source property.- Returns:
- possible object is
Reference
-
setSource
public void setSource(Reference value)
Sets the value of the source property.- Parameters:
value- allowed object isReference
-
getParent
public Reference getParent()
Gets the value of the parent property.- Returns:
- possible object is
Reference
-
setParent
public void setParent(Reference value)
Sets the value of the parent property.- Parameters:
value- allowed object isReference
-
getOperationalStatus
public DeviceMetricOperationalStatus getOperationalStatus()
Gets the value of the operationalStatus property.- Returns:
- possible object is
DeviceMetricOperationalStatus
-
setOperationalStatus
public void setOperationalStatus(DeviceMetricOperationalStatus value)
Sets the value of the operationalStatus property.- Parameters:
value- allowed object isDeviceMetricOperationalStatus
-
getColor
public DeviceMetricColor getColor()
Gets the value of the color property.- Returns:
- possible object is
DeviceMetricColor
-
setColor
public void setColor(DeviceMetricColor value)
Sets the value of the color property.- Parameters:
value- allowed object isDeviceMetricColor
-
getCategory
public DeviceMetricCategory getCategory()
Gets the value of the category property.- Returns:
- possible object is
DeviceMetricCategory
-
setCategory
public void setCategory(DeviceMetricCategory value)
Sets the value of the category property.- Parameters:
value- allowed object isDeviceMetricCategory
-
getMeasurementPeriod
public Timing getMeasurementPeriod()
Gets the value of the measurementPeriod property.- Returns:
- possible object is
Timing
-
setMeasurementPeriod
public void setMeasurementPeriod(Timing value)
Sets the value of the measurementPeriod property.- Parameters:
value- allowed object isTiming
-
getCalibration
public java.util.List<DeviceMetricCalibration> getCalibration()
Gets the value of the calibration 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 calibration property.For example, to add a new item, do as follows:
getCalibration().add(newItem);Objects of the following type(s) are allowed in the list
DeviceMetricCalibration
-
withType
public DeviceMetric withType(CodeableConcept value)
-
withIdentifier
public DeviceMetric withIdentifier(Identifier value)
-
withUnit
public DeviceMetric withUnit(CodeableConcept value)
-
withSource
public DeviceMetric withSource(Reference value)
-
withParent
public DeviceMetric withParent(Reference value)
-
withOperationalStatus
public DeviceMetric withOperationalStatus(DeviceMetricOperationalStatus value)
-
withColor
public DeviceMetric withColor(DeviceMetricColor value)
-
withCategory
public DeviceMetric withCategory(DeviceMetricCategory value)
-
withMeasurementPeriod
public DeviceMetric withMeasurementPeriod(Timing value)
-
withCalibration
public DeviceMetric withCalibration(DeviceMetricCalibration... values)
-
withCalibration
public DeviceMetric withCalibration(java.util.Collection<DeviceMetricCalibration> values)
-
withText
public DeviceMetric withText(Narrative value)
- Overrides:
withTextin classDomainResource
-
withContained
public DeviceMetric withContained(ResourceContainer... values)
- Overrides:
withContainedin classDomainResource
-
withContained
public DeviceMetric withContained(java.util.Collection<ResourceContainer> values)
- Overrides:
withContainedin classDomainResource
-
withExtension
public DeviceMetric withExtension(Extension... values)
- Overrides:
withExtensionin classDomainResource
-
withExtension
public DeviceMetric withExtension(java.util.Collection<Extension> values)
- Overrides:
withExtensionin classDomainResource
-
withModifierExtension
public DeviceMetric withModifierExtension(Extension... values)
- Overrides:
withModifierExtensionin classDomainResource
-
withModifierExtension
public DeviceMetric withModifierExtension(java.util.Collection<Extension> values)
- Overrides:
withModifierExtensionin classDomainResource
-
withId
public DeviceMetric withId(Id value)
- Overrides:
withIdin classDomainResource
-
withMeta
public DeviceMetric withMeta(Meta value)
- Overrides:
withMetain classDomainResource
-
withImplicitRules
public DeviceMetric withImplicitRules(Uri value)
- Overrides:
withImplicitRulesin classDomainResource
-
withLanguage
public DeviceMetric withLanguage(Code value)
- Overrides:
withLanguagein classDomainResource
-
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 classDomainResource
-
equals
public boolean equals(java.lang.Object object)
- Overrides:
equalsin classDomainResource
-
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 classDomainResource
-
hashCode
public int hashCode()
- Overrides:
hashCodein classDomainResource
-
toString
public java.lang.String toString()
- Overrides:
toStringin classDomainResource
-
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 classDomainResource
-
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 classDomainResource
-
-