Class 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.
    • 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 SimpleQuantity that is non-null.
      • getPeriod

        public Decimal getPeriod()
        The length of time between sampling times, measured in milliseconds.
        Returns:
        An immutable object of type Decimal that 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 Decimal that 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 Decimal that 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 Decimal that 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 PositiveInt that 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 String that may be null.
      • accept

        public void accept​(String elementName,
                           int elementIndex,
                           Visitor visitor)
        Description copied from interface: Visitable
        Accept 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:
        accept in interface Visitable
        Specified by:
        accept in class AbstractVisitable
        Parameters:
        elementName - the name of the element in the context of this visit
        elementIndex - the index of the element in a list or -1 if it is not contained within a List
        visitor - the visitor to use
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object