fhirbolt_model/generated/r5/resources/
capability_statement.rs

1// Generated on 2023-05-17 by fhirbolt-codegen v0.10.0
2#[doc = "Indicates the mechanism used to compare versions to determine which is more current."]
3#[derive(Default, Debug, Clone, PartialEq)]
4pub enum CapabilityStatementVersionAlgorithm {
5    String(super::super::types::String),
6    Coding(Box<super::super::types::Coding>),
7    #[default]
8    Invalid,
9}
10#[doc = "Software that is covered by this capability statement.  It is used when the capability statement describes the capabilities of a particular software version, independent of an installation."]
11#[derive(Debug, Clone, PartialEq)]
12pub struct CapabilityStatementSoftware {
13    #[doc = "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."]
14    pub r#id: Option<std::string::String>,
15    #[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."]
16    pub r#extension: Vec<super::super::types::Extension>,
17    #[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)."]
18    pub r#modifier_extension: Vec<super::super::types::Extension>,
19    #[doc = "Name the software is known by."]
20    pub r#name: super::super::types::String,
21    #[doc = "The version identifier for the software covered by this statement."]
22    pub r#version: Option<super::super::types::String>,
23    #[doc = "Date this version of the software was released."]
24    pub r#release_date: Option<super::super::types::DateTime>,
25}
26#[allow(clippy::derivable_impls)]
27impl Default for CapabilityStatementSoftware {
28    fn default() -> Self {
29        Self {
30            r#id: Default::default(),
31            r#extension: Default::default(),
32            r#modifier_extension: Default::default(),
33            r#name: super::super::types::String {
34                id: Some("$invalid".to_string()),
35                ..Default::default()
36            },
37            r#version: Default::default(),
38            r#release_date: Default::default(),
39        }
40    }
41}
42#[doc = "Identifies a specific implementation instance that is described by the capability statement - i.e. a particular installation, rather than the capabilities of a software program."]
43#[derive(Debug, Clone, PartialEq)]
44pub struct CapabilityStatementImplementation {
45    #[doc = "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."]
46    pub r#id: Option<std::string::String>,
47    #[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."]
48    pub r#extension: Vec<super::super::types::Extension>,
49    #[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)."]
50    pub r#modifier_extension: Vec<super::super::types::Extension>,
51    #[doc = "Information about the specific installation that this capability statement relates to."]
52    pub r#description: super::super::types::Markdown,
53    #[doc = "An absolute base URL for the implementation.  This forms the base for REST interfaces as well as the mailbox and document interfaces."]
54    pub r#url: Option<super::super::types::Url>,
55    #[doc = "The organization responsible for the management of the instance and oversight of the data on the server at the specified URL."]
56    pub r#custodian: Option<Box<super::super::types::Reference>>,
57}
58#[allow(clippy::derivable_impls)]
59impl Default for CapabilityStatementImplementation {
60    fn default() -> Self {
61        Self {
62            r#id: Default::default(),
63            r#extension: Default::default(),
64            r#modifier_extension: Default::default(),
65            r#description: super::super::types::Markdown {
66                id: Some("$invalid".to_string()),
67                ..Default::default()
68            },
69            r#url: Default::default(),
70            r#custodian: Default::default(),
71        }
72    }
73}
74#[doc = "Information about security implementation from an interface perspective - what a client needs to know."]
75#[derive(Debug, Clone, PartialEq)]
76pub struct CapabilityStatementRestSecurity {
77    #[doc = "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."]
78    pub r#id: Option<std::string::String>,
79    #[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."]
80    pub r#extension: Vec<super::super::types::Extension>,
81    #[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)."]
82    pub r#modifier_extension: Vec<super::super::types::Extension>,
83    #[doc = "Server adds CORS headers when responding to requests - this enables Javascript applications to use the server."]
84    pub r#cors: Option<super::super::types::Boolean>,
85    #[doc = "Types of security services that are supported/required by the system."]
86    pub r#service: Vec<super::super::types::CodeableConcept>,
87    #[doc = "General description of how security works."]
88    pub r#description: Option<super::super::types::Markdown>,
89}
90#[allow(clippy::derivable_impls)]
91impl Default for CapabilityStatementRestSecurity {
92    fn default() -> Self {
93        Self {
94            r#id: Default::default(),
95            r#extension: Default::default(),
96            r#modifier_extension: Default::default(),
97            r#cors: Default::default(),
98            r#service: Default::default(),
99            r#description: Default::default(),
100        }
101    }
102}
103#[doc = "Identifies a restful operation supported by the solution."]
104#[derive(Debug, Clone, PartialEq)]
105pub struct CapabilityStatementRestResourceInteraction {
106    #[doc = "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."]
107    pub r#id: Option<std::string::String>,
108    #[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."]
109    pub r#extension: Vec<super::super::types::Extension>,
110    #[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)."]
111    pub r#modifier_extension: Vec<super::super::types::Extension>,
112    #[doc = "Coded identifier of the operation, supported by the system resource."]
113    pub r#code: super::super::types::Code,
114    #[doc = "Guidance specific to the implementation of this operation, such as 'delete is a logical delete' or 'updates are only allowed with version id' or 'creates permitted from pre-authorized certificates only'."]
115    pub r#documentation: Option<super::super::types::Markdown>,
116}
117#[allow(clippy::derivable_impls)]
118impl Default for CapabilityStatementRestResourceInteraction {
119    fn default() -> Self {
120        Self {
121            r#id: Default::default(),
122            r#extension: Default::default(),
123            r#modifier_extension: Default::default(),
124            r#code: super::super::types::Code {
125                id: Some("$invalid".to_string()),
126                ..Default::default()
127            },
128            r#documentation: Default::default(),
129        }
130    }
131}
132#[doc = "Search parameters for implementations to support and/or make use of - either references to ones defined in the specification, or additional ones defined for/by the implementation."]
133#[derive(Debug, Clone, PartialEq)]
134pub struct CapabilityStatementRestResourceSearchParam {
135    #[doc = "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."]
136    pub r#id: Option<std::string::String>,
137    #[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."]
138    pub r#extension: Vec<super::super::types::Extension>,
139    #[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)."]
140    pub r#modifier_extension: Vec<super::super::types::Extension>,
141    #[doc = "The label used for the search parameter in this particular system's API - i.e. the 'name' portion of the name-value pair that will appear as part of the search URL.  This SHOULD be the same as the SearchParameter.code of the defining SearchParameter.  However, it can sometimes differ if necessary to disambiguate when a server supports multiple SearchParameters that happen to share the same code."]
142    pub r#name: super::super::types::String,
143    #[doc = "An absolute URI that is a formal reference to where this parameter was first defined, so that a client can be confident of the meaning of the search parameter (a reference to [SearchParameter.url](searchparameter-definitions.html#SearchParameter.url)). This element SHALL be populated if the search parameter refers to a SearchParameter defined by the FHIR core specification or externally defined IGs."]
144    pub r#definition: Option<super::super::types::Canonical>,
145    #[doc = "The type of value a search parameter refers to, and how the content is interpreted."]
146    pub r#type: super::super::types::Code,
147    #[doc = "This allows documentation of any distinct behaviors about how the search parameter is used.  For example, text matching algorithms."]
148    pub r#documentation: Option<super::super::types::Markdown>,
149}
150#[allow(clippy::derivable_impls)]
151impl Default for CapabilityStatementRestResourceSearchParam {
152    fn default() -> Self {
153        Self {
154            r#id: Default::default(),
155            r#extension: Default::default(),
156            r#modifier_extension: Default::default(),
157            r#name: super::super::types::String {
158                id: Some("$invalid".to_string()),
159                ..Default::default()
160            },
161            r#definition: Default::default(),
162            r#type: super::super::types::Code {
163                id: Some("$invalid".to_string()),
164                ..Default::default()
165            },
166            r#documentation: Default::default(),
167        }
168    }
169}
170#[doc = "Definition of an operation or a named query together with its parameters and their meaning and type. Consult the definition of the operation for details about how to invoke the operation, and the parameters."]
171#[derive(Debug, Clone, PartialEq)]
172pub struct CapabilityStatementRestResourceOperation {
173    #[doc = "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."]
174    pub r#id: Option<std::string::String>,
175    #[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."]
176    pub r#extension: Vec<super::super::types::Extension>,
177    #[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)."]
178    pub r#modifier_extension: Vec<super::super::types::Extension>,
179    #[doc = "The name of the operation or query. For an operation, this name is prefixed with $ and used in the URL. For a query, this is the name used in the _query parameter when the query is called. This SHOULD be the same as the OperationDefinition.code of the defining OperationDefinition.  However, it can sometimes differ if necessary to disambiguate when a server supports multiple OperationDefinition that happen to share the same code."]
180    pub r#name: super::super::types::String,
181    #[doc = "Where the formal definition can be found. If a server references the base definition of an Operation (i.e. from the specification itself such as ```<http://hl7.org/fhir/OperationDefinition/ValueSet>-expand```), that means it supports the full capabilities of the operation - e.g. both GET and POST invocation.  If it only supports a subset, it must define its own custom [OperationDefinition](operationdefinition.html#) with a 'base' of the original OperationDefinition.  The custom definition would describe the specific subset of functionality supported."]
182    pub r#definition: super::super::types::Canonical,
183    #[doc = "Documentation that describes anything special about the operation behavior, possibly detailing different behavior for system, type and instance-level invocation of the operation."]
184    pub r#documentation: Option<super::super::types::Markdown>,
185}
186#[allow(clippy::derivable_impls)]
187impl Default for CapabilityStatementRestResourceOperation {
188    fn default() -> Self {
189        Self {
190            r#id: Default::default(),
191            r#extension: Default::default(),
192            r#modifier_extension: Default::default(),
193            r#name: super::super::types::String {
194                id: Some("$invalid".to_string()),
195                ..Default::default()
196            },
197            r#definition: super::super::types::Canonical {
198                id: Some("$invalid".to_string()),
199                ..Default::default()
200            },
201            r#documentation: Default::default(),
202        }
203    }
204}
205#[doc = "A specification of the restful capabilities of the solution for a specific resource type."]
206#[derive(Debug, Clone, PartialEq)]
207pub struct CapabilityStatementRestResource {
208    #[doc = "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."]
209    pub r#id: Option<std::string::String>,
210    #[doc = "May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and managable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension."]
211    pub r#extension: Vec<super::super::types::Extension>,
212    #[doc = "May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and managable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself)."]
213    pub r#modifier_extension: Vec<super::super::types::Extension>,
214    #[doc = "A type of resource exposed via the restful interface."]
215    pub r#type: super::super::types::Code,
216    #[doc = "A system-wide profile that is applied across *all* instances of the resource supported by the system. For example, if declared on Observation, this profile is the \"superset\" of capabilities for laboratory *and* vitals *and* other domains. See further discussion in [Using Profiles](profiling.html#profile-uses)."]
217    pub r#profile: Option<super::super::types::Canonical>,
218    #[doc = "A list of profiles representing different use cases the system hosts/produces. A supported profile is a statement about the functionality of the data and services provided by the server (or the client) for supported use cases. For example, a system can define and declare multiple Observation profiles for laboratory observations, vital sign observations, etc. By declaring supported profiles, systems provide a way to determine whether individual resources are conformant. See further discussion in [Using Profiles](profiling.html#profile-uses)."]
219    pub r#supported_profile: Vec<super::super::types::Canonical>,
220    #[doc = "Additional information about the resource type used by the system."]
221    pub r#documentation: Option<super::super::types::Markdown>,
222    #[doc = "Identifies a restful operation supported by the solution."]
223    pub r#interaction: Vec<CapabilityStatementRestResourceInteraction>,
224    #[doc = "This field is set to no-version to specify that the system does not support (server) or use (client) versioning for this resource type. If this has some other value, the server must at least correctly track and populate the versionId meta-property on resources. If the value is 'versioned-update', then the server supports all the versioning features, including using e-tags for version integrity in the API."]
225    pub r#versioning: Option<super::super::types::Code>,
226    #[doc = "A flag for whether the server is able to return past versions as part of the vRead operation."]
227    pub r#read_history: Option<super::super::types::Boolean>,
228    #[doc = "A flag to indicate that the server allows or needs to allow the client to create new identities on the server (that is, the client PUTs to a location where there is no existing resource). Allowing this operation means that the server allows the client to create new identities on the server."]
229    pub r#update_create: Option<super::super::types::Boolean>,
230    #[doc = "A flag that indicates that the server supports conditional create."]
231    pub r#conditional_create: Option<super::super::types::Boolean>,
232    #[doc = "A code that indicates how the server supports conditional read."]
233    pub r#conditional_read: Option<super::super::types::Code>,
234    #[doc = "A flag that indicates that the server supports conditional update."]
235    pub r#conditional_update: Option<super::super::types::Boolean>,
236    #[doc = "A flag that indicates that the server supports conditional patch."]
237    pub r#conditional_patch: Option<super::super::types::Boolean>,
238    #[doc = "A code that indicates how the server supports conditional delete."]
239    pub r#conditional_delete: Option<super::super::types::Code>,
240    #[doc = "A set of flags that defines how references are supported."]
241    pub r#reference_policy: Vec<super::super::types::Code>,
242    #[doc = "A list of _include values supported by the server."]
243    pub r#search_include: Vec<super::super::types::String>,
244    #[doc = "A list of _revinclude (reverse include) values supported by the server."]
245    pub r#search_rev_include: Vec<super::super::types::String>,
246    #[doc = "Search parameters for implementations to support and/or make use of - either references to ones defined in the specification, or additional ones defined for/by the implementation."]
247    pub r#search_param: Vec<CapabilityStatementRestResourceSearchParam>,
248    #[doc = "Definition of an operation or a named query together with its parameters and their meaning and type. Consult the definition of the operation for details about how to invoke the operation, and the parameters."]
249    pub r#operation: Vec<CapabilityStatementRestResourceOperation>,
250}
251#[allow(clippy::derivable_impls)]
252impl Default for CapabilityStatementRestResource {
253    fn default() -> Self {
254        Self {
255            r#id: Default::default(),
256            r#extension: Default::default(),
257            r#modifier_extension: Default::default(),
258            r#type: super::super::types::Code {
259                id: Some("$invalid".to_string()),
260                ..Default::default()
261            },
262            r#profile: Default::default(),
263            r#supported_profile: Default::default(),
264            r#documentation: Default::default(),
265            r#interaction: Default::default(),
266            r#versioning: Default::default(),
267            r#read_history: Default::default(),
268            r#update_create: Default::default(),
269            r#conditional_create: Default::default(),
270            r#conditional_read: Default::default(),
271            r#conditional_update: Default::default(),
272            r#conditional_patch: Default::default(),
273            r#conditional_delete: Default::default(),
274            r#reference_policy: Default::default(),
275            r#search_include: Default::default(),
276            r#search_rev_include: Default::default(),
277            r#search_param: Default::default(),
278            r#operation: Default::default(),
279        }
280    }
281}
282#[doc = "A specification of restful operations supported by the system."]
283#[derive(Debug, Clone, PartialEq)]
284pub struct CapabilityStatementRestInteraction {
285    #[doc = "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."]
286    pub r#id: Option<std::string::String>,
287    #[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."]
288    pub r#extension: Vec<super::super::types::Extension>,
289    #[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)."]
290    pub r#modifier_extension: Vec<super::super::types::Extension>,
291    #[doc = "A coded identifier of the operation, supported by the system."]
292    pub r#code: super::super::types::Code,
293    #[doc = "Guidance specific to the implementation of this operation, such as limitations on the kind of transactions allowed, or information about system wide search is implemented."]
294    pub r#documentation: Option<super::super::types::Markdown>,
295}
296#[allow(clippy::derivable_impls)]
297impl Default for CapabilityStatementRestInteraction {
298    fn default() -> Self {
299        Self {
300            r#id: Default::default(),
301            r#extension: Default::default(),
302            r#modifier_extension: Default::default(),
303            r#code: super::super::types::Code {
304                id: Some("$invalid".to_string()),
305                ..Default::default()
306            },
307            r#documentation: Default::default(),
308        }
309    }
310}
311#[doc = "A definition of the restful capabilities of the solution, if any."]
312#[derive(Debug, Clone, PartialEq)]
313pub struct CapabilityStatementRest {
314    #[doc = "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."]
315    pub r#id: Option<std::string::String>,
316    #[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."]
317    pub r#extension: Vec<super::super::types::Extension>,
318    #[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)."]
319    pub r#modifier_extension: Vec<super::super::types::Extension>,
320    #[doc = "Identifies whether this portion of the statement is describing the ability to initiate or receive restful operations."]
321    pub r#mode: super::super::types::Code,
322    #[doc = "Information about the system's restful capabilities that apply across all applications, such as security."]
323    pub r#documentation: Option<super::super::types::Markdown>,
324    #[doc = "Information about security implementation from an interface perspective - what a client needs to know."]
325    pub r#security: Option<CapabilityStatementRestSecurity>,
326    #[doc = "A specification of the restful capabilities of the solution for a specific resource type."]
327    pub r#resource: Vec<CapabilityStatementRestResource>,
328    #[doc = "A specification of restful operations supported by the system."]
329    pub r#interaction: Vec<CapabilityStatementRestInteraction>,
330    #[doc = "Search parameters that are supported for searching all resources for implementations to support and/or make use of - either references to ones defined in the specification, or additional ones defined for/by the implementation. This is only for searches executed against the system-level endpoint."]
331    pub r#search_param: Vec<CapabilityStatementRestResourceSearchParam>,
332    #[doc = "Definition of an operation or a named query together with its parameters and their meaning and type."]
333    pub r#operation: Vec<CapabilityStatementRestResourceOperation>,
334    #[doc = "An absolute URI which is a reference to the definition of a compartment that the system supports. The reference is to a CompartmentDefinition resource by its canonical URL ."]
335    pub r#compartment: Vec<super::super::types::Canonical>,
336}
337#[allow(clippy::derivable_impls)]
338impl Default for CapabilityStatementRest {
339    fn default() -> Self {
340        Self {
341            r#id: Default::default(),
342            r#extension: Default::default(),
343            r#modifier_extension: Default::default(),
344            r#mode: super::super::types::Code {
345                id: Some("$invalid".to_string()),
346                ..Default::default()
347            },
348            r#documentation: Default::default(),
349            r#security: Default::default(),
350            r#resource: Default::default(),
351            r#interaction: Default::default(),
352            r#search_param: Default::default(),
353            r#operation: Default::default(),
354            r#compartment: Default::default(),
355        }
356    }
357}
358#[doc = "An endpoint (network accessible address) to which messages and/or replies are to be sent."]
359#[derive(Debug, Clone, PartialEq)]
360pub struct CapabilityStatementMessagingEndpoint {
361    #[doc = "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."]
362    pub r#id: Option<std::string::String>,
363    #[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."]
364    pub r#extension: Vec<super::super::types::Extension>,
365    #[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)."]
366    pub r#modifier_extension: Vec<super::super::types::Extension>,
367    #[doc = "A list of the messaging transport protocol(s) identifiers, supported by this endpoint."]
368    pub r#protocol: Box<super::super::types::Coding>,
369    #[doc = "The network address of the endpoint. For solutions that do not use network addresses for routing, it can be just an identifier."]
370    pub r#address: super::super::types::Url,
371}
372#[allow(clippy::derivable_impls)]
373impl Default for CapabilityStatementMessagingEndpoint {
374    fn default() -> Self {
375        Self {
376            r#id: Default::default(),
377            r#extension: Default::default(),
378            r#modifier_extension: Default::default(),
379            r#protocol: Box::new(super::super::types::Coding {
380                id: Some("$invalid".to_string()),
381                ..Default::default()
382            }),
383            r#address: super::super::types::Url {
384                id: Some("$invalid".to_string()),
385                ..Default::default()
386            },
387        }
388    }
389}
390#[doc = "References to message definitions for messages this system can send or receive."]
391#[derive(Debug, Clone, PartialEq)]
392pub struct CapabilityStatementMessagingSupportedMessage {
393    #[doc = "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."]
394    pub r#id: Option<std::string::String>,
395    #[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."]
396    pub r#extension: Vec<super::super::types::Extension>,
397    #[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)."]
398    pub r#modifier_extension: Vec<super::super::types::Extension>,
399    #[doc = "The mode of this event declaration - whether application is sender or receiver."]
400    pub r#mode: super::super::types::Code,
401    #[doc = "Points to a message definition that identifies the messaging event, message structure, allowed responses, etc."]
402    pub r#definition: super::super::types::Canonical,
403}
404#[allow(clippy::derivable_impls)]
405impl Default for CapabilityStatementMessagingSupportedMessage {
406    fn default() -> Self {
407        Self {
408            r#id: Default::default(),
409            r#extension: Default::default(),
410            r#modifier_extension: Default::default(),
411            r#mode: super::super::types::Code {
412                id: Some("$invalid".to_string()),
413                ..Default::default()
414            },
415            r#definition: super::super::types::Canonical {
416                id: Some("$invalid".to_string()),
417                ..Default::default()
418            },
419        }
420    }
421}
422#[doc = "A description of the messaging capabilities of the solution."]
423#[derive(Debug, Clone, PartialEq)]
424pub struct CapabilityStatementMessaging {
425    #[doc = "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."]
426    pub r#id: Option<std::string::String>,
427    #[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."]
428    pub r#extension: Vec<super::super::types::Extension>,
429    #[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)."]
430    pub r#modifier_extension: Vec<super::super::types::Extension>,
431    #[doc = "An endpoint (network accessible address) to which messages and/or replies are to be sent."]
432    pub r#endpoint: Vec<CapabilityStatementMessagingEndpoint>,
433    #[doc = "Length if the receiver's reliable messaging cache in minutes (if a receiver) or how long the cache length on the receiver should be (if a sender)."]
434    pub r#reliable_cache: Option<super::super::types::UnsignedInt>,
435    #[doc = "Documentation about the system's messaging capabilities for this endpoint not otherwise documented by the capability statement.  For example, the process for becoming an authorized messaging exchange partner."]
436    pub r#documentation: Option<super::super::types::Markdown>,
437    #[doc = "References to message definitions for messages this system can send or receive."]
438    pub r#supported_message: Vec<CapabilityStatementMessagingSupportedMessage>,
439}
440#[allow(clippy::derivable_impls)]
441impl Default for CapabilityStatementMessaging {
442    fn default() -> Self {
443        Self {
444            r#id: Default::default(),
445            r#extension: Default::default(),
446            r#modifier_extension: Default::default(),
447            r#endpoint: Default::default(),
448            r#reliable_cache: Default::default(),
449            r#documentation: Default::default(),
450            r#supported_message: Default::default(),
451        }
452    }
453}
454#[doc = "A document definition."]
455#[derive(Debug, Clone, PartialEq)]
456pub struct CapabilityStatementDocument {
457    #[doc = "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."]
458    pub r#id: Option<std::string::String>,
459    #[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."]
460    pub r#extension: Vec<super::super::types::Extension>,
461    #[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)."]
462    pub r#modifier_extension: Vec<super::super::types::Extension>,
463    #[doc = "Mode of this document declaration - whether an application is a producer or consumer."]
464    pub r#mode: super::super::types::Code,
465    #[doc = "A description of how the application supports or uses the specified document profile.  For example, when documents are created, what action is taken with consumed documents, etc."]
466    pub r#documentation: Option<super::super::types::Markdown>,
467    #[doc = "A profile on the document Bundle that constrains which resources are present, and their contents."]
468    pub r#profile: super::super::types::Canonical,
469}
470#[allow(clippy::derivable_impls)]
471impl Default for CapabilityStatementDocument {
472    fn default() -> Self {
473        Self {
474            r#id: Default::default(),
475            r#extension: Default::default(),
476            r#modifier_extension: Default::default(),
477            r#mode: super::super::types::Code {
478                id: Some("$invalid".to_string()),
479                ..Default::default()
480            },
481            r#documentation: Default::default(),
482            r#profile: super::super::types::Canonical {
483                id: Some("$invalid".to_string()),
484                ..Default::default()
485            },
486        }
487    }
488}
489#[doc = "A Capability Statement documents a set of capabilities (behaviors) of a FHIR Server or Client for a particular version of FHIR that may be used as a statement of actual server functionality or a statement of required or desired server implementation."]
490#[derive(Debug, Clone, PartialEq)]
491pub struct CapabilityStatement {
492    #[doc = "The logical id of the resource, as used in the URL for the resource. Once assigned, this value never changes."]
493    pub r#id: Option<super::super::types::Id>,
494    #[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."]
495    pub r#meta: Option<Box<super::super::types::Meta>>,
496    #[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."]
497    pub r#implicit_rules: Option<super::super::types::Uri>,
498    #[doc = "The base language in which the resource is written."]
499    pub r#language: Option<super::super::types::Code>,
500    #[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."]
501    pub r#text: Option<Box<super::super::types::Narrative>>,
502    #[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."]
503    pub r#contained: Vec<super::super::Resource>,
504    #[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."]
505    pub r#extension: Vec<super::super::types::Extension>,
506    #[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)."]
507    pub r#modifier_extension: Vec<super::super::types::Extension>,
508    #[doc = "An absolute URI that is used to identify this capability statement 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 capability statement is (or will be) published. This URL can be the target of a canonical reference. It SHALL remain the same when the capability statement is stored on different servers."]
509    pub r#url: Option<super::super::types::Uri>,
510    #[doc = "A formal identifier that is used to identify this CapabilityStatement when it is represented in other formats, or referenced in a specification, model, design or an instance."]
511    pub r#identifier: Vec<super::super::types::Identifier>,
512    #[doc = "The identifier that is used to identify this version of the capability statement when it is referenced in a specification, model, design or instance. This is an arbitrary value managed by the capability statement 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."]
513    pub r#version: Option<super::super::types::String>,
514    #[doc = "Indicates the mechanism used to compare versions to determine which is more current."]
515    pub r#version_algorithm: Option<CapabilityStatementVersionAlgorithm>,
516    #[doc = "A natural language name identifying the capability statement. This name should be usable as an identifier for the module by machine processing applications such as code generation."]
517    pub r#name: Option<super::super::types::String>,
518    #[doc = "A short, descriptive, user-friendly title for the capability statement."]
519    pub r#title: Option<super::super::types::String>,
520    #[doc = "The status of this capability statement. Enables tracking the life-cycle of the content."]
521    pub r#status: super::super::types::Code,
522    #[doc = "A Boolean value to indicate that this capability statement is authored for testing purposes (or education/evaluation/marketing) and is not intended to be used for genuine usage."]
523    pub r#experimental: Option<super::super::types::Boolean>,
524    #[doc = "The date  (and optionally time) when the capability statement 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 capability statement changes."]
525    pub r#date: super::super::types::DateTime,
526    #[doc = "The name of the organization or individual responsible for the release and ongoing maintenance of the capability statement."]
527    pub r#publisher: Option<super::super::types::String>,
528    #[doc = "Contact details to assist a user in finding and communicating with the publisher."]
529    pub r#contact: Vec<super::super::types::ContactDetail>,
530    #[doc = "A free text natural language description of the capability statement from a consumer's perspective. Typically, this is used when the capability statement describes a desired rather than an actual solution, for example as a formal expression of requirements as part of an RFP."]
531    pub r#description: Option<super::super::types::Markdown>,
532    #[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 capability statement instances."]
533    pub r#use_context: Vec<super::super::types::UsageContext>,
534    #[doc = "A legal or geographic region in which the capability statement is intended to be used."]
535    pub r#jurisdiction: Vec<super::super::types::CodeableConcept>,
536    #[doc = "Explanation of why this capability statement is needed and why it has been designed as it has."]
537    pub r#purpose: Option<super::super::types::Markdown>,
538    #[doc = "A copyright statement relating to the capability statement and/or its contents. Copyright statements are generally legal restrictions on the use and publishing of the capability statement."]
539    pub r#copyright: Option<super::super::types::Markdown>,
540    #[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')."]
541    pub r#copyright_label: Option<super::super::types::String>,
542    #[doc = "The way that this statement is intended to be used, to describe an actual running instance of software, a particular product (kind, not instance of software) or a class of implementation (e.g. a desired purchase)."]
543    pub r#kind: super::super::types::Code,
544    #[doc = "Reference to a canonical URL of another CapabilityStatement that this software implements. This capability statement is a published API description that corresponds to a business service. The server may actually implement a subset of the capability statement it claims to implement, so the capability statement must specify the full capability details."]
545    pub r#instantiates: Vec<super::super::types::Canonical>,
546    #[doc = "Reference to a canonical URL of another CapabilityStatement that this software adds to. The capability statement automatically includes everything in the other statement, and it is not duplicated, though the server may repeat the same resources, interactions and operations to add additional details to them."]
547    pub r#imports: Vec<super::super::types::Canonical>,
548    #[doc = "Software that is covered by this capability statement.  It is used when the capability statement describes the capabilities of a particular software version, independent of an installation."]
549    pub r#software: Option<CapabilityStatementSoftware>,
550    #[doc = "Identifies a specific implementation instance that is described by the capability statement - i.e. a particular installation, rather than the capabilities of a software program."]
551    pub r#implementation: Option<CapabilityStatementImplementation>,
552    #[doc = "The version of the FHIR specification that this CapabilityStatement describes (which SHALL be the same as the FHIR version of the CapabilityStatement itself). There is no default value."]
553    pub r#fhir_version: super::super::types::Code,
554    #[doc = "A list of the formats supported by this implementation using their content types."]
555    pub r#format: Vec<super::super::types::Code>,
556    #[doc = "A list of the patch formats supported by this implementation using their content types."]
557    pub r#patch_format: Vec<super::super::types::Code>,
558    #[doc = "A list of the languages supported by this implementation that are usefully supported in the ```Accept-Language``` header."]
559    pub r#accept_language: Vec<super::super::types::Code>,
560    #[doc = "A list of implementation guides that the server does (or should) support in their entirety."]
561    pub r#implementation_guide: Vec<super::super::types::Canonical>,
562    #[doc = "A definition of the restful capabilities of the solution, if any."]
563    pub r#rest: Vec<CapabilityStatementRest>,
564    #[doc = "A description of the messaging capabilities of the solution."]
565    pub r#messaging: Vec<CapabilityStatementMessaging>,
566    #[doc = "A document definition."]
567    pub r#document: Vec<CapabilityStatementDocument>,
568}
569#[allow(clippy::derivable_impls)]
570impl Default for CapabilityStatement {
571    fn default() -> Self {
572        Self {
573            r#id: Default::default(),
574            r#meta: Default::default(),
575            r#implicit_rules: Default::default(),
576            r#language: Default::default(),
577            r#text: Default::default(),
578            r#contained: Default::default(),
579            r#extension: Default::default(),
580            r#modifier_extension: Default::default(),
581            r#url: Default::default(),
582            r#identifier: Default::default(),
583            r#version: Default::default(),
584            r#version_algorithm: Default::default(),
585            r#name: Default::default(),
586            r#title: Default::default(),
587            r#status: super::super::types::Code {
588                id: Some("$invalid".to_string()),
589                ..Default::default()
590            },
591            r#experimental: Default::default(),
592            r#date: super::super::types::DateTime {
593                id: Some("$invalid".to_string()),
594                ..Default::default()
595            },
596            r#publisher: Default::default(),
597            r#contact: Default::default(),
598            r#description: Default::default(),
599            r#use_context: Default::default(),
600            r#jurisdiction: Default::default(),
601            r#purpose: Default::default(),
602            r#copyright: Default::default(),
603            r#copyright_label: Default::default(),
604            r#kind: super::super::types::Code {
605                id: Some("$invalid".to_string()),
606                ..Default::default()
607            },
608            r#instantiates: Default::default(),
609            r#imports: Default::default(),
610            r#software: Default::default(),
611            r#implementation: Default::default(),
612            r#fhir_version: super::super::types::Code {
613                id: Some("$invalid".to_string()),
614                ..Default::default()
615            },
616            r#format: Default::default(),
617            r#patch_format: Default::default(),
618            r#accept_language: Default::default(),
619            r#implementation_guide: Default::default(),
620            r#rest: Default::default(),
621            r#messaging: Default::default(),
622            r#document: Default::default(),
623        }
624    }
625}