Class SampledDataBuilder.Impl

    • Constructor Detail

      • Impl

        public Impl​(com.babylonhealth.lit.core.model.Quantity origin,
                    scala.math.BigDecimal period,
                    java.lang.Integer dimensions)
        Required fields for SampledData
        Parameters:
        origin - - The base quantity that a measured value of zero represents. In addition, this provides the units of the entire measurement series.
        period - - The length of time between sampling times, measured in milliseconds.
        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.
    • Method Detail

      • withId

        public SampledDataBuilder.Impl withId​(@NonNull
                                              @NonNull java.lang.String id)
        Parameters:
        id - - Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.
      • withData

        public SampledDataBuilder.Impl withData​(@NonNull
                                                @NonNull java.lang.String data)
        Parameters:
        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.
      • withFactor

        public SampledDataBuilder.Impl withFactor​(@NonNull
                                                  @NonNull scala.math.BigDecimal factor)
        Parameters:
        factor - - A correction factor that is applied to the sampled data points before they are added to the origin.
      • withExtension

        public SampledDataBuilder.Impl withExtension​(@NonNull
                                                     @NonNull com.babylonhealth.lit.core.model.Extension... extension)
        Parameters:
        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.
      • withExtension

        public SampledDataBuilder.Impl withExtension​(@NonNull
                                                     @NonNull java.util.Collection<com.babylonhealth.lit.core.model.Extension> extension)
        Parameters:
        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.
      • withLowerLimit

        public SampledDataBuilder.Impl withLowerLimit​(@NonNull
                                                      @NonNull scala.math.BigDecimal lowerLimit)
        Parameters:
        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).
      • withUpperLimit

        public SampledDataBuilder.Impl withUpperLimit​(@NonNull
                                                      @NonNull scala.math.BigDecimal upperLimit)
        Parameters:
        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).