fhirbolt_model/generated/r4/resources/
biologically_derived_product.rs1#[doc = "Time of product collection."]
3#[derive(Default, Debug, Clone, PartialEq)]
4pub enum BiologicallyDerivedProductCollectionCollected {
5 DateTime(super::super::types::DateTime),
6 Period(Box<super::super::types::Period>),
7 #[default]
8 Invalid,
9}
10#[doc = "Time of processing."]
11#[derive(Default, Debug, Clone, PartialEq)]
12pub enum BiologicallyDerivedProductProcessingTime {
13 DateTime(super::super::types::DateTime),
14 Period(Box<super::super::types::Period>),
15 #[default]
16 Invalid,
17}
18#[doc = "Time of manipulation."]
19#[derive(Default, Debug, Clone, PartialEq)]
20pub enum BiologicallyDerivedProductManipulationTime {
21 DateTime(super::super::types::DateTime),
22 Period(Box<super::super::types::Period>),
23 #[default]
24 Invalid,
25}
26#[doc = "How this product was collected."]
27#[derive(Debug, Clone, PartialEq)]
28pub struct BiologicallyDerivedProductCollection {
29 #[doc = "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."]
30 pub r#id: Option<std::string::String>,
31 #[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."]
32 pub r#extension: Vec<super::super::types::Extension>,
33 #[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)."]
34 pub r#modifier_extension: Vec<super::super::types::Extension>,
35 #[doc = "Healthcare professional who is performing the collection."]
36 pub r#collector: Option<Box<super::super::types::Reference>>,
37 #[doc = "The patient or entity, such as a hospital or vendor in the case of a processed/manipulated/manufactured product, providing the product."]
38 pub r#source: Option<Box<super::super::types::Reference>>,
39 #[doc = "Time of product collection."]
40 pub r#collected: Option<BiologicallyDerivedProductCollectionCollected>,
41}
42#[allow(clippy::derivable_impls)]
43impl Default for BiologicallyDerivedProductCollection {
44 fn default() -> Self {
45 Self {
46 r#id: Default::default(),
47 r#extension: Default::default(),
48 r#modifier_extension: Default::default(),
49 r#collector: Default::default(),
50 r#source: Default::default(),
51 r#collected: Default::default(),
52 }
53 }
54}
55#[doc = "Any processing of the product during collection that does not change the fundamental nature of the product. For example adding anti-coagulants during the collection of Peripheral Blood Stem Cells."]
56#[derive(Debug, Clone, PartialEq)]
57pub struct BiologicallyDerivedProductProcessing {
58 #[doc = "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."]
59 pub r#id: Option<std::string::String>,
60 #[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."]
61 pub r#extension: Vec<super::super::types::Extension>,
62 #[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)."]
63 pub r#modifier_extension: Vec<super::super::types::Extension>,
64 #[doc = "Description of of processing."]
65 pub r#description: Option<super::super::types::String>,
66 #[doc = "Procesing code."]
67 pub r#procedure: Option<Box<super::super::types::CodeableConcept>>,
68 #[doc = "Substance added during processing."]
69 pub r#additive: Option<Box<super::super::types::Reference>>,
70 #[doc = "Time of processing."]
71 pub r#time: Option<BiologicallyDerivedProductProcessingTime>,
72}
73#[allow(clippy::derivable_impls)]
74impl Default for BiologicallyDerivedProductProcessing {
75 fn default() -> Self {
76 Self {
77 r#id: Default::default(),
78 r#extension: Default::default(),
79 r#modifier_extension: Default::default(),
80 r#description: Default::default(),
81 r#procedure: Default::default(),
82 r#additive: Default::default(),
83 r#time: Default::default(),
84 }
85 }
86}
87#[doc = "Any manipulation of product post-collection that is intended to alter the product. For example a buffy-coat enrichment or CD8 reduction of Peripheral Blood Stem Cells to make it more suitable for infusion."]
88#[derive(Debug, Clone, PartialEq)]
89pub struct BiologicallyDerivedProductManipulation {
90 #[doc = "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."]
91 pub r#id: Option<std::string::String>,
92 #[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."]
93 pub r#extension: Vec<super::super::types::Extension>,
94 #[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)."]
95 pub r#modifier_extension: Vec<super::super::types::Extension>,
96 #[doc = "Description of manipulation."]
97 pub r#description: Option<super::super::types::String>,
98 #[doc = "Time of manipulation."]
99 pub r#time: Option<BiologicallyDerivedProductManipulationTime>,
100}
101#[allow(clippy::derivable_impls)]
102impl Default for BiologicallyDerivedProductManipulation {
103 fn default() -> Self {
104 Self {
105 r#id: Default::default(),
106 r#extension: Default::default(),
107 r#modifier_extension: Default::default(),
108 r#description: Default::default(),
109 r#time: Default::default(),
110 }
111 }
112}
113#[doc = "Product storage."]
114#[derive(Debug, Clone, PartialEq)]
115pub struct BiologicallyDerivedProductStorage {
116 #[doc = "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."]
117 pub r#id: Option<std::string::String>,
118 #[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."]
119 pub r#extension: Vec<super::super::types::Extension>,
120 #[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)."]
121 pub r#modifier_extension: Vec<super::super::types::Extension>,
122 #[doc = "Description of storage."]
123 pub r#description: Option<super::super::types::String>,
124 #[doc = "Storage temperature."]
125 pub r#temperature: Option<super::super::types::Decimal>,
126 #[doc = "Temperature scale used."]
127 pub r#scale: Option<super::super::types::Code>,
128 #[doc = "Storage timeperiod."]
129 pub r#duration: Option<Box<super::super::types::Period>>,
130}
131#[allow(clippy::derivable_impls)]
132impl Default for BiologicallyDerivedProductStorage {
133 fn default() -> Self {
134 Self {
135 r#id: Default::default(),
136 r#extension: Default::default(),
137 r#modifier_extension: Default::default(),
138 r#description: Default::default(),
139 r#temperature: Default::default(),
140 r#scale: Default::default(),
141 r#duration: Default::default(),
142 }
143 }
144}
145#[doc = "A material substance originating from a biological entity intended to be transplanted or infused\ninto another (possibly the same) biological entity."]
146#[derive(Debug, Clone, PartialEq)]
147pub struct BiologicallyDerivedProduct {
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 = "This records identifiers associated with this biologically derived product instance that are defined by business processes and/or used to refer to it when a direct URL reference to the resource itself is not appropriate (e.g. in CDA documents, or in written / printed documentation)."]
165 pub r#identifier: Vec<super::super::types::Identifier>,
166 #[doc = "Broad category of this product."]
167 pub r#product_category: Option<super::super::types::Code>,
168 #[doc = "A code that identifies the kind of this biologically derived product (SNOMED Ctcode)."]
169 pub r#product_code: Option<Box<super::super::types::CodeableConcept>>,
170 #[doc = "Whether the product is currently available."]
171 pub r#status: Option<super::super::types::Code>,
172 #[doc = "Procedure request to obtain this biologically derived product."]
173 pub r#request: Vec<super::super::types::Reference>,
174 #[doc = "Number of discrete units within this product."]
175 pub r#quantity: Option<super::super::types::Integer>,
176 #[doc = "Parent product (if any)."]
177 pub r#parent: Vec<super::super::types::Reference>,
178 #[doc = "How this product was collected."]
179 pub r#collection: Option<BiologicallyDerivedProductCollection>,
180 #[doc = "Any processing of the product during collection that does not change the fundamental nature of the product. For example adding anti-coagulants during the collection of Peripheral Blood Stem Cells."]
181 pub r#processing: Vec<BiologicallyDerivedProductProcessing>,
182 #[doc = "Any manipulation of product post-collection that is intended to alter the product. For example a buffy-coat enrichment or CD8 reduction of Peripheral Blood Stem Cells to make it more suitable for infusion."]
183 pub r#manipulation: Option<BiologicallyDerivedProductManipulation>,
184 #[doc = "Product storage."]
185 pub r#storage: Vec<BiologicallyDerivedProductStorage>,
186}
187#[allow(clippy::derivable_impls)]
188impl Default for BiologicallyDerivedProduct {
189 fn default() -> Self {
190 Self {
191 r#id: Default::default(),
192 r#meta: Default::default(),
193 r#implicit_rules: Default::default(),
194 r#language: Default::default(),
195 r#text: Default::default(),
196 r#contained: Default::default(),
197 r#extension: Default::default(),
198 r#modifier_extension: Default::default(),
199 r#identifier: Default::default(),
200 r#product_category: Default::default(),
201 r#product_code: Default::default(),
202 r#status: Default::default(),
203 r#request: Default::default(),
204 r#quantity: Default::default(),
205 r#parent: Default::default(),
206 r#collection: Default::default(),
207 r#processing: Default::default(),
208 r#manipulation: Default::default(),
209 r#storage: Default::default(),
210 }
211 }
212}