fhirbolt_model/generated/r5/resources/
concept_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 ConceptMap is more current."]
3#[derive(Default, Debug, Clone, PartialEq)]
4pub enum ConceptMapVersionAlgorithm {
5    String(super::super::types::String),
6    Coding(Box<super::super::types::Coding>),
7    #[default]
8    Invalid,
9}
10#[doc = "Identifier for the source value set that contains the concepts that are being mapped and provides context for the mappings.  Limits the scope of the map to source codes (ConceptMap.group.element code or valueSet) that are members of this value set."]
11#[derive(Default, Debug, Clone, PartialEq)]
12pub enum ConceptMapSourceScope {
13    Uri(super::super::types::Uri),
14    Canonical(super::super::types::Canonical),
15    #[default]
16    Invalid,
17}
18#[doc = "Identifier for the target value set that provides important context about how the mapping choices are made.  Limits the scope of the map to target codes (ConceptMap.group.element.target code or valueSet) that are members of this value set."]
19#[derive(Default, Debug, Clone, PartialEq)]
20pub enum ConceptMapTargetScope {
21    Uri(super::super::types::Uri),
22    Canonical(super::super::types::Canonical),
23    #[default]
24    Invalid,
25}
26#[doc = "The value of this property. If the type chosen for this element is 'code', then the property SHALL be defined in a ConceptMap.property element."]
27#[derive(Default, Debug, Clone, PartialEq)]
28pub enum ConceptMapGroupElementTargetPropertyValue {
29    Coding(Box<super::super::types::Coding>),
30    String(super::super::types::String),
31    Integer(super::super::types::Integer),
32    Boolean(super::super::types::Boolean),
33    DateTime(super::super::types::DateTime),
34    Decimal(super::super::types::Decimal),
35    Code(super::super::types::Code),
36    #[default]
37    Invalid,
38}
39#[doc = "Data element value that the map depends on / produces."]
40#[derive(Default, Debug, Clone, PartialEq)]
41pub enum ConceptMapGroupElementTargetDependsOnValue {
42    Code(super::super::types::Code),
43    Coding(Box<super::super::types::Coding>),
44    String(super::super::types::String),
45    Boolean(super::super::types::Boolean),
46    Quantity(Box<super::super::types::Quantity>),
47    #[default]
48    Invalid,
49}
50#[doc = "A property defines a slot through which additional information can be provided about a map from source -> target."]
51#[derive(Debug, Clone, PartialEq)]
52pub struct ConceptMapProperty {
53    #[doc = "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."]
54    pub r#id: Option<std::string::String>,
55    #[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."]
56    pub r#extension: Vec<super::super::types::Extension>,
57    #[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)."]
58    pub r#modifier_extension: Vec<super::super::types::Extension>,
59    #[doc = "A code that is used to identify the property. The code is used internally (in ConceptMap.group.element.target.property.code) and also in the $translate operation."]
60    pub r#code: super::super::types::Code,
61    #[doc = "Reference to the formal meaning of the property."]
62    pub r#uri: Option<super::super::types::Uri>,
63    #[doc = "A description of the property - why it is defined, and how its value might be used."]
64    pub r#description: Option<super::super::types::String>,
65    #[doc = "The type of the property value."]
66    pub r#type: super::super::types::Code,
67    #[doc = "The CodeSystem that defines the codes from which values of type ```code``` in property values."]
68    pub r#system: Option<super::super::types::Canonical>,
69}
70#[allow(clippy::derivable_impls)]
71impl Default for ConceptMapProperty {
72    fn default() -> Self {
73        Self {
74            r#id: Default::default(),
75            r#extension: Default::default(),
76            r#modifier_extension: Default::default(),
77            r#code: super::super::types::Code {
78                id: Some("$invalid".to_string()),
79                ..Default::default()
80            },
81            r#uri: Default::default(),
82            r#description: Default::default(),
83            r#type: super::super::types::Code {
84                id: Some("$invalid".to_string()),
85                ..Default::default()
86            },
87            r#system: Default::default(),
88        }
89    }
90}
91#[doc = "An additionalAttribute defines an additional data element found in the source or target data model where the data will come from or be mapped to. Some mappings are based on data in addition to the source data element, where codes in multiple fields are combined to a single field (or vice versa)."]
92#[derive(Debug, Clone, PartialEq)]
93pub struct ConceptMapAdditionalAttribute {
94    #[doc = "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."]
95    pub r#id: Option<std::string::String>,
96    #[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."]
97    pub r#extension: Vec<super::super::types::Extension>,
98    #[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)."]
99    pub r#modifier_extension: Vec<super::super::types::Extension>,
100    #[doc = "A code that is used to identify this additional data attribute. The code is used internally in ConceptMap.group.element.target.dependsOn.attribute and ConceptMap.group.element.target.product.attribute."]
101    pub r#code: super::super::types::Code,
102    #[doc = "Reference to the formal definition of the source/target data element. For elements defined by the FHIR specification, or using a FHIR logical model, the correct format is {canonical-url}#{element-id}."]
103    pub r#uri: Option<super::super::types::Uri>,
104    #[doc = "A description of the additional attribute and/or the data element it refers to - why it is defined, and how the value might be used in mappings, and a discussion of issues associated with the use of the data element."]
105    pub r#description: Option<super::super::types::String>,
106    #[doc = "The type of the source data contained in this concept map for this data element."]
107    pub r#type: super::super::types::Code,
108}
109#[allow(clippy::derivable_impls)]
110impl Default for ConceptMapAdditionalAttribute {
111    fn default() -> Self {
112        Self {
113            r#id: Default::default(),
114            r#extension: Default::default(),
115            r#modifier_extension: Default::default(),
116            r#code: super::super::types::Code {
117                id: Some("$invalid".to_string()),
118                ..Default::default()
119            },
120            r#uri: Default::default(),
121            r#description: Default::default(),
122            r#type: super::super::types::Code {
123                id: Some("$invalid".to_string()),
124                ..Default::default()
125            },
126        }
127    }
128}
129#[doc = "A property value for this source -> target mapping."]
130#[derive(Debug, Clone, PartialEq)]
131pub struct ConceptMapGroupElementTargetProperty {
132    #[doc = "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."]
133    pub r#id: Option<std::string::String>,
134    #[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."]
135    pub r#extension: Vec<super::super::types::Extension>,
136    #[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)."]
137    pub r#modifier_extension: Vec<super::super::types::Extension>,
138    #[doc = "A reference to a mapping property defined in ConceptMap.property."]
139    pub r#code: super::super::types::Code,
140    #[doc = "The value of this property. If the type chosen for this element is 'code', then the property SHALL be defined in a ConceptMap.property element."]
141    pub r#value: ConceptMapGroupElementTargetPropertyValue,
142}
143#[allow(clippy::derivable_impls)]
144impl Default for ConceptMapGroupElementTargetProperty {
145    fn default() -> Self {
146        Self {
147            r#id: Default::default(),
148            r#extension: Default::default(),
149            r#modifier_extension: Default::default(),
150            r#code: super::super::types::Code {
151                id: Some("$invalid".to_string()),
152                ..Default::default()
153            },
154            r#value: Default::default(),
155        }
156    }
157}
158#[doc = "A set of additional dependencies for this mapping to hold. This mapping is only applicable if the specified data attribute can be resolved, and it has the specified value."]
159#[derive(Debug, Clone, PartialEq)]
160pub struct ConceptMapGroupElementTargetDependsOn {
161    #[doc = "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."]
162    pub r#id: Option<std::string::String>,
163    #[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."]
164    pub r#extension: Vec<super::super::types::Extension>,
165    #[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)."]
166    pub r#modifier_extension: Vec<super::super::types::Extension>,
167    #[doc = "A reference to the additional attribute that holds a value the map depends on."]
168    pub r#attribute: super::super::types::Code,
169    #[doc = "Data element value that the map depends on / produces."]
170    pub r#value: Option<ConceptMapGroupElementTargetDependsOnValue>,
171    #[doc = "This mapping applies if the data element value is a code from this value set."]
172    pub r#value_set: Option<super::super::types::Canonical>,
173}
174#[allow(clippy::derivable_impls)]
175impl Default for ConceptMapGroupElementTargetDependsOn {
176    fn default() -> Self {
177        Self {
178            r#id: Default::default(),
179            r#extension: Default::default(),
180            r#modifier_extension: Default::default(),
181            r#attribute: super::super::types::Code {
182                id: Some("$invalid".to_string()),
183                ..Default::default()
184            },
185            r#value: Default::default(),
186            r#value_set: Default::default(),
187        }
188    }
189}
190#[doc = "A concept from the target value set that this concept maps to."]
191#[derive(Debug, Clone, PartialEq)]
192pub struct ConceptMapGroupElementTarget {
193    #[doc = "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."]
194    pub r#id: Option<std::string::String>,
195    #[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."]
196    pub r#extension: Vec<super::super::types::Extension>,
197    #[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)."]
198    pub r#modifier_extension: Vec<super::super::types::Extension>,
199    #[doc = "Identity (code or path) or the element/item that the map refers to."]
200    pub r#code: Option<super::super::types::Code>,
201    #[doc = "The display for the code. The display is only provided to help editors when editing the concept map."]
202    pub r#display: Option<super::super::types::String>,
203    #[doc = "The set of concepts from the ConceptMap.group.target code system which are all being mapped to as part of this mapping rule. The effect of using this data element is the same as having multiple ConceptMap.group.element.target elements with one for each concept in the ConceptMap.group.element.target.valueSet value set."]
204    pub r#value_set: Option<super::super::types::Canonical>,
205    #[doc = "The relationship between the source and target concepts. The relationship is read from source to target (e.g. source-is-narrower-than-target)."]
206    pub r#relationship: super::super::types::Code,
207    #[doc = "A description of status/issues in mapping that conveys additional information not represented in  the structured data."]
208    pub r#comment: Option<super::super::types::String>,
209    #[doc = "A property value for this source -> target mapping."]
210    pub r#property: Vec<ConceptMapGroupElementTargetProperty>,
211    #[doc = "A set of additional dependencies for this mapping to hold. This mapping is only applicable if the specified data attribute can be resolved, and it has the specified value."]
212    pub r#depends_on: Vec<ConceptMapGroupElementTargetDependsOn>,
213    #[doc = "Product is the output of a ConceptMap that provides additional values that go in other attributes / data elemnts of the target data."]
214    pub r#product: Vec<ConceptMapGroupElementTargetDependsOn>,
215}
216#[allow(clippy::derivable_impls)]
217impl Default for ConceptMapGroupElementTarget {
218    fn default() -> Self {
219        Self {
220            r#id: Default::default(),
221            r#extension: Default::default(),
222            r#modifier_extension: Default::default(),
223            r#code: Default::default(),
224            r#display: Default::default(),
225            r#value_set: Default::default(),
226            r#relationship: super::super::types::Code {
227                id: Some("$invalid".to_string()),
228                ..Default::default()
229            },
230            r#comment: Default::default(),
231            r#property: Default::default(),
232            r#depends_on: Default::default(),
233            r#product: Default::default(),
234        }
235    }
236}
237#[doc = "Mappings for an individual concept in the source to one or more concepts in the target."]
238#[derive(Debug, Clone, PartialEq)]
239pub struct ConceptMapGroupElement {
240    #[doc = "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."]
241    pub r#id: Option<std::string::String>,
242    #[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."]
243    pub r#extension: Vec<super::super::types::Extension>,
244    #[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)."]
245    pub r#modifier_extension: Vec<super::super::types::Extension>,
246    #[doc = "Identity (code or path) or the element/item being mapped."]
247    pub r#code: Option<super::super::types::Code>,
248    #[doc = "The display for the code. The display is only provided to help editors when editing the concept map."]
249    pub r#display: Option<super::super::types::String>,
250    #[doc = "The set of concepts from the ConceptMap.group.source code system which are all being mapped to the target as part of this mapping rule."]
251    pub r#value_set: Option<super::super::types::Canonical>,
252    #[doc = "If noMap = true this indicates that no mapping to a target concept exists for this source concept."]
253    pub r#no_map: Option<super::super::types::Boolean>,
254    #[doc = "A concept from the target value set that this concept maps to."]
255    pub r#target: Vec<ConceptMapGroupElementTarget>,
256}
257#[allow(clippy::derivable_impls)]
258impl Default for ConceptMapGroupElement {
259    fn default() -> Self {
260        Self {
261            r#id: Default::default(),
262            r#extension: Default::default(),
263            r#modifier_extension: Default::default(),
264            r#code: Default::default(),
265            r#display: Default::default(),
266            r#value_set: Default::default(),
267            r#no_map: Default::default(),
268            r#target: Default::default(),
269        }
270    }
271}
272#[doc = "What to do when there is no mapping to a target concept from the source concept and ConceptMap.group.element.noMap is not true. This provides the \"default\" to be applied when there is no target concept mapping specified or the expansion of ConceptMap.group.element.target.valueSet is empty."]
273#[derive(Debug, Clone, PartialEq)]
274pub struct ConceptMapGroupUnmapped {
275    #[doc = "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."]
276    pub r#id: Option<std::string::String>,
277    #[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."]
278    pub r#extension: Vec<super::super::types::Extension>,
279    #[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)."]
280    pub r#modifier_extension: Vec<super::super::types::Extension>,
281    #[doc = "Defines which action to take if there is no match for the source concept in the target system designated for the group. One of 3 actions are possible: use the unmapped source code (this is useful when doing a mapping between versions, and only a few codes have changed), use a fixed code (a default code), or alternatively, a reference to a different concept map can be provided (by canonical URL)."]
282    pub r#mode: super::super::types::Code,
283    #[doc = "The fixed code to use when the mode = 'fixed'  - all unmapped codes are mapped to a single fixed code."]
284    pub r#code: Option<super::super::types::Code>,
285    #[doc = "The display for the code. The display is only provided to help editors when editing the concept map."]
286    pub r#display: Option<super::super::types::String>,
287    #[doc = "The set of fixed codes to use when the mode = 'fixed'  - all unmapped codes are mapped to each of the fixed codes."]
288    pub r#value_set: Option<super::super::types::Canonical>,
289    #[doc = "The default relationship value to apply between the source and target concepts when the source code is unmapped and the mode is 'fixed' or 'use-source-code'."]
290    pub r#relationship: Option<super::super::types::Code>,
291    #[doc = "The canonical reference to an additional ConceptMap resource instance to use for mapping if this ConceptMap resource contains no matching mapping for the source concept."]
292    pub r#other_map: Option<super::super::types::Canonical>,
293}
294#[allow(clippy::derivable_impls)]
295impl Default for ConceptMapGroupUnmapped {
296    fn default() -> Self {
297        Self {
298            r#id: Default::default(),
299            r#extension: Default::default(),
300            r#modifier_extension: Default::default(),
301            r#mode: super::super::types::Code {
302                id: Some("$invalid".to_string()),
303                ..Default::default()
304            },
305            r#code: Default::default(),
306            r#display: Default::default(),
307            r#value_set: Default::default(),
308            r#relationship: Default::default(),
309            r#other_map: Default::default(),
310        }
311    }
312}
313#[doc = "A group of mappings that all have the same source and target system."]
314#[derive(Debug, Clone, PartialEq)]
315pub struct ConceptMapGroup {
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 = "An absolute URI that identifies the source system where the concepts to be mapped are defined."]
323    pub r#source: Option<super::super::types::Canonical>,
324    #[doc = "An absolute URI that identifies the target system that the concepts will be mapped to."]
325    pub r#target: Option<super::super::types::Canonical>,
326    #[doc = "Mappings for an individual concept in the source to one or more concepts in the target."]
327    pub r#element: Vec<ConceptMapGroupElement>,
328    #[doc = "What to do when there is no mapping to a target concept from the source concept and ConceptMap.group.element.noMap is not true. This provides the \"default\" to be applied when there is no target concept mapping specified or the expansion of ConceptMap.group.element.target.valueSet is empty."]
329    pub r#unmapped: Option<ConceptMapGroupUnmapped>,
330}
331#[allow(clippy::derivable_impls)]
332impl Default for ConceptMapGroup {
333    fn default() -> Self {
334        Self {
335            r#id: Default::default(),
336            r#extension: Default::default(),
337            r#modifier_extension: Default::default(),
338            r#source: Default::default(),
339            r#target: Default::default(),
340            r#element: Default::default(),
341            r#unmapped: Default::default(),
342        }
343    }
344}
345#[doc = "A statement of relationships from one set of concepts to one or more other concepts - either concepts in code systems, or data element/data element concepts, or classes in class models."]
346#[derive(Debug, Clone, PartialEq)]
347pub struct ConceptMap {
348    #[doc = "The logical id of the resource, as used in the URL for the resource. Once assigned, this value never changes."]
349    pub r#id: Option<super::super::types::Id>,
350    #[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."]
351    pub r#meta: Option<Box<super::super::types::Meta>>,
352    #[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."]
353    pub r#implicit_rules: Option<super::super::types::Uri>,
354    #[doc = "The base language in which the resource is written."]
355    pub r#language: Option<super::super::types::Code>,
356    #[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."]
357    pub r#text: Option<Box<super::super::types::Narrative>>,
358    #[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."]
359    pub r#contained: Vec<super::super::Resource>,
360    #[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."]
361    pub r#extension: Vec<super::super::types::Extension>,
362    #[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)."]
363    pub r#modifier_extension: Vec<super::super::types::Extension>,
364    #[doc = "An absolute URI that is used to identify this concept 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 concept map is (or will be) published. This URL can be the target of a canonical reference. It SHALL remain the same when the concept map is stored on different servers."]
365    pub r#url: Option<super::super::types::Uri>,
366    #[doc = "A formal identifier that is used to identify this concept map when it is represented in other formats, or referenced in a specification, model, design or an instance."]
367    pub r#identifier: Vec<super::super::types::Identifier>,
368    #[doc = "The identifier that is used to identify this version of the concept map when it is referenced in a specification, model, design or instance. This is an arbitrary value managed by the concept 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."]
369    pub r#version: Option<super::super::types::String>,
370    #[doc = "Indicates the mechanism used to compare versions to determine which ConceptMap is more current."]
371    pub r#version_algorithm: Option<ConceptMapVersionAlgorithm>,
372    #[doc = "A natural language name identifying the concept map. This name should be usable as an identifier for the module by machine processing applications such as code generation."]
373    pub r#name: Option<super::super::types::String>,
374    #[doc = "A short, descriptive, user-friendly title for the concept map."]
375    pub r#title: Option<super::super::types::String>,
376    #[doc = "The status of this concept map. Enables tracking the life-cycle of the content."]
377    pub r#status: super::super::types::Code,
378    #[doc = "A Boolean value to indicate that this concept map is authored for testing purposes (or education/evaluation/marketing) and is not intended to be used for genuine usage."]
379    pub r#experimental: Option<super::super::types::Boolean>,
380    #[doc = "The date  (and optionally time) when the concept 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 concept map changes."]
381    pub r#date: Option<super::super::types::DateTime>,
382    #[doc = "The name of the organization or individual responsible for the release and ongoing maintenance of the concept map."]
383    pub r#publisher: Option<super::super::types::String>,
384    #[doc = "Contact details to assist a user in finding and communicating with the publisher."]
385    pub r#contact: Vec<super::super::types::ContactDetail>,
386    #[doc = "A free text natural language description of the concept map from a consumer's perspective."]
387    pub r#description: Option<super::super::types::Markdown>,
388    #[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 concept map instances."]
389    pub r#use_context: Vec<super::super::types::UsageContext>,
390    #[doc = "A legal or geographic region in which the concept map is intended to be used."]
391    pub r#jurisdiction: Vec<super::super::types::CodeableConcept>,
392    #[doc = "Explanation of why this concept map is needed and why it has been designed as it has."]
393    pub r#purpose: Option<super::super::types::Markdown>,
394    #[doc = "A copyright statement relating to the concept map and/or its contents. Copyright statements are generally legal restrictions on the use and publishing of the concept map."]
395    pub r#copyright: Option<super::super::types::Markdown>,
396    #[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')."]
397    pub r#copyright_label: Option<super::super::types::String>,
398    #[doc = "The date on which the resource content was approved by the publisher. Approval happens once when the content is officially approved for usage."]
399    pub r#approval_date: Option<super::super::types::Date>,
400    #[doc = "The date on which the resource content was last reviewed. Review happens periodically after approval but does not change the original approval date."]
401    pub r#last_review_date: Option<super::super::types::Date>,
402    #[doc = "The period during which the ConceptMap content was or is planned to be in active use."]
403    pub r#effective_period: Option<Box<super::super::types::Period>>,
404    #[doc = "Descriptions related to the content of the ConceptMap. Topics provide a high-level categorization as well as keywords for the ConceptMap that can be useful for filtering and searching."]
405    pub r#topic: Vec<super::super::types::CodeableConcept>,
406    #[doc = "An individiual or organization primarily involved in the creation and maintenance of the ConceptMap."]
407    pub r#author: Vec<super::super::types::ContactDetail>,
408    #[doc = "An individual or organization primarily responsible for internal coherence of the ConceptMap."]
409    pub r#editor: Vec<super::super::types::ContactDetail>,
410    #[doc = "An individual or organization asserted by the publisher to be primarily responsible for review of some aspect of the ConceptMap."]
411    pub r#reviewer: Vec<super::super::types::ContactDetail>,
412    #[doc = "An individual or organization asserted by the publisher to be responsible for officially endorsing the ConceptMap for use in some setting."]
413    pub r#endorser: Vec<super::super::types::ContactDetail>,
414    #[doc = "Related artifacts such as additional documentation, justification, dependencies, bibliographic references, and predecessor and successor artifacts."]
415    pub r#related_artifact: Vec<super::super::types::RelatedArtifact>,
416    #[doc = "A property defines a slot through which additional information can be provided about a map from source -> target."]
417    pub r#property: Vec<ConceptMapProperty>,
418    #[doc = "An additionalAttribute defines an additional data element found in the source or target data model where the data will come from or be mapped to. Some mappings are based on data in addition to the source data element, where codes in multiple fields are combined to a single field (or vice versa)."]
419    pub r#additional_attribute: Vec<ConceptMapAdditionalAttribute>,
420    #[doc = "Identifier for the source value set that contains the concepts that are being mapped and provides context for the mappings.  Limits the scope of the map to source codes (ConceptMap.group.element code or valueSet) that are members of this value set."]
421    pub r#source_scope: Option<ConceptMapSourceScope>,
422    #[doc = "Identifier for the target value set that provides important context about how the mapping choices are made.  Limits the scope of the map to target codes (ConceptMap.group.element.target code or valueSet) that are members of this value set."]
423    pub r#target_scope: Option<ConceptMapTargetScope>,
424    #[doc = "A group of mappings that all have the same source and target system."]
425    pub r#group: Vec<ConceptMapGroup>,
426}
427#[allow(clippy::derivable_impls)]
428impl Default for ConceptMap {
429    fn default() -> Self {
430        Self {
431            r#id: Default::default(),
432            r#meta: Default::default(),
433            r#implicit_rules: Default::default(),
434            r#language: Default::default(),
435            r#text: Default::default(),
436            r#contained: Default::default(),
437            r#extension: Default::default(),
438            r#modifier_extension: Default::default(),
439            r#url: Default::default(),
440            r#identifier: Default::default(),
441            r#version: Default::default(),
442            r#version_algorithm: Default::default(),
443            r#name: Default::default(),
444            r#title: Default::default(),
445            r#status: super::super::types::Code {
446                id: Some("$invalid".to_string()),
447                ..Default::default()
448            },
449            r#experimental: Default::default(),
450            r#date: Default::default(),
451            r#publisher: Default::default(),
452            r#contact: Default::default(),
453            r#description: Default::default(),
454            r#use_context: Default::default(),
455            r#jurisdiction: Default::default(),
456            r#purpose: Default::default(),
457            r#copyright: Default::default(),
458            r#copyright_label: Default::default(),
459            r#approval_date: Default::default(),
460            r#last_review_date: Default::default(),
461            r#effective_period: Default::default(),
462            r#topic: Default::default(),
463            r#author: Default::default(),
464            r#editor: Default::default(),
465            r#reviewer: Default::default(),
466            r#endorser: Default::default(),
467            r#related_artifact: Default::default(),
468            r#property: Default::default(),
469            r#additional_attribute: Default::default(),
470            r#source_scope: Default::default(),
471            r#target_scope: Default::default(),
472            r#group: Default::default(),
473        }
474    }
475}