fhirbolt_model/generated/r4/resources/
graph_definition.rs1#[doc = "Compartment Consistency Rules."]
3#[derive(Debug, Clone, PartialEq)]
4pub struct GraphDefinitionLinkTargetCompartment {
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 = "Defines how the compartment rule is used - whether it it is used to test whether resources are subject to the rule, or whether it is a rule that must be followed."]
12 pub r#use: super::super::types::Code,
13 #[doc = "Identifies the compartment."]
14 pub r#code: super::super::types::Code,
15 #[doc = "identical | matching | different | no-rule | custom."]
16 pub r#rule: super::super::types::Code,
17 #[doc = "Custom rule, as a FHIRPath expression."]
18 pub r#expression: Option<super::super::types::String>,
19 #[doc = "Documentation for FHIRPath expression."]
20 pub r#description: Option<super::super::types::String>,
21}
22#[allow(clippy::derivable_impls)]
23impl Default for GraphDefinitionLinkTargetCompartment {
24 fn default() -> Self {
25 Self {
26 r#id: Default::default(),
27 r#extension: Default::default(),
28 r#modifier_extension: Default::default(),
29 r#use: super::super::types::Code {
30 id: Some("$invalid".to_string()),
31 ..Default::default()
32 },
33 r#code: super::super::types::Code {
34 id: Some("$invalid".to_string()),
35 ..Default::default()
36 },
37 r#rule: super::super::types::Code {
38 id: Some("$invalid".to_string()),
39 ..Default::default()
40 },
41 r#expression: Default::default(),
42 r#description: Default::default(),
43 }
44 }
45}
46#[doc = "Potential target for the link."]
47#[derive(Debug, Clone, PartialEq)]
48pub struct GraphDefinitionLinkTarget {
49 #[doc = "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."]
50 pub r#id: Option<std::string::String>,
51 #[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."]
52 pub r#extension: Vec<super::super::types::Extension>,
53 #[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)."]
54 pub r#modifier_extension: Vec<super::super::types::Extension>,
55 #[doc = "Type of resource this link refers to."]
56 pub r#type: super::super::types::Code,
57 #[doc = "A set of parameters to look up."]
58 pub r#params: Option<super::super::types::String>,
59 #[doc = "Profile for the target resource."]
60 pub r#profile: Option<super::super::types::Canonical>,
61 #[doc = "Compartment Consistency Rules."]
62 pub r#compartment: Vec<GraphDefinitionLinkTargetCompartment>,
63 #[doc = "Additional links from target resource."]
64 pub r#link: Vec<GraphDefinitionLink>,
65}
66#[allow(clippy::derivable_impls)]
67impl Default for GraphDefinitionLinkTarget {
68 fn default() -> Self {
69 Self {
70 r#id: Default::default(),
71 r#extension: Default::default(),
72 r#modifier_extension: Default::default(),
73 r#type: super::super::types::Code {
74 id: Some("$invalid".to_string()),
75 ..Default::default()
76 },
77 r#params: Default::default(),
78 r#profile: Default::default(),
79 r#compartment: Default::default(),
80 r#link: Default::default(),
81 }
82 }
83}
84#[doc = "Links this graph makes rules about."]
85#[derive(Debug, Clone, PartialEq)]
86pub struct GraphDefinitionLink {
87 #[doc = "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."]
88 pub r#id: Option<std::string::String>,
89 #[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."]
90 pub r#extension: Vec<super::super::types::Extension>,
91 #[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)."]
92 pub r#modifier_extension: Vec<super::super::types::Extension>,
93 #[doc = "A FHIR expression that identifies one of FHIR References to other resources."]
94 pub r#path: Option<super::super::types::String>,
95 #[doc = "Which slice (if profiled)."]
96 pub r#slice_name: Option<super::super::types::String>,
97 #[doc = "Minimum occurrences for this link."]
98 pub r#min: Option<super::super::types::Integer>,
99 #[doc = "Maximum occurrences for this link."]
100 pub r#max: Option<super::super::types::String>,
101 #[doc = "Information about why this link is of interest in this graph definition."]
102 pub r#description: Option<super::super::types::String>,
103 #[doc = "Potential target for the link."]
104 pub r#target: Vec<GraphDefinitionLinkTarget>,
105}
106#[allow(clippy::derivable_impls)]
107impl Default for GraphDefinitionLink {
108 fn default() -> Self {
109 Self {
110 r#id: Default::default(),
111 r#extension: Default::default(),
112 r#modifier_extension: Default::default(),
113 r#path: Default::default(),
114 r#slice_name: Default::default(),
115 r#min: Default::default(),
116 r#max: Default::default(),
117 r#description: Default::default(),
118 r#target: Default::default(),
119 }
120 }
121}
122#[doc = "A formal computable definition of a graph of resources - that is, a coherent set of resources that form a graph by following references. The Graph Definition resource defines a set and makes rules about the set."]
123#[derive(Debug, Clone, PartialEq)]
124pub struct GraphDefinition {
125 #[doc = "The logical id of the resource, as used in the URL for the resource. Once assigned, this value never changes."]
126 pub r#id: Option<super::super::types::Id>,
127 #[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."]
128 pub r#meta: Option<Box<super::super::types::Meta>>,
129 #[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."]
130 pub r#implicit_rules: Option<super::super::types::Uri>,
131 #[doc = "The base language in which the resource is written."]
132 pub r#language: Option<super::super::types::Code>,
133 #[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."]
134 pub r#text: Option<Box<super::super::types::Narrative>>,
135 #[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."]
136 pub r#contained: Vec<super::super::Resource>,
137 #[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."]
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 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)."]
140 pub r#modifier_extension: Vec<super::super::types::Extension>,
141 #[doc = "An absolute URI that is used to identify this graph definition when it is referenced in a specification, model, design or an instance; also called its canonical identifier. This SHOULD be globally unique and SHOULD be a literal address at which at which an authoritative instance of this graph definition is (or will be) published. This URL can be the target of a canonical reference. It SHALL remain the same when the graph definition is stored on different servers."]
142 pub r#url: Option<super::super::types::Uri>,
143 #[doc = "The identifier that is used to identify this version of the graph definition when it is referenced in a specification, model, design or instance. This is an arbitrary value managed by the graph definition author and is not expected to be globally unique. For example, it might be a timestamp (e.g. yyyymmdd) if a managed version is not available. There is also no expectation that versions can be placed in a lexicographical sequence."]
144 pub r#version: Option<super::super::types::String>,
145 #[doc = "A natural language name identifying the graph definition. This name should be usable as an identifier for the module by machine processing applications such as code generation."]
146 pub r#name: super::super::types::String,
147 #[doc = "The status of this graph definition. Enables tracking the life-cycle of the content."]
148 pub r#status: super::super::types::Code,
149 #[doc = "A Boolean value to indicate that this graph definition is authored for testing purposes (or education/evaluation/marketing) and is not intended to be used for genuine usage."]
150 pub r#experimental: Option<super::super::types::Boolean>,
151 #[doc = "The date (and optionally time) when the graph definition was published. The date must change when the business version changes and it must change if the status code changes. In addition, it should change when the substantive content of the graph definition changes."]
152 pub r#date: Option<super::super::types::DateTime>,
153 #[doc = "The name of the organization or individual that published the graph definition."]
154 pub r#publisher: Option<super::super::types::String>,
155 #[doc = "Contact details to assist a user in finding and communicating with the publisher."]
156 pub r#contact: Vec<super::super::types::ContactDetail>,
157 #[doc = "A free text natural language description of the graph definition from a consumer's perspective."]
158 pub r#description: Option<super::super::types::Markdown>,
159 #[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 graph definition instances."]
160 pub r#use_context: Vec<super::super::types::UsageContext>,
161 #[doc = "A legal or geographic region in which the graph definition is intended to be used."]
162 pub r#jurisdiction: Vec<super::super::types::CodeableConcept>,
163 #[doc = "Explanation of why this graph definition is needed and why it has been designed as it has."]
164 pub r#purpose: Option<super::super::types::Markdown>,
165 #[doc = "The type of FHIR resource at which instances of this graph start."]
166 pub r#start: super::super::types::Code,
167 #[doc = "The profile that describes the use of the base resource."]
168 pub r#profile: Option<super::super::types::Canonical>,
169 #[doc = "Links this graph makes rules about."]
170 pub r#link: Vec<GraphDefinitionLink>,
171}
172#[allow(clippy::derivable_impls)]
173impl Default for GraphDefinition {
174 fn default() -> Self {
175 Self {
176 r#id: Default::default(),
177 r#meta: Default::default(),
178 r#implicit_rules: Default::default(),
179 r#language: Default::default(),
180 r#text: Default::default(),
181 r#contained: Default::default(),
182 r#extension: Default::default(),
183 r#modifier_extension: Default::default(),
184 r#url: Default::default(),
185 r#version: Default::default(),
186 r#name: super::super::types::String {
187 id: Some("$invalid".to_string()),
188 ..Default::default()
189 },
190 r#status: super::super::types::Code {
191 id: Some("$invalid".to_string()),
192 ..Default::default()
193 },
194 r#experimental: Default::default(),
195 r#date: Default::default(),
196 r#publisher: Default::default(),
197 r#contact: Default::default(),
198 r#description: Default::default(),
199 r#use_context: Default::default(),
200 r#jurisdiction: Default::default(),
201 r#purpose: Default::default(),
202 r#start: super::super::types::Code {
203 id: Some("$invalid".to_string()),
204 ..Default::default()
205 },
206 r#profile: Default::default(),
207 r#link: Default::default(),
208 }
209 }
210}