Class SampledDataBuilder.Impl
- java.lang.Object
-
- com.babylonhealth.lit.core_java.builders.SampledDataBuilder.Impl
-
- All Implemented Interfaces:
ElementBuilder,SampledDataBuilder
- Enclosing interface:
- SampledDataBuilder
public static class SampledDataBuilder.Impl extends java.lang.Object implements SampledDataBuilder
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface com.babylonhealth.lit.core_java.builders.SampledDataBuilder
SampledDataBuilder.Impl
-
-
Constructor Summary
Constructors Constructor Description Impl(com.babylonhealth.lit.core.model.Quantity origin, scala.math.BigDecimal period, java.lang.Integer dimensions)Required fields forSampledData
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description com.babylonhealth.lit.core.model.SampledDatabuild()SampledDataBuilder.ImplwithData(@NonNull java.lang.String data)SampledDataBuilder.ImplwithExtension(@NonNull ExtensionBuilder... extension)SampledDataBuilder.ImplwithExtension(@NonNull com.babylonhealth.lit.core.model.Extension... extension)SampledDataBuilder.ImplwithExtension(@NonNull java.util.Collection<com.babylonhealth.lit.core.model.Extension> extension)SampledDataBuilder.ImplwithFactor(@NonNull scala.math.BigDecimal factor)SampledDataBuilder.ImplwithId(@NonNull java.lang.String id)SampledDataBuilder.ImplwithLowerLimit(@NonNull scala.math.BigDecimal lowerLimit)SampledDataBuilder.ImplwithUpperLimit(@NonNull scala.math.BigDecimal upperLimit)
-
-
-
Constructor Detail
-
Impl
public Impl(com.babylonhealth.lit.core.model.Quantity origin, scala.math.BigDecimal period, java.lang.Integer dimensions)Required fields forSampledData- 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.
-
withExtension
public SampledDataBuilder.Impl withExtension(@NonNull @NonNull ExtensionBuilder... 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).
-
build
public com.babylonhealth.lit.core.model.SampledData build()
- Specified by:
buildin interfaceElementBuilder- Specified by:
buildin interfaceSampledDataBuilder
-
-