fhirbolt_model/generated/r4b/types/
range.rs

1// Generated on 2023-05-17 by fhirbolt-codegen v0.10.0
2#[doc = "Base StructureDefinition for Range Type: A set of ordered Quantities defined by a low and high limit.\n\nNeed to be able to specify ranges of values."]
3#[derive(Debug, Clone, PartialEq)]
4pub struct Range {
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 low limit. The boundary is inclusive."]
10    pub r#low: Option<Box<super::super::types::Quantity>>,
11    #[doc = "The high limit. The boundary is inclusive."]
12    pub r#high: Option<Box<super::super::types::Quantity>>,
13}
14#[allow(clippy::derivable_impls)]
15impl Default for Range {
16    fn default() -> Self {
17        Self {
18            r#id: Default::default(),
19            r#extension: Default::default(),
20            r#low: Default::default(),
21            r#high: Default::default(),
22        }
23    }
24}