Struct fhir_rs::datatype::complex::SampledData
source · pub struct SampledData {
pub id: Option<Id>,
pub extension: Option<Vec<Extension>>,
pub origin: Option<Quantity>,
pub interval: Option<DecimalDt>,
pub interval_unit: Option<CodeDt>,
pub factor: Option<DecimalDt>,
pub lower_limit: Option<DecimalDt>,
pub upper_limit: Option<DecimalDt>,
pub dimensions: Option<PositiveIntDt>,
pub code_map: Option<CanonicalDt>,
pub offsets: Option<StringDt>,
pub data: Option<StringDt>,
}
Fields§
§id: Option<Id>
Unique id for inter-element referencing
extension: Option<Vec<Extension>>
Additional content defined by implementations
origin: Option<Quantity>
Zero value and units
interval: Option<DecimalDt>
Number of intervalUnits between samples
interval_unit: Option<CodeDt>
The measurement unit of the interval between samples
factor: Option<DecimalDt>
Multiply data by this before adding to origin
lower_limit: Option<DecimalDt>
Lower limit of detection
upper_limit: Option<DecimalDt>
Upper limit of detection
dimensions: Option<PositiveIntDt>
Number of sample points at each time point
code_map: Option<CanonicalDt>
Defines the codes used in the data
offsets: Option<StringDt>
Offsets, typically in time, at which data values were taken
data: Option<StringDt>
Decimal values with spaces, or “E” | “U” | “L”, or another code
Implementations§
source§impl SampledData
impl SampledData
pub fn set_origin(self, v: Quantity) -> Self
pub fn set_interval<T: Into<DecimalDt>>(self, v: T) -> Self
pub fn set_interval_unit<T: Into<CodeDt>>(self, v: T) -> Self
pub fn set_factor<T: Into<DecimalDt>>(self, v: T) -> Self
pub fn set_lower_limit<T: Into<DecimalDt>>(self, v: T) -> Self
pub fn set_upper_limit<T: Into<DecimalDt>>(self, v: T) -> Self
pub fn set_dimensions<T: Into<PositiveIntDt>>(self, v: T) -> Self
pub fn set_code_map<T: Into<CanonicalDt>>(self, v: T) -> Self
pub fn set_offsets<T: Into<StringDt>>(self, v: T) -> Self
pub fn set_data<T: Into<StringDt>>(self, v: T) -> Self
Trait Implementations§
source§impl Clone for SampledData
impl Clone for SampledData
source§fn clone(&self) -> SampledData
fn clone(&self) -> SampledData
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for SampledData
impl Debug for SampledData
source§impl Default for SampledData
impl Default for SampledData
source§fn default() -> SampledData
fn default() -> SampledData
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for SampledData
impl<'de> Deserialize<'de> for SampledData
fn deserialize<De>(deserializer: De) -> Result<Self>where
De: Deserializer<'de>,
source§impl Element for SampledData
impl Element for SampledData
fn has_id(&self) -> bool
fn id(&self) -> &Option<String>
fn set_id<T: Into<String>>(self, id: T) -> Self
fn has_extension(&self) -> bool
fn extension(&self) -> &Option<Vec<Extension>>
fn set_extension(self, ext: Vec<Extension>) -> Self
fn add_extension(self, ext: Extension) -> Self
source§impl Serialize for SampledData
impl Serialize for SampledData
Auto Trait Implementations§
impl RefUnwindSafe for SampledData
impl Send for SampledData
impl Sync for SampledData
impl Unpin for SampledData
impl UnwindSafe for SampledData
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more