Package com.ibm.fhir.model.type
Class SampledData
- java.lang.Object
-
- com.ibm.fhir.model.visitor.AbstractVisitable
-
- com.ibm.fhir.model.type.Element
-
- com.ibm.fhir.model.type.SampledData
-
- All Implemented Interfaces:
Visitable
@Generated("com.ibm.fhir.tools.CodeGenerator") public class SampledData extends Element
A series of measurements taken by a device, with upper and lower limits. There may be more than one dimension in the data.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classSampledData.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaccept(String elementName, int elementIndex, Visitor visitor)Accept a Visitor and invoke the appropriate visit methods.static SampledData.Builderbuilder()booleanequals(Object obj)StringgetData()A series of data points which are decimal values separated by a single space (character u20).PositiveIntgetDimensions()The number of sample points at each time point.DecimalgetFactor()A correction factor that is applied to the sampled data points before they are added to the origin.DecimalgetLowerLimit()The lower limit of detection of the measured points.SimpleQuantitygetOrigin()The base quantity that a measured value of zero represents.DecimalgetPeriod()The length of time between sampling times, measured in milliseconds.DecimalgetUpperLimit()The upper limit of detection of the measured points.booleanhasChildren()inthashCode()SampledData.BuildertoBuilder()Create a new Builder from the contents of this Element
-
-
-
Method Detail
-
getOrigin
public SimpleQuantity getOrigin()
The base quantity that a measured value of zero represents. In addition, this provides the units of the entire measurement series.- Returns:
- An immutable object of type
SimpleQuantitythat is non-null.
-
getPeriod
public Decimal getPeriod()
The length of time between sampling times, measured in milliseconds.- Returns:
- An immutable object of type
Decimalthat is non-null.
-
getFactor
public Decimal getFactor()
A correction factor that is applied to the sampled data points before they are added to the origin.- Returns:
- An immutable object of type
Decimalthat may be null.
-
getLowerLimit
public Decimal getLowerLimit()
The lower limit of detection of the measured points. This is needed if any of the data points have the value "L" (lower than detection limit).- Returns:
- An immutable object of type
Decimalthat may be null.
-
getUpperLimit
public Decimal getUpperLimit()
The upper limit of detection of the measured points. This is needed if any of the data points have the value "U" (higher than detection limit).- Returns:
- An immutable object of type
Decimalthat may be null.
-
getDimensions
public PositiveInt getDimensions()
The number of sample points at each time point. If this value is greater than one, then the dimensions will be interlaced - all the sample points for a point in time will be recorded at once.- Returns:
- An immutable object of type
PositiveIntthat is non-null.
-
getData
public String getData()
A series of data points which are decimal values separated by a single space (character u20). The special values "E" (error), "L" (below detection limit) and "U" (above detection limit) can also be used in place of a decimal value.- Returns:
- An immutable object of type
Stringthat may be null.
-
hasChildren
public boolean hasChildren()
- Overrides:
hasChildrenin classElement
-
accept
public void accept(String elementName, int elementIndex, Visitor visitor)
Description copied from interface:VisitableAccept a Visitor and invoke the appropriate visit methods. A typical implementation would look like this:if (visitor.preVisit(this)) { visitor.visitStart(elementName, elementIndex, this); if (visitor.visit(elementName, elementIndex, this)) { // visit children } visitor.visitEnd(elementName, elementIndex, this); visitor.postVisit(this); }- Specified by:
acceptin interfaceVisitable- Specified by:
acceptin classAbstractVisitable- Parameters:
elementName- the name of the element in the context of this visitelementIndex- the index of the element in a list or -1 if it is not contained within a Listvisitor- the visitor to use
-
toBuilder
public SampledData.Builder toBuilder()
Description copied from class:ElementCreate a new Builder from the contents of this Element
-
builder
public static SampledData.Builder builder()
-
-