candidhealth 0.21.0 → 0.24.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/candidhealth/auth/client.rb +8 -6
- data/lib/candidhealth/auth/v_2/client.rb +86 -38
- data/lib/candidhealth/auth/v_2/types/auth_get_token_response.rb +61 -43
- data/lib/candidhealth/auth/v_2/types/too_many_requests_error_type.rb +44 -33
- data/lib/candidhealth/billing_notes/client.rb +8 -6
- data/lib/candidhealth/billing_notes/v_2/client.rb +43 -21
- data/lib/candidhealth/billing_notes/v_2/types/billing_note.rb +95 -72
- data/lib/candidhealth/billing_notes/v_2/types/billing_note_base.rb +44 -33
- data/lib/candidhealth/claim_submission/v_1/types/claim_frequency_type_code.rb +6 -4
- data/lib/candidhealth/claim_submission/v_1/types/claim_submission_record_create.rb +80 -59
- data/lib/candidhealth/claim_submission/v_1/types/external_claim_submission_create.rb +78 -56
- data/lib/candidhealth/claims/types/claim.rb +114 -86
- data/lib/candidhealth/claims/types/claim_status.rb +19 -17
- data/lib/candidhealth/commons/types/claim_adjustment_group_codes.rb +14 -12
- data/lib/candidhealth/commons/types/claim_submission_payer_responsibility_type.rb +6 -4
- data/lib/candidhealth/commons/types/date_range_optional_end.rb +57 -40
- data/lib/candidhealth/commons/types/delay_reason_code.rb +19 -17
- data/lib/candidhealth/commons/types/emr_payer_crosswalk.rb +6 -4
- data/lib/candidhealth/commons/types/entity_conflict_error_message.rb +45 -34
- data/lib/candidhealth/commons/types/entity_not_found_error_message.rb +45 -34
- data/lib/candidhealth/commons/types/facility_type_code.rb +58 -55
- data/lib/candidhealth/commons/types/http_service_unavailable_error_message.rb +47 -34
- data/lib/candidhealth/commons/types/insurance_type_code.rb +76 -73
- data/lib/candidhealth/commons/types/intended_submission_medium.rb +9 -5
- data/lib/candidhealth/commons/types/network_type.rb +23 -21
- data/lib/candidhealth/commons/types/organization_not_authorized_error_message.rb +46 -34
- data/lib/candidhealth/commons/types/patient_relationship_to_insured_code_all.rb +28 -26
- data/lib/candidhealth/commons/types/phone_number.rb +55 -39
- data/lib/candidhealth/commons/types/phone_number_type.rb +7 -5
- data/lib/candidhealth/commons/types/procedure_modifier.rb +391 -389
- data/lib/candidhealth/commons/types/qualifier_code.rb +14 -0
- data/lib/candidhealth/commons/types/region_national.rb +39 -29
- data/lib/candidhealth/commons/types/region_states.rb +45 -34
- data/lib/candidhealth/commons/types/regions.rb +78 -72
- data/lib/candidhealth/commons/types/removable_date_range_optional_end.rb +77 -71
- data/lib/candidhealth/commons/types/request_validation_error.rb +57 -39
- data/lib/candidhealth/commons/types/resource_page.rb +57 -40
- data/lib/candidhealth/commons/types/service_line_units.rb +6 -4
- data/lib/candidhealth/commons/types/sort_direction.rb +6 -4
- data/lib/candidhealth/commons/types/source_of_payment_code.rb +28 -26
- data/lib/candidhealth/commons/types/state.rb +66 -64
- data/lib/candidhealth/commons/types/street_address_base.rb +84 -61
- data/lib/candidhealth/commons/types/street_address_long_zip.rb +93 -68
- data/lib/candidhealth/commons/types/street_address_short_zip.rb +93 -68
- data/lib/candidhealth/commons/types/unauthorized_error_message.rb +47 -34
- data/lib/candidhealth/commons/types/unprocessable_entity_error_message.rb +47 -34
- data/lib/candidhealth/commons/types/updates_disabled_due_to_external_system_integration_error_message.rb +49 -34
- data/lib/candidhealth/contracts/client.rb +8 -6
- data/lib/candidhealth/contracts/v_2/client.rb +251 -127
- data/lib/candidhealth/contracts/v_2/types/authorized_signatory.rb +92 -67
- data/lib/candidhealth/contracts/v_2/types/authorized_signatory_update.rb +76 -70
- data/lib/candidhealth/contracts/v_2/types/contract.rb +178 -141
- data/lib/candidhealth/contracts/v_2/types/contract_base.rb +134 -106
- data/lib/candidhealth/contracts/v_2/types/contract_is_linked_to_fee_schedule_error.rb +44 -33
- data/lib/candidhealth/contracts/v_2/types/contract_status.rb +6 -4
- data/lib/candidhealth/contracts/v_2/types/contract_with_providers.rb +191 -152
- data/lib/candidhealth/contracts/v_2/types/contracts_page.rb +70 -47
- data/lib/candidhealth/contracts/v_2/types/date_update.rb +76 -71
- data/lib/candidhealth/contracts/v_2/types/insurance_types.rb +86 -80
- data/lib/candidhealth/contracts/v_2/types/regions_update.rb +76 -70
- data/lib/candidhealth/diagnoses/types/diagnosis.rb +126 -91
- data/lib/candidhealth/diagnoses/types/diagnosis_create.rb +88 -58
- data/lib/candidhealth/diagnoses/types/diagnosis_type_code.rb +14 -12
- data/lib/candidhealth/diagnoses/types/standalone_diagnosis_create.rb +100 -64
- data/lib/candidhealth/eligibility/client.rb +8 -6
- data/lib/candidhealth/eligibility/v_2/client.rb +210 -124
- data/lib/candidhealth/encounter_providers/v_2/types/billing_provider.rb +126 -86
- data/lib/candidhealth/encounter_providers/v_2/types/encounter_provider.rb +128 -85
- data/lib/candidhealth/encounter_providers/v_2/types/encounter_provider_base.rb +73 -44
- data/lib/candidhealth/encounter_providers/v_2/types/initial_referring_provider.rb +132 -0
- data/lib/candidhealth/encounter_providers/v_2/types/ordering_provider.rb +123 -0
- data/lib/candidhealth/encounter_providers/v_2/types/referring_provider.rb +105 -73
- data/lib/candidhealth/encounter_providers/v_2/types/rendering_provider.rb +105 -73
- data/lib/candidhealth/encounter_providers/v_2/types/supervising_provider.rb +123 -0
- data/lib/candidhealth/encounters/client.rb +8 -6
- data/lib/candidhealth/encounters/v_4/client.rb +1021 -476
- data/lib/candidhealth/encounters/v_4/types/billable_status_type.rb +5 -3
- data/lib/candidhealth/encounters/v_4/types/cash_pay_payer_error_message.rb +44 -33
- data/lib/candidhealth/encounters/v_4/types/clinical_note.rb +76 -50
- data/lib/candidhealth/encounters/v_4/types/clinical_note_category.rb +70 -45
- data/lib/candidhealth/encounters/v_4/types/clinical_note_category_create.rb +57 -40
- data/lib/candidhealth/encounters/v_4/types/coding_attribution_type.rb +7 -5
- data/lib/candidhealth/encounters/v_4/types/encounter.rb +719 -482
- data/lib/candidhealth/encounters/v_4/types/encounter_base.rb +304 -223
- data/lib/candidhealth/encounters/v_4/types/encounter_external_id_uniqueness_error_type.rb +47 -34
- data/lib/candidhealth/encounters/v_4/types/encounter_guarantor_missing_contact_info_error_type.rb +46 -33
- data/lib/candidhealth/encounters/v_4/types/encounter_owner_of_next_action_type.rb +7 -5
- data/lib/candidhealth/encounters/v_4/types/encounter_page.rb +70 -47
- data/lib/candidhealth/encounters/v_4/types/encounter_patient_control_number_uniqueness_error_type.rb +46 -33
- data/lib/candidhealth/encounters/v_4/types/encounter_sort_options.rb +7 -5
- data/lib/candidhealth/encounters/v_4/types/encounter_submission_origin_type.rb +5 -3
- data/lib/candidhealth/encounters/v_4/types/intake_follow_up.rb +63 -44
- data/lib/candidhealth/encounters/v_4/types/intake_question.rb +66 -46
- data/lib/candidhealth/encounters/v_4/types/intake_response_and_follow_ups.rb +59 -40
- data/lib/candidhealth/encounters/v_4/types/intervention.rb +92 -66
- data/lib/candidhealth/encounters/v_4/types/intervention_category.rb +7 -5
- data/lib/candidhealth/encounters/v_4/types/lab.rb +63 -43
- data/lib/candidhealth/encounters/v_4/types/lab_code_type.rb +5 -3
- data/lib/candidhealth/encounters/v_4/types/medication.rb +92 -68
- data/lib/candidhealth/encounters/v_4/types/note_category.rb +17 -15
- data/lib/candidhealth/encounters/v_4/types/patient_history_category.rb +57 -40
- data/lib/candidhealth/encounters/v_4/types/patient_history_category_enum.rb +7 -5
- data/lib/candidhealth/encounters/v_4/types/responsible_party_type.rb +6 -4
- data/lib/candidhealth/encounters/v_4/types/service_authorization_exception_code.rb +14 -10
- data/lib/candidhealth/encounters/v_4/types/synchronicity_type.rb +5 -3
- data/lib/candidhealth/encounters/v_4/types/vitals.rb +84 -62
- data/lib/candidhealth/era/types/era.rb +62 -46
- data/lib/candidhealth/era/types/era_base.rb +55 -40
- data/lib/candidhealth/era/types/era_not_fully_processed_error_message.rb +55 -40
- data/lib/candidhealth/era_commons/types/claim_status_code_create.rb +14 -12
- data/lib/candidhealth/expected_network_status/client.rb +16 -10
- data/lib/candidhealth/expected_network_status/v_1/client.rb +76 -29
- data/lib/candidhealth/expected_network_status/v_1/types/expected_network_status.rb +6 -4
- data/lib/candidhealth/expected_network_status/v_1/types/expected_network_status_response.rb +69 -49
- data/lib/candidhealth/expected_network_status/v_2/client.rb +108 -69
- data/lib/candidhealth/expected_network_status/v_2/types/compute_all_in_network_providers_request.rb +129 -96
- data/lib/candidhealth/expected_network_status/v_2/types/compute_all_in_network_providers_response.rb +62 -47
- data/lib/candidhealth/expected_network_status/v_2/types/compute_all_in_network_rendering_providers_result.rb +89 -82
- data/lib/candidhealth/expected_network_status/v_2/types/expected_network_status_check_error_message.rb +45 -33
- data/lib/candidhealth/expected_network_status/v_2/types/expected_network_status_request_v_2.rb +129 -96
- data/lib/candidhealth/expected_network_status/v_2/types/expected_network_status_response_v_2.rb +59 -44
- data/lib/candidhealth/expected_network_status/v_2/types/expected_network_status_subscriber_information.rb +68 -49
- data/lib/candidhealth/expected_network_status/v_2/types/expected_network_status_v_2.rb +88 -82
- data/lib/candidhealth/expected_network_status/v_2/types/explanation.rb +11 -9
- data/lib/candidhealth/expected_network_status/v_2/types/in_network_rendering_providers_detail.rb +66 -51
- data/lib/candidhealth/expected_network_status/v_2/types/in_network_status.rb +57 -41
- data/lib/candidhealth/expected_network_status/v_2/types/indeterminate_network_status.rb +76 -57
- data/lib/candidhealth/expected_network_status/v_2/types/insurance_type.rb +59 -43
- data/lib/candidhealth/expected_network_status/v_2/types/insurance_type_codes.rb +86 -80
- data/lib/candidhealth/expected_network_status/v_2/types/line_of_business.rb +6 -4
- data/lib/candidhealth/expected_network_status/v_2/types/out_of_network_status.rb +65 -50
- data/lib/candidhealth/expected_network_status/v_2/types/service_type.rb +44 -42
- data/lib/candidhealth/exports/client.rb +8 -6
- data/lib/candidhealth/exports/v_3/client.rb +88 -48
- data/lib/candidhealth/exports/v_3/types/get_exports_response.rb +79 -58
- data/lib/candidhealth/external_payment_account_config/client.rb +30 -0
- data/lib/candidhealth/external_payment_account_config/v_1/client.rb +89 -0
- data/lib/candidhealth/external_payment_account_config/v_1/types/external_payment_account_config.rb +70 -0
- data/lib/candidhealth/external_payment_account_config/v_1/types/external_payment_account_config_page.rb +88 -0
- data/lib/candidhealth/fee_schedules/client.rb +8 -6
- data/lib/candidhealth/fee_schedules/v_3/client.rb +429 -181
- data/lib/candidhealth/fee_schedules/v_3/types/dimension_match.rb +159 -130
- data/lib/candidhealth/fee_schedules/v_3/types/dimension_name.rb +7 -5
- data/lib/candidhealth/fee_schedules/v_3/types/dimensions.rb +146 -117
- data/lib/candidhealth/fee_schedules/v_3/types/dimensions_page.rb +70 -51
- data/lib/candidhealth/fee_schedules/v_3/types/match_cpt_code.rb +62 -44
- data/lib/candidhealth/fee_schedules/v_3/types/match_date.rb +65 -44
- data/lib/candidhealth/fee_schedules/v_3/types/match_facility_type_code.rb +64 -44
- data/lib/candidhealth/fee_schedules/v_3/types/match_geo.rb +76 -49
- data/lib/candidhealth/fee_schedules/v_3/types/match_license_type.rb +64 -44
- data/lib/candidhealth/fee_schedules/v_3/types/match_modifiers.rb +67 -48
- data/lib/candidhealth/fee_schedules/v_3/types/match_network_types.rb +67 -48
- data/lib/candidhealth/fee_schedules/v_3/types/match_payer.rb +62 -45
- data/lib/candidhealth/fee_schedules/v_3/types/match_provider.rb +64 -45
- data/lib/candidhealth/fee_schedules/v_3/types/match_result.rb +59 -43
- data/lib/candidhealth/fee_schedules/v_3/types/match_test_result.rb +63 -46
- data/lib/candidhealth/fee_schedules/v_3/types/new_rate.rb +61 -44
- data/lib/candidhealth/fee_schedules/v_3/types/new_rate_version.rb +70 -46
- data/lib/candidhealth/fee_schedules/v_3/types/optional_dimensions.rb +148 -117
- data/lib/candidhealth/fee_schedules/v_3/types/overlapping_rate_entries_error.rb +71 -52
- data/lib/candidhealth/fee_schedules/v_3/types/payer_threshold.rb +77 -50
- data/lib/candidhealth/fee_schedules/v_3/types/payer_thresholds_page.rb +70 -51
- data/lib/candidhealth/fee_schedules/v_3/types/rate.rb +100 -75
- data/lib/candidhealth/fee_schedules/v_3/types/rate_entry.rb +79 -55
- data/lib/candidhealth/fee_schedules/v_3/types/rate_upload.rb +77 -71
- data/lib/candidhealth/fee_schedules/v_3/types/rate_upload_with_possible_errors.rb +79 -55
- data/lib/candidhealth/fee_schedules/v_3/types/rates_page.rb +70 -47
- data/lib/candidhealth/fee_schedules/v_3/types/threshold_match.rb +79 -54
- data/lib/candidhealth/fee_schedules/v_3/types/validation_error.rb +108 -102
- data/lib/candidhealth/financials/types/account_type.rb +6 -4
- data/lib/candidhealth/financials/types/allocation.rb +60 -43
- data/lib/candidhealth/financials/types/allocation_create.rb +63 -45
- data/lib/candidhealth/financials/types/allocation_target.rb +102 -95
- data/lib/candidhealth/financials/types/allocation_target_create.rb +113 -110
- data/lib/candidhealth/financials/types/billing_provider_allocation_target.rb +45 -35
- data/lib/candidhealth/financials/types/claim_allocation_target.rb +55 -41
- data/lib/candidhealth/financials/types/invoice_update.rb +77 -72
- data/lib/candidhealth/financials/types/note_update.rb +77 -71
- data/lib/candidhealth/financials/types/patient_transaction_source.rb +11 -9
- data/lib/candidhealth/financials/types/refund_reason.rb +5 -3
- data/lib/candidhealth/financials/types/refund_reason_update.rb +77 -71
- data/lib/candidhealth/financials/types/service_line_allocation_target.rb +62 -48
- data/lib/candidhealth/guarantor/client.rb +8 -6
- data/lib/candidhealth/guarantor/v_1/client.rb +136 -63
- data/lib/candidhealth/guarantor/v_1/types/encounter_has_existing_guarantor_error_type.rb +45 -33
- data/lib/candidhealth/guarantor/v_1/types/guarantor.rb +131 -100
- data/lib/candidhealth/guarantor/v_1/types/guarantor_base.rb +89 -65
- data/lib/candidhealth/guarantor/v_1/types/guarantor_create.rb +123 -93
- data/lib/candidhealth/identifiers/types/identifier.rb +85 -64
- data/lib/candidhealth/identifiers/types/identifier_base.rb +77 -53
- data/lib/candidhealth/identifiers/types/identifier_code.rb +6 -4
- data/lib/candidhealth/identifiers/types/identifier_create.rb +77 -53
- data/lib/candidhealth/identifiers/types/identifier_update.rb +86 -65
- data/lib/candidhealth/identifiers/types/identifier_value.rb +78 -72
- data/lib/candidhealth/identifiers/types/medicaid_provider_identifier.rb +55 -39
- data/lib/candidhealth/identifiers/types/medicare_provider_identifier.rb +55 -39
- data/lib/candidhealth/identifiers/types/updatable_identifier.rb +89 -84
- data/lib/candidhealth/import_invoice/client.rb +8 -6
- data/lib/candidhealth/import_invoice/v_1/client.rb +182 -86
- data/lib/candidhealth/import_invoice/v_1/types/create_import_invoice_request.rb +123 -83
- data/lib/candidhealth/import_invoice/v_1/types/import_invoice.rb +145 -110
- data/lib/candidhealth/import_invoice/v_1/types/import_invoice_update_request.rb +89 -65
- data/lib/candidhealth/import_invoice/v_1/types/import_invoices_page.rb +70 -47
- data/lib/candidhealth/import_invoice/v_1/types/invoice_item_info_update.rb +61 -42
- data/lib/candidhealth/import_invoice/v_1/types/invoice_item_update_type.rb +5 -3
- data/lib/candidhealth/individual/types/gender.rb +9 -7
- data/lib/candidhealth/individual/types/individual_base.rb +62 -44
- data/lib/candidhealth/individual/types/patient.rb +145 -108
- data/lib/candidhealth/individual/types/patient_base.rb +101 -73
- data/lib/candidhealth/individual/types/patient_create.rb +137 -101
- data/lib/candidhealth/individual/types/subscriber.rb +119 -91
- data/lib/candidhealth/individual/types/subscriber_base.rb +99 -74
- data/lib/candidhealth/individual/types/subscriber_create.rb +111 -84
- data/lib/candidhealth/insurance_adjudications/client.rb +8 -6
- data/lib/candidhealth/insurance_adjudications/v_1/client.rb +106 -47
- data/lib/candidhealth/insurance_adjudications/v_1/types/claim_adjudication.rb +106 -81
- data/lib/candidhealth/insurance_adjudications/v_1/types/claim_adjudication_create.rb +98 -74
- data/lib/candidhealth/insurance_adjudications/v_1/types/insurance_adjudication.rb +104 -80
- data/lib/candidhealth/insurance_adjudications/v_1/types/insurance_adjudication_create.rb +113 -87
- data/lib/candidhealth/insurance_adjudications/v_1/types/service_line_adjudication.rb +121 -91
- data/lib/candidhealth/insurance_adjudications/v_1/types/service_line_adjudication_create.rb +113 -84
- data/lib/candidhealth/insurance_cards/v_2/types/insurance_card.rb +140 -105
- data/lib/candidhealth/insurance_cards/v_2/types/insurance_card_base.rb +76 -55
- data/lib/candidhealth/insurance_cards/v_2/types/insurance_card_create.rb +140 -104
- data/lib/candidhealth/insurance_payments/client.rb +8 -6
- data/lib/candidhealth/insurance_payments/v_1/client.rb +214 -102
- data/lib/candidhealth/insurance_payments/v_1/types/insurance_payment.rb +101 -77
- data/lib/candidhealth/insurance_payments/v_1/types/insurance_payment_create.rb +93 -70
- data/lib/candidhealth/insurance_payments/v_1/types/insurance_payment_sort_field.rb +6 -4
- data/lib/candidhealth/insurance_payments/v_1/types/insurance_payments_page.rb +70 -47
- data/lib/candidhealth/insurance_refunds/client.rb +8 -6
- data/lib/candidhealth/insurance_refunds/v_1/client.rb +218 -108
- data/lib/candidhealth/insurance_refunds/v_1/types/insurance_refund.rb +109 -83
- data/lib/candidhealth/insurance_refunds/v_1/types/insurance_refund_create.rb +101 -76
- data/lib/candidhealth/insurance_refunds/v_1/types/insurance_refund_sort_field.rb +7 -5
- data/lib/candidhealth/insurance_refunds/v_1/types/insurance_refunds_page.rb +70 -47
- data/lib/candidhealth/invoices/types/invoice.rb +152 -117
- data/lib/candidhealth/invoices/types/invoice_item.rb +55 -40
- data/lib/candidhealth/invoices/types/invoice_status.rb +10 -8
- data/lib/candidhealth/invoices/v_2/types/claim_invoice_item.rb +54 -39
- data/lib/candidhealth/invoices/v_2/types/claim_invoice_item_info.rb +66 -48
- data/lib/candidhealth/invoices/v_2/types/invoice.rb +151 -114
- data/lib/candidhealth/invoices/v_2/types/invoice_destination.rb +8 -5
- data/lib/candidhealth/invoices/v_2/types/invoice_destination_metadata.rb +78 -55
- data/lib/candidhealth/invoices/v_2/types/invoice_info.rb +66 -48
- data/lib/candidhealth/invoices/v_2/types/invoice_item_attribution_create.rb +88 -84
- data/lib/candidhealth/invoices/v_2/types/invoice_item_create.rb +59 -42
- data/lib/candidhealth/invoices/v_2/types/invoice_item_info.rb +59 -43
- data/lib/candidhealth/invoices/v_2/types/invoice_sort_field.rb +9 -7
- data/lib/candidhealth/invoices/v_2/types/invoice_status.rb +9 -7
- data/lib/candidhealth/invoices/v_2/types/service_line_invoice_item.rb +54 -39
- data/lib/candidhealth/invoices/v_2/types/unattributed_invoice_item.rb +44 -33
- data/lib/candidhealth/organization_providers/client.rb +8 -6
- data/lib/candidhealth/organization_providers/v_2/types/address_type.rb +4 -2
- data/lib/candidhealth/organization_providers/v_2/types/employment_status.rb +5 -3
- data/lib/candidhealth/organization_providers/v_2/types/license_type.rb +71 -69
- data/lib/candidhealth/organization_providers/v_2/types/organization_provider.rb +189 -138
- data/lib/candidhealth/organization_providers/v_2/types/organization_provider_address.rb +59 -42
- data/lib/candidhealth/organization_providers/v_2/types/organization_provider_base.rb +157 -112
- data/lib/candidhealth/organization_providers/v_2/types/organization_provider_sort_options.rb +7 -5
- data/lib/candidhealth/organization_providers/v_2/types/provider_type.rb +5 -3
- data/lib/candidhealth/organization_providers/v_3/client.rb +166 -80
- data/lib/candidhealth/organization_providers/v_3/types/organization_provider_create_v_2.rb +171 -124
- data/lib/candidhealth/organization_providers/v_3/types/organization_provider_page_v_2.rb +70 -47
- data/lib/candidhealth/organization_providers/v_3/types/organization_provider_update_v_2.rb +169 -121
- data/lib/candidhealth/organization_providers/v_3/types/organization_provider_v_2.rb +179 -131
- data/lib/candidhealth/organization_service_facilities/client.rb +8 -6
- data/lib/candidhealth/organization_service_facilities/v_2/client.rb +186 -90
- data/lib/candidhealth/organization_service_facilities/v_2/types/organization_service_facility.rb +149 -111
- data/lib/candidhealth/organization_service_facilities/v_2/types/organization_service_facility_create.rb +141 -104
- data/lib/candidhealth/organization_service_facilities/v_2/types/organization_service_facility_page.rb +70 -47
- data/lib/candidhealth/organization_service_facilities/v_2/types/organization_service_facility_update.rb +141 -104
- data/lib/candidhealth/organization_service_facilities/v_2/types/service_facility_mode.rb +5 -3
- data/lib/candidhealth/organization_service_facilities/v_2/types/service_facility_operational_status.rb +9 -7
- data/lib/candidhealth/organization_service_facilities/v_2/types/service_facility_physical_type.rb +17 -15
- data/lib/candidhealth/organization_service_facilities/v_2/types/service_facility_status.rb +6 -4
- data/lib/candidhealth/organization_service_facilities/v_2/types/service_facility_type.rb +126 -124
- data/lib/candidhealth/patient_payments/client.rb +8 -6
- data/lib/candidhealth/patient_payments/v_3/types/patient_payment.rb +143 -111
- data/lib/candidhealth/patient_payments/v_3/types/patient_payment_source.rb +12 -10
- data/lib/candidhealth/patient_payments/v_3/types/patient_payment_status.rb +14 -12
- data/lib/candidhealth/patient_payments/v_4/client.rb +230 -103
- data/lib/candidhealth/patient_payments/v_4/types/patient_payment.rb +129 -100
- data/lib/candidhealth/patient_payments/v_4/types/patient_payment_sort_field.rb +7 -5
- data/lib/candidhealth/patient_payments/v_4/types/patient_payments_page.rb +70 -47
- data/lib/candidhealth/patient_refunds/client.rb +8 -6
- data/lib/candidhealth/patient_refunds/v_1/client.rb +236 -107
- data/lib/candidhealth/patient_refunds/v_1/types/patient_refund.rb +137 -106
- data/lib/candidhealth/patient_refunds/v_1/types/patient_refund_sort_field.rb +8 -6
- data/lib/candidhealth/patient_refunds/v_1/types/patient_refunds_page.rb +70 -47
- data/lib/candidhealth/payers/client.rb +8 -6
- data/lib/candidhealth/payers/v_3/client.rb +73 -32
- data/lib/candidhealth/payers/v_3/types/payer.rb +61 -44
- data/lib/candidhealth/payers/v_3/types/payer_identifier.rb +77 -72
- data/lib/candidhealth/payers/v_3/types/payer_info.rb +54 -40
- data/lib/candidhealth/payers/v_3/types/payer_page.rb +70 -47
- data/lib/candidhealth/pre_encounter/client.rb +30 -0
- data/lib/candidhealth/pre_encounter/common/types/address.rb +123 -0
- data/lib/candidhealth/pre_encounter/common/types/address_use.rb +17 -0
- data/lib/candidhealth/pre_encounter/common/types/contact_point.rb +87 -0
- data/lib/candidhealth/pre_encounter/common/types/contact_point_use.rb +17 -0
- data/lib/candidhealth/pre_encounter/common/types/error_base.rb +60 -0
- data/lib/candidhealth/pre_encounter/common/types/gender.rb +16 -0
- data/lib/candidhealth/pre_encounter/common/types/human_name.rb +94 -0
- data/lib/candidhealth/pre_encounter/common/types/name_use.rb +19 -0
- data/lib/candidhealth/pre_encounter/common/types/not_found_error_body.rb +70 -0
- data/lib/candidhealth/pre_encounter/common/types/period.rb +74 -0
- data/lib/candidhealth/pre_encounter/common/types/relationship.rb +17 -0
- data/lib/candidhealth/pre_encounter/common/types/version_conflict_error_body.rb +77 -0
- data/lib/candidhealth/pre_encounter/coverages/client.rb +32 -0
- data/lib/candidhealth/pre_encounter/coverages/v_1/client.rb +34 -0
- data/lib/candidhealth/pre_encounter/coverages/v_1/coverages/client.rb +487 -0
- data/lib/candidhealth/pre_encounter/coverages/v_1/coverages/types/coverage.rb +185 -0
- data/lib/candidhealth/pre_encounter/coverages/v_1/coverages/types/coverage_status.rb +22 -0
- data/lib/candidhealth/pre_encounter/coverages/v_1/coverages/types/coverage_type.rb +18 -0
- data/lib/candidhealth/pre_encounter/coverages/v_1/coverages/types/insurance_plan.rb +136 -0
- data/lib/candidhealth/pre_encounter/coverages/v_1/coverages/types/mutable_coverage.rb +131 -0
- data/lib/candidhealth/pre_encounter/coverages/v_1/coverages/types/subscriber.rb +90 -0
- data/lib/candidhealth/pre_encounter/patients/client.rb +32 -0
- data/lib/candidhealth/pre_encounter/patients/v_1/client.rb +34 -0
- data/lib/candidhealth/pre_encounter/patients/v_1/patients/client.rb +590 -0
- data/lib/candidhealth/pre_encounter/patients/v_1/patients/types/contact.rb +135 -0
- data/lib/candidhealth/pre_encounter/patients/v_1/patients/types/external_provenance.rb +75 -0
- data/lib/candidhealth/pre_encounter/patients/v_1/patients/types/external_provider.rb +116 -0
- data/lib/candidhealth/pre_encounter/patients/v_1/patients/types/marital_status.rb +28 -0
- data/lib/candidhealth/pre_encounter/patients/v_1/patients/types/mutable_patient.rb +242 -0
- data/lib/candidhealth/pre_encounter/patients/v_1/patients/types/patient.rb +294 -0
- data/lib/candidhealth/remits/v_1/types/payee.rb +59 -42
- data/lib/candidhealth/remits/v_1/types/payee_identifier.rb +84 -80
- data/lib/candidhealth/service_facility/client.rb +58 -27
- data/lib/candidhealth/service_facility/types/encounter_service_facility.rb +87 -62
- data/lib/candidhealth/service_facility/types/encounter_service_facility_base.rb +87 -57
- data/lib/candidhealth/service_lines/v_2/types/denial_reason_content.rb +33 -31
- data/lib/candidhealth/service_lines/v_2/types/drug_identification.rb +92 -68
- data/lib/candidhealth/service_lines/v_2/types/measurement_unit_code.rb +8 -6
- data/lib/candidhealth/service_lines/v_2/types/service_id_qualifier.rb +10 -8
- data/lib/candidhealth/service_lines/v_2/types/service_line.rb +352 -222
- data/lib/candidhealth/service_lines/v_2/types/service_line_adjustment.rb +85 -62
- data/lib/candidhealth/service_lines/v_2/types/service_line_create.rb +235 -113
- data/lib/candidhealth/service_lines/v_2/types/service_line_denial_reason.rb +49 -35
- data/lib/candidhealth/service_lines/v_2/types/service_line_era_data.rb +60 -44
- data/lib/candidhealth/tags/types/tag.rb +69 -51
- data/lib/candidhealth/tags/types/tag_color_enum.rb +14 -12
- data/lib/candidhealth/tags/types/tag_create.rb +62 -45
- data/lib/candidhealth/tasks/client.rb +8 -6
- data/lib/candidhealth/tasks/commons/types/task_category.rb +45 -43
- data/lib/candidhealth/tasks/commons/types/task_status.rb +11 -9
- data/lib/candidhealth/tasks/commons/types/task_type.rb +16 -14
- data/lib/candidhealth/tasks/v_3/client.rb +208 -96
- data/lib/candidhealth/tasks/v_3/types/task.rb +193 -146
- data/lib/candidhealth/tasks/v_3/types/task_action.rb +66 -47
- data/lib/candidhealth/tasks/v_3/types/task_action_execution_method.rb +65 -59
- data/lib/candidhealth/tasks/v_3/types/task_action_type.rb +5 -3
- data/lib/candidhealth/tasks/v_3/types/task_actions.rb +47 -35
- data/lib/candidhealth/tasks/v_3/types/task_assignment.rb +59 -40
- data/lib/candidhealth/tasks/v_3/types/task_create_v_3.rb +100 -77
- data/lib/candidhealth/tasks/v_3/types/task_note.rb +83 -62
- data/lib/candidhealth/tasks/v_3/types/task_page.rb +70 -47
- data/lib/candidhealth/tasks/v_3/types/task_sort_options.rb +25 -23
- data/lib/candidhealth/tasks/v_3/types/task_update_v_3.rb +68 -49
- data/lib/candidhealth/tasks/v_3/types/task_updated_to_deprecated_status_error_type.rb +47 -33
- data/lib/candidhealth/write_offs/client.rb +8 -6
- data/lib/candidhealth/write_offs/v_1/client.rb +168 -83
- data/lib/candidhealth/write_offs/v_1/types/create_write_offs_response.rb +47 -35
- data/lib/candidhealth/write_offs/v_1/types/insurance_write_off.rb +127 -97
- data/lib/candidhealth/write_offs/v_1/types/insurance_write_off_create.rb +103 -78
- data/lib/candidhealth/write_offs/v_1/types/insurance_write_off_reason.rb +19 -17
- data/lib/candidhealth/write_offs/v_1/types/insurance_write_off_target.rb +84 -81
- data/lib/candidhealth/write_offs/v_1/types/patient_write_off.rb +111 -84
- data/lib/candidhealth/write_offs/v_1/types/patient_write_off_create.rb +87 -65
- data/lib/candidhealth/write_offs/v_1/types/patient_write_off_reason.rb +12 -10
- data/lib/candidhealth/write_offs/v_1/types/write_off.rb +77 -71
- data/lib/candidhealth/write_offs/v_1/types/write_off_create.rb +77 -71
- data/lib/candidhealth/write_offs/v_1/types/write_off_sort_field.rb +6 -4
- data/lib/candidhealth/write_offs/v_1/types/write_offs_page.rb +70 -47
- data/lib/candidhealth/x_12/v_1/types/carc.rb +406 -404
- data/lib/candidhealth/x_12/v_1/types/claim_adjustment_reason_code.rb +61 -44
- data/lib/candidhealth/x_12/v_1/types/rarc.rb +1063 -1061
- data/lib/candidhealth/x_12/v_1/types/remittance_advice_remark_code.rb +44 -33
- data/lib/candidhealth.rb +189 -87
- data/lib/core/oauth.rb +62 -0
- data/lib/environment.rb +8 -2
- data/lib/requests.rb +98 -48
- data/lib/types_export.rb +30 -53
- metadata +42 -55
- data/lib/candidhealth/billing_notes/v_2/types/billing_note_id.rb +0 -9
- data/lib/candidhealth/commons/types/claim_id.rb +0 -7
- data/lib/candidhealth/commons/types/date.rb +0 -7
- data/lib/candidhealth/commons/types/decimal.rb +0 -7
- data/lib/candidhealth/commons/types/email.rb +0 -7
- data/lib/candidhealth/commons/types/encounter_external_id.rb +0 -7
- data/lib/candidhealth/commons/types/encounter_id.rb +0 -7
- data/lib/candidhealth/commons/types/error_message.rb +0 -7
- data/lib/candidhealth/commons/types/invoice_id.rb +0 -7
- data/lib/candidhealth/commons/types/link_url.rb +0 -7
- data/lib/candidhealth/commons/types/npi.rb +0 -7
- data/lib/candidhealth/commons/types/organization_id.rb +0 -7
- data/lib/candidhealth/commons/types/page_token.rb +0 -7
- data/lib/candidhealth/commons/types/patient_external_id.rb +0 -7
- data/lib/candidhealth/commons/types/provider_id.rb +0 -7
- data/lib/candidhealth/commons/types/rate_id.rb +0 -7
- data/lib/candidhealth/commons/types/service_line_id.rb +0 -7
- data/lib/candidhealth/commons/types/task_assignment_id.rb +0 -7
- data/lib/candidhealth/commons/types/task_id.rb +0 -7
- data/lib/candidhealth/commons/types/task_note_id.rb +0 -7
- data/lib/candidhealth/commons/types/tax_id.rb +0 -7
- data/lib/candidhealth/commons/types/user_id.rb +0 -7
- data/lib/candidhealth/commons/types/work_queue_id.rb +0 -7
- data/lib/candidhealth/contracts/v_2/types/contract_id.rb +0 -9
- data/lib/candidhealth/contracts/v_2/types/contracting_provider_id.rb +0 -9
- data/lib/candidhealth/contracts/v_2/types/rendering_providerid.rb +0 -9
- data/lib/candidhealth/diagnoses/types/diagnosis_id.rb +0 -7
- data/lib/candidhealth/encounter_providers/v_2/types/provider_id.rb +0 -9
- data/lib/candidhealth/encounters/v_4/types/intake_follow_up_id.rb +0 -9
- data/lib/candidhealth/encounters/v_4/types/intake_question_id.rb +0 -9
- data/lib/candidhealth/encounters/v_4/types/prior_authorization_number.rb +0 -9
- data/lib/candidhealth/encounters/v_4/types/rx_cui.rb +0 -9
- data/lib/candidhealth/era/types/era_id.rb +0 -7
- data/lib/candidhealth/expected_network_status/v_2/types/network_status_check_id.rb +0 -9
- data/lib/candidhealth/guarantor/v_1/types/guarantor_id.rb +0 -9
- data/lib/candidhealth/identifiers/types/identifier_id.rb +0 -7
- data/lib/candidhealth/individual/types/individual_id.rb +0 -7
- data/lib/candidhealth/insurance_adjudications/v_1/types/insurance_adjudication_id.rb +0 -9
- data/lib/candidhealth/insurance_adjudications/v_1/types/service_line_adjudication_id.rb +0 -9
- data/lib/candidhealth/insurance_cards/v_2/types/insurance_card_id.rb +0 -9
- data/lib/candidhealth/insurance_payments/v_1/types/insurance_payment_id.rb +0 -9
- data/lib/candidhealth/insurance_refunds/v_1/types/insurance_refund_id.rb +0 -9
- data/lib/candidhealth/organization_providers/v_2/types/organization_provider_id.rb +0 -9
- data/lib/candidhealth/organization_service_facilities/v_2/types/organization_service_facility_id.rb +0 -9
- data/lib/candidhealth/patient_payments/v_3/types/patient_payment_id.rb +0 -9
- data/lib/candidhealth/patient_payments/v_4/types/patient_payment_id.rb +0 -9
- data/lib/candidhealth/patient_refunds/v_1/types/patient_refund_id.rb +0 -9
- data/lib/candidhealth/payers/v_3/types/payer_id.rb +0 -9
- data/lib/candidhealth/payers/v_3/types/payer_name.rb +0 -9
- data/lib/candidhealth/payers/v_3/types/payer_uuid.rb +0 -9
- data/lib/candidhealth/service_facility/types/service_facility_id.rb +0 -7
- data/lib/candidhealth/tags/types/tag_id.rb +0 -7
- data/lib/candidhealth/write_offs/v_1/types/write_off_id.rb +0 -9
@@ -6,22 +6,24 @@ require_relative "v_2/client"
|
|
6
6
|
module CandidApiClient
|
7
7
|
module Contracts
|
8
8
|
class Client
|
9
|
+
# @return [CandidApiClient::Contracts::V2::V2Client]
|
9
10
|
attr_reader :v_2
|
10
11
|
|
11
|
-
# @param request_client [RequestClient]
|
12
|
-
# @return [Contracts::Client]
|
12
|
+
# @param request_client [CandidApiClient::RequestClient]
|
13
|
+
# @return [CandidApiClient::Contracts::Client]
|
13
14
|
def initialize(request_client:)
|
14
|
-
@v_2 = Contracts::V2::V2Client.new(request_client: request_client)
|
15
|
+
@v_2 = CandidApiClient::Contracts::V2::V2Client.new(request_client: request_client)
|
15
16
|
end
|
16
17
|
end
|
17
18
|
|
18
19
|
class AsyncClient
|
20
|
+
# @return [CandidApiClient::Contracts::V2::AsyncV2Client]
|
19
21
|
attr_reader :v_2
|
20
22
|
|
21
|
-
# @param request_client [
|
22
|
-
# @return [Contracts::AsyncClient]
|
23
|
+
# @param request_client [CandidApiClient::AsyncRequestClient]
|
24
|
+
# @return [CandidApiClient::Contracts::AsyncClient]
|
23
25
|
def initialize(request_client:)
|
24
|
-
@v_2 = Contracts::V2::AsyncV2Client.new(request_client: request_client)
|
26
|
+
@v_2 = CandidApiClient::Contracts::V2::AsyncV2Client.new(request_client: request_client)
|
25
27
|
end
|
26
28
|
end
|
27
29
|
end
|
@@ -1,18 +1,14 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
3
|
require_relative "../../../requests"
|
4
|
-
require_relative "types/contract_id"
|
5
4
|
require_relative "types/contract_with_providers"
|
6
|
-
require_relative "../../commons/types/page_token"
|
7
|
-
require_relative "types/contracting_provider_id"
|
8
|
-
require_relative "types/rendering_providerid"
|
9
5
|
require_relative "../../commons/types/state"
|
10
6
|
require_relative "types/contract_status"
|
11
7
|
require_relative "types/contracts_page"
|
12
|
-
require_relative "../../commons/types/date"
|
13
8
|
require_relative "../../commons/types/regions"
|
14
9
|
require_relative "types/authorized_signatory"
|
15
10
|
require_relative "types/insurance_types"
|
11
|
+
require "ostruct"
|
16
12
|
require "set"
|
17
13
|
require_relative "types/date_update"
|
18
14
|
require_relative "types/regions_update"
|
@@ -23,42 +19,66 @@ module CandidApiClient
|
|
23
19
|
module Contracts
|
24
20
|
module V2
|
25
21
|
class V2Client
|
22
|
+
# @return [CandidApiClient::RequestClient]
|
26
23
|
attr_reader :request_client
|
27
24
|
|
28
|
-
# @param request_client [RequestClient]
|
29
|
-
# @return [Contracts::V2::V2Client]
|
25
|
+
# @param request_client [CandidApiClient::RequestClient]
|
26
|
+
# @return [CandidApiClient::Contracts::V2::V2Client]
|
30
27
|
def initialize(request_client:)
|
31
|
-
# @type [RequestClient]
|
32
28
|
@request_client = request_client
|
33
29
|
end
|
34
30
|
|
35
|
-
# @param contract_id [
|
36
|
-
# @param request_options [RequestOptions]
|
37
|
-
# @return [Contracts::V2::ContractWithProviders]
|
31
|
+
# @param contract_id [String]
|
32
|
+
# @param request_options [CandidApiClient::RequestOptions]
|
33
|
+
# @return [CandidApiClient::Contracts::V2::Types::ContractWithProviders]
|
34
|
+
# @example
|
35
|
+
# api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
|
36
|
+
# api.contracts.v_2.get(contract_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32")
|
38
37
|
def get(contract_id:, request_options: nil)
|
39
|
-
response = @request_client.conn.get
|
38
|
+
response = @request_client.conn.get do |req|
|
40
39
|
req.options.timeout = request_options.timeout_in_seconds unless request_options&.timeout_in_seconds.nil?
|
41
40
|
req.headers["Authorization"] = request_options.token unless request_options&.token.nil?
|
42
|
-
req.headers = {
|
41
|
+
req.headers = {
|
42
|
+
**(req.headers || {}),
|
43
|
+
**@request_client.get_headers,
|
44
|
+
**(request_options&.additional_headers || {})
|
45
|
+
}.compact
|
46
|
+
req.url "#{@request_client.get_url(environment: CandidApi,
|
47
|
+
request_options: request_options)}/api/contracts/v2/#{contract_id}"
|
43
48
|
end
|
44
|
-
Contracts::V2::ContractWithProviders.from_json(json_object: response.body)
|
49
|
+
CandidApiClient::Contracts::V2::Types::ContractWithProviders.from_json(json_object: response.body)
|
45
50
|
end
|
46
51
|
|
47
|
-
# @param page_token [
|
52
|
+
# @param page_token [String]
|
48
53
|
# @param limit [Integer] Max number of contracts returned. Defaults to 1000. Max is 1000.
|
49
|
-
# @param contracting_provider_id [
|
50
|
-
# @param rendering_provider_ids [
|
54
|
+
# @param contracting_provider_id [String]
|
55
|
+
# @param rendering_provider_ids [String]
|
51
56
|
# @param payer_names [String] Filter to contracts that include any of the included payer names.
|
52
|
-
# @param states [Commons::State]
|
53
|
-
# @param contract_status [Contracts::V2::ContractStatus] The status of the contract. Defaults to `pending`
|
54
|
-
# @param request_options [RequestOptions]
|
55
|
-
# @return [Contracts::V2::ContractsPage]
|
57
|
+
# @param states [CandidApiClient::Commons::Types::State]
|
58
|
+
# @param contract_status [CandidApiClient::Contracts::V2::Types::ContractStatus] The status of the contract. Defaults to `pending`
|
59
|
+
# @param request_options [CandidApiClient::RequestOptions]
|
60
|
+
# @return [CandidApiClient::Contracts::V2::Types::ContractsPage]
|
61
|
+
# @example
|
62
|
+
# api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
|
63
|
+
# api.contracts.v_2.get_multi(
|
64
|
+
# page_token: "eyJ0b2tlbiI6IjEiLCJwYWdlX3Rva2VuIjoiMiJ9",
|
65
|
+
# limit: 1,
|
66
|
+
# contracting_provider_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32",
|
67
|
+
# rendering_provider_ids: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32",
|
68
|
+
# payer_names: "string",
|
69
|
+
# states: AA,
|
70
|
+
# contract_status: PENDING
|
71
|
+
# )
|
56
72
|
def get_multi(page_token: nil, limit: nil, contracting_provider_id: nil, rendering_provider_ids: nil,
|
57
73
|
payer_names: nil, states: nil, contract_status: nil, request_options: nil)
|
58
|
-
response = @request_client.conn.get
|
74
|
+
response = @request_client.conn.get do |req|
|
59
75
|
req.options.timeout = request_options.timeout_in_seconds unless request_options&.timeout_in_seconds.nil?
|
60
76
|
req.headers["Authorization"] = request_options.token unless request_options&.token.nil?
|
61
|
-
req.headers = {
|
77
|
+
req.headers = {
|
78
|
+
**(req.headers || {}),
|
79
|
+
**@request_client.get_headers,
|
80
|
+
**(request_options&.additional_headers || {})
|
81
|
+
}.compact
|
62
82
|
req.params = {
|
63
83
|
**(request_options&.additional_query_parameters || {}),
|
64
84
|
"page_token": page_token,
|
@@ -69,41 +89,55 @@ module CandidApiClient
|
|
69
89
|
"states": states,
|
70
90
|
"contract_status": contract_status
|
71
91
|
}.compact
|
92
|
+
req.url "#{@request_client.get_url(environment: CandidApi,
|
93
|
+
request_options: request_options)}/api/contracts/v2"
|
72
94
|
end
|
73
|
-
Contracts::V2::ContractsPage.from_json(json_object: response.body)
|
95
|
+
CandidApiClient::Contracts::V2::Types::ContractsPage.from_json(json_object: response.body)
|
74
96
|
end
|
75
97
|
|
76
98
|
# Creates a new contract within the user's current organization
|
77
99
|
#
|
78
|
-
# @param effective_date [
|
79
|
-
# @param expiration_date [
|
80
|
-
# @param regions [Commons::Regions] The state(s) to which the contract's coverage extends.
|
81
|
-
#
|
82
|
-
# @param contract_status [Contracts::V2::ContractStatus]
|
83
|
-
# @param authorized_signatory [Hash] Request of type Contracts::V2::AuthorizedSignatory, as a Hash
|
100
|
+
# @param effective_date [String] The starting day upon which the contract is effective
|
101
|
+
# @param expiration_date [String] An optional end day upon which the contract expires
|
102
|
+
# @param regions [CandidApiClient::Commons::Types::Regions] The state(s) to which the contract's coverage extends.
|
103
|
+
# It may also be set to "national" for the entirety of the US.
|
104
|
+
# @param contract_status [CandidApiClient::Contracts::V2::Types::ContractStatus]
|
105
|
+
# @param authorized_signatory [Hash] Request of type CandidApiClient::Contracts::V2::Types::AuthorizedSignatory, as a Hash
|
84
106
|
# * :first_name (String)
|
85
107
|
# * :last_name (String)
|
86
108
|
# * :title (String)
|
87
109
|
# * :email (String)
|
88
110
|
# * :phone (String)
|
89
111
|
# * :fax (String)
|
90
|
-
# @param commercial_insurance_types [Contracts::V2::InsuranceTypes] The commercial plan insurance types this contract applies.
|
91
|
-
# @param medicare_insurance_types [Contracts::V2::InsuranceTypes] The Medicare plan insurance types this contract applies.
|
92
|
-
# @param medicaid_insurance_types [Contracts::V2::InsuranceTypes] The Medicaid plan insurance types this contract applies.
|
112
|
+
# @param commercial_insurance_types [CandidApiClient::Contracts::V2::Types::InsuranceTypes] The commercial plan insurance types this contract applies.
|
113
|
+
# @param medicare_insurance_types [CandidApiClient::Contracts::V2::Types::InsuranceTypes] The Medicare plan insurance types this contract applies.
|
114
|
+
# @param medicaid_insurance_types [CandidApiClient::Contracts::V2::Types::InsuranceTypes] The Medicaid plan insurance types this contract applies.
|
93
115
|
# @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
|
94
|
-
# @param
|
95
|
-
# @param
|
96
|
-
#
|
97
|
-
#
|
98
|
-
#
|
99
|
-
# @param
|
100
|
-
# @
|
116
|
+
# @param _field_set [Object]
|
117
|
+
# @param contracting_provider_id [String] The UUID of the provider under agreement to the contract
|
118
|
+
# @param rendering_provider_ids [Set<String>] A rendering provider isn't contracted directly with the payer but can render
|
119
|
+
# services under the contract held by the contracting provider.
|
120
|
+
# Max items is 100.
|
121
|
+
# @param payer_uuid [String] The UUID of the insurance company under agreement to the contract
|
122
|
+
# @param request_options [CandidApiClient::RequestOptions]
|
123
|
+
# @return [CandidApiClient::Contracts::V2::Types::ContractWithProviders]
|
124
|
+
# @example
|
125
|
+
# api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
|
126
|
+
# api.contracts.v_2.create(
|
127
|
+
# contracting_provider_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32",
|
128
|
+
# rendering_provider_ids: Set["d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"],
|
129
|
+
# payer_uuid: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"
|
130
|
+
# )
|
101
131
|
def create(effective_date:, regions:, commercial_insurance_types:, medicare_insurance_types:,
|
102
|
-
medicaid_insurance_types:, contracting_provider_id:, rendering_provider_ids:, payer_uuid:, expiration_date: nil, contract_status: nil, authorized_signatory: nil, additional_properties: nil, request_options: nil)
|
103
|
-
response = @request_client.conn.post
|
132
|
+
medicaid_insurance_types:, contracting_provider_id:, rendering_provider_ids:, payer_uuid:, expiration_date: nil, contract_status: nil, authorized_signatory: nil, additional_properties: nil, _field_set: nil, request_options: nil)
|
133
|
+
response = @request_client.conn.post do |req|
|
104
134
|
req.options.timeout = request_options.timeout_in_seconds unless request_options&.timeout_in_seconds.nil?
|
105
135
|
req.headers["Authorization"] = request_options.token unless request_options&.token.nil?
|
106
|
-
req.headers = {
|
136
|
+
req.headers = {
|
137
|
+
**(req.headers || {}),
|
138
|
+
**@request_client.get_headers,
|
139
|
+
**(request_options&.additional_headers || {})
|
140
|
+
}.compact
|
107
141
|
req.body = {
|
108
142
|
**(request_options&.additional_body_parameters || {}),
|
109
143
|
effective_date: effective_date,
|
@@ -115,46 +149,70 @@ module CandidApiClient
|
|
115
149
|
medicare_insurance_types: medicare_insurance_types,
|
116
150
|
medicaid_insurance_types: medicaid_insurance_types,
|
117
151
|
additional_properties: additional_properties,
|
152
|
+
_field_set: _field_set,
|
118
153
|
contracting_provider_id: contracting_provider_id,
|
119
154
|
rendering_provider_ids: rendering_provider_ids,
|
120
155
|
payer_uuid: payer_uuid
|
121
156
|
}.compact
|
157
|
+
req.url "#{@request_client.get_url(environment: CandidApi,
|
158
|
+
request_options: request_options)}/api/contracts/v2"
|
122
159
|
end
|
123
|
-
Contracts::V2::ContractWithProviders.from_json(json_object: response.body)
|
160
|
+
CandidApiClient::Contracts::V2::Types::ContractWithProviders.from_json(json_object: response.body)
|
124
161
|
end
|
125
162
|
|
126
|
-
# @param contract_id [
|
127
|
-
# @param request_options [RequestOptions]
|
163
|
+
# @param contract_id [String]
|
164
|
+
# @param request_options [CandidApiClient::RequestOptions]
|
128
165
|
# @return [Void]
|
166
|
+
# @example
|
167
|
+
# api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
|
168
|
+
# api.contracts.v_2.delete(contract_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32")
|
129
169
|
def delete(contract_id:, request_options: nil)
|
130
|
-
@request_client.conn.delete
|
170
|
+
@request_client.conn.delete do |req|
|
131
171
|
req.options.timeout = request_options.timeout_in_seconds unless request_options&.timeout_in_seconds.nil?
|
132
172
|
req.headers["Authorization"] = request_options.token unless request_options&.token.nil?
|
133
|
-
req.headers = {
|
173
|
+
req.headers = {
|
174
|
+
**(req.headers || {}),
|
175
|
+
**@request_client.get_headers,
|
176
|
+
**(request_options&.additional_headers || {})
|
177
|
+
}.compact
|
178
|
+
req.url "#{@request_client.get_url(environment: CandidApi,
|
179
|
+
request_options: request_options)}/api/contracts/v2/#{contract_id}"
|
134
180
|
end
|
135
181
|
end
|
136
182
|
|
137
|
-
# @param contract_id [
|
138
|
-
# @param rendering_provider_ids [Set<
|
139
|
-
#
|
140
|
-
#
|
141
|
-
# @param effective_date [
|
142
|
-
# @param expiration_date [Contracts::V2::DateUpdate] An optional end day upon which the contract expires
|
143
|
-
# @param regions [Contracts::V2::RegionsUpdate] If present, the contract's rendering providers will be patched to this exact
|
144
|
-
#
|
145
|
-
# @param contract_status [Contracts::V2::ContractStatus]
|
146
|
-
# @param authorized_signatory [Contracts::V2::AuthorizedSignatoryUpdate]
|
147
|
-
# @param commercial_insurance_types [Contracts::V2::InsuranceTypes]
|
148
|
-
# @param medicare_insurance_types [Contracts::V2::InsuranceTypes]
|
149
|
-
# @param medicaid_insurance_types [Contracts::V2::InsuranceTypes]
|
150
|
-
# @param request_options [RequestOptions]
|
151
|
-
# @return [Contracts::V2::ContractWithProviders]
|
183
|
+
# @param contract_id [String]
|
184
|
+
# @param rendering_provider_ids [Set<String>] A rendering provider isn't contracted directly with the payer but can render
|
185
|
+
# services under the contract held by the contracting provider.
|
186
|
+
# Max items is 100.
|
187
|
+
# @param effective_date [String] The starting day upon which the contract is effective
|
188
|
+
# @param expiration_date [CandidApiClient::Contracts::V2::Types::DateUpdate] An optional end day upon which the contract expires
|
189
|
+
# @param regions [CandidApiClient::Contracts::V2::Types::RegionsUpdate] If present, the contract's rendering providers will be patched to this exact
|
190
|
+
# value, overriding what was set before.
|
191
|
+
# @param contract_status [CandidApiClient::Contracts::V2::Types::ContractStatus]
|
192
|
+
# @param authorized_signatory [CandidApiClient::Contracts::V2::Types::AuthorizedSignatoryUpdate]
|
193
|
+
# @param commercial_insurance_types [CandidApiClient::Contracts::V2::Types::InsuranceTypes]
|
194
|
+
# @param medicare_insurance_types [CandidApiClient::Contracts::V2::Types::InsuranceTypes]
|
195
|
+
# @param medicaid_insurance_types [CandidApiClient::Contracts::V2::Types::InsuranceTypes]
|
196
|
+
# @param request_options [CandidApiClient::RequestOptions]
|
197
|
+
# @return [CandidApiClient::Contracts::V2::Types::ContractWithProviders]
|
198
|
+
# @example
|
199
|
+
# api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
|
200
|
+
# api.contracts.v_2.update(
|
201
|
+
# contract_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32",
|
202
|
+
# rendering_provider_ids: Set["d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"],
|
203
|
+
# effective_date: "string",
|
204
|
+
# contract_status: PENDING
|
205
|
+
# )
|
152
206
|
def update(contract_id:, rendering_provider_ids: nil, effective_date: nil, expiration_date: nil, regions: nil,
|
153
207
|
contract_status: nil, authorized_signatory: nil, commercial_insurance_types: nil, medicare_insurance_types: nil, medicaid_insurance_types: nil, request_options: nil)
|
154
|
-
response = @request_client.conn.patch
|
208
|
+
response = @request_client.conn.patch do |req|
|
155
209
|
req.options.timeout = request_options.timeout_in_seconds unless request_options&.timeout_in_seconds.nil?
|
156
210
|
req.headers["Authorization"] = request_options.token unless request_options&.token.nil?
|
157
|
-
req.headers = {
|
211
|
+
req.headers = {
|
212
|
+
**(req.headers || {}),
|
213
|
+
**@request_client.get_headers,
|
214
|
+
**(request_options&.additional_headers || {})
|
215
|
+
}.compact
|
158
216
|
req.body = {
|
159
217
|
**(request_options&.additional_body_parameters || {}),
|
160
218
|
rendering_provider_ids: rendering_provider_ids,
|
@@ -167,51 +225,77 @@ module CandidApiClient
|
|
167
225
|
medicare_insurance_types: medicare_insurance_types,
|
168
226
|
medicaid_insurance_types: medicaid_insurance_types
|
169
227
|
}.compact
|
228
|
+
req.url "#{@request_client.get_url(environment: CandidApi,
|
229
|
+
request_options: request_options)}/api/contracts/v2/#{contract_id}"
|
170
230
|
end
|
171
|
-
Contracts::V2::ContractWithProviders.from_json(json_object: response.body)
|
231
|
+
CandidApiClient::Contracts::V2::Types::ContractWithProviders.from_json(json_object: response.body)
|
172
232
|
end
|
173
233
|
end
|
174
234
|
|
175
235
|
class AsyncV2Client
|
236
|
+
# @return [CandidApiClient::AsyncRequestClient]
|
176
237
|
attr_reader :request_client
|
177
238
|
|
178
|
-
# @param request_client [AsyncRequestClient]
|
179
|
-
# @return [Contracts::V2::AsyncV2Client]
|
239
|
+
# @param request_client [CandidApiClient::AsyncRequestClient]
|
240
|
+
# @return [CandidApiClient::Contracts::V2::AsyncV2Client]
|
180
241
|
def initialize(request_client:)
|
181
|
-
# @type [AsyncRequestClient]
|
182
242
|
@request_client = request_client
|
183
243
|
end
|
184
244
|
|
185
|
-
# @param contract_id [
|
186
|
-
# @param request_options [RequestOptions]
|
187
|
-
# @return [Contracts::V2::ContractWithProviders]
|
245
|
+
# @param contract_id [String]
|
246
|
+
# @param request_options [CandidApiClient::RequestOptions]
|
247
|
+
# @return [CandidApiClient::Contracts::V2::Types::ContractWithProviders]
|
248
|
+
# @example
|
249
|
+
# api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
|
250
|
+
# api.contracts.v_2.get(contract_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32")
|
188
251
|
def get(contract_id:, request_options: nil)
|
189
252
|
Async do
|
190
|
-
response = @request_client.conn.get
|
253
|
+
response = @request_client.conn.get do |req|
|
191
254
|
req.options.timeout = request_options.timeout_in_seconds unless request_options&.timeout_in_seconds.nil?
|
192
255
|
req.headers["Authorization"] = request_options.token unless request_options&.token.nil?
|
193
|
-
req.headers = {
|
256
|
+
req.headers = {
|
257
|
+
**(req.headers || {}),
|
258
|
+
**@request_client.get_headers,
|
259
|
+
**(request_options&.additional_headers || {})
|
260
|
+
}.compact
|
261
|
+
req.url "#{@request_client.get_url(environment: CandidApi,
|
262
|
+
request_options: request_options)}/api/contracts/v2/#{contract_id}"
|
194
263
|
end
|
195
|
-
Contracts::V2::ContractWithProviders.from_json(json_object: response.body)
|
264
|
+
CandidApiClient::Contracts::V2::Types::ContractWithProviders.from_json(json_object: response.body)
|
196
265
|
end
|
197
266
|
end
|
198
267
|
|
199
|
-
# @param page_token [
|
268
|
+
# @param page_token [String]
|
200
269
|
# @param limit [Integer] Max number of contracts returned. Defaults to 1000. Max is 1000.
|
201
|
-
# @param contracting_provider_id [
|
202
|
-
# @param rendering_provider_ids [
|
270
|
+
# @param contracting_provider_id [String]
|
271
|
+
# @param rendering_provider_ids [String]
|
203
272
|
# @param payer_names [String] Filter to contracts that include any of the included payer names.
|
204
|
-
# @param states [Commons::State]
|
205
|
-
# @param contract_status [Contracts::V2::ContractStatus] The status of the contract. Defaults to `pending`
|
206
|
-
# @param request_options [RequestOptions]
|
207
|
-
# @return [Contracts::V2::ContractsPage]
|
273
|
+
# @param states [CandidApiClient::Commons::Types::State]
|
274
|
+
# @param contract_status [CandidApiClient::Contracts::V2::Types::ContractStatus] The status of the contract. Defaults to `pending`
|
275
|
+
# @param request_options [CandidApiClient::RequestOptions]
|
276
|
+
# @return [CandidApiClient::Contracts::V2::Types::ContractsPage]
|
277
|
+
# @example
|
278
|
+
# api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
|
279
|
+
# api.contracts.v_2.get_multi(
|
280
|
+
# page_token: "eyJ0b2tlbiI6IjEiLCJwYWdlX3Rva2VuIjoiMiJ9",
|
281
|
+
# limit: 1,
|
282
|
+
# contracting_provider_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32",
|
283
|
+
# rendering_provider_ids: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32",
|
284
|
+
# payer_names: "string",
|
285
|
+
# states: AA,
|
286
|
+
# contract_status: PENDING
|
287
|
+
# )
|
208
288
|
def get_multi(page_token: nil, limit: nil, contracting_provider_id: nil, rendering_provider_ids: nil,
|
209
289
|
payer_names: nil, states: nil, contract_status: nil, request_options: nil)
|
210
290
|
Async do
|
211
|
-
response = @request_client.conn.get
|
291
|
+
response = @request_client.conn.get do |req|
|
212
292
|
req.options.timeout = request_options.timeout_in_seconds unless request_options&.timeout_in_seconds.nil?
|
213
293
|
req.headers["Authorization"] = request_options.token unless request_options&.token.nil?
|
214
|
-
req.headers = {
|
294
|
+
req.headers = {
|
295
|
+
**(req.headers || {}),
|
296
|
+
**@request_client.get_headers,
|
297
|
+
**(request_options&.additional_headers || {})
|
298
|
+
}.compact
|
215
299
|
req.params = {
|
216
300
|
**(request_options&.additional_query_parameters || {}),
|
217
301
|
"page_token": page_token,
|
@@ -222,43 +306,57 @@ module CandidApiClient
|
|
222
306
|
"states": states,
|
223
307
|
"contract_status": contract_status
|
224
308
|
}.compact
|
309
|
+
req.url "#{@request_client.get_url(environment: CandidApi,
|
310
|
+
request_options: request_options)}/api/contracts/v2"
|
225
311
|
end
|
226
|
-
Contracts::V2::ContractsPage.from_json(json_object: response.body)
|
312
|
+
CandidApiClient::Contracts::V2::Types::ContractsPage.from_json(json_object: response.body)
|
227
313
|
end
|
228
314
|
end
|
229
315
|
|
230
316
|
# Creates a new contract within the user's current organization
|
231
317
|
#
|
232
|
-
# @param effective_date [
|
233
|
-
# @param expiration_date [
|
234
|
-
# @param regions [Commons::Regions] The state(s) to which the contract's coverage extends.
|
235
|
-
#
|
236
|
-
# @param contract_status [Contracts::V2::ContractStatus]
|
237
|
-
# @param authorized_signatory [Hash] Request of type Contracts::V2::AuthorizedSignatory, as a Hash
|
318
|
+
# @param effective_date [String] The starting day upon which the contract is effective
|
319
|
+
# @param expiration_date [String] An optional end day upon which the contract expires
|
320
|
+
# @param regions [CandidApiClient::Commons::Types::Regions] The state(s) to which the contract's coverage extends.
|
321
|
+
# It may also be set to "national" for the entirety of the US.
|
322
|
+
# @param contract_status [CandidApiClient::Contracts::V2::Types::ContractStatus]
|
323
|
+
# @param authorized_signatory [Hash] Request of type CandidApiClient::Contracts::V2::Types::AuthorizedSignatory, as a Hash
|
238
324
|
# * :first_name (String)
|
239
325
|
# * :last_name (String)
|
240
326
|
# * :title (String)
|
241
327
|
# * :email (String)
|
242
328
|
# * :phone (String)
|
243
329
|
# * :fax (String)
|
244
|
-
# @param commercial_insurance_types [Contracts::V2::InsuranceTypes] The commercial plan insurance types this contract applies.
|
245
|
-
# @param medicare_insurance_types [Contracts::V2::InsuranceTypes] The Medicare plan insurance types this contract applies.
|
246
|
-
# @param medicaid_insurance_types [Contracts::V2::InsuranceTypes] The Medicaid plan insurance types this contract applies.
|
330
|
+
# @param commercial_insurance_types [CandidApiClient::Contracts::V2::Types::InsuranceTypes] The commercial plan insurance types this contract applies.
|
331
|
+
# @param medicare_insurance_types [CandidApiClient::Contracts::V2::Types::InsuranceTypes] The Medicare plan insurance types this contract applies.
|
332
|
+
# @param medicaid_insurance_types [CandidApiClient::Contracts::V2::Types::InsuranceTypes] The Medicaid plan insurance types this contract applies.
|
247
333
|
# @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
|
248
|
-
# @param
|
249
|
-
# @param
|
250
|
-
#
|
251
|
-
#
|
252
|
-
#
|
253
|
-
# @param
|
254
|
-
# @
|
334
|
+
# @param _field_set [Object]
|
335
|
+
# @param contracting_provider_id [String] The UUID of the provider under agreement to the contract
|
336
|
+
# @param rendering_provider_ids [Set<String>] A rendering provider isn't contracted directly with the payer but can render
|
337
|
+
# services under the contract held by the contracting provider.
|
338
|
+
# Max items is 100.
|
339
|
+
# @param payer_uuid [String] The UUID of the insurance company under agreement to the contract
|
340
|
+
# @param request_options [CandidApiClient::RequestOptions]
|
341
|
+
# @return [CandidApiClient::Contracts::V2::Types::ContractWithProviders]
|
342
|
+
# @example
|
343
|
+
# api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
|
344
|
+
# api.contracts.v_2.create(
|
345
|
+
# contracting_provider_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32",
|
346
|
+
# rendering_provider_ids: Set["d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"],
|
347
|
+
# payer_uuid: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"
|
348
|
+
# )
|
255
349
|
def create(effective_date:, regions:, commercial_insurance_types:, medicare_insurance_types:,
|
256
|
-
medicaid_insurance_types:, contracting_provider_id:, rendering_provider_ids:, payer_uuid:, expiration_date: nil, contract_status: nil, authorized_signatory: nil, additional_properties: nil, request_options: nil)
|
350
|
+
medicaid_insurance_types:, contracting_provider_id:, rendering_provider_ids:, payer_uuid:, expiration_date: nil, contract_status: nil, authorized_signatory: nil, additional_properties: nil, _field_set: nil, request_options: nil)
|
257
351
|
Async do
|
258
|
-
response = @request_client.conn.post
|
352
|
+
response = @request_client.conn.post do |req|
|
259
353
|
req.options.timeout = request_options.timeout_in_seconds unless request_options&.timeout_in_seconds.nil?
|
260
354
|
req.headers["Authorization"] = request_options.token unless request_options&.token.nil?
|
261
|
-
req.headers = {
|
355
|
+
req.headers = {
|
356
|
+
**(req.headers || {}),
|
357
|
+
**@request_client.get_headers,
|
358
|
+
**(request_options&.additional_headers || {})
|
359
|
+
}.compact
|
262
360
|
req.body = {
|
263
361
|
**(request_options&.additional_body_parameters || {}),
|
264
362
|
effective_date: effective_date,
|
@@ -270,50 +368,74 @@ module CandidApiClient
|
|
270
368
|
medicare_insurance_types: medicare_insurance_types,
|
271
369
|
medicaid_insurance_types: medicaid_insurance_types,
|
272
370
|
additional_properties: additional_properties,
|
371
|
+
_field_set: _field_set,
|
273
372
|
contracting_provider_id: contracting_provider_id,
|
274
373
|
rendering_provider_ids: rendering_provider_ids,
|
275
374
|
payer_uuid: payer_uuid
|
276
375
|
}.compact
|
376
|
+
req.url "#{@request_client.get_url(environment: CandidApi,
|
377
|
+
request_options: request_options)}/api/contracts/v2"
|
277
378
|
end
|
278
|
-
Contracts::V2::ContractWithProviders.from_json(json_object: response.body)
|
379
|
+
CandidApiClient::Contracts::V2::Types::ContractWithProviders.from_json(json_object: response.body)
|
279
380
|
end
|
280
381
|
end
|
281
382
|
|
282
|
-
# @param contract_id [
|
283
|
-
# @param request_options [RequestOptions]
|
383
|
+
# @param contract_id [String]
|
384
|
+
# @param request_options [CandidApiClient::RequestOptions]
|
284
385
|
# @return [Void]
|
386
|
+
# @example
|
387
|
+
# api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
|
388
|
+
# api.contracts.v_2.delete(contract_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32")
|
285
389
|
def delete(contract_id:, request_options: nil)
|
286
390
|
Async do
|
287
|
-
@request_client.conn.delete
|
391
|
+
@request_client.conn.delete do |req|
|
288
392
|
req.options.timeout = request_options.timeout_in_seconds unless request_options&.timeout_in_seconds.nil?
|
289
393
|
req.headers["Authorization"] = request_options.token unless request_options&.token.nil?
|
290
|
-
req.headers = {
|
394
|
+
req.headers = {
|
395
|
+
**(req.headers || {}),
|
396
|
+
**@request_client.get_headers,
|
397
|
+
**(request_options&.additional_headers || {})
|
398
|
+
}.compact
|
399
|
+
req.url "#{@request_client.get_url(environment: CandidApi,
|
400
|
+
request_options: request_options)}/api/contracts/v2/#{contract_id}"
|
291
401
|
end
|
292
402
|
end
|
293
403
|
end
|
294
404
|
|
295
|
-
# @param contract_id [
|
296
|
-
# @param rendering_provider_ids [Set<
|
297
|
-
#
|
298
|
-
#
|
299
|
-
# @param effective_date [
|
300
|
-
# @param expiration_date [Contracts::V2::DateUpdate] An optional end day upon which the contract expires
|
301
|
-
# @param regions [Contracts::V2::RegionsUpdate] If present, the contract's rendering providers will be patched to this exact
|
302
|
-
#
|
303
|
-
# @param contract_status [Contracts::V2::ContractStatus]
|
304
|
-
# @param authorized_signatory [Contracts::V2::AuthorizedSignatoryUpdate]
|
305
|
-
# @param commercial_insurance_types [Contracts::V2::InsuranceTypes]
|
306
|
-
# @param medicare_insurance_types [Contracts::V2::InsuranceTypes]
|
307
|
-
# @param medicaid_insurance_types [Contracts::V2::InsuranceTypes]
|
308
|
-
# @param request_options [RequestOptions]
|
309
|
-
# @return [Contracts::V2::ContractWithProviders]
|
405
|
+
# @param contract_id [String]
|
406
|
+
# @param rendering_provider_ids [Set<String>] A rendering provider isn't contracted directly with the payer but can render
|
407
|
+
# services under the contract held by the contracting provider.
|
408
|
+
# Max items is 100.
|
409
|
+
# @param effective_date [String] The starting day upon which the contract is effective
|
410
|
+
# @param expiration_date [CandidApiClient::Contracts::V2::Types::DateUpdate] An optional end day upon which the contract expires
|
411
|
+
# @param regions [CandidApiClient::Contracts::V2::Types::RegionsUpdate] If present, the contract's rendering providers will be patched to this exact
|
412
|
+
# value, overriding what was set before.
|
413
|
+
# @param contract_status [CandidApiClient::Contracts::V2::Types::ContractStatus]
|
414
|
+
# @param authorized_signatory [CandidApiClient::Contracts::V2::Types::AuthorizedSignatoryUpdate]
|
415
|
+
# @param commercial_insurance_types [CandidApiClient::Contracts::V2::Types::InsuranceTypes]
|
416
|
+
# @param medicare_insurance_types [CandidApiClient::Contracts::V2::Types::InsuranceTypes]
|
417
|
+
# @param medicaid_insurance_types [CandidApiClient::Contracts::V2::Types::InsuranceTypes]
|
418
|
+
# @param request_options [CandidApiClient::RequestOptions]
|
419
|
+
# @return [CandidApiClient::Contracts::V2::Types::ContractWithProviders]
|
420
|
+
# @example
|
421
|
+
# api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
|
422
|
+
# api.contracts.v_2.update(
|
423
|
+
# contract_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32",
|
424
|
+
# rendering_provider_ids: Set["d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"],
|
425
|
+
# effective_date: "string",
|
426
|
+
# contract_status: PENDING
|
427
|
+
# )
|
310
428
|
def update(contract_id:, rendering_provider_ids: nil, effective_date: nil, expiration_date: nil, regions: nil,
|
311
429
|
contract_status: nil, authorized_signatory: nil, commercial_insurance_types: nil, medicare_insurance_types: nil, medicaid_insurance_types: nil, request_options: nil)
|
312
430
|
Async do
|
313
|
-
response = @request_client.conn.patch
|
431
|
+
response = @request_client.conn.patch do |req|
|
314
432
|
req.options.timeout = request_options.timeout_in_seconds unless request_options&.timeout_in_seconds.nil?
|
315
433
|
req.headers["Authorization"] = request_options.token unless request_options&.token.nil?
|
316
|
-
req.headers = {
|
434
|
+
req.headers = {
|
435
|
+
**(req.headers || {}),
|
436
|
+
**@request_client.get_headers,
|
437
|
+
**(request_options&.additional_headers || {})
|
438
|
+
}.compact
|
317
439
|
req.body = {
|
318
440
|
**(request_options&.additional_body_parameters || {}),
|
319
441
|
rendering_provider_ids: rendering_provider_ids,
|
@@ -326,8 +448,10 @@ module CandidApiClient
|
|
326
448
|
medicare_insurance_types: medicare_insurance_types,
|
327
449
|
medicaid_insurance_types: medicaid_insurance_types
|
328
450
|
}.compact
|
451
|
+
req.url "#{@request_client.get_url(environment: CandidApi,
|
452
|
+
request_options: request_options)}/api/contracts/v2/#{contract_id}"
|
329
453
|
end
|
330
|
-
Contracts::V2::ContractWithProviders.from_json(json_object: response.body)
|
454
|
+
CandidApiClient::Contracts::V2::Types::ContractWithProviders.from_json(json_object: response.body)
|
331
455
|
end
|
332
456
|
end
|
333
457
|
end
|