fhirbolt_model/generated/r5/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 = "Property values."]
11#[derive(Default, Debug, Clone, PartialEq)]
12pub enum BiologicallyDerivedProductPropertyValue {
13 Boolean(super::super::types::Boolean),
14 Integer(super::super::types::Integer),
15 CodeableConcept(Box<super::super::types::CodeableConcept>),
16 Period(Box<super::super::types::Period>),
17 Quantity(Box<super::super::types::Quantity>),
18 Range(Box<super::super::types::Range>),
19 Ratio(Box<super::super::types::Ratio>),
20 String(super::super::types::String),
21 Attachment(Box<super::super::types::Attachment>),
22 #[default]
23 Invalid,
24}
25#[doc = "How this product was collected."]
26#[derive(Debug, Clone, PartialEq)]
27pub struct BiologicallyDerivedProductCollection {
28 #[doc = "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."]
29 pub r#id: Option<std::string::String>,
30 #[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."]
31 pub r#extension: Vec<super::super::types::Extension>,
32 #[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)."]
33 pub r#modifier_extension: Vec<super::super::types::Extension>,
34 #[doc = "Healthcare professional who is performing the collection."]
35 pub r#collector: Option<Box<super::super::types::Reference>>,
36 #[doc = "The patient or entity, such as a hospital or vendor in the case of a processed/manipulated/manufactured product, providing the product."]
37 pub r#source: Option<Box<super::super::types::Reference>>,
38 #[doc = "Time of product collection."]
39 pub r#collected: Option<BiologicallyDerivedProductCollectionCollected>,
40}
41#[allow(clippy::derivable_impls)]
42impl Default for BiologicallyDerivedProductCollection {
43 fn default() -> Self {
44 Self {
45 r#id: Default::default(),
46 r#extension: Default::default(),
47 r#modifier_extension: Default::default(),
48 r#collector: Default::default(),
49 r#source: Default::default(),
50 r#collected: Default::default(),
51 }
52 }
53}
54#[doc = "A property that is specific to this BiologicallyDerviedProduct instance."]
55#[derive(Debug, Clone, PartialEq)]
56pub struct BiologicallyDerivedProductProperty {
57 #[doc = "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."]
58 pub r#id: Option<std::string::String>,
59 #[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."]
60 pub r#extension: Vec<super::super::types::Extension>,
61 #[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)."]
62 pub r#modifier_extension: Vec<super::super::types::Extension>,
63 #[doc = "Code that specifies the property. It should reference an established coding system."]
64 pub r#type: Box<super::super::types::CodeableConcept>,
65 #[doc = "Property values."]
66 pub r#value: BiologicallyDerivedProductPropertyValue,
67}
68#[allow(clippy::derivable_impls)]
69impl Default for BiologicallyDerivedProductProperty {
70 fn default() -> Self {
71 Self {
72 r#id: Default::default(),
73 r#extension: Default::default(),
74 r#modifier_extension: Default::default(),
75 r#type: Box::new(super::super::types::CodeableConcept {
76 id: Some("$invalid".to_string()),
77 ..Default::default()
78 }),
79 r#value: Default::default(),
80 }
81 }
82}
83#[doc = "A biological material originating from a biological entity intended to be transplanted or infused into another (possibly the same) biological entity."]
84#[derive(Debug, Clone, PartialEq)]
85pub struct BiologicallyDerivedProduct {
86 #[doc = "The logical id of the resource, as used in the URL for the resource. Once assigned, this value never changes."]
87 pub r#id: Option<super::super::types::Id>,
88 #[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."]
89 pub r#meta: Option<Box<super::super::types::Meta>>,
90 #[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."]
91 pub r#implicit_rules: Option<super::super::types::Uri>,
92 #[doc = "The base language in which the resource is written."]
93 pub r#language: Option<super::super::types::Code>,
94 #[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."]
95 pub r#text: Option<Box<super::super::types::Narrative>>,
96 #[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."]
97 pub r#contained: Vec<super::super::Resource>,
98 #[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."]
99 pub r#extension: Vec<super::super::types::Extension>,
100 #[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)."]
101 pub r#modifier_extension: Vec<super::super::types::Extension>,
102 #[doc = "Broad category of this product."]
103 pub r#product_category: Option<Box<super::super::types::Coding>>,
104 #[doc = "A codified value that systematically supports characterization and classification of medical products of human origin inclusive of processing conditions such as additives, volumes and handling conditions."]
105 pub r#product_code: Option<Box<super::super::types::CodeableConcept>>,
106 #[doc = "Parent product (if any) for this biologically-derived product."]
107 pub r#parent: Vec<super::super::types::Reference>,
108 #[doc = "Request to obtain and/or infuse this biologically derived product."]
109 pub r#request: Vec<super::super::types::Reference>,
110 #[doc = "Unique instance identifiers assigned to a biologically derived product. Note: This is a business identifier, not a resource identifier."]
111 pub r#identifier: Vec<super::super::types::Identifier>,
112 #[doc = "An identifier that supports traceability to the event during which material in this product from one or more biological entities was obtained or pooled."]
113 pub r#biological_source_event: Option<Box<super::super::types::Identifier>>,
114 #[doc = "Processing facilities responsible for the labeling and distribution of this biologically derived product."]
115 pub r#processing_facility: Vec<super::super::types::Reference>,
116 #[doc = "A unique identifier for an aliquot of a product. Used to distinguish individual aliquots of a product carrying the same biologicalSource and productCode identifiers."]
117 pub r#division: Option<super::super::types::String>,
118 #[doc = "Whether the product is currently available."]
119 pub r#product_status: Option<Box<super::super::types::Coding>>,
120 #[doc = "Date, and where relevant time, of expiration."]
121 pub r#expiration_date: Option<super::super::types::DateTime>,
122 #[doc = "How this product was collected."]
123 pub r#collection: Option<BiologicallyDerivedProductCollection>,
124 #[doc = "The temperature requirements for storage of the biologically-derived product."]
125 pub r#storage_temp_requirements: Option<Box<super::super::types::Range>>,
126 #[doc = "A property that is specific to this BiologicallyDerviedProduct instance."]
127 pub r#property: Vec<BiologicallyDerivedProductProperty>,
128}
129#[allow(clippy::derivable_impls)]
130impl Default for BiologicallyDerivedProduct {
131 fn default() -> Self {
132 Self {
133 r#id: Default::default(),
134 r#meta: Default::default(),
135 r#implicit_rules: Default::default(),
136 r#language: Default::default(),
137 r#text: Default::default(),
138 r#contained: Default::default(),
139 r#extension: Default::default(),
140 r#modifier_extension: Default::default(),
141 r#product_category: Default::default(),
142 r#product_code: Default::default(),
143 r#parent: Default::default(),
144 r#request: Default::default(),
145 r#identifier: Default::default(),
146 r#biological_source_event: Default::default(),
147 r#processing_facility: Default::default(),
148 r#division: Default::default(),
149 r#product_status: Default::default(),
150 r#expiration_date: Default::default(),
151 r#collection: Default::default(),
152 r#storage_temp_requirements: Default::default(),
153 r#property: Default::default(),
154 }
155 }
156}