candidhealth 0.46.1 → 1.3.0
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.
- checksums.yaml +4 -4
- data/lib/candidhealth/auth/client.rb +7 -7
- data/lib/candidhealth/auth/{v_2 → default}/client.rb +39 -13
- data/lib/candidhealth/auth/{v_2 → default}/types/auth_get_token_response.rb +3 -3
- data/lib/candidhealth/auth/default/types/invalid_content_type_error_type.rb +60 -0
- data/lib/candidhealth/auth/{v_2 → default}/types/too_many_requests_error_type.rb +3 -3
- data/lib/candidhealth/billing_notes/v_2/types/billing_note_base_optional.rb +62 -0
- data/lib/candidhealth/charge_capture/v_1/client.rb +504 -524
- data/lib/candidhealth/charge_capture/v_1/types/charge_capture.rb +17 -1
- data/lib/candidhealth/charge_capture/v_1/types/charge_capture_data.rb +173 -173
- data/lib/candidhealth/charge_capture/v_1/types/charge_capture_error.rb +26 -2
- data/lib/candidhealth/charge_capture_bundles/v_1/client.rb +58 -0
- data/lib/candidhealth/claim_submission/v_1/types/claim_submission_record_create_optional.rb +100 -0
- data/lib/candidhealth/claim_submission/v_1/types/external_claim_submission_create_optional.rb +101 -0
- data/lib/candidhealth/commons/types/phone_number_optional.rb +71 -0
- data/lib/candidhealth/commons/types/procedure_modifier.rb +2 -0
- data/lib/candidhealth/commons/types/street_address_long_zip_optional.rb +107 -0
- data/lib/candidhealth/custom_schemas/v_1/types/schema_instance_optional.rb +78 -0
- data/lib/candidhealth/diagnoses/client.rb +23 -4
- data/lib/candidhealth/diagnoses/types/diagnosis.rb +21 -2
- data/lib/candidhealth/diagnoses/types/diagnosis_create.rb +25 -2
- data/lib/candidhealth/diagnoses/types/diagnosis_create_optional.rb +126 -0
- data/lib/candidhealth/diagnoses/types/standalone_diagnosis_create.rb +22 -2
- data/lib/candidhealth/encounter_providers/v_2/types/ordering_provider_optional.rb +123 -0
- data/lib/candidhealth/encounters/v_4/client.rb +214 -208
- data/lib/candidhealth/encounters/v_4/types/claim_supplemental_information_optional.rb +86 -0
- data/lib/candidhealth/encounters/v_4/types/clinical_note_category_create_optional.rb +78 -0
- data/lib/candidhealth/encounters/v_4/types/clinical_note_optional.rb +93 -0
- data/lib/candidhealth/encounters/v_4/types/encounter.rb +16 -4
- data/lib/candidhealth/encounters/v_4/types/encounter_create_from_pre_encounter.rb +4 -2
- data/lib/candidhealth/encounters/v_4/types/encounter_deep_optional.rb +780 -0
- data/lib/candidhealth/encounters/v_4/types/encounter_optional.rb +1 -139
- data/lib/candidhealth/encounters/v_4/types/epsdt_referral_optional.rb +85 -0
- data/lib/candidhealth/encounters/v_4/types/intake_question_optional.rb +84 -0
- data/lib/candidhealth/encounters/v_4/types/intervention_optional.rb +114 -0
- data/lib/candidhealth/encounters/v_4/types/lab_optional.rb +80 -0
- data/lib/candidhealth/encounters/v_4/types/medication_optional.rb +108 -0
- data/lib/candidhealth/encounters/v_4/types/patient_history_category_optional.rb +78 -0
- data/lib/candidhealth/guarantor/v_1/types/guarantor_optional.rb +144 -0
- data/lib/candidhealth/individual/types/individual_base_optional.rb +78 -0
- data/lib/candidhealth/individual/types/patient_non_insurance_payer_info_create_optional.rb +89 -0
- data/lib/candidhealth/individual/types/patient_update_with_optional_address.rb +8 -8
- data/lib/candidhealth/individual/types/subscriber_base_optional.rb +118 -0
- data/lib/candidhealth/individual/types/subscriber_create_optional.rb +132 -0
- data/lib/candidhealth/insurance_adjudications/v_1/client.rb +2 -0
- data/lib/candidhealth/insurance_adjudications/v_1/types/insurance_adjudication_create.rb +9 -1
- data/lib/candidhealth/insurance_cards/v_2/types/insurance_card_create_optional.rb +167 -0
- data/lib/candidhealth/pre_encounter/coverages/v_1/client.rb +13 -13
- data/lib/candidhealth/pre_encounter/coverages/v_1/types/coverage.rb +4 -4
- data/lib/candidhealth/pre_encounter/coverages/v_1/types/coverage_eligibility_check_response.rb +10 -10
- data/lib/candidhealth/pre_encounter/coverages/v_1/types/latest_eligibility_check.rb +4 -4
- data/lib/candidhealth/pre_encounter/coverages/v_1/types/mutable_coverage.rb +4 -4
- data/lib/candidhealth/pre_encounter/eligibility_checks/v_1/client.rb +140 -0
- data/lib/candidhealth/pre_encounter/eligibility_checks/v_1/types/batch_eligibility_response.rb +75 -0
- data/lib/candidhealth/pre_encounter/eligibility_checks/v_1/types/eligibility_check.rb +18 -6
- data/lib/candidhealth/pre_encounter/eligibility_checks/v_1/types/eligibility_check_error.rb +80 -0
- data/lib/candidhealth/pre_encounter/eligibility_checks/v_1/types/eligibility_check_error_details.rb +112 -0
- data/lib/candidhealth/pre_encounter/eligibility_checks/v_1/types/eligibility_check_error_source.rb +17 -0
- data/lib/candidhealth/pre_encounter/{coverages → eligibility_checks}/v_1/types/eligibility_check_metadata.rb +7 -7
- data/lib/candidhealth/pre_encounter/eligibility_checks/v_1/types/eligibility_check_page.rb +98 -0
- data/lib/candidhealth/pre_encounter/{coverages → eligibility_checks}/v_1/types/eligibility_check_status.rb +2 -2
- data/lib/candidhealth/pre_encounter/eligibility_checks/v_1/types/eligibility_request.rb +18 -2
- data/lib/candidhealth/pre_encounter/{coverages → eligibility_checks}/v_1/types/eligibility_status.rb +2 -1
- data/lib/candidhealth/pre_encounter/eligibility_checks/v_1/types/parsed_response.rb +4 -4
- data/lib/candidhealth/pre_encounter/patients/v_1/types/authorization.rb +13 -1
- data/lib/candidhealth/service_lines/v_2/types/denial_reason_content.rb +1 -0
- data/lib/candidhealth/service_lines/v_2/types/drug_identification_optional.rb +126 -0
- data/lib/candidhealth/service_lines/v_2/types/service_line_create_optional.rb +239 -0
- data/lib/candidhealth/service_lines/v_2/types/test_result_optional.rb +73 -0
- data/lib/candidhealth/write_offs/v_1/types/insurance_write_off_reason.rb +1 -0
- data/lib/candidhealth/write_offs/v_1/types/patient_write_off_reason.rb +1 -0
- data/lib/candidhealth/yes_no_indicator/types/yes_no_indicator.rb +14 -0
- data/lib/core/oauth.rb +2 -2
- data/lib/requests.rb +2 -2
- data/lib/types_export.rb +41 -8
- metadata +42 -9
- data/lib/candidhealth/pre_encounter/coverages/v_1/types/eligibility_check.rb +0 -116
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: candidhealth
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 1.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- ''
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2025-
|
11
|
+
date: 2025-06-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: async-http-faraday
|
@@ -132,13 +132,15 @@ extra_rdoc_files: []
|
|
132
132
|
files:
|
133
133
|
- lib/candidhealth.rb
|
134
134
|
- lib/candidhealth/auth/client.rb
|
135
|
-
- lib/candidhealth/auth/
|
136
|
-
- lib/candidhealth/auth/
|
137
|
-
- lib/candidhealth/auth/
|
135
|
+
- lib/candidhealth/auth/default/client.rb
|
136
|
+
- lib/candidhealth/auth/default/types/auth_get_token_response.rb
|
137
|
+
- lib/candidhealth/auth/default/types/invalid_content_type_error_type.rb
|
138
|
+
- lib/candidhealth/auth/default/types/too_many_requests_error_type.rb
|
138
139
|
- lib/candidhealth/billing_notes/client.rb
|
139
140
|
- lib/candidhealth/billing_notes/v_2/client.rb
|
140
141
|
- lib/candidhealth/billing_notes/v_2/types/billing_note.rb
|
141
142
|
- lib/candidhealth/billing_notes/v_2/types/billing_note_base.rb
|
143
|
+
- lib/candidhealth/billing_notes/v_2/types/billing_note_base_optional.rb
|
142
144
|
- lib/candidhealth/charge_capture/client.rb
|
143
145
|
- lib/candidhealth/charge_capture/v_1/client.rb
|
144
146
|
- lib/candidhealth/charge_capture/v_1/types/charge_capture.rb
|
@@ -158,7 +160,9 @@ files:
|
|
158
160
|
- lib/candidhealth/charge_capture_bundles/v_1/types/charge_capture_claim_creation_summary.rb
|
159
161
|
- lib/candidhealth/claim_submission/v_1/types/claim_frequency_type_code.rb
|
160
162
|
- lib/candidhealth/claim_submission/v_1/types/claim_submission_record_create.rb
|
163
|
+
- lib/candidhealth/claim_submission/v_1/types/claim_submission_record_create_optional.rb
|
161
164
|
- lib/candidhealth/claim_submission/v_1/types/external_claim_submission_create.rb
|
165
|
+
- lib/candidhealth/claim_submission/v_1/types/external_claim_submission_create_optional.rb
|
162
166
|
- lib/candidhealth/claims/types/claim.rb
|
163
167
|
- lib/candidhealth/claims/types/claim_status.rb
|
164
168
|
- lib/candidhealth/clinical_trials/v_1/types/clinical_trial.rb
|
@@ -181,6 +185,7 @@ files:
|
|
181
185
|
- lib/candidhealth/commons/types/organization_not_authorized_error_message.rb
|
182
186
|
- lib/candidhealth/commons/types/patient_relationship_to_insured_code_all.rb
|
183
187
|
- lib/candidhealth/commons/types/phone_number.rb
|
188
|
+
- lib/candidhealth/commons/types/phone_number_optional.rb
|
184
189
|
- lib/candidhealth/commons/types/phone_number_type.rb
|
185
190
|
- lib/candidhealth/commons/types/primitive.rb
|
186
191
|
- lib/candidhealth/commons/types/procedure_modifier.rb
|
@@ -197,6 +202,7 @@ files:
|
|
197
202
|
- lib/candidhealth/commons/types/state.rb
|
198
203
|
- lib/candidhealth/commons/types/street_address_base.rb
|
199
204
|
- lib/candidhealth/commons/types/street_address_long_zip.rb
|
205
|
+
- lib/candidhealth/commons/types/street_address_long_zip_optional.rb
|
200
206
|
- lib/candidhealth/commons/types/street_address_optional_base.rb
|
201
207
|
- lib/candidhealth/commons/types/street_address_short_zip.rb
|
202
208
|
- lib/candidhealth/commons/types/street_address_short_zip_optional.rb
|
@@ -230,12 +236,14 @@ files:
|
|
230
236
|
- lib/candidhealth/custom_schemas/v_1/types/schema_field.rb
|
231
237
|
- lib/candidhealth/custom_schemas/v_1/types/schema_get_multi_response.rb
|
232
238
|
- lib/candidhealth/custom_schemas/v_1/types/schema_instance.rb
|
239
|
+
- lib/candidhealth/custom_schemas/v_1/types/schema_instance_optional.rb
|
233
240
|
- lib/candidhealth/custom_schemas/v_1/types/schema_validation_error.rb
|
234
241
|
- lib/candidhealth/custom_schemas/v_1/types/schema_validation_failure.rb
|
235
242
|
- lib/candidhealth/custom_schemas/v_1/types/schema_with_name_already_exists_error.rb
|
236
243
|
- lib/candidhealth/diagnoses/client.rb
|
237
244
|
- lib/candidhealth/diagnoses/types/diagnosis.rb
|
238
245
|
- lib/candidhealth/diagnoses/types/diagnosis_create.rb
|
246
|
+
- lib/candidhealth/diagnoses/types/diagnosis_create_optional.rb
|
239
247
|
- lib/candidhealth/diagnoses/types/diagnosis_not_found_error.rb
|
240
248
|
- lib/candidhealth/diagnoses/types/diagnosis_type_code.rb
|
241
249
|
- lib/candidhealth/diagnoses/types/standalone_diagnosis_create.rb
|
@@ -257,6 +265,7 @@ files:
|
|
257
265
|
- lib/candidhealth/encounter_providers/v_2/types/initial_referring_provider_update.rb
|
258
266
|
- lib/candidhealth/encounter_providers/v_2/types/initial_referring_provider_update_with_optional_address.rb
|
259
267
|
- lib/candidhealth/encounter_providers/v_2/types/ordering_provider.rb
|
268
|
+
- lib/candidhealth/encounter_providers/v_2/types/ordering_provider_optional.rb
|
260
269
|
- lib/candidhealth/encounter_providers/v_2/types/ordering_provider_update.rb
|
261
270
|
- lib/candidhealth/encounter_providers/v_2/types/referring_provider.rb
|
262
271
|
- lib/candidhealth/encounter_providers/v_2/types/referring_provider_update.rb
|
@@ -272,13 +281,17 @@ files:
|
|
272
281
|
- lib/candidhealth/encounters/v_4/types/billable_status_type.rb
|
273
282
|
- lib/candidhealth/encounters/v_4/types/cash_pay_payer_error_message.rb
|
274
283
|
- lib/candidhealth/encounters/v_4/types/claim_supplemental_information.rb
|
284
|
+
- lib/candidhealth/encounters/v_4/types/claim_supplemental_information_optional.rb
|
275
285
|
- lib/candidhealth/encounters/v_4/types/clinical_note.rb
|
276
286
|
- lib/candidhealth/encounters/v_4/types/clinical_note_category.rb
|
277
287
|
- lib/candidhealth/encounters/v_4/types/clinical_note_category_create.rb
|
288
|
+
- lib/candidhealth/encounters/v_4/types/clinical_note_category_create_optional.rb
|
289
|
+
- lib/candidhealth/encounters/v_4/types/clinical_note_optional.rb
|
278
290
|
- lib/candidhealth/encounters/v_4/types/coding_attribution_type.rb
|
279
291
|
- lib/candidhealth/encounters/v_4/types/encounter.rb
|
280
292
|
- lib/candidhealth/encounters/v_4/types/encounter_base.rb
|
281
293
|
- lib/candidhealth/encounters/v_4/types/encounter_create_from_pre_encounter.rb
|
294
|
+
- lib/candidhealth/encounters/v_4/types/encounter_deep_optional.rb
|
282
295
|
- lib/candidhealth/encounters/v_4/types/encounter_external_id_uniqueness_error_type.rb
|
283
296
|
- lib/candidhealth/encounters/v_4/types/encounter_guarantor_missing_contact_info_error_type.rb
|
284
297
|
- lib/candidhealth/encounters/v_4/types/encounter_optional.rb
|
@@ -288,20 +301,26 @@ files:
|
|
288
301
|
- lib/candidhealth/encounters/v_4/types/encounter_sort_options.rb
|
289
302
|
- lib/candidhealth/encounters/v_4/types/encounter_submission_origin_type.rb
|
290
303
|
- lib/candidhealth/encounters/v_4/types/epsdt_referral.rb
|
304
|
+
- lib/candidhealth/encounters/v_4/types/epsdt_referral_optional.rb
|
291
305
|
- lib/candidhealth/encounters/v_4/types/intake_follow_up.rb
|
292
306
|
- lib/candidhealth/encounters/v_4/types/intake_question.rb
|
307
|
+
- lib/candidhealth/encounters/v_4/types/intake_question_optional.rb
|
293
308
|
- lib/candidhealth/encounters/v_4/types/intake_response_and_follow_ups.rb
|
294
309
|
- lib/candidhealth/encounters/v_4/types/intervention.rb
|
295
310
|
- lib/candidhealth/encounters/v_4/types/intervention_category.rb
|
311
|
+
- lib/candidhealth/encounters/v_4/types/intervention_optional.rb
|
296
312
|
- lib/candidhealth/encounters/v_4/types/invalid_tag_names_error_type.rb
|
297
313
|
- lib/candidhealth/encounters/v_4/types/key_does_not_exist_error.rb
|
298
314
|
- lib/candidhealth/encounters/v_4/types/lab.rb
|
299
315
|
- lib/candidhealth/encounters/v_4/types/lab_code_type.rb
|
316
|
+
- lib/candidhealth/encounters/v_4/types/lab_optional.rb
|
300
317
|
- lib/candidhealth/encounters/v_4/types/medication.rb
|
318
|
+
- lib/candidhealth/encounters/v_4/types/medication_optional.rb
|
301
319
|
- lib/candidhealth/encounters/v_4/types/multiple_instances_for_schema_error.rb
|
302
320
|
- lib/candidhealth/encounters/v_4/types/note_category.rb
|
303
321
|
- lib/candidhealth/encounters/v_4/types/patient_history_category.rb
|
304
322
|
- lib/candidhealth/encounters/v_4/types/patient_history_category_enum.rb
|
323
|
+
- lib/candidhealth/encounters/v_4/types/patient_history_category_optional.rb
|
305
324
|
- lib/candidhealth/encounters/v_4/types/payer_plan_group_payer_does_not_match_insurance_card_error.rb
|
306
325
|
- lib/candidhealth/encounters/v_4/types/report_transmission_code.rb
|
307
326
|
- lib/candidhealth/encounters/v_4/types/report_type_code.rb
|
@@ -402,6 +421,7 @@ files:
|
|
402
421
|
- lib/candidhealth/guarantor/v_1/types/guarantor.rb
|
403
422
|
- lib/candidhealth/guarantor/v_1/types/guarantor_base.rb
|
404
423
|
- lib/candidhealth/guarantor/v_1/types/guarantor_create.rb
|
424
|
+
- lib/candidhealth/guarantor/v_1/types/guarantor_optional.rb
|
405
425
|
- lib/candidhealth/guarantor/v_1/types/guarantor_update.rb
|
406
426
|
- lib/candidhealth/identifiers/types/identifier.rb
|
407
427
|
- lib/candidhealth/identifiers/types/identifier_base.rb
|
@@ -422,6 +442,7 @@ files:
|
|
422
442
|
- lib/candidhealth/import_invoice/v_1/types/invoice_item_update_type.rb
|
423
443
|
- lib/candidhealth/individual/types/gender.rb
|
424
444
|
- lib/candidhealth/individual/types/individual_base.rb
|
445
|
+
- lib/candidhealth/individual/types/individual_base_optional.rb
|
425
446
|
- lib/candidhealth/individual/types/patient.rb
|
426
447
|
- lib/candidhealth/individual/types/patient_base.rb
|
427
448
|
- lib/candidhealth/individual/types/patient_clinical_trial_info.rb
|
@@ -429,11 +450,14 @@ files:
|
|
429
450
|
- lib/candidhealth/individual/types/patient_create.rb
|
430
451
|
- lib/candidhealth/individual/types/patient_non_insurance_payer_info.rb
|
431
452
|
- lib/candidhealth/individual/types/patient_non_insurance_payer_info_create.rb
|
453
|
+
- lib/candidhealth/individual/types/patient_non_insurance_payer_info_create_optional.rb
|
432
454
|
- lib/candidhealth/individual/types/patient_update.rb
|
433
455
|
- lib/candidhealth/individual/types/patient_update_with_optional_address.rb
|
434
456
|
- lib/candidhealth/individual/types/subscriber.rb
|
435
457
|
- lib/candidhealth/individual/types/subscriber_base.rb
|
458
|
+
- lib/candidhealth/individual/types/subscriber_base_optional.rb
|
436
459
|
- lib/candidhealth/individual/types/subscriber_create.rb
|
460
|
+
- lib/candidhealth/individual/types/subscriber_create_optional.rb
|
437
461
|
- lib/candidhealth/insurance_adjudications/client.rb
|
438
462
|
- lib/candidhealth/insurance_adjudications/v_1/client.rb
|
439
463
|
- lib/candidhealth/insurance_adjudications/v_1/types/claim_adjudication.rb
|
@@ -445,6 +469,7 @@ files:
|
|
445
469
|
- lib/candidhealth/insurance_cards/v_2/types/insurance_card.rb
|
446
470
|
- lib/candidhealth/insurance_cards/v_2/types/insurance_card_base.rb
|
447
471
|
- lib/candidhealth/insurance_cards/v_2/types/insurance_card_create.rb
|
472
|
+
- lib/candidhealth/insurance_cards/v_2/types/insurance_card_create_optional.rb
|
448
473
|
- lib/candidhealth/insurance_payments/client.rb
|
449
474
|
- lib/candidhealth/insurance_payments/v_1/client.rb
|
450
475
|
- lib/candidhealth/insurance_payments/v_1/types/insurance_payment.rb
|
@@ -599,10 +624,6 @@ files:
|
|
599
624
|
- lib/candidhealth/pre_encounter/coverages/v_1/types/coverage_value.rb
|
600
625
|
- lib/candidhealth/pre_encounter/coverages/v_1/types/coverage_value_unit.rb
|
601
626
|
- lib/candidhealth/pre_encounter/coverages/v_1/types/coverages_page.rb
|
602
|
-
- lib/candidhealth/pre_encounter/coverages/v_1/types/eligibility_check.rb
|
603
|
-
- lib/candidhealth/pre_encounter/coverages/v_1/types/eligibility_check_metadata.rb
|
604
|
-
- lib/candidhealth/pre_encounter/coverages/v_1/types/eligibility_check_status.rb
|
605
|
-
- lib/candidhealth/pre_encounter/coverages/v_1/types/eligibility_status.rb
|
606
627
|
- lib/candidhealth/pre_encounter/coverages/v_1/types/expanded_member_info.rb
|
607
628
|
- lib/candidhealth/pre_encounter/coverages/v_1/types/insurance_plan.rb
|
608
629
|
- lib/candidhealth/pre_encounter/coverages/v_1/types/insurance_type_code.rb
|
@@ -622,9 +643,17 @@ files:
|
|
622
643
|
- lib/candidhealth/pre_encounter/coverages/v_1/types/subscriber.rb
|
623
644
|
- lib/candidhealth/pre_encounter/eligibility_checks/client.rb
|
624
645
|
- lib/candidhealth/pre_encounter/eligibility_checks/v_1/client.rb
|
646
|
+
- lib/candidhealth/pre_encounter/eligibility_checks/v_1/types/batch_eligibility_response.rb
|
625
647
|
- lib/candidhealth/pre_encounter/eligibility_checks/v_1/types/eligibility_check.rb
|
648
|
+
- lib/candidhealth/pre_encounter/eligibility_checks/v_1/types/eligibility_check_error.rb
|
649
|
+
- lib/candidhealth/pre_encounter/eligibility_checks/v_1/types/eligibility_check_error_details.rb
|
650
|
+
- lib/candidhealth/pre_encounter/eligibility_checks/v_1/types/eligibility_check_error_source.rb
|
651
|
+
- lib/candidhealth/pre_encounter/eligibility_checks/v_1/types/eligibility_check_metadata.rb
|
652
|
+
- lib/candidhealth/pre_encounter/eligibility_checks/v_1/types/eligibility_check_page.rb
|
653
|
+
- lib/candidhealth/pre_encounter/eligibility_checks/v_1/types/eligibility_check_status.rb
|
626
654
|
- lib/candidhealth/pre_encounter/eligibility_checks/v_1/types/eligibility_request.rb
|
627
655
|
- lib/candidhealth/pre_encounter/eligibility_checks/v_1/types/eligibility_response.rb
|
656
|
+
- lib/candidhealth/pre_encounter/eligibility_checks/v_1/types/eligibility_status.rb
|
628
657
|
- lib/candidhealth/pre_encounter/eligibility_checks/v_1/types/encounter.rb
|
629
658
|
- lib/candidhealth/pre_encounter/eligibility_checks/v_1/types/individual_provider.rb
|
630
659
|
- lib/candidhealth/pre_encounter/eligibility_checks/v_1/types/organization_provider.rb
|
@@ -680,16 +709,19 @@ files:
|
|
680
709
|
- lib/candidhealth/service_lines/v_2/client.rb
|
681
710
|
- lib/candidhealth/service_lines/v_2/types/denial_reason_content.rb
|
682
711
|
- lib/candidhealth/service_lines/v_2/types/drug_identification.rb
|
712
|
+
- lib/candidhealth/service_lines/v_2/types/drug_identification_optional.rb
|
683
713
|
- lib/candidhealth/service_lines/v_2/types/measurement_unit_code.rb
|
684
714
|
- lib/candidhealth/service_lines/v_2/types/service_id_qualifier.rb
|
685
715
|
- lib/candidhealth/service_lines/v_2/types/service_line.rb
|
686
716
|
- lib/candidhealth/service_lines/v_2/types/service_line_adjustment.rb
|
687
717
|
- lib/candidhealth/service_lines/v_2/types/service_line_create.rb
|
718
|
+
- lib/candidhealth/service_lines/v_2/types/service_line_create_optional.rb
|
688
719
|
- lib/candidhealth/service_lines/v_2/types/service_line_create_standalone.rb
|
689
720
|
- lib/candidhealth/service_lines/v_2/types/service_line_denial_reason.rb
|
690
721
|
- lib/candidhealth/service_lines/v_2/types/service_line_era_data.rb
|
691
722
|
- lib/candidhealth/service_lines/v_2/types/service_line_update.rb
|
692
723
|
- lib/candidhealth/service_lines/v_2/types/test_result.rb
|
724
|
+
- lib/candidhealth/service_lines/v_2/types/test_result_optional.rb
|
693
725
|
- lib/candidhealth/service_lines/v_2/types/test_result_type.rb
|
694
726
|
- lib/candidhealth/superbills/client.rb
|
695
727
|
- lib/candidhealth/superbills/v_1/client.rb
|
@@ -735,6 +767,7 @@ files:
|
|
735
767
|
- lib/candidhealth/x_12/v_1/types/claim_adjustment_reason_code.rb
|
736
768
|
- lib/candidhealth/x_12/v_1/types/rarc.rb
|
737
769
|
- lib/candidhealth/x_12/v_1/types/remittance_advice_remark_code.rb
|
770
|
+
- lib/candidhealth/yes_no_indicator/types/yes_no_indicator.rb
|
738
771
|
- lib/core/file_utilities.rb
|
739
772
|
- lib/core/oauth.rb
|
740
773
|
- lib/environment.rb
|
@@ -1,116 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
require_relative "eligibility_status"
|
4
|
-
require_relative "plan_metadata"
|
5
|
-
require_relative "coverage_benefits"
|
6
|
-
require "ostruct"
|
7
|
-
require "json"
|
8
|
-
|
9
|
-
module CandidApiClient
|
10
|
-
module PreEncounter
|
11
|
-
module Coverages
|
12
|
-
module V1
|
13
|
-
module Types
|
14
|
-
class EligibilityCheck
|
15
|
-
# @return [Object]
|
16
|
-
attr_reader :raw_json
|
17
|
-
# @return [Object]
|
18
|
-
attr_reader :errors
|
19
|
-
# @return [CandidApiClient::PreEncounter::Coverages::V1::Types::EligibilityStatus]
|
20
|
-
attr_reader :eligibility_status
|
21
|
-
# @return [CandidApiClient::PreEncounter::Coverages::V1::Types::PlanMetadata]
|
22
|
-
attr_reader :plan_metadata
|
23
|
-
# @return [CandidApiClient::PreEncounter::Coverages::V1::Types::CoverageBenefits]
|
24
|
-
attr_reader :benefits
|
25
|
-
# @return [OpenStruct] Additional properties unmapped to the current class definition
|
26
|
-
attr_reader :additional_properties
|
27
|
-
# @return [Object]
|
28
|
-
attr_reader :_field_set
|
29
|
-
protected :_field_set
|
30
|
-
|
31
|
-
OMIT = Object.new
|
32
|
-
|
33
|
-
# @param raw_json [Object]
|
34
|
-
# @param errors [Object]
|
35
|
-
# @param eligibility_status [CandidApiClient::PreEncounter::Coverages::V1::Types::EligibilityStatus]
|
36
|
-
# @param plan_metadata [CandidApiClient::PreEncounter::Coverages::V1::Types::PlanMetadata]
|
37
|
-
# @param benefits [CandidApiClient::PreEncounter::Coverages::V1::Types::CoverageBenefits]
|
38
|
-
# @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
|
39
|
-
# @return [CandidApiClient::PreEncounter::Coverages::V1::Types::EligibilityCheck]
|
40
|
-
def initialize(raw_json:, eligibility_status:, errors: OMIT, plan_metadata: OMIT, benefits: OMIT,
|
41
|
-
additional_properties: nil)
|
42
|
-
@raw_json = raw_json
|
43
|
-
@errors = errors if errors != OMIT
|
44
|
-
@eligibility_status = eligibility_status
|
45
|
-
@plan_metadata = plan_metadata if plan_metadata != OMIT
|
46
|
-
@benefits = benefits if benefits != OMIT
|
47
|
-
@additional_properties = additional_properties
|
48
|
-
@_field_set = {
|
49
|
-
"raw_json": raw_json,
|
50
|
-
"errors": errors,
|
51
|
-
"eligibility_status": eligibility_status,
|
52
|
-
"plan_metadata": plan_metadata,
|
53
|
-
"benefits": benefits
|
54
|
-
}.reject do |_k, v|
|
55
|
-
v == OMIT
|
56
|
-
end
|
57
|
-
end
|
58
|
-
|
59
|
-
# Deserialize a JSON object to an instance of EligibilityCheck
|
60
|
-
#
|
61
|
-
# @param json_object [String]
|
62
|
-
# @return [CandidApiClient::PreEncounter::Coverages::V1::Types::EligibilityCheck]
|
63
|
-
def self.from_json(json_object:)
|
64
|
-
struct = JSON.parse(json_object, object_class: OpenStruct)
|
65
|
-
parsed_json = JSON.parse(json_object)
|
66
|
-
raw_json = struct["raw_json"]
|
67
|
-
errors = struct["errors"]
|
68
|
-
eligibility_status = struct["eligibility_status"]
|
69
|
-
if parsed_json["plan_metadata"].nil?
|
70
|
-
plan_metadata = nil
|
71
|
-
else
|
72
|
-
plan_metadata = parsed_json["plan_metadata"].to_json
|
73
|
-
plan_metadata = CandidApiClient::PreEncounter::Coverages::V1::Types::PlanMetadata.from_json(json_object: plan_metadata)
|
74
|
-
end
|
75
|
-
if parsed_json["benefits"].nil?
|
76
|
-
benefits = nil
|
77
|
-
else
|
78
|
-
benefits = parsed_json["benefits"].to_json
|
79
|
-
benefits = CandidApiClient::PreEncounter::Coverages::V1::Types::CoverageBenefits.from_json(json_object: benefits)
|
80
|
-
end
|
81
|
-
new(
|
82
|
-
raw_json: raw_json,
|
83
|
-
errors: errors,
|
84
|
-
eligibility_status: eligibility_status,
|
85
|
-
plan_metadata: plan_metadata,
|
86
|
-
benefits: benefits,
|
87
|
-
additional_properties: struct
|
88
|
-
)
|
89
|
-
end
|
90
|
-
|
91
|
-
# Serialize an instance of EligibilityCheck to a JSON object
|
92
|
-
#
|
93
|
-
# @return [String]
|
94
|
-
def to_json(*_args)
|
95
|
-
@_field_set&.to_json
|
96
|
-
end
|
97
|
-
|
98
|
-
# Leveraged for Union-type generation, validate_raw attempts to parse the given
|
99
|
-
# hash and check each fields type against the current object's property
|
100
|
-
# definitions.
|
101
|
-
#
|
102
|
-
# @param obj [Object]
|
103
|
-
# @return [Void]
|
104
|
-
def self.validate_raw(obj:)
|
105
|
-
obj.raw_json.is_a?(Object) != false || raise("Passed value for field obj.raw_json is not the expected type, validation failed.")
|
106
|
-
obj.errors&.is_a?(Object) != false || raise("Passed value for field obj.errors is not the expected type, validation failed.")
|
107
|
-
obj.eligibility_status.is_a?(CandidApiClient::PreEncounter::Coverages::V1::Types::EligibilityStatus) != false || raise("Passed value for field obj.eligibility_status is not the expected type, validation failed.")
|
108
|
-
obj.plan_metadata.nil? || CandidApiClient::PreEncounter::Coverages::V1::Types::PlanMetadata.validate_raw(obj: obj.plan_metadata)
|
109
|
-
obj.benefits.nil? || CandidApiClient::PreEncounter::Coverages::V1::Types::CoverageBenefits.validate_raw(obj: obj.benefits)
|
110
|
-
end
|
111
|
-
end
|
112
|
-
end
|
113
|
-
end
|
114
|
-
end
|
115
|
-
end
|
116
|
-
end
|