candidhealth 0.38.2 → 0.39.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (28) hide show
  1. checksums.yaml +4 -4
  2. data/lib/candidhealth/charge_capture/v_1/client.rb +4 -4
  3. data/lib/candidhealth/charge_capture_bundles/client.rb +30 -0
  4. data/lib/candidhealth/charge_capture_bundles/v_1/client.rb +227 -0
  5. data/lib/candidhealth/charge_capture_bundles/v_1/types/charge_bundle_error.rb +112 -0
  6. data/lib/candidhealth/charge_capture_bundles/v_1/types/charge_capture_bundle.rb +116 -0
  7. data/lib/candidhealth/charge_capture_bundles/v_1/types/charge_capture_bundle_page.rb +88 -0
  8. data/lib/candidhealth/charge_capture_bundles/v_1/types/charge_capture_bundle_status.rb +16 -0
  9. data/lib/candidhealth/commons/types/network_type.rb +2 -0
  10. data/lib/candidhealth/commons/types/not_implemented_error_message.rb +60 -0
  11. data/lib/candidhealth/encounter_providers/v_2/client.rb +16 -16
  12. data/lib/candidhealth/encounters/v_4/client.rb +26 -26
  13. data/lib/candidhealth/guarantor/v_1/client.rb +2 -2
  14. data/lib/candidhealth/pre_encounter/coverages/v_1/client.rb +144 -12
  15. data/lib/candidhealth/pre_encounter/coverages/v_1/types/benefit_type.rb +3 -1
  16. data/lib/candidhealth/pre_encounter/coverages/v_1/types/benefits_related_entity.rb +99 -0
  17. data/lib/candidhealth/pre_encounter/coverages/v_1/types/coverage_benefits.rb +14 -2
  18. data/lib/candidhealth/pre_encounter/coverages/v_1/types/coverage_level.rb +3 -2
  19. data/lib/candidhealth/pre_encounter/coverages/v_1/types/coverage_value.rb +11 -2
  20. data/lib/candidhealth/pre_encounter/coverages/v_1/types/eligibility_check_status.rb +0 -1
  21. data/lib/candidhealth/pre_encounter/coverages/v_1/types/plan_coverage_details.rb +38 -12
  22. data/lib/candidhealth/pre_encounter/coverages/v_1/types/related_entity_contact.rb +74 -0
  23. data/lib/candidhealth/service_lines/v_2/client.rb +2 -2
  24. data/lib/candidhealth/x_12/v_1/types/rarc.rb +2 -0
  25. data/lib/candidhealth.rb +7 -0
  26. data/lib/requests.rb +2 -2
  27. data/lib/types_export.rb +7 -0
  28. metadata +11 -2
@@ -84,26 +84,42 @@ module CandidApiClient
84
84
  # * :family (Float)
85
85
  # * :individual (Float)
86
86
  # * :employee_and_spouse (Float)
87
+ # * :employee_and_children (Float)
88
+ # * :deductible_contract (Hash)
89
+ # * :family (Float)
90
+ # * :individual (Float)
91
+ # * :employee_and_spouse (Float)
92
+ # * :employee_and_children (Float)
87
93
  # * :deductible_remaining (Hash)
88
94
  # * :family (Float)
89
95
  # * :individual (Float)
90
96
  # * :employee_and_spouse (Float)
97
+ # * :employee_and_children (Float)
91
98
  # * :deductible_year_to_date (Hash)
92
99
  # * :family (Float)
93
100
  # * :individual (Float)
94
101
  # * :employee_and_spouse (Float)
102
+ # * :employee_and_children (Float)
95
103
  # * :oop_max (Hash)
96
104
  # * :family (Float)
97
105
  # * :individual (Float)
98
106
  # * :employee_and_spouse (Float)
107
+ # * :employee_and_children (Float)
108
+ # * :oop_max_contract (Hash)
109
+ # * :family (Float)
110
+ # * :individual (Float)
111
+ # * :employee_and_spouse (Float)
112
+ # * :employee_and_children (Float)
99
113
  # * :oop_max_remaining (Hash)
100
114
  # * :family (Float)
101
115
  # * :individual (Float)
102
116
  # * :employee_and_spouse (Float)
103
- # * :oop_year_to_date (Hash)
117
+ # * :employee_and_children (Float)
118
+ # * :oop_max_year_to_date (Hash)
104
119
  # * :family (Float)
105
120
  # * :individual (Float)
106
121
  # * :employee_and_spouse (Float)
122
+ # * :employee_and_children (Float)
107
123
  # * :additional_notes (String)
108
124
  # * :in_network_flat (Array<CandidApiClient::PreEncounter::Coverages::V1::Types::CoverageDetails>)
109
125
  # * :out_of_network (Hash)
@@ -111,35 +127,52 @@ module CandidApiClient
111
127
  # * :family (Float)
112
128
  # * :individual (Float)
113
129
  # * :employee_and_spouse (Float)
130
+ # * :employee_and_children (Float)
131
+ # * :deductible_contract (Hash)
132
+ # * :family (Float)
133
+ # * :individual (Float)
134
+ # * :employee_and_spouse (Float)
135
+ # * :employee_and_children (Float)
114
136
  # * :deductible_remaining (Hash)
