fhirbolt_model/generated/r5/resources/
implementation_guide.rs

1// Generated on 2023-05-17 by fhirbolt-codegen v0.10.0
2#[doc = "Indicates the mechanism used to compare versions to determine which is more current."]
3#[derive(Default, Debug, Clone, PartialEq)]
4pub enum ImplementationGuideVersionAlgorithm {
5    String(super::super::types::String),
6    Coding(Box<super::super::types::Coding>),
7    #[default]
8    Invalid,
9}
10#[doc = "Indicates the URL or the actual content to provide for the page."]
11#[derive(Default, Debug, Clone, PartialEq)]
12pub enum ImplementationGuideDefinitionPageSource {
13    Url(super::super::types::Url),
14    String(super::super::types::String),
15    Markdown(super::super::types::Markdown),
16    #[default]
17    Invalid,
18}
19#[doc = "Another implementation guide that this implementation depends on. Typically, an implementation guide uses value sets, profiles etc.defined in other implementation guides."]
20#[derive(Debug, Clone, PartialEq)]
21pub struct ImplementationGuideDependsOn {
22    #[doc = "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."]
23    pub r#id: Option<std::string::String>,
24    #[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."]
25    pub r#extension: Vec<super::super::types::Extension>,
26    #[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)."]
27    pub r#modifier_extension: Vec<super::super::types::Extension>,
28    #[doc = "A canonical reference to the Implementation guide for the dependency."]
29    pub r#uri: super::super::types::Canonical,
30    #[doc = "The NPM package name for the Implementation Guide that this IG depends on."]
31    pub r#package_id: Option<super::super::types::Id>,
32    #[doc = "The version of the IG that is depended on, when the correct version is required to understand the IG correctly."]
33    pub r#version: Option<super::super::types::String>,
34    #[doc = "A description explaining the nature of the dependency on the listed IG."]
35    pub r#reason: Option<super::super::types::Markdown>,
36}
37#[allow(clippy::derivable_impls)]
38impl Default for ImplementationGuideDependsOn {
39    fn default() -> Self {
40        Self {
41            r#id: Default::default(),
42            r#extension: Default::default(),
43            r#modifier_extension: Default::default(),
44            r#uri: super::super::types::Canonical {
45                id: Some("$invalid".to_string()),
46                ..Default::default()
47            },
48            r#package_id: Default::default(),
49            r#version: Default::default(),
50            r#reason: Default::default(),
51        }
52    }
53}
54#[doc = "A set of profiles that all resources covered by this implementation guide must conform to."]
55#[derive(Debug, Clone, PartialEq)]
56pub struct ImplementationGuideGlobal {
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 = "The type of resource that all instances must conform to."]
64    pub r#type: super::super::types::Code,
65    #[doc = "A reference to the profile that all instances must conform to."]
66    pub r#profile: super::super::types::Canonical,
67}
68#[allow(clippy::derivable_impls)]
69impl Default for ImplementationGuideGlobal {
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: super::super::types::Code {
76                id: Some("$invalid".to_string()),
77                ..Default::default()
78            },
79            r#profile: super::super::types::Canonical {
80                id: Some("$invalid".to_string()),
81                ..Default::default()
82            },
83        }
84    }
85}
86#[doc = "A logical group of resources. Logical groups can be used when building pages."]
87#[derive(Debug, Clone, PartialEq)]
88pub struct ImplementationGuideDefinitionGrouping {
89    #[doc = "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."]
90    pub r#id: Option<std::string::String>,
91    #[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."]
92    pub r#extension: Vec<super::super::types::Extension>,
93    #[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)."]
94    pub r#modifier_extension: Vec<super::super::types::Extension>,
95    #[doc = "The human-readable title to display for the package of resources when rendering the implementation guide."]
96    pub r#name: super::super::types::String,
97    #[doc = "Human readable text describing the package."]
98    pub r#description: Option<super::super::types::Markdown>,
99}
100#[allow(clippy::derivable_impls)]
101impl Default for ImplementationGuideDefinitionGrouping {
102    fn default() -> Self {
103        Self {
104            r#id: Default::default(),
105            r#extension: Default::default(),
106            r#modifier_extension: Default::default(),
107            r#name: super::super::types::String {
108                id: Some("$invalid".to_string()),
109                ..Default::default()
110            },
111            r#description: Default::default(),
112        }
113    }
114}
115#[doc = "A resource that is part of the implementation guide. Conformance resources (value set, structure definition, capability statements etc.) are obvious candidates for inclusion, but any kind of resource can be included as an example resource."]
116#[derive(Debug, Clone, PartialEq)]
117pub struct ImplementationGuideDefinitionResource {
118    #[doc = "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."]
119    pub r#id: Option<std::string::String>,
120    #[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."]
121    pub r#extension: Vec<super::super::types::Extension>,
122    #[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)."]
123    pub r#modifier_extension: Vec<super::super::types::Extension>,
124    #[doc = "Where this resource is found."]
125    pub r#reference: Box<super::super::types::Reference>,
126    #[doc = "Indicates the FHIR Version(s) this artifact is intended to apply to. If no versions are specified, the resource is assumed to apply to all the versions stated in ImplementationGuide.fhirVersion."]
127    pub r#fhir_version: Vec<super::super::types::Code>,
128    #[doc = "A human assigned name for the resource. All resources SHOULD have a name, but the name may be extracted from the resource (e.g. ValueSet.name)."]
129    pub r#name: Option<super::super::types::String>,
130    #[doc = "A description of the reason that a resource has been included in the implementation guide."]
131    pub r#description: Option<super::super::types::Markdown>,
132    #[doc = "If true, indicates the resource is an example instance."]
133    pub r#is_example: Option<super::super::types::Boolean>,
134    #[doc = "If present, indicates profile(s) the instance is valid against."]
135    pub r#profile: Vec<super::super::types::Canonical>,
136    #[doc = "Reference to the id of the grouping this resource appears in."]
137    pub r#grouping_id: Option<super::super::types::Id>,
138}
139#[allow(clippy::derivable_impls)]
140impl Default for ImplementationGuideDefinitionResource {
141    fn default() -> Self {
142        Self {
143            r#id: Default::default(),
144            r#extension: Default::default(),
145            r#modifier_extension: Default::default(),
146            r#reference: Box::new(super::super::types::Reference {
147                id: Some("$invalid".to_string()),
148                ..Default::default()
149            }),
150            r#fhir_version: Default::default(),
151            r#name: Default::default(),
152            r#description: Default::default(),
153            r#is_example: Default::default(),
154            r#profile: Default::default(),
155            r#grouping_id: Default::default(),
156        }
157    }
158}
159#[doc = "A page / section in the implementation guide. The root page is the implementation guide home page."]
160#[derive(Debug, Clone, PartialEq)]
161pub struct ImplementationGuideDefinitionPage {
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 = "Indicates the URL or the actual content to provide for the page."]
169    pub r#source: Option<ImplementationGuideDefinitionPageSource>,
170    #[doc = "The url by which the page should be known when published."]
171    pub r#name: super::super::types::Url,
172    #[doc = "A short title used to represent this page in navigational structures such as table of contents, bread crumbs, etc."]
173    pub r#title: super::super::types::String,
174    #[doc = "A code that indicates how the page is generated."]
175    pub r#generation: super::super::types::Code,
176    #[doc = "Nested Pages/Sections under this page."]
177    pub r#page: Vec<ImplementationGuideDefinitionPage>,
178}
179#[allow(clippy::derivable_impls)]
180impl Default for ImplementationGuideDefinitionPage {
181    fn default() -> Self {
182        Self {
183            r#id: Default::default(),
184            r#extension: Default::default(),
185            r#modifier_extension: Default::default(),
186            r#source: Default::default(),
187            r#name: super::super::types::Url {
188                id: Some("$invalid".to_string()),
189                ..Default::default()
190            },
191            r#title: super::super::types::String {
192                id: Some("$invalid".to_string()),
193                ..Default::default()
194            },
195            r#generation: super::super::types::Code {
196                id: Some("$invalid".to_string()),
197                ..Default::default()
198            },
199            r#page: Default::default(),
200        }
201    }
202}
203#[doc = "A set of parameters that defines how the implementation guide is built. The parameters are defined by the relevant tools that build the implementation guides."]
204#[derive(Debug, Clone, PartialEq)]
205pub struct ImplementationGuideDefinitionParameter {
206    #[doc = "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."]
207    pub r#id: Option<std::string::String>,
208    #[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."]
209    pub r#extension: Vec<super::super::types::Extension>,
210    #[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)."]
211    pub r#modifier_extension: Vec<super::super::types::Extension>,
212    #[doc = "A tool-specific code that defines the parameter."]
213    pub r#code: Box<super::super::types::Coding>,
214    #[doc = "Value for named type."]
215    pub r#value: super::super::types::String,
216}
217#[allow(clippy::derivable_impls)]
218impl Default for ImplementationGuideDefinitionParameter {
219    fn default() -> Self {
220        Self {
221            r#id: Default::default(),
222            r#extension: Default::default(),
223            r#modifier_extension: Default::default(),
224            r#code: Box::new(super::super::types::Coding {
225                id: Some("$invalid".to_string()),
226                ..Default::default()
227            }),
228            r#value: super::super::types::String {
229                id: Some("$invalid".to_string()),
230                ..Default::default()
231            },
232        }
233    }
234}
235#[doc = "A template for building resources."]
236#[derive(Debug, Clone, PartialEq)]
237pub struct ImplementationGuideDefinitionTemplate {
238    #[doc = "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."]
239    pub r#id: Option<std::string::String>,
240    #[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."]
241    pub r#extension: Vec<super::super::types::Extension>,
242    #[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)."]
243    pub r#modifier_extension: Vec<super::super::types::Extension>,
244    #[doc = "Type of template specified."]
245    pub r#code: super::super::types::Code,
246    #[doc = "The source location for the template."]
247    pub r#source: super::super::types::String,
248    #[doc = "The scope in which the template applies."]
249    pub r#scope: Option<super::super::types::String>,
250}
251#[allow(clippy::derivable_impls)]
252impl Default for ImplementationGuideDefinitionTemplate {
253    fn default() -> Self {
254        Self {
255            r#id: Default::default(),
256            r#extension: Default::default(),
257            r#modifier_extension: Default::default(),
258            r#code: super::super::types::Code {
259                id: Some("$invalid".to_string()),
260                ..Default::default()
261            },
262            r#source: super::super::types::String {
263                id: Some("$invalid".to_string()),
264                ..Default::default()
265            },
266            r#scope: Default::default(),
267        }
268    }
269}
270#[doc = "The information needed by an IG publisher tool to publish the whole implementation guide."]
271#[derive(Debug, Clone, PartialEq)]
272pub struct ImplementationGuideDefinition {
273    #[doc = "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."]
274    pub r#id: Option<std::string::String>,
275    #[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."]
276    pub r#extension: Vec<super::super::types::Extension>,
277    #[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)."]
278    pub r#modifier_extension: Vec<super::super::types::Extension>,
279    #[doc = "A logical group of resources. Logical groups can be used when building pages."]
280    pub r#grouping: Vec<ImplementationGuideDefinitionGrouping>,
281    #[doc = "A resource that is part of the implementation guide. Conformance resources (value set, structure definition, capability statements etc.) are obvious candidates for inclusion, but any kind of resource can be included as an example resource."]
282    pub r#resource: Vec<ImplementationGuideDefinitionResource>,
283    #[doc = "A page / section in the implementation guide. The root page is the implementation guide home page."]
284    pub r#page: Option<ImplementationGuideDefinitionPage>,
285    #[doc = "A set of parameters that defines how the implementation guide is built. The parameters are defined by the relevant tools that build the implementation guides."]
286    pub r#parameter: Vec<ImplementationGuideDefinitionParameter>,
287    #[doc = "A template for building resources."]
288    pub r#template: Vec<ImplementationGuideDefinitionTemplate>,
289}
290#[allow(clippy::derivable_impls)]
291impl Default for ImplementationGuideDefinition {
292    fn default() -> Self {
293        Self {
294            r#id: Default::default(),
295            r#extension: Default::default(),
296            r#modifier_extension: Default::default(),
297            r#grouping: Default::default(),
298            r#resource: Default::default(),
299            r#page: Default::default(),
300            r#parameter: Default::default(),
301            r#template: Default::default(),
302        }
303    }
304}
305#[doc = "A resource that is part of the implementation guide. Conformance resources (value set, structure definition, capability statements etc.) are obvious candidates for inclusion, but any kind of resource can be included as an example resource."]
306#[derive(Debug, Clone, PartialEq)]
307pub struct ImplementationGuideManifestResource {
308    #[doc = "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."]
309    pub r#id: Option<std::string::String>,
310    #[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."]
311    pub r#extension: Vec<super::super::types::Extension>,
312    #[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)."]
313    pub r#modifier_extension: Vec<super::super::types::Extension>,
314    #[doc = "Where this resource is found."]
315    pub r#reference: Box<super::super::types::Reference>,
316    #[doc = "If true, indicates the resource is an example instance."]
317    pub r#is_example: Option<super::super::types::Boolean>,
318    #[doc = "If present, indicates profile(s) the instance is valid against."]
319    pub r#profile: Vec<super::super::types::Canonical>,
320    #[doc = "The relative path for primary page for this resource within the IG."]
321    pub r#relative_path: Option<super::super::types::Url>,
322}
323#[allow(clippy::derivable_impls)]
324impl Default for ImplementationGuideManifestResource {
325    fn default() -> Self {
326        Self {
327            r#id: Default::default(),
328            r#extension: Default::default(),
329            r#modifier_extension: Default::default(),
330            r#reference: Box::new(super::super::types::Reference {
331                id: Some("$invalid".to_string()),
332                ..Default::default()
333            }),
334            r#is_example: Default::default(),
335            r#profile: Default::default(),
336            r#relative_path: Default::default(),
337        }
338    }
339}
340#[doc = "Information about a page within the IG."]
341#[derive(Debug, Clone, PartialEq)]
342pub struct ImplementationGuideManifestPage {
343    #[doc = "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."]
344    pub r#id: Option<std::string::String>,
345    #[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."]
346    pub r#extension: Vec<super::super::types::Extension>,
347    #[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)."]
348    pub r#modifier_extension: Vec<super::super::types::Extension>,
349    #[doc = "Relative path to the page."]
350    pub r#name: super::super::types::String,
351    #[doc = "Label for the page intended for human display."]
352    pub r#title: Option<super::super::types::String>,
353    #[doc = "The name of an anchor available on the page."]
354    pub r#anchor: Vec<super::super::types::String>,
355}
356#[allow(clippy::derivable_impls)]
357impl Default for ImplementationGuideManifestPage {
358    fn default() -> Self {
359        Self {
360            r#id: Default::default(),
361            r#extension: Default::default(),
362            r#modifier_extension: Default::default(),
363            r#name: super::super::types::String {
364                id: Some("$invalid".to_string()),
365                ..Default::default()
366            },
367            r#title: Default::default(),
368            r#anchor: Default::default(),
369        }
370    }
371}
372#[doc = "Information about an assembled implementation guide, created by the publication tooling."]
373#[derive(Debug, Clone, PartialEq)]
374pub struct ImplementationGuideManifest {
375    #[doc = "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."]
376    pub r#id: Option<std::string::String>,
377    #[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."]
378    pub r#extension: Vec<super::super::types::Extension>,
379    #[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)."]
380    pub r#modifier_extension: Vec<super::super::types::Extension>,
381    #[doc = "A pointer to official web page, PDF or other rendering of the implementation guide."]
382    pub r#rendering: Option<super::super::types::Url>,
383    #[doc = "A resource that is part of the implementation guide. Conformance resources (value set, structure definition, capability statements etc.) are obvious candidates for inclusion, but any kind of resource can be included as an example resource."]
384    pub r#resource: Vec<ImplementationGuideManifestResource>,
385    #[doc = "Information about a page within the IG."]
386    pub r#page: Vec<ImplementationGuideManifestPage>,
387    #[doc = "Indicates a relative path to an image that exists within the IG."]
388    pub r#image: Vec<super::super::types::String>,
389    #[doc = "Indicates the relative path of an additional non-page, non-image file that is part of the IG - e.g. zip, jar and similar files that could be the target of a hyperlink in a derived IG."]
390    pub r#other: Vec<super::super::types::String>,
391}
392#[allow(clippy::derivable_impls)]
393impl Default for ImplementationGuideManifest {
394    fn default() -> Self {
395        Self {
396            r#id: Default::default(),
397            r#extension: Default::default(),
398            r#modifier_extension: Default::default(),
399            r#rendering: Default::default(),
400            r#resource: Default::default(),
401            r#page: Default::default(),
402            r#image: Default::default(),
403            r#other: Default::default(),
404        }
405    }
406}
407#[doc = "A set of rules of how a particular interoperability or standards problem is solved - typically through the use of FHIR resources. This resource is used to gather all the parts of an implementation guide into a logical whole and to publish a computable definition of all the parts.\n\nAn implementation guide is able to define default profiles that must apply to any use of a resource, so validation services may need to take one or more implementation guide resources when validating."]
408#[derive(Debug, Clone, PartialEq)]
409pub struct ImplementationGuide {
410    #[doc = "The logical id of the resource, as used in the URL for the resource. Once assigned, this value never changes."]
411    pub r#id: Option<super::super::types::Id>,
412    #[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."]
413    pub r#meta: Option<Box<super::super::types::Meta>>,
414    #[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."]
415    pub r#implicit_rules: Option<super::super::types::Uri>,
416    #[doc = "The base language in which the resource is written."]
417    pub r#language: Option<super::super::types::Code>,
418    #[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."]
419    pub r#text: Option<Box<super::super::types::Narrative>>,
420    #[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."]
421    pub r#contained: Vec<super::super::Resource>,
422    #[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."]
423    pub r#extension: Vec<super::super::types::Extension>,
424    #[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)."]
425    pub r#modifier_extension: Vec<super::super::types::Extension>,
426    #[doc = "An absolute URI that is used to identify this implementation guide when it is referenced in a specification, model, design or an instance; also called its canonical identifier. This SHOULD be globally unique and SHOULD be a literal address at which an authoritative instance of this implementation guide is (or will be) published. This URL can be the target of a canonical reference. It SHALL remain the same when the implementation guide is stored on different servers."]
427    pub r#url: super::super::types::Uri,
428    #[doc = "A formal identifier that is used to identify this implementation guide when it is represented in other formats, or referenced in a specification, model, design or an instance."]
429    pub r#identifier: Vec<super::super::types::Identifier>,
430    #[doc = "The identifier that is used to identify this version of the implementation guide when it is referenced in a specification, model, design or instance. This is an arbitrary value managed by the implementation guide author and is not expected to be globally unique. For example, it might be a timestamp (e.g. yyyymmdd) if a managed version is not available. There is also no expectation that versions can be placed in a lexicographical sequence."]
431    pub r#version: Option<super::super::types::String>,
432    #[doc = "Indicates the mechanism used to compare versions to determine which is more current."]
433    pub r#version_algorithm: Option<ImplementationGuideVersionAlgorithm>,
434    #[doc = "A natural language name identifying the implementation guide. This name should be usable as an identifier for the module by machine processing applications such as code generation."]
435    pub r#name: super::super::types::String,
436    #[doc = "A short, descriptive, user-friendly title for the implementation guide."]
437    pub r#title: Option<super::super::types::String>,
438    #[doc = "The status of this implementation guide. Enables tracking the life-cycle of the content."]
439    pub r#status: super::super::types::Code,
440    #[doc = "A Boolean value to indicate that this implementation guide is authored for testing purposes (or education/evaluation/marketing) and is not intended to be used for genuine usage."]
441    pub r#experimental: Option<super::super::types::Boolean>,
442    #[doc = "The date  (and optionally time) when the implementation guide was last significantly changed. The date must change when the business version changes and it must change if the status code changes. In addition, it should change when the substantive content of the implementation guide changes."]
443    pub r#date: Option<super::super::types::DateTime>,
444    #[doc = "The name of the organization or individual responsible for the release and ongoing maintenance of the implementation guide."]
445    pub r#publisher: Option<super::super::types::String>,
446    #[doc = "Contact details to assist a user in finding and communicating with the publisher."]
447    pub r#contact: Vec<super::super::types::ContactDetail>,
448    #[doc = "A free text natural language description of the implementation guide from a consumer's perspective."]
449    pub r#description: Option<super::super::types::Markdown>,
450    #[doc = "The content was developed with a focus and intent of supporting the contexts that are listed. These contexts may be general categories (gender, age, ...) or may be references to specific programs (insurance plans, studies, ...) and may be used to assist with indexing and searching for appropriate implementation guide instances."]
451    pub r#use_context: Vec<super::super::types::UsageContext>,
452    #[doc = "A legal or geographic region in which the implementation guide is intended to be used."]
453    pub r#jurisdiction: Vec<super::super::types::CodeableConcept>,
454    #[doc = "Explanation of why this implementation guide is needed and why it has been designed as it has."]
455    pub r#purpose: Option<super::super::types::Markdown>,
456    #[doc = "A copyright statement relating to the implementation guide and/or its contents. Copyright statements are generally legal restrictions on the use and publishing of the implementation guide."]
457    pub r#copyright: Option<super::super::types::Markdown>,
458    #[doc = "A short string (<50 characters), suitable for inclusion in a page footer that identifies the copyright holder, effective period, and optionally whether rights are resctricted. (e.g. 'All rights reserved', 'Some rights reserved')."]
459    pub r#copyright_label: Option<super::super::types::String>,
460    #[doc = "The NPM package name for this Implementation Guide, used in the NPM package distribution, which is the primary mechanism by which FHIR based tooling manages IG dependencies. This value must be globally unique, and should be assigned with care."]
461    pub r#package_id: super::super::types::Id,
462    #[doc = "The license that applies to this Implementation Guide, using an SPDX license code, or 'not-open-source'."]
463    pub r#license: Option<super::super::types::Code>,
464    #[doc = "The version(s) of the FHIR specification that this ImplementationGuide targets - e.g. describes how to use. The value of this element is the formal version of the specification, without the revision number, e.g. `publication`.`major`.`minor`, which is 4.6.0. for this version."]
465    pub r#fhir_version: Vec<super::super::types::Code>,
466    #[doc = "Another implementation guide that this implementation depends on. Typically, an implementation guide uses value sets, profiles etc.defined in other implementation guides."]
467    pub r#depends_on: Vec<ImplementationGuideDependsOn>,
468    #[doc = "A set of profiles that all resources covered by this implementation guide must conform to."]
469    pub r#global: Vec<ImplementationGuideGlobal>,
470    #[doc = "The information needed by an IG publisher tool to publish the whole implementation guide."]
471    pub r#definition: Option<ImplementationGuideDefinition>,
472    #[doc = "Information about an assembled implementation guide, created by the publication tooling."]
473    pub r#manifest: Option<ImplementationGuideManifest>,
474}
475#[allow(clippy::derivable_impls)]
476impl Default for ImplementationGuide {
477    fn default() -> Self {
478        Self {
479            r#id: Default::default(),
480            r#meta: Default::default(),
481            r#implicit_rules: Default::default(),
482            r#language: Default::default(),
483            r#text: Default::default(),
484            r#contained: Default::default(),
485            r#extension: Default::default(),
486            r#modifier_extension: Default::default(),
487            r#url: super::super::types::Uri {
488                id: Some("$invalid".to_string()),
489                ..Default::default()
490            },
491            r#identifier: Default::default(),
492            r#version: Default::default(),
493            r#version_algorithm: Default::default(),
494            r#name: super::super::types::String {
495                id: Some("$invalid".to_string()),
496                ..Default::default()
497            },
498            r#title: Default::default(),
499            r#status: super::super::types::Code {
500                id: Some("$invalid".to_string()),
501                ..Default::default()
502            },
503            r#experimental: Default::default(),
504            r#date: Default::default(),
505            r#publisher: Default::default(),
506            r#contact: Default::default(),
507            r#description: Default::default(),
508            r#use_context: Default::default(),
509            r#jurisdiction: Default::default(),
510            r#purpose: Default::default(),
511            r#copyright: Default::default(),
512            r#copyright_label: Default::default(),
513            r#package_id: super::super::types::Id {
514                id: Some("$invalid".to_string()),
515                ..Default::default()
516            },
517            r#license: Default::default(),
518            r#fhir_version: Default::default(),
519            r#depends_on: Default::default(),
520            r#global: Default::default(),
521            r#definition: Default::default(),
522            r#manifest: Default::default(),
523        }
524    }
525}