fhirbolt_model/generated/r4/resources/
medicinal_product.rs

1// Generated on 2023-05-17 by fhirbolt-codegen v0.10.0
2#[doc = "Condition for which the medicinal use applies."]
3#[derive(Default, Debug, Clone, PartialEq)]
4pub enum MedicinalProductSpecialDesignationIndication {
5    CodeableConcept(Box<super::super::types::CodeableConcept>),
6    Reference(Box<super::super::types::Reference>),
7    #[default]
8    Invalid,
9}
10#[doc = "Coding words or phrases of the name."]
11#[derive(Debug, Clone, PartialEq)]
12pub struct MedicinalProductNameNamePart {
13    #[doc = "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."]
14    pub r#id: Option<std::string::String>,
15    #[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."]
16    pub r#extension: Vec<super::super::types::Extension>,
17    #[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)."]
18    pub r#modifier_extension: Vec<super::super::types::Extension>,
19    #[doc = "A fragment of a product name."]
20    pub r#part: super::super::types::String,
21    #[doc = "Idenifying type for this part of the name (e.g. strength part)."]
22    pub r#type: Box<super::super::types::Coding>,
23}
24#[allow(clippy::derivable_impls)]
25impl Default for MedicinalProductNameNamePart {
26    fn default() -> Self {
27        Self {
28            r#id: Default::default(),
29            r#extension: Default::default(),
30            r#modifier_extension: Default::default(),
31            r#part: super::super::types::String {
32                id: Some("$invalid".to_string()),
33                ..Default::default()
34            },
35            r#type: Box::new(super::super::types::Coding {
36                id: Some("$invalid".to_string()),
37                ..Default::default()
38            }),
39        }
40    }
41}
42#[doc = "Country where the name applies."]
43#[derive(Debug, Clone, PartialEq)]
44pub struct MedicinalProductNameCountryLanguage {
45    #[doc = "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."]
46    pub r#id: Option<std::string::String>,
47    #[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."]
48    pub r#extension: Vec<super::super::types::Extension>,
49    #[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)."]
50    pub r#modifier_extension: Vec<super::super::types::Extension>,
51    #[doc = "Country code for where this name applies."]
52    pub r#country: Box<super::super::types::CodeableConcept>,
53    #[doc = "Jurisdiction code for where this name applies."]
54    pub r#jurisdiction: Option<Box<super::super::types::CodeableConcept>>,
55    #[doc = "Language code for this name."]
56    pub r#language: Box<super::super::types::CodeableConcept>,
57}
58#[allow(clippy::derivable_impls)]
59impl Default for MedicinalProductNameCountryLanguage {
60    fn default() -> Self {
61        Self {
62            r#id: Default::default(),
63            r#extension: Default::default(),
64            r#modifier_extension: Default::default(),
65            r#country: Box::new(super::super::types::CodeableConcept {
66                id: Some("$invalid".to_string()),
67                ..Default::default()
68            }),
69            r#jurisdiction: Default::default(),
70            r#language: Box::new(super::super::types::CodeableConcept {
71                id: Some("$invalid".to_string()),
72                ..Default::default()
73            }),
74        }
75    }
76}
77#[doc = "The product's name, including full name and possibly coded parts."]
78#[derive(Debug, Clone, PartialEq)]
79pub struct MedicinalProductName {
80    #[doc = "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."]
81    pub r#id: Option<std::string::String>,
82    #[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."]
83    pub r#extension: Vec<super::super::types::Extension>,
84    #[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)."]
85    pub r#modifier_extension: Vec<super::super::types::Extension>,
86    #[doc = "The full product name."]
87    pub r#product_name: super::super::types::String,
88    #[doc = "Coding words or phrases of the name."]
89    pub r#name_part: Vec<MedicinalProductNameNamePart>,
90    #[doc = "Country where the name applies."]
91    pub r#country_language: Vec<MedicinalProductNameCountryLanguage>,
92}
93#[allow(clippy::derivable_impls)]
94impl Default for MedicinalProductName {
95    fn default() -> Self {
96        Self {
97            r#id: Default::default(),
98            r#extension: Default::default(),
99            r#modifier_extension: Default::default(),
100            r#product_name: super::super::types::String {
101                id: Some("$invalid".to_string()),
102                ..Default::default()
103            },
104            r#name_part: Default::default(),
105            r#country_language: Default::default(),
106        }
107    }
108}
109#[doc = "An operation applied to the product, for manufacturing or adminsitrative purpose."]
110#[derive(Debug, Clone, PartialEq)]
111pub struct MedicinalProductManufacturingBusinessOperation {
112    #[doc = "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."]
113    pub r#id: Option<std::string::String>,
114    #[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."]
115    pub r#extension: Vec<super::super::types::Extension>,
116    #[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)."]
117    pub r#modifier_extension: Vec<super::super::types::Extension>,
118    #[doc = "The type of manufacturing operation."]
119    pub r#operation_type: Option<Box<super::super::types::CodeableConcept>>,
120    #[doc = "Regulatory authorization reference number."]
121    pub r#authorisation_reference_number: Option<Box<super::super::types::Identifier>>,
122    #[doc = "Regulatory authorization date."]
123    pub r#effective_date: Option<super::super::types::DateTime>,
124    #[doc = "To indicate if this proces is commercially confidential."]
125    pub r#confidentiality_indicator: Option<Box<super::super::types::CodeableConcept>>,
126    #[doc = "The manufacturer or establishment associated with the process."]
127    pub r#manufacturer: Vec<super::super::types::Reference>,
128    #[doc = "A regulator which oversees the operation."]
129    pub r#regulator: Option<Box<super::super::types::Reference>>,
130}
131#[allow(clippy::derivable_impls)]
132impl Default for MedicinalProductManufacturingBusinessOperation {
133    fn default() -> Self {
134        Self {
135            r#id: Default::default(),
136            r#extension: Default::default(),
137            r#modifier_extension: Default::default(),
138            r#operation_type: Default::default(),
139            r#authorisation_reference_number: Default::default(),
140            r#effective_date: Default::default(),
141            r#confidentiality_indicator: Default::default(),
142            r#manufacturer: Default::default(),
143            r#regulator: Default::default(),
144        }
145    }
146}
147#[doc = "Indicates if the medicinal product has an orphan designation for the treatment of a rare disease."]
148#[derive(Debug, Clone, PartialEq)]
149pub struct MedicinalProductSpecialDesignation {
150    #[doc = "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."]
151    pub r#id: Option<std::string::String>,
152    #[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."]
153    pub r#extension: Vec<super::super::types::Extension>,
154    #[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)."]
155    pub r#modifier_extension: Vec<super::super::types::Extension>,
156    #[doc = "Identifier for the designation, or procedure number."]
157    pub r#identifier: Vec<super::super::types::Identifier>,
158    #[doc = "The type of special designation, e.g. orphan drug, minor use."]
159    pub r#type: Option<Box<super::super::types::CodeableConcept>>,
160    #[doc = "The intended use of the product, e.g. prevention, treatment."]
161    pub r#intended_use: Option<Box<super::super::types::CodeableConcept>>,
162    #[doc = "Condition for which the medicinal use applies."]
163    pub r#indication: Option<MedicinalProductSpecialDesignationIndication>,
164    #[doc = "For example granted, pending, expired or withdrawn."]
165    pub r#status: Option<Box<super::super::types::CodeableConcept>>,
166    #[doc = "Date when the designation was granted."]
167    pub r#date: Option<super::super::types::DateTime>,
168    #[doc = "Animal species for which this applies."]
169    pub r#species: Option<Box<super::super::types::CodeableConcept>>,
170}
171#[allow(clippy::derivable_impls)]
172impl Default for MedicinalProductSpecialDesignation {
173    fn default() -> Self {
174        Self {
175            r#id: Default::default(),
176            r#extension: Default::default(),
177            r#modifier_extension: Default::default(),
178            r#identifier: Default::default(),
179            r#type: Default::default(),
180            r#intended_use: Default::default(),
181            r#indication: Default::default(),
182            r#status: Default::default(),
183            r#date: Default::default(),
184            r#species: Default::default(),
185        }
186    }
187}
188#[doc = "Detailed definition of a medicinal product, typically for uses other than direct patient care (e.g. regulatory use)."]
189#[derive(Debug, Clone, PartialEq)]
190pub struct MedicinalProduct {
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, and nor can they have their own independent transaction scope."]
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 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."]
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 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)."]
206    pub r#modifier_extension: Vec<super::super::types::Extension>,
207    #[doc = "Business identifier for this product. Could be an MPID."]
208    pub r#identifier: Vec<super::super::types::Identifier>,
209    #[doc = "Regulatory type, e.g. Investigational or Authorized."]
210    pub r#type: Option<Box<super::super::types::CodeableConcept>>,
211    #[doc = "If this medicine applies to human or veterinary uses."]
212    pub r#domain: Option<Box<super::super::types::Coding>>,
213    #[doc = "The dose form for a single part product, or combined form of a multiple part product."]
214    pub r#combined_pharmaceutical_dose_form: Option<Box<super::super::types::CodeableConcept>>,
215    #[doc = "The legal status of supply of the medicinal product as classified by the regulator."]
216    pub r#legal_status_of_supply: Option<Box<super::super::types::CodeableConcept>>,
217    #[doc = "Whether the Medicinal Product is subject to additional monitoring for regulatory reasons."]
218    pub r#additional_monitoring_indicator: Option<Box<super::super::types::CodeableConcept>>,
219    #[doc = "Whether the Medicinal Product is subject to special measures for regulatory reasons."]
220    pub r#special_measures: Vec<super::super::types::String>,
221    #[doc = "If authorised for use in children."]
222    pub r#paediatric_use_indicator: Option<Box<super::super::types::CodeableConcept>>,
223    #[doc = "Allows the product to be classified by various systems."]
224    pub r#product_classification: Vec<super::super::types::CodeableConcept>,
225    #[doc = "Marketing status of the medicinal product, in contrast to marketing authorizaton."]
226    pub r#marketing_status: Vec<super::super::types::MarketingStatus>,
227    #[doc = "Pharmaceutical aspects of product."]
228    pub r#pharmaceutical_product: Vec<super::super::types::Reference>,
229    #[doc = "Package representation for the product."]
230    pub r#packaged_medicinal_product: Vec<super::super::types::Reference>,
231    #[doc = "Supporting documentation, typically for regulatory submission."]
232    pub r#attached_document: Vec<super::super::types::Reference>,
233    #[doc = "A master file for to the medicinal product (e.g. Pharmacovigilance System Master File)."]
234    pub r#master_file: Vec<super::super::types::Reference>,
235    #[doc = "A product specific contact, person (in a role), or an organization."]
236    pub r#contact: Vec<super::super::types::Reference>,
237    #[doc = "Clinical trials or studies that this product is involved in."]
238    pub r#clinical_trial: Vec<super::super::types::Reference>,
239    #[doc = "The product's name, including full name and possibly coded parts."]
240    pub r#name: Vec<MedicinalProductName>,
241    #[doc = "Reference to another product, e.g. for linking authorised to investigational product."]
242    pub r#cross_reference: Vec<super::super::types::Identifier>,
243    #[doc = "An operation applied to the product, for manufacturing or adminsitrative purpose."]
244    pub r#manufacturing_business_operation: Vec<MedicinalProductManufacturingBusinessOperation>,
245    #[doc = "Indicates if the medicinal product has an orphan designation for the treatment of a rare disease."]
246    pub r#special_designation: Vec<MedicinalProductSpecialDesignation>,
247}
248#[allow(clippy::derivable_impls)]
249impl Default for MedicinalProduct {
250    fn default() -> Self {
251        Self {
252            r#id: Default::default(),
253            r#meta: Default::default(),
254            r#implicit_rules: Default::default(),
255            r#language: Default::default(),
256            r#text: Default::default(),
257            r#contained: Default::default(),
258            r#extension: Default::default(),
259            r#modifier_extension: Default::default(),
260            r#identifier: Default::default(),
261            r#type: Default::default(),
262            r#domain: Default::default(),
263            r#combined_pharmaceutical_dose_form: Default::default(),
264            r#legal_status_of_supply: Default::default(),
265            r#additional_monitoring_indicator: Default::default(),
266            r#special_measures: Default::default(),
267            r#paediatric_use_indicator: Default::default(),
268            r#product_classification: Default::default(),
269            r#marketing_status: Default::default(),
270            r#pharmaceutical_product: Default::default(),
271            r#packaged_medicinal_product: Default::default(),
272            r#attached_document: Default::default(),
273            r#master_file: Default::default(),
274            r#contact: Default::default(),
275            r#clinical_trial: Default::default(),
276            r#name: Default::default(),
277            r#cross_reference: Default::default(),
278            r#manufacturing_business_operation: Default::default(),
279            r#special_designation: Default::default(),
280        }
281    }
282}