115
137
  # * :family (Float)
116
138
  # * :individual (Float)
117
139
  # * :employee_and_spouse (Float)
140
+ # * :employee_and_children (Float)
118
141
  # * :deductible_year_to_date (Hash)
119
142
  # * :family (Float)
120
143
  # * :individual (Float)
121
144
  # * :employee_and_spouse (Float)
145
+ # * :employee_and_children (Float)
122
146
  # * :oop_max (Hash)
123
147
  # * :family (Float)
124
148
  # * :individual (Float)
125
149
  # * :employee_and_spouse (Float)
150
+ # * :employee_and_children (Float)
151
+ # * :oop_max_contract (Hash)
152
+ # * :family (Float)
153
+ # * :individual (Float)
154
+ # * :employee_and_spouse (Float)
155
+ # * :employee_and_children (Float)
126
156
  # * :oop_max_remaining (Hash)
127
157
  # * :family (Float)
128
158
  # * :individual (Float)
129
159
  # * :employee_and_spouse (Float)
130
- # * :oop_year_to_date (Hash)
160
+ # * :employee_and_children (Float)
161
+ # * :oop_max_year_to_date (Hash)
131
162
  # * :family (Float)
132
163
  # * :individual (Float)
133
164
  # * :employee_and_spouse (Float)
165
+ # * :employee_and_children (Float)
134
166
  # * :additional_notes (String)
135
167
  # * :out_of_network_flat (Array<CandidApiClient::PreEncounter::Coverages::V1::Types::CoverageDetails>)
136
168
  # * :service_specific_coverage (Array<CandidApiClient::PreEncounter::Coverages::V1::Types::ServiceCoverage>)
169
+ # * :benefits_related_entities (Array<CandidApiClient::PreEncounter::Coverages::V1::Types::BenefitsRelatedEntity>)
137
170
  # * :notes (String)
138
171
  # @param request_options [CandidApiClient::RequestOptions]
139
172
  # @return [CandidApiClient::PreEncounter::Coverages::V1::Types::Coverage]
140
173
  # @example
141
174
  # api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
142
- # api.pre_encounter.coverages.v_1.create(request: { status: ACTIVE, subscriber: { name: { family: "string", given: ["string"], use: USUAL, period: { } }, date_of_birth: DateTime.parse(2023-01-15), biological_sex: FEMALE, address: { use: HOME, line: ["string"], city: "string", state: "string", postal_code: "string", country: "string", period: { } } }, relationship: SELF, patient: "string", insurance_plan: { member_id: "string", payer_id: "string", payer_name: "string", additional_payer_information: { availity_eligibility_id: "string", availity_payer_id: "string", availity_payer_name: "string", availity_remittance_payer_id: "string" }, group_number: "string", name: "string", plan_type: SELF_PAY, type: C_01, period: { }, insurance_card_image_locator: "string" }, verified: true, eligibility_checks: [{ check_id: "string", service_code: MEDICAL_CARE, status: CREATED, initiated_by: "string", initiated_at: DateTime.parse(2024-01-15T09:30:00.000Z) }], latest_eligibility_check: { check_id: "string", status: ACTIVE, initiated_at: DateTime.parse(2024-01-15T09:30:00.000Z) }, benefits: { } })
175
+ # api.pre_encounter.coverages.v_1.create(request: { status: ACTIVE, subscriber: { name: { family: "string", given: ["string"], use: USUAL, period: { } }, date_of_birth: DateTime.parse(2023-01-15), biological_sex: FEMALE, address: { use: HOME, line: ["string"], city: "string", state: "string", postal_code: "string", country: "string", period: { } } }, relationship: SELF, patient: "string", insurance_plan: { member_id: "string", payer_id: "string", payer_name: "string", additional_payer_information: { availity_eligibility_id: "string", availity_payer_id: "string", availity_payer_name: "string", availity_remittance_payer_id: "string" }, group_number: "string", name: "string", plan_type: SELF_PAY, type: C_01, period: { }, insurance_card_image_locator: "string" }, verified: true, eligibility_checks: [{ check_id: "string", service_code: MEDICAL_CARE, status: COMPLETED, initiated_by: "string", initiated_at: DateTime.parse(2024-01-15T09:30:00.000Z) }], latest_eligibility_check: { check_id: "string", status: ACTIVE, initiated_at: DateTime.parse(2024-01-15T09:30:00.000Z) }, benefits: { } })
143
176
  def create(request:, request_options: nil)
144
177
  response = @request_client.conn.post do |req|
145
178
  req.options.timeout = request_options.timeout_in_seconds unless request_options&.timeout_in_seconds.nil?
@@ -215,26 +248,42 @@ module CandidApiClient
215
248
  # * :family (Float)
216
249
  # * :individual (Float)
217
250
  # * :employee_and_spouse (Float)
251
+ # * :employee_and_children (Float)
252
+ # * :deductible_contract (Hash)
253
+ # * :family (Float)
254
+ # * :individual (Float)
255
+ # * :employee_and_spouse (Float)
256
+ # * :employee_and_children (Float)
218
257
  # * :deductible_remaining (Hash)
219
258
  # * :family (Float)
