fhirbolt_model/generated/r4/resources/
substance_reference_information.rs1#[doc = "Todo."]
3#[derive(Default, Debug, Clone, PartialEq)]
4pub enum SubstanceReferenceInformationTargetAmount {
5 Quantity(Box<super::super::types::Quantity>),
6 Range(Box<super::super::types::Range>),
7 String(super::super::types::String),
8 #[default]
9 Invalid,
10}
11#[doc = "Todo."]
12#[derive(Debug, Clone, PartialEq)]
13pub struct SubstanceReferenceInformationGene {
14 #[doc = "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."]
15 pub r#id: Option<std::string::String>,
16 #[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."]
17 pub r#extension: Vec<super::super::types::Extension>,
18 #[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)."]
19 pub r#modifier_extension: Vec<super::super::types::Extension>,
20 #[doc = "Todo."]
21 pub r#gene_sequence_origin: Option<Box<super::super::types::CodeableConcept>>,
22 #[doc = "Todo."]
23 pub r#gene: Option<Box<super::super::types::CodeableConcept>>,
24 #[doc = "Todo."]
25 pub r#source: Vec<super::super::types::Reference>,
26}
27#[allow(clippy::derivable_impls)]
28impl Default for SubstanceReferenceInformationGene {
29 fn default() -> Self {
30 Self {
31 r#id: Default::default(),
32 r#extension: Default::default(),
33 r#modifier_extension: Default::default(),
34 r#gene_sequence_origin: Default::default(),
35 r#gene: Default::default(),
36 r#source: Default::default(),
37 }
38 }
39}
40#[doc = "Todo."]
41#[derive(Debug, Clone, PartialEq)]
42pub struct SubstanceReferenceInformationGeneElement {
43 #[doc = "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."]
44 pub r#id: Option<std::string::String>,
45 #[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."]
46 pub r#extension: Vec<super::super::types::Extension>,
47 #[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)."]
48 pub r#modifier_extension: Vec<super::super::types::Extension>,
49 #[doc = "Todo."]
50 pub r#type: Option<Box<super::super::types::CodeableConcept>>,
51 #[doc = "Todo."]
52 pub r#element: Option<Box<super::super::types::Identifier>>,
53 #[doc = "Todo."]
54 pub r#source: Vec<super::super::types::Reference>,
55}
56#[allow(clippy::derivable_impls)]
57impl Default for SubstanceReferenceInformationGeneElement {
58 fn default() -> Self {
59 Self {
60 r#id: Default::default(),
61 r#extension: Default::default(),
62 r#modifier_extension: Default::default(),
63 r#type: Default::default(),
64 r#element: Default::default(),
65 r#source: Default::default(),
66 }
67 }
68}
69#[doc = "Todo."]
70#[derive(Debug, Clone, PartialEq)]
71pub struct SubstanceReferenceInformationClassification {
72 #[doc = "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."]
73 pub r#id: Option<std::string::String>,
74 #[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."]
75 pub r#extension: Vec<super::super::types::Extension>,
76 #[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)."]
77 pub r#modifier_extension: Vec<super::super::types::Extension>,
78 #[doc = "Todo."]
79 pub r#domain: Option<Box<super::super::types::CodeableConcept>>,
80 #[doc = "Todo."]
81 pub r#classification: Option<Box<super::super::types::CodeableConcept>>,
82 #[doc = "Todo."]
83 pub r#subtype: Vec<super::super::types::CodeableConcept>,
84 #[doc = "Todo."]
85 pub r#source: Vec<super::super::types::Reference>,
86}
87#[allow(clippy::derivable_impls)]
88impl Default for SubstanceReferenceInformationClassification {
89 fn default() -> Self {
90 Self {
91 r#id: Default::default(),
92 r#extension: Default::default(),
93 r#modifier_extension: Default::default(),
94 r#domain: Default::default(),
95 r#classification: Default::default(),
96 r#subtype: Default::default(),
97 r#source: Default::default(),
98 }
99 }
100}
101#[doc = "Todo."]
102#[derive(Debug, Clone, PartialEq)]
103pub struct SubstanceReferenceInformationTarget {
104 #[doc = "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."]
105 pub r#id: Option<std::string::String>,
106 #[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."]
107 pub r#extension: Vec<super::super::types::Extension>,
108 #[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)."]
109 pub r#modifier_extension: Vec<super::super::types::Extension>,
110 #[doc = "Todo."]
111 pub r#target: Option<Box<super::super::types::Identifier>>,
112 #[doc = "Todo."]
113 pub r#type: Option<Box<super::super::types::CodeableConcept>>,
114 #[doc = "Todo."]
115 pub r#interaction: Option<Box<super::super::types::CodeableConcept>>,
116 #[doc = "Todo."]
117 pub r#organism: Option<Box<super::super::types::CodeableConcept>>,
118 #[doc = "Todo."]
119 pub r#organism_type: Option<Box<super::super::types::CodeableConcept>>,
120 #[doc = "Todo."]
121 pub r#amount: Option<SubstanceReferenceInformationTargetAmount>,
122 #[doc = "Todo."]
123 pub r#amount_type: Option<Box<super::super::types::CodeableConcept>>,
124 #[doc = "Todo."]
125 pub r#source: Vec<super::super::types::Reference>,
126}
127#[allow(clippy::derivable_impls)]
128impl Default for SubstanceReferenceInformationTarget {
129 fn default() -> Self {
130 Self {
131 r#id: Default::default(),
132 r#extension: Default::default(),
133 r#modifier_extension: Default::default(),
134 r#target: Default::default(),
135 r#type: Default::default(),
136 r#interaction: Default::default(),
137 r#organism: Default::default(),
138 r#organism_type: Default::default(),
139 r#amount: Default::default(),
140 r#amount_type: Default::default(),
141 r#source: Default::default(),
142 }
143 }
144}
145#[doc = "Todo."]
146#[derive(Debug, Clone, PartialEq)]
147pub struct SubstanceReferenceInformation {
148 #[doc = "The logical id of the resource, as used in the URL for the resource. Once assigned, this value never changes."]
149 pub r#id: Option<super::super::types::Id>,
150 #[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."]
151 pub r#meta: Option<Box<super::super::types::Meta>>,
152 #[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."]
153 pub r#implicit_rules: Option<super::super::types::Uri>,
154 #[doc = "The base language in which the resource is written."]
155 pub r#language: Option<super::super::types::Code>,
156 #[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."]
157 pub r#text: Option<Box<super::super::types::Narrative>>,
158 #[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."]
159 pub r#contained: Vec<super::super::Resource>,
160 #[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."]
161 pub r#extension: Vec<super::super::types::Extension>,
162 #[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)."]
163 pub r#modifier_extension: Vec<super::super::types::Extension>,
164 #[doc = "Todo."]
165 pub r#comment: Option<super::super::types::String>,
166 #[doc = "Todo."]
167 pub r#gene: Vec<SubstanceReferenceInformationGene>,
168 #[doc = "Todo."]
169 pub r#gene_element: Vec<SubstanceReferenceInformationGeneElement>,
170 #[doc = "Todo."]
171 pub r#classification: Vec<SubstanceReferenceInformationClassification>,
172 #[doc = "Todo."]
173 pub r#target: Vec<SubstanceReferenceInformationTarget>,
174}
175#[allow(clippy::derivable_impls)]
176impl Default for SubstanceReferenceInformation {
177 fn default() -> Self {
178 Self {
179 r#id: Default::default(),
180 r#meta: Default::default(),
181 r#implicit_rules: Default::default(),
182 r#language: Default::default(),
183 r#text: Default::default(),
184 r#contained: Default::default(),
185 r#extension: Default::default(),
186 r#modifier_extension: Default::default(),
187 r#comment: Default::default(),
188 r#gene: Default::default(),
189 r#gene_element: Default::default(),
190 r#classification: Default::default(),
191 r#target: Default::default(),
192 }
193 }
194}