fhirbolt_model/generated/r4b/resources/
capability_statement.rs

1// Generated on 2023-05-17 by fhirbolt-codegen v0.10.0
2#[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."]
3#[derive(Debug, Clone, PartialEq)]
4pub struct CapabilityStatementSoftware {
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 = "Name the software is known by."]
12    pub r#name: super::super::types::String,
13    #[doc = "The version identifier for the software covered by this statement."]
14    pub r#version: Option<super::super::types::String>,
15    #[doc = "Date this version of the software was released."]
16    pub r#release_date: Option<super::super::types::DateTime>,
17}
18#[allow(clippy::derivable_impls)]
19impl Default for CapabilityStatementSoftware {
20    fn default() -> Self {
21        Self {
22            r#id: Default::default(),
23            r#extension: Default::default(),
24            r#modifier_extension: Default::default(),
25            r#name: super::super::types::String {
26                id: Some("$invalid".to_string()),
27                ..Default::default()
28            },
29            r#version: Default::default(),
30            r#release_date: Default::default(),
31        }
32    }
33}
34#[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."]
35#[derive(Debug, Clone, PartialEq)]
36pub struct CapabilityStatementImplementation {
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 = "Information about the specific installation that this capability statement relates to."]
44    pub r#description: super::super::types::String,
45    #[doc = "An absolute base URL for the implementation.  This forms the base for REST interfaces as well as the mailbox and document interfaces."]
46    pub r#url: Option<super::super::types::Url>,
47    #[doc = "The organization responsible for the management of the instance and oversight of the data on the server at the specified URL."]
48    pub r#custodian: Option<Box<super::super::types::Reference>>,
49}
50#[allow(clippy::derivable_impls)]
51impl Default for CapabilityStatementImplementation {
52    fn default() -> Self {
53        Self {
54            r#id: Default::default(),
55            r#extension: Default::default(),
56            r#modifier_extension: Default::default(),
57            r#description: super::super::types::String {
58                id: Some("$invalid".to_string()),
59                ..Default::default()
60            },
61            r#url: Default::default(),
62            r#custodian: Default::default(),
63        }
64    }
65}
66#[doc = "Information about security implementation from an interface perspective - what a client needs to know."]
67#[derive(Debug, Clone, PartialEq)]
68pub struct CapabilityStatementRestSecurity {
69    #[doc = "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."]
70    pub r#id: Option<std::string::String>,
71    #[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."]
72    pub r#extension: Vec<super::super::types::Extension>,
73    #[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)."]
74    pub r#modifier_extension: Vec<super::super::types::Extension>,
75    #[doc = "Server adds CORS headers when responding to requests - this enables Javascript applications to use the server."]
76    pub r#cors: Option<super::super::types::Boolean>,
77    #[doc = "Types of security services that are supported/required by the system."]
78    pub r#service: Vec<super::super::types::CodeableConcept>,
79    #[doc = "General description of how security works."]
80    pub r#description: Option<super::super::types::Markdown>,
81}
82#[allow(clippy::derivable_impls)]
83impl Default for CapabilityStatementRestSecurity {
84    fn default() -> Self {
85        Self {
86            r#id: Default::default(),
87            r#extension: Default::default(),
88            r#modifier_extension: Default::default(),
89            r#cors: Default::default(),
90            r#service: Default::default(),
91            r#description: Default::default(),
92        }
93    }
94}
95#[doc = "Identifies a restful operation supported by the solution."]
96#[derive(Debug, Clone, PartialEq)]
97pub struct CapabilityStatementRestResourceInteraction {
98    #[doc = "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."]
99    pub r#id: Option<std::string::String>,
100    #[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."]
101    pub r#extension: Vec<super::super::types::Extension>,
102    #[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)."]
103    pub r#modifier_extension: Vec<super::super::types::Extension>,
104    #[doc = "Coded identifier of the operation, supported by the system resource."]
105    pub r#code: super::super::types::Code,
106    #[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'."]
107    pub r#documentation: Option<super::super::types::Markdown>,
108}
109#[allow(clippy::derivable_impls)]
110impl Default for CapabilityStatementRestResourceInteraction {
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#documentation: Default::default(),
121        }
122    }
123}
124#[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."]
125#[derive(Debug, Clone, PartialEq)]
126pub struct CapabilityStatementRestResourceSearchParam {
127    #[doc = "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."]
128    pub r#id: Option<std::string::String>,
129    #[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."]
130    pub r#extension: Vec<super::super::types::Extension>,
131    #[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)."]
132    pub r#modifier_extension: Vec<super::super::types::Extension>,
133    #[doc = "The name of the search parameter used in the interface."]
134    pub r#name: super::super::types::String,
135    #[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."]
136    pub r#definition: Option<super::super::types::Canonical>,
137    #[doc = "The type of value a search parameter refers to, and how the content is interpreted."]
138    pub r#type: super::super::types::Code,
139    #[doc = "This allows documentation of any distinct behaviors about how the search parameter is used.  For example, text matching algorithms."]
140    pub r#documentation: Option<super::super::types::Markdown>,
141}
142#[allow(clippy::derivable_impls)]
143impl Default for CapabilityStatementRestResourceSearchParam {
144    fn default() -> Self {
145        Self {
146            r#id: Default::default(),
147            r#extension: Default::default(),
148            r#modifier_extension: Default::default(),
149            r#name: super::super::types::String {
150                id: Some("$invalid".to_string()),
151                ..Default::default()
152            },
153            r#definition: Default::default(),
154            r#type: super::super::types::Code {
155                id: Some("$invalid".to_string()),
156                ..Default::default()
157            },
158            r#documentation: Default::default(),
159        }
160    }
161}
162#[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."]
163#[derive(Debug, Clone, PartialEq)]
164pub struct CapabilityStatementRestResourceOperation {
165    #[doc = "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."]
166    pub r#id: Option<std::string::String>,
167    #[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."]
168    pub r#extension: Vec<super::super::types::Extension>,
169    #[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)."]
170    pub r#modifier_extension: Vec<super::super::types::Extension>,
171    #[doc = "The name of the operation or query. For an operation, this is the name  prefixed with $ and used in the URL. For a query, this is the name used in the _query parameter when the query is called."]
172    pub r#name: super::super::types::String,
173    #[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."]
174    pub r#definition: super::super::types::Canonical,
175    #[doc = "Documentation that describes anything special about the operation behavior, possibly detailing different behavior for system, type and instance-level invocation of the operation."]
176    pub r#documentation: Option<super::super::types::Markdown>,
177}
178#[allow(clippy::derivable_impls)]
179impl Default for CapabilityStatementRestResourceOperation {
180    fn default() -> Self {
181        Self {
182            r#id: Default::default(),
183            r#extension: Default::default(),
184            r#modifier_extension: Default::default(),
185            r#name: super::super::types::String {
186                id: Some("$invalid".to_string()),
187                ..Default::default()
188            },
189            r#definition: super::super::types::Canonical {
190                id: Some("$invalid".to_string()),
191                ..Default::default()
192            },
193            r#documentation: Default::default(),
194        }
195    }
196}
197#[doc = "A specification of the restful capabilities of the solution for a specific resource type."]
198#[derive(Debug, Clone, PartialEq)]
199pub struct CapabilityStatementRestResource {
200    #[doc = "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."]
201    pub r#id: Option<std::string::String>,
202    #[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."]
203    pub r#extension: Vec<super::super::types::Extension>,
204    #[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)."]
205    pub r#modifier_extension: Vec<super::super::types::Extension>,
206    #[doc = "A type of resource exposed via the restful interface."]
207    pub r#type: super::super::types::Code,
208    #[doc = "A specification of the profile that describes the solution's overall support for the resource, including any constraints on cardinality, bindings, lengths or other limitations. See further discussion in [Using Profiles](profiling.html#profile-uses)."]
209    pub r#profile: Option<super::super::types::Canonical>,
210    #[doc = "A list of profiles that represent different use cases supported by the system. For a server, \"supported by the system\" means the system hosts/produces a set of resources that are conformant to a particular profile, and allows clients that use its services to search using this profile and to find appropriate data. For a client, it means the system will search by this profile and process data according to the guidance implicit in the profile. See further discussion in [Using Profiles](profiling.html#profile-uses)."]
211    pub r#supported_profile: Vec<super::super::types::Canonical>,
212    #[doc = "Additional information about the resource type used by the system."]
213    pub r#documentation: Option<super::super::types::Markdown>,
214    #[doc = "Identifies a restful operation supported by the solution."]
215    pub r#interaction: Vec<CapabilityStatementRestResourceInteraction>,
216    #[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."]
217    pub r#versioning: Option<super::super::types::Code>,
218    #[doc = "A flag for whether the server is able to return past versions as part of the vRead operation."]
219    pub r#read_history: Option<super::super::types::Boolean>,
220    #[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."]
221    pub r#update_create: Option<super::super::types::Boolean>,
222    #[doc = "A flag that indicates that the server supports conditional create."]
223    pub r#conditional_create: Option<super::super::types::Boolean>,
224    #[doc = "A code that indicates how the server supports conditional read."]
225    pub r#conditional_read: Option<super::super::types::Code>,
226    #[doc = "A flag that indicates that the server supports conditional update."]
227    pub r#conditional_update: Option<super::super::types::Boolean>,
228    #[doc = "A code that indicates how the server supports conditional delete."]
229    pub r#conditional_delete: Option<super::super::types::Code>,
230    #[doc = "A set of flags that defines how references are supported."]
231    pub r#reference_policy: Vec<super::super::types::Code>,
232    #[doc = "A list of _include values supported by the server."]
233    pub r#search_include: Vec<super::super::types::String>,
234    #[doc = "A list of _revinclude (reverse include) values supported by the server."]
235    pub r#search_rev_include: Vec<super::super::types::String>,
236    #[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."]
237    pub r#search_param: Vec<CapabilityStatementRestResourceSearchParam>,
238    #[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."]
239    pub r#operation: Vec<CapabilityStatementRestResourceOperation>,
240}
241#[allow(clippy::derivable_impls)]
242impl Default for CapabilityStatementRestResource {
243    fn default() -> Self {
244        Self {
245            r#id: Default::default(),
246            r#extension: Default::default(),
247            r#modifier_extension: Default::default(),
248            r#type: super::super::types::Code {
249                id: Some("$invalid".to_string()),
250                ..Default::default()
251            },
252            r#profile: Default::default(),
253            r#supported_profile: Default::default(),
254            r#documentation: Default::default(),
255            r#interaction: Default::default(),
256            r#versioning: Default::default(),
257            r#read_history: Default::default(),
258            r#update_create: Default::default(),
259            r#conditional_create: Default::default(),
260            r#conditional_read: Default::default(),
261            r#conditional_update: Default::default(),
262            r#conditional_delete: Default::default(),
263            r#reference_policy: Default::default(),
264            r#search_include: Default::default(),
265            r#search_rev_include: Default::default(),
266            r#search_param: Default::default(),
267            r#operation: Default::default(),
268        }
269    }
270}
271#[doc = "A specification of restful operations supported by the system."]
272#[derive(Debug, Clone, PartialEq)]
273pub struct CapabilityStatementRestInteraction {
274    #[doc = "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."]
275    pub r#id: Option<std::string::String>,
276    #[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."]
277    pub r#extension: Vec<super::super::types::Extension>,
278    #[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)."]
279    pub r#modifier_extension: Vec<super::super::types::Extension>,
280    #[doc = "A coded identifier of the operation, supported by the system."]
281    pub r#code: super::super::types::Code,
282    #[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."]
283    pub r#documentation: Option<super::super::types::Markdown>,
284}
285#[allow(clippy::derivable_impls)]
286impl Default for CapabilityStatementRestInteraction {
287    fn default() -> Self {
288        Self {
289            r#id: Default::default(),
290            r#extension: Default::default(),
291            r#modifier_extension: Default::default(),
292            r#code: super::super::types::Code {
293                id: Some("$invalid".to_string()),
294                ..Default::default()
295            },
296            r#documentation: Default::default(),
297        }
298    }
299}
300#[doc = "A definition of the restful capabilities of the solution, if any."]
301#[derive(Debug, Clone, PartialEq)]
302pub struct CapabilityStatementRest {
303    #[doc = "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."]
304    pub r#id: Option<std::string::String>,
305    #[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."]
306    pub r#extension: Vec<super::super::types::Extension>,
307    #[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)."]
308    pub r#modifier_extension: Vec<super::super::types::Extension>,
309    #[doc = "Identifies whether this portion of the statement is describing the ability to initiate or receive restful operations."]
310    pub r#mode: super::super::types::Code,
311    #[doc = "Information about the system's restful capabilities that apply across all applications, such as security."]
312    pub r#documentation: Option<super::super::types::Markdown>,
313    #[doc = "Information about security implementation from an interface perspective - what a client needs to know."]
314    pub r#security: Option<CapabilityStatementRestSecurity>,
315    #[doc = "A specification of the restful capabilities of the solution for a specific resource type."]
316    pub r#resource: Vec<CapabilityStatementRestResource>,
317    #[doc = "A specification of restful operations supported by the system."]
318    pub r#interaction: Vec<CapabilityStatementRestInteraction>,
319    #[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."]
320    pub r#search_param: Vec<CapabilityStatementRestResourceSearchParam>,
321    #[doc = "Definition of an operation or a named query together with its parameters and their meaning and type."]
322    pub r#operation: Vec<CapabilityStatementRestResourceOperation>,
323    #[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 ."]
324    pub r#compartment: Vec<super::super::types::Canonical>,
325}
326#[allow(clippy::derivable_impls)]
327impl Default for CapabilityStatementRest {
328    fn default() -> Self {
329        Self {
330            r#id: Default::default(),
331            r#extension: Default::default(),
332            r#modifier_extension: Default::default(),
333            r#mode: super::super::types::Code {
334                id: Some("$invalid".to_string()),
335                ..Default::default()
336            },
337            r#documentation: Default::default(),
338            r#security: Default::default(),
339            r#resource: Default::default(),
340            r#interaction: Default::default(),
341            r#search_param: Default::default(),
342            r#operation: Default::default(),
343            r#compartment: Default::default(),
344        }
345    }
346}
347#[doc = "An endpoint (network accessible address) to which messages and/or replies are to be sent."]
348#[derive(Debug, Clone, PartialEq)]
349pub struct CapabilityStatementMessagingEndpoint {
350    #[doc = "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."]
351    pub r#id: Option<std::string::String>,
352    #[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."]
353    pub r#extension: Vec<super::super::types::Extension>,
354    #[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)."]
355    pub r#modifier_extension: Vec<super::super::types::Extension>,
356    #[doc = "A list of the messaging transport protocol(s) identifiers, supported by this endpoint."]
357    pub r#protocol: Box<super::super::types::Coding>,
358    #[doc = "The network address of the endpoint. For solutions that do not use network addresses for routing, it can be just an identifier."]
359    pub r#address: super::super::types::Url,
360}
361#[allow(clippy::derivable_impls)]
362impl Default for CapabilityStatementMessagingEndpoint {
363    fn default() -> Self {
364        Self {
365            r#id: Default::default(),
366            r#extension: Default::default(),
367            r#modifier_extension: Default::default(),
368            r#protocol: Box::new(super::super::types::Coding {
369                id: Some("$invalid".to_string()),
370                ..Default::default()
371            }),
372            r#address: super::super::types::Url {
373                id: Some("$invalid".to_string()),
374                ..Default::default()
375            },
376        }
377    }
378}
379#[doc = "References to message definitions for messages this system can send or receive."]
380#[derive(Debug, Clone, PartialEq)]
381pub struct CapabilityStatementMessagingSupportedMessage {
382    #[doc = "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."]
383    pub r#id: Option<std::string::String>,
384    #[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."]
385    pub r#extension: Vec<super::super::types::Extension>,
386    #[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)."]
387    pub r#modifier_extension: Vec<super::super::types::Extension>,
388    #[doc = "The mode of this event declaration - whether application is sender or receiver."]
389    pub r#mode: super::super::types::Code,
390    #[doc = "Points to a message definition that identifies the messaging event, message structure, allowed responses, etc."]
391    pub r#definition: super::super::types::Canonical,
392}
393#[allow(clippy::derivable_impls)]
394impl Default for CapabilityStatementMessagingSupportedMessage {
395    fn default() -> Self {
396        Self {
397            r#id: Default::default(),
398            r#extension: Default::default(),
399            r#modifier_extension: Default::default(),
400            r#mode: super::super::types::Code {
401                id: Some("$invalid".to_string()),
402                ..Default::default()
403            },
404            r#definition: super::super::types::Canonical {
405                id: Some("$invalid".to_string()),
406                ..Default::default()
407            },
408        }
409    }
410}
411#[doc = "A description of the messaging capabilities of the solution."]
412#[derive(Debug, Clone, PartialEq)]
413pub struct CapabilityStatementMessaging {
414    #[doc = "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."]
415    pub r#id: Option<std::string::String>,
416    #[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."]
417    pub r#extension: Vec<super::super::types::Extension>,
418    #[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)."]
419    pub r#modifier_extension: Vec<super::super::types::Extension>,
420    #[doc = "An endpoint (network accessible address) to which messages and/or replies are to be sent."]
421    pub r#endpoint: Vec<CapabilityStatementMessagingEndpoint>,
422    #[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)."]
423    pub r#reliable_cache: Option<super::super::types::UnsignedInt>,
424    #[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."]
425    pub r#documentation: Option<super::super::types::Markdown>,
426    #[doc = "References to message definitions for messages this system can send or receive."]
427    pub r#supported_message: Vec<CapabilityStatementMessagingSupportedMessage>,
428}
429#[allow(clippy::derivable_impls)]
430impl Default for CapabilityStatementMessaging {
431    fn default() -> Self {
432        Self {
433            r#id: Default::default(),
434            r#extension: Default::default(),
435            r#modifier_extension: Default::default(),
436            r#endpoint: Default::default(),
437            r#reliable_cache: Default::default(),
438            r#documentation: Default::default(),
439            r#supported_message: Default::default(),
440        }
441    }
442}
443#[doc = "A document definition."]
444#[derive(Debug, Clone, PartialEq)]
445pub struct CapabilityStatementDocument {
446    #[doc = "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."]
447    pub r#id: Option<std::string::String>,
448    #[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."]
449    pub r#extension: Vec<super::super::types::Extension>,
450    #[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)."]
451    pub r#modifier_extension: Vec<super::super::types::Extension>,
452    #[doc = "Mode of this document declaration - whether an application is a producer or consumer."]
453    pub r#mode: super::super::types::Code,
454    #[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."]
455    pub r#documentation: Option<super::super::types::Markdown>,
456    #[doc = "A profile on the document Bundle that constrains which resources are present, and their contents."]
457    pub r#profile: super::super::types::Canonical,
458}
459#[allow(clippy::derivable_impls)]
460impl Default for CapabilityStatementDocument {
461    fn default() -> Self {
462        Self {
463            r#id: Default::default(),
464            r#extension: Default::default(),
465            r#modifier_extension: Default::default(),
466            r#mode: super::super::types::Code {
467                id: Some("$invalid".to_string()),
468                ..Default::default()
469            },
470            r#documentation: Default::default(),
471            r#profile: super::super::types::Canonical {
472                id: Some("$invalid".to_string()),
473                ..Default::default()
474            },
475        }
476    }
477}
478#[doc = "A Capability Statement documents a set of capabilities (behaviors) of a FHIR Server 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."]
479#[derive(Debug, Clone, PartialEq)]
480pub struct CapabilityStatement {
481    #[doc = "The logical id of the resource, as used in the URL for the resource. Once assigned, this value never changes."]
482    pub r#id: Option<super::super::types::Id>,
483    #[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."]
484    pub r#meta: Option<Box<super::super::types::Meta>>,
485    #[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."]
486    pub r#implicit_rules: Option<super::super::types::Uri>,
487    #[doc = "The base language in which the resource is written."]
488    pub r#language: Option<super::super::types::Code>,
489    #[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."]
490    pub r#text: Option<Box<super::super::types::Narrative>>,
491    #[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."]
492    pub r#contained: Vec<super::super::Resource>,
493    #[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."]
494    pub r#extension: Vec<super::super::types::Extension>,
495    #[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)."]
496    pub r#modifier_extension: Vec<super::super::types::Extension>,
497    #[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 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."]
498    pub r#url: Option<super::super::types::Uri>,
499    #[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."]
500    pub r#version: Option<super::super::types::String>,
501    #[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."]
502    pub r#name: Option<super::super::types::String>,
503    #[doc = "A short, descriptive, user-friendly title for the capability statement."]
504    pub r#title: Option<super::super::types::String>,
505    #[doc = "The status of this capability statement. Enables tracking the life-cycle of the content."]
506    pub r#status: super::super::types::Code,
507    #[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."]
508    pub r#experimental: Option<super::super::types::Boolean>,
509    #[doc = "The date  (and optionally time) when the capability statement 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 capability statement changes."]
510    pub r#date: super::super::types::DateTime,
511    #[doc = "The name of the organization or individual that published the capability statement."]
512    pub r#publisher: Option<super::super::types::String>,
513    #[doc = "Contact details to assist a user in finding and communicating with the publisher."]
514    pub r#contact: Vec<super::super::types::ContactDetail>,
515    #[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."]
516    pub r#description: Option<super::super::types::Markdown>,
517    #[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."]
518    pub r#use_context: Vec<super::super::types::UsageContext>,
519    #[doc = "A legal or geographic region in which the capability statement is intended to be used."]
520    pub r#jurisdiction: Vec<super::super::types::CodeableConcept>,
521    #[doc = "Explanation of why this capability statement is needed and why it has been designed as it has."]
522    pub r#purpose: Option<super::super::types::Markdown>,
523    #[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."]
524    pub r#copyright: Option<super::super::types::Markdown>,
525    #[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)."]
526    pub r#kind: super::super::types::Code,
527    #[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."]
528    pub r#instantiates: Vec<super::super::types::Canonical>,
529    #[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."]
530    pub r#imports: Vec<super::super::types::Canonical>,
531    #[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."]
532    pub r#software: Option<CapabilityStatementSoftware>,
533    #[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."]
534    pub r#implementation: Option<CapabilityStatementImplementation>,
535    #[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."]
536    pub r#fhir_version: super::super::types::Code,
537    #[doc = "A list of the formats supported by this implementation using their content types."]
538    pub r#format: Vec<super::super::types::Code>,
539    #[doc = "A list of the patch formats supported by this implementation using their content types."]
540    pub r#patch_format: Vec<super::super::types::Code>,
541    #[doc = "A list of implementation guides that the server does (or should) support in their entirety."]
542    pub r#implementation_guide: Vec<super::super::types::Canonical>,
543    #[doc = "A definition of the restful capabilities of the solution, if any."]
544    pub r#rest: Vec<CapabilityStatementRest>,
545    #[doc = "A description of the messaging capabilities of the solution."]
546    pub r#messaging: Vec<CapabilityStatementMessaging>,
547    #[doc = "A document definition."]
548    pub r#document: Vec<CapabilityStatementDocument>,
549}
550#[allow(clippy::derivable_impls)]
551impl Default for CapabilityStatement {
552    fn default() -> Self {
553        Self {
554            r#id: Default::default(),
555            r#meta: Default::default(),
556            r#implicit_rules: Default::default(),
557            r#language: Default::default(),
558            r#text: Default::default(),
559            r#contained: Default::default(),
560            r#extension: Default::default(),
561            r#modifier_extension: Default::default(),
562            r#url: Default::default(),
563            r#version: Default::default(),
564            r#name: Default::default(),
565            r#title: Default::default(),
566            r#status: super::super::types::Code {
567                id: Some("$invalid".to_string()),
568                ..Default::default()
569            },
570            r#experimental: Default::default(),
571            r#date: super::super::types::DateTime {
572                id: Some("$invalid".to_string()),
573                ..Default::default()
574            },
575            r#publisher: Default::default(),
576            r#contact: Default::default(),
577            r#description: Default::default(),
578            r#use_context: Default::default(),
579            r#jurisdiction: Default::default(),
580            r#purpose: Default::default(),
581            r#copyright: Default::default(),
582            r#kind: super::super::types::Code {
583                id: Some("$invalid".to_string()),
584                ..Default::default()
585            },
586            r#instantiates: Default::default(),
587            r#imports: Default::default(),
588            r#software: Default::default(),
589            r#implementation: Default::default(),
590            r#fhir_version: super::super::types::Code {
591                id: Some("$invalid".to_string()),
592                ..Default::default()
593            },
594            r#format: Default::default(),
595            r#patch_format: Default::default(),
596            r#implementation_guide: Default::default(),
597            r#rest: Default::default(),
598            r#messaging: Default::default(),
599            r#document: Default::default(),
600        }
601    }
602}