1#[doc = "The starting materials - monomer(s) used in the synthesis of the polymer."]
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 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."]
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 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. 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 = "The type of substance for this starting material."]
12 pub r#code: Option<Box<super::super::types::CodeableConcept>>,
13 #[doc = "Substance high level category, e.g. chemical substance."]
14 pub r#category: Option<Box<super::super::types::CodeableConcept>>,
15 #[doc = "Used to specify whether the attribute described is a defining element for the unique identification of the polymer."]
16 pub r#is_defining: Option<super::super::types::Boolean>,
17 #[doc = "A percentage."]
18 pub r#amount: Option<Box<super::super::types::Quantity>>,
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#code: Default::default(),
28 r#category: 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 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."]
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 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. 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 = "Captures the type of ratio to the entire polymer, e.g. Monomer/Polymer ratio, SRU/Polymer Ratio."]
44 pub r#ratio_type: Option<Box<super::super::types::CodeableConcept>>,
45 #[doc = "The starting materials - monomer(s) used in the synthesis of the polymer."]
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 = "Applies to homopolymer and block co-polymers where the degree of polymerisation within a block can be described."]
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 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."]
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 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. 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 = "The type of the degree of polymerisation shall be described, e.g. SRU/Polymer Ratio."]
70 pub r#type: Option<Box<super::super::types::CodeableConcept>>,
71 #[doc = "An average amount of polymerisation."]
72 pub r#average: Option<super::super::types::Integer>,
73 #[doc = "A low expected limit of the amount."]
74 pub r#low: Option<super::super::types::Integer>,
75 #[doc = "A high expected limit of the amount."]
76 pub r#high: Option<super::super::types::Integer>,
77}
78#[allow(clippy::derivable_impls)]
79impl Default for SubstancePolymerRepeatRepeatUnitDegreeOfPolymerisation {
80 fn default() -> Self {
81 Self {
82 r#id: Default::default(),
83 r#extension: Default::default(),
84 r#modifier_extension: Default::default(),
85 r#type: Default::default(),
86 r#average: Default::default(),
87 r#low: Default::default(),
88 r#high: Default::default(),
89 }
90 }
91}
92#[doc = "A graphical structure for this SRU."]
93#[derive(Debug, Clone, PartialEq)]
94pub struct SubstancePolymerRepeatRepeatUnitStructuralRepresentation {
95 #[doc = "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."]
96 pub r#id: Option<std::string::String>,
97 #[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 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."]
98 pub r#extension: Vec<super::super::types::Extension>,
99 #[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 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. 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)."]
100 pub r#modifier_extension: Vec<super::super::types::Extension>,
101 #[doc = "The type of structure (e.g. Full, Partial, Representative)."]
102 pub r#type: Option<Box<super::super::types::CodeableConcept>>,
103 #[doc = "The structural representation as text string in a standard format e.g. InChI, SMILES, MOLFILE, CDX, SDF, PDB, mmCIF."]
104 pub r#representation: Option<super::super::types::String>,
105 #[doc = "The format of the representation e.g. InChI, SMILES, MOLFILE, CDX, SDF, PDB, mmCIF."]
106 pub r#format: Option<Box<super::super::types::CodeableConcept>>,
107 #[doc = "An attached file with the structural representation."]
108 pub r#attachment: Option<Box<super::super::types::Attachment>>,
109}
110#[allow(clippy::derivable_impls)]
111impl Default for SubstancePolymerRepeatRepeatUnitStructuralRepresentation {
112 fn default() -> Self {
113 Self {
114 r#id: Default::default(),
115 r#extension: Default::default(),
116 r#modifier_extension: Default::default(),
117 r#type: Default::default(),
118 r#representation: Default::default(),
119 r#format: Default::default(),
120 r#attachment: Default::default(),
121 }
122 }
123}
124#[doc = "An SRU - Structural Repeat Unit."]
125#[derive(Debug, Clone, PartialEq)]
126pub struct SubstancePolymerRepeatRepeatUnit {
127 #[doc = "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."]
128 pub r#id: Option<std::string::String>,
129 #[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 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."]
130 pub r#extension: Vec<super::super::types::Extension>,
131 #[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 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. 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)."]
132 pub r#modifier_extension: Vec<super::super::types::Extension>,
133 #[doc = "Structural repeat units are essential elements for defining polymers."]
134 pub r#unit: Option<super::super::types::String>,
135 #[doc = "The orientation of the polymerisation, e.g. head-tail, head-head, random."]
136 pub r#orientation: Option<Box<super::super::types::CodeableConcept>>,
137 #[doc = "Number of repeats of this unit."]
138 pub r#amount: Option<super::super::types::Integer>,
139 #[doc = "Applies to homopolymer and block co-polymers where the degree of polymerisation within a block can be described."]
140 pub r#degree_of_polymerisation: Vec<SubstancePolymerRepeatRepeatUnitDegreeOfPolymerisation>,
141 #[doc = "A graphical structure for this SRU."]
142 pub r#structural_representation: Vec<SubstancePolymerRepeatRepeatUnitStructuralRepresentation>,
143}
144#[allow(clippy::derivable_impls)]
145impl Default for SubstancePolymerRepeatRepeatUnit {
146 fn default() -> Self {
147 Self {
148 r#id: Default::default(),
149 r#extension: Default::default(),
150 r#modifier_extension: Default::default(),
151 r#unit: Default::default(),
152 r#orientation: Default::default(),
153 r#amount: Default::default(),
154 r#degree_of_polymerisation: Default::default(),
155 r#structural_representation: Default::default(),
156 }
157 }
158}
159#[doc = "Specifies and quantifies the repeated units and their configuration."]
160#[derive(Debug, Clone, PartialEq)]
161pub struct SubstancePolymerRepeat {
162 #[doc = "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."]
163 pub r#id: Option<std::string::String>,
164 #[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 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."]
165 pub r#extension: Vec<super::super::types::Extension>,
166 #[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 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. 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)."]
167 pub r#modifier_extension: Vec<super::super::types::Extension>,
168 #[doc = "A representation of an (average) molecular formula from a polymer."]
169 pub r#average_molecular_formula: Option<super::super::types::String>,
170 #[doc = "How the quantitative amount of Structural Repeat Units is captured (e.g. Exact, Numeric, Average)."]
171 pub r#repeat_unit_amount_type: Option<Box<super::super::types::CodeableConcept>>,
172 #[doc = "An SRU - Structural Repeat Unit."]
173 pub r#repeat_unit: Vec<SubstancePolymerRepeatRepeatUnit>,
174}
175#[allow(clippy::derivable_impls)]
176impl Default for SubstancePolymerRepeat {
177 fn default() -> Self {
178 Self {
179 r#id: Default::default(),
180 r#extension: Default::default(),
181 r#modifier_extension: Default::default(),
182 r#average_molecular_formula: Default::default(),
183 r#repeat_unit_amount_type: Default::default(),
184 r#repeat_unit: Default::default(),
185 }
186 }
187}
188#[doc = "Properties of a substance specific to it being a polymer."]
189#[derive(Debug, Clone, PartialEq)]
190pub struct SubstancePolymer {
191 #[doc = "The logical id of the resource, as used in the URL for the resource. Once assigned, this value never changes."]
192 pub r#id: Option<super::super::types::Id>,
193 #[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."]
194 pub r#meta: Option<Box<super::super::types::Meta>>,
195 #[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."]
196 pub r#implicit_rules: Option<super::super::types::Uri>,
197 #[doc = "The base language in which the resource is written."]
198 pub r#language: Option<super::super::types::Code>,
199 #[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."]
200 pub r#text: Option<Box<super::super::types::Narrative>>,
201 #[doc = "These resources do not have an independent existence apart from the resource that contains them - they cannot be identified independently, nor can they have their own independent transaction scope. This is allowed to be a Parameters resource if and only if it is referenced by a resource that provides context/meaning."]
202 pub r#contained: Vec<super::super::Resource>,
203 #[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 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."]
204 pub r#extension: Vec<super::super::types::Extension>,
205 #[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 managable, 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)."]
206 pub r#modifier_extension: Vec<super::super::types::Extension>,
207 #[doc = "A business idenfier for this polymer, but typically this is handled by a SubstanceDefinition identifier."]
208 pub r#identifier: Option<Box<super::super::types::Identifier>>,
209 #[doc = "Overall type of the polymer."]
210 pub r#class: Option<Box<super::super::types::CodeableConcept>>,
211 #[doc = "Polymer geometry, e.g. linear, branched, cross-linked, network or dendritic."]
212 pub r#geometry: Option<Box<super::super::types::CodeableConcept>>,
213 #[doc = "Descrtibes the copolymer sequence type (polymer connectivity)."]
214 pub r#copolymer_connectivity: Vec<super::super::types::CodeableConcept>,
215 #[doc = "Todo - this is intended to connect to a repeating full modification structure, also used by Protein and Nucleic Acid . String is just a placeholder."]
216 pub r#modification: Option<super::super::types::String>,
217 #[doc = "Todo."]
218 pub r#monomer_set: Vec<SubstancePolymerMonomerSet>,
219 #[doc = "Specifies and quantifies the repeated units and their configuration."]
220 pub r#repeat: Vec<SubstancePolymerRepeat>,
221}
222#[allow(clippy::derivable_impls)]
223impl Default for SubstancePolymer {
224 fn default() -> Self {
225 Self {
226 r#id: Default::default(),
227 r#meta: Default::default(),
228 r#implicit_rules: Default::default(),
229 r#language: Default::default(),
230 r#text: Default::default(),
231 r#contained: Default::default(),
232 r#extension: Default::default(),
233 r#modifier_extension: Default::default(),
234 r#identifier: Default::default(),
235 r#class: Default::default(),
236 r#geometry: Default::default(),
237 r#copolymer_connectivity: Default::default(),
238 r#modification: Default::default(),
239 r#monomer_set: Default::default(),
240 r#repeat: Default::default(),
241 }
242 }
243}