1#[doc = "A code or group definition that describes the intended subject of the plan definition."]
3#[derive(Default, Debug, Clone, PartialEq)]
4pub enum PlanDefinitionSubject {
5 CodeableConcept(Box<super::super::types::CodeableConcept>),
6 Reference(Box<super::super::types::Reference>),
7 #[default]
8 Invalid,
9}
10#[doc = "The target value of the measure to be achieved to signify fulfillment of the goal, e.g. 150 pounds or 7.0%. Either the high or low or both values of the range can be specified. When a low value is missing, it indicates that the goal is achieved at any value at or below the high value. Similarly, if the high value is missing, it indicates that the goal is achieved at any value at or above the low value."]
11#[derive(Default, Debug, Clone, PartialEq)]
12pub enum PlanDefinitionGoalTargetDetail {
13 Quantity(Box<super::super::types::Quantity>),
14 Range(Box<super::super::types::Range>),
15 CodeableConcept(Box<super::super::types::CodeableConcept>),
16 #[default]
17 Invalid,
18}
19#[doc = "A code or group definition that describes the intended subject of the action and its children, if any."]
20#[derive(Default, Debug, Clone, PartialEq)]
21pub enum PlanDefinitionActionSubject {
22 CodeableConcept(Box<super::super::types::CodeableConcept>),
23 Reference(Box<super::super::types::Reference>),
24 #[default]
25 Invalid,
26}
27#[doc = "A duration or range of durations to apply to the relationship. For example, 30-60 minutes before."]
28#[derive(Default, Debug, Clone, PartialEq)]
29pub enum PlanDefinitionActionRelatedActionOffset {
30 Duration(Box<super::super::types::Duration>),
31 Range(Box<super::super::types::Range>),
32 #[default]
33 Invalid,
34}
35#[doc = "An optional value describing when the action should be performed."]
36#[derive(Default, Debug, Clone, PartialEq)]
37pub enum PlanDefinitionActionTiming {
38 DateTime(super::super::types::DateTime),
39 Age(Box<super::super::types::Age>),
40 Period(Box<super::super::types::Period>),
41 Duration(Box<super::super::types::Duration>),
42 Range(Box<super::super::types::Range>),
43 Timing(Box<super::super::types::Timing>),
44 #[default]
45 Invalid,
46}
47#[doc = "A reference to an ActivityDefinition that describes the action to be taken in detail, or a PlanDefinition that describes a series of actions to be taken."]
48#[derive(Default, Debug, Clone, PartialEq)]
49pub enum PlanDefinitionActionDefinition {
50 Canonical(super::super::types::Canonical),
51 Uri(super::super::types::Uri),
52 #[default]
53 Invalid,
54}
55#[doc = "Indicates what should be done and within what timeframe."]
56#[derive(Debug, Clone, PartialEq)]
57pub struct PlanDefinitionGoalTarget {
58 #[doc = "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."]
59 pub r#id: Option<std::string::String>,
60 #[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."]
61 pub r#extension: Vec<super::super::types::Extension>,
62 #[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)."]
63 pub r#modifier_extension: Vec<super::super::types::Extension>,
64 #[doc = "The parameter whose value is to be tracked, e.g. body weight, blood pressure, or hemoglobin A1c level."]
65 pub r#measure: Option<Box<super::super::types::CodeableConcept>>,
66 #[doc = "The target value of the measure to be achieved to signify fulfillment of the goal, e.g. 150 pounds or 7.0%. Either the high or low or both values of the range can be specified. When a low value is missing, it indicates that the goal is achieved at any value at or below the high value. Similarly, if the high value is missing, it indicates that the goal is achieved at any value at or above the low value."]
67 pub r#detail: Option<PlanDefinitionGoalTargetDetail>,
68 #[doc = "Indicates the timeframe after the start of the goal in which the goal should be met."]
69 pub r#due: Option<Box<super::super::types::Duration>>,
70}
71#[allow(clippy::derivable_impls)]
72impl Default for PlanDefinitionGoalTarget {
73 fn default() -> Self {
74 Self {
75 r#id: Default::default(),
76 r#extension: Default::default(),
77 r#modifier_extension: Default::default(),
78 r#measure: Default::default(),
79 r#detail: Default::default(),
80 r#due: Default::default(),
81 }
82 }
83}
84#[doc = "Goals that describe what the activities within the plan are intended to achieve. For example, weight loss, restoring an activity of daily living, obtaining herd immunity via immunization, meeting a process improvement objective, etc."]
85#[derive(Debug, Clone, PartialEq)]
86pub struct PlanDefinitionGoal {
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 = "Indicates a category the goal falls within."]
94 pub r#category: Option<Box<super::super::types::CodeableConcept>>,
95 #[doc = "Human-readable and/or coded description of a specific desired objective of care, such as \"control blood pressure\" or \"negotiate an obstacle course\" or \"dance with child at wedding\"."]
96 pub r#description: Box<super::super::types::CodeableConcept>,
97 #[doc = "Identifies the expected level of importance associated with reaching/sustaining the defined goal."]
98 pub r#priority: Option<Box<super::super::types::CodeableConcept>>,
99 #[doc = "The event after which the goal should begin being pursued."]
100 pub r#start: Option<Box<super::super::types::CodeableConcept>>,
101 #[doc = "Identifies problems, conditions, issues, or concerns the goal is intended to address."]
102 pub r#addresses: Vec<super::super::types::CodeableConcept>,
103 #[doc = "Didactic or other informational resources associated with the goal that provide further supporting information about the goal. Information resources can include inline text commentary and links to web resources."]
104 pub r#documentation: Vec<super::super::types::RelatedArtifact>,
105 #[doc = "Indicates what should be done and within what timeframe."]
106 pub r#target: Vec<PlanDefinitionGoalTarget>,
107}
108#[allow(clippy::derivable_impls)]
109impl Default for PlanDefinitionGoal {
110 fn default() -> Self {
111 Self {
112 r#id: Default::default(),
113 r#extension: Default::default(),
114 r#modifier_extension: Default::default(),
115 r#category: Default::default(),
116 r#description: Box::new(super::super::types::CodeableConcept {
117 id: Some("$invalid".to_string()),
118 ..Default::default()
119 }),
120 r#priority: Default::default(),
121 r#start: Default::default(),
122 r#addresses: Default::default(),
123 r#documentation: Default::default(),
124 r#target: Default::default(),
125 }
126 }
127}
128#[doc = "An expression that describes applicability criteria or start/stop conditions for the action."]
129#[derive(Debug, Clone, PartialEq)]
130pub struct PlanDefinitionActionCondition {
131 #[doc = "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."]
132 pub r#id: Option<std::string::String>,
133 #[doc = "May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension."]
134 pub r#extension: Vec<super::super::types::Extension>,
135 #[doc = "May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself)."]
136 pub r#modifier_extension: Vec<super::super::types::Extension>,
137 #[doc = "The kind of condition."]
138 pub r#kind: super::super::types::Code,
139 #[doc = "An expression that returns true or false, indicating whether the condition is satisfied."]
140 pub r#expression: Option<Box<super::super::types::Expression>>,
141}
142#[allow(clippy::derivable_impls)]
143impl Default for PlanDefinitionActionCondition {
144 fn default() -> Self {
145 Self {
146 r#id: Default::default(),
147 r#extension: Default::default(),
148 r#modifier_extension: Default::default(),
149 r#kind: super::super::types::Code {
150 id: Some("$invalid".to_string()),
151 ..Default::default()
152 },
153 r#expression: Default::default(),
154 }
155 }
156}
157#[doc = "A relationship to another action such as \"before\" or \"30-60 minutes after start of\"."]
158#[derive(Debug, Clone, PartialEq)]
159pub struct PlanDefinitionActionRelatedAction {
160 #[doc = "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."]
161 pub r#id: Option<std::string::String>,
162 #[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."]
163 pub r#extension: Vec<super::super::types::Extension>,
164 #[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)."]
165 pub r#modifier_extension: Vec<super::super::types::Extension>,
166 #[doc = "The element id of the related action."]
167 pub r#action_id: super::super::types::Id,
168 #[doc = "The relationship of this action to the related action."]
169 pub r#relationship: super::super::types::Code,
170 #[doc = "A duration or range of durations to apply to the relationship. For example, 30-60 minutes before."]
171 pub r#offset: Option<PlanDefinitionActionRelatedActionOffset>,
172}
173#[allow(clippy::derivable_impls)]
174impl Default for PlanDefinitionActionRelatedAction {
175 fn default() -> Self {
176 Self {
177 r#id: Default::default(),
178 r#extension: Default::default(),
179 r#modifier_extension: Default::default(),
180 r#action_id: super::super::types::Id {
181 id: Some("$invalid".to_string()),
182 ..Default::default()
183 },
184 r#relationship: super::super::types::Code {
185 id: Some("$invalid".to_string()),
186 ..Default::default()
187 },
188 r#offset: Default::default(),
189 }
190 }
191}
192#[doc = "Indicates who should participate in performing the action described."]
193#[derive(Debug, Clone, PartialEq)]
194pub struct PlanDefinitionActionParticipant {
195 #[doc = "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."]
196 pub r#id: Option<std::string::String>,
197 #[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."]
198 pub r#extension: Vec<super::super::types::Extension>,
199 #[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)."]
200 pub r#modifier_extension: Vec<super::super::types::Extension>,
201 #[doc = "The type of participant in the action."]
202 pub r#type: super::super::types::Code,
203 #[doc = "The role the participant should play in performing the described action."]
204 pub r#role: Option<Box<super::super::types::CodeableConcept>>,
205}
206#[allow(clippy::derivable_impls)]
207impl Default for PlanDefinitionActionParticipant {
208 fn default() -> Self {
209 Self {
210 r#id: Default::default(),
211 r#extension: Default::default(),
212 r#modifier_extension: Default::default(),
213 r#type: super::super::types::Code {
214 id: Some("$invalid".to_string()),
215 ..Default::default()
216 },
217 r#role: Default::default(),
218 }
219 }
220}
221#[doc = "Customizations that should be applied to the statically defined resource. For example, if the dosage of a medication must be computed based on the patient's weight, a customization would be used to specify an expression that calculated the weight, and the path on the resource that would contain the result."]
222#[derive(Debug, Clone, PartialEq)]
223pub struct PlanDefinitionActionDynamicValue {
224 #[doc = "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."]
225 pub r#id: Option<std::string::String>,
226 #[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."]
227 pub r#extension: Vec<super::super::types::Extension>,
228 #[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)."]
229 pub r#modifier_extension: Vec<super::super::types::Extension>,
230 #[doc = "The path to the element to be customized. This is the path on the resource that will hold the result of the calculation defined by the expression. The specified path SHALL be a FHIRPath resolveable on the specified target type of the ActivityDefinition, and SHALL consist only of identifiers, constant indexers, and a restricted subset of functions. The path is allowed to contain qualifiers (.) to traverse sub-elements, as well as indexers (\\[x\\]) to traverse multiple-cardinality sub-elements (see the [Simple FHIRPath Profile](fhirpath.html#simple) for full details)."]
231 pub r#path: Option<super::super::types::String>,
232 #[doc = "An expression specifying the value of the customized element."]
233 pub r#expression: Option<Box<super::super::types::Expression>>,
234}
235#[allow(clippy::derivable_impls)]
236impl Default for PlanDefinitionActionDynamicValue {
237 fn default() -> Self {
238 Self {
239 r#id: Default::default(),
240 r#extension: Default::default(),
241 r#modifier_extension: Default::default(),
242 r#path: Default::default(),
243 r#expression: Default::default(),
244 }
245 }
246}
247#[doc = "An action or group of actions to be taken as part of the plan."]
248#[derive(Debug, Clone, PartialEq)]
249pub struct PlanDefinitionAction {
250 #[doc = "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."]
251 pub r#id: Option<std::string::String>,
252 #[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."]
253 pub r#extension: Vec<super::super::types::Extension>,
254 #[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)."]
255 pub r#modifier_extension: Vec<super::super::types::Extension>,
256 #[doc = "A user-visible prefix for the action."]
257 pub r#prefix: Option<super::super::types::String>,
258 #[doc = "The title of the action displayed to a user."]
259 pub r#title: Option<super::super::types::String>,
260 #[doc = "A brief description of the action used to provide a summary to display to the user."]
261 pub r#description: Option<super::super::types::String>,
262 #[doc = "A text equivalent of the action to be performed. This provides a human-interpretable description of the action when the definition is consumed by a system that might not be capable of interpreting it dynamically."]
263 pub r#text_equivalent: Option<super::super::types::String>,
264 #[doc = "Indicates how quickly the action should be addressed with respect to other actions."]
265 pub r#priority: Option<super::super::types::Code>,
266 #[doc = "A code that provides meaning for the action or action group. For example, a section may have a LOINC code for the section of a documentation template."]
267 pub r#code: Vec<super::super::types::CodeableConcept>,
268 #[doc = "A description of why this action is necessary or appropriate."]
269 pub r#reason: Vec<super::super::types::CodeableConcept>,
270 #[doc = "Didactic or other informational resources associated with the action that can be provided to the CDS recipient. Information resources can include inline text commentary and links to web resources."]
271 pub r#documentation: Vec<super::super::types::RelatedArtifact>,
272 #[doc = "Identifies goals that this action supports. The reference must be to a goal element defined within this plan definition."]
273 pub r#goal_id: Vec<super::super::types::Id>,
274 #[doc = "A code or group definition that describes the intended subject of the action and its children, if any."]
275 pub r#subject: Option<PlanDefinitionActionSubject>,
276 #[doc = "A description of when the action should be triggered."]
277 pub r#trigger: Vec<super::super::types::TriggerDefinition>,
278 #[doc = "An expression that describes applicability criteria or start/stop conditions for the action."]
279 pub r#condition: Vec<PlanDefinitionActionCondition>,
280 #[doc = "Defines input data requirements for the action."]
281 pub r#input: Vec<super::super::types::DataRequirement>,
282 #[doc = "Defines the outputs of the action, if any."]
283 pub r#output: Vec<super::super::types::DataRequirement>,
284 #[doc = "A relationship to another action such as \"before\" or \"30-60 minutes after start of\"."]
285 pub r#related_action: Vec<PlanDefinitionActionRelatedAction>,
286 #[doc = "An optional value describing when the action should be performed."]
287 pub r#timing: Option<PlanDefinitionActionTiming>,
288 #[doc = "Indicates who should participate in performing the action described."]
289 pub r#participant: Vec<PlanDefinitionActionParticipant>,
290 #[doc = "The type of action to perform (create, update, remove)."]
291 pub r#type: Option<Box<super::super::types::CodeableConcept>>,
292 #[doc = "Defines the grouping behavior for the action and its children."]
293 pub r#grouping_behavior: Option<super::super::types::Code>,
294 #[doc = "Defines the selection behavior for the action and its children."]
295 pub r#selection_behavior: Option<super::super::types::Code>,
296 #[doc = "Defines the required behavior for the action."]
297 pub r#required_behavior: Option<super::super::types::Code>,
298 #[doc = "Defines whether the action should usually be preselected."]
299 pub r#precheck_behavior: Option<super::super::types::Code>,
300 #[doc = "Defines whether the action can be selected multiple times."]
301 pub r#cardinality_behavior: Option<super::super::types::Code>,
302 #[doc = "A reference to an ActivityDefinition that describes the action to be taken in detail, or a PlanDefinition that describes a series of actions to be taken."]
303 pub r#definition: Option<PlanDefinitionActionDefinition>,
304 #[doc = "A reference to a StructureMap resource that defines a transform that can be executed to produce the intent resource using the ActivityDefinition instance as the input."]
305 pub r#transform: Option<super::super::types::Canonical>,
306 #[doc = "Customizations that should be applied to the statically defined resource. For example, if the dosage of a medication must be computed based on the patient's weight, a customization would be used to specify an expression that calculated the weight, and the path on the resource that would contain the result."]
307 pub r#dynamic_value: Vec<PlanDefinitionActionDynamicValue>,
308 #[doc = "Sub actions that are contained within the action. The behavior of this action determines the functionality of the sub-actions. For example, a selection behavior of at-most-one indicates that of the sub-actions, at most one may be chosen as part of realizing the action definition."]
309 pub r#action: Vec<PlanDefinitionAction>,
310}
311#[allow(clippy::derivable_impls)]
312impl Default for PlanDefinitionAction {
313 fn default() -> Self {
314 Self {
315 r#id: Default::default(),
316 r#extension: Default::default(),
317 r#modifier_extension: Default::default(),
318 r#prefix: Default::default(),
319 r#title: Default::default(),
320 r#description: Default::default(),
321 r#text_equivalent: Default::default(),
322 r#priority: Default::default(),
323 r#code: Default::default(),
324 r#reason: Default::default(),
325 r#documentation: Default::default(),
326 r#goal_id: Default::default(),
327 r#subject: Default::default(),
328 r#trigger: Default::default(),
329 r#condition: Default::default(),
330 r#input: Default::default(),
331 r#output: Default::default(),
332 r#related_action: Default::default(),
333 r#timing: Default::default(),
334 r#participant: Default::default(),
335 r#type: Default::default(),
336 r#grouping_behavior: Default::default(),
337 r#selection_behavior: Default::default(),
338 r#required_behavior: Default::default(),
339 r#precheck_behavior: Default::default(),
340 r#cardinality_behavior: Default::default(),
341 r#definition: Default::default(),
342 r#transform: Default::default(),
343 r#dynamic_value: Default::default(),
344 r#action: Default::default(),
345 }
346 }
347}
348#[doc = "This resource allows for the definition of various types of plans as a sharable, consumable, and executable artifact. The resource is general enough to support the description of a broad range of clinical artifacts such as clinical decision support rules, order sets and protocols."]
349#[derive(Debug, Clone, PartialEq)]
350pub struct PlanDefinition {
351 #[doc = "The logical id of the resource, as used in the URL for the resource. Once assigned, this value never changes."]
352 pub r#id: Option<super::super::types::Id>,
353 #[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."]
354 pub r#meta: Option<Box<super::super::types::Meta>>,
355 #[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."]
356 pub r#implicit_rules: Option<super::super::types::Uri>,
357 #[doc = "The base language in which the resource is written."]
358 pub r#language: Option<super::super::types::Code>,
359 #[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."]
360 pub r#text: Option<Box<super::super::types::Narrative>>,
361 #[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."]
362 pub r#contained: Vec<super::super::Resource>,
363 #[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."]
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 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)."]
366 pub r#modifier_extension: Vec<super::super::types::Extension>,
367 #[doc = "An absolute URI that is used to identify this plan 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 plan definition is (or will be) published. This URL can be the target of a canonical reference. It SHALL remain the same when the plan definition is stored on different servers."]
368 pub r#url: Option<super::super::types::Uri>,
369 #[doc = "A formal identifier that is used to identify this plan definition when it is represented in other formats, or referenced in a specification, model, design or an instance."]
370 pub r#identifier: Vec<super::super::types::Identifier>,
371 #[doc = "The identifier that is used to identify this version of the plan definition when it is referenced in a specification, model, design or instance. This is an arbitrary value managed by the plan 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. To provide a version consistent with the Decision Support Service specification, use the format Major.Minor.Revision (e.g. 1.0.0). For more information on versioning knowledge assets, refer to the Decision Support Service specification. Note that a version is required for non-experimental active artifacts."]
372 pub r#version: Option<super::super::types::String>,
373 #[doc = "A natural language name identifying the plan definition. This name should be usable as an identifier for the module by machine processing applications such as code generation."]
374 pub r#name: Option<super::super::types::String>,
375 #[doc = "A short, descriptive, user-friendly title for the plan definition."]
376 pub r#title: Option<super::super::types::String>,
377 #[doc = "An explanatory or alternate title for the plan definition giving additional information about its content."]
378 pub r#subtitle: Option<super::super::types::String>,
379 #[doc = "A high-level category for the plan definition that distinguishes the kinds of systems that would be interested in the plan definition."]
380 pub r#type: Option<Box<super::super::types::CodeableConcept>>,
381 #[doc = "The status of this plan definition. Enables tracking the life-cycle of the content."]
382 pub r#status: super::super::types::Code,
383 #[doc = "A Boolean value to indicate that this plan definition is authored for testing purposes (or education/evaluation/marketing) and is not intended to be used for genuine usage."]
384 pub r#experimental: Option<super::super::types::Boolean>,
385 #[doc = "A code or group definition that describes the intended subject of the plan definition."]
386 pub r#subject: Option<PlanDefinitionSubject>,
387 #[doc = "The date (and optionally time) when the plan 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 plan definition changes."]
388 pub r#date: Option<super::super::types::DateTime>,
389 #[doc = "The name of the organization or individual that published the plan definition."]
390 pub r#publisher: Option<super::super::types::String>,
391 #[doc = "Contact details to assist a user in finding and communicating with the publisher."]
392 pub r#contact: Vec<super::super::types::ContactDetail>,
393 #[doc = "A free text natural language description of the plan definition from a consumer's perspective."]
394 pub r#description: Option<super::super::types::Markdown>,
395 #[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 plan definition instances."]
396 pub r#use_context: Vec<super::super::types::UsageContext>,
397 #[doc = "A legal or geographic region in which the plan definition is intended to be used."]
398 pub r#jurisdiction: Vec<super::super::types::CodeableConcept>,
399 #[doc = "Explanation of why this plan definition is needed and why it has been designed as it has."]
400 pub r#purpose: Option<super::super::types::Markdown>,
401 #[doc = "A detailed description of how the plan definition is used from a clinical perspective."]
402 pub r#usage: Option<super::super::types::String>,
403 #[doc = "A copyright statement relating to the plan definition and/or its contents. Copyright statements are generally legal restrictions on the use and publishing of the plan definition."]
404 pub r#copyright: Option<super::super::types::Markdown>,
405 #[doc = "The date on which the resource content was approved by the publisher. Approval happens once when the content is officially approved for usage."]
406 pub r#approval_date: Option<super::super::types::Date>,
407 #[doc = "The date on which the resource content was last reviewed. Review happens periodically after approval but does not change the original approval date."]
408 pub r#last_review_date: Option<super::super::types::Date>,
409 #[doc = "The period during which the plan definition content was or is planned to be in active use."]
410 pub r#effective_period: Option<Box<super::super::types::Period>>,
411 #[doc = "Descriptive topics related to the content of the plan definition. Topics provide a high-level categorization of the definition that can be useful for filtering and searching."]
412 pub r#topic: Vec<super::super::types::CodeableConcept>,
413 #[doc = "An individiual or organization primarily involved in the creation and maintenance of the content."]
414 pub r#author: Vec<super::super::types::ContactDetail>,
415 #[doc = "An individual or organization primarily responsible for internal coherence of the content."]
416 pub r#editor: Vec<super::super::types::ContactDetail>,
417 #[doc = "An individual or organization primarily responsible for review of some aspect of the content."]
418 pub r#reviewer: Vec<super::super::types::ContactDetail>,
419 #[doc = "An individual or organization responsible for officially endorsing the content for use in some setting."]
420 pub r#endorser: Vec<super::super::types::ContactDetail>,
421 #[doc = "Related artifacts such as additional documentation, justification, or bibliographic references."]
422 pub r#related_artifact: Vec<super::super::types::RelatedArtifact>,
423 #[doc = "A reference to a Library resource containing any formal logic used by the plan definition."]
424 pub r#library: Vec<super::super::types::Canonical>,
425 #[doc = "Goals that describe what the activities within the plan are intended to achieve. For example, weight loss, restoring an activity of daily living, obtaining herd immunity via immunization, meeting a process improvement objective, etc."]
426 pub r#goal: Vec<PlanDefinitionGoal>,
427 #[doc = "An action or group of actions to be taken as part of the plan."]
428 pub r#action: Vec<PlanDefinitionAction>,
429}
430#[allow(clippy::derivable_impls)]
431impl Default for PlanDefinition {
432 fn default() -> Self {
433 Self {
434 r#id: Default::default(),
435 r#meta: Default::default(),
436 r#implicit_rules: Default::default(),
437 r#language: Default::default(),
438 r#text: Default::default(),
439 r#contained: Default::default(),
440 r#extension: Default::default(),
441 r#modifier_extension: Default::default(),
442 r#url: Default::default(),
443 r#identifier: Default::default(),
444 r#version: Default::default(),
445 r#name: Default::default(),
446 r#title: Default::default(),
447 r#subtitle: Default::default(),
448 r#type: Default::default(),
449 r#status: super::super::types::Code {
450 id: Some("$invalid".to_string()),
451 ..Default::default()
452 },
453 r#experimental: Default::default(),
454 r#subject: Default::default(),
455 r#date: Default::default(),
456 r#publisher: Default::default(),
457 r#contact: Default::default(),
458 r#description: Default::default(),
459 r#use_context: Default::default(),
460 r#jurisdiction: Default::default(),
461 r#purpose: Default::default(),
462 r#usage: Default::default(),
463 r#copyright: Default::default(),
464 r#approval_date: Default::default(),
465 r#last_review_date: Default::default(),
466 r#effective_period: Default::default(),
467 r#topic: Default::default(),
468 r#author: Default::default(),
469 r#editor: Default::default(),
470 r#reviewer: Default::default(),
471 r#endorser: Default::default(),
472 r#related_artifact: Default::default(),
473 r#library: Default::default(),
474 r#goal: Default::default(),
475 r#action: Default::default(),
476 }
477 }
478}