fhirbolt_model/generated/r4/resources/
substance_polymer.rs

1// Generated on 2023-05-17 by fhirbolt-codegen v0.10.0
2#[doc = "Todo."]
3#[derive(Debug, Clone, PartialEq)]
4pub struct SubstancePolymerMonomerSetStartingMaterial {
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 = "May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. 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. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself)."]
10    pub r#modifier_extension: Vec<super::super::types::Extension>,
11    #[doc = "Todo."]
12    pub r#material: Option<Box<super::super::types::CodeableConcept>>,
13    #[doc = "Todo."]
14    pub r#type: Option<Box<super::super::types::CodeableConcept>>,
15    #[doc = "Todo."]
16    pub r#is_defining: Option<super::super::types::Boolean>,
17    #[doc = "Todo."]
18    pub r#amount: Option<Box<super::super::types::SubstanceAmount>>,
19}
20#[allow(clippy::derivable_impls)]
21impl Default for SubstancePolymerMonomerSetStartingMaterial {
22    fn default() -> Self {
23        Self {
24            r#id: Default::default(),
25            r#extension: Default::default(),
26            r#modifier_extension: Default::default(),
27            r#material: Default::default(),
28            r#type: Default::default(),
29            r#is_defining: Default::default(),
30            r#amount: Default::default(),
31        }
32    }
33}
34#[doc = "Todo."]
35#[derive(Debug, Clone, PartialEq)]
36pub struct SubstancePolymerMonomerSet {
37    #[doc = "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."]
38    pub r#id: Option<std::string::String>,
39    #[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."]
40    pub r#extension: Vec<super::super::types::Extension>,
41    #[doc = "May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. 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. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself)."]
42    pub r#modifier_extension: Vec<super::super::types::Extension>,
43    #[doc = "Todo."]
44    pub r#ratio_type: Option<Box<super::super::types::CodeableConcept>>,
45    #[doc = "Todo."]
46    pub r#starting_material: Vec<SubstancePolymerMonomerSetStartingMaterial>,
47}
48#[allow(clippy::derivable_impls)]
49impl Default for SubstancePolymerMonomerSet {
50    fn default() -> Self {
51        Self {
52            r#id: Default::default(),
53            r#extension: Default::default(),
54            r#modifier_extension: Default::default(),
55            r#ratio_type: Default::default(),
56            r#starting_material: Default::default(),
57        }
58    }
59}
60#[doc = "Todo."]
61#[derive(Debug, Clone, PartialEq)]
62pub struct SubstancePolymerRepeatRepeatUnitDegreeOfPolymerisation {
63    #[doc = "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."]
64    pub r#id: Option<std::string::String>,
65    #[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."]
66    pub r#extension: Vec<super::super::types::Extension>,
67    #[doc = "May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. 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. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself)."]
68    pub r#modifier_extension: Vec<super::super::types::Extension>,
69    #[doc = "Todo."]
70    pub r#degree: Option<Box<super::super::types::CodeableConcept>>,
71    #[doc = "Todo."]
72    pub r#amount: Option<Box<super::super::types::SubstanceAmount>>,
73}
74#[allow(clippy::derivable_impls)]
75impl Default for SubstancePolymerRepeatRepeatUnitDegreeOfPolymerisation {
76    fn default() -> Self {
77        Self {
78            r#id: Default::default(),
79            r#extension: Default::default(),
80            r#modifier_extension: Default::default(),
81            r#degree: Default::default(),
82            r#amount: Default::default(),
83        }
84    }
85}
86#[doc = "Todo."]
87#[derive(Debug, Clone, PartialEq)]
88pub struct SubstancePolymerRepeatRepeatUnitStructuralRepresentation {
89    #[doc = "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."]
90    pub r#id: Option<std::string::String>,
91    #[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."]
92    pub r#extension: Vec<super::super::types::Extension>,
93    #[doc = "May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. 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. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself)."]
94    pub r#modifier_extension: Vec<super::super::types::Extension>,
95    #[doc = "Todo."]
96    pub r#type: Option<Box<super::super::types::CodeableConcept>>,
97    #[doc = "Todo."]
98    pub r#representation: Option<super::super::types::String>,
99    #[doc = "Todo."]
100    pub r#attachment: Option<Box<super::super::types::Attachment>>,
101}
102#[allow(clippy::derivable_impls)]
103impl Default for SubstancePolymerRepeatRepeatUnitStructuralRepresentation {
104    fn default() -> Self {
105        Self {
106            r#id: Default::default(),
107            r#extension: Default::default(),
108            r#modifier_extension: Default::default(),
109            r#type: Default::default(),
110            r#representation: Default::default(),
111            r#attachment: Default::default(),
112        }
113    }
114}
115#[doc = "Todo."]
116#[derive(Debug, Clone, PartialEq)]
117pub struct SubstancePolymerRepeatRepeatUnit {
118    #[doc = "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."]
119    pub r#id: Option<std::string::String>,
120    #[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."]
121    pub r#extension: Vec<super::super::types::Extension>,
122    #[doc = "May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. 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. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself)."]
123    pub r#modifier_extension: Vec<super::super::types::Extension>,
124    #[doc = "Todo."]
125    pub r#orientation_of_polymerisation: Option<Box<super::super::types::CodeableConcept>>,
126    #[doc = "Todo."]
127    pub r#repeat_unit: Option<super::super::types::String>,
128    #[doc = "Todo."]
129    pub r#amount: Option<Box<super::super::types::SubstanceAmount>>,
130    #[doc = "Todo."]
131    pub r#degree_of_polymerisation: Vec<SubstancePolymerRepeatRepeatUnitDegreeOfPolymerisation>,
132    #[doc = "Todo."]
133    pub r#structural_representation: Vec<SubstancePolymerRepeatRepeatUnitStructuralRepresentation>,
134}
135#[allow(clippy::derivable_impls)]
136impl Default for SubstancePolymerRepeatRepeatUnit {
137    fn default() -> Self {
138        Self {
139            r#id: Default::default(),
140            r#extension: Default::default(),
141            r#modifier_extension: Default::default(),
142            r#orientation_of_polymerisation: Default::default(),
143            r#repeat_unit: Default::default(),
144            r#amount: Default::default(),
145            r#degree_of_polymerisation: Default::default(),
146            r#structural_representation: Default::default(),
147        }
148    }
149}
150#[doc = "Todo."]
151#[derive(Debug, Clone, PartialEq)]
152pub struct SubstancePolymerRepeat {
153    #[doc = "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."]
154    pub r#id: Option<std::string::String>,
155    #[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."]
156    pub r#extension: Vec<super::super::types::Extension>,
157    #[doc = "May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. 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. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself)."]
158    pub r#modifier_extension: Vec<super::super::types::Extension>,
159    #[doc = "Todo."]
160    pub r#number_of_units: Option<super::super::types::Integer>,
161    #[doc = "Todo."]
162    pub r#average_molecular_formula: Option<super::super::types::String>,
163    #[doc = "Todo."]
164    pub r#repeat_unit_amount_type: Option<Box<super::super::types::CodeableConcept>>,
165    #[doc = "Todo."]
166    pub r#repeat_unit: Vec<SubstancePolymerRepeatRepeatUnit>,
167}
168#[allow(clippy::derivable_impls)]
169impl Default for SubstancePolymerRepeat {
170    fn default() -> Self {
171        Self {
172            r#id: Default::default(),
173            r#extension: Default::default(),
174            r#modifier_extension: Default::default(),
175            r#number_of_units: Default::default(),
176            r#average_molecular_formula: Default::default(),
177            r#repeat_unit_amount_type: Default::default(),
178            r#repeat_unit: Default::default(),
179        }
180    }
181}
182#[doc = "Todo."]
183#[derive(Debug, Clone, PartialEq)]
184pub struct SubstancePolymer {
185    #[doc = "The logical id of the resource, as used in the URL for the resource. Once assigned, this value never changes."]
186    pub r#id: Option<super::super::types::Id>,
187    #[doc = "The metadata about the resource. This is content that is maintained by the infrastructure. Changes to the content might not always be associated with version changes to the resource."]
188    pub r#meta: Option<Box<super::super::types::Meta>>,
189    #[doc = "A reference to a set of rules that were followed when the resource was constructed, and which must be understood when processing the content. Often, this is a reference to an implementation guide that defines the special rules along with other profiles etc."]
190    pub r#implicit_rules: Option<super::super::types::Uri>,
191    #[doc = "The base language in which the resource is written."]
192    pub r#language: Option<super::super::types::Code>,
193    #[doc = "A human-readable narrative that contains a summary of the resource and can be used to represent the content of the resource to a human. The narrative need not encode all the structured data, but is required to contain sufficient detail to make it \"clinically safe\" for a human to just read the narrative. Resource definitions may define what content should be represented in the narrative to ensure clinical safety."]
194    pub r#text: Option<Box<super::super::types::Narrative>>,
195    #[doc = "These resources do not have an independent existence apart from the resource that contains them - they cannot be identified independently, and nor can they have their own independent transaction scope."]
196    pub r#contained: Vec<super::super::Resource>,
197    #[doc = "May be used to represent additional information that is not part of the basic definition of the resource. 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."]
198    pub r#extension: Vec<super::super::types::Extension>,
199    #[doc = "May be used to represent additional information that is not part of the basic definition of the resource and that modifies the understanding of the element that contains it and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. 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 is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself)."]
200    pub r#modifier_extension: Vec<super::super::types::Extension>,
201    #[doc = "Todo."]
202    pub r#class: Option<Box<super::super::types::CodeableConcept>>,
203    #[doc = "Todo."]
204    pub r#geometry: Option<Box<super::super::types::CodeableConcept>>,
205    #[doc = "Todo."]
206    pub r#copolymer_connectivity: Vec<super::super::types::CodeableConcept>,
207    #[doc = "Todo."]
208    pub r#modification: Vec<super::super::types::String>,
209    #[doc = "Todo."]
210    pub r#monomer_set: Vec<SubstancePolymerMonomerSet>,
211    #[doc = "Todo."]
212    pub r#repeat: Vec<SubstancePolymerRepeat>,
213}
214#[allow(clippy::derivable_impls)]
215impl Default for SubstancePolymer {
216    fn default() -> Self {
217        Self {
218            r#id: Default::default(),
219            r#meta: Default::default(),
220            r#implicit_rules: Default::default(),
221            r#language: Default::default(),
222            r#text: Default::default(),
223            r#contained: Default::default(),
224            r#extension: Default::default(),
225            r#modifier_extension: Default::default(),
226            r#class: Default::default(),
227            r#geometry: Default::default(),
228            r#copolymer_connectivity: Default::default(),
229            r#modification: Default::default(),
230            r#monomer_set: Default::default(),
231            r#repeat: Default::default(),
232        }
233    }
234}