220
259
  # * :individual (Float)
221
260
  # * :employee_and_spouse (Float)
261
+ # * :employee_and_children (Float)
222
262
  # * :deductible_year_to_date (Hash)
223
263
  # * :family (Float)
224
264
  # * :individual (Float)
225
265
  # * :employee_and_spouse (Float)
266
+ # * :employee_and_children (Float)
226
267
  # * :oop_max (Hash)
227
268
  # * :family (Float)
228
269
  # * :individual (Float)
229
270
  # * :employee_and_spouse (Float)
271
+ # * :employee_and_children (Float)
272
+ # * :oop_max_contract (Hash)
273
+ # * :family (Float)
274
+ # * :individual (Float)
275
+ # * :employee_and_spouse (Float)
276
+ # * :employee_and_children (Float)
230
277
  # * :oop_max_remaining (Hash)
231
278
  # * :family (Float)
232
279
  # * :individual (Float)
233
280
  # * :employee_and_spouse (Float)
234
- # * :oop_year_to_date (Hash)
281
+ # * :employee_and_children (Float)
282
+ # * :oop_max_year_to_date (Hash)
235
283
  # * :family (Float)
236
284
  # * :individual (Float)
237
285
  # * :employee_and_spouse (Float)
286
+ # * :employee_and_children (Float)
238
287
  # * :additional_notes (String)
239
288
  # * :in_network_flat (Array<CandidApiClient::PreEncounter::Coverages::V1::Types::CoverageDetails>)
240
289
  # * :out_of_network (Hash)
@@ -242,29 +291,46 @@ module CandidApiClient
242
291
  # * :family (Float)
243
292
  # * :individual (Float)
244
293
  # * :employee_and_spouse (Float)
294
+ # * :employee_and_children (Float)
295
+ # * :deductible_contract (Hash)
296
+ # * :family (Float)
297
+ # * :individual (Float)
298
+ # * :employee_and_spouse (Float)
299
+ # * :employee_and_children (Float)
245
300
  # * :deductible_remaining (Hash)
246
301
  # * :family (Float)
247
302
  # * :individual (Float)
248
303
  # * :employee_and_spouse (Float)
304
+ # * :employee_and_children (Float)
249
305
  # * :deductible_year_to_date (Hash)
250
306
  # * :family (Float)
251
307
  # * :individual (Float)
252
308
  # * :employee_and_spouse (Float)
309
+ # * :employee_and_children (Float)
253
310
  # * :oop_max (Hash)
254
311
  # * :family (Float)
255
312
  # * :individual (Float)
256
313
  # * :employee_and_spouse (Float)
314
+ # * :employee_and_children (Float)
315
+ # * :oop_max_contract (Hash)
316
+ # * :family (Float)
317
+ # * :individual (Float)
318
+ # * :employee_and_spouse (Float)
319
+ # * :employee_and_children (Float)
257
320
  # * :oop_max_remaining (Hash)
258
321
  # * :family (Float)
259
322
  # * :individual (Float)
260
323
  # * :employee_and_spouse (Float)
261
- # * :oop_year_to_date (Hash)
324
+ # * :employee_and_children (Float)
325
+ # * :oop_max_year_to_date (Hash)
262
326
  # * :family (Float)
263
327
  # * :individual (Float)
264
328
  # * :employee_and_spouse (Float)
329
+ # * :employee_and_children (Float)
265
330
  # * :additional_notes (String)
266
331
  # * :out_of_network_flat (Array<CandidApiClient::PreEncounter::Coverages::V1::Types::CoverageDetails>)
267
332
  # * :service_specific_coverage (Array<CandidApiClient::PreEncounter::Coverages::V1::Types::ServiceCoverage>)
333
+ # * :benefits_related_entities (Array<CandidApiClient::PreEncounter::Coverages::V1::Types::BenefitsRelatedEntity>)
268
334
  # * :notes (String)
269
335
  # @param request_options [CandidApiClient::RequestOptions]
270
336
  # @return [CandidApiClient::PreEncounter::Coverages::V1::Types::Coverage]
@@ -273,7 +339,7 @@ module CandidApiClient
273
339
  # api.pre_encounter.coverages.v_1.update(
274
340
  # id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32",
275
341
  # version: "string",
