fhirbolt_model/generated/r4/resources/
operation_definition.rs

1// Generated on 2023-05-17 by fhirbolt-codegen v0.10.0
2#[doc = "Binds to a value set if this parameter is coded (code, Coding, CodeableConcept)."]
3#[derive(Debug, Clone, PartialEq)]
4pub struct OperationDefinitionParameterBinding {
5    #[doc = "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."]
6    pub r#id: Option<std::string::String>,
7    #[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."]
8    pub r#extension: Vec<super::super::types::Extension>,
9    #[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)."]
10    pub r#modifier_extension: Vec<super::super::types::Extension>,
11    #[doc = "Indicates the degree of conformance expectations associated with this binding - that is, the degree to which the provided value set must be adhered to in the instances."]
12    pub r#strength: super::super::types::Code,
13    #[doc = "Points to the value set or external definition (e.g. implicit value set) that identifies the set of codes to be used."]
14    pub r#value_set: super::super::types::Canonical,
15}
16#[allow(clippy::derivable_impls)]
17impl Default for OperationDefinitionParameterBinding {
18    fn default() -> Self {
19        Self {
20            r#id: Default::default(),
21            r#extension: Default::default(),
22            r#modifier_extension: Default::default(),
23            r#strength: super::super::types::Code {
24                id: Some("$invalid".to_string()),
25                ..Default::default()
26            },
27            r#value_set: super::super::types::Canonical {
28                id: Some("$invalid".to_string()),
29                ..Default::default()
30            },
31        }
32    }
33}
34#[doc = "Identifies other resource parameters within the operation invocation that are expected to resolve to this resource."]
35#[derive(Debug, Clone, PartialEq)]
36pub struct OperationDefinitionParameterReferencedFrom {
37    #[doc = "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."]
38    pub r#id: Option<std::string::String>,
39    #[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."]
40    pub r#extension: Vec<super::super::types::Extension>,
41    #[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)."]
42    pub r#modifier_extension: Vec<super::super::types::Extension>,
43    #[doc = "The name of the parameter or dot-separated path of parameter names pointing to the resource parameter that is expected to contain a reference to this resource."]
44    pub r#source: super::super::types::String,
45    #[doc = "The id of the element in the referencing resource that is expected to resolve to this resource."]
46    pub r#source_id: Option<super::super::types::String>,
47}
48#[allow(clippy::derivable_impls)]
49impl Default for OperationDefinitionParameterReferencedFrom {
50    fn default() -> Self {
51        Self {
52            r#id: Default::default(),
53            r#extension: Default::default(),
54            r#modifier_extension: Default::default(),
55            r#source: super::super::types::String {
56                id: Some("$invalid".to_string()),
57                ..Default::default()
58            },
59            r#source_id: Default::default(),
60        }
61    }
62}
63#[doc = "The parameters for the operation/query."]
64#[derive(Debug, Clone, PartialEq)]
65pub struct OperationDefinitionParameter {
66    #[doc = "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."]
67    pub r#id: Option<std::string::String>,
68    #[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."]
69    pub r#extension: Vec<super::super::types::Extension>,
70    #[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)."]
71    pub r#modifier_extension: Vec<super::super::types::Extension>,
72    #[doc = "The name of used to identify the parameter."]
73    pub r#name: super::super::types::Code,
74    #[doc = "Whether this is an input or an output parameter."]
75    pub r#use: super::super::types::Code,
76    #[doc = "The minimum number of times this parameter SHALL appear in the request or response."]
77    pub r#min: super::super::types::Integer,
78    #[doc = "The maximum number of times this element is permitted to appear in the request or response."]
79    pub r#max: super::super::types::String,
80    #[doc = "Describes the meaning or use of this parameter."]
81    pub r#documentation: Option<super::super::types::String>,
82    #[doc = "The type for this parameter."]
83    pub r#type: Option<super::super::types::Code>,
84    #[doc = "Used when the type is \"Reference\" or \"canonical\", and identifies a profile structure or implementation Guide that applies to the target of the reference this parameter refers to. If any profiles are specified, then the content must conform to at least one of them. The URL can be a local reference - to a contained StructureDefinition, or a reference to another StructureDefinition or Implementation Guide by a canonical URL. When an implementation guide is specified, the target resource SHALL conform to at least one profile defined in the implementation guide."]
85    pub r#target_profile: Vec<super::super::types::Canonical>,
86    #[doc = "How the parameter is understood as a search parameter. This is only used if the parameter type is 'string'."]
87    pub r#search_type: Option<super::super::types::Code>,
88    #[doc = "Binds to a value set if this parameter is coded (code, Coding, CodeableConcept)."]
89    pub r#binding: Option<OperationDefinitionParameterBinding>,
90    #[doc = "Identifies other resource parameters within the operation invocation that are expected to resolve to this resource."]
91    pub r#referenced_from: Vec<OperationDefinitionParameterReferencedFrom>,
92    #[doc = "The parts of a nested Parameter."]
93    pub r#part: Vec<OperationDefinitionParameter>,
94}
95#[allow(clippy::derivable_impls)]
96impl Default for OperationDefinitionParameter {
97    fn default() -> Self {
98        Self {
99            r#id: Default::default(),
100            r#extension: Default::default(),
101            r#modifier_extension: Default::default(),
102            r#name: super::super::types::Code {
103                id: Some("$invalid".to_string()),
104                ..Default::default()
105            },
106            r#use: super::super::types::Code {
107                id: Some("$invalid".to_string()),
108                ..Default::default()
109            },
110            r#min: super::super::types::Integer {
111                id: Some("$invalid".to_string()),
112                ..Default::default()
113            },
114            r#max: super::super::types::String {
115                id: Some("$invalid".to_string()),
116                ..Default::default()
117            },
118            r#documentation: Default::default(),
119            r#type: Default::default(),
120            r#target_profile: Default::default(),
121            r#search_type: Default::default(),
122            r#binding: Default::default(),
123            r#referenced_from: Default::default(),
124            r#part: Default::default(),
125        }
126    }
127}
128#[doc = "Defines an appropriate combination of parameters to use when invoking this operation, to help code generators when generating overloaded parameter sets for this operation."]
129#[derive(Debug, Clone, PartialEq)]
130pub struct OperationDefinitionOverload {
131    #[doc = "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."]
132    pub r#id: Option<std::string::String>,
133    #[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."]
134    pub r#extension: Vec<super::super::types::Extension>,
135    #[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)."]
136    pub r#modifier_extension: Vec<super::super::types::Extension>,
137    #[doc = "Name of parameter to include in overload."]
138    pub r#parameter_name: Vec<super::super::types::String>,
139    #[doc = "Comments to go on overload."]
140    pub r#comment: Option<super::super::types::String>,
141}
142#[allow(clippy::derivable_impls)]
143impl Default for OperationDefinitionOverload {
144    fn default() -> Self {
145        Self {
146            r#id: Default::default(),
147            r#extension: Default::default(),
148            r#modifier_extension: Default::default(),
149            r#parameter_name: Default::default(),
150            r#comment: Default::default(),
151        }
152    }
153}
154#[doc = "A formal computable definition of an operation (on the RESTful interface) or a named query (using the search interaction)."]
155#[derive(Debug, Clone, PartialEq)]
156pub struct OperationDefinition {
157    #[doc = "The logical id of the resource, as used in the URL for the resource. Once assigned, this value never changes."]
158    pub r#id: Option<super::super::types::Id>,
159    #[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."]
160    pub r#meta: Option<Box<super::super::types::Meta>>,
161    #[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."]
162    pub r#implicit_rules: Option<super::super::types::Uri>,
163    #[doc = "The base language in which the resource is written."]
164    pub r#language: Option<super::super::types::Code>,
165    #[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."]
166    pub r#text: Option<Box<super::super::types::Narrative>>,
167    #[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."]
168    pub r#contained: Vec<super::super::Resource>,
169    #[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."]
170    pub r#extension: Vec<super::super::types::Extension>,
171    #[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)."]
172    pub r#modifier_extension: Vec<super::super::types::Extension>,
173    #[doc = "An absolute URI that is used to identify this operation definition 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 operation definition is (or will be) published. This URL can be the target of a canonical reference. It SHALL remain the same when the operation definition is stored on different servers."]
174    pub r#url: Option<super::super::types::Uri>,
175    #[doc = "The identifier that is used to identify this version of the operation definition when it is referenced in a specification, model, design or instance. This is an arbitrary value managed by the operation definition 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."]
176    pub r#version: Option<super::super::types::String>,
177    #[doc = "A natural language name identifying the operation definition. This name should be usable as an identifier for the module by machine processing applications such as code generation."]
178    pub r#name: super::super::types::String,
179    #[doc = "A short, descriptive, user-friendly title for the operation definition."]
180    pub r#title: Option<super::super::types::String>,
181    #[doc = "The status of this operation definition. Enables tracking the life-cycle of the content."]
182    pub r#status: super::super::types::Code,
183    #[doc = "Whether this is an operation or a named query."]
184    pub r#kind: super::super::types::Code,
185    #[doc = "A Boolean value to indicate that this operation definition is authored for testing purposes (or education/evaluation/marketing) and is not intended to be used for genuine usage."]
186    pub r#experimental: Option<super::super::types::Boolean>,
187    #[doc = "The date  (and optionally time) when the operation definition 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 operation definition changes."]
188    pub r#date: Option<super::super::types::DateTime>,
189    #[doc = "The name of the organization or individual that published the operation definition."]
190    pub r#publisher: Option<super::super::types::String>,
191    #[doc = "Contact details to assist a user in finding and communicating with the publisher."]
192    pub r#contact: Vec<super::super::types::ContactDetail>,
193    #[doc = "A free text natural language description of the operation definition from a consumer's perspective."]
194    pub r#description: Option<super::super::types::Markdown>,
195    #[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 operation definition instances."]
196    pub r#use_context: Vec<super::super::types::UsageContext>,
197    #[doc = "A legal or geographic region in which the operation definition is intended to be used."]
198    pub r#jurisdiction: Vec<super::super::types::CodeableConcept>,
199    #[doc = "Explanation of why this operation definition is needed and why it has been designed as it has."]
200    pub r#purpose: Option<super::super::types::Markdown>,
201    #[doc = "Whether the operation affects state. Side effects such as producing audit trail entries do not count as 'affecting  state'."]
202    pub r#affects_state: Option<super::super::types::Boolean>,
203    #[doc = "The name used to invoke the operation."]
204    pub r#code: super::super::types::Code,
205    #[doc = "Additional information about how to use this operation or named query."]
206    pub r#comment: Option<super::super::types::Markdown>,
207    #[doc = "Indicates that this operation definition is a constraining profile on the base."]
208    pub r#base: Option<super::super::types::Canonical>,
209    #[doc = "The types on which this operation can be executed."]
210    pub r#resource: Vec<super::super::types::Code>,
211    #[doc = "Indicates whether this operation or named query can be invoked at the system level (e.g. without needing to choose a resource type for the context)."]
212    pub r#system: super::super::types::Boolean,
213    #[doc = "Indicates whether this operation or named query can be invoked at the resource type level for any given resource type level (e.g. without needing to choose a specific resource id for the context)."]
214    pub r#type: super::super::types::Boolean,
215    #[doc = "Indicates whether this operation can be invoked on a particular instance of one of the given types."]
216    pub r#instance: super::super::types::Boolean,
217    #[doc = "Additional validation information for the in parameters - a single profile that covers all the parameters. The profile is a constraint on the parameters resource as a whole."]
218    pub r#input_profile: Option<super::super::types::Canonical>,
219    #[doc = "Additional validation information for the out parameters - a single profile that covers all the parameters. The profile is a constraint on the parameters resource."]
220    pub r#output_profile: Option<super::super::types::Canonical>,
221    #[doc = "The parameters for the operation/query."]
222    pub r#parameter: Vec<OperationDefinitionParameter>,
223    #[doc = "Defines an appropriate combination of parameters to use when invoking this operation, to help code generators when generating overloaded parameter sets for this operation."]
224    pub r#overload: Vec<OperationDefinitionOverload>,
225}
226#[allow(clippy::derivable_impls)]
227impl Default for OperationDefinition {
228    fn default() -> Self {
229        Self {
230            r#id: Default::default(),
231            r#meta: Default::default(),
232            r#implicit_rules: Default::default(),
233            r#language: Default::default(),
234            r#text: Default::default(),
235            r#contained: Default::default(),
236            r#extension: Default::default(),
237            r#modifier_extension: Default::default(),
238            r#url: Default::default(),
239            r#version: Default::default(),
240            r#name: super::super::types::String {
241                id: Some("$invalid".to_string()),
242                ..Default::default()
243            },
244            r#title: Default::default(),
245            r#status: super::super::types::Code {
246                id: Some("$invalid".to_string()),
247                ..Default::default()
248            },
249            r#kind: super::super::types::Code {
250                id: Some("$invalid".to_string()),
251                ..Default::default()
252            },
253            r#experimental: Default::default(),
254            r#date: Default::default(),
255            r#publisher: Default::default(),
256            r#contact: Default::default(),
257            r#description: Default::default(),
258            r#use_context: Default::default(),
259            r#jurisdiction: Default::default(),
260            r#purpose: Default::default(),
261            r#affects_state: Default::default(),
262            r#code: super::super::types::Code {
263                id: Some("$invalid".to_string()),
264                ..Default::default()
265            },
266            r#comment: Default::default(),
267            r#base: Default::default(),
268            r#resource: Default::default(),
269            r#system: super::super::types::Boolean {
270                id: Some("$invalid".to_string()),
271                ..Default::default()
272            },
273            r#type: super::super::types::Boolean {
274                id: Some("$invalid".to_string()),
275                ..Default::default()
276            },
277            r#instance: super::super::types::Boolean {
278                id: Some("$invalid".to_string()),
279                ..Default::default()
280            },
281            r#input_profile: Default::default(),
282            r#output_profile: Default::default(),
283            r#parameter: Default::default(),
284            r#overload: Default::default(),
285        }
286    }
287}