fhirbolt_model/generated/r4b/types/
age.rs

1// Generated on 2023-05-17 by fhirbolt-codegen v0.10.0
2#[doc = "Base StructureDefinition for Age Type: A duration of time during which an organism (or a process) has existed."]
3#[derive(Debug, Clone, PartialEq)]
4pub struct Age {
5    #[doc = "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."]
6    pub r#id: Option<std::string::String>,
7    #[doc = "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."]
8    pub r#extension: Vec<super::super::types::Extension>,
9    #[doc = "The value of the measured amount. The value includes an implicit precision in the presentation of the value."]
10    pub r#value: Option<super::super::types::Decimal>,
11    #[doc = "How the value should be understood and represented - whether the actual value is greater or less than the stated value due to measurement issues; e.g. if the comparator is \"<\" , then the real value is < stated value."]
12    pub r#comparator: Option<super::super::types::Code>,
13    #[doc = "A human-readable form of the unit."]
14    pub r#unit: Option<super::super::types::String>,
15    #[doc = "The identification of the system that provides the coded form of the unit."]
16    pub r#system: Option<super::super::types::Uri>,
17    #[doc = "A computer processable form of the unit in some unit representation system."]
18    pub r#code: Option<super::super::types::Code>,
19}
20#[allow(clippy::derivable_impls)]
21impl Default for Age {
22    fn default() -> Self {
23        Self {
24            r#id: Default::default(),
25            r#extension: Default::default(),
26            r#value: Default::default(),
27            r#comparator: Default::default(),
28            r#unit: Default::default(),
29            r#system: Default::default(),
30            r#code: Default::default(),
31        }
32    }
33}