276
- # request: { status: ACTIVE, subscriber: { name: { family: "string", given: ["string"], use: USUAL, period: { } }, date_of_birth: DateTime.parse(2023-01-15), biological_sex: FEMALE, address: { use: HOME, line: ["string"], city: "string", state: "string", postal_code: "string", country: "string", period: { } } }, relationship: SELF, patient: "string", insurance_plan: { member_id: "string", payer_id: "string", payer_name: "string", additional_payer_information: { availity_eligibility_id: "string", availity_payer_id: "string", availity_payer_name: "string", availity_remittance_payer_id: "string" }, group_number: "string", name: "string", plan_type: SELF_PAY, type: C_01, period: { }, insurance_card_image_locator: "string" }, verified: true, eligibility_checks: [{ check_id: "string", service_code: MEDICAL_CARE, status: CREATED, initiated_by: "string", initiated_at: DateTime.parse(2024-01-15T09:30:00.000Z) }], latest_eligibility_check: { check_id: "string", status: ACTIVE, initiated_at: DateTime.parse(2024-01-15T09:30:00.000Z) }, benefits: { } }
342
+ # request: { status: ACTIVE, subscriber: { name: { family: "string", given: ["string"], use: USUAL, period: { } }, date_of_birth: DateTime.parse(2023-01-15), biological_sex: FEMALE, address: { use: HOME, line: ["string"], city: "string", state: "string", postal_code: "string", country: "string", period: { } } }, relationship: SELF, patient: "string", insurance_plan: { member_id: "string", payer_id: "string", payer_name: "string", additional_payer_information: { availity_eligibility_id: "string", availity_payer_id: "string", availity_payer_name: "string", availity_remittance_payer_id: "string" }, group_number: "string", name: "string", plan_type: SELF_PAY, type: C_01, period: { }, insurance_card_image_locator: "string" }, verified: true, eligibility_checks: [{ check_id: "string", service_code: MEDICAL_CARE, status: COMPLETED, initiated_by: "string", initiated_at: DateTime.parse(2024-01-15T09:30:00.000Z) }], latest_eligibility_check: { check_id: "string", status: ACTIVE, initiated_at: DateTime.parse(2024-01-15T09:30:00.000Z) }, benefits: { } }
277
343
  # )
278
344
  def update(id:, version:, request:, request_options: nil)
279
345
  response = @request_client.conn.put do |req|
@@ -532,26 +598,42 @@ module CandidApiClient
532
598
  # * :family (Float)
533
599
  # * :individual (Float)
534
600
  # * :employee_and_spouse (Float)
601
+ # * :employee_and_children (Float)
602
+ # * :deductible_contract (Hash)
603
+ # * :family (Float)
604
+ # * :individual (Float)
605
+ # * :employee_and_spouse (Float)
606
+ # * :employee_and_children (Float)
535
607
  # * :deductible_remaining (Hash)
536
608
  # * :family (Float)
537
609
  # * :individual (Float)
538
610
  # * :employee_and_spouse (Float)
611
+ # * :employee_and_children (Float)
539
612
  # * :deductible_year_to_date (Hash)
540
613
  # * :family (Float)
541
614
  # * :individual (Float)
542
615
  # * :employee_and_spouse (Float)
616
+ # * :employee_and_children (Float)
543
617
  # * :oop_max (Hash)
544
618
  # * :family (Float)
545
619
  # * :individual (Float)
546
620
  # * :employee_and_spouse (Float)
621
+ # * :employee_and_children (Float)
622
+ # * :oop_max_contract (Hash)
623
+ # * :family (Float)
624
+ # * :individual (Float)
625
+ # * :employee_and_spouse (Float)
626
+ # * :employee_and_children (Float)
547
627
  # * :oop_max_remaining (Hash)
548
628
  # * :family (Float)
549
629
  # * :individual (Float)
550
630
  # * :employee_and_spouse (Float)
551
- # * :oop_year_to_date (Hash)
631
+ # * :employee_and_children (Float)
632
+ # * :oop_max_year_to_date (Hash)
552
633
  # * :family (Float)
553
634
  # * :individual (Float)
554
635
  # * :employee_and_spouse (Float)
636
+ # * :employee_and_children (Float)
555
637
  # * :additional_notes (String)
556
638
  # * :in_network_flat (Array<CandidApiClient::PreEncounter::Coverages::V1::Types::CoverageDetails>)
557
639
  # * :out_of_network (Hash)
@@ -559,35 +641,52 @@ module CandidApiClient
559
641
  # * :family (Float)
560
642
  # * :individual (Float)
561
643
  # * :employee_and_spouse (Float)
644
+ # * :employee_and_children (Float)
645
+ # * :deductible_contract (Hash)
646
+ # * :family (Float)
647
+ # * :individual (Float)
648
+ # * :employee_and_spouse (Float)
649
+ # * :employee_and_children (Float)
562
650
  # * :deductible_remaining (Hash)
563
651
  # * :family (Float)
564
652
  # * :individual (Float)
565
653
  # * :employee_and_spouse (Float)
654
+ # * :employee_and_children (Float)
566
655
  # * :deductible_year_to_date (Hash)
567
656
  # * :family (Float)
568
657
  # * :individual (Float)
569
658
  # * :employee_and_spouse (Float)
659
+ # * :employee_and_children (Float)
570
660
  # * :oop_max (Hash)
571
661
  # * :family (Float)
572
662
  # * :individual (Float)
573
663
  # * :employee_and_spouse (Float)
664
+ # * :employee_and_children (Float)
665
+ # * :oop_max_contract (Hash)
666
+ # * :family (Float)
667
+ # * :individual (Float)
668
+ # * :employee_and_spouse (Float)
669
+ # * :employee_and_children (Float)
574
670
  # * :oop_max_remaining (Hash)
575
671
  # * :family (Float)
576
672
  # * :individual (Float)
577
673
  # * :employee_and_spouse (Float)
578
- # * :oop_year_to_date (Hash)
674
+ # * :employee_and_children (Float)
675
+ # * :oop_max_year_to_date (Hash)
579
676
  # * :family (Float)
580
677
  # * :individual (Float)
