Package com.ibm.fhir.model.type
Class SampledData.Builder
- java.lang.Object
-
- com.ibm.fhir.model.builder.AbstractBuilder<Element>
-
- com.ibm.fhir.model.type.Element.Builder
-
- com.ibm.fhir.model.type.SampledData.Builder
-
- Enclosing class:
- SampledData
public static class SampledData.Builder extends Element.Builder
-
-
Field Summary
-
Fields inherited from class com.ibm.fhir.model.type.Element.Builder
extension, id
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SampledDatabuild()Build theSampledDataSampledData.Builderdata(String data)A series of data points which are decimal values separated by a single space (character u20).SampledData.Builderdimensions(PositiveInt dimensions)The number of sample points at each time point.SampledData.Builderextension(Extension... extension)May be used to represent additional information that is not part of the basic definition of the element.SampledData.Builderextension(Collection<Extension> extension)May be used to represent additional information that is not part of the basic definition of the element.SampledData.Builderfactor(Decimal factor)A correction factor that is applied to the sampled data points before they are added to the origin.protected SampledData.Builderfrom(SampledData sampledData)SampledData.Builderid(String id)Unique id for the element within a resource (for internal references).SampledData.BuilderlowerLimit(Decimal lowerLimit)The lower limit of detection of the measured points.SampledData.Builderorigin(SimpleQuantity origin)The base quantity that a measured value of zero represents.SampledData.Builderperiod(Decimal period)The length of time between sampling times, measured in milliseconds.SampledData.BuilderupperLimit(Decimal upperLimit)The upper limit of detection of the measured points.-
Methods inherited from class com.ibm.fhir.model.type.Element.Builder
from
-
-
-
-
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:
idin classElement.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:
extensionin classElement.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:
extensionin classElement.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
-
build
public SampledData build()
- Specified by:
buildin interfaceBuilder<Element>- Specified by:
buildin classElement.Builder- Returns:
- An immutable object of type
SampledData - Throws:
IllegalStateException- if the current state cannot be built into a valid SampledData per the base specification
-
from
protected SampledData.Builder from(SampledData sampledData)
-
-