candidhealth 0.0.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 +7 -0
- data/lib/candidhealth/auth/client.rb +30 -0
- data/lib/candidhealth/auth/default/client.rb +169 -0
- data/lib/candidhealth/auth/default/types/auth_get_token_response.rb +77 -0
- data/lib/candidhealth/auth/default/types/invalid_content_type_error_type.rb +60 -0
- data/lib/candidhealth/auth/default/types/too_many_requests_error_type.rb +60 -0
- data/lib/candidhealth/billing_notes/client.rb +30 -0
- data/lib/candidhealth/billing_notes/v_2/client.rb +188 -0
- data/lib/candidhealth/billing_notes/v_2/types/billing_note.rb +112 -0
- data/lib/candidhealth/billing_notes/v_2/types/billing_note_base.rb +60 -0
- data/lib/candidhealth/billing_notes/v_2/types/billing_note_base_optional.rb +62 -0
- data/lib/candidhealth/charge_capture/client.rb +30 -0
- data/lib/candidhealth/charge_capture/v_1/client.rb +1601 -0
- data/lib/candidhealth/charge_capture/v_1/types/charge_capture.rb +175 -0
- data/lib/candidhealth/charge_capture/v_1/types/charge_capture_data.rb +780 -0
- data/lib/candidhealth/charge_capture/v_1/types/charge_capture_error.rb +138 -0
- data/lib/candidhealth/charge_capture/v_1/types/charge_capture_page.rb +96 -0
- data/lib/candidhealth/charge_capture/v_1/types/charge_capture_post_billed_change.rb +80 -0
- data/lib/candidhealth/charge_capture/v_1/types/charge_capture_sort_field.rb +14 -0
- data/lib/candidhealth/charge_capture/v_1/types/charge_capture_status.rb +17 -0
- data/lib/candidhealth/charge_capture/v_1/types/charge_external_id_conflict_error_message.rb +62 -0
- data/lib/candidhealth/charge_capture_bundles/client.rb +30 -0
- data/lib/candidhealth/charge_capture_bundles/v_1/client.rb +356 -0
- data/lib/candidhealth/charge_capture_bundles/v_1/types/charge_capture_claim_creation.rb +132 -0
- data/lib/candidhealth/charge_capture_bundles/v_1/types/charge_capture_claim_creation_page.rb +88 -0
- data/lib/candidhealth/charge_capture_bundles/v_1/types/charge_capture_claim_creation_sort_field.rb +13 -0
- data/lib/candidhealth/charge_capture_bundles/v_1/types/charge_capture_claim_creation_status.rb +18 -0
- data/lib/candidhealth/charge_capture_bundles/v_1/types/charge_capture_claim_creation_summary.rb +100 -0
- data/lib/candidhealth/claim_submission/v_1/types/claim_frequency_type_code.rb +15 -0
- data/lib/candidhealth/claim_submission/v_1/types/claim_submission_record_create.rb +100 -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.rb +97 -0
- data/lib/candidhealth/claim_submission/v_1/types/external_claim_submission_create_optional.rb +101 -0
- data/lib/candidhealth/claims/types/claim.rb +132 -0
- data/lib/candidhealth/claims/types/claim_status.rb +25 -0
- data/lib/candidhealth/clinical_trials/v_1/types/clinical_trial.rb +109 -0
- data/lib/candidhealth/clinical_trials/v_1/types/clinical_trial_phase.rb +15 -0
- data/lib/candidhealth/clinical_trials/v_1/types/mutable_clinical_trial.rb +84 -0
- data/lib/candidhealth/commons/types/billing_provider_commercial_license_type.rb +20 -0
- data/lib/candidhealth/commons/types/claim_adjustment_group_codes.rb +20 -0
- data/lib/candidhealth/commons/types/claim_submission_payer_responsibility_type.rb +12 -0
- data/lib/candidhealth/commons/types/date_range_optional_end.rb +70 -0
- data/lib/candidhealth/commons/types/delay_reason_code.rb +25 -0
- data/lib/candidhealth/commons/types/emr_payer_crosswalk.rb +12 -0
- data/lib/candidhealth/commons/types/entity_conflict_error_message.rb +58 -0
- data/lib/candidhealth/commons/types/entity_not_found_error_message.rb +58 -0
- data/lib/candidhealth/commons/types/epsdt_referral_condition_indicator_code.rb +14 -0
- data/lib/candidhealth/commons/types/facility_type_code.rb +64 -0
- data/lib/candidhealth/commons/types/http_service_unavailable_error_message.rb +60 -0
- data/lib/candidhealth/commons/types/insurance_type_code.rb +82 -0
- data/lib/candidhealth/commons/types/intended_submission_medium.rb +15 -0
- data/lib/candidhealth/commons/types/network_type.rb +31 -0
- data/lib/candidhealth/commons/types/next_responsible_party.rb +16 -0
- data/lib/candidhealth/commons/types/organization_not_authorized_error_message.rb +59 -0
- data/lib/candidhealth/commons/types/patient_relationship_to_insured_code_all.rb +34 -0
- data/lib/candidhealth/commons/types/phone_number.rb +69 -0
- data/lib/candidhealth/commons/types/phone_number_optional.rb +71 -0
- data/lib/candidhealth/commons/types/phone_number_type.rb +13 -0
- data/lib/candidhealth/commons/types/primitive.rb +17 -0
- data/lib/candidhealth/commons/types/procedure_modifier.rb +409 -0
- data/lib/candidhealth/commons/types/qualifier_code.rb +14 -0
- data/lib/candidhealth/commons/types/region_national.rb +51 -0
- data/lib/candidhealth/commons/types/region_states.rb +59 -0
- data/lib/candidhealth/commons/types/regions.rb +98 -0
- data/lib/candidhealth/commons/types/removable_date_range_optional_end.rb +96 -0
- data/lib/candidhealth/commons/types/request_validation_error.rb +70 -0
- data/lib/candidhealth/commons/types/resource_page.rb +70 -0
- data/lib/candidhealth/commons/types/service_line_units.rb +12 -0
- data/lib/candidhealth/commons/types/sort_direction.rb +12 -0
- data/lib/candidhealth/commons/types/source_of_payment_code.rb +34 -0
- data/lib/candidhealth/commons/types/state.rb +72 -0
- data/lib/candidhealth/commons/types/street_address_base.rb +98 -0
- data/lib/candidhealth/commons/types/street_address_long_zip.rb +107 -0
- data/lib/candidhealth/commons/types/street_address_long_zip_optional.rb +107 -0
- data/lib/candidhealth/commons/types/street_address_optional_base.rb +99 -0
- data/lib/candidhealth/commons/types/street_address_short_zip.rb +107 -0
- data/lib/candidhealth/commons/types/street_address_short_zip_optional.rb +107 -0
- data/lib/candidhealth/commons/types/unauthorized_error_message.rb +60 -0
- data/lib/candidhealth/commons/types/unprocessable_entity_error_message.rb +60 -0
- data/lib/candidhealth/commons/types/updates_disabled_due_to_external_system_integration_error_message.rb +62 -0
- data/lib/candidhealth/contracts/client.rb +30 -0
- data/lib/candidhealth/contracts/v_2/client.rb +444 -0
- data/lib/candidhealth/contracts/v_2/types/authorized_signatory.rb +108 -0
- data/lib/candidhealth/contracts/v_2/types/authorized_signatory_update.rb +98 -0
- data/lib/candidhealth/contracts/v_2/types/contract.rb +202 -0
- data/lib/candidhealth/contracts/v_2/types/contract_base.rb +156 -0
- data/lib/candidhealth/contracts/v_2/types/contract_invalid_expiration_date_error.rb +60 -0
- data/lib/candidhealth/contracts/v_2/types/contract_is_linked_to_fee_schedule_error.rb +60 -0
- data/lib/candidhealth/contracts/v_2/types/contract_sort_field.rb +18 -0
- data/lib/candidhealth/contracts/v_2/types/contract_status.rb +15 -0
- data/lib/candidhealth/contracts/v_2/types/contract_with_providers.rb +216 -0
- data/lib/candidhealth/contracts/v_2/types/contracts_page.rb +88 -0
- data/lib/candidhealth/contracts/v_2/types/date_update.rb +97 -0
- data/lib/candidhealth/contracts/v_2/types/insurance_types.rb +109 -0
- data/lib/candidhealth/contracts/v_2/types/regions_update.rb +98 -0
- data/lib/candidhealth/credentialing/client.rb +30 -0
- data/lib/candidhealth/credentialing/v_2/client.rb +384 -0
- data/lib/candidhealth/credentialing/v_2/types/credentialing_span_status.rb +17 -0
- data/lib/candidhealth/credentialing/v_2/types/provider_credentialing_span.rb +196 -0
- data/lib/candidhealth/credentialing/v_2/types/provider_credentialing_span_page.rb +88 -0
- data/lib/candidhealth/custom_schemas/client.rb +30 -0
- data/lib/candidhealth/custom_schemas/v_1/client.rb +291 -0
- data/lib/candidhealth/custom_schemas/v_1/types/key_with_name_already_exists_error.rb +71 -0
- data/lib/candidhealth/custom_schemas/v_1/types/schema.rb +91 -0
- data/lib/candidhealth/custom_schemas/v_1/types/schema_field.rb +71 -0
- data/lib/candidhealth/custom_schemas/v_1/types/schema_get_multi_response.rb +65 -0
- data/lib/candidhealth/custom_schemas/v_1/types/schema_instance.rb +76 -0
- data/lib/candidhealth/custom_schemas/v_1/types/schema_instance_optional.rb +78 -0
- data/lib/candidhealth/custom_schemas/v_1/types/schema_validation_error.rb +100 -0
- data/lib/candidhealth/custom_schemas/v_1/types/schema_validation_failure.rb +65 -0
- data/lib/candidhealth/custom_schemas/v_1/types/schema_with_name_already_exists_error.rb +70 -0
- data/lib/candidhealth/diagnoses/client.rb +243 -0
- data/lib/candidhealth/diagnoses/types/diagnosis.rb +160 -0
- data/lib/candidhealth/diagnoses/types/diagnosis_create.rb +125 -0
- data/lib/candidhealth/diagnoses/types/diagnosis_create_optional.rb +126 -0
- data/lib/candidhealth/diagnoses/types/diagnosis_not_found_error.rb +70 -0
- data/lib/candidhealth/diagnoses/types/diagnosis_type_code.rb +20 -0
- data/lib/candidhealth/diagnoses/types/standalone_diagnosis_create.rb +134 -0
- data/lib/candidhealth/eligibility/client.rb +30 -0
- data/lib/candidhealth/eligibility/v_2/client.rb +338 -0
- data/lib/candidhealth/encounter_attachments/client.rb +30 -0
- data/lib/candidhealth/encounter_attachments/v_1/client.rb +193 -0
- data/lib/candidhealth/encounter_attachments/v_1/types/base_attachment.rb +98 -0
- data/lib/candidhealth/encounter_attachments/v_1/types/encounter_attachment.rb +115 -0
- data/lib/candidhealth/encounter_attachments/v_1/types/encounter_attachment_type.rb +15 -0
- data/lib/candidhealth/encounter_providers/client.rb +30 -0
- data/lib/candidhealth/encounter_providers/v_2/client.rb +789 -0
- data/lib/candidhealth/encounter_providers/v_2/types/billing_provider.rb +157 -0
- data/lib/candidhealth/encounter_providers/v_2/types/billing_provider_update.rb +157 -0
- data/lib/candidhealth/encounter_providers/v_2/types/billing_provider_update_with_optional_address.rb +160 -0
- data/lib/candidhealth/encounter_providers/v_2/types/encounter_provider.rb +159 -0
- data/lib/candidhealth/encounter_providers/v_2/types/encounter_provider_base.rb +89 -0
- data/lib/candidhealth/encounter_providers/v_2/types/initial_referring_provider.rb +132 -0
- data/lib/candidhealth/encounter_providers/v_2/types/initial_referring_provider_update.rb +132 -0
- data/lib/candidhealth/encounter_providers/v_2/types/initial_referring_provider_update_with_optional_address.rb +134 -0
- data/lib/candidhealth/encounter_providers/v_2/types/ordering_provider.rb +123 -0
- data/lib/candidhealth/encounter_providers/v_2/types/ordering_provider_optional.rb +123 -0
- data/lib/candidhealth/encounter_providers/v_2/types/ordering_provider_update.rb +123 -0
- data/lib/candidhealth/encounter_providers/v_2/types/referring_provider.rb +123 -0
- data/lib/candidhealth/encounter_providers/v_2/types/referring_provider_update.rb +123 -0
- data/lib/candidhealth/encounter_providers/v_2/types/referring_provider_update_with_optional_address.rb +125 -0
- data/lib/candidhealth/encounter_providers/v_2/types/rendering_provider.rb +123 -0
- data/lib/candidhealth/encounter_providers/v_2/types/rendering_provider_update.rb +123 -0
- data/lib/candidhealth/encounter_providers/v_2/types/rendering_provider_update_with_optional_address.rb +125 -0
- data/lib/candidhealth/encounter_providers/v_2/types/supervising_provider.rb +123 -0
- data/lib/candidhealth/encounter_providers/v_2/types/supervising_provider_update.rb +123 -0
- data/lib/candidhealth/encounter_providers/v_2/types/supervising_provider_update_with_optional_address.rb +125 -0
- data/lib/candidhealth/encounters/client.rb +30 -0
- data/lib/candidhealth/encounters/v_4/client.rb +2451 -0
- data/lib/candidhealth/encounters/v_4/types/billable_status_type.rb +14 -0
- data/lib/candidhealth/encounters/v_4/types/cash_pay_payer_error_message.rb +60 -0
- data/lib/candidhealth/encounters/v_4/types/claim_supplemental_information.rb +86 -0
- data/lib/candidhealth/encounters/v_4/types/claim_supplemental_information_optional.rb +86 -0
- data/lib/candidhealth/encounters/v_4/types/clinical_note.rb +93 -0
- data/lib/candidhealth/encounters/v_4/types/clinical_note_category.rb +89 -0
- data/lib/candidhealth/encounters/v_4/types/clinical_note_category_create.rb +76 -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/coding_attribution_type.rb +16 -0
- data/lib/candidhealth/encounters/v_4/types/encounter.rb +892 -0
- data/lib/candidhealth/encounters/v_4/types/encounter_base.rb +360 -0
- data/lib/candidhealth/encounters/v_4/types/encounter_create_from_pre_encounter.rb +629 -0
- data/lib/candidhealth/encounters/v_4/types/encounter_deep_optional.rb +780 -0
- data/lib/candidhealth/encounters/v_4/types/encounter_external_id_uniqueness_error_type.rb +63 -0
- data/lib/candidhealth/encounters/v_4/types/encounter_guarantor_missing_contact_info_error_type.rb +62 -0
- data/lib/candidhealth/encounters/v_4/types/encounter_optional.rb +380 -0
- data/lib/candidhealth/encounters/v_4/types/encounter_owner_of_next_action_type.rb +16 -0
- data/lib/candidhealth/encounters/v_4/types/encounter_page.rb +88 -0
- data/lib/candidhealth/encounters/v_4/types/encounter_patient_control_number_uniqueness_error_type.rb +62 -0
- data/lib/candidhealth/encounters/v_4/types/encounter_sort_options.rb +16 -0
- data/lib/candidhealth/encounters/v_4/types/encounter_submission_origin_type.rb +14 -0
- data/lib/candidhealth/encounters/v_4/types/epsdt_referral.rb +85 -0
- data/lib/candidhealth/encounters/v_4/types/epsdt_referral_optional.rb +85 -0
- data/lib/candidhealth/encounters/v_4/types/intake_follow_up.rb +79 -0
- data/lib/candidhealth/encounters/v_4/types/intake_question.rb +84 -0
- data/lib/candidhealth/encounters/v_4/types/intake_question_optional.rb +84 -0
- data/lib/candidhealth/encounters/v_4/types/intake_response_and_follow_ups.rb +77 -0
- data/lib/candidhealth/encounters/v_4/types/intervention.rb +113 -0
- data/lib/candidhealth/encounters/v_4/types/intervention_category.rb +16 -0
- data/lib/candidhealth/encounters/v_4/types/intervention_optional.rb +114 -0
- data/lib/candidhealth/encounters/v_4/types/invalid_tag_names_error_type.rb +60 -0
- data/lib/candidhealth/encounters/v_4/types/key_does_not_exist_error.rb +70 -0
- data/lib/candidhealth/encounters/v_4/types/lab.rb +80 -0
- data/lib/candidhealth/encounters/v_4/types/lab_code_type.rb +14 -0
- data/lib/candidhealth/encounters/v_4/types/lab_optional.rb +80 -0
- data/lib/candidhealth/encounters/v_4/types/medication.rb +108 -0
- data/lib/candidhealth/encounters/v_4/types/medication_optional.rb +108 -0
- data/lib/candidhealth/encounters/v_4/types/multiple_instances_for_schema_error.rb +60 -0
- data/lib/candidhealth/encounters/v_4/types/note_category.rb +26 -0
- data/lib/candidhealth/encounters/v_4/types/patient_history_category.rb +76 -0
- data/lib/candidhealth/encounters/v_4/types/patient_history_category_enum.rb +16 -0
- data/lib/candidhealth/encounters/v_4/types/patient_history_category_optional.rb +78 -0
- data/lib/candidhealth/encounters/v_4/types/payer_plan_group_payer_does_not_match_insurance_card_error.rb +77 -0
- data/lib/candidhealth/encounters/v_4/types/report_transmission_code.rb +14 -0
- data/lib/candidhealth/encounters/v_4/types/report_type_code.rb +73 -0
- data/lib/candidhealth/encounters/v_4/types/responsible_party_type.rb +15 -0
- data/lib/candidhealth/encounters/v_4/types/schema_does_not_exist_error.rb +60 -0
- data/lib/candidhealth/encounters/v_4/types/schema_instance_validation_error.rb +139 -0
- data/lib/candidhealth/encounters/v_4/types/schema_instance_validation_failure.rb +65 -0
- data/lib/candidhealth/encounters/v_4/types/schema_unauthorized_access_error.rb +60 -0
- data/lib/candidhealth/encounters/v_4/types/service_authorization_exception_code.rb +23 -0
- data/lib/candidhealth/encounters/v_4/types/synchronicity_type.rb +14 -0
- data/lib/candidhealth/encounters/v_4/types/value_does_not_match_key_type_error.rb +90 -0
- data/lib/candidhealth/encounters/v_4/types/vitals.rb +116 -0
- data/lib/candidhealth/encounters/v_4/types/vitals_update.rb +116 -0
- data/lib/candidhealth/era/types/era.rb +75 -0
- data/lib/candidhealth/era/types/era_base.rb +68 -0
- data/lib/candidhealth/era/types/era_not_fully_processed_error_message.rb +68 -0
- data/lib/candidhealth/era_commons/types/claim_status_code_create.rb +20 -0
- data/lib/candidhealth/expected_network_status/client.rb +37 -0
- data/lib/candidhealth/expected_network_status/v_1/client.rb +153 -0
- data/lib/candidhealth/expected_network_status/v_1/types/expected_network_status.rb +15 -0
- data/lib/candidhealth/expected_network_status/v_1/types/expected_network_status_response.rb +86 -0
- data/lib/candidhealth/expected_network_status/v_2/client.rb +222 -0
- data/lib/candidhealth/expected_network_status/v_2/types/compute_all_in_network_providers_request.rb +152 -0
- data/lib/candidhealth/expected_network_status/v_2/types/compute_all_in_network_providers_response.rb +80 -0
- data/lib/candidhealth/expected_network_status/v_2/types/compute_all_in_network_rendering_providers_result.rb +114 -0
- data/lib/candidhealth/expected_network_status/v_2/types/empty_object.rb +53 -0
- data/lib/candidhealth/expected_network_status/v_2/types/expected_network_status_check_error_message.rb +61 -0
- data/lib/candidhealth/expected_network_status/v_2/types/expected_network_status_request_v_2.rb +152 -0
- data/lib/candidhealth/expected_network_status/v_2/types/expected_network_status_response_v_2.rb +77 -0
- data/lib/candidhealth/expected_network_status/v_2/types/expected_network_status_subscriber_information.rb +86 -0
- data/lib/candidhealth/expected_network_status/v_2/types/expected_network_status_v_2.rb +113 -0
- data/lib/candidhealth/expected_network_status/v_2/types/explanation.rb +20 -0
- data/lib/candidhealth/expected_network_status/v_2/types/in_network_rendering_providers_detail.rb +82 -0
- data/lib/candidhealth/expected_network_status/v_2/types/in_network_status.rb +73 -0
- data/lib/candidhealth/expected_network_status/v_2/types/indeterminate_network_status.rb +93 -0
- data/lib/candidhealth/expected_network_status/v_2/types/insurance_type.rb +78 -0
- data/lib/candidhealth/expected_network_status/v_2/types/insurance_type_codes.rb +112 -0
- data/lib/candidhealth/expected_network_status/v_2/types/line_of_business.rb +15 -0
- data/lib/candidhealth/expected_network_status/v_2/types/out_of_network_status.rb +82 -0
- data/lib/candidhealth/expected_network_status/v_2/types/service_type.rb +53 -0
- data/lib/candidhealth/exports/client.rb +30 -0
- data/lib/candidhealth/exports/v_3/client.rb +152 -0
- data/lib/candidhealth/exports/v_3/types/get_exports_response.rb +96 -0
- 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 +30 -0
- data/lib/candidhealth/fee_schedules/v_3/client.rb +703 -0
- data/lib/candidhealth/fee_schedules/v_3/types/dimension_match.rb +200 -0
- data/lib/candidhealth/fee_schedules/v_3/types/dimension_name.rb +16 -0
- data/lib/candidhealth/fee_schedules/v_3/types/dimensions.rb +179 -0
- data/lib/candidhealth/fee_schedules/v_3/types/dimensions_page.rb +88 -0
- data/lib/candidhealth/fee_schedules/v_3/types/match_cpt_code.rb +78 -0
- data/lib/candidhealth/fee_schedules/v_3/types/match_date.rb +82 -0
- data/lib/candidhealth/fee_schedules/v_3/types/match_facility_type_code.rb +81 -0
- data/lib/candidhealth/fee_schedules/v_3/types/match_geo.rb +93 -0
- data/lib/candidhealth/fee_schedules/v_3/types/match_license_type.rb +81 -0
- data/lib/candidhealth/fee_schedules/v_3/types/match_modifiers.rb +85 -0
- data/lib/candidhealth/fee_schedules/v_3/types/match_network_types.rb +85 -0
- data/lib/candidhealth/fee_schedules/v_3/types/match_payer.rb +78 -0
- data/lib/candidhealth/fee_schedules/v_3/types/match_payer_plan_groups.rb +85 -0
- data/lib/candidhealth/fee_schedules/v_3/types/match_provider.rb +80 -0
- data/lib/candidhealth/fee_schedules/v_3/types/match_result.rb +77 -0
- data/lib/candidhealth/fee_schedules/v_3/types/match_test_result.rb +83 -0
- data/lib/candidhealth/fee_schedules/v_3/types/new_rate.rb +81 -0
- data/lib/candidhealth/fee_schedules/v_3/types/new_rate_version.rb +88 -0
- data/lib/candidhealth/fee_schedules/v_3/types/optional_dimensions.rb +180 -0
- data/lib/candidhealth/fee_schedules/v_3/types/overlapping_rate_entries_error.rb +90 -0
- data/lib/candidhealth/fee_schedules/v_3/types/payer_plan_group_does_not_match_rate_payer_error.rb +75 -0
- data/lib/candidhealth/fee_schedules/v_3/types/payer_threshold.rb +93 -0
- data/lib/candidhealth/fee_schedules/v_3/types/payer_thresholds_page.rb +87 -0
- data/lib/candidhealth/fee_schedules/v_3/types/rate.rb +121 -0
- data/lib/candidhealth/fee_schedules/v_3/types/rate_entry.rb +96 -0
- data/lib/candidhealth/fee_schedules/v_3/types/rate_upload.rb +100 -0
- data/lib/candidhealth/fee_schedules/v_3/types/rate_upload_with_possible_errors.rb +100 -0
- data/lib/candidhealth/fee_schedules/v_3/types/rates_page.rb +88 -0
- data/lib/candidhealth/fee_schedules/v_3/types/threshold_match.rb +97 -0
- data/lib/candidhealth/fee_schedules/v_3/types/validation_error.rb +160 -0
- data/lib/candidhealth/financials/types/account_type.rb +13 -0
- data/lib/candidhealth/financials/types/allocation.rb +75 -0
- data/lib/candidhealth/financials/types/allocation_create.rb +78 -0
- data/lib/candidhealth/financials/types/allocation_target.rb +138 -0
- data/lib/candidhealth/financials/types/allocation_target_create.rb +147 -0
- data/lib/candidhealth/financials/types/appointment_allocation_target.rb +68 -0
- data/lib/candidhealth/financials/types/appointment_by_id_and_patient_external_id.rb +68 -0
- data/lib/candidhealth/financials/types/billing_provider_allocation_target.rb +58 -0
- data/lib/candidhealth/financials/types/claim_allocation_target.rb +68 -0
- data/lib/candidhealth/financials/types/invoice_update.rb +95 -0
- data/lib/candidhealth/financials/types/note_update.rb +95 -0
- data/lib/candidhealth/financials/types/patient_transaction_source.rb +17 -0
- data/lib/candidhealth/financials/types/refund_reason.rb +11 -0
- data/lib/candidhealth/financials/types/refund_reason_update.rb +96 -0
- data/lib/candidhealth/financials/types/service_line_allocation_target.rb +75 -0
- data/lib/candidhealth/guarantor/client.rb +30 -0
- data/lib/candidhealth/guarantor/v_1/client.rb +247 -0
- data/lib/candidhealth/guarantor/v_1/types/encounter_has_existing_guarantor_error_type.rb +61 -0
- data/lib/candidhealth/guarantor/v_1/types/guarantor.rb +152 -0
- data/lib/candidhealth/guarantor/v_1/types/guarantor_base.rb +108 -0
- data/lib/candidhealth/guarantor/v_1/types/guarantor_create.rb +144 -0
- data/lib/candidhealth/guarantor/v_1/types/guarantor_optional.rb +144 -0
- data/lib/candidhealth/guarantor/v_1/types/guarantor_update.rb +144 -0
- data/lib/candidhealth/identifiers/types/identifier.rb +103 -0
- data/lib/candidhealth/identifiers/types/identifier_base.rb +95 -0
- data/lib/candidhealth/identifiers/types/identifier_code.rb +12 -0
- data/lib/candidhealth/identifiers/types/identifier_create.rb +95 -0
- data/lib/candidhealth/identifiers/types/identifier_update.rb +104 -0
- data/lib/candidhealth/identifiers/types/identifier_value.rb +98 -0
- data/lib/candidhealth/identifiers/types/medicaid_provider_identifier.rb +69 -0
- data/lib/candidhealth/identifiers/types/medicare_provider_identifier.rb +69 -0
- data/lib/candidhealth/identifiers/types/updatable_identifier.rb +110 -0
- data/lib/candidhealth/import_invoice/client.rb +30 -0
- data/lib/candidhealth/import_invoice/v_1/client.rb +320 -0
- data/lib/candidhealth/import_invoice/v_1/types/create_import_invoice_request.rb +143 -0
- data/lib/candidhealth/import_invoice/v_1/types/import_invoice.rb +165 -0
- data/lib/candidhealth/import_invoice/v_1/types/import_invoice_update_request.rb +109 -0
- data/lib/candidhealth/import_invoice/v_1/types/import_invoices_page.rb +88 -0
- data/lib/candidhealth/import_invoice/v_1/types/invoice_item_info_update.rb +80 -0
- data/lib/candidhealth/import_invoice/v_1/types/invoice_item_update_type.rb +14 -0
- data/lib/candidhealth/individual/types/gender.rb +15 -0
- data/lib/candidhealth/individual/types/individual_base.rb +76 -0
- data/lib/candidhealth/individual/types/individual_base_optional.rb +78 -0
- data/lib/candidhealth/individual/types/patient.rb +187 -0
- data/lib/candidhealth/individual/types/patient_base.rb +117 -0
- data/lib/candidhealth/individual/types/patient_clinical_trial_info.rb +80 -0
- data/lib/candidhealth/individual/types/patient_clinical_trial_info_create.rb +73 -0
- data/lib/candidhealth/individual/types/patient_create.rb +175 -0
- data/lib/candidhealth/individual/types/patient_non_insurance_payer_info.rb +92 -0
- data/lib/candidhealth/individual/types/patient_non_insurance_payer_info_create.rb +86 -0
- data/lib/candidhealth/individual/types/patient_non_insurance_payer_info_create_optional.rb +89 -0
- data/lib/candidhealth/individual/types/patient_update.rb +179 -0
- data/lib/candidhealth/individual/types/patient_update_with_optional_address.rb +179 -0
- data/lib/candidhealth/individual/types/subscriber.rb +138 -0
- data/lib/candidhealth/individual/types/subscriber_base.rb +116 -0
- data/lib/candidhealth/individual/types/subscriber_base_optional.rb +118 -0
- data/lib/candidhealth/individual/types/subscriber_create.rb +130 -0
- data/lib/candidhealth/individual/types/subscriber_create_optional.rb +132 -0
- data/lib/candidhealth/insurance_adjudications/client.rb +30 -0
- data/lib/candidhealth/insurance_adjudications/v_1/client.rb +206 -0
- data/lib/candidhealth/insurance_adjudications/v_1/types/claim_adjudication.rb +126 -0
- data/lib/candidhealth/insurance_adjudications/v_1/types/claim_adjudication_create.rb +119 -0
- data/lib/candidhealth/insurance_adjudications/v_1/types/insurance_adjudication.rb +123 -0
- data/lib/candidhealth/insurance_adjudications/v_1/types/insurance_adjudication_create.rb +151 -0
- data/lib/candidhealth/insurance_adjudications/v_1/types/service_line_adjudication.rb +142 -0
- data/lib/candidhealth/insurance_adjudications/v_1/types/service_line_adjudication_create.rb +134 -0
- data/lib/candidhealth/insurance_cards/v_2/types/insurance_card.rb +166 -0
- data/lib/candidhealth/insurance_cards/v_2/types/insurance_card_base.rb +102 -0
- data/lib/candidhealth/insurance_cards/v_2/types/insurance_card_create.rb +167 -0
- data/lib/candidhealth/insurance_cards/v_2/types/insurance_card_create_optional.rb +167 -0
- data/lib/candidhealth/insurance_payments/client.rb +30 -0
- data/lib/candidhealth/insurance_payments/v_1/client.rb +172 -0
- data/lib/candidhealth/insurance_payments/v_1/types/insurance_payment.rb +122 -0
- data/lib/candidhealth/insurance_payments/v_1/types/insurance_payment_sort_field.rb +15 -0
- data/lib/candidhealth/insurance_payments/v_1/types/insurance_payments_page.rb +88 -0
- data/lib/candidhealth/insurance_refunds/client.rb +30 -0
- data/lib/candidhealth/insurance_refunds/v_1/client.rb +372 -0
- data/lib/candidhealth/insurance_refunds/v_1/types/insurance_refund.rb +131 -0
- data/lib/candidhealth/insurance_refunds/v_1/types/insurance_refund_create.rb +123 -0
- data/lib/candidhealth/insurance_refunds/v_1/types/insurance_refund_sort_field.rb +16 -0
- data/lib/candidhealth/insurance_refunds/v_1/types/insurance_refunds_page.rb +88 -0
- data/lib/candidhealth/invoices/types/invoice.rb +169 -0
- data/lib/candidhealth/invoices/types/invoice_item.rb +68 -0
- data/lib/candidhealth/invoices/types/invoice_status.rb +16 -0
- data/lib/candidhealth/invoices/v_2/types/claim_invoice_item.rb +70 -0
- data/lib/candidhealth/invoices/v_2/types/claim_invoice_item_info.rb +85 -0
- data/lib/candidhealth/invoices/v_2/types/invoice.rb +173 -0
- data/lib/candidhealth/invoices/v_2/types/invoice_destination.rb +17 -0
- data/lib/candidhealth/invoices/v_2/types/invoice_destination_metadata.rb +95 -0
- data/lib/candidhealth/invoices/v_2/types/invoice_info.rb +85 -0
- data/lib/candidhealth/invoices/v_2/types/invoice_item_attribution_create.rb +110 -0
- data/lib/candidhealth/invoices/v_2/types/invoice_item_create.rb +77 -0
- data/lib/candidhealth/invoices/v_2/types/invoice_item_info.rb +78 -0
- data/lib/candidhealth/invoices/v_2/types/invoice_sort_field.rb +18 -0
- data/lib/candidhealth/invoices/v_2/types/invoice_status.rb +18 -0
- data/lib/candidhealth/invoices/v_2/types/service_line_invoice_item.rb +70 -0
- data/lib/candidhealth/invoices/v_2/types/unattributed_invoice_item.rb +60 -0
- data/lib/candidhealth/medication_dispense/client.rb +30 -0
- data/lib/candidhealth/medication_dispense/v_1/client.rb +114 -0
- data/lib/candidhealth/medication_dispense/v_1/types/medication_dispense_create.rb +142 -0
- data/lib/candidhealth/non_insurance_payer_payments/client.rb +30 -0
- data/lib/candidhealth/non_insurance_payer_payments/v_1/client.rb +344 -0
- data/lib/candidhealth/non_insurance_payer_payments/v_1/types/non_insurance_payer_payment.rb +138 -0
- data/lib/candidhealth/non_insurance_payer_payments/v_1/types/non_insurance_payer_payment_create.rb +124 -0
- data/lib/candidhealth/non_insurance_payer_payments/v_1/types/non_insurance_payer_payment_sort_field.rb +14 -0
- data/lib/candidhealth/non_insurance_payer_payments/v_1/types/non_insurance_payer_payments_page.rb +88 -0
- data/lib/candidhealth/non_insurance_payer_refunds/client.rb +30 -0
- data/lib/candidhealth/non_insurance_payer_refunds/v_1/client.rb +371 -0
- data/lib/candidhealth/non_insurance_payer_refunds/v_1/types/non_insurance_payer_refund.rb +147 -0
- data/lib/candidhealth/non_insurance_payer_refunds/v_1/types/non_insurance_payer_refund_create.rb +133 -0
- data/lib/candidhealth/non_insurance_payer_refunds/v_1/types/non_insurance_payer_refund_sort_field.rb +14 -0
- data/lib/candidhealth/non_insurance_payer_refunds/v_1/types/non_insurance_payer_refunds_page.rb +88 -0
- data/lib/candidhealth/non_insurance_payers/client.rb +30 -0
- data/lib/candidhealth/non_insurance_payers/v_1/client.rb +377 -0
- data/lib/candidhealth/non_insurance_payers/v_1/types/create_non_insurance_payer_request.rb +111 -0
- data/lib/candidhealth/non_insurance_payers/v_1/types/non_insurance_payer.rb +127 -0
- data/lib/candidhealth/non_insurance_payers/v_1/types/non_insurance_payer_address_update.rb +98 -0
- data/lib/candidhealth/non_insurance_payers/v_1/types/non_insurance_payer_category_update.rb +97 -0
- data/lib/candidhealth/non_insurance_payers/v_1/types/non_insurance_payer_description_update.rb +97 -0
- data/lib/candidhealth/non_insurance_payers/v_1/types/non_insurance_payer_page.rb +88 -0
- data/lib/candidhealth/non_insurance_payers/v_1/types/non_insurance_payer_sort_field.rb +16 -0
- data/lib/candidhealth/non_insurance_payers/v_1/types/non_insurance_payer_update_request.rb +110 -0
- data/lib/candidhealth/non_insurance_payers/v_1/types/toggle_non_insurance_payer_enablement_request.rb +62 -0
- data/lib/candidhealth/organization_providers/client.rb +30 -0
- data/lib/candidhealth/organization_providers/v_2/types/address_type.rb +13 -0
- data/lib/candidhealth/organization_providers/v_2/types/employment_status.rb +14 -0
- data/lib/candidhealth/organization_providers/v_2/types/license_type.rb +111 -0
- data/lib/candidhealth/organization_providers/v_2/types/organization_provider.rb +210 -0
- data/lib/candidhealth/organization_providers/v_2/types/organization_provider_address.rb +78 -0
- data/lib/candidhealth/organization_providers/v_2/types/organization_provider_base.rb +177 -0
- data/lib/candidhealth/organization_providers/v_2/types/organization_provider_sort_options.rb +16 -0
- data/lib/candidhealth/organization_providers/v_2/types/provider_type.rb +14 -0
- data/lib/candidhealth/organization_providers/v_3/client.rb +325 -0
- data/lib/candidhealth/organization_providers/v_3/types/organization_provider_create_v_2.rb +194 -0
- data/lib/candidhealth/organization_providers/v_3/types/organization_provider_page_v_2.rb +88 -0
- data/lib/candidhealth/organization_providers/v_3/types/organization_provider_update_v_2.rb +191 -0
- data/lib/candidhealth/organization_providers/v_3/types/organization_provider_v_2.rb +202 -0
- data/lib/candidhealth/organization_service_facilities/client.rb +30 -0
- data/lib/candidhealth/organization_service_facilities/v_2/client.rb +352 -0
- data/lib/candidhealth/organization_service_facilities/v_2/types/organization_service_facility.rb +172 -0
- data/lib/candidhealth/organization_service_facilities/v_2/types/organization_service_facility_create.rb +164 -0
- data/lib/candidhealth/organization_service_facilities/v_2/types/organization_service_facility_page.rb +88 -0
- data/lib/candidhealth/organization_service_facilities/v_2/types/organization_service_facility_update.rb +164 -0
- data/lib/candidhealth/organization_service_facilities/v_2/types/service_facility_mode.rb +14 -0
- data/lib/candidhealth/organization_service_facilities/v_2/types/service_facility_operational_status.rb +18 -0
- data/lib/candidhealth/organization_service_facilities/v_2/types/service_facility_physical_type.rb +26 -0
- data/lib/candidhealth/organization_service_facilities/v_2/types/service_facility_status.rb +15 -0
- data/lib/candidhealth/organization_service_facilities/v_2/types/service_facility_type.rb +135 -0
- data/lib/candidhealth/patient_payments/client.rb +30 -0
- data/lib/candidhealth/patient_payments/v_3/types/patient_payment.rb +162 -0
- data/lib/candidhealth/patient_payments/v_3/types/patient_payment_source.rb +21 -0
- data/lib/candidhealth/patient_payments/v_3/types/patient_payment_status.rb +23 -0
- data/lib/candidhealth/patient_payments/v_4/client.rb +401 -0
- data/lib/candidhealth/patient_payments/v_4/types/patient_payment.rb +149 -0
- data/lib/candidhealth/patient_payments/v_4/types/patient_payment_sort_field.rb +16 -0
- data/lib/candidhealth/patient_payments/v_4/types/patient_payments_page.rb +88 -0
- data/lib/candidhealth/patient_refunds/client.rb +30 -0
- data/lib/candidhealth/patient_refunds/v_1/client.rb +413 -0
- data/lib/candidhealth/patient_refunds/v_1/types/patient_refund.rb +158 -0
- data/lib/candidhealth/patient_refunds/v_1/types/patient_refund_sort_field.rb +17 -0
- data/lib/candidhealth/patient_refunds/v_1/types/patient_refunds_page.rb +88 -0
- data/lib/candidhealth/payer_plan_groups/client.rb +30 -0
- data/lib/candidhealth/payer_plan_groups/v_1/client.rb +356 -0
- data/lib/candidhealth/payer_plan_groups/v_1/types/mutable_payer_plan_group.rb +78 -0
- data/lib/candidhealth/payer_plan_groups/v_1/types/payer_plan_group.rb +114 -0
- data/lib/candidhealth/payer_plan_groups/v_1/types/payer_plan_group_already_exists_error.rb +70 -0
- data/lib/candidhealth/payer_plan_groups/v_1/types/payer_plan_group_page.rb +88 -0
- data/lib/candidhealth/payer_plan_groups/v_1/types/payer_plan_group_sort_field.rb +15 -0
- data/lib/candidhealth/payers/client.rb +30 -0
- data/lib/candidhealth/payers/v_3/client.rb +145 -0
- data/lib/candidhealth/payers/v_3/types/payer.rb +131 -0
- data/lib/candidhealth/payers/v_3/types/payer_identifier.rb +99 -0
- data/lib/candidhealth/payers/v_3/types/payer_info.rb +70 -0
- data/lib/candidhealth/payers/v_3/types/payer_page.rb +88 -0
- data/lib/candidhealth/pre_encounter/appointments/client.rb +32 -0
- data/lib/candidhealth/pre_encounter/appointments/v_1/client.rb +580 -0
- data/lib/candidhealth/pre_encounter/appointments/v_1/types/appointment.rb +283 -0
- data/lib/candidhealth/pre_encounter/appointments/v_1/types/appointment_status.rb +18 -0
- data/lib/candidhealth/pre_encounter/appointments/v_1/types/appointment_work_queue.rb +18 -0
- data/lib/candidhealth/pre_encounter/appointments/v_1/types/mutable_appointment.rb +231 -0
- data/lib/candidhealth/pre_encounter/appointments/v_1/types/service.rb +82 -0
- data/lib/candidhealth/pre_encounter/appointments/v_1/types/universal_service_identifier.rb +18 -0
- data/lib/candidhealth/pre_encounter/appointments/v_1/types/visit.rb +96 -0
- data/lib/candidhealth/pre_encounter/appointments/v_1/types/visits_page.rb +98 -0
- data/lib/candidhealth/pre_encounter/client.rb +30 -0
- data/lib/candidhealth/pre_encounter/common/types/additional_payer_information.rb +92 -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/base_model.rb +104 -0
- data/lib/candidhealth/pre_encounter/common/types/canonical_clinical_trial_association.rb +86 -0
- data/lib/candidhealth/pre_encounter/common/types/canonical_non_insurance_payer_association.rb +103 -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/disability_status.rb +14 -0
- data/lib/candidhealth/pre_encounter/common/types/error_base_4_xx.rb +72 -0
- data/lib/candidhealth/pre_encounter/common/types/ethnicity.rb +16 -0
- data/lib/candidhealth/pre_encounter/common/types/external_identifier.rb +87 -0
- data/lib/candidhealth/pre_encounter/common/types/external_provider.rb +146 -0
- data/lib/candidhealth/pre_encounter/common/types/external_provider_type.rb +15 -0
- data/lib/candidhealth/pre_encounter/common/types/gender.rb +21 -0
- data/lib/candidhealth/pre_encounter/common/types/human_name.rb +107 -0
- data/lib/candidhealth/pre_encounter/common/types/name_use.rb +19 -0
- data/lib/candidhealth/pre_encounter/common/types/period.rb +74 -0
- data/lib/candidhealth/pre_encounter/common/types/race.rb +21 -0
- data/lib/candidhealth/pre_encounter/common/types/relationship.rb +17 -0
- data/lib/candidhealth/pre_encounter/common/types/resource_page.rb +83 -0
- data/lib/candidhealth/pre_encounter/common/types/sex.rb +16 -0
- data/lib/candidhealth/pre_encounter/common/types/sexual_orientation.rb +19 -0
- data/lib/candidhealth/pre_encounter/common/types/sort_direction.rb +14 -0
- data/lib/candidhealth/pre_encounter/common/types/version_conflict_error_body.rb +79 -0
- data/lib/candidhealth/pre_encounter/coverages/client.rb +32 -0
- data/lib/candidhealth/pre_encounter/coverages/v_1/client.rb +1206 -0
- data/lib/candidhealth/pre_encounter/coverages/v_1/types/address.rb +118 -0
- data/lib/candidhealth/pre_encounter/coverages/v_1/types/benefit_type.rb +24 -0
- data/lib/candidhealth/pre_encounter/coverages/v_1/types/benefits_related_entity.rb +108 -0
- data/lib/candidhealth/pre_encounter/coverages/v_1/types/coverage.rb +225 -0
- data/lib/candidhealth/pre_encounter/coverages/v_1/types/coverage_benefits.rb +109 -0
- data/lib/candidhealth/pre_encounter/coverages/v_1/types/coverage_details.rb +104 -0
- data/lib/candidhealth/pre_encounter/coverages/v_1/types/coverage_eligibility_check_response.rb +87 -0
- data/lib/candidhealth/pre_encounter/coverages/v_1/types/coverage_level.rb +19 -0
- data/lib/candidhealth/pre_encounter/coverages/v_1/types/coverage_status.rb +20 -0
- data/lib/candidhealth/pre_encounter/coverages/v_1/types/coverage_value.rb +94 -0
- data/lib/candidhealth/pre_encounter/coverages/v_1/types/coverage_value_unit.rb +17 -0
- data/lib/candidhealth/pre_encounter/coverages/v_1/types/coverages_page.rb +98 -0
- data/lib/candidhealth/pre_encounter/coverages/v_1/types/expanded_member_info.rb +133 -0
- data/lib/candidhealth/pre_encounter/coverages/v_1/types/insurance_plan.rb +165 -0
- data/lib/candidhealth/pre_encounter/coverages/v_1/types/insurance_type_code.rb +86 -0
- data/lib/candidhealth/pre_encounter/coverages/v_1/types/latest_eligibility_check.rb +83 -0
- data/lib/candidhealth/pre_encounter/coverages/v_1/types/member_info.rb +111 -0
- data/lib/candidhealth/pre_encounter/coverages/v_1/types/mutable_coverage.rb +171 -0
- data/lib/candidhealth/pre_encounter/coverages/v_1/types/network_type.rb +38 -0
- data/lib/candidhealth/pre_encounter/coverages/v_1/types/payer_plan_group_fields.rb +92 -0
- data/lib/candidhealth/pre_encounter/coverages/v_1/types/plan_coverage.rb +113 -0
- data/lib/candidhealth/pre_encounter/coverages/v_1/types/plan_coverage_details.rb +176 -0
- data/lib/candidhealth/pre_encounter/coverages/v_1/types/plan_date.rb +87 -0
- data/lib/candidhealth/pre_encounter/coverages/v_1/types/plan_metadata.rb +167 -0
- data/lib/candidhealth/pre_encounter/coverages/v_1/types/related_entity_contact.rb +74 -0
- data/lib/candidhealth/pre_encounter/coverages/v_1/types/service_coverage.rb +122 -0
- data/lib/candidhealth/pre_encounter/coverages/v_1/types/service_coverage_details.rb +124 -0
- data/lib/candidhealth/pre_encounter/coverages/v_1/types/service_type_code.rb +203 -0
- data/lib/candidhealth/pre_encounter/coverages/v_1/types/subscriber.rb +108 -0
- data/lib/candidhealth/pre_encounter/eligibility_checks/client.rb +32 -0
- data/lib/candidhealth/pre_encounter/eligibility_checks/v_1/client.rb +264 -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 +131 -0
- 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/eligibility_checks/v_1/types/eligibility_check_metadata.rb +103 -0
- data/lib/candidhealth/pre_encounter/eligibility_checks/v_1/types/eligibility_check_page.rb +98 -0
- data/lib/candidhealth/pre_encounter/eligibility_checks/v_1/types/eligibility_check_status.rb +18 -0
- data/lib/candidhealth/pre_encounter/eligibility_checks/v_1/types/eligibility_request.rb +151 -0
- data/lib/candidhealth/pre_encounter/eligibility_checks/v_1/types/eligibility_response.rb +15 -0
- data/lib/candidhealth/pre_encounter/eligibility_checks/v_1/types/eligibility_status.rb +18 -0
- data/lib/candidhealth/pre_encounter/eligibility_checks/v_1/types/encounter.rb +83 -0
- data/lib/candidhealth/pre_encounter/eligibility_checks/v_1/types/individual_provider.rb +81 -0
- data/lib/candidhealth/pre_encounter/eligibility_checks/v_1/types/organization_provider.rb +74 -0
- data/lib/candidhealth/pre_encounter/eligibility_checks/v_1/types/parsed_response.rb +99 -0
- data/lib/candidhealth/pre_encounter/eligibility_checks/v_1/types/provider.rb +66 -0
- data/lib/candidhealth/pre_encounter/eligibility_checks/v_1/types/request_correction.rb +79 -0
- data/lib/candidhealth/pre_encounter/images/client.rb +32 -0
- data/lib/candidhealth/pre_encounter/images/v_1/client.rb +359 -0
- data/lib/candidhealth/pre_encounter/images/v_1/types/coverage_association.rb +74 -0
- data/lib/candidhealth/pre_encounter/images/v_1/types/coverage_image_side.rb +16 -0
- data/lib/candidhealth/pre_encounter/images/v_1/types/image.rb +188 -0
- data/lib/candidhealth/pre_encounter/images/v_1/types/image_status.rb +17 -0
- data/lib/candidhealth/pre_encounter/images/v_1/types/mutable_image.rb +125 -0
- data/lib/candidhealth/pre_encounter/images/v_1/types/patient_association.rb +75 -0
- data/lib/candidhealth/pre_encounter/lists/client.rb +32 -0
- data/lib/candidhealth/pre_encounter/lists/v_1/client.rb +187 -0
- data/lib/candidhealth/pre_encounter/lists/v_1/types/appointment_list_item.rb +114 -0
- data/lib/candidhealth/pre_encounter/lists/v_1/types/appointment_list_page.rb +98 -0
- data/lib/candidhealth/pre_encounter/lists/v_1/types/patient_list_item.rb +104 -0
- data/lib/candidhealth/pre_encounter/lists/v_1/types/patient_list_page.rb +98 -0
- data/lib/candidhealth/pre_encounter/notes/client.rb +32 -0
- data/lib/candidhealth/pre_encounter/notes/v_1/client.rb +257 -0
- data/lib/candidhealth/pre_encounter/notes/v_1/types/mutable_note.rb +86 -0
- data/lib/candidhealth/pre_encounter/notes/v_1/types/note.rb +149 -0
- data/lib/candidhealth/pre_encounter/patients/client.rb +32 -0
- data/lib/candidhealth/pre_encounter/patients/v_1/client.rb +1240 -0
- data/lib/candidhealth/pre_encounter/patients/v_1/types/authorization.rb +170 -0
- data/lib/candidhealth/pre_encounter/patients/v_1/types/authorization_unit.rb +16 -0
- data/lib/candidhealth/pre_encounter/patients/v_1/types/contact.rb +132 -0
- data/lib/candidhealth/pre_encounter/patients/v_1/types/do_not_invoice_reason.rb +18 -0
- data/lib/candidhealth/pre_encounter/patients/v_1/types/external_provenance.rb +73 -0
- data/lib/candidhealth/pre_encounter/patients/v_1/types/filing_order.rb +63 -0
- data/lib/candidhealth/pre_encounter/patients/v_1/types/guarantor.rb +121 -0
- data/lib/candidhealth/pre_encounter/patients/v_1/types/marital_status.rb +26 -0
- data/lib/candidhealth/pre_encounter/patients/v_1/types/mutable_patient.rb +450 -0
- data/lib/candidhealth/pre_encounter/patients/v_1/types/mutable_patient_with_mrn.rb +457 -0
- data/lib/candidhealth/pre_encounter/patients/v_1/types/patient.rb +516 -0
- data/lib/candidhealth/pre_encounter/patients/v_1/types/patient_page.rb +98 -0
- data/lib/candidhealth/pre_encounter/patients/v_1/types/referral.rb +106 -0
- data/lib/candidhealth/pre_encounter/tags/client.rb +32 -0
- data/lib/candidhealth/pre_encounter/tags/v_1/client.rb +311 -0
- data/lib/candidhealth/pre_encounter/tags/v_1/types/mutable_tag.rb +63 -0
- data/lib/candidhealth/pre_encounter/tags/v_1/types/tag.rb +123 -0
- data/lib/candidhealth/pre_encounter/tags/v_1/types/tag_page.rb +98 -0
- data/lib/candidhealth/remits/v_1/types/payee.rb +77 -0
- data/lib/candidhealth/remits/v_1/types/payee_identifier.rb +106 -0
- data/lib/candidhealth/service_facility/client.rb +98 -0
- data/lib/candidhealth/service_facility/types/encounter_service_facility.rb +119 -0
- data/lib/candidhealth/service_facility/types/encounter_service_facility_base.rb +123 -0
- data/lib/candidhealth/service_facility/types/encounter_service_facility_update.rb +111 -0
- data/lib/candidhealth/service_facility/types/encounter_service_facility_update_with_optional_address.rb +113 -0
- data/lib/candidhealth/service_lines/client.rb +30 -0
- data/lib/candidhealth/service_lines/v_2/client.rb +313 -0
- data/lib/candidhealth/service_lines/v_2/types/denial_reason_content.rb +44 -0
- data/lib/candidhealth/service_lines/v_2/types/drug_identification.rb +126 -0
- data/lib/candidhealth/service_lines/v_2/types/drug_identification_optional.rb +126 -0
- data/lib/candidhealth/service_lines/v_2/types/measurement_unit_code.rb +17 -0
- data/lib/candidhealth/service_lines/v_2/types/service_id_qualifier.rb +19 -0
- data/lib/candidhealth/service_lines/v_2/types/service_line.rb +463 -0
- data/lib/candidhealth/service_lines/v_2/types/service_line_adjustment.rb +102 -0
- data/lib/candidhealth/service_lines/v_2/types/service_line_create.rb +247 -0
- data/lib/candidhealth/service_lines/v_2/types/service_line_create_optional.rb +247 -0
- data/lib/candidhealth/service_lines/v_2/types/service_line_create_standalone.rb +293 -0
- data/lib/candidhealth/service_lines/v_2/types/service_line_denial_reason.rb +66 -0
- data/lib/candidhealth/service_lines/v_2/types/service_line_era_data.rb +78 -0
- data/lib/candidhealth/service_lines/v_2/types/service_line_update.rb +285 -0
- data/lib/candidhealth/service_lines/v_2/types/test_result.rb +71 -0
- data/lib/candidhealth/service_lines/v_2/types/test_result_optional.rb +73 -0
- data/lib/candidhealth/service_lines/v_2/types/test_result_type.rb +15 -0
- data/lib/candidhealth/superbills/client.rb +30 -0
- data/lib/candidhealth/superbills/v_1/client.rb +123 -0
- data/lib/candidhealth/superbills/v_1/types/superbill.rb +108 -0
- data/lib/candidhealth/superbills/v_1/types/superbill_response.rb +65 -0
- data/lib/candidhealth/tags/types/tag.rb +83 -0
- data/lib/candidhealth/tags/types/tag_color_enum.rb +20 -0
- data/lib/candidhealth/tags/types/tag_create.rb +76 -0
- data/lib/candidhealth/tasks/client.rb +30 -0
- data/lib/candidhealth/tasks/commons/types/task_category.rb +54 -0
- data/lib/candidhealth/tasks/commons/types/task_status.rb +19 -0
- data/lib/candidhealth/tasks/commons/types/task_type.rb +24 -0
- data/lib/candidhealth/tasks/v_3/client.rb +343 -0
- data/lib/candidhealth/tasks/v_3/types/task.rb +225 -0
- data/lib/candidhealth/tasks/v_3/types/task_action.rb +85 -0
- data/lib/candidhealth/tasks/v_3/types/task_action_execution_method.rb +85 -0
- data/lib/candidhealth/tasks/v_3/types/task_action_type.rb +14 -0
- data/lib/candidhealth/tasks/v_3/types/task_actions.rb +65 -0
- data/lib/candidhealth/tasks/v_3/types/task_assignment.rb +75 -0
- data/lib/candidhealth/tasks/v_3/types/task_create_v_3.rb +118 -0
- data/lib/candidhealth/tasks/v_3/types/task_note.rb +100 -0
- data/lib/candidhealth/tasks/v_3/types/task_page.rb +88 -0
- data/lib/candidhealth/tasks/v_3/types/task_sort_options.rb +34 -0
- data/lib/candidhealth/tasks/v_3/types/task_update_v_3.rb +85 -0
- data/lib/candidhealth/tasks/v_3/types/task_updated_to_deprecated_status_error_type.rb +64 -0
- data/lib/candidhealth/write_offs/client.rb +30 -0
- data/lib/candidhealth/write_offs/v_1/client.rb +379 -0
- data/lib/candidhealth/write_offs/v_1/types/create_write_offs_response.rb +65 -0
- data/lib/candidhealth/write_offs/v_1/types/insurance_write_off.rb +149 -0
- data/lib/candidhealth/write_offs/v_1/types/insurance_write_off_create.rb +125 -0
- data/lib/candidhealth/write_offs/v_1/types/insurance_write_off_reason.rb +29 -0
- data/lib/candidhealth/write_offs/v_1/types/insurance_write_off_target.rb +106 -0
- data/lib/candidhealth/write_offs/v_1/types/non_insurance_payer_write_off.rb +143 -0
- data/lib/candidhealth/write_offs/v_1/types/non_insurance_payer_write_off_create.rb +113 -0
- data/lib/candidhealth/write_offs/v_1/types/patient_write_off.rb +145 -0
- data/lib/candidhealth/write_offs/v_1/types/patient_write_off_create.rb +105 -0
- data/lib/candidhealth/write_offs/v_1/types/patient_write_off_reason.rb +24 -0
- data/lib/candidhealth/write_offs/v_1/types/write_off.rb +113 -0
- data/lib/candidhealth/write_offs/v_1/types/write_off_create.rb +113 -0
- data/lib/candidhealth/write_offs/v_1/types/write_off_sort_field.rb +15 -0
- data/lib/candidhealth/write_offs/v_1/types/write_offs_page.rb +88 -0
- data/lib/candidhealth/x_12/v_1/types/carc.rb +415 -0
- data/lib/candidhealth/x_12/v_1/types/claim_adjustment_reason_code.rb +79 -0
- data/lib/candidhealth/x_12/v_1/types/rarc.rb +1199 -0
- data/lib/candidhealth/x_12/v_1/types/remittance_advice_remark_code.rb +61 -0
- data/lib/candidhealth/yes_no_indicator/types/yes_no_indicator.rb +14 -0
- data/lib/candidhealth.rb +329 -0
- data/lib/core/file_utilities.rb +26 -0
- data/lib/core/oauth.rb +62 -0
- data/lib/environment.rb +18 -0
- data/lib/gemconfig.rb +14 -0
- data/lib/requests.rb +166 -0
- data/lib/types_export.rb +552 -0
- metadata +803 -0
@@ -0,0 +1,70 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require "ostruct"
|
4
|
+
require "json"
|
5
|
+
|
6
|
+
module CandidApiClient
|
7
|
+
module Diagnoses
|
8
|
+
module Types
|
9
|
+
class DiagnosisNotFoundError
|
10
|
+
# @return [String]
|
11
|
+
attr_reader :diagnosis_id
|
12
|
+
# @return [String]
|
13
|
+
attr_reader :message
|
14
|
+
# @return [OpenStruct] Additional properties unmapped to the current class definition
|
15
|
+
attr_reader :additional_properties
|
16
|
+
# @return [Object]
|
17
|
+
attr_reader :_field_set
|
18
|
+
protected :_field_set
|
19
|
+
|
20
|
+
OMIT = Object.new
|
21
|
+
|
22
|
+
# @param diagnosis_id [String]
|
23
|
+
# @param message [String]
|
24
|
+
# @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
|
25
|
+
# @return [CandidApiClient::Diagnoses::Types::DiagnosisNotFoundError]
|
26
|
+
def initialize(message:, diagnosis_id: OMIT, additional_properties: nil)
|
27
|
+
@diagnosis_id = diagnosis_id if diagnosis_id != OMIT
|
28
|
+
@message = message
|
29
|
+
@additional_properties = additional_properties
|
30
|
+
@_field_set = { "diagnosis_id": diagnosis_id, "message": message }.reject do |_k, v|
|
31
|
+
v == OMIT
|
32
|
+
end
|
33
|
+
end
|
34
|
+
|
35
|
+
# Deserialize a JSON object to an instance of DiagnosisNotFoundError
|
36
|
+
#
|
37
|
+
# @param json_object [String]
|
38
|
+
# @return [CandidApiClient::Diagnoses::Types::DiagnosisNotFoundError]
|
39
|
+
def self.from_json(json_object:)
|
40
|
+
struct = JSON.parse(json_object, object_class: OpenStruct)
|
41
|
+
diagnosis_id = struct["diagnosis_id"]
|
42
|
+
message = struct["message"]
|
43
|
+
new(
|
44
|
+
diagnosis_id: diagnosis_id,
|
45
|
+
message: message,
|
46
|
+
additional_properties: struct
|
47
|
+
)
|
48
|
+
end
|
49
|
+
|
50
|
+
# Serialize an instance of DiagnosisNotFoundError to a JSON object
|
51
|
+
#
|
52
|
+
# @return [String]
|
53
|
+
def to_json(*_args)
|
54
|
+
@_field_set&.to_json
|
55
|
+
end
|
56
|
+
|
57
|
+
# Leveraged for Union-type generation, validate_raw attempts to parse the given
|
58
|
+
# hash and check each fields type against the current object's property
|
59
|
+
# definitions.
|
60
|
+
#
|
61
|
+
# @param obj [Object]
|
62
|
+
# @return [Void]
|
63
|
+
def self.validate_raw(obj:)
|
64
|
+
obj.diagnosis_id&.is_a?(String) != false || raise("Passed value for field obj.diagnosis_id is not the expected type, validation failed.")
|
65
|
+
obj.message.is_a?(String) != false || raise("Passed value for field obj.message is not the expected type, validation failed.")
|
66
|
+
end
|
67
|
+
end
|
68
|
+
end
|
69
|
+
end
|
70
|
+
end
|
@@ -0,0 +1,20 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module CandidApiClient
|
4
|
+
module Diagnoses
|
5
|
+
module Types
|
6
|
+
class DiagnosisTypeCode
|
7
|
+
ABF = "ABF"
|
8
|
+
ABJ = "ABJ"
|
9
|
+
ABK = "ABK"
|
10
|
+
APR = "APR"
|
11
|
+
BF = "BF"
|
12
|
+
BJ = "BJ"
|
13
|
+
BK = "BK"
|
14
|
+
PR = "PR"
|
15
|
+
DR = "DR"
|
16
|
+
LOI = "LOI"
|
17
|
+
end
|
18
|
+
end
|
19
|
+
end
|
20
|
+
end
|
@@ -0,0 +1,134 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require_relative "diagnosis_type_code"
|
4
|
+
require_relative "../../yes_no_indicator/types/yes_no_indicator"
|
5
|
+
require "ostruct"
|
6
|
+
require "json"
|
7
|
+
|
8
|
+
module CandidApiClient
|
9
|
+
module Diagnoses
|
10
|
+
module Types
|
11
|
+
class StandaloneDiagnosisCreate
|
12
|
+
# @return [String]
|
13
|
+
attr_reader :encounter_id
|
14
|
+
# @return [String] Empty string not allowed.
|
15
|
+
attr_reader :name
|
16
|
+
# @return [CandidApiClient::Diagnoses::Types::DiagnosisTypeCode] Typically, providers submitting claims to Candid are using ICD-10 diagnosis
|
17
|
+
# codes. If you are using ICD-10 codes, the primary diagnosis code listed on the
|
18
|
+
# claim should use the ABK code_type. If more than one diagnosis is being
|
19
|
+
# submitted on a claim, please use ABF for the rest of the listed diagnoses. If
|
20
|
+
# you are using ICD-9 diagnosis codes, use BK and BF for the principal and
|
21
|
+
# following diagnosis code(s) respectively.
|
22
|
+
attr_reader :code_type
|
23
|
+
# @return [String] Empty string not allowed.
|
24
|
+
# Should be of the appropriate format for the provided `code_type`.
|
25
|
+
# Must obey the ICD-10 format if an ICD-10 code_type is provided, specifically:
|
26
|
+
# - Letter
|
27
|
+
# - Digit
|
28
|
+
# - Digit or the letter `A` or `B`
|
29
|
+
# - (Optional) Period `.`
|
30
|
+
# - Up to 4 (or as few as 0) letters and digits
|
31
|
+
attr_reader :code
|
32
|
+
# @return [CandidApiClient::YesNoIndicator::Types::YesNoIndicator] For Institutional claims only.
|
33
|
+
# A "Y" indicates that the onset occurred prior to admission to the hospital.
|
34
|
+
# An "N" indicates that the onset did NOT occur prior to admission to the
|
35
|
+
# hospital.
|
36
|
+
# A "U" indicates that it is unknown whether the onset occurred prior to admission
|
37
|
+
# to the hospital or not.
|
38
|
+
attr_reader :present_on_admission_indicator
|
39
|
+
# @return [OpenStruct] Additional properties unmapped to the current class definition
|
40
|
+
attr_reader :additional_properties
|
41
|
+
# @return [Object]
|
42
|
+
attr_reader :_field_set
|
43
|
+
protected :_field_set
|
44
|
+
|
45
|
+
OMIT = Object.new
|
46
|
+
|
47
|
+
# @param encounter_id [String]
|
48
|
+
# @param name [String] Empty string not allowed.
|
49
|
+
# @param code_type [CandidApiClient::Diagnoses::Types::DiagnosisTypeCode] Typically, providers submitting claims to Candid are using ICD-10 diagnosis
|
50
|
+
# codes. If you are using ICD-10 codes, the primary diagnosis code listed on the
|
51
|
+
# claim should use the ABK code_type. If more than one diagnosis is being
|
52
|
+
# submitted on a claim, please use ABF for the rest of the listed diagnoses. If
|
53
|
+
# you are using ICD-9 diagnosis codes, use BK and BF for the principal and
|
54
|
+
# following diagnosis code(s) respectively.
|
55
|
+
# @param code [String] Empty string not allowed.
|
56
|
+
# Should be of the appropriate format for the provided `code_type`.
|
57
|
+
# Must obey the ICD-10 format if an ICD-10 code_type is provided, specifically:
|
58
|
+
# - Letter
|
59
|
+
# - Digit
|
60
|
+
# - Digit or the letter `A` or `B`
|
61
|
+
# - (Optional) Period `.`
|
62
|
+
# - Up to 4 (or as few as 0) letters and digits
|
63
|
+
# @param present_on_admission_indicator [CandidApiClient::YesNoIndicator::Types::YesNoIndicator] For Institutional claims only.
|
64
|
+
# A "Y" indicates that the onset occurred prior to admission to the hospital.
|
65
|
+
# An "N" indicates that the onset did NOT occur prior to admission to the
|
66
|
+
# hospital.
|
67
|
+
# A "U" indicates that it is unknown whether the onset occurred prior to admission
|
68
|
+
# to the hospital or not.
|
69
|
+
# @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
|
70
|
+
# @return [CandidApiClient::Diagnoses::Types::StandaloneDiagnosisCreate]
|
71
|
+
def initialize(encounter_id:, code_type:, code:, name: OMIT, present_on_admission_indicator: OMIT,
|
72
|
+
additional_properties: nil)
|
73
|
+
@encounter_id = encounter_id
|
74
|
+
@name = name if name != OMIT
|
75
|
+
@code_type = code_type
|
76
|
+
@code = code
|
77
|
+
@present_on_admission_indicator = present_on_admission_indicator if present_on_admission_indicator != OMIT
|
78
|
+
@additional_properties = additional_properties
|
79
|
+
@_field_set = {
|
80
|
+
"encounter_id": encounter_id,
|
81
|
+
"name": name,
|
82
|
+
"code_type": code_type,
|
83
|
+
"code": code,
|
84
|
+
"present_on_admission_indicator": present_on_admission_indicator
|
85
|
+
}.reject do |_k, v|
|
86
|
+
v == OMIT
|
87
|
+
end
|
88
|
+
end
|
89
|
+
|
90
|
+
# Deserialize a JSON object to an instance of StandaloneDiagnosisCreate
|
91
|
+
#
|
92
|
+
# @param json_object [String]
|
93
|
+
# @return [CandidApiClient::Diagnoses::Types::StandaloneDiagnosisCreate]
|
94
|
+
def self.from_json(json_object:)
|
95
|
+
struct = JSON.parse(json_object, object_class: OpenStruct)
|
96
|
+
encounter_id = struct["encounter_id"]
|
97
|
+
name = struct["name"]
|
98
|
+
code_type = struct["code_type"]
|
99
|
+
code = struct["code"]
|
100
|
+
present_on_admission_indicator = struct["present_on_admission_indicator"]
|
101
|
+
new(
|
102
|
+
encounter_id: encounter_id,
|
103
|
+
name: name,
|
104
|
+
code_type: code_type,
|
105
|
+
code: code,
|
106
|
+
present_on_admission_indicator: present_on_admission_indicator,
|
107
|
+
additional_properties: struct
|
108
|
+
)
|
109
|
+
end
|
110
|
+
|
111
|
+
# Serialize an instance of StandaloneDiagnosisCreate to a JSON object
|
112
|
+
#
|
113
|
+
# @return [String]
|
114
|
+
def to_json(*_args)
|
115
|
+
@_field_set&.to_json
|
116
|
+
end
|
117
|
+
|
118
|
+
# Leveraged for Union-type generation, validate_raw attempts to parse the given
|
119
|
+
# hash and check each fields type against the current object's property
|
120
|
+
# definitions.
|
121
|
+
#
|
122
|
+
# @param obj [Object]
|
123
|
+
# @return [Void]
|
124
|
+
def self.validate_raw(obj:)
|
125
|
+
obj.encounter_id.is_a?(String) != false || raise("Passed value for field obj.encounter_id is not the expected type, validation failed.")
|
126
|
+
obj.name&.is_a?(String) != false || raise("Passed value for field obj.name is not the expected type, validation failed.")
|
127
|
+
obj.code_type.is_a?(CandidApiClient::Diagnoses::Types::DiagnosisTypeCode) != false || raise("Passed value for field obj.code_type is not the expected type, validation failed.")
|
128
|
+
obj.code.is_a?(String) != false || raise("Passed value for field obj.code is not the expected type, validation failed.")
|
129
|
+
obj.present_on_admission_indicator&.is_a?(CandidApiClient::YesNoIndicator::Types::YesNoIndicator) != false || raise("Passed value for field obj.present_on_admission_indicator is not the expected type, validation failed.")
|
130
|
+
end
|
131
|
+
end
|
132
|
+
end
|
133
|
+
end
|
134
|
+
end
|
@@ -0,0 +1,30 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require_relative "../../requests"
|
4
|
+
require_relative "v_2/client"
|
5
|
+
|
6
|
+
module CandidApiClient
|
7
|
+
module Eligibility
|
8
|
+
class Client
|
9
|
+
# @return [CandidApiClient::Eligibility::V2::V2Client]
|
10
|
+
attr_reader :v_2
|
11
|
+
|
12
|
+
# @param request_client [CandidApiClient::RequestClient]
|
13
|
+
# @return [CandidApiClient::Eligibility::Client]
|
14
|
+
def initialize(request_client:)
|
15
|
+
@v_2 = CandidApiClient::Eligibility::V2::V2Client.new(request_client: request_client)
|
16
|
+
end
|
17
|
+
end
|
18
|
+
|
19
|
+
class AsyncClient
|
20
|
+
# @return [CandidApiClient::Eligibility::V2::AsyncV2Client]
|
21
|
+
attr_reader :v_2
|
22
|
+
|
23
|
+
# @param request_client [CandidApiClient::AsyncRequestClient]
|
24
|
+
# @return [CandidApiClient::Eligibility::AsyncClient]
|
25
|
+
def initialize(request_client:)
|
26
|
+
@v_2 = CandidApiClient::Eligibility::V2::AsyncV2Client.new(request_client: request_client)
|
27
|
+
end
|
28
|
+
end
|
29
|
+
end
|
30
|
+
end
|
@@ -0,0 +1,338 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require_relative "../../../requests"
|
4
|
+
require "json"
|
5
|
+
require "async"
|
6
|
+
|
7
|
+
module CandidApiClient
|
8
|
+
module Eligibility
|
9
|
+
module V2
|
10
|
+
class V2Client
|
11
|
+
# @return [CandidApiClient::RequestClient]
|
12
|
+
attr_reader :request_client
|
13
|
+
|
14
|
+
# @param request_client [CandidApiClient::RequestClient]
|
15
|
+
# @return [CandidApiClient::Eligibility::V2::V2Client]
|
16
|
+
def initialize(request_client:)
|
17
|
+
@request_client = request_client
|
18
|
+
end
|
19
|
+
|
20
|
+
# <Tip>Candid is deprecating support for this endpoint. It is instead recommended
|
21
|
+
# to use [Candid's Stedi passthrough
|
22
|
+
# s.joincandidhealth.com/api-reference/pre-encounter/eligibility-checks/v-1/post).
|
23
|
+
# For assistance with the transition, please reference the [Transitioning to
|
24
|
+
# Candid's New Eligibility
|
25
|
+
# Endpoint](https://support.joincandidhealth.com/hc/en-us/articles/34918552872980)
|
26
|
+
# document in the Candid Support Center.</Tip>
|
27
|
+
# This API is a wrapper around Change Healthcare's eligibility API. Below are some
|
28
|
+
# helpful documentation links:
|
29
|
+
# - [Change Healthcare - Guides: Contents of the Eligibility Request
|
30
|
+
# althcare.com/eligibilityandclaims/docs/contents-of-the-eligibility-request-body)
|
31
|
+
# - [Change Healthcare - Guides: Use "Bare Minimum" Eligibility
|
32
|
+
# ehealthcare.com/eligibilityandclaims/docs/use-bare-minimum-eligibility-requests)
|
33
|
+
# - [Change Healthcare - Guides: Contents of the Eligibility
|
34
|
+
# gehealthcare.com/eligibilityandclaims/docs/contents-of-the-eligibility-response)
|
35
|
+
# - [Change Healthcare - Guides: Eligibility JSON-to-EDI API
|
36
|
+
# gehealthcare.com/eligibilityandclaims/docs/eligibility-json-to-edi-api-contents)
|
37
|
+
# - [Change Healthcare - Guides: Eligibility Error
|
38
|
+
# opers.changehealthcare.com/eligibilityandclaims/docs/eligibility-error-messages)
|
39
|
+
# - [Change Healthcare - Guides:
|
40
|
+
# opers.changehealthcare.com/eligibilityandclaims/docs/frequently-asked-questions)
|
41
|
+
# - [Change Healthcare - Guides: Eligibility
|
42
|
+
# elopers.changehealthcare.com/eligibilityandclaims/docs/eligibility-api-requests)
|
43
|
+
# - [Change Healthcare - Guides: Sandbox API Values and Test
|
44
|
+
# com/eligibilityandclaims/docs/eligibility-sandbox-api-values-and-test-responses)
|
45
|
+
# - [Change Healthcare - Guides: Sandbox Predefined Fields and
|
46
|
+
# gehealthcare.com/eligibilityandclaims/docs/sandbox-predefined-fields-and-values)
|
47
|
+
# - [Change Healthcare - Guides: Using Test Payers in the
|
48
|
+
# healthcare.com/eligibilityandclaims/docs/use-the-test-payers-in-the-sandbox-api)
|
49
|
+
# A schema of the response object can be found here: [Change Healthcare
|
50
|
+
# velopers.changehealthcare.com/eligibilityandclaims/reference/medicaleligibility)
|
51
|
+
#
|
52
|
+
# @param request [Object]
|
53
|
+
# @param request_options [CandidApiClient::RequestOptions]
|
54
|
+
# @return [Object]
|
55
|
+
# @example
|
56
|
+
# api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
|
57
|
+
# api.eligibility.v_2.submit_eligibility_check(request: {"key":"value"})
|
58
|
+
def submit_eligibility_check(request: nil, request_options: nil)
|
59
|
+
response = @request_client.conn.post do |req|
|
60
|
+
req.options.timeout = request_options.timeout_in_seconds unless request_options&.timeout_in_seconds.nil?
|
61
|
+
req.headers["Authorization"] = request_options.token unless request_options&.token.nil?
|
62
|
+
req.headers = {
|
63
|
+
**(req.headers || {}),
|
64
|
+
**@request_client.get_headers,
|
65
|
+
**(request_options&.additional_headers || {})
|
66
|
+
}.compact
|
67
|
+
req.body = { **(request || {}), **(request_options&.additional_body_parameters || {}) }.compact
|
68
|
+
req.url "#{@request_client.get_url(environment: CandidApi,
|
69
|
+
request_options: request_options)}/api/eligibility/v2"
|
70
|
+
end
|
71
|
+
JSON.parse(response.body)
|
72
|
+
end
|
73
|
+
|
74
|
+
# <Tip>Candid is deprecating support for this endpoint. It is instead recommended
|
75
|
+
# to use [Candid's Stedi passthrough
|
76
|
+
# s.joincandidhealth.com/api-reference/pre-encounter/eligibility-checks/v-1/post).
|
77
|
+
# For assistance with the transition, please reference the [Transitioning to
|
78
|
+
# Candid's New Eligibility
|
79
|
+
# Endpoint](https://support.joincandidhealth.com/hc/en-us/articles/34918552872980)
|
80
|
+
# document in the Candid Support Center.</Tip>
|
81
|
+
# **Availity has transitioned their GET endpoint to a POST endpoint. Candid has
|
82
|
+
# updated their pass-through integration to enable backwards compatibility for the
|
83
|
+
# GET endpoint so that customers do not have to immediately update their
|
84
|
+
# integrations.**
|
85
|
+
# **Candid recommends integrations with the [POST
|
86
|
+
# health.com/api-reference/eligibility/v-2/submit-eligibility-check-availity-post)
|
87
|
+
# to ensure the best possible integration experience. Given the transition,
|
88
|
+
# Availity’s documentation will be out of sync with this endpoint.**
|
89
|
+
# If you'd like access to this endpoint, please reach out to
|
90
|
+
# support@joincandidhealth.com with the subject line "Action: Activate Availity
|
91
|
+
# Eligibility API Endpoint
|
92
|
+
# This API is a wrapper around Availity's coverages API. Below are some helpful
|
93
|
+
# documentation links:
|
94
|
+
# - [Availity - Coverages 1.0.0
|
95
|
+
# PI](https://developer.availity.com/partner/documentation#c_coverages_references)
|
96
|
+
# - [Candid Availity Eligibility Integration
|
97
|
+
# th.com/hc/en-us/articles/24218441631892--Availity-Eligibility-Integration-Guide)
|
98
|
+
# A schema of the response object can be found here: [Availity
|
99
|
+
# tner/product/191210/api/190898#/Coverages_100/operation/%2Fcoverages%2F{id}/get)
|
100
|
+
# * Note Availity requires a free developer account to access this documentation.
|
101
|
+
# Check connection status of Availity API and partners here:
|
102
|
+
# - [Availity Trading Partner Connection Status](https://www.availity.com/status/)
|
103
|
+
#
|
104
|
+
# @param request_options [CandidApiClient::RequestOptions]
|
105
|
+
# @return [Object]
|
106
|
+
# @example
|
107
|
+
# api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
|
108
|
+
# api.eligibility.v_2.submit_eligibility_check_availity
|
109
|
+
def submit_eligibility_check_availity(request_options: nil)
|
110
|
+
response = @request_client.conn.get do |req|
|
111
|
+
req.options.timeout = request_options.timeout_in_seconds unless request_options&.timeout_in_seconds.nil?
|
112
|
+
req.headers["Authorization"] = request_options.token unless request_options&.token.nil?
|
113
|
+
req.headers = {
|
114
|
+
**(req.headers || {}),
|
115
|
+
**@request_client.get_headers,
|
116
|
+
**(request_options&.additional_headers || {})
|
117
|
+
}.compact
|
118
|
+
req.url "#{@request_client.get_url(environment: CandidApi,
|
119
|
+
request_options: request_options)}/api/eligibility/v2/availity"
|
120
|
+
end
|
121
|
+
JSON.parse(response.body)
|
122
|
+
end
|
123
|
+
|
124
|
+
# <Tip>Candid is deprecating support for this endpoint. It is instead recommended
|
125
|
+
# to use [Candid's Stedi passthrough
|
126
|
+
# s.joincandidhealth.com/api-reference/pre-encounter/eligibility-checks/v-1/post).
|
127
|
+
# For assistance with the transition, please reference the [Transitioning to
|
128
|
+
# Candid's New Eligibility
|
129
|
+
# Endpoint](https://support.joincandidhealth.com/hc/en-us/articles/34918552872980)
|
130
|
+
# document in the Candid Support Center.</Tip>
|
131
|
+
# If you'd like access to this endpoint, please reach out to
|
132
|
+
# support@joincandidhealth.com with the subject line "Action: Activate Availity
|
133
|
+
# Eligibility API Endpoint
|
134
|
+
# This API is a wrapper around Availity's coverages API. Below are some helpful
|
135
|
+
# documentation links:
|
136
|
+
# - [Availity - Coverages 1.0.0
|
137
|
+
# PI](https://developer.availity.com/partner/documentation#c_coverages_references)
|
138
|
+
# - [Candid Availity Eligibility Integration
|
139
|
+
# th.com/hc/en-us/articles/24218441631892--Availity-Eligibility-Integration-Guide)
|
140
|
+
# A schema of the response object can be found here: [Availity
|
141
|
+
# tner/product/191210/api/190898#/Coverages_100/operation/%2Fcoverages%2F{id}/get)
|
142
|
+
# * Note Availity requires a free developer account to access this documentation.
|
143
|
+
# Check connection status of Availity API and partners here:
|
144
|
+
# - [Availity Trading Partner Connection Status](https://www.availity.com/status/)
|
145
|
+
#
|
146
|
+
# @param request [Object]
|
147
|
+
# @param request_options [CandidApiClient::RequestOptions]
|
148
|
+
# @return [Object]
|
149
|
+
# @example
|
150
|
+
# api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
|
151
|
+
# api.eligibility.v_2.submit_eligibility_check_availity_post(request: {"key":"value"})
|
152
|
+
def submit_eligibility_check_availity_post(request: nil, request_options: nil)
|
153
|
+
response = @request_client.conn.post do |req|
|
154
|
+
req.options.timeout = request_options.timeout_in_seconds unless request_options&.timeout_in_seconds.nil?
|
155
|
+
req.headers["Authorization"] = request_options.token unless request_options&.token.nil?
|
156
|
+
req.headers = {
|
157
|
+
**(req.headers || {}),
|
158
|
+
**@request_client.get_headers,
|
159
|
+
**(request_options&.additional_headers || {})
|
160
|
+
}.compact
|
161
|
+
req.body = { **(request || {}), **(request_options&.additional_body_parameters || {}) }.compact
|
162
|
+
req.url "#{@request_client.get_url(environment: CandidApi,
|
163
|
+
request_options: request_options)}/api/eligibility/v2/availity"
|
164
|
+
end
|
165
|
+
JSON.parse(response.body)
|
166
|
+
end
|
167
|
+
end
|
168
|
+
|
169
|
+
class AsyncV2Client
|
170
|
+
# @return [CandidApiClient::AsyncRequestClient]
|
171
|
+
attr_reader :request_client
|
172
|
+
|
173
|
+
# @param request_client [CandidApiClient::AsyncRequestClient]
|
174
|
+
# @return [CandidApiClient::Eligibility::V2::AsyncV2Client]
|
175
|
+
def initialize(request_client:)
|
176
|
+
@request_client = request_client
|
177
|
+
end
|
178
|
+
|
179
|
+
# <Tip>Candid is deprecating support for this endpoint. It is instead recommended
|
180
|
+
# to use [Candid's Stedi passthrough
|
181
|
+
# s.joincandidhealth.com/api-reference/pre-encounter/eligibility-checks/v-1/post).
|
182
|
+
# For assistance with the transition, please reference the [Transitioning to
|
183
|
+
# Candid's New Eligibility
|
184
|
+
# Endpoint](https://support.joincandidhealth.com/hc/en-us/articles/34918552872980)
|
185
|
+
# document in the Candid Support Center.</Tip>
|
186
|
+
# This API is a wrapper around Change Healthcare's eligibility API. Below are some
|
187
|
+
# helpful documentation links:
|
188
|
+
# - [Change Healthcare - Guides: Contents of the Eligibility Request
|
189
|
+
# althcare.com/eligibilityandclaims/docs/contents-of-the-eligibility-request-body)
|
190
|
+
# - [Change Healthcare - Guides: Use "Bare Minimum" Eligibility
|
191
|
+
# ehealthcare.com/eligibilityandclaims/docs/use-bare-minimum-eligibility-requests)
|
192
|
+
# - [Change Healthcare - Guides: Contents of the Eligibility
|
193
|
+
# gehealthcare.com/eligibilityandclaims/docs/contents-of-the-eligibility-response)
|
194
|
+
# - [Change Healthcare - Guides: Eligibility JSON-to-EDI API
|
195
|
+
# gehealthcare.com/eligibilityandclaims/docs/eligibility-json-to-edi-api-contents)
|
196
|
+
# - [Change Healthcare - Guides: Eligibility Error
|
197
|
+
# opers.changehealthcare.com/eligibilityandclaims/docs/eligibility-error-messages)
|
198
|
+
# - [Change Healthcare - Guides:
|
199
|
+
# opers.changehealthcare.com/eligibilityandclaims/docs/frequently-asked-questions)
|
200
|
+
# - [Change Healthcare - Guides: Eligibility
|
201
|
+
# elopers.changehealthcare.com/eligibilityandclaims/docs/eligibility-api-requests)
|
202
|
+
# - [Change Healthcare - Guides: Sandbox API Values and Test
|
203
|
+
# com/eligibilityandclaims/docs/eligibility-sandbox-api-values-and-test-responses)
|
204
|
+
# - [Change Healthcare - Guides: Sandbox Predefined Fields and
|
205
|
+
# gehealthcare.com/eligibilityandclaims/docs/sandbox-predefined-fields-and-values)
|
206
|
+
# - [Change Healthcare - Guides: Using Test Payers in the
|
207
|
+
# healthcare.com/eligibilityandclaims/docs/use-the-test-payers-in-the-sandbox-api)
|
208
|
+
# A schema of the response object can be found here: [Change Healthcare
|
209
|
+
# velopers.changehealthcare.com/eligibilityandclaims/reference/medicaleligibility)
|
210
|
+
#
|
211
|
+
# @param request [Object]
|
212
|
+
# @param request_options [CandidApiClient::RequestOptions]
|
213
|
+
# @return [Object]
|
214
|
+
# @example
|
215
|
+
# api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
|
216
|
+
# api.eligibility.v_2.submit_eligibility_check(request: {"key":"value"})
|
217
|
+
def submit_eligibility_check(request: nil, request_options: nil)
|
218
|
+
Async do
|
219
|
+
response = @request_client.conn.post do |req|
|
220
|
+
req.options.timeout = request_options.timeout_in_seconds unless request_options&.timeout_in_seconds.nil?
|
221
|
+
req.headers["Authorization"] = request_options.token unless request_options&.token.nil?
|
222
|
+
req.headers = {
|
223
|
+
**(req.headers || {}),
|
224
|
+
**@request_client.get_headers,
|
225
|
+
**(request_options&.additional_headers || {})
|
226
|
+
}.compact
|
227
|
+
req.body = { **(request || {}), **(request_options&.additional_body_parameters || {}) }.compact
|
228
|
+
req.url "#{@request_client.get_url(environment: CandidApi,
|
229
|
+
request_options: request_options)}/api/eligibility/v2"
|
230
|
+
end
|
231
|
+
parsed_json = JSON.parse(response.body)
|
232
|
+
parsed_json
|
233
|
+
end
|
234
|
+
end
|
235
|
+
|
236
|
+
# <Tip>Candid is deprecating support for this endpoint. It is instead recommended
|
237
|
+
# to use [Candid's Stedi passthrough
|
238
|
+
# s.joincandidhealth.com/api-reference/pre-encounter/eligibility-checks/v-1/post).
|
239
|
+
# For assistance with the transition, please reference the [Transitioning to
|
240
|
+
# Candid's New Eligibility
|
241
|
+
# Endpoint](https://support.joincandidhealth.com/hc/en-us/articles/34918552872980)
|
242
|
+
# document in the Candid Support Center.</Tip>
|
243
|
+
# **Availity has transitioned their GET endpoint to a POST endpoint. Candid has
|
244
|
+
# updated their pass-through integration to enable backwards compatibility for the
|
245
|
+
# GET endpoint so that customers do not have to immediately update their
|
246
|
+
# integrations.**
|
247
|
+
# **Candid recommends integrations with the [POST
|
248
|
+
# health.com/api-reference/eligibility/v-2/submit-eligibility-check-availity-post)
|
249
|
+
# to ensure the best possible integration experience. Given the transition,
|
250
|
+
# Availity’s documentation will be out of sync with this endpoint.**
|
251
|
+
# If you'd like access to this endpoint, please reach out to
|
252
|
+
# support@joincandidhealth.com with the subject line "Action: Activate Availity
|
253
|
+
# Eligibility API Endpoint
|
254
|
+
# This API is a wrapper around Availity's coverages API. Below are some helpful
|
255
|
+
# documentation links:
|
256
|
+
# - [Availity - Coverages 1.0.0
|
257
|
+
# PI](https://developer.availity.com/partner/documentation#c_coverages_references)
|
258
|
+
# - [Candid Availity Eligibility Integration
|
259
|
+
# th.com/hc/en-us/articles/24218441631892--Availity-Eligibility-Integration-Guide)
|
260
|
+
# A schema of the response object can be found here: [Availity
|
261
|
+
# tner/product/191210/api/190898#/Coverages_100/operation/%2Fcoverages%2F{id}/get)
|
262
|
+
# * Note Availity requires a free developer account to access this documentation.
|
263
|
+
# Check connection status of Availity API and partners here:
|
264
|
+
# - [Availity Trading Partner Connection Status](https://www.availity.com/status/)
|
265
|
+
#
|
266
|
+
# @param request_options [CandidApiClient::RequestOptions]
|
267
|
+
# @return [Object]
|
268
|
+
# @example
|
269
|
+
# api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
|
270
|
+
# api.eligibility.v_2.submit_eligibility_check_availity
|
271
|
+
def submit_eligibility_check_availity(request_options: nil)
|
272
|
+
Async do
|
273
|
+
response = @request_client.conn.get do |req|
|
274
|
+
req.options.timeout = request_options.timeout_in_seconds unless request_options&.timeout_in_seconds.nil?
|
275
|
+
req.headers["Authorization"] = request_options.token unless request_options&.token.nil?
|
276
|
+
req.headers = {
|
277
|
+
**(req.headers || {}),
|
278
|
+
**@request_client.get_headers,
|
279
|
+
**(request_options&.additional_headers || {})
|
280
|
+
}.compact
|
281
|
+
req.url "#{@request_client.get_url(environment: CandidApi,
|
282
|
+
request_options: request_options)}/api/eligibility/v2/availity"
|
283
|
+
end
|
284
|
+
parsed_json = JSON.parse(response.body)
|
285
|
+
parsed_json
|
286
|
+
end
|
287
|
+
end
|
288
|
+
|
289
|
+
# <Tip>Candid is deprecating support for this endpoint. It is instead recommended
|
290
|
+
# to use [Candid's Stedi passthrough
|
291
|
+
# s.joincandidhealth.com/api-reference/pre-encounter/eligibility-checks/v-1/post).
|
292
|
+
# For assistance with the transition, please reference the [Transitioning to
|
293
|
+
# Candid's New Eligibility
|
294
|
+
# Endpoint](https://support.joincandidhealth.com/hc/en-us/articles/34918552872980)
|
295
|
+
# document in the Candid Support Center.</Tip>
|
296
|
+
# If you'd like access to this endpoint, please reach out to
|
297
|
+
# support@joincandidhealth.com with the subject line "Action: Activate Availity
|
298
|
+
# Eligibility API Endpoint
|
299
|
+
# This API is a wrapper around Availity's coverages API. Below are some helpful
|
300
|
+
# documentation links:
|
301
|
+
# - [Availity - Coverages 1.0.0
|
302
|
+
# PI](https://developer.availity.com/partner/documentation#c_coverages_references)
|
303
|
+
# - [Candid Availity Eligibility Integration
|
304
|
+
# th.com/hc/en-us/articles/24218441631892--Availity-Eligibility-Integration-Guide)
|
305
|
+
# A schema of the response object can be found here: [Availity
|
306
|
+
# tner/product/191210/api/190898#/Coverages_100/operation/%2Fcoverages%2F{id}/get)
|
307
|
+
# * Note Availity requires a free developer account to access this documentation.
|
308
|
+
# Check connection status of Availity API and partners here:
|
309
|
+
# - [Availity Trading Partner Connection Status](https://www.availity.com/status/)
|
310
|
+
#
|
311
|
+
# @param request [Object]
|
312
|
+
# @param request_options [CandidApiClient::RequestOptions]
|
313
|
+
# @return [Object]
|
314
|
+
# @example
|
315
|
+
# api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
|
316
|
+
# api.eligibility.v_2.submit_eligibility_check_availity_post(request: {"key":"value"})
|
317
|
+
def submit_eligibility_check_availity_post(request: nil, request_options: nil)
|
318
|
+
Async do
|
319
|
+
response = @request_client.conn.post do |req|
|
320
|
+
req.options.timeout = request_options.timeout_in_seconds unless request_options&.timeout_in_seconds.nil?
|
321
|
+
req.headers["Authorization"] = request_options.token unless request_options&.token.nil?
|
322
|
+
req.headers = {
|
323
|
+
**(req.headers || {}),
|
324
|
+
**@request_client.get_headers,
|
325
|
+
**(request_options&.additional_headers || {})
|
326
|
+
}.compact
|
327
|
+
req.body = { **(request || {}), **(request_options&.additional_body_parameters || {}) }.compact
|
328
|
+
req.url "#{@request_client.get_url(environment: CandidApi,
|
329
|
+
request_options: request_options)}/api/eligibility/v2/availity"
|
330
|
+
end
|
331
|
+
parsed_json = JSON.parse(response.body)
|
332
|
+
parsed_json
|
333
|
+
end
|
334
|
+
end
|
335
|
+
end
|
336
|
+
end
|
337
|
+
end
|
338
|
+
end
|
@@ -0,0 +1,30 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require_relative "../../requests"
|
4
|
+
require_relative "v_1/client"
|
5
|
+
|
6
|
+
module CandidApiClient
|
7
|
+
module EncounterAttachments
|
8
|
+
class Client
|
9
|
+
# @return [CandidApiClient::EncounterAttachments::V1::V1Client]
|
10
|
+
attr_reader :v_1
|
11
|
+
|
12
|
+
# @param request_client [CandidApiClient::RequestClient]
|
13
|
+
# @return [CandidApiClient::EncounterAttachments::Client]
|
14
|
+
def initialize(request_client:)
|
15
|
+
@v_1 = CandidApiClient::EncounterAttachments::V1::V1Client.new(request_client: request_client)
|
16
|
+
end
|
17
|
+
end
|
18
|
+
|
19
|
+
class AsyncClient
|
20
|
+
# @return [CandidApiClient::EncounterAttachments::V1::AsyncV1Client]
|
21
|
+
attr_reader :v_1
|
22
|
+
|
23
|
+
# @param request_client [CandidApiClient::AsyncRequestClient]
|
24
|
+
# @return [CandidApiClient::EncounterAttachments::AsyncClient]
|
25
|
+
def initialize(request_client:)
|
26
|
+
@v_1 = CandidApiClient::EncounterAttachments::V1::AsyncV1Client.new(request_client: request_client)
|
27
|
+
end
|
28
|
+
end
|
29
|
+
end
|
30
|
+
end
|