Class SampledData.Builder

    • Method Detail

      • id

        public SampledData.Builder id​(String id)
        Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.
        Overrides:
        id in class Element.Builder
        Parameters:
        id - Unique id for inter-element referencing
        Returns:
        A reference to this Builder instance
      • extension

        public SampledData.Builder extension​(Extension... extension)
        May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.

        Adds new element(s) to the existing list

        Overrides:
        extension in class Element.Builder
        Parameters:
        extension - Additional content defined by implementations
        Returns:
        A reference to this Builder instance
      • extension

        public SampledData.Builder extension​(Collection<Extension> extension)
        May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.

        Replaces the existing list with a new one containing elements from the Collection

        Overrides:
        extension in class Element.Builder
        Parameters:
        extension - Additional content defined by implementations
        Returns:
        A reference to this Builder instance
      • origin

        public SampledData.Builder origin​(SimpleQuantity origin)
        The base quantity that a measured value of zero represents. In addition, this provides the units of the entire measurement series.

        This element is required.

        Parameters:
        origin - Zero value and units
        Returns:
        A reference to this Builder instance
      • period

        public SampledData.Builder period​(Decimal period)
        The length of time between sampling times, measured in milliseconds.

        This element is required.

        Parameters:
        period - Number of milliseconds between samples
        Returns:
        A reference to this Builder instance
      • factor

        public SampledData.Builder factor​(Decimal factor)
        A correction factor that is applied to the sampled data points before they are added to the origin.
        Parameters:
        factor - Multiply data by this before adding to origin
        Returns:
        A reference to this Builder instance
      • lowerLimit

        public SampledData.Builder lowerLimit​(Decimal lowerLimit)
        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).
        Parameters:
        lowerLimit - Lower limit of detection
        Returns:
        A reference to this Builder instance
      • upperLimit

        public SampledData.Builder upperLimit​(Decimal upperLimit)
        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).
        Parameters:
        upperLimit - Upper limit of detection
        Returns:
        A reference to this Builder instance
      • dimensions

        public SampledData.Builder dimensions​(PositiveInt dimensions)
        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.

        This element is required.

        Parameters:
        dimensions - Number of sample points at each time point
        Returns:
        A reference to this Builder instance
      • data

        public SampledData.Builder data​(String data)
        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.
        Parameters:
        data - Decimal values with spaces, or "E" | "U" | "L"
        Returns:
        A reference to this Builder instance