fhirbolt_model/generated/r5/resources/
structure_map.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 StructureMapVersionAlgorithm {
5    String(super::super::types::String),
6    Coding(Box<super::super::types::Coding>),
7    #[default]
8    Invalid,
9}
10#[doc = "Parameter value - variable or literal."]
11#[derive(Default, Debug, Clone, PartialEq)]
12pub enum StructureMapGroupRuleTargetParameterValue {
13    Id(super::super::types::Id),
14    String(super::super::types::String),
15    Boolean(super::super::types::Boolean),
16    Integer(super::super::types::Integer),
17    Decimal(super::super::types::Decimal),
18    Date(super::super::types::Date),
19    Time(super::super::types::Time),
20    DateTime(super::super::types::DateTime),
21    #[default]
22    Invalid,
23}
24#[doc = "A structure definition used by this map. The structure definition may describe instances that are converted, or the instances that are produced."]
25#[derive(Debug, Clone, PartialEq)]
26pub struct StructureMapStructure {
27    #[doc = "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."]
28    pub r#id: Option<std::string::String>,
29    #[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."]
30    pub r#extension: Vec<super::super::types::Extension>,
31    #[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)."]
32    pub r#modifier_extension: Vec<super::super::types::Extension>,
33    #[doc = "The canonical reference to the structure."]
34    pub r#url: super::super::types::Canonical,
35    #[doc = "How the referenced structure is used in this mapping."]
36    pub r#mode: super::super::types::Code,
37    #[doc = "The name used for this type in the map."]
38    pub r#alias: Option<super::super::types::String>,
39    #[doc = "Documentation that describes how the structure is used in the mapping."]
40    pub r#documentation: Option<super::super::types::String>,
41}
42#[allow(clippy::derivable_impls)]
43impl Default for StructureMapStructure {
44    fn default() -> Self {
45        Self {
46            r#id: Default::default(),
47            r#extension: Default::default(),
48            r#modifier_extension: Default::default(),
49            r#url: super::super::types::Canonical {
50                id: Some("$invalid".to_string()),
51                ..Default::default()
52            },
53            r#mode: super::super::types::Code {
54                id: Some("$invalid".to_string()),
55                ..Default::default()
56            },
57            r#alias: Default::default(),
58            r#documentation: Default::default(),
59        }
60    }
61}
62#[doc = "Definition of a constant value used in the map rules."]
63#[derive(Debug, Clone, PartialEq)]
64pub struct StructureMapConst {
65    #[doc = "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."]
66    pub r#id: Option<std::string::String>,
67    #[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."]
68    pub r#extension: Vec<super::super::types::Extension>,
69    #[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)."]
70    pub r#modifier_extension: Vec<super::super::types::Extension>,
71    #[doc = "Other maps used by this map (canonical URLs)."]
72    pub r#name: Option<super::super::types::Id>,
73    #[doc = "A FHIRPath expression that is the value of this variable."]
74    pub r#value: Option<super::super::types::String>,
75}
76#[allow(clippy::derivable_impls)]
77impl Default for StructureMapConst {
78    fn default() -> Self {
79        Self {
80            r#id: Default::default(),
81            r#extension: Default::default(),
82            r#modifier_extension: Default::default(),
83            r#name: Default::default(),
84            r#value: Default::default(),
85        }
86    }
87}
88#[doc = "A name assigned to an instance of data. The instance must be provided when the mapping is invoked."]
89#[derive(Debug, Clone, PartialEq)]
90pub struct StructureMapGroupInput {
91    #[doc = "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."]
92    pub r#id: Option<std::string::String>,
93    #[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."]
94    pub r#extension: Vec<super::super::types::Extension>,
95    #[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)."]
96    pub r#modifier_extension: Vec<super::super::types::Extension>,
97    #[doc = "Name for this instance of data."]
98    pub r#name: super::super::types::Id,
99    #[doc = "Type for this instance of data."]
100    pub r#type: Option<super::super::types::String>,
101    #[doc = "Mode for this instance of data."]
102    pub r#mode: super::super::types::Code,
103    #[doc = "Documentation for this instance of data."]
104    pub r#documentation: Option<super::super::types::String>,
105}
106#[allow(clippy::derivable_impls)]
107impl Default for StructureMapGroupInput {
108    fn default() -> Self {
109        Self {
110            r#id: Default::default(),
111            r#extension: Default::default(),
112            r#modifier_extension: Default::default(),
113            r#name: super::super::types::Id {
114                id: Some("$invalid".to_string()),
115                ..Default::default()
116            },
117            r#type: Default::default(),
118            r#mode: super::super::types::Code {
119                id: Some("$invalid".to_string()),
120                ..Default::default()
121            },
122            r#documentation: Default::default(),
123        }
124    }
125}
126#[doc = "Source inputs to the mapping."]
127#[derive(Debug, Clone, PartialEq)]
128pub struct StructureMapGroupRuleSource {
129    #[doc = "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."]
130    pub r#id: Option<std::string::String>,
131    #[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."]
132    pub r#extension: Vec<super::super::types::Extension>,
133    #[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)."]
134    pub r#modifier_extension: Vec<super::super::types::Extension>,
135    #[doc = "Type or variable this rule applies to."]
136    pub r#context: super::super::types::Id,
137    #[doc = "Specified minimum cardinality for the element. This is optional; if present, it acts an implicit check on the input content."]
138    pub r#min: Option<super::super::types::Integer>,
139    #[doc = "Specified maximum cardinality for the element - a number or a \"*\". This is optional; if present, it acts an implicit check on the input content (* just serves as documentation; it's the default value)."]
140    pub r#max: Option<super::super::types::String>,
141    #[doc = "Specified type for the element. This works as a condition on the mapping - use for polymorphic elements."]
142    pub r#type: Option<super::super::types::String>,
143    #[doc = "A value to use if there is no existing value in the source object."]
144    pub r#default_value: Option<super::super::types::String>,
145    #[doc = "Optional field for this source."]
146    pub r#element: Option<super::super::types::String>,
147    #[doc = "How to handle the list mode for this element."]
148    pub r#list_mode: Option<super::super::types::Code>,
149    #[doc = "Named context for field, if a field is specified."]
150    pub r#variable: Option<super::super::types::Id>,
151    #[doc = "FHIRPath expression  - must be true or the rule does not apply."]
152    pub r#condition: Option<super::super::types::String>,
153    #[doc = "FHIRPath expression  - must be true or the mapping engine throws an error instead of completing."]
154    pub r#check: Option<super::super::types::String>,
155    #[doc = "A FHIRPath expression which specifies a message to put in the transform log when content matching the source rule is found."]
156    pub r#log_message: Option<super::super::types::String>,
157}
158#[allow(clippy::derivable_impls)]
159impl Default for StructureMapGroupRuleSource {
160    fn default() -> Self {
161        Self {
162            r#id: Default::default(),
163            r#extension: Default::default(),
164            r#modifier_extension: Default::default(),
165            r#context: super::super::types::Id {
166                id: Some("$invalid".to_string()),
167                ..Default::default()
168            },
169            r#min: Default::default(),
170            r#max: Default::default(),
171            r#type: Default::default(),
172            r#default_value: Default::default(),
173            r#element: Default::default(),
174            r#list_mode: Default::default(),
175            r#variable: Default::default(),
176            r#condition: Default::default(),
177            r#check: Default::default(),
178            r#log_message: Default::default(),
179        }
180    }
181}
182#[doc = "Parameters to the transform."]
183#[derive(Debug, Clone, PartialEq)]
184pub struct StructureMapGroupRuleTargetParameter {
185    #[doc = "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."]
186    pub r#id: Option<std::string::String>,
187    #[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."]
188    pub r#extension: Vec<super::super::types::Extension>,
189    #[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)."]
190    pub r#modifier_extension: Vec<super::super::types::Extension>,
191    #[doc = "Parameter value - variable or literal."]
192    pub r#value: StructureMapGroupRuleTargetParameterValue,
193}
194#[allow(clippy::derivable_impls)]
195impl Default for StructureMapGroupRuleTargetParameter {
196    fn default() -> Self {
197        Self {
198            r#id: Default::default(),
199            r#extension: Default::default(),
200            r#modifier_extension: Default::default(),
201            r#value: Default::default(),
202        }
203    }
204}
205#[doc = "Content to create because of this mapping rule."]
206#[derive(Debug, Clone, PartialEq)]
207pub struct StructureMapGroupRuleTarget {
208    #[doc = "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."]
209    pub r#id: Option<std::string::String>,
210    #[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."]
211    pub r#extension: Vec<super::super::types::Extension>,
212    #[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)."]
213    pub r#modifier_extension: Vec<super::super::types::Extension>,
214    #[doc = "Variable this rule applies to."]
215    pub r#context: Option<super::super::types::String>,
216    #[doc = "Field to create in the context."]
217    pub r#element: Option<super::super::types::String>,
218    #[doc = "Named context for field, if desired, and a field is specified."]
219    pub r#variable: Option<super::super::types::Id>,
220    #[doc = "If field is a list, how to manage the list."]
221    pub r#list_mode: Vec<super::super::types::Code>,
222    #[doc = "Internal rule reference for shared list items."]
223    pub r#list_rule_id: Option<super::super::types::Id>,
224    #[doc = "How the data is copied / created."]
225    pub r#transform: Option<super::super::types::Code>,
226    #[doc = "Parameters to the transform."]
227    pub r#parameter: Vec<StructureMapGroupRuleTargetParameter>,
228}
229#[allow(clippy::derivable_impls)]
230impl Default for StructureMapGroupRuleTarget {
231    fn default() -> Self {
232        Self {
233            r#id: Default::default(),
234            r#extension: Default::default(),
235            r#modifier_extension: Default::default(),
236            r#context: Default::default(),
237            r#element: Default::default(),
238            r#variable: Default::default(),
239            r#list_mode: Default::default(),
240            r#list_rule_id: Default::default(),
241            r#transform: Default::default(),
242            r#parameter: Default::default(),
243        }
244    }
245}
246#[doc = "Which other rules to apply in the context of this rule."]
247#[derive(Debug, Clone, PartialEq)]
248pub struct StructureMapGroupRuleDependent {
249    #[doc = "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."]
250    pub r#id: Option<std::string::String>,
251    #[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."]
252    pub r#extension: Vec<super::super::types::Extension>,
253    #[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)."]
254    pub r#modifier_extension: Vec<super::super::types::Extension>,
255    #[doc = "Name of a rule or group to apply."]
256    pub r#name: super::super::types::Id,
257    #[doc = "Parameter to pass to the rule or group."]
258    pub r#parameter: Vec<StructureMapGroupRuleTargetParameter>,
259}
260#[allow(clippy::derivable_impls)]
261impl Default for StructureMapGroupRuleDependent {
262    fn default() -> Self {
263        Self {
264            r#id: Default::default(),
265            r#extension: Default::default(),
266            r#modifier_extension: Default::default(),
267            r#name: super::super::types::Id {
268                id: Some("$invalid".to_string()),
269                ..Default::default()
270            },
271            r#parameter: Default::default(),
272        }
273    }
274}
275#[doc = "Transform Rule from source to target."]
276#[derive(Debug, Clone, PartialEq)]
277pub struct StructureMapGroupRule {
278    #[doc = "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."]
279    pub r#id: Option<std::string::String>,
280    #[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."]
281    pub r#extension: Vec<super::super::types::Extension>,
282    #[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)."]
283    pub r#modifier_extension: Vec<super::super::types::Extension>,
284    #[doc = "Name of the rule for internal references."]
285    pub r#name: Option<super::super::types::Id>,
286    #[doc = "Source inputs to the mapping."]
287    pub r#source: Vec<StructureMapGroupRuleSource>,
288    #[doc = "Content to create because of this mapping rule."]
289    pub r#target: Vec<StructureMapGroupRuleTarget>,
290    #[doc = "Rules contained in this rule."]
291    pub r#rule: Vec<StructureMapGroupRule>,
292    #[doc = "Which other rules to apply in the context of this rule."]
293    pub r#dependent: Vec<StructureMapGroupRuleDependent>,
294    #[doc = "Documentation for this instance of data."]
295    pub r#documentation: Option<super::super::types::String>,
296}
297#[allow(clippy::derivable_impls)]
298impl Default for StructureMapGroupRule {
299    fn default() -> Self {
300        Self {
301            r#id: Default::default(),
302            r#extension: Default::default(),
303            r#modifier_extension: Default::default(),
304            r#name: Default::default(),
305            r#source: Default::default(),
306            r#target: Default::default(),
307            r#rule: Default::default(),
308            r#dependent: Default::default(),
309            r#documentation: Default::default(),
310        }
311    }
312}
313#[doc = "Organizes the mapping into managable chunks for human review/ease of maintenance."]
314#[derive(Debug, Clone, PartialEq)]
315pub struct StructureMapGroup {
316    #[doc = "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."]
317    pub r#id: Option<std::string::String>,
318    #[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."]
319    pub r#extension: Vec<super::super::types::Extension>,
320    #[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)."]
321    pub r#modifier_extension: Vec<super::super::types::Extension>,
322    #[doc = "A unique name for the group for the convenience of human readers."]
323    pub r#name: super::super::types::Id,
324    #[doc = "Another group that this group adds rules to."]
325    pub r#extends: Option<super::super::types::Id>,
326    #[doc = "If this is the default rule set to apply for the source type or this combination of types."]
327    pub r#type_mode: Option<super::super::types::Code>,
328    #[doc = "Additional supporting documentation that explains the purpose of the group and the types of mappings within it."]
329    pub r#documentation: Option<super::super::types::String>,
330    #[doc = "A name assigned to an instance of data. The instance must be provided when the mapping is invoked."]
331    pub r#input: Vec<StructureMapGroupInput>,
332    #[doc = "Transform Rule from source to target."]
333    pub r#rule: Vec<StructureMapGroupRule>,
334}
335#[allow(clippy::derivable_impls)]
336impl Default for StructureMapGroup {
337    fn default() -> Self {
338        Self {
339            r#id: Default::default(),
340            r#extension: Default::default(),
341            r#modifier_extension: Default::default(),
342            r#name: super::super::types::Id {
343                id: Some("$invalid".to_string()),
344                ..Default::default()
345            },
346            r#extends: Default::default(),
347            r#type_mode: Default::default(),
348            r#documentation: Default::default(),
349            r#input: Default::default(),
350            r#rule: Default::default(),
351        }
352    }
353}
354#[doc = "A Map of relationships between 2 structures that can be used to transform data."]
355#[derive(Debug, Clone, PartialEq)]
356pub struct StructureMap {
357    #[doc = "The logical id of the resource, as used in the URL for the resource. Once assigned, this value never changes."]
358    pub r#id: Option<super::super::types::Id>,
359    #[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."]
360    pub r#meta: Option<Box<super::super::types::Meta>>,
361    #[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."]
362    pub r#implicit_rules: Option<super::super::types::Uri>,
363    #[doc = "The base language in which the resource is written."]
364    pub r#language: Option<super::super::types::Code>,
365    #[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."]
366    pub r#text: Option<Box<super::super::types::Narrative>>,
367    #[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."]
368    pub r#contained: Vec<super::super::Resource>,
369    #[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."]
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 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)."]
372    pub r#modifier_extension: Vec<super::super::types::Extension>,
373    #[doc = "An absolute URI that is used to identify this structure map 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 structure map is (or will be) published. This URL can be the target of a canonical reference. It SHALL remain the same when the structure map is stored on different servers."]
374    pub r#url: super::super::types::Uri,
375    #[doc = "A formal identifier that is used to identify this structure map when it is represented in other formats, or referenced in a specification, model, design or an instance."]
376    pub r#identifier: Vec<super::super::types::Identifier>,
377    #[doc = "The identifier that is used to identify this version of the structure map when it is referenced in a specification, model, design or instance. This is an arbitrary value managed by the structure map 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."]
378    pub r#version: Option<super::super::types::String>,
379    #[doc = "Indicates the mechanism used to compare versions to determine which is more current."]
380    pub r#version_algorithm: Option<StructureMapVersionAlgorithm>,
381    #[doc = "A natural language name identifying the structure map. This name should be usable as an identifier for the module by machine processing applications such as code generation."]
382    pub r#name: super::super::types::String,
383    #[doc = "A short, descriptive, user-friendly title for the structure map."]
384    pub r#title: Option<super::super::types::String>,
385    #[doc = "The status of this structure map. Enables tracking the life-cycle of the content."]
386    pub r#status: super::super::types::Code,
387    #[doc = "A Boolean value to indicate that this structure map is authored for testing purposes (or education/evaluation/marketing) and is not intended to be used for genuine usage."]
388    pub r#experimental: Option<super::super::types::Boolean>,
389    #[doc = "The date  (and optionally time) when the structure map 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 structure map changes."]
390    pub r#date: Option<super::super::types::DateTime>,
391    #[doc = "The name of the organization or individual responsible for the release and ongoing maintenance of the structure map."]
392    pub r#publisher: Option<super::super::types::String>,
393    #[doc = "Contact details to assist a user in finding and communicating with the publisher."]
394    pub r#contact: Vec<super::super::types::ContactDetail>,
395    #[doc = "A free text natural language description of the structure map from a consumer's perspective."]
396    pub r#description: Option<super::super::types::Markdown>,
397    #[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 structure map instances."]
398    pub r#use_context: Vec<super::super::types::UsageContext>,
399    #[doc = "A legal or geographic region in which the structure map is intended to be used."]
400    pub r#jurisdiction: Vec<super::super::types::CodeableConcept>,
401    #[doc = "Explanation of why this structure map is needed and why it has been designed as it has."]
402    pub r#purpose: Option<super::super::types::Markdown>,
403    #[doc = "A copyright statement relating to the structure map and/or its contents. Copyright statements are generally legal restrictions on the use and publishing of the structure map."]
404    pub r#copyright: Option<super::super::types::Markdown>,
405    #[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')."]
406    pub r#copyright_label: Option<super::super::types::String>,
407    #[doc = "A structure definition used by this map. The structure definition may describe instances that are converted, or the instances that are produced."]
408    pub r#structure: Vec<StructureMapStructure>,
409    #[doc = "Other maps used by this map (canonical URLs)."]
410    pub r#import: Vec<super::super::types::Canonical>,
411    #[doc = "Definition of a constant value used in the map rules."]
412    pub r#const: Vec<StructureMapConst>,
413    #[doc = "Organizes the mapping into managable chunks for human review/ease of maintenance."]
414    pub r#group: Vec<StructureMapGroup>,
415}
416#[allow(clippy::derivable_impls)]
417impl Default for StructureMap {
418    fn default() -> Self {
419        Self {
420            r#id: Default::default(),
421            r#meta: Default::default(),
422            r#implicit_rules: Default::default(),
423            r#language: Default::default(),
424            r#text: Default::default(),
425            r#contained: Default::default(),
426            r#extension: Default::default(),
427            r#modifier_extension: Default::default(),
428            r#url: super::super::types::Uri {
429                id: Some("$invalid".to_string()),
430                ..Default::default()
431            },
432            r#identifier: Default::default(),
433            r#version: Default::default(),
434            r#version_algorithm: Default::default(),
435            r#name: super::super::types::String {
436                id: Some("$invalid".to_string()),
437                ..Default::default()
438            },
439            r#title: Default::default(),
440            r#status: super::super::types::Code {
441                id: Some("$invalid".to_string()),
442                ..Default::default()
443            },
444            r#experimental: Default::default(),
445            r#date: Default::default(),
446            r#publisher: Default::default(),
447            r#contact: Default::default(),
448            r#description: Default::default(),
449            r#use_context: Default::default(),
450            r#jurisdiction: Default::default(),
451            r#purpose: Default::default(),
452            r#copyright: Default::default(),
453            r#copyright_label: Default::default(),
454            r#structure: Default::default(),
455            r#import: Default::default(),
456            r#const: Default::default(),
457            r#group: Default::default(),
458        }
459    }
460}