pub struct SampledDataBuilder { /* private fields */ }
Expand description
Builder for SampledDataInner
.
Implementations§
Source§impl SampledDataBuilder
impl SampledDataBuilder
Sourcepub fn id(self, value: String) -> SampledDataBuilder
pub fn id(self, value: String) -> SampledDataBuilder
Unique id for inter-element referencing
Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.
Sourcepub fn extension(self, value: Vec<Extension>) -> SampledDataBuilder
pub fn extension(self, value: Vec<Extension>) -> SampledDataBuilder
Additional content defined by implementations
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 managable, 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.
There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.
Sourcepub fn origin(self, value: Quantity) -> SampledDataBuilder
pub fn origin(self, value: Quantity) -> SampledDataBuilder
Zero value and units
The base quantity that a measured value of zero represents. In addition, this provides the units of the entire measurement series.
Sourcepub fn origin_ext(self, value: FieldExtension) -> SampledDataBuilder
pub fn origin_ext(self, value: FieldExtension) -> SampledDataBuilder
Extension field.
Sourcepub fn interval(self, value: f64) -> SampledDataBuilder
pub fn interval(self, value: f64) -> SampledDataBuilder
Number of intervalUnits between samples
Amount of intervalUnits between samples, e.g. milliseconds for time-based sampling.
This is usually a whole number.
Sourcepub fn interval_ext(self, value: FieldExtension) -> SampledDataBuilder
pub fn interval_ext(self, value: FieldExtension) -> SampledDataBuilder
Extension field.
Sourcepub fn interval_unit(self, value: String) -> SampledDataBuilder
pub fn interval_unit(self, value: String) -> SampledDataBuilder
Units; The measurement unit of the interval between samples
The measurement unit in which the sample interval is expressed.
Sourcepub fn interval_unit_ext(self, value: FieldExtension) -> SampledDataBuilder
pub fn interval_unit_ext(self, value: FieldExtension) -> SampledDataBuilder
Extension field.
Sourcepub fn factor(self, value: f64) -> SampledDataBuilder
pub fn factor(self, value: f64) -> SampledDataBuilder
Multiply data by this before adding to origin
A correction factor that is applied to the sampled data points before they are added to the origin.
Sourcepub fn factor_ext(self, value: FieldExtension) -> SampledDataBuilder
pub fn factor_ext(self, value: FieldExtension) -> SampledDataBuilder
Extension field.
Sourcepub fn lower_limit(self, value: f64) -> SampledDataBuilder
pub fn lower_limit(self, value: f64) -> SampledDataBuilder
Lower limit of detection
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).
Sourcepub fn lower_limit_ext(self, value: FieldExtension) -> SampledDataBuilder
pub fn lower_limit_ext(self, value: FieldExtension) -> SampledDataBuilder
Extension field.
Sourcepub fn upper_limit(self, value: f64) -> SampledDataBuilder
pub fn upper_limit(self, value: f64) -> SampledDataBuilder
Upper limit of detection
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).
Sourcepub fn upper_limit_ext(self, value: FieldExtension) -> SampledDataBuilder
pub fn upper_limit_ext(self, value: FieldExtension) -> SampledDataBuilder
Extension field.
Sourcepub fn dimensions(self, value: NonZero<u32>) -> SampledDataBuilder
pub fn dimensions(self, value: NonZero<u32>) -> SampledDataBuilder
Number of sample points at each time point
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.
If there is more than one dimension, the code for the type of data will define the meaning of the dimensions (typically ECG data).
Sourcepub fn dimensions_ext(self, value: FieldExtension) -> SampledDataBuilder
pub fn dimensions_ext(self, value: FieldExtension) -> SampledDataBuilder
Extension field.
Sourcepub fn code_map(self, value: String) -> SampledDataBuilder
pub fn code_map(self, value: String) -> SampledDataBuilder
Defines the codes used in the data
Reference to ConceptMap that defines the codes used in the data.
The ConceptMap cannot define meanings for the codes ‘E’, ‘U’, or ‘L’ (nor ‘e’, ‘u’, or ‘l’).
Sourcepub fn code_map_ext(self, value: FieldExtension) -> SampledDataBuilder
pub fn code_map_ext(self, value: FieldExtension) -> SampledDataBuilder
Extension field.
Sourcepub fn offsets(self, value: String) -> SampledDataBuilder
pub fn offsets(self, value: String) -> SampledDataBuilder
Offsets, typically in time, at which data values were taken
A series of data points which are decimal values separated by a single space (character u20). The units in which the offsets are expressed are found in intervalUnit. The absolute point at which the measurements begin SHALL be conveyed outside the scope of this datatype, e.g. Observation.effectiveDateTime for a timing offset.
If offsets is present, the number of data points must be equal to the number of offsets mlutipled by the dimensions.
Sourcepub fn offsets_ext(self, value: FieldExtension) -> SampledDataBuilder
pub fn offsets_ext(self, value: FieldExtension) -> SampledDataBuilder
Extension field.
Sourcepub fn data(self, value: String) -> SampledDataBuilder
pub fn data(self, value: String) -> SampledDataBuilder
Decimal values with spaces, or “E” | “U” | “L”, or another code
A series of data points which are decimal values or codes separated by a single space (character u20). The special codes “E” (error), “L” (below detection limit) and “U” (above detection limit) are also defined for used in place of decimal values.
The data may be missing if it is omitted for summarization purposes. In general, data is required for any actual use of a SampledData.
Sourcepub fn data_ext(self, value: FieldExtension) -> SampledDataBuilder
pub fn data_ext(self, value: FieldExtension) -> SampledDataBuilder
Extension field.
Sourcepub fn build_inner(self) -> Result<SampledDataInner, BuilderError>
pub fn build_inner(self) -> Result<SampledDataInner, BuilderError>
Source§impl SampledDataBuilder
impl SampledDataBuilder
Sourcepub fn build(self) -> Result<SampledData, BuilderError>
pub fn build(self) -> Result<SampledData, BuilderError>
Finalize building SampledData.