fhirbolt_model/generated/r4b/resources/
structure_map.rs

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