1#[doc = "The date or dates when the enclosed suite of services were performed or completed."]
3#[derive(Default, Debug, Clone, PartialEq)]
4pub enum CoverageEligibilityResponseServiced {
5 Date(super::super::types::Date),
6 Period(Box<super::super::types::Period>),
7 #[default]
8 Invalid,
9}
10#[doc = "The quantity of the benefit which is permitted under the coverage."]
11#[derive(Default, Debug, Clone, PartialEq)]
12pub enum CoverageEligibilityResponseInsuranceItemBenefitAllowed {
13 UnsignedInt(super::super::types::UnsignedInt),
14 String(super::super::types::String),
15 Money(Box<super::super::types::Money>),
16 #[default]
17 Invalid,
18}
19#[doc = "The quantity of the benefit which have been consumed to date."]
20#[derive(Default, Debug, Clone, PartialEq)]
21pub enum CoverageEligibilityResponseInsuranceItemBenefitUsed {
22 UnsignedInt(super::super::types::UnsignedInt),
23 String(super::super::types::String),
24 Money(Box<super::super::types::Money>),
25 #[default]
26 Invalid,
27}
28#[doc = "Benefits used to date."]
29#[derive(Debug, Clone, PartialEq)]
30pub struct CoverageEligibilityResponseInsuranceItemBenefit {
31 #[doc = "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."]
32 pub r#id: Option<std::string::String>,
33 #[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."]
34 pub r#extension: Vec<super::super::types::Extension>,
35 #[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)."]
36 pub r#modifier_extension: Vec<super::super::types::Extension>,
37 #[doc = "Classification of benefit being provided."]
38 pub r#type: Box<super::super::types::CodeableConcept>,
39 #[doc = "The quantity of the benefit which is permitted under the coverage."]
40 pub r#allowed: Option<CoverageEligibilityResponseInsuranceItemBenefitAllowed>,
41 #[doc = "The quantity of the benefit which have been consumed to date."]
42 pub r#used: Option<CoverageEligibilityResponseInsuranceItemBenefitUsed>,
43}
44#[allow(clippy::derivable_impls)]
45impl Default for CoverageEligibilityResponseInsuranceItemBenefit {
46 fn default() -> Self {
47 Self {
48 r#id: Default::default(),
49 r#extension: Default::default(),
50 r#modifier_extension: Default::default(),
51 r#type: Box::new(super::super::types::CodeableConcept {
52 id: Some("$invalid".to_string()),
53 ..Default::default()
54 }),
55 r#allowed: Default::default(),
56 r#used: Default::default(),
57 }
58 }
59}
60#[doc = "Benefits and optionally current balances, and authorization details by category or service."]
61#[derive(Debug, Clone, PartialEq)]
62pub struct CoverageEligibilityResponseInsuranceItem {
63 #[doc = "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."]
64 pub r#id: Option<std::string::String>,
65 #[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."]
66 pub r#extension: Vec<super::super::types::Extension>,
67 #[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)."]
68 pub r#modifier_extension: Vec<super::super::types::Extension>,
69 #[doc = "Code to identify the general type of benefits under which products and services are provided."]
70 pub r#category: Option<Box<super::super::types::CodeableConcept>>,
71 #[doc = "This contains the product, service, drug or other billing code for the item."]
72 pub r#product_or_service: Option<Box<super::super::types::CodeableConcept>>,
73 #[doc = "Item typification or modifiers codes to convey additional context for the product or service."]
74 pub r#modifier: Vec<super::super::types::CodeableConcept>,
75 #[doc = "The practitioner who is eligible for the provision of the product or service."]
76 pub r#provider: Option<Box<super::super::types::Reference>>,
77 #[doc = "True if the indicated class of service is excluded from the plan, missing or False indicates the product or service is included in the coverage."]
78 pub r#excluded: Option<super::super::types::Boolean>,
79 #[doc = "A short name or tag for the benefit."]
80 pub r#name: Option<super::super::types::String>,
81 #[doc = "A richer description of the benefit or services covered."]
82 pub r#description: Option<super::super::types::String>,
83 #[doc = "Is a flag to indicate whether the benefits refer to in-network providers or out-of-network providers."]
84 pub r#network: Option<Box<super::super::types::CodeableConcept>>,
85 #[doc = "Indicates if the benefits apply to an individual or to the family."]
86 pub r#unit: Option<Box<super::super::types::CodeableConcept>>,
87 #[doc = "The term or period of the values such as 'maximum lifetime benefit' or 'maximum annual visits'."]
88 pub r#term: Option<Box<super::super::types::CodeableConcept>>,
89 #[doc = "Benefits used to date."]
90 pub r#benefit: Vec<CoverageEligibilityResponseInsuranceItemBenefit>,
91 #[doc = "A boolean flag indicating whether a preauthorization is required prior to actual service delivery."]
92 pub r#authorization_required: Option<super::super::types::Boolean>,
93 #[doc = "Codes or comments regarding information or actions associated with the preauthorization."]
94 pub r#authorization_supporting: Vec<super::super::types::CodeableConcept>,
95 #[doc = "A web location for obtaining requirements or descriptive information regarding the preauthorization."]
96 pub r#authorization_url: Option<super::super::types::Uri>,
97}
98#[allow(clippy::derivable_impls)]
99impl Default for CoverageEligibilityResponseInsuranceItem {
100 fn default() -> Self {
101 Self {
102 r#id: Default::default(),
103 r#extension: Default::default(),
104 r#modifier_extension: Default::default(),
105 r#category: Default::default(),
106 r#product_or_service: Default::default(),
107 r#modifier: Default::default(),
108 r#provider: Default::default(),
109 r#excluded: Default::default(),
110 r#name: Default::default(),
111 r#description: Default::default(),
112 r#network: Default::default(),
113 r#unit: Default::default(),
114 r#term: Default::default(),
115 r#benefit: Default::default(),
116 r#authorization_required: Default::default(),
117 r#authorization_supporting: Default::default(),
118 r#authorization_url: Default::default(),
119 }
120 }
121}
122#[doc = "Financial instruments for reimbursement for the health care products and services."]
123#[derive(Debug, Clone, PartialEq)]
124pub struct CoverageEligibilityResponseInsurance {
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 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."]
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 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)."]
130 pub r#modifier_extension: Vec<super::super::types::Extension>,
131 #[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."]
132 pub r#coverage: Box<super::super::types::Reference>,
133 #[doc = "Flag indicating if the coverage provided is inforce currently if no service date(s) specified or for the whole duration of the service dates."]
134 pub r#inforce: Option<super::super::types::Boolean>,
135 #[doc = "The term of the benefits documented in this response."]
136 pub r#benefit_period: Option<Box<super::super::types::Period>>,
137 #[doc = "Benefits and optionally current balances, and authorization details by category or service."]
138 pub r#item: Vec<CoverageEligibilityResponseInsuranceItem>,
139}
140#[allow(clippy::derivable_impls)]
141impl Default for CoverageEligibilityResponseInsurance {
142 fn default() -> Self {
143 Self {
144 r#id: Default::default(),
145 r#extension: Default::default(),
146 r#modifier_extension: Default::default(),
147 r#coverage: Box::new(super::super::types::Reference {
148 id: Some("$invalid".to_string()),
149 ..Default::default()
150 }),
151 r#inforce: Default::default(),
152 r#benefit_period: Default::default(),
153 r#item: Default::default(),
154 }
155 }
156}
157#[doc = "Errors encountered during the processing of the request."]
158#[derive(Debug, Clone, PartialEq)]
159pub struct CoverageEligibilityResponseError {
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 = "An error code,from a specified code system, which details why the eligibility check could not be performed."]
167 pub r#code: Box<super::super::types::CodeableConcept>,
168}
169#[allow(clippy::derivable_impls)]
170impl Default for CoverageEligibilityResponseError {
171 fn default() -> Self {
172 Self {
173 r#id: Default::default(),
174 r#extension: Default::default(),
175 r#modifier_extension: Default::default(),
176 r#code: Box::new(super::super::types::CodeableConcept {
177 id: Some("$invalid".to_string()),
178 ..Default::default()
179 }),
180 }
181 }
182}
183#[doc = "This resource provides eligibility and plan details from the processing of an CoverageEligibilityRequest resource."]
184#[derive(Debug, Clone, PartialEq)]
185pub struct CoverageEligibilityResponse {
186 #[doc = "The logical id of the resource, as used in the URL for the resource. Once assigned, this value never changes."]
187 pub r#id: Option<super::super::types::Id>,
188 #[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."]
189 pub r#meta: Option<Box<super::super::types::Meta>>,
190 #[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."]
191 pub r#implicit_rules: Option<super::super::types::Uri>,
192 #[doc = "The base language in which the resource is written."]
193 pub r#language: Option<super::super::types::Code>,
194 #[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."]
195 pub r#text: Option<Box<super::super::types::Narrative>>,
196 #[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."]
197 pub r#contained: Vec<super::super::Resource>,
198 #[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."]
199 pub r#extension: Vec<super::super::types::Extension>,
200 #[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)."]
201 pub r#modifier_extension: Vec<super::super::types::Extension>,
202 #[doc = "A unique identifier assigned to this coverage eligiblity request."]
203 pub r#identifier: Vec<super::super::types::Identifier>,
204 #[doc = "The status of the resource instance."]
205 pub r#status: super::super::types::Code,
206 #[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."]
207 pub r#purpose: Vec<super::super::types::Code>,
208 #[doc = "The party who is the beneficiary of the supplied coverage and for whom eligibility is sought."]
209 pub r#patient: Box<super::super::types::Reference>,
210 #[doc = "The date or dates when the enclosed suite of services were performed or completed."]
211 pub r#serviced: Option<CoverageEligibilityResponseServiced>,
212 #[doc = "The date this resource was created."]
213 pub r#created: super::super::types::DateTime,
214 #[doc = "The provider which is responsible for the request."]
215 pub r#requestor: Option<Box<super::super::types::Reference>>,
216 #[doc = "Reference to the original request resource."]
217 pub r#request: Box<super::super::types::Reference>,
218 #[doc = "The outcome of the request processing."]
219 pub r#outcome: super::super::types::Code,
220 #[doc = "A human readable description of the status of the adjudication."]
221 pub r#disposition: Option<super::super::types::String>,
222 #[doc = "The Insurer who issued the coverage in question and is the author of the response."]
223 pub r#insurer: Box<super::super::types::Reference>,
224 #[doc = "Financial instruments for reimbursement for the health care products and services."]
225 pub r#insurance: Vec<CoverageEligibilityResponseInsurance>,
226 #[doc = "A reference from the Insurer to which these services pertain to be used on further communication and as proof that the request occurred."]
227 pub r#pre_auth_ref: Option<super::super::types::String>,
228 #[doc = "A code for the form to be used for printing the content."]
229 pub r#form: Option<Box<super::super::types::CodeableConcept>>,
230 #[doc = "Errors encountered during the processing of the request."]
231 pub r#error: Vec<CoverageEligibilityResponseError>,
232}
233#[allow(clippy::derivable_impls)]
234impl Default for CoverageEligibilityResponse {
235 fn default() -> Self {
236 Self {
237 r#id: Default::default(),
238 r#meta: Default::default(),
239 r#implicit_rules: Default::default(),
240 r#language: Default::default(),
241 r#text: Default::default(),
242 r#contained: Default::default(),
243 r#extension: Default::default(),
244 r#modifier_extension: Default::default(),
245 r#identifier: Default::default(),
246 r#status: super::super::types::Code {
247 id: Some("$invalid".to_string()),
248 ..Default::default()
249 },
250 r#purpose: Default::default(),
251 r#patient: Box::new(super::super::types::Reference {
252 id: Some("$invalid".to_string()),
253 ..Default::default()
254 }),
255 r#serviced: Default::default(),
256 r#created: super::super::types::DateTime {
257 id: Some("$invalid".to_string()),
258 ..Default::default()
259 },
260 r#requestor: Default::default(),
261 r#request: Box::new(super::super::types::Reference {
262 id: Some("$invalid".to_string()),
263 ..Default::default()
264 }),
265 r#outcome: super::super::types::Code {
266 id: Some("$invalid".to_string()),
267 ..Default::default()
268 },
269 r#disposition: Default::default(),
270 r#insurer: Box::new(super::super::types::Reference {
271 id: Some("$invalid".to_string()),
272 ..Default::default()
273 }),
274 r#insurance: Default::default(),
275 r#pre_auth_ref: Default::default(),
276 r#form: Default::default(),
277 r#error: Default::default(),
278 }
279 }
280}