581
678
  # * :employee_and_spouse (Float)
679
+ # * :employee_and_children (Float)
582
680
  # * :additional_notes (String)
583
681
  # * :out_of_network_flat (Array<CandidApiClient::PreEncounter::Coverages::V1::Types::CoverageDetails>)
584
682
  # * :service_specific_coverage (Array<CandidApiClient::PreEncounter::Coverages::V1::Types::ServiceCoverage>)
683
+ # * :benefits_related_entities (Array<CandidApiClient::PreEncounter::Coverages::V1::Types::BenefitsRelatedEntity>)
585
684
  # * :notes (String)
586
685
  # @param request_options [CandidApiClient::RequestOptions]
587
686
  # @return [CandidApiClient::PreEncounter::Coverages::V1::Types::Coverage]
588
687
  # @example
589
688
  # api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
590
- # api.pre_encounter.coverages.v_1.create(request: { status: ACTIVE, subscriber: { name: { family: "string", given: ["string"], use: USUAL, period: { } }, date_of_birth: DateTime.parse(2023-01-15), biological_sex: FEMALE, address: { use: HOME, line: ["string"], city: "string", state: "string", postal_code: "string", country: "string", period: { } } }, relationship: SELF, patient: "string", insurance_plan: { member_id: "string", payer_id: "string", payer_name: "string", additional_payer_information: { availity_eligibility_id: "string", availity_payer_id: "string", availity_payer_name: "string", availity_remittance_payer_id: "string" }, group_number: "string", name: "string", plan_type: SELF_PAY, type: C_01, period: { }, insurance_card_image_locator: "string" }, verified: true, eligibility_checks: [{ check_id: "string", service_code: MEDICAL_CARE, status: CREATED, initiated_by: "string", initiated_at: DateTime.parse(2024-01-15T09:30:00.000Z) }], latest_eligibility_check: { check_id: "string", status: ACTIVE, initiated_at: DateTime.parse(2024-01-15T09:30:00.000Z) }, benefits: { } })
689
+ # api.pre_encounter.coverages.v_1.create(request: { status: ACTIVE, subscriber: { name: { family: "string", given: ["string"], use: USUAL, period: { } }, date_of_birth: DateTime.parse(2023-01-15), biological_sex: FEMALE, address: { use: HOME, line: ["string"], city: "string", state: "string", postal_code: "string", country: "string", period: { } } }, relationship: SELF, patient: "string", insurance_plan: { member_id: "string", payer_id: "string", payer_name: "string", additional_payer_information: { availity_eligibility_id: "string", availity_payer_id: "string", availity_payer_name: "string", availity_remittance_payer_id: "string" }, group_number: "string", name: "string", plan_type: SELF_PAY, type: C_01, period: { }, insurance_card_image_locator: "string" }, verified: true, eligibility_checks: [{ check_id: "string", service_code: MEDICAL_CARE, status: COMPLETED, initiated_by: "string", initiated_at: DateTime.parse(2024-01-15T09:30:00.000Z) }], latest_eligibility_check: { check_id: "string", status: ACTIVE, initiated_at: DateTime.parse(2024-01-15T09:30:00.000Z) }, benefits: { } })
591
690
  def create(request:, request_options: nil)
592
691
  Async do
593
692
  response = @request_client.conn.post do |req|
@@ -665,26 +764,42 @@ module CandidApiClient
665
764
  # * :family (Float)
666
765
  # * :individual (Float)
667
766
  # * :employee_and_spouse (Float)
767
+ # * :employee_and_children (Float)
768
+ # * :deductible_contract (Hash)
769
+ # * :family (Float)
770
+ # * :individual (Float)
771
+ # * :employee_and_spouse (Float)
772
+ # * :employee_and_children (Float)
668
773
  # * :deductible_remaining (Hash)
669
774
  # * :family (Float)
670
775
  # * :individual (Float)
671
776
  # * :employee_and_spouse (Float)
777
+ # * :employee_and_children (Float)
672
778
  # * :deductible_year_to_date (Hash)
673
779
  # * :family (Float)
674
780
  # * :individual (Float)
675
781
  # * :employee_and_spouse (Float)
782
+ # * :employee_and_children (Float)
676
783
  # * :oop_max (Hash)
677
784
  # * :family (Float)
678
785
  # * :individual (Float)
679
786
  # * :employee_and_spouse (Float)
787
+ # * :employee_and_children (Float)
788
+ # * :oop_max_contract (Hash)
789
+ # * :family (Float)
790
+ # * :individual (Float)
791
+ # * :employee_and_spouse (Float)
792
+ # * :employee_and_children (Float)
680
793
  # * :oop_max_remaining (Hash)
681
794
  # * :family (Float)
682
795
  # * :individual (Float)
683
796
  # * :employee_and_spouse (Float)
684
- # * :oop_year_to_date (Hash)
797
+ # * :employee_and_children (Float)
798
+ # * :oop_max_year_to_date (Hash)
685
799
  # * :family (Float)
686
800
  # * :individual (Float)
687
801
  # * :employee_and_spouse (Float)
802
+ # * :employee_and_children (Float)
688
803
  # * :additional_notes (String)
