fhirbolt_model/generated/r4/resources/
charge_item_definition.rs

1// Generated on 2023-05-17 by fhirbolt-codegen v0.10.0
2#[doc = "Expressions that describe applicability criteria for the billing code."]
3#[derive(Debug, Clone, PartialEq)]
4pub struct ChargeItemDefinitionApplicability {
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 = "A brief, natural language description of the condition that effectively communicates the intended semantics."]
12    pub r#description: Option<super::super::types::String>,
13    #[doc = "The media type of the language for the expression, e.g. \"text/cql\" for Clinical Query Language expressions or \"text/fhirpath\" for FHIRPath expressions."]
14    pub r#language: Option<super::super::types::String>,
15    #[doc = "An expression that returns true or false, indicating whether the condition is satisfied. When using FHIRPath expressions, the %context environment variable must be replaced at runtime with the ChargeItem resource to which this definition is applied."]
16    pub r#expression: Option<super::super::types::String>,
17}
18#[allow(clippy::derivable_impls)]
19impl Default for ChargeItemDefinitionApplicability {
20    fn default() -> Self {
21        Self {
22            r#id: Default::default(),
23            r#extension: Default::default(),
24            r#modifier_extension: Default::default(),
25            r#description: Default::default(),
26            r#language: Default::default(),
27            r#expression: Default::default(),
28        }
29    }
30}
31#[doc = "The price for a ChargeItem may be calculated as a base price with surcharges/deductions that apply in certain conditions. A ChargeItemDefinition resource that defines the prices, factors and conditions that apply to a billing code is currently under development. The priceComponent element can be used to offer transparency to the recipient of the Invoice of how the prices have been calculated."]
32#[derive(Debug, Clone, PartialEq)]
33pub struct ChargeItemDefinitionPropertyGroupPriceComponent {
34    #[doc = "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."]
35    pub r#id: Option<std::string::String>,
36    #[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."]
37    pub r#extension: Vec<super::super::types::Extension>,
38    #[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)."]
39    pub r#modifier_extension: Vec<super::super::types::Extension>,
40    #[doc = "This code identifies the type of the component."]
41    pub r#type: super::super::types::Code,
42    #[doc = "A code that identifies the component. Codes may be used to differentiate between kinds of taxes, surcharges, discounts etc."]
43    pub r#code: Option<Box<super::super::types::CodeableConcept>>,
44    #[doc = "The factor that has been applied on the base price for calculating this component."]
45    pub r#factor: Option<super::super::types::Decimal>,
46    #[doc = "The amount calculated for this component."]
47    pub r#amount: Option<Box<super::super::types::Money>>,
48}
49#[allow(clippy::derivable_impls)]
50impl Default for ChargeItemDefinitionPropertyGroupPriceComponent {
51    fn default() -> Self {
52        Self {
53            r#id: Default::default(),
54            r#extension: Default::default(),
55            r#modifier_extension: Default::default(),
56            r#type: super::super::types::Code {
57                id: Some("$invalid".to_string()),
58                ..Default::default()
59            },
60            r#code: Default::default(),
61            r#factor: Default::default(),
62            r#amount: Default::default(),
63        }
64    }
65}
66#[doc = "Group of properties which are applicable under the same conditions. If no applicability rules are established for the group, then all properties always apply."]
67#[derive(Debug, Clone, PartialEq)]
68pub struct ChargeItemDefinitionPropertyGroup {
69    #[doc = "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."]
70    pub r#id: Option<std::string::String>,
71    #[doc = "May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension."]
72    pub r#extension: Vec<super::super::types::Extension>,
73    #[doc = "May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself)."]
74    pub r#modifier_extension: Vec<super::super::types::Extension>,
75    #[doc = "Expressions that describe applicability criteria for the priceComponent."]
76    pub r#applicability: Vec<ChargeItemDefinitionApplicability>,
77    #[doc = "The price for a ChargeItem may be calculated as a base price with surcharges/deductions that apply in certain conditions. A ChargeItemDefinition resource that defines the prices, factors and conditions that apply to a billing code is currently under development. The priceComponent element can be used to offer transparency to the recipient of the Invoice of how the prices have been calculated."]
78    pub r#price_component: Vec<ChargeItemDefinitionPropertyGroupPriceComponent>,
79}
80#[allow(clippy::derivable_impls)]
81impl Default for ChargeItemDefinitionPropertyGroup {
82    fn default() -> Self {
83        Self {
84            r#id: Default::default(),
85            r#extension: Default::default(),
86            r#modifier_extension: Default::default(),
87            r#applicability: Default::default(),
88            r#price_component: Default::default(),
89        }
90    }
91}
92#[doc = "The ChargeItemDefinition resource provides the properties that apply to the (billing) codes necessary to calculate costs and prices. The properties may differ largely depending on type and realm, therefore this resource gives only a rough structure and requires profiling for each type of billing code system."]
93#[derive(Debug, Clone, PartialEq)]
94pub struct ChargeItemDefinition {
95    #[doc = "The logical id of the resource, as used in the URL for the resource. Once assigned, this value never changes."]
96    pub r#id: Option<super::super::types::Id>,
97    #[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."]
98    pub r#meta: Option<Box<super::super::types::Meta>>,
99    #[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."]
100    pub r#implicit_rules: Option<super::super::types::Uri>,
101    #[doc = "The base language in which the resource is written."]
102    pub r#language: Option<super::super::types::Code>,
103    #[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."]
104    pub r#text: Option<Box<super::super::types::Narrative>>,
105    #[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."]
106    pub r#contained: Vec<super::super::Resource>,
107    #[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."]
108    pub r#extension: Vec<super::super::types::Extension>,
109    #[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)."]
110    pub r#modifier_extension: Vec<super::super::types::Extension>,
111    #[doc = "An absolute URI that is used to identify this charge item 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 charge item definition is (or will be) published. This URL can be the target of a canonical reference. It SHALL remain the same when the charge item definition is stored on different servers."]
112    pub r#url: super::super::types::Uri,
113    #[doc = "A formal identifier that is used to identify this charge item definition when it is represented in other formats, or referenced in a specification, model, design or an instance."]
114    pub r#identifier: Vec<super::super::types::Identifier>,
115    #[doc = "The identifier that is used to identify this version of the charge item definition when it is referenced in a specification, model, design or instance. This is an arbitrary value managed by the charge item 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 assets."]
116    pub r#version: Option<super::super::types::String>,
117    #[doc = "A short, descriptive, user-friendly title for the charge item definition."]
118    pub r#title: Option<super::super::types::String>,
119    #[doc = "The URL pointing to an externally-defined charge item definition that is adhered to in whole or in part by this definition."]
120    pub r#derived_from_uri: Vec<super::super::types::Uri>,
121    #[doc = "A larger definition of which this particular definition is a component or step."]
122    pub r#part_of: Vec<super::super::types::Canonical>,
123    #[doc = "As new versions of a protocol or guideline are defined, allows identification of what versions are replaced by a new instance."]
124    pub r#replaces: Vec<super::super::types::Canonical>,
125    #[doc = "The current state of the ChargeItemDefinition."]
126    pub r#status: super::super::types::Code,
127    #[doc = "A Boolean value to indicate that this charge item definition is authored for testing purposes (or education/evaluation/marketing) and is not intended to be used for genuine usage."]
128    pub r#experimental: Option<super::super::types::Boolean>,
129    #[doc = "The date  (and optionally time) when the charge item 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 charge item definition changes."]
130    pub r#date: Option<super::super::types::DateTime>,
131    #[doc = "The name of the organization or individual that published the charge item definition."]
132    pub r#publisher: Option<super::super::types::String>,
133    #[doc = "Contact details to assist a user in finding and communicating with the publisher."]
134    pub r#contact: Vec<super::super::types::ContactDetail>,
135    #[doc = "A free text natural language description of the charge item definition from a consumer's perspective."]
136    pub r#description: Option<super::super::types::Markdown>,
137    #[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 charge item definition instances."]
138    pub r#use_context: Vec<super::super::types::UsageContext>,
139    #[doc = "A legal or geographic region in which the charge item definition is intended to be used."]
140    pub r#jurisdiction: Vec<super::super::types::CodeableConcept>,
141    #[doc = "A copyright statement relating to the charge item definition and/or its contents. Copyright statements are generally legal restrictions on the use and publishing of the charge item definition."]
142    pub r#copyright: Option<super::super::types::Markdown>,
143    #[doc = "The date on which the resource content was approved by the publisher. Approval happens once when the content is officially approved for usage."]
144    pub r#approval_date: Option<super::super::types::Date>,
145    #[doc = "The date on which the resource content was last reviewed. Review happens periodically after approval but does not change the original approval date."]
146    pub r#last_review_date: Option<super::super::types::Date>,
147    #[doc = "The period during which the charge item definition content was or is planned to be in active use."]
148    pub r#effective_period: Option<Box<super::super::types::Period>>,
149    #[doc = "The defined billing details in this resource pertain to the given billing code."]
150    pub r#code: Option<Box<super::super::types::CodeableConcept>>,
151    #[doc = "The defined billing details in this resource pertain to the given product instance(s)."]
152    pub r#instance: Vec<super::super::types::Reference>,
153    #[doc = "Expressions that describe applicability criteria for the billing code."]
154    pub r#applicability: Vec<ChargeItemDefinitionApplicability>,
155    #[doc = "Group of properties which are applicable under the same conditions. If no applicability rules are established for the group, then all properties always apply."]
156    pub r#property_group: Vec<ChargeItemDefinitionPropertyGroup>,
157}
158#[allow(clippy::derivable_impls)]
159impl Default for ChargeItemDefinition {
160    fn default() -> Self {
161        Self {
162            r#id: Default::default(),
163            r#meta: Default::default(),
164            r#implicit_rules: Default::default(),
165            r#language: Default::default(),
166            r#text: Default::default(),
167            r#contained: Default::default(),
168            r#extension: Default::default(),
169            r#modifier_extension: Default::default(),
170            r#url: super::super::types::Uri {
171                id: Some("$invalid".to_string()),
172                ..Default::default()
173            },
174            r#identifier: Default::default(),
175            r#version: Default::default(),
176            r#title: Default::default(),
177            r#derived_from_uri: Default::default(),
178            r#part_of: Default::default(),
179            r#replaces: Default::default(),
180            r#status: super::super::types::Code {
181                id: Some("$invalid".to_string()),
182                ..Default::default()
183            },
184            r#experimental: Default::default(),
185            r#date: Default::default(),
186            r#publisher: Default::default(),
187            r#contact: Default::default(),
188            r#description: Default::default(),
189            r#use_context: Default::default(),
190            r#jurisdiction: Default::default(),
191            r#copyright: Default::default(),
192            r#approval_date: Default::default(),
193            r#last_review_date: Default::default(),
194            r#effective_period: Default::default(),
195            r#code: Default::default(),
196            r#instance: Default::default(),
197            r#applicability: Default::default(),
198            r#property_group: Default::default(),
199        }
200    }
201}