1#[doc = "If true or a reference, indicates the resource is an example instance. If a reference is present, indicates that the example is an example of the specified profile."]
3#[derive(Default, Debug, Clone, PartialEq)]
4pub enum ImplementationGuideDefinitionResourceExample {
5 Boolean(super::super::types::Boolean),
6 Canonical(super::super::types::Canonical),
7 #[default]
8 Invalid,
9}
10#[doc = "The source address for the page."]
11#[derive(Default, Debug, Clone, PartialEq)]
12pub enum ImplementationGuideDefinitionPageName {
13 Url(super::super::types::Url),
14 Reference(Box<super::super::types::Reference>),
15 #[default]
16 Invalid,
17}
18#[doc = "If true or a reference, indicates the resource is an example instance. If a reference is present, indicates that the example is an example of the specified profile."]
19#[derive(Default, Debug, Clone, PartialEq)]
20pub enum ImplementationGuideManifestResourceExample {
21 Boolean(super::super::types::Boolean),
22 Canonical(super::super::types::Canonical),
23 #[default]
24 Invalid,
25}
26#[doc = "Another implementation guide that this implementation depends on. Typically, an implementation guide uses value sets, profiles etc.defined in other implementation guides."]
27#[derive(Debug, Clone, PartialEq)]
28pub struct ImplementationGuideDependsOn {
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 = "A canonical reference to the Implementation guide for the dependency."]
36 pub r#uri: super::super::types::Canonical,
37 #[doc = "The NPM package name for the Implementation Guide that this IG depends on."]
38 pub r#package_id: Option<super::super::types::Id>,
39 #[doc = "The version of the IG that is depended on, when the correct version is required to understand the IG correctly."]
40 pub r#version: Option<super::super::types::String>,
41}
42#[allow(clippy::derivable_impls)]
43impl Default for ImplementationGuideDependsOn {
44 fn default() -> Self {
45 Self {
46 r#id: Default::default(),
47 r#extension: Default::default(),
48 r#modifier_extension: Default::default(),
49 r#uri: super::super::types::Canonical {
50 id: Some("$invalid".to_string()),
51 ..Default::default()
52 },
53 r#package_id: Default::default(),
54 r#version: Default::default(),
55 }
56 }
57}
58#[doc = "A set of profiles that all resources covered by this implementation guide must conform to."]
59#[derive(Debug, Clone, PartialEq)]
60pub struct ImplementationGuideGlobal {
61 #[doc = "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."]
62 pub r#id: Option<std::string::String>,
63 #[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."]
64 pub r#extension: Vec<super::super::types::Extension>,
65 #[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)."]
66 pub r#modifier_extension: Vec<super::super::types::Extension>,
67 #[doc = "The type of resource that all instances must conform to."]
68 pub r#type: super::super::types::Code,
69 #[doc = "A reference to the profile that all instances must conform to."]
70 pub r#profile: super::super::types::Canonical,
71}
72#[allow(clippy::derivable_impls)]
73impl Default for ImplementationGuideGlobal {
74 fn default() -> Self {
75 Self {
76 r#id: Default::default(),
77 r#extension: Default::default(),
78 r#modifier_extension: Default::default(),
79 r#type: super::super::types::Code {
80 id: Some("$invalid".to_string()),
81 ..Default::default()
82 },
83 r#profile: super::super::types::Canonical {
84 id: Some("$invalid".to_string()),
85 ..Default::default()
86 },
87 }
88 }
89}
90#[doc = "A logical group of resources. Logical groups can be used when building pages."]
91#[derive(Debug, Clone, PartialEq)]
92pub struct ImplementationGuideDefinitionGrouping {
93 #[doc = "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."]
94 pub r#id: Option<std::string::String>,
95 #[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."]
96 pub r#extension: Vec<super::super::types::Extension>,
97 #[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)."]
98 pub r#modifier_extension: Vec<super::super::types::Extension>,
99 #[doc = "The human-readable title to display for the package of resources when rendering the implementation guide."]
100 pub r#name: super::super::types::String,
101 #[doc = "Human readable text describing the package."]
102 pub r#description: Option<super::super::types::String>,
103}
104#[allow(clippy::derivable_impls)]
105impl Default for ImplementationGuideDefinitionGrouping {
106 fn default() -> Self {
107 Self {
108 r#id: Default::default(),
109 r#extension: Default::default(),
110 r#modifier_extension: Default::default(),
111 r#name: super::super::types::String {
112 id: Some("$invalid".to_string()),
113 ..Default::default()
114 },
115 r#description: Default::default(),
116 }
117 }
118}
119#[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."]
120#[derive(Debug, Clone, PartialEq)]
121pub struct ImplementationGuideDefinitionResource {
122 #[doc = "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."]
123 pub r#id: Option<std::string::String>,
124 #[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."]
125 pub r#extension: Vec<super::super::types::Extension>,
126 #[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)."]
127 pub r#modifier_extension: Vec<super::super::types::Extension>,
128 #[doc = "Where this resource is found."]
129 pub r#reference: Box<super::super::types::Reference>,
130 #[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."]
131 pub r#fhir_version: Vec<super::super::types::Code>,
132 #[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)."]
133 pub r#name: Option<super::super::types::String>,
134 #[doc = "A description of the reason that a resource has been included in the implementation guide."]
135 pub r#description: Option<super::super::types::String>,
136 #[doc = "If true or a reference, indicates the resource is an example instance. If a reference is present, indicates that the example is an example of the specified profile."]
137 pub r#example: Option<ImplementationGuideDefinitionResourceExample>,
138 #[doc = "Reference to the id of the grouping this resource appears in."]
139 pub r#grouping_id: Option<super::super::types::Id>,
140}
141#[allow(clippy::derivable_impls)]
142impl Default for ImplementationGuideDefinitionResource {
143 fn default() -> Self {
144 Self {
145 r#id: Default::default(),
146 r#extension: Default::default(),
147 r#modifier_extension: Default::default(),
148 r#reference: Box::new(super::super::types::Reference {
149 id: Some("$invalid".to_string()),
150 ..Default::default()
151 }),
152 r#fhir_version: Default::default(),
153 r#name: Default::default(),
154 r#description: Default::default(),
155 r#example: Default::default(),
156 r#grouping_id: Default::default(),
157 }
158 }
159}
160#[doc = "A page / section in the implementation guide. The root page is the implementation guide home page."]
161#[derive(Debug, Clone, PartialEq)]
162pub struct ImplementationGuideDefinitionPage {
163 #[doc = "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."]
164 pub r#id: Option<std::string::String>,
165 #[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."]
166 pub r#extension: Vec<super::super::types::Extension>,
167 #[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)."]
168 pub r#modifier_extension: Vec<super::super::types::Extension>,
169 #[doc = "The source address for the page."]
170 pub r#name: ImplementationGuideDefinitionPageName,
171 #[doc = "A short title used to represent this page in navigational structures such as table of contents, bread crumbs, etc."]
172 pub r#title: super::super::types::String,
173 #[doc = "A code that indicates how the page is generated."]
174 pub r#generation: super::super::types::Code,
175 #[doc = "Nested Pages/Sections under this page."]
176 pub r#page: Vec<ImplementationGuideDefinitionPage>,
177}
178#[allow(clippy::derivable_impls)]
179impl Default for ImplementationGuideDefinitionPage {
180 fn default() -> Self {
181 Self {
182 r#id: Default::default(),
183 r#extension: Default::default(),
184 r#modifier_extension: Default::default(),
185 r#name: Default::default(),
186 r#title: super::super::types::String {
187 id: Some("$invalid".to_string()),
188 ..Default::default()
189 },
190 r#generation: super::super::types::Code {
191 id: Some("$invalid".to_string()),
192 ..Default::default()
193 },
194 r#page: Default::default(),
195 }
196 }
197}
198#[doc = "Defines how IG is built by tools."]
199#[derive(Debug, Clone, PartialEq)]
200pub struct ImplementationGuideDefinitionParameter {
201 #[doc = "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."]
202 pub r#id: Option<std::string::String>,
203 #[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."]
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 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)."]
206 pub r#modifier_extension: Vec<super::super::types::Extension>,
207 #[doc = "apply | path-resource | path-pages | path-tx-cache | expansion-parameter | rule-broken-links | generate-xml | generate-json | generate-turtle | html-template."]
208 pub r#code: super::super::types::Code,
209 #[doc = "Value for named type."]
210 pub r#value: super::super::types::String,
211}
212#[allow(clippy::derivable_impls)]
213impl Default for ImplementationGuideDefinitionParameter {
214 fn default() -> Self {
215 Self {
216 r#id: Default::default(),
217 r#extension: Default::default(),
218 r#modifier_extension: Default::default(),
219 r#code: super::super::types::Code {
220 id: Some("$invalid".to_string()),
221 ..Default::default()
222 },
223 r#value: super::super::types::String {
224 id: Some("$invalid".to_string()),
225 ..Default::default()
226 },
227 }
228 }
229}
230#[doc = "A template for building resources."]
231#[derive(Debug, Clone, PartialEq)]
232pub struct ImplementationGuideDefinitionTemplate {
233 #[doc = "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."]
234 pub r#id: Option<std::string::String>,
235 #[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."]
236 pub r#extension: Vec<super::super::types::Extension>,
237 #[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)."]
238 pub r#modifier_extension: Vec<super::super::types::Extension>,
239 #[doc = "Type of template specified."]
240 pub r#code: super::super::types::Code,
241 #[doc = "The source location for the template."]
242 pub r#source: super::super::types::String,
243 #[doc = "The scope in which the template applies."]
244 pub r#scope: Option<super::super::types::String>,
245}
246#[allow(clippy::derivable_impls)]
247impl Default for ImplementationGuideDefinitionTemplate {
248 fn default() -> Self {
249 Self {
250 r#id: Default::default(),
251 r#extension: Default::default(),
252 r#modifier_extension: Default::default(),
253 r#code: super::super::types::Code {
254 id: Some("$invalid".to_string()),
255 ..Default::default()
256 },
257 r#source: super::super::types::String {
258 id: Some("$invalid".to_string()),
259 ..Default::default()
260 },
261 r#scope: Default::default(),
262 }
263 }
264}
265#[doc = "The information needed by an IG publisher tool to publish the whole implementation guide."]
266#[derive(Debug, Clone, PartialEq)]
267pub struct ImplementationGuideDefinition {
268 #[doc = "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."]
269 pub r#id: Option<std::string::String>,
270 #[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."]
271 pub r#extension: Vec<super::super::types::Extension>,
272 #[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)."]
273 pub r#modifier_extension: Vec<super::super::types::Extension>,
274 #[doc = "A logical group of resources. Logical groups can be used when building pages."]
275 pub r#grouping: Vec<ImplementationGuideDefinitionGrouping>,
276 #[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."]
277 pub r#resource: Vec<ImplementationGuideDefinitionResource>,
278 #[doc = "A page / section in the implementation guide. The root page is the implementation guide home page."]
279 pub r#page: Option<ImplementationGuideDefinitionPage>,
280 #[doc = "Defines how IG is built by tools."]
281 pub r#parameter: Vec<ImplementationGuideDefinitionParameter>,
282 #[doc = "A template for building resources."]
283 pub r#template: Vec<ImplementationGuideDefinitionTemplate>,
284}
285#[allow(clippy::derivable_impls)]
286impl Default for ImplementationGuideDefinition {
287 fn default() -> Self {
288 Self {
289 r#id: Default::default(),
290 r#extension: Default::default(),
291 r#modifier_extension: Default::default(),
292 r#grouping: Default::default(),
293 r#resource: Default::default(),
294 r#page: Default::default(),
295 r#parameter: Default::default(),
296 r#template: Default::default(),
297 }
298 }
299}
300#[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."]
301#[derive(Debug, Clone, PartialEq)]
302pub struct ImplementationGuideManifestResource {
303 #[doc = "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."]
304 pub r#id: Option<std::string::String>,
305 #[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."]
306 pub r#extension: Vec<super::super::types::Extension>,
307 #[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)."]
308 pub r#modifier_extension: Vec<super::super::types::Extension>,
309 #[doc = "Where this resource is found."]
310 pub r#reference: Box<super::super::types::Reference>,
311 #[doc = "If true or a reference, indicates the resource is an example instance. If a reference is present, indicates that the example is an example of the specified profile."]
312 pub r#example: Option<ImplementationGuideManifestResourceExample>,
313 #[doc = "The relative path for primary page for this resource within the IG."]
314 pub r#relative_path: Option<super::super::types::Url>,
315}
316#[allow(clippy::derivable_impls)]
317impl Default for ImplementationGuideManifestResource {
318 fn default() -> Self {
319 Self {
320 r#id: Default::default(),
321 r#extension: Default::default(),
322 r#modifier_extension: Default::default(),
323 r#reference: Box::new(super::super::types::Reference {
324 id: Some("$invalid".to_string()),
325 ..Default::default()
326 }),
327 r#example: Default::default(),
328 r#relative_path: Default::default(),
329 }
330 }
331}
332#[doc = "Information about a page within the IG."]
333#[derive(Debug, Clone, PartialEq)]
334pub struct ImplementationGuideManifestPage {
335 #[doc = "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."]
336 pub r#id: Option<std::string::String>,
337 #[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."]
338 pub r#extension: Vec<super::super::types::Extension>,
339 #[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)."]
340 pub r#modifier_extension: Vec<super::super::types::Extension>,
341 #[doc = "Relative path to the page."]
342 pub r#name: super::super::types::String,
343 #[doc = "Label for the page intended for human display."]
344 pub r#title: Option<super::super::types::String>,
345 #[doc = "The name of an anchor available on the page."]
346 pub r#anchor: Vec<super::super::types::String>,
347}
348#[allow(clippy::derivable_impls)]
349impl Default for ImplementationGuideManifestPage {
350 fn default() -> Self {
351 Self {
352 r#id: Default::default(),
353 r#extension: Default::default(),
354 r#modifier_extension: Default::default(),
355 r#name: super::super::types::String {
356 id: Some("$invalid".to_string()),
357 ..Default::default()
358 },
359 r#title: Default::default(),
360 r#anchor: Default::default(),
361 }
362 }
363}
364#[doc = "Information about an assembled implementation guide, created by the publication tooling."]
365#[derive(Debug, Clone, PartialEq)]
366pub struct ImplementationGuideManifest {
367 #[doc = "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."]
368 pub r#id: Option<std::string::String>,
369 #[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."]
370 pub r#extension: Vec<super::super::types::Extension>,
371 #[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)."]
372 pub r#modifier_extension: Vec<super::super::types::Extension>,
373 #[doc = "A pointer to official web page, PDF or other rendering of the implementation guide."]
374 pub r#rendering: Option<super::super::types::Url>,
375 #[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."]
376 pub r#resource: Vec<ImplementationGuideManifestResource>,
377 #[doc = "Information about a page within the IG."]
378 pub r#page: Vec<ImplementationGuideManifestPage>,
379 #[doc = "Indicates a relative path to an image that exists within the IG."]
380 pub r#image: Vec<super::super::types::String>,
381 #[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."]
382 pub r#other: Vec<super::super::types::String>,
383}
384#[allow(clippy::derivable_impls)]
385impl Default for ImplementationGuideManifest {
386 fn default() -> Self {
387 Self {
388 r#id: Default::default(),
389 r#extension: Default::default(),
390 r#modifier_extension: Default::default(),
391 r#rendering: Default::default(),
392 r#resource: Default::default(),
393 r#page: Default::default(),
394 r#image: Default::default(),
395 r#other: Default::default(),
396 }
397 }
398}
399#[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."]
400#[derive(Debug, Clone, PartialEq)]
401pub struct ImplementationGuide {
402 #[doc = "The logical id of the resource, as used in the URL for the resource. Once assigned, this value never changes."]
403 pub r#id: Option<super::super::types::Id>,
404 #[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."]
405 pub r#meta: Option<Box<super::super::types::Meta>>,
406 #[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."]
407 pub r#implicit_rules: Option<super::super::types::Uri>,
408 #[doc = "The base language in which the resource is written."]
409 pub r#language: Option<super::super::types::Code>,
410 #[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."]
411 pub r#text: Option<Box<super::super::types::Narrative>>,
412 #[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."]
413 pub r#contained: Vec<super::super::Resource>,
414 #[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."]
415 pub r#extension: Vec<super::super::types::Extension>,
416 #[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)."]
417 pub r#modifier_extension: Vec<super::super::types::Extension>,
418 #[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 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."]
419 pub r#url: super::super::types::Uri,
420 #[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."]
421 pub r#version: Option<super::super::types::String>,
422 #[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."]
423 pub r#name: super::super::types::String,
424 #[doc = "A short, descriptive, user-friendly title for the implementation guide."]
425 pub r#title: Option<super::super::types::String>,
426 #[doc = "The status of this implementation guide. Enables tracking the life-cycle of the content."]
427 pub r#status: super::super::types::Code,
428 #[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."]
429 pub r#experimental: Option<super::super::types::Boolean>,
430 #[doc = "The date (and optionally time) when the implementation guide was published. 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."]
431 pub r#date: Option<super::super::types::DateTime>,
432 #[doc = "The name of the organization or individual that published the implementation guide."]
433 pub r#publisher: Option<super::super::types::String>,
434 #[doc = "Contact details to assist a user in finding and communicating with the publisher."]
435 pub r#contact: Vec<super::super::types::ContactDetail>,
436 #[doc = "A free text natural language description of the implementation guide from a consumer's perspective."]
437 pub r#description: Option<super::super::types::Markdown>,
438 #[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."]
439 pub r#use_context: Vec<super::super::types::UsageContext>,
440 #[doc = "A legal or geographic region in which the implementation guide is intended to be used."]
441 pub r#jurisdiction: Vec<super::super::types::CodeableConcept>,
442 #[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."]
443 pub r#copyright: Option<super::super::types::Markdown>,
444 #[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."]
445 pub r#package_id: super::super::types::Id,
446 #[doc = "The license that applies to this Implementation Guide, using an SPDX license code, or 'not-open-source'."]
447 pub r#license: Option<super::super::types::Code>,
448 #[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.3.0 for this version."]
449 pub r#fhir_version: Vec<super::super::types::Code>,
450 #[doc = "Another implementation guide that this implementation depends on. Typically, an implementation guide uses value sets, profiles etc.defined in other implementation guides."]
451 pub r#depends_on: Vec<ImplementationGuideDependsOn>,
452 #[doc = "A set of profiles that all resources covered by this implementation guide must conform to."]
453 pub r#global: Vec<ImplementationGuideGlobal>,
454 #[doc = "The information needed by an IG publisher tool to publish the whole implementation guide."]
455 pub r#definition: Option<ImplementationGuideDefinition>,
456 #[doc = "Information about an assembled implementation guide, created by the publication tooling."]
457 pub r#manifest: Option<ImplementationGuideManifest>,
458}
459#[allow(clippy::derivable_impls)]
460impl Default for ImplementationGuide {
461 fn default() -> Self {
462 Self {
463 r#id: Default::default(),
464 r#meta: Default::default(),
465 r#implicit_rules: Default::default(),
466 r#language: Default::default(),
467 r#text: Default::default(),
468 r#contained: Default::default(),
469 r#extension: Default::default(),
470 r#modifier_extension: Default::default(),
471 r#url: super::super::types::Uri {
472 id: Some("$invalid".to_string()),
473 ..Default::default()
474 },
475 r#version: Default::default(),
476 r#name: super::super::types::String {
477 id: Some("$invalid".to_string()),
478 ..Default::default()
479 },
480 r#title: Default::default(),
481 r#status: super::super::types::Code {
482 id: Some("$invalid".to_string()),
483 ..Default::default()
484 },
485 r#experimental: Default::default(),
486 r#date: Default::default(),
487 r#publisher: Default::default(),
488 r#contact: Default::default(),
489 r#description: Default::default(),
490 r#use_context: Default::default(),
491 r#jurisdiction: Default::default(),
492 r#copyright: Default::default(),
493 r#package_id: super::super::types::Id {
494 id: Some("$invalid".to_string()),
495 ..Default::default()
496 },
497 r#license: Default::default(),
498 r#fhir_version: Default::default(),
499 r#depends_on: Default::default(),
500 r#global: Default::default(),
501 r#definition: Default::default(),
502 r#manifest: Default::default(),
503 }
504 }
505}