689
804
  # * :in_network_flat (Array<CandidApiClient::PreEncounter::Coverages::V1::Types::CoverageDetails>)
690
805
  # * :out_of_network (Hash)
@@ -692,29 +807,46 @@ module CandidApiClient
692
807
  # * :family (Float)
693
808
  # * :individual (Float)
694
809
  # * :employee_and_spouse (Float)
810
+ # * :employee_and_children (Float)
811
+ # * :deductible_contract (Hash)
812
+ # * :family (Float)
813
+ # * :individual (Float)
814
+ # * :employee_and_spouse (Float)
815
+ # * :employee_and_children (Float)
695
816
  # * :deductible_remaining (Hash)
696
817
  # * :family (Float)
697
818
  # * :individual (Float)
698
819
  # * :employee_and_spouse (Float)
820
+ # * :employee_and_children (Float)
699
821
  # * :deductible_year_to_date (Hash)
700
822
  # * :family (Float)
701
823
  # * :individual (Float)
702
824
  # * :employee_and_spouse (Float)
825
+ # * :employee_and_children (Float)
703
826
  # * :oop_max (Hash)
704
827
  # * :family (Float)
705
828
  # * :individual (Float)
706
829
  # * :employee_and_spouse (Float)
830
+ # * :employee_and_children (Float)
831
+ # * :oop_max_contract (Hash)
832
+ # * :family (Float)
833
+ # * :individual (Float)
834
+ # * :employee_and_spouse (Float)
835
+ # * :employee_and_children (Float)
707
836
  # * :oop_max_remaining (Hash)
708
837
  # * :family (Float)
709
838
  # * :individual (Float)
710
839
  # * :employee_and_spouse (Float)
711
- # * :oop_year_to_date (Hash)
840
+ # * :employee_and_children (Float)
841
+ # * :oop_max_year_to_date (Hash)
712
842
  # * :family (Float)
713
843
  # * :individual (Float)
714
844
  # * :employee_and_spouse (Float)
845
+ # * :employee_and_children (Float)
715
846
  # * :additional_notes (String)
716
847
  # * :out_of_network_flat (Array<CandidApiClient::PreEncounter::Coverages::V1::Types::CoverageDetails>)
717
848
  # * :service_specific_coverage (Array<CandidApiClient::PreEncounter::Coverages::V1::Types::ServiceCoverage>)
849
+ # * :benefits_related_entities (Array<CandidApiClient::PreEncounter::Coverages::V1::Types::BenefitsRelatedEntity>)
718
850
  # * :notes (String)
719
851
  # @param request_options [CandidApiClient::RequestOptions]
720
852
  # @return [CandidApiClient::PreEncounter::Coverages::V1::Types::Coverage]
@@ -723,7 +855,7 @@ module CandidApiClient
723
855
  # api.pre_encounter.coverages.v_1.update(
724
856
  # id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32",
725
857
  # version: "string",
726
- # request: { status: ACTIVE, subscriber: { name: { family: "string", given: ["string"], use: USUAL, period: { } }, date_of_birth: DateTime.parse(2023-01-15), biological_sex: FEMALE, address: { use: HOME, line: ["string"], city: "string", state: "string", postal_code: "string", country: "string", period: { } } }, relationship: SELF, patient: "string", insurance_plan: { member_id: "string", payer_id: "string", payer_name: "string", additional_payer_information: { availity_eligibility_id: "string", availity_payer_id: "string", availity_payer_name: "string", availity_remittance_payer_id: "string" }, group_number: "string", name: "string", plan_type: SELF_PAY, type: C_01, period: { }, insurance_card_image_locator: "string" }, verified: true, eligibility_checks: [{ check_id: "string", service_code: MEDICAL_CARE, status: CREATED, initiated_by: "string", initiated_at: DateTime.parse(2024-01-15T09:30:00.000Z) }], latest_eligibility_check: { check_id: "string", status: ACTIVE, initiated_at: DateTime.parse(2024-01-15T09:30:00.000Z) }, benefits: { } }
858
+ # request: { status: ACTIVE, subscriber: { name: { family: "string", given: ["string"], use: USUAL, period: { } }, date_of_birth: DateTime.parse(2023-01-15), biological_sex: FEMALE, address: { use: HOME, line: ["string"], city: "string", state: "string", postal_code: "string", country: "string", period: { } } }, relationship: SELF, patient: "string", insurance_plan: { member_id: "string", payer_id: "string", payer_name: "string", additional_payer_information: { availity_eligibility_id: "string", availity_payer_id: "string", availity_payer_name: "string", availity_remittance_payer_id: "string" }, group_number: "string", name: "string", plan_type: SELF_PAY, type: C_01, period: { }, insurance_card_image_locator: "string" }, verified: true, eligibility_checks: [{ check_id: "string", service_code: MEDICAL_CARE, status: COMPLETED, initiated_by: "string", initiated_at: DateTime.parse(2024-01-15T09:30:00.000Z) }], latest_eligibility_check: { check_id: "string", status: ACTIVE, initiated_at: DateTime.parse(2024-01-15T09:30:00.000Z) }, benefits: { } }
727
859
  # )
728
860
  def update(id:, version:, request:, request_options: nil)
729
861
  Async do
@@ -7,11 +7,13 @@ module CandidApiClient
7
7
  module Types
8
8
  class BenefitType
9
9
  DEDUCTIBLE = "DEDUCTIBLE"
10
+ DEDUCTIBLE_CONTRACT = "DEDUCTIBLE_CONTRACT"
10
11
  DEDUCTIBLE_REMAINING = "DEDUCTIBLE_REMAINING"
11
12
  DEDUCTIBLE_YEAR_TO_DATE = "DEDUCTIBLE_YEAR_TO_DATE"
12
13
  OOP_MAX = "OOP_MAX"
14
+ OOP_MAX_CONTRACT = "OOP_MAX_CONTRACT"
13
15
  OOP_MAX_REMAINING = "OOP_MAX_REMAINING"
14
- OOP_YEAR_TO_DATE = "OOP_YEAR_TO_DATE"
16
+ OOP_MAX_YEAR_TO_DATE = "OOP_MAX_YEAR_TO_DATE"
15
17
  COPAY = "COPAY"
16
18
  COINSURANCE = "COINSURANCE"
17
19
  end
@@ -0,0 +1,99 @@
1
+ # frozen_string_literal: true
2
+
3
+ require_relative "related_entity_contact"
4
+ require "ostruct"
5
+ require "json"
6
+
7
+ module CandidApiClient
8
+ module PreEncounter
9
+ module Coverages
10
+ module V1
11
+ module Types
12
+ class BenefitsRelatedEntity
13
+ # @return [String]
14
+ attr_reader :entity_identifier
15
+ # @return [String]
16
+ attr_reader :entity_type
17
+ # @return [String]
18
+ attr_reader :entity_name
19
+ # @return [Array<CandidApiClient::PreEncounter::Coverages::V1::Types::RelatedEntityContact>]
20
+ attr_reader :contact_information
21
+ # @return [OpenStruct] Additional properties unmapped to the current class definition
22
+ attr_reader :additional_properties
23
+ # @return [Object]
24
+ attr_reader :_field_set
25
+ protected :_field_set
26
+
27
+ OMIT = Object.new
28
+
29
+ # @param entity_identifier [String]
30
+ # @param entity_type [String]
31
+ # @param entity_name [String]
32
+ # @param contact_information [Array<CandidApiClient::PreEncounter::Coverages::V1::Types::RelatedEntityContact>]
33
+ # @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
34
+ # @return [CandidApiClient::PreEncounter::Coverages::V1::Types::BenefitsRelatedEntity]
35
+ def initialize(entity_identifier: OMIT, entity_type: OMIT, entity_name: OMIT, contact_information: OMIT,
36
+ additional_properties: nil)
37
+ @entity_identifier = entity_identifier if entity_identifier != OMIT
38
+ @entity_type = entity_type if entity_type != OMIT
39
+ @entity_name = entity_name if entity_name != OMIT
40
+ @contact_information = contact_information if contact_information != OMIT
41
+ @additional_properties = additional_properties
42
+ @_field_set = {
43
+ "entityIdentifier": entity_identifier,
44
+ "entityType": entity_type,
45
+ "entityName": entity_name,
46
+ "contactInformation": contact_information
47
+ }.reject do |_k, v|
48
+ v == OMIT
49
+ end
50
+ end
51
+
52
+ # Deserialize a JSON object to an instance of BenefitsRelatedEntity
53
+ #
54
+ # @param json_object [String]
55
+ # @return [CandidApiClient::PreEncounter::Coverages::V1::Types::BenefitsRelatedEntity]
56
+ def self.from_json(json_object:)
57
+ struct = JSON.parse(json_object, object_class: OpenStruct)
58
+ parsed_json = JSON.parse(json_object)
59
+ entity_identifier = struct["entityIdentifier"]
60
+ entity_type = struct["entityType"]
61
+ entity_name = struct["entityName"]
62
+ contact_information = parsed_json["contactInformation"]&.map do |item|
63
+ item = item.to_json
64
+ CandidApiClient::PreEncounter::Coverages::V1::Types::RelatedEntityContact.from_json(json_object: item)
65
+ end
66
+ new(
67
+ entity_identifier: entity_identifier,
68
+ entity_type: entity_type,
69
+ entity_name: entity_name,
70
+ contact_information: contact_information,
71
+ additional_properties: struct
72
+ )
73
+ end
74
+
75
+ # Serialize an instance of BenefitsRelatedEntity to a JSON object
76
+ #
77
+ # @return [String]
78
+ def to_json(*_args)
79
+ @_field_set&.to_json
80
+ end
81
+
82
+ # Leveraged for Union-type generation, validate_raw attempts to parse the given
83
+ # hash and check each fields type against the current object's property
84
+ # definitions.
85
+ #
86
+ # @param obj [Object]
87
+ # @return [Void]
88
+ def self.validate_raw(obj:)
89
+ obj.entity_identifier&.is_a?(String) != false || raise("Passed value for field obj.entity_identifier is not the expected type, validation failed.")
90
+ obj.entity_type&.is_a?(String) != false || raise("Passed value for field obj.entity_type is not the expected type, validation failed.")
91
+ obj.entity_name&.is_a?(String) != false || raise("Passed value for field obj.entity_name is not the expected type, validation failed.")
92
+ obj.contact_information&.is_a?(Array) != false || raise("Passed value for field obj.contact_information is not the expected type, validation failed.")
93
+ end
94
+ end
95
+ end
96
+ end
97
+ end
98
+ end
99
+ end
@@ -2,6 +2,7 @@
2
2
 
3
3
  require_relative "plan_coverage"
4
4
  require_relative "service_coverage"
5
+ require_relative "benefits_related_entity"
5
6
  require "ostruct"
6
7
  require "json"
7
8
 
@@ -15,6 +16,8 @@ module CandidApiClient
15
16
  attr_reader :plan_coverage
16
17
  # @return [Array<CandidApiClient::PreEncounter::Coverages::V1::Types::ServiceCoverage>]
17
18
  attr_reader :service_specific_coverage
19
+ # @return [Array<CandidApiClient::PreEncounter::Coverages::V1::Types::BenefitsRelatedEntity>]
20
+ attr_reader :benefits_related_entities
18
21
  # @return [String]
19
22
  attr_reader :notes
20
23
  # @return [OpenStruct] Additional properties unmapped to the current class definition
@@ -27,18 +30,21 @@ module CandidApiClient
27
30
 
28
31
  # @param plan_coverage [CandidApiClient::PreEncounter::Coverages::V1::Types::PlanCoverage]
29
32
  # @param service_specific_coverage [Array<CandidApiClient::PreEncounter::Coverages::V1::Types::ServiceCoverage>]
33
+ # @param benefits_related_entities [Array<CandidApiClient::PreEncounter::Coverages::V1::Types::BenefitsRelatedEntity>]
30
34
  # @param notes [String]
31
35
  # @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
32
36
  # @return [CandidApiClient::PreEncounter::Coverages::V1::Types::CoverageBenefits]
33
- def initialize(plan_coverage: OMIT, service_specific_coverage: OMIT, notes: OMIT,
34
- additional_properties: nil)
37
+ def initialize(plan_coverage: OMIT, service_specific_coverage: OMIT, benefits_related_entities: OMIT,
38
+ notes: OMIT, additional_properties: nil)
35
39
  @plan_coverage = plan_coverage if plan_coverage != OMIT
36
40
  @service_specific_coverage = service_specific_coverage if service_specific_coverage != OMIT
41
+ @benefits_related_entities = benefits_related_entities if benefits_related_entities != OMIT
37
42
  @notes = notes if notes != OMIT
38
43
  @additional_properties = additional_properties
39
44
  @_field_set = {
40
45
  "plan_coverage": plan_coverage,
41
46
  "service_specific_coverage": service_specific_coverage,
47
+ "benefits_related_entities": benefits_related_entities,
42
48
  "notes": notes
43
49
  }.reject do |_k, v|
44
50
  v == OMIT
@@ -62,10 +68,15 @@ module CandidApiClient
62
68
  item = item.to_json
63
69
  CandidApiClient::PreEncounter::Coverages::V1::Types::ServiceCoverage.from_json(json_object: item)
64
70
  end
71
+ benefits_related_entities = parsed_json["benefits_related_entities"]&.map do |item|
72
+ item = item.to_json
73
+ CandidApiClient::PreEncounter::Coverages::V1::Types::BenefitsRelatedEntity.from_json(json_object: item)
74
+ end
65
75
  notes = struct["notes"]
66
76
  new(
67
77
  plan_coverage: plan_coverage,
68
78
  service_specific_coverage: service_specific_coverage,
79
+ benefits_related_entities: benefits_related_entities,
69
80
  notes: notes,
70
81
  additional_properties: struct
71
82
  )
@@ -87,6 +98,7 @@ module CandidApiClient
87
98
  def self.validate_raw(obj:)
88
99
  obj.plan_coverage.nil? || CandidApiClient::PreEncounter::Coverages::V1::Types::PlanCoverage.validate_raw(obj: obj.plan_coverage)
89
100
  obj.service_specific_coverage&.is_a?(Array) != false || raise("Passed value for field obj.service_specific_coverage is not the expected type, validation failed.")
101
+ obj.benefits_related_entities&.is_a?(Array) != false || raise("Passed value for field obj.benefits_related_entities is not the expected type, validation failed.")
90
102
  obj.notes&.is_a?(String) != false || raise("Passed value for field obj.notes is not the expected type, validation failed.")
91
103
  end
92
104
  end
@@ -6,10 +6,11 @@ module CandidApiClient
6
6
  module V1
7
7
  module Types
8
8
  class CoverageLevel
9
- INDIVIDUAL = "INDIVIDUAL"
10
- FAMILY = "FAMILY"
9
+ EMPLOYEE_AND_CHILDREN = "EMPLOYEE_AND_CHILDREN"
11
10
  EMPLOYEE_ONLY = "EMPLOYEE_ONLY"
12
11
  EMPLOYEE_AND_SPOUSE = "EMPLOYEE_AND_SPOUSE"
12
+ FAMILY = "FAMILY"
13
+ INDIVIDUAL = "INDIVIDUAL"
13
14
  end
14
15
  end
15
16
  end