1#[doc = "Indicates the mechanism used to compare versions to determine which is more current."]
3#[derive(Default, Debug, Clone, PartialEq)]
4pub enum MeasureVersionAlgorithm {
5 String(super::super::types::String),
6 Coding(Box<super::super::types::Coding>),
7 #[default]
8 Invalid,
9}
10#[doc = "The intended subjects for the measure. If this element is not provided, a Patient subject is assumed, but the subject of the measure can be anything."]
11#[derive(Default, Debug, Clone, PartialEq)]
12pub enum MeasureSubject {
13 CodeableConcept(Box<super::super::types::CodeableConcept>),
14 Reference(Box<super::super::types::Reference>),
15 #[default]
16 Invalid,
17}
18#[doc = "The intended subjects for the measure. If this element is not provided, a Patient subject is assumed, but the subject of the measure can be anything."]
19#[derive(Default, Debug, Clone, PartialEq)]
20pub enum MeasureGroupSubject {
21 CodeableConcept(Box<super::super::types::CodeableConcept>),
22 Reference(Box<super::super::types::Reference>),
23 #[default]
24 Invalid,
25}
26#[doc = "Provides a description of an individual term used within the measure."]
27#[derive(Debug, Clone, PartialEq)]
28pub struct MeasureTerm {
29 #[doc = "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."]
30 pub r#id: Option<std::string::String>,
31 #[doc = "May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and managable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension."]
32 pub r#extension: Vec<super::super::types::Extension>,
33 #[doc = "May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and managable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself)."]
34 pub r#modifier_extension: Vec<super::super::types::Extension>,
35 #[doc = "A codeable representation of the defined term."]
36 pub r#code: Option<Box<super::super::types::CodeableConcept>>,
37 #[doc = "Provides a definition for the term as used within the measure."]
38 pub r#definition: Option<super::super::types::Markdown>,
39}
40#[allow(clippy::derivable_impls)]
41impl Default for MeasureTerm {
42 fn default() -> Self {
43 Self {
44 r#id: Default::default(),
45 r#extension: Default::default(),
46 r#modifier_extension: Default::default(),
47 r#code: Default::default(),
48 r#definition: Default::default(),
49 }
50 }
51}
52#[doc = "A population criteria for the measure."]
53#[derive(Debug, Clone, PartialEq)]
54pub struct MeasureGroupPopulation {
55 #[doc = "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."]
56 pub r#id: Option<std::string::String>,
57 #[doc = "May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and managable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension."]
58 pub r#extension: Vec<super::super::types::Extension>,
59 #[doc = "May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and managable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself)."]
60 pub r#modifier_extension: Vec<super::super::types::Extension>,
61 #[doc = "An identifier that is unique within the Measure allowing linkage to the equivalent population in a MeasureReport resource."]
62 pub r#link_id: Option<super::super::types::String>,
63 #[doc = "The type of population criteria."]
64 pub r#code: Option<Box<super::super::types::CodeableConcept>>,
65 #[doc = "The human readable description of this population criteria."]
66 pub r#description: Option<super::super::types::Markdown>,
67 #[doc = "An expression that specifies the criteria for the population, typically the name of an expression in a library."]
68 pub r#criteria: Option<Box<super::super::types::Expression>>,
69 #[doc = "A Group resource that defines this population as a set of characteristics."]
70 pub r#group_definition: Option<Box<super::super::types::Reference>>,
71 #[doc = "The id of a population element in this measure that provides the input for this population criteria. In most cases, the scoring structure of the measure implies specific relationships (e.g. the Numerator uses the Denominator as the source in a proportion scoring). In some cases, however, multiple possible choices exist and must be resolved explicitly. For example in a ratio measure with multiple initial populations, the denominator must specify which population should be used as the starting point."]
72 pub r#input_population_id: Option<super::super::types::String>,
73 #[doc = "Specifies which method should be used to aggregate measure observation values. For most scoring types, this is implied by scoring (e.g. a proportion measure counts members of the populations). For continuous variables, however, this information must be specified to ensure correct calculation."]
74 pub r#aggregate_method: Option<Box<super::super::types::CodeableConcept>>,
75}
76#[allow(clippy::derivable_impls)]
77impl Default for MeasureGroupPopulation {
78 fn default() -> Self {
79 Self {
80 r#id: Default::default(),
81 r#extension: Default::default(),
82 r#modifier_extension: Default::default(),
83 r#link_id: Default::default(),
84 r#code: Default::default(),
85 r#description: Default::default(),
86 r#criteria: Default::default(),
87 r#group_definition: Default::default(),
88 r#input_population_id: Default::default(),
89 r#aggregate_method: Default::default(),
90 }
91 }
92}
93#[doc = "A component of the stratifier criteria for the measure report, specified as either the name of a valid CQL expression defined within a referenced library or a valid FHIR Resource Path."]
94#[derive(Debug, Clone, PartialEq)]
95pub struct MeasureGroupStratifierComponent {
96 #[doc = "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."]
97 pub r#id: Option<std::string::String>,
98 #[doc = "May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and managable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension."]
99 pub r#extension: Vec<super::super::types::Extension>,
100 #[doc = "May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and managable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself)."]
101 pub r#modifier_extension: Vec<super::super::types::Extension>,
102 #[doc = "An identifier that is unique within the Measure allowing linkage to the equivalent item in a MeasureReport resource."]
103 pub r#link_id: Option<super::super::types::String>,
104 #[doc = "Indicates a meaning for the stratifier component. This can be as simple as a unique identifier, or it can establish meaning in a broader context by drawing from a terminology, allowing stratifiers to be correlated across measures."]
105 pub r#code: Option<Box<super::super::types::CodeableConcept>>,
106 #[doc = "The human readable description of this stratifier criteria component."]
107 pub r#description: Option<super::super::types::Markdown>,
108 #[doc = "An expression that specifies the criteria for this component of the stratifier. This is typically the name of an expression defined within a referenced library, but it may also be a path to a stratifier element."]
109 pub r#criteria: Option<Box<super::super::types::Expression>>,
110 #[doc = "A Group resource that defines this population as a set of characteristics."]
111 pub r#group_definition: Option<Box<super::super::types::Reference>>,
112}
113#[allow(clippy::derivable_impls)]
114impl Default for MeasureGroupStratifierComponent {
115 fn default() -> Self {
116 Self {
117 r#id: Default::default(),
118 r#extension: Default::default(),
119 r#modifier_extension: Default::default(),
120 r#link_id: Default::default(),
121 r#code: Default::default(),
122 r#description: Default::default(),
123 r#criteria: Default::default(),
124 r#group_definition: Default::default(),
125 }
126 }
127}
128#[doc = "The stratifier criteria for the measure report, specified as either the name of a valid CQL expression defined within a referenced library or a valid FHIR Resource Path."]
129#[derive(Debug, Clone, PartialEq)]
130pub struct MeasureGroupStratifier {
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 managable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension."]
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 managable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself)."]
136 pub r#modifier_extension: Vec<super::super::types::Extension>,
137 #[doc = "An identifier that is unique within the Measure allowing linkage to the equivalent item in a MeasureReport resource."]
138 pub r#link_id: Option<super::super::types::String>,
139 #[doc = "Indicates a meaning for the stratifier. This can be as simple as a unique identifier, or it can establish meaning in a broader context by drawing from a terminology, allowing stratifiers to be correlated across measures."]
140 pub r#code: Option<Box<super::super::types::CodeableConcept>>,
141 #[doc = "The human readable description of this stratifier criteria."]
142 pub r#description: Option<super::super::types::Markdown>,
143 #[doc = "An expression that specifies the criteria for the stratifier. This is typically the name of an expression defined within a referenced library, but it may also be a path to a stratifier element."]
144 pub r#criteria: Option<Box<super::super::types::Expression>>,
145 #[doc = "A Group resource that defines this population as a set of characteristics."]
146 pub r#group_definition: Option<Box<super::super::types::Reference>>,
147 #[doc = "A component of the stratifier criteria for the measure report, specified as either the name of a valid CQL expression defined within a referenced library or a valid FHIR Resource Path."]
148 pub r#component: Vec<MeasureGroupStratifierComponent>,
149}
150#[allow(clippy::derivable_impls)]
151impl Default for MeasureGroupStratifier {
152 fn default() -> Self {
153 Self {
154 r#id: Default::default(),
155 r#extension: Default::default(),
156 r#modifier_extension: Default::default(),
157 r#link_id: Default::default(),
158 r#code: Default::default(),
159 r#description: Default::default(),
160 r#criteria: Default::default(),
161 r#group_definition: Default::default(),
162 r#component: Default::default(),
163 }
164 }
165}
166#[doc = "A group of population criteria for the measure."]
167#[derive(Debug, Clone, PartialEq)]
168pub struct MeasureGroup {
169 #[doc = "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."]
170 pub r#id: Option<std::string::String>,
171 #[doc = "May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and managable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension."]
172 pub r#extension: Vec<super::super::types::Extension>,
173 #[doc = "May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and managable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself)."]
174 pub r#modifier_extension: Vec<super::super::types::Extension>,
175 #[doc = "An identifier that is unique within the Measure allowing linkage to the equivalent item in a MeasureReport resource."]
176 pub r#link_id: Option<super::super::types::String>,
177 #[doc = "Indicates a meaning for the group. This can be as simple as a unique identifier, or it can establish meaning in a broader context by drawing from a terminology, allowing groups to be correlated across measures."]
178 pub r#code: Option<Box<super::super::types::CodeableConcept>>,
179 #[doc = "The human readable description of this population group."]
180 pub r#description: Option<super::super::types::Markdown>,
181 #[doc = "Indicates whether the measure is used to examine a process, an outcome over time, a patient-reported outcome, or a structure measure such as utilization."]
182 pub r#type: Vec<super::super::types::CodeableConcept>,
183 #[doc = "The intended subjects for the measure. If this element is not provided, a Patient subject is assumed, but the subject of the measure can be anything."]
184 pub r#subject: Option<MeasureGroupSubject>,
185 #[doc = "The population basis specifies the type of elements in the population. For a subject-based measure, this is boolean (because the subject and the population basis are the same, and the population criteria define yes/no values for each individual in the population). For measures that have a population basis that is different than the subject, this element specifies the type of the population basis. For example, an encounter-based measure has a subject of Patient and a population basis of Encounter, and the population criteria all return lists of Encounters."]
186 pub r#basis: Option<super::super::types::Code>,
187 #[doc = "Indicates how the calculation is performed for the measure, including proportion, ratio, continuous-variable, and cohort. The value set is extensible, allowing additional measure scoring types to be represented."]
188 pub r#scoring: Option<Box<super::super::types::CodeableConcept>>,
189 #[doc = "Defines the expected units of measure for the measure score. This element SHOULD be specified as a UCUM unit."]
190 pub r#scoring_unit: Option<Box<super::super::types::CodeableConcept>>,
191 #[doc = "Describes how to combine the information calculated, based on logic in each of several populations, into one summarized result."]
192 pub r#rate_aggregation: Option<super::super::types::Markdown>,
193 #[doc = "Information on whether an increase or decrease in score is the preferred result (e.g., a higher score indicates better quality OR a lower score indicates better quality OR quality is within a range)."]
194 pub r#improvement_notation: Option<Box<super::super::types::CodeableConcept>>,
195 #[doc = "A reference to a Library resource containing the formal logic used by the measure group."]
196 pub r#library: Vec<super::super::types::Canonical>,
197 #[doc = "A population criteria for the measure."]
198 pub r#population: Vec<MeasureGroupPopulation>,
199 #[doc = "The stratifier criteria for the measure report, specified as either the name of a valid CQL expression defined within a referenced library or a valid FHIR Resource Path."]
200 pub r#stratifier: Vec<MeasureGroupStratifier>,
201}
202#[allow(clippy::derivable_impls)]
203impl Default for MeasureGroup {
204 fn default() -> Self {
205 Self {
206 r#id: Default::default(),
207 r#extension: Default::default(),
208 r#modifier_extension: Default::default(),
209 r#link_id: Default::default(),
210 r#code: Default::default(),
211 r#description: Default::default(),
212 r#type: Default::default(),
213 r#subject: Default::default(),
214 r#basis: Default::default(),
215 r#scoring: Default::default(),
216 r#scoring_unit: Default::default(),
217 r#rate_aggregation: Default::default(),
218 r#improvement_notation: Default::default(),
219 r#library: Default::default(),
220 r#population: Default::default(),
221 r#stratifier: Default::default(),
222 }
223 }
224}
225#[doc = "The supplemental data criteria for the measure report, specified as either the name of a valid CQL expression within a referenced library, or a valid FHIR Resource Path."]
226#[derive(Debug, Clone, PartialEq)]
227pub struct MeasureSupplementalData {
228 #[doc = "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."]
229 pub r#id: Option<std::string::String>,
230 #[doc = "May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and managable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension."]
231 pub r#extension: Vec<super::super::types::Extension>,
232 #[doc = "May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and managable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself)."]
233 pub r#modifier_extension: Vec<super::super::types::Extension>,
234 #[doc = "An identifier that is unique within the Measure allowing linkage to the equivalent item in a MeasureReport resource."]
235 pub r#link_id: Option<super::super::types::String>,
236 #[doc = "Indicates a meaning for the supplemental data. This can be as simple as a unique identifier, or it can establish meaning in a broader context by drawing from a terminology, allowing supplemental data to be correlated across measures."]
237 pub r#code: Option<Box<super::super::types::CodeableConcept>>,
238 #[doc = "An indicator of the intended usage for the supplemental data element. Supplemental data indicates the data is additional information requested to augment the measure information. Risk adjustment factor indicates the data is additional information used to calculate risk adjustment factors when applying a risk model to the measure calculation."]
239 pub r#usage: Vec<super::super::types::CodeableConcept>,
240 #[doc = "The human readable description of this supplemental data."]
241 pub r#description: Option<super::super::types::Markdown>,
242 #[doc = "The criteria for the supplemental data. This is typically the name of a valid expression defined within a referenced library, but it may also be a path to a specific data element. The criteria defines the data to be returned for this element."]
243 pub r#criteria: Box<super::super::types::Expression>,
244}
245#[allow(clippy::derivable_impls)]
246impl Default for MeasureSupplementalData {
247 fn default() -> Self {
248 Self {
249 r#id: Default::default(),
250 r#extension: Default::default(),
251 r#modifier_extension: Default::default(),
252 r#link_id: Default::default(),
253 r#code: Default::default(),
254 r#usage: Default::default(),
255 r#description: Default::default(),
256 r#criteria: Box::new(super::super::types::Expression {
257 id: Some("$invalid".to_string()),
258 ..Default::default()
259 }),
260 }
261 }
262}
263#[doc = "The Measure resource provides the definition of a quality measure."]
264#[derive(Debug, Clone, PartialEq)]
265pub struct Measure {
266 #[doc = "The logical id of the resource, as used in the URL for the resource. Once assigned, this value never changes."]
267 pub r#id: Option<super::super::types::Id>,
268 #[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."]
269 pub r#meta: Option<Box<super::super::types::Meta>>,
270 #[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."]
271 pub r#implicit_rules: Option<super::super::types::Uri>,
272 #[doc = "The base language in which the resource is written."]
273 pub r#language: Option<super::super::types::Code>,
274 #[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."]
275 pub r#text: Option<Box<super::super::types::Narrative>>,
276 #[doc = "These resources do not have an independent existence apart from the resource that contains them - they cannot be identified independently, nor can they have their own independent transaction scope. This is allowed to be a Parameters resource if and only if it is referenced by a resource that provides context/meaning."]
277 pub r#contained: Vec<super::super::Resource>,
278 #[doc = "May be used to represent additional information that is not part of the basic definition of the resource. To make the use of extensions safe and managable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension."]
279 pub r#extension: Vec<super::super::types::Extension>,
280 #[doc = "May be used to represent additional information that is not part of the basic definition of the resource and that modifies the understanding of the element that contains it and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and managable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself)."]
281 pub r#modifier_extension: Vec<super::super::types::Extension>,
282 #[doc = "An absolute URI that is used to identify this measure when it is referenced in a specification, model, design or an instance; also called its canonical identifier. This SHOULD be globally unique and SHOULD be a literal address at which an authoritative instance of this measure is (or will be) published. This URL can be the target of a canonical reference. It SHALL remain the same when the measure is stored on different servers."]
283 pub r#url: Option<super::super::types::Uri>,
284 #[doc = "A formal identifier that is used to identify this measure when it is represented in other formats, or referenced in a specification, model, design or an instance."]
285 pub r#identifier: Vec<super::super::types::Identifier>,
286 #[doc = "The identifier that is used to identify this version of the measure when it is referenced in a specification, model, design or instance. This is an arbitrary value managed by the measure 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."]
287 pub r#version: Option<super::super::types::String>,
288 #[doc = "Indicates the mechanism used to compare versions to determine which is more current."]
289 pub r#version_algorithm: Option<MeasureVersionAlgorithm>,
290 #[doc = "A natural language name identifying the measure. This name should be usable as an identifier for the module by machine processing applications such as code generation."]
291 pub r#name: Option<super::super::types::String>,
292 #[doc = "A short, descriptive, user-friendly title for the measure."]
293 pub r#title: Option<super::super::types::String>,
294 #[doc = "An explanatory or alternate title for the measure giving additional information about its content."]
295 pub r#subtitle: Option<super::super::types::String>,
296 #[doc = "The status of this measure. Enables tracking the life-cycle of the content."]
297 pub r#status: super::super::types::Code,
298 #[doc = "A Boolean value to indicate that this measure is authored for testing purposes (or education/evaluation/marketing) and is not intended to be used for genuine usage."]
299 pub r#experimental: Option<super::super::types::Boolean>,
300 #[doc = "The intended subjects for the measure. If this element is not provided, a Patient subject is assumed, but the subject of the measure can be anything."]
301 pub r#subject: Option<MeasureSubject>,
302 #[doc = "The population basis specifies the type of elements in the population. For a subject-based measure, this is boolean (because the subject and the population basis are the same, and the population criteria define yes/no values for each individual in the population). For measures that have a population basis that is different than the subject, this element specifies the type of the population basis. For example, an encounter-based measure has a subject of Patient and a population basis of Encounter, and the population criteria all return lists of Encounters."]
303 pub r#basis: Option<super::super::types::Code>,
304 #[doc = "The date (and optionally time) when the measure was last significantly changed. The date must change when the business version changes and it must change if the status code changes. In addition, it should change when the substantive content of the measure changes."]
305 pub r#date: Option<super::super::types::DateTime>,
306 #[doc = "The name of the organization or individual responsible for the release and ongoing maintenance of the measure."]
307 pub r#publisher: Option<super::super::types::String>,
308 #[doc = "Contact details to assist a user in finding and communicating with the publisher."]
309 pub r#contact: Vec<super::super::types::ContactDetail>,
310 #[doc = "A free text natural language description of the measure from a consumer's perspective."]
311 pub r#description: Option<super::super::types::Markdown>,
312 #[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 measure instances."]
313 pub r#use_context: Vec<super::super::types::UsageContext>,
314 #[doc = "A legal or geographic region in which the measure is intended to be used."]
315 pub r#jurisdiction: Vec<super::super::types::CodeableConcept>,
316 #[doc = "Explanation of why this measure is needed and why it has been designed as it has."]
317 pub r#purpose: Option<super::super::types::Markdown>,
318 #[doc = "A detailed description, from a clinical perspective, of how the measure is used."]
319 pub r#usage: Option<super::super::types::Markdown>,
320 #[doc = "A copyright statement relating to the measure and/or its contents. Copyright statements are generally legal restrictions on the use and publishing of the measure."]
321 pub r#copyright: Option<super::super::types::Markdown>,
322 #[doc = "A short string (<50 characters), suitable for inclusion in a page footer that identifies the copyright holder, effective period, and optionally whether rights are resctricted. (e.g. 'All rights reserved', 'Some rights reserved')."]
323 pub r#copyright_label: Option<super::super::types::String>,
324 #[doc = "The date on which the resource content was approved by the publisher. Approval happens once when the content is officially approved for usage."]
325 pub r#approval_date: Option<super::super::types::Date>,
326 #[doc = "The date on which the resource content was last reviewed. Review happens periodically after approval but does not change the original approval date."]
327 pub r#last_review_date: Option<super::super::types::Date>,
328 #[doc = "The period during which the measure content was or is planned to be in active use."]
329 pub r#effective_period: Option<Box<super::super::types::Period>>,
330 #[doc = "Descriptive topics related to the content of the measure. Topics provide a high-level categorization grouping types of measures that can be useful for filtering and searching."]
331 pub r#topic: Vec<super::super::types::CodeableConcept>,
332 #[doc = "An individiual or organization primarily involved in the creation and maintenance of the content."]
333 pub r#author: Vec<super::super::types::ContactDetail>,
334 #[doc = "An individual or organization primarily responsible for internal coherence of the content."]
335 pub r#editor: Vec<super::super::types::ContactDetail>,
336 #[doc = "An individual or organization asserted by the publisher to be primarily responsible for review of some aspect of the content."]
337 pub r#reviewer: Vec<super::super::types::ContactDetail>,
338 #[doc = "An individual or organization asserted by the publisher to be responsible for officially endorsing the content for use in some setting."]
339 pub r#endorser: Vec<super::super::types::ContactDetail>,
340 #[doc = "Related artifacts such as additional documentation, justification, or bibliographic references."]
341 pub r#related_artifact: Vec<super::super::types::RelatedArtifact>,
342 #[doc = "A reference to a Library resource containing the formal logic used by the measure."]
343 pub r#library: Vec<super::super::types::Canonical>,
344 #[doc = "Notices and disclaimers regarding the use of the measure or related to intellectual property (such as code systems) referenced by the measure."]
345 pub r#disclaimer: Option<super::super::types::Markdown>,
346 #[doc = "Indicates how the calculation is performed for the measure, including proportion, ratio, continuous-variable, and cohort. The value set is extensible, allowing additional measure scoring types to be represented."]
347 pub r#scoring: Option<Box<super::super::types::CodeableConcept>>,
348 #[doc = "Defines the expected units of measure for the measure score. This element SHOULD be specified as a UCUM unit."]
349 pub r#scoring_unit: Option<Box<super::super::types::CodeableConcept>>,
350 #[doc = "If this is a composite measure, the scoring method used to combine the component measures to determine the composite score."]
351 pub r#composite_scoring: Option<Box<super::super::types::CodeableConcept>>,
352 #[doc = "Indicates whether the measure is used to examine a process, an outcome over time, a patient-reported outcome, or a structure measure such as utilization."]
353 pub r#type: Vec<super::super::types::CodeableConcept>,
354 #[doc = "A description of the risk adjustment factors that may impact the resulting score for the measure and how they may be accounted for when computing and reporting measure results."]
355 pub r#risk_adjustment: Option<super::super::types::Markdown>,
356 #[doc = "Describes how to combine the information calculated, based on logic in each of several populations, into one summarized result."]
357 pub r#rate_aggregation: Option<super::super::types::Markdown>,
358 #[doc = "Provides a succinct statement of the need for the measure. Usually includes statements pertaining to importance criterion: impact, gap in care, and evidence."]
359 pub r#rationale: Option<super::super::types::Markdown>,
360 #[doc = "Provides a summary of relevant clinical guidelines or other clinical recommendations supporting the measure."]
361 pub r#clinical_recommendation_statement: Option<super::super::types::Markdown>,
362 #[doc = "Information on whether an increase or decrease in score is the preferred result (e.g., a higher score indicates better quality OR a lower score indicates better quality OR quality is within a range)."]
363 pub r#improvement_notation: Option<Box<super::super::types::CodeableConcept>>,
364 #[doc = "Provides a description of an individual term used within the measure."]
365 pub r#term: Vec<MeasureTerm>,
366 #[doc = "Additional guidance for the measure including how it can be used in a clinical context, and the intent of the measure."]
367 pub r#guidance: Option<super::super::types::Markdown>,
368 #[doc = "A group of population criteria for the measure."]
369 pub r#group: Vec<MeasureGroup>,
370 #[doc = "The supplemental data criteria for the measure report, specified as either the name of a valid CQL expression within a referenced library, or a valid FHIR Resource Path."]
371 pub r#supplemental_data: Vec<MeasureSupplementalData>,
372}
373#[allow(clippy::derivable_impls)]
374impl Default for Measure {
375 fn default() -> Self {
376 Self {
377 r#id: Default::default(),
378 r#meta: Default::default(),
379 r#implicit_rules: Default::default(),
380 r#language: Default::default(),
381 r#text: Default::default(),
382 r#contained: Default::default(),
383 r#extension: Default::default(),
384 r#modifier_extension: Default::default(),
385 r#url: Default::default(),
386 r#identifier: Default::default(),
387 r#version: Default::default(),
388 r#version_algorithm: Default::default(),
389 r#name: Default::default(),
390 r#title: Default::default(),
391 r#subtitle: Default::default(),
392 r#status: super::super::types::Code {
393 id: Some("$invalid".to_string()),
394 ..Default::default()
395 },
396 r#experimental: Default::default(),
397 r#subject: Default::default(),
398 r#basis: Default::default(),
399 r#date: Default::default(),
400 r#publisher: Default::default(),
401 r#contact: Default::default(),
402 r#description: Default::default(),
403 r#use_context: Default::default(),
404 r#jurisdiction: Default::default(),
405 r#purpose: Default::default(),
406 r#usage: Default::default(),
407 r#copyright: Default::default(),
408 r#copyright_label: Default::default(),
409 r#approval_date: Default::default(),
410 r#last_review_date: Default::default(),
411 r#effective_period: Default::default(),
412 r#topic: Default::default(),
413 r#author: Default::default(),
414 r#editor: Default::default(),
415 r#reviewer: Default::default(),
416 r#endorser: Default::default(),
417 r#related_artifact: Default::default(),
418 r#library: Default::default(),
419 r#disclaimer: Default::default(),
420 r#scoring: Default::default(),
421 r#scoring_unit: Default::default(),
422 r#composite_scoring: Default::default(),
423 r#type: Default::default(),
424 r#risk_adjustment: Default::default(),
425 r#rate_aggregation: Default::default(),
426 r#rationale: Default::default(),
427 r#clinical_recommendation_statement: Default::default(),
428 r#improvement_notation: Default::default(),
429 r#term: Default::default(),
430 r#guidance: Default::default(),
431 r#group: Default::default(),
432 r#supplemental_data: Default::default(),
433 }
434 }
435}