Package org.hl7.fhir.dstu2.model
Class DeviceMetric
- java.lang.Object
-
- org.hl7.fhir.dstu2.model.Base
-
- org.hl7.fhir.dstu2.model.BaseResource
-
- org.hl7.fhir.dstu2.model.Resource
-
- org.hl7.fhir.dstu2.model.DomainResource
-
- org.hl7.fhir.dstu2.model.DeviceMetric
-
- All Implemented Interfaces:
ca.uhn.fhir.model.api.IElement,Serializable,org.hl7.fhir.instance.model.api.IAnyResource,org.hl7.fhir.instance.model.api.IBase,org.hl7.fhir.instance.model.api.IBaseHasExtensions,org.hl7.fhir.instance.model.api.IBaseHasModifierExtensions,org.hl7.fhir.instance.model.api.IBaseResource,org.hl7.fhir.instance.model.api.IDomainResource
public class DeviceMetric extends DomainResource
Describes a measurement, calculation or setting capability of a medical device.- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classDeviceMetric.DeviceMetricCalibrationComponentstatic classDeviceMetric.DeviceMetricCalibrationStatestatic classDeviceMetric.DeviceMetricCalibrationStateEnumFactorystatic classDeviceMetric.DeviceMetricCalibrationTypestatic classDeviceMetric.DeviceMetricCalibrationTypeEnumFactorystatic classDeviceMetric.DeviceMetricCategorystatic classDeviceMetric.DeviceMetricCategoryEnumFactorystatic classDeviceMetric.DeviceMetricColorstatic classDeviceMetric.DeviceMetricColorEnumFactorystatic classDeviceMetric.DeviceMetricOperationalStatusstatic classDeviceMetric.DeviceMetricOperationalStatusEnumFactory
-
Field Summary
Fields Modifier and Type Field Description protected List<DeviceMetric.DeviceMetricCalibrationComponent>calibrationDescribes the calibrations that have been performed or that are required to be performed.protected Enumeration<DeviceMetric.DeviceMetricCategory>categoryIndicates the category of the observation generation process.protected Enumeration<DeviceMetric.DeviceMetricColor>colorDescribes the color representation for the metric.protected IdentifieridentifierDescribes the unique identification of this metric that has been assigned by the device or gateway software.protected TimingmeasurementPeriodDescribes the measurement repetition time.protected Enumeration<DeviceMetric.DeviceMetricOperationalStatus>operationalStatusIndicates current operational state of the device.protected ReferenceparentDescribes the link to the DeviceComponent that this DeviceMetric belongs to and that provide information about the location of this DeviceMetric in the containment structure of the parent Device.protected DeviceComponentparentTargetThe actual object that is the target of the reference (Describes the link to the DeviceComponent that this DeviceMetric belongs to and that provide information about the location of this DeviceMetric in the containment structure of the parent Device.protected ReferencesourceDescribes the link to the Device that this DeviceMetric belongs to and that contains administrative device information such as manufacture, serial number, etc.protected DevicesourceTargetThe actual object that is the target of the reference (Describes the link to the Device that this DeviceMetric belongs to and that contains administrative device information such as manufacture, serial number, etc.)static StringSP_CATEGORYstatic StringSP_IDENTIFIERstatic StringSP_PARENTstatic StringSP_SOURCEstatic StringSP_TYPEprotected CodeableConcepttypeDescribes the type of the metric.protected CodeableConceptunitDescribes the unit that an observed value determined for this metric will have.-
Fields inherited from class org.hl7.fhir.dstu2.model.DomainResource
contained, extension, modifierExtension, text
-
Fields inherited from class org.hl7.fhir.dstu2.model.Resource
id, implicitRules, language, meta
-
-
Constructor Summary
Constructors Constructor Description DeviceMetric()DeviceMetric(CodeableConcept type, Identifier identifier, Enumeration<DeviceMetric.DeviceMetricCategory> category)
-
Method Summary
-
Methods inherited from class org.hl7.fhir.dstu2.model.DomainResource
addContained, addExtension, addExtension, addModifierExtension, addModifierExtension, copyValues, getContained, getExtension, getModifierExtension, getText, hasContained, hasExtension, hasModifierExtension, hasText, setText
-
Methods inherited from class org.hl7.fhir.dstu2.model.Resource
copyValues, getId, getIdElement, getImplicitRules, getImplicitRulesElement, getLanguage, getLanguageElement, getMeta, hasId, hasIdElement, hasImplicitRules, hasImplicitRulesElement, hasLanguage, hasLanguageElement, hasMeta, setId, setIdElement, setImplicitRules, setImplicitRulesElement, setLanguage, setLanguageElement, setMeta
-
Methods inherited from class org.hl7.fhir.dstu2.model.BaseResource
getStructureFhirVersionEnum, setId
-
Methods inherited from class org.hl7.fhir.dstu2.model.Base
castToAddress, castToAnnotation, castToAttachment, castToBase64Binary, castToBoolean, castToCode, castToCodeableConcept, castToCoding, castToContactPoint, castToDate, castToDateTime, castToDecimal, castToDuration, castToElementDefinition, castToExtension, castToHumanName, castToId, castToIdentifier, castToInstant, castToInteger, castToMarkdown, castToMeta, castToMoney, castToNarrative, castToOid, castToPeriod, castToPositiveInt, castToQuantity, castToRange, castToRatio, castToReference, castToResource, castToSampledData, castToSignature, castToSimpleQuantity, castToString, castToTime, castToTiming, castToUnsignedInt, castToUri, children, compareDeep, compareDeep, compareDeep, compareValues, compareValues, equals, getChildByName, getFormatCommentsPost, getFormatCommentsPre, getUserData, getUserInt, getUserString, hasFormatComment, hasType, hasUserData, isMetadataBased, isPrimitive, listChildrenByName, primitiveValue, setUserData, setUserDataINN
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.hl7.fhir.instance.model.api.IAnyResource
getId, getIdElement, getLanguageElement, getUserData, setId, setUserData
-
-
-
-
Field Detail
-
type
protected CodeableConcept type
Describes the type of the metric. For example: Heart Rate, PEEP Setting, etc.
-
identifier
protected Identifier identifier
Describes the unique identification of this metric that has been assigned by the device or gateway software. For example: handle ID. It should be noted that in order to make the identifier unique, the system element of the identifier should be set to the unique identifier of the device.
-
unit
protected CodeableConcept unit
Describes the unit that an observed value determined for this metric will have. For example: Percent, Seconds, etc.
-
source
protected Reference source
Describes the link to the Device that this DeviceMetric belongs to and that contains administrative device information such as manufacture, serial number, etc.
-
sourceTarget
protected Device sourceTarget
The actual object that is the target of the reference (Describes the link to the Device that this DeviceMetric belongs to and that contains administrative device information such as manufacture, serial number, etc.)
-
parent
protected Reference parent
Describes the link to the DeviceComponent that this DeviceMetric belongs to and that provide information about the location of this DeviceMetric in the containment structure of the parent Device. An example would be a DeviceComponent that represents a Channel. This reference can be used by a client application to distinguish DeviceMetrics that have the same type, but should be interpreted based on their containment location.
-
parentTarget
protected DeviceComponent parentTarget
The actual object that is the target of the reference (Describes the link to the DeviceComponent that this DeviceMetric belongs to and that provide information about the location of this DeviceMetric in the containment structure of the parent Device. An example would be a DeviceComponent that represents a Channel. This reference can be used by a client application to distinguish DeviceMetrics that have the same type, but should be interpreted based on their containment location.)
-
operationalStatus
protected Enumeration<DeviceMetric.DeviceMetricOperationalStatus> operationalStatus
Indicates current operational state of the device. For example: On, Off, Standby, etc.
-
color
protected Enumeration<DeviceMetric.DeviceMetricColor> color
Describes the color representation for the metric. This is often used to aid clinicians to track and identify parameter types by color. In practice, consider a Patient Monitor that has ECG/HR and Pleth for example; the parameters are displayed in different characteristic colors, such as HR-blue, BP-green, and PR and SpO2- magenta.
-
category
protected Enumeration<DeviceMetric.DeviceMetricCategory> category
Indicates the category of the observation generation process. A DeviceMetric can be for example a setting, measurement, or calculation.
-
measurementPeriod
protected Timing measurementPeriod
Describes the measurement repetition time. This is not necessarily the same as the update period. The measurement repetition time can range from milliseconds up to hours. An example for a measurement repetition time in the range of milliseconds is the sampling rate of an ECG. An example for a measurement repetition time in the range of hours is a NIBP that is triggered automatically every hour. The update period may be different than the measurement repetition time, if the device does not update the published observed value with the same frequency as it was measured.
-
calibration
protected List<DeviceMetric.DeviceMetricCalibrationComponent> calibration
Describes the calibrations that have been performed or that are required to be performed.
-
SP_PARENT
public static final String SP_PARENT
- See Also:
- Constant Field Values
-
SP_IDENTIFIER
public static final String SP_IDENTIFIER
- See Also:
- Constant Field Values
-
SP_SOURCE
public static final String SP_SOURCE
- See Also:
- Constant Field Values
-
SP_TYPE
public static final String SP_TYPE
- See Also:
- Constant Field Values
-
SP_CATEGORY
public static final String SP_CATEGORY
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
DeviceMetric
public DeviceMetric()
-
DeviceMetric
public DeviceMetric(CodeableConcept type, Identifier identifier, Enumeration<DeviceMetric.DeviceMetricCategory> category)
-
-
Method Detail
-
getType
public CodeableConcept getType()
- Returns:
type(Describes the type of the metric. For example: Heart Rate, PEEP Setting, etc.)
-
hasType
public boolean hasType()
-
setType
public DeviceMetric setType(CodeableConcept value)
- Parameters:
value-type(Describes the type of the metric. For example: Heart Rate, PEEP Setting, etc.)
-
getIdentifier
public Identifier getIdentifier()
- Returns:
identifier(Describes the unique identification of this metric that has been assigned by the device or gateway software. For example: handle ID. It should be noted that in order to make the identifier unique, the system element of the identifier should be set to the unique identifier of the device.)
-
hasIdentifier
public boolean hasIdentifier()
-
setIdentifier
public DeviceMetric setIdentifier(Identifier value)
- Parameters:
value-identifier(Describes the unique identification of this metric that has been assigned by the device or gateway software. For example: handle ID. It should be noted that in order to make the identifier unique, the system element of the identifier should be set to the unique identifier of the device.)
-
getUnit
public CodeableConcept getUnit()
- Returns:
unit(Describes the unit that an observed value determined for this metric will have. For example: Percent, Seconds, etc.)
-
hasUnit
public boolean hasUnit()
-
setUnit
public DeviceMetric setUnit(CodeableConcept value)
- Parameters:
value-unit(Describes the unit that an observed value determined for this metric will have. For example: Percent, Seconds, etc.)
-
getSource
public Reference getSource()
- Returns:
source(Describes the link to the Device that this DeviceMetric belongs to and that contains administrative device information such as manufacture, serial number, etc.)
-
hasSource
public boolean hasSource()
-
setSource
public DeviceMetric setSource(Reference value)
- Parameters:
value-source(Describes the link to the Device that this DeviceMetric belongs to and that contains administrative device information such as manufacture, serial number, etc.)
-
getSourceTarget
public Device getSourceTarget()
- Returns:
sourceThe actual object that is the target of the reference. The reference library doesn't populate this, but you can use it to hold the resource if you resolve it. (Describes the link to the Device that this DeviceMetric belongs to and that contains administrative device information such as manufacture, serial number, etc.)
-
setSourceTarget
public DeviceMetric setSourceTarget(Device value)
- Parameters:
value-sourceThe actual object that is the target of the reference. The reference library doesn't use these, but you can use it to hold the resource if you resolve it. (Describes the link to the Device that this DeviceMetric belongs to and that contains administrative device information such as manufacture, serial number, etc.)
-
getParent
public Reference getParent()
- Returns:
parent(Describes the link to the DeviceComponent that this DeviceMetric belongs to and that provide information about the location of this DeviceMetric in the containment structure of the parent Device. An example would be a DeviceComponent that represents a Channel. This reference can be used by a client application to distinguish DeviceMetrics that have the same type, but should be interpreted based on their containment location.)
-
hasParent
public boolean hasParent()
-
setParent
public DeviceMetric setParent(Reference value)
- Parameters:
value-parent(Describes the link to the DeviceComponent that this DeviceMetric belongs to and that provide information about the location of this DeviceMetric in the containment structure of the parent Device. An example would be a DeviceComponent that represents a Channel. This reference can be used by a client application to distinguish DeviceMetrics that have the same type, but should be interpreted based on their containment location.)
-
getParentTarget
public DeviceComponent getParentTarget()
- Returns:
parentThe actual object that is the target of the reference. The reference library doesn't populate this, but you can use it to hold the resource if you resolve it. (Describes the link to the DeviceComponent that this DeviceMetric belongs to and that provide information about the location of this DeviceMetric in the containment structure of the parent Device. An example would be a DeviceComponent that represents a Channel. This reference can be used by a client application to distinguish DeviceMetrics that have the same type, but should be interpreted based on their containment location.)
-
setParentTarget
public DeviceMetric setParentTarget(DeviceComponent value)
- Parameters:
value-parentThe actual object that is the target of the reference. The reference library doesn't use these, but you can use it to hold the resource if you resolve it. (Describes the link to the DeviceComponent that this DeviceMetric belongs to and that provide information about the location of this DeviceMetric in the containment structure of the parent Device. An example would be a DeviceComponent that represents a Channel. This reference can be used by a client application to distinguish DeviceMetrics that have the same type, but should be interpreted based on their containment location.)
-
getOperationalStatusElement
public Enumeration<DeviceMetric.DeviceMetricOperationalStatus> getOperationalStatusElement()
- Returns:
operationalStatus(Indicates current operational state of the device. For example: On, Off, Standby, etc.). This is the underlying object with id, value and extensions. The accessor "getOperationalStatus" gives direct access to the value
-
hasOperationalStatusElement
public boolean hasOperationalStatusElement()
-
hasOperationalStatus
public boolean hasOperationalStatus()
-
setOperationalStatusElement
public DeviceMetric setOperationalStatusElement(Enumeration<DeviceMetric.DeviceMetricOperationalStatus> value)
- Parameters:
value-operationalStatus(Indicates current operational state of the device. For example: On, Off, Standby, etc.). This is the underlying object with id, value and extensions. The accessor "getOperationalStatus" gives direct access to the value
-
getOperationalStatus
public DeviceMetric.DeviceMetricOperationalStatus getOperationalStatus()
- Returns:
- Indicates current operational state of the device. For example: On, Off, Standby, etc.
-
setOperationalStatus
public DeviceMetric setOperationalStatus(DeviceMetric.DeviceMetricOperationalStatus value)
- Parameters:
value- Indicates current operational state of the device. For example: On, Off, Standby, etc.
-
getColorElement
public Enumeration<DeviceMetric.DeviceMetricColor> getColorElement()
- Returns:
color(Describes the color representation for the metric. This is often used to aid clinicians to track and identify parameter types by color. In practice, consider a Patient Monitor that has ECG/HR and Pleth for example; the parameters are displayed in different characteristic colors, such as HR-blue, BP-green, and PR and SpO2- magenta.). This is the underlying object with id, value and extensions. The accessor "getColor" gives direct access to the value
-
hasColorElement
public boolean hasColorElement()
-
hasColor
public boolean hasColor()
-
setColorElement
public DeviceMetric setColorElement(Enumeration<DeviceMetric.DeviceMetricColor> value)
- Parameters:
value-color(Describes the color representation for the metric. This is often used to aid clinicians to track and identify parameter types by color. In practice, consider a Patient Monitor that has ECG/HR and Pleth for example; the parameters are displayed in different characteristic colors, such as HR-blue, BP-green, and PR and SpO2- magenta.). This is the underlying object with id, value and extensions. The accessor "getColor" gives direct access to the value
-
getColor
public DeviceMetric.DeviceMetricColor getColor()
- Returns:
- Describes the color representation for the metric. This is often used to aid clinicians to track and identify parameter types by color. In practice, consider a Patient Monitor that has ECG/HR and Pleth for example; the parameters are displayed in different characteristic colors, such as HR-blue, BP-green, and PR and SpO2- magenta.
-
setColor
public DeviceMetric setColor(DeviceMetric.DeviceMetricColor value)
- Parameters:
value- Describes the color representation for the metric. This is often used to aid clinicians to track and identify parameter types by color. In practice, consider a Patient Monitor that has ECG/HR and Pleth for example; the parameters are displayed in different characteristic colors, such as HR-blue, BP-green, and PR and SpO2- magenta.
-
getCategoryElement
public Enumeration<DeviceMetric.DeviceMetricCategory> getCategoryElement()
- Returns:
category(Indicates the category of the observation generation process. A DeviceMetric can be for example a setting, measurement, or calculation.). This is the underlying object with id, value and extensions. The accessor "getCategory" gives direct access to the value
-
hasCategoryElement
public boolean hasCategoryElement()
-
hasCategory
public boolean hasCategory()
-
setCategoryElement
public DeviceMetric setCategoryElement(Enumeration<DeviceMetric.DeviceMetricCategory> value)
- Parameters:
value-category(Indicates the category of the observation generation process. A DeviceMetric can be for example a setting, measurement, or calculation.). This is the underlying object with id, value and extensions. The accessor "getCategory" gives direct access to the value
-
getCategory
public DeviceMetric.DeviceMetricCategory getCategory()
- Returns:
- Indicates the category of the observation generation process. A DeviceMetric can be for example a setting, measurement, or calculation.
-
setCategory
public DeviceMetric setCategory(DeviceMetric.DeviceMetricCategory value)
- Parameters:
value- Indicates the category of the observation generation process. A DeviceMetric can be for example a setting, measurement, or calculation.
-
getMeasurementPeriod
public Timing getMeasurementPeriod()
- Returns:
measurementPeriod(Describes the measurement repetition time. This is not necessarily the same as the update period. The measurement repetition time can range from milliseconds up to hours. An example for a measurement repetition time in the range of milliseconds is the sampling rate of an ECG. An example for a measurement repetition time in the range of hours is a NIBP that is triggered automatically every hour. The update period may be different than the measurement repetition time, if the device does not update the published observed value with the same frequency as it was measured.)
-
hasMeasurementPeriod
public boolean hasMeasurementPeriod()
-
setMeasurementPeriod
public DeviceMetric setMeasurementPeriod(Timing value)
- Parameters:
value-measurementPeriod(Describes the measurement repetition time. This is not necessarily the same as the update period. The measurement repetition time can range from milliseconds up to hours. An example for a measurement repetition time in the range of milliseconds is the sampling rate of an ECG. An example for a measurement repetition time in the range of hours is a NIBP that is triggered automatically every hour. The update period may be different than the measurement repetition time, if the device does not update the published observed value with the same frequency as it was measured.)
-
getCalibration
public List<DeviceMetric.DeviceMetricCalibrationComponent> getCalibration()
- Returns:
calibration(Describes the calibrations that have been performed or that are required to be performed.)
-
hasCalibration
public boolean hasCalibration()
-
addCalibration
public DeviceMetric.DeviceMetricCalibrationComponent addCalibration()
- Returns:
calibration(Describes the calibrations that have been performed or that are required to be performed.)
-
addCalibration
public DeviceMetric addCalibration(DeviceMetric.DeviceMetricCalibrationComponent t)
-
listChildren
protected void listChildren(List<Property> childrenList)
- Overrides:
listChildrenin classDomainResource
-
setProperty
public void setProperty(String name, Base value) throws org.hl7.fhir.exceptions.FHIRException
- Overrides:
setPropertyin classDomainResource- Throws:
org.hl7.fhir.exceptions.FHIRException
-
addChild
public Base addChild(String name) throws org.hl7.fhir.exceptions.FHIRException
- Overrides:
addChildin classDomainResource- Throws:
org.hl7.fhir.exceptions.FHIRException
-
fhirType
public String fhirType()
- Specified by:
fhirTypein interfaceorg.hl7.fhir.instance.model.api.IBase- Overrides:
fhirTypein classDomainResource
-
copy
public DeviceMetric copy()
- Specified by:
copyin classDomainResource
-
typedCopy
protected DeviceMetric typedCopy()
-
equalsDeep
public boolean equalsDeep(Base other)
- Overrides:
equalsDeepin classDomainResource
-
equalsShallow
public boolean equalsShallow(Base other)
- Overrides:
equalsShallowin classDomainResource
-
isEmpty
public boolean isEmpty()
- Specified by:
isEmptyin interfaceorg.hl7.fhir.instance.model.api.IBase- Overrides:
isEmptyin classDomainResource
-
getResourceType
public ResourceType getResourceType()
- Specified by:
getResourceTypein classResource
-
-