fhirbolt_model/generated/r5/resources/
coverage_eligibility_request.rs

1// Generated on 2023-05-17 by fhirbolt-codegen v0.10.0
2#[doc = "A date or period in the past or future indicating when the event occurred or is expectd to occur."]
3#[derive(Default, Debug, Clone, PartialEq)]
4pub enum CoverageEligibilityRequestEventWhen {
5    DateTime(super::super::types::DateTime),
6    Period(Box<super::super::types::Period>),
7    #[default]
8    Invalid,
9}
10#[doc = "The date or dates when the enclosed suite of services were performed or completed."]
11#[derive(Default, Debug, Clone, PartialEq)]
12pub enum CoverageEligibilityRequestServiced {
13    Date(super::super::types::Date),
14    Period(Box<super::super::types::Period>),
15    #[default]
16    Invalid,
17}
18#[doc = "The nature of illness or problem in a coded form or as a reference to an external defined Condition."]
19#[derive(Default, Debug, Clone, PartialEq)]
20pub enum CoverageEligibilityRequestItemDiagnosisDiagnosis {
21    CodeableConcept(Box<super::super::types::CodeableConcept>),
22    Reference(Box<super::super::types::Reference>),
23    #[default]
24    Invalid,
25}
26#[doc = "Information code for an event with a corresponding date or period."]
27#[derive(Debug, Clone, PartialEq)]
28pub struct CoverageEligibilityRequestEvent {
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 coded event such as when a service is expected or a card printed."]
36    pub r#type: Box<super::super::types::CodeableConcept>,
37    #[doc = "A date or period in the past or future indicating when the event occurred or is expectd to occur."]
38    pub r#when: CoverageEligibilityRequestEventWhen,
39}
40#[allow(clippy::derivable_impls)]
41impl Default for CoverageEligibilityRequestEvent {
42    fn default() -> Self {
43        Self {
44            r#id: Default::default(),
45            r#extension: Default::default(),
46            r#modifier_extension: Default::default(),
47            r#type: Box::new(super::super::types::CodeableConcept {
48                id: Some("$invalid".to_string()),
49                ..Default::default()
50            }),
51            r#when: Default::default(),
52        }
53    }
54}
55#[doc = "Additional information codes regarding exceptions, special considerations, the condition, situation, prior or concurrent issues."]
56#[derive(Debug, Clone, PartialEq)]
57pub struct CoverageEligibilityRequestSupportingInfo {
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 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."]
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 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)."]
63    pub r#modifier_extension: Vec<super::super::types::Extension>,
64    #[doc = "A number to uniquely identify supporting information entries."]
65    pub r#sequence: super::super::types::PositiveInt,
66    #[doc = "Additional data or information such as resources, documents, images etc. including references to the data or the actual inclusion of the data."]
67    pub r#information: Box<super::super::types::Reference>,
68    #[doc = "The supporting materials are applicable for all detail items, product/servce categories and specific billing codes."]
69    pub r#applies_to_all: Option<super::super::types::Boolean>,
70}
71#[allow(clippy::derivable_impls)]
72impl Default for CoverageEligibilityRequestSupportingInfo {
73    fn default() -> Self {
74        Self {
75            r#id: Default::default(),
76            r#extension: Default::default(),
77            r#modifier_extension: Default::default(),
78            r#sequence: super::super::types::PositiveInt {
79                id: Some("$invalid".to_string()),
80                ..Default::default()
81            },
82            r#information: Box::new(super::super::types::Reference {
83                id: Some("$invalid".to_string()),
84                ..Default::default()
85            }),
86            r#applies_to_all: Default::default(),
87        }
88    }
89}
90#[doc = "Financial instruments for reimbursement for the health care products and services."]
91#[derive(Debug, Clone, PartialEq)]
92pub struct CoverageEligibilityRequestInsurance {
93    #[doc = "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."]
94    pub r#id: Option<std::string::String>,
95    #[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."]
96    pub r#extension: Vec<super::super::types::Extension>,
97    #[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)."]
98    pub r#modifier_extension: Vec<super::super::types::Extension>,
99    #[doc = "A flag to indicate that this Coverage is to be used for evaluation of this request when set to true."]
100    pub r#focal: Option<super::super::types::Boolean>,
101    #[doc = "Reference to the insurance card level information contained in the Coverage resource. The coverage issuing insurer will use these details to locate the patient's actual coverage within the insurer's information system."]
102    pub r#coverage: Box<super::super::types::Reference>,
103    #[doc = "A business agreement number established between the provider and the insurer for special business processing purposes."]
104    pub r#business_arrangement: Option<super::super::types::String>,
105}
106#[allow(clippy::derivable_impls)]
107impl Default for CoverageEligibilityRequestInsurance {
108    fn default() -> Self {
109        Self {
110            r#id: Default::default(),
111            r#extension: Default::default(),
112            r#modifier_extension: Default::default(),
113            r#focal: Default::default(),
114            r#coverage: Box::new(super::super::types::Reference {
115                id: Some("$invalid".to_string()),
116                ..Default::default()
117            }),
118            r#business_arrangement: Default::default(),
119        }
120    }
121}
122#[doc = "Patient diagnosis for which care is sought."]
123#[derive(Debug, Clone, PartialEq)]
124pub struct CoverageEligibilityRequestItemDiagnosis {
125    #[doc = "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."]
126    pub r#id: Option<std::string::String>,
127    #[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."]
128    pub r#extension: Vec<super::super::types::Extension>,
129    #[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)."]
130    pub r#modifier_extension: Vec<super::super::types::Extension>,
131    #[doc = "The nature of illness or problem in a coded form or as a reference to an external defined Condition."]
132    pub r#diagnosis: Option<CoverageEligibilityRequestItemDiagnosisDiagnosis>,
133}
134#[allow(clippy::derivable_impls)]
135impl Default for CoverageEligibilityRequestItemDiagnosis {
136    fn default() -> Self {
137        Self {
138            r#id: Default::default(),
139            r#extension: Default::default(),
140            r#modifier_extension: Default::default(),
141            r#diagnosis: Default::default(),
142        }
143    }
144}
145#[doc = "Service categories or billable services for which benefit details and/or an authorization prior to service delivery may be required by the payor."]
146#[derive(Debug, Clone, PartialEq)]
147pub struct CoverageEligibilityRequestItem {
148    #[doc = "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."]
149    pub r#id: Option<std::string::String>,
150    #[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."]
151    pub r#extension: Vec<super::super::types::Extension>,
152    #[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)."]
153    pub r#modifier_extension: Vec<super::super::types::Extension>,
154    #[doc = "Exceptions, special conditions and supporting information applicable for this service or product line."]
155    pub r#supporting_info_sequence: Vec<super::super::types::PositiveInt>,
156    #[doc = "Code to identify the general type of benefits under which products and services are provided."]
157    pub r#category: Option<Box<super::super::types::CodeableConcept>>,
158    #[doc = "This contains the product, service, drug or other billing code for the item."]
159    pub r#product_or_service: Option<Box<super::super::types::CodeableConcept>>,
160    #[doc = "Item typification or modifiers codes to convey additional context for the product or service."]
161    pub r#modifier: Vec<super::super::types::CodeableConcept>,
162    #[doc = "The practitioner who is responsible for the product or service to be rendered to the patient."]
163    pub r#provider: Option<Box<super::super::types::Reference>>,
164    #[doc = "The number of repetitions of a service or product."]
165    pub r#quantity: Option<Box<super::super::types::Quantity>>,
166    #[doc = "The amount charged to the patient by the provider for a single unit."]
167    pub r#unit_price: Option<Box<super::super::types::Money>>,
168    #[doc = "Facility where the services will be provided."]
169    pub r#facility: Option<Box<super::super::types::Reference>>,
170    #[doc = "Patient diagnosis for which care is sought."]
171    pub r#diagnosis: Vec<CoverageEligibilityRequestItemDiagnosis>,
172    #[doc = "The plan/proposal/order describing the proposed service in detail."]
173    pub r#detail: Vec<super::super::types::Reference>,
174}
175#[allow(clippy::derivable_impls)]
176impl Default for CoverageEligibilityRequestItem {
177    fn default() -> Self {
178        Self {
179            r#id: Default::default(),
180            r#extension: Default::default(),
181            r#modifier_extension: Default::default(),
182            r#supporting_info_sequence: Default::default(),
183            r#category: Default::default(),
184            r#product_or_service: Default::default(),
185            r#modifier: Default::default(),
186            r#provider: Default::default(),
187            r#quantity: Default::default(),
188            r#unit_price: Default::default(),
189            r#facility: Default::default(),
190            r#diagnosis: Default::default(),
191            r#detail: Default::default(),
192        }
193    }
194}
195#[doc = "The CoverageEligibilityRequest provides patient and insurance coverage information to an insurer for them to respond, in the form of an CoverageEligibilityResponse, with information regarding whether the stated coverage is valid and in-force and optionally to provide the insurance details of the policy."]
196#[derive(Debug, Clone, PartialEq)]
197pub struct CoverageEligibilityRequest {
198    #[doc = "The logical id of the resource, as used in the URL for the resource. Once assigned, this value never changes."]
199    pub r#id: Option<super::super::types::Id>,
200    #[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."]
201    pub r#meta: Option<Box<super::super::types::Meta>>,
202    #[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."]
203    pub r#implicit_rules: Option<super::super::types::Uri>,
204    #[doc = "The base language in which the resource is written."]
205    pub r#language: Option<super::super::types::Code>,
206    #[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."]
207    pub r#text: Option<Box<super::super::types::Narrative>>,
208    #[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."]
209    pub r#contained: Vec<super::super::Resource>,
210    #[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."]
211    pub r#extension: Vec<super::super::types::Extension>,
212    #[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)."]
213    pub r#modifier_extension: Vec<super::super::types::Extension>,
214    #[doc = "A unique identifier assigned to this coverage eligiblity request."]
215    pub r#identifier: Vec<super::super::types::Identifier>,
216    #[doc = "The status of the resource instance."]
217    pub r#status: super::super::types::Code,
218    #[doc = "When the requestor expects the processor to complete processing."]
219    pub r#priority: Option<Box<super::super::types::CodeableConcept>>,
220    #[doc = "Code to specify whether requesting: prior authorization requirements for some service categories or billing codes; benefits for coverages specified or discovered; discovery and return of coverages for the patient; and/or validation that the specified coverage is in-force at the date/period specified or 'now' if not specified."]
221    pub r#purpose: Vec<super::super::types::Code>,
222    #[doc = "The party who is the beneficiary of the supplied coverage and for whom eligibility is sought."]
223    pub r#patient: Box<super::super::types::Reference>,
224    #[doc = "Information code for an event with a corresponding date or period."]
225    pub r#event: Vec<CoverageEligibilityRequestEvent>,
226    #[doc = "The date or dates when the enclosed suite of services were performed or completed."]
227    pub r#serviced: Option<CoverageEligibilityRequestServiced>,
228    #[doc = "The date when this resource was created."]
229    pub r#created: super::super::types::DateTime,
230    #[doc = "Person who created the request."]
231    pub r#enterer: Option<Box<super::super::types::Reference>>,
232    #[doc = "The provider which is responsible for the request."]
233    pub r#provider: Option<Box<super::super::types::Reference>>,
234    #[doc = "The Insurer who issued the coverage in question and is the recipient of the request."]
235    pub r#insurer: Box<super::super::types::Reference>,
236    #[doc = "Facility where the services are intended to be provided."]
237    pub r#facility: Option<Box<super::super::types::Reference>>,
238    #[doc = "Additional information codes regarding exceptions, special considerations, the condition, situation, prior or concurrent issues."]
239    pub r#supporting_info: Vec<CoverageEligibilityRequestSupportingInfo>,
240    #[doc = "Financial instruments for reimbursement for the health care products and services."]
241    pub r#insurance: Vec<CoverageEligibilityRequestInsurance>,
242    #[doc = "Service categories or billable services for which benefit details and/or an authorization prior to service delivery may be required by the payor."]
243    pub r#item: Vec<CoverageEligibilityRequestItem>,
244}
245#[allow(clippy::derivable_impls)]
246impl Default for CoverageEligibilityRequest {
247    fn default() -> Self {
248        Self {
249            r#id: Default::default(),
250            r#meta: Default::default(),
251            r#implicit_rules: Default::default(),
252            r#language: Default::default(),
253            r#text: Default::default(),
254            r#contained: Default::default(),
255            r#extension: Default::default(),
256            r#modifier_extension: Default::default(),
257            r#identifier: Default::default(),
258            r#status: super::super::types::Code {
259                id: Some("$invalid".to_string()),
260                ..Default::default()
261            },
262            r#priority: Default::default(),
263            r#purpose: Default::default(),
264            r#patient: Box::new(super::super::types::Reference {
265                id: Some("$invalid".to_string()),
266                ..Default::default()
267            }),
268            r#event: Default::default(),
269            r#serviced: Default::default(),
270            r#created: super::super::types::DateTime {
271                id: Some("$invalid".to_string()),
272                ..Default::default()
273            },
274            r#enterer: Default::default(),
275            r#provider: Default::default(),
276            r#insurer: Box::new(super::super::types::Reference {
277                id: Some("$invalid".to_string()),
278                ..Default::default()
279            }),
280            r#facility: Default::default(),
281            r#supporting_info: Default::default(),
282            r#insurance: Default::default(),
283            r#item: Default::default(),
284        }
285    }
286}