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,1601 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require_relative "../../../requests"
|
4
|
+
require_relative "types/charge_capture_data"
|
5
|
+
require_relative "types/charge_capture_status"
|
6
|
+
require_relative "types/charge_capture"
|
7
|
+
require_relative "types/charge_capture_sort_field"
|
8
|
+
require_relative "../../commons/types/sort_direction"
|
9
|
+
require "date"
|
10
|
+
require_relative "../../encounters/v_4/types/billable_status_type"
|
11
|
+
require_relative "../../encounters/v_4/types/responsible_party_type"
|
12
|
+
require_relative "types/charge_capture_page"
|
13
|
+
require_relative "types/charge_capture_post_billed_change"
|
14
|
+
require "json"
|
15
|
+
require "async"
|
16
|
+
|
17
|
+
module CandidApiClient
|
18
|
+
module ChargeCapture
|
19
|
+
module V1
|
20
|
+
class V1Client
|
21
|
+
# @return [CandidApiClient::RequestClient]
|
22
|
+
attr_reader :request_client
|
23
|
+
|
24
|
+
# @param request_client [CandidApiClient::RequestClient]
|
25
|
+
# @return [CandidApiClient::ChargeCapture::V1::V1Client]
|
26
|
+
def initialize(request_client:)
|
27
|
+
@request_client = request_client
|
28
|
+
end
|
29
|
+
|
30
|
+
# @param data [Hash] Charge Capture data contains all the fields needed to create an encounter, but
|
31
|
+
# listed as optional. Candid will use this data when attempting to bundle multiple
|
32
|
+
# Charge Captures into a single encounter.Request of type CandidApiClient::ChargeCapture::V1::Types::ChargeCaptureData, as a Hash
|
33
|
+
# * :diagnoses (Array<CandidApiClient::Diagnoses::Types::DiagnosisCreateOptional>)
|
34
|
+
# * :clinical_notes (Array<CandidApiClient::Encounters::V4::Types::ClinicalNoteCategoryCreateOptional>)
|
35
|
+
# * :claim_supplemental_information (Array<CandidApiClient::Encounters::V4::Types::ClaimSupplementalInformationOptional>)
|
36
|
+
# * :epsdt_referral (Hash)
|
37
|
+
# * :condition_indicator_1 (CandidApiClient::Commons::Types::EpsdtReferralConditionIndicatorCode)
|
38
|
+
# * :condition_indicator_2 (CandidApiClient::Commons::Types::EpsdtReferralConditionIndicatorCode)
|
39
|
+
# * :condition_indicator_3 (CandidApiClient::Commons::Types::EpsdtReferralConditionIndicatorCode)
|
40
|
+
# * :existing_medications (Array<CandidApiClient::Encounters::V4::Types::MedicationOptional>)
|
41
|
+
# * :guarantor (Hash)
|
42
|
+
# * :first_name (String)
|
43
|
+
# * :last_name (String)
|
44
|
+
# * :external_id (String)
|
45
|
+
# * :date_of_birth (Date)
|
46
|
+
# * :address (Hash)
|
47
|
+
# * :zip_plus_four_code (String)
|
48
|
+
# * :address_1 (String)
|
49
|
+
# * :address_2 (String)
|
50
|
+
# * :city (String)
|
51
|
+
# * :state (CandidApiClient::Commons::Types::State)
|
52
|
+
# * :zip_code (String)
|
53
|
+
# * :phone_numbers (Array<CandidApiClient::Commons::Types::PhoneNumberOptional>)
|
54
|
+
# * :phone_consent (Boolean)
|
55
|
+
# * :email (String)
|
56
|
+
# * :email_consent (Boolean)
|
57
|
+
# * :subscriber_primary (Hash)
|
58
|
+
# * :insurance_card (Hash)
|
59
|
+
# * :member_id (String)
|
60
|
+
# * :payer_name (String)
|
61
|
+
# * :payer_id (String)
|
62
|
+
# * :rx_bin (String)
|
63
|
+
# * :rx_pcn (String)
|
64
|
+
# * :image_url_front (String)
|
65
|
+
# * :image_url_back (String)
|
66
|
+
# * :emr_payer_crosswalk (CandidApiClient::Commons::Types::EmrPayerCrosswalk)
|
67
|
+
# * :group_number (String)
|
68
|
+
# * :plan_name (String)
|
69
|
+
# * :plan_type (CandidApiClient::Commons::Types::SourceOfPaymentCode)
|
70
|
+
# * :insurance_type (CandidApiClient::Commons::Types::InsuranceTypeCode)
|
71
|
+
# * :payer_plan_group_id (String)
|
72
|
+
# * :patient_relationship_to_subscriber_code (CandidApiClient::Commons::Types::PatientRelationshipToInsuredCodeAll)
|
73
|
+
# * :date_of_birth (Date)
|
74
|
+
# * :address (Hash)
|
75
|
+
# * :zip_plus_four_code (String)
|
76
|
+
# * :address_1 (String)
|
77
|
+
# * :address_2 (String)
|
78
|
+
# * :city (String)
|
79
|
+
# * :state (CandidApiClient::Commons::Types::State)
|
80
|
+
# * :zip_code (String)
|
81
|
+
# * :first_name (String)
|
82
|
+
# * :last_name (String)
|
83
|
+
# * :gender (CandidApiClient::Individual::Types::Gender)
|
84
|
+
# * :subscriber_secondary (Hash)
|
85
|
+
# * :insurance_card (Hash)
|
86
|
+
# * :member_id (String)
|
87
|
+
# * :payer_name (String)
|
88
|
+
# * :payer_id (String)
|
89
|
+
# * :rx_bin (String)
|
90
|
+
# * :rx_pcn (String)
|
91
|
+
# * :image_url_front (String)
|
92
|
+
# * :image_url_back (String)
|
93
|
+
# * :emr_payer_crosswalk (CandidApiClient::Commons::Types::EmrPayerCrosswalk)
|
94
|
+
# * :group_number (String)
|
95
|
+
# * :plan_name (String)
|
96
|
+
# * :plan_type (CandidApiClient::Commons::Types::SourceOfPaymentCode)
|
97
|
+
# * :insurance_type (CandidApiClient::Commons::Types::InsuranceTypeCode)
|
98
|
+
# * :payer_plan_group_id (String)
|
99
|
+
# * :patient_relationship_to_subscriber_code (CandidApiClient::Commons::Types::PatientRelationshipToInsuredCodeAll)
|
100
|
+
# * :date_of_birth (Date)
|
101
|
+
# * :address (Hash)
|
102
|
+
# * :zip_plus_four_code (String)
|
103
|
+
# * :address_1 (String)
|
104
|
+
# * :address_2 (String)
|
105
|
+
# * :city (String)
|
106
|
+
# * :state (CandidApiClient::Commons::Types::State)
|
107
|
+
# * :zip_code (String)
|
108
|
+
# * :first_name (String)
|
109
|
+
# * :last_name (String)
|
110
|
+
# * :gender (CandidApiClient::Individual::Types::Gender)
|
111
|
+
# * :subscriber_tertiary (Hash)
|
112
|
+
# * :insurance_card (Hash)
|
113
|
+
# * :member_id (String)
|
114
|
+
# * :payer_name (String)
|
115
|
+
# * :payer_id (String)
|
116
|
+
# * :rx_bin (String)
|
117
|
+
# * :rx_pcn (String)
|
118
|
+
# * :image_url_front (String)
|
119
|
+
# * :image_url_back (String)
|
120
|
+
# * :emr_payer_crosswalk (CandidApiClient::Commons::Types::EmrPayerCrosswalk)
|
121
|
+
# * :group_number (String)
|
122
|
+
# * :plan_name (String)
|
123
|
+
# * :plan_type (CandidApiClient::Commons::Types::SourceOfPaymentCode)
|
124
|
+
# * :insurance_type (CandidApiClient::Commons::Types::InsuranceTypeCode)
|
125
|
+
# * :payer_plan_group_id (String)
|
126
|
+
# * :patient_relationship_to_subscriber_code (CandidApiClient::Commons::Types::PatientRelationshipToInsuredCodeAll)
|
127
|
+
# * :date_of_birth (Date)
|
128
|
+
# * :address (Hash)
|
129
|
+
# * :zip_plus_four_code (String)
|
130
|
+
# * :address_1 (String)
|
131
|
+
# * :address_2 (String)
|
132
|
+
# * :city (String)
|
133
|
+
# * :state (CandidApiClient::Commons::Types::State)
|
134
|
+
# * :zip_code (String)
|
135
|
+
# * :first_name (String)
|
136
|
+
# * :last_name (String)
|
137
|
+
# * :gender (CandidApiClient::Individual::Types::Gender)
|
138
|
+
# * :interventions (Array<CandidApiClient::Encounters::V4::Types::InterventionOptional>)
|
139
|
+
# * :schema_instances (Array<CandidApiClient::CustomSchemas::V1::Types::SchemaInstanceOptional>)
|
140
|
+
# * :external_claim_submission (Hash)
|
141
|
+
# * :claim_created_at (DateTime)
|
142
|
+
# * :patient_control_number (String)
|
143
|
+
# * :submission_records (Array<CandidApiClient::ClaimSubmission::V1::Types::ClaimSubmissionRecordCreateOptional>)
|
144
|
+
# * :service_lines (Array<CandidApiClient::ServiceLines::V2::Types::ServiceLineCreateOptional>)
|
145
|
+
# * :patient_histories (Array<CandidApiClient::Encounters::V4::Types::PatientHistoryCategoryOptional>)
|
146
|
+
# * :billing_notes (Array<CandidApiClient::BillingNotes::V2::Types::BillingNoteBaseOptional>)
|
147
|
+
# * :patient (Hash)
|
148
|
+
# * :first_name (String)
|
149
|
+
# * :last_name (String)
|
150
|
+
# * :gender (CandidApiClient::Individual::Types::Gender)
|
151
|
+
# * :external_id (String)
|
152
|
+
# * :date_of_birth (Date)
|
153
|
+
# * :address (Hash)
|
154
|
+
# * :zip_plus_four_code (String)
|
155
|
+
# * :address_1 (String)
|
156
|
+
# * :address_2 (String)
|
157
|
+
# * :city (String)
|
158
|
+
# * :state (CandidApiClient::Commons::Types::State)
|
159
|
+
# * :zip_code (String)
|
160
|
+
# * :phone_numbers (Array<CandidApiClient::Commons::Types::PhoneNumberOptional>)
|
161
|
+
# * :phone_consent (Boolean)
|
162
|
+
# * :email (String)
|
163
|
+
# * :email_consent (Boolean)
|
164
|
+
# * :non_insurance_payers (Array<String>)
|
165
|
+
# * :non_insurance_payers_info (Array<CandidApiClient::Individual::Types::PatientNonInsurancePayerInfoCreateOptional>)
|
166
|
+
# * :service_facility (Hash)
|
167
|
+
# * :organization_name (String)
|
168
|
+
# * :npi (String)
|
169
|
+
# * :address (Hash)
|
170
|
+
# * :zip_plus_four_code (String)
|
171
|
+
# * :address_1 (String)
|
172
|
+
# * :address_2 (String)
|
173
|
+
# * :city (String)
|
174
|
+
# * :state (CandidApiClient::Commons::Types::State)
|
175
|
+
# * :zip_code (String)
|
176
|
+
# * :secondary_identification (String)
|
177
|
+
# * :rendering_provider (Hash)
|
178
|
+
# * :npi (String)
|
179
|
+
# * :taxonomy_code (String)
|
180
|
+
# * :address (Hash)
|
181
|
+
# * :zip_plus_four_code (String)
|
182
|
+
# * :address_1 (String)
|
183
|
+
# * :address_2 (String)
|
184
|
+
# * :city (String)
|
185
|
+
# * :state (CandidApiClient::Commons::Types::State)
|
186
|
+
# * :zip_code (String)
|
187
|
+
# * :first_name (String)
|
188
|
+
# * :last_name (String)
|
189
|
+
# * :organization_name (String)
|
190
|
+
# * :initial_referring_provider (Hash)
|
191
|
+
# * :npi (String)
|
192
|
+
# * :taxonomy_code (String)
|
193
|
+
# * :address (Hash)
|
194
|
+
# * :zip_plus_four_code (String)
|
195
|
+
# * :address_1 (String)
|
196
|
+
# * :address_2 (String)
|
197
|
+
# * :city (String)
|
198
|
+
# * :state (CandidApiClient::Commons::Types::State)
|
199
|
+
# * :zip_code (String)
|
200
|
+
# * :qualifier (CandidApiClient::Commons::Types::QualifierCode)
|
201
|
+
# * :first_name (String)
|
202
|
+
# * :last_name (String)
|
203
|
+
# * :organization_name (String)
|
204
|
+
# * :referring_provider (Hash)
|
205
|
+
# * :npi (String)
|
206
|
+
# * :taxonomy_code (String)
|
207
|
+
# * :address (Hash)
|
208
|
+
# * :zip_plus_four_code (String)
|
209
|
+
# * :address_1 (String)
|
210
|
+
# * :address_2 (String)
|
211
|
+
# * :city (String)
|
212
|
+
# * :state (CandidApiClient::Commons::Types::State)
|
213
|
+
# * :zip_code (String)
|
214
|
+
# * :first_name (String)
|
215
|
+
# * :last_name (String)
|
216
|
+
# * :organization_name (String)
|
217
|
+
# * :supervising_provider (Hash)
|
218
|
+
# * :npi (String)
|
219
|
+
# * :taxonomy_code (String)
|
220
|
+
# * :address (Hash)
|
221
|
+
# * :zip_plus_four_code (String)
|
222
|
+
# * :address_1 (String)
|
223
|
+
# * :address_2 (String)
|
224
|
+
# * :city (String)
|
225
|
+
# * :state (CandidApiClient::Commons::Types::State)
|
226
|
+
# * :zip_code (String)
|
227
|
+
# * :first_name (String)
|
228
|
+
# * :last_name (String)
|
229
|
+
# * :organization_name (String)
|
230
|
+
# * :billing_provider (Hash)
|
231
|
+
# * :address (Hash)
|
232
|
+
# * :zip_plus_four_code (String)
|
233
|
+
# * :address_1 (String)
|
234
|
+
# * :address_2 (String)
|
235
|
+
# * :city (String)
|
236
|
+
# * :state (CandidApiClient::Commons::Types::State)
|
237
|
+
# * :zip_code (String)
|
238
|
+
# * :tax_id (String)
|
239
|
+
# * :npi (String)
|
240
|
+
# * :taxonomy_code (String)
|
241
|
+
# * :provider_commercial_license_type (CandidApiClient::Commons::Types::BillingProviderCommercialLicenseType)
|
242
|
+
# * :first_name (String)
|
243
|
+
# * :last_name (String)
|
244
|
+
# * :organization_name (String)
|
245
|
+
# * :pay_to_address (Hash)
|
246
|
+
# * :zip_plus_four_code (String)
|
247
|
+
# * :address_1 (String)
|
248
|
+
# * :address_2 (String)
|
249
|
+
# * :city (String)
|
250
|
+
# * :state (CandidApiClient::Commons::Types::State)
|
251
|
+
# * :zip_code (String)
|
252
|
+
# * :benefits_assigned_to_provider (Boolean)
|
253
|
+
# * :prior_authorization_number (String)
|
254
|
+
# * :external_id (String)
|
255
|
+
# * :date_of_service (Date)
|
256
|
+
# * :tag_ids (Array<String>)
|
257
|
+
# * :billable_status (CandidApiClient::Encounters::V4::Types::BillableStatusType)
|
258
|
+
# * :responsible_party (CandidApiClient::Encounters::V4::Types::ResponsiblePartyType)
|
259
|
+
# * :provider_accepts_assignment (Boolean)
|
260
|
+
# * :synchronicity (CandidApiClient::Encounters::V4::Types::SynchronicityType)
|
261
|
+
# * :place_of_service_code (CandidApiClient::Commons::Types::FacilityTypeCode)
|
262
|
+
# * :appointment_type (String)
|
263
|
+
# * :end_date_of_service (Date)
|
264
|
+
# * :additional_information (String)
|
265
|
+
# * :service_authorization_exception_code (CandidApiClient::Encounters::V4::Types::ServiceAuthorizationExceptionCode)
|
266
|
+
# * :admission_date (Date)
|
267
|
+
# * :discharge_date (Date)
|
268
|
+
# * :onset_of_current_illness_or_symptom_date (Date)
|
269
|
+
# * :last_menstrual_period_date (Date)
|
270
|
+
# * :delay_reason_code (CandidApiClient::Commons::Types::DelayReasonCode)
|
271
|
+
# * :patient_authorized_release (Boolean)
|
272
|
+
# * :vitals (Hash)
|
273
|
+
# * :height_in (Integer)
|
274
|
+
# * :weight_lbs (Integer)
|
275
|
+
# * :blood_pressure_systolic_mmhg (Integer)
|
276
|
+
# * :blood_pressure_diastolic_mmhg (Integer)
|
277
|
+
# * :body_temperature_f (Float)
|
278
|
+
# * :hemoglobin_gdl (Float)
|
279
|
+
# * :hematocrit_pct (Float)
|
280
|
+
# * :referral_number (String)
|
281
|
+
# * :secondary_payer_carrier_code (String)
|
282
|
+
# @param charge_external_id [String] A client-specified unique ID to associate with this encounter; for example, your
|
283
|
+
# internal encounter ID or a Dr. Chrono encounter ID. This field should not
|
284
|
+
# contain PHI.
|
285
|
+
# @param originating_system [String] An optional string field denoting the originating system of the charge.
|
286
|
+
# @param claim_creation_category [String] An optional string field denoting the user defined category of the claim
|
287
|
+
# creation.
|
288
|
+
# @param ehr_source_url [String] External URL reference that links to Charge Capture details within the external
|
289
|
+
# system (e.g. the EHR visit page). Send full URL format for the external link
|
290
|
+
# (e.g. https://emr_charge_capture_url.com/123).
|
291
|
+
# @param patient_external_id [String] The patient ID from the external EMR platform for the patient
|
292
|
+
# @param status [CandidApiClient::ChargeCapture::V1::Types::ChargeCaptureStatus] the status of the charge capture
|
293
|
+
# @param request_options [CandidApiClient::RequestOptions]
|
294
|
+
# @return [CandidApiClient::ChargeCapture::V1::Types::ChargeCapture]
|
295
|
+
# @example
|
296
|
+
# api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
|
297
|
+
# api.charge_capture.v_1.create(
|
298
|
+
# data: { },
|
299
|
+
# charge_external_id: "charge_external_id",
|
300
|
+
# patient_external_id: "patient_external_id",
|
301
|
+
# status: PLANNED
|
302
|
+
# )
|
303
|
+
def create(data:, charge_external_id:, patient_external_id:, status:, originating_system: nil, claim_creation_category: nil,
|
304
|
+
ehr_source_url: nil, request_options: nil)
|
305
|
+
response = @request_client.conn.post do |req|
|
306
|
+
req.options.timeout = request_options.timeout_in_seconds unless request_options&.timeout_in_seconds.nil?
|
307
|
+
req.headers["Authorization"] = request_options.token unless request_options&.token.nil?
|
308
|
+
req.headers = {
|
309
|
+
**(req.headers || {}),
|
310
|
+
**@request_client.get_headers,
|
311
|
+
**(request_options&.additional_headers || {})
|
312
|
+
}.compact
|
313
|
+
req.body = {
|
314
|
+
**(request_options&.additional_body_parameters || {}),
|
315
|
+
data: data,
|
316
|
+
charge_external_id: charge_external_id,
|
317
|
+
originating_system: originating_system,
|
318
|
+
claim_creation_category: claim_creation_category,
|
319
|
+
ehr_source_url: ehr_source_url,
|
320
|
+
patient_external_id: patient_external_id,
|
321
|
+
status: status
|
322
|
+
}.compact
|
323
|
+
req.url "#{@request_client.get_url(environment: CandidApi,
|
324
|
+
request_options: request_options)}/api/charge_captures/v1"
|
325
|
+
end
|
326
|
+
CandidApiClient::ChargeCapture::V1::Types::ChargeCapture.from_json(json_object: response.body)
|
327
|
+
end
|
328
|
+
|
329
|
+
# @param charge_capture_id [String]
|
330
|
+
# @param data [Hash] Request of type CandidApiClient::ChargeCapture::V1::Types::ChargeCaptureData, as a Hash
|
331
|
+
# * :diagnoses (Array<CandidApiClient::Diagnoses::Types::DiagnosisCreateOptional>)
|
332
|
+
# * :clinical_notes (Array<CandidApiClient::Encounters::V4::Types::ClinicalNoteCategoryCreateOptional>)
|
333
|
+
# * :claim_supplemental_information (Array<CandidApiClient::Encounters::V4::Types::ClaimSupplementalInformationOptional>)
|
334
|
+
# * :epsdt_referral (Hash)
|
335
|
+
# * :condition_indicator_1 (CandidApiClient::Commons::Types::EpsdtReferralConditionIndicatorCode)
|
336
|
+
# * :condition_indicator_2 (CandidApiClient::Commons::Types::EpsdtReferralConditionIndicatorCode)
|
337
|
+
# * :condition_indicator_3 (CandidApiClient::Commons::Types::EpsdtReferralConditionIndicatorCode)
|
338
|
+
# * :existing_medications (Array<CandidApiClient::Encounters::V4::Types::MedicationOptional>)
|
339
|
+
# * :guarantor (Hash)
|
340
|
+
# * :first_name (String)
|
341
|
+
# * :last_name (String)
|
342
|
+
# * :external_id (String)
|
343
|
+
# * :date_of_birth (Date)
|
344
|
+
# * :address (Hash)
|
345
|
+
# * :zip_plus_four_code (String)
|
346
|
+
# * :address_1 (String)
|
347
|
+
# * :address_2 (String)
|
348
|
+
# * :city (String)
|
349
|
+
# * :state (CandidApiClient::Commons::Types::State)
|
350
|
+
# * :zip_code (String)
|
351
|
+
# * :phone_numbers (Array<CandidApiClient::Commons::Types::PhoneNumberOptional>)
|
352
|
+
# * :phone_consent (Boolean)
|
353
|
+
# * :email (String)
|
354
|
+
# * :email_consent (Boolean)
|
355
|
+
# * :subscriber_primary (Hash)
|
356
|
+
# * :insurance_card (Hash)
|
357
|
+
# * :member_id (String)
|
358
|
+
# * :payer_name (String)
|
359
|
+
# * :payer_id (String)
|
360
|
+
# * :rx_bin (String)
|
361
|
+
# * :rx_pcn (String)
|
362
|
+
# * :image_url_front (String)
|
363
|
+
# * :image_url_back (String)
|
364
|
+
# * :emr_payer_crosswalk (CandidApiClient::Commons::Types::EmrPayerCrosswalk)
|
365
|
+
# * :group_number (String)
|
366
|
+
# * :plan_name (String)
|
367
|
+
# * :plan_type (CandidApiClient::Commons::Types::SourceOfPaymentCode)
|
368
|
+
# * :insurance_type (CandidApiClient::Commons::Types::InsuranceTypeCode)
|
369
|
+
# * :payer_plan_group_id (String)
|
370
|
+
# * :patient_relationship_to_subscriber_code (CandidApiClient::Commons::Types::PatientRelationshipToInsuredCodeAll)
|
371
|
+
# * :date_of_birth (Date)
|
372
|
+
# * :address (Hash)
|
373
|
+
# * :zip_plus_four_code (String)
|
374
|
+
# * :address_1 (String)
|
375
|
+
# * :address_2 (String)
|
376
|
+
# * :city (String)
|
377
|
+
# * :state (CandidApiClient::Commons::Types::State)
|
378
|
+
# * :zip_code (String)
|
379
|
+
# * :first_name (String)
|
380
|
+
# * :last_name (String)
|
381
|
+
# * :gender (CandidApiClient::Individual::Types::Gender)
|
382
|
+
# * :subscriber_secondary (Hash)
|
383
|
+
# * :insurance_card (Hash)
|
384
|
+
# * :member_id (String)
|
385
|
+
# * :payer_name (String)
|
386
|
+
# * :payer_id (String)
|
387
|
+
# * :rx_bin (String)
|
388
|
+
# * :rx_pcn (String)
|
389
|
+
# * :image_url_front (String)
|
390
|
+
# * :image_url_back (String)
|
391
|
+
# * :emr_payer_crosswalk (CandidApiClient::Commons::Types::EmrPayerCrosswalk)
|
392
|
+
# * :group_number (String)
|
393
|
+
# * :plan_name (String)
|
394
|
+
# * :plan_type (CandidApiClient::Commons::Types::SourceOfPaymentCode)
|
395
|
+
# * :insurance_type (CandidApiClient::Commons::Types::InsuranceTypeCode)
|
396
|
+
# * :payer_plan_group_id (String)
|
397
|
+
# * :patient_relationship_to_subscriber_code (CandidApiClient::Commons::Types::PatientRelationshipToInsuredCodeAll)
|
398
|
+
# * :date_of_birth (Date)
|
399
|
+
# * :address (Hash)
|
400
|
+
# * :zip_plus_four_code (String)
|
401
|
+
# * :address_1 (String)
|
402
|
+
# * :address_2 (String)
|
403
|
+
# * :city (String)
|
404
|
+
# * :state (CandidApiClient::Commons::Types::State)
|
405
|
+
# * :zip_code (String)
|
406
|
+
# * :first_name (String)
|
407
|
+
# * :last_name (String)
|
408
|
+
# * :gender (CandidApiClient::Individual::Types::Gender)
|
409
|
+
# * :subscriber_tertiary (Hash)
|
410
|
+
# * :insurance_card (Hash)
|
411
|
+
# * :member_id (String)
|
412
|
+
# * :payer_name (String)
|
413
|
+
# * :payer_id (String)
|
414
|
+
# * :rx_bin (String)
|
415
|
+
# * :rx_pcn (String)
|
416
|
+
# * :image_url_front (String)
|
417
|
+
# * :image_url_back (String)
|
418
|
+
# * :emr_payer_crosswalk (CandidApiClient::Commons::Types::EmrPayerCrosswalk)
|
419
|
+
# * :group_number (String)
|
420
|
+
# * :plan_name (String)
|
421
|
+
# * :plan_type (CandidApiClient::Commons::Types::SourceOfPaymentCode)
|
422
|
+
# * :insurance_type (CandidApiClient::Commons::Types::InsuranceTypeCode)
|
423
|
+
# * :payer_plan_group_id (String)
|
424
|
+
# * :patient_relationship_to_subscriber_code (CandidApiClient::Commons::Types::PatientRelationshipToInsuredCodeAll)
|
425
|
+
# * :date_of_birth (Date)
|
426
|
+
# * :address (Hash)
|
427
|
+
# * :zip_plus_four_code (String)
|
428
|
+
# * :address_1 (String)
|
429
|
+
# * :address_2 (String)
|
430
|
+
# * :city (String)
|
431
|
+
# * :state (CandidApiClient::Commons::Types::State)
|
432
|
+
# * :zip_code (String)
|
433
|
+
# * :first_name (String)
|
434
|
+
# * :last_name (String)
|
435
|
+
# * :gender (CandidApiClient::Individual::Types::Gender)
|
436
|
+
# * :interventions (Array<CandidApiClient::Encounters::V4::Types::InterventionOptional>)
|
437
|
+
# * :schema_instances (Array<CandidApiClient::CustomSchemas::V1::Types::SchemaInstanceOptional>)
|
438
|
+
# * :external_claim_submission (Hash)
|
439
|
+
# * :claim_created_at (DateTime)
|
440
|
+
# * :patient_control_number (String)
|
441
|
+
# * :submission_records (Array<CandidApiClient::ClaimSubmission::V1::Types::ClaimSubmissionRecordCreateOptional>)
|
442
|
+
# * :service_lines (Array<CandidApiClient::ServiceLines::V2::Types::ServiceLineCreateOptional>)
|
443
|
+
# * :patient_histories (Array<CandidApiClient::Encounters::V4::Types::PatientHistoryCategoryOptional>)
|
444
|
+
# * :billing_notes (Array<CandidApiClient::BillingNotes::V2::Types::BillingNoteBaseOptional>)
|
445
|
+
# * :patient (Hash)
|
446
|
+
# * :first_name (String)
|
447
|
+
# * :last_name (String)
|
448
|
+
# * :gender (CandidApiClient::Individual::Types::Gender)
|
449
|
+
# * :external_id (String)
|
450
|
+
# * :date_of_birth (Date)
|
451
|
+
# * :address (Hash)
|
452
|
+
# * :zip_plus_four_code (String)
|
453
|
+
# * :address_1 (String)
|
454
|
+
# * :address_2 (String)
|
455
|
+
# * :city (String)
|
456
|
+
# * :state (CandidApiClient::Commons::Types::State)
|
457
|
+
# * :zip_code (String)
|
458
|
+
# * :phone_numbers (Array<CandidApiClient::Commons::Types::PhoneNumberOptional>)
|
459
|
+
# * :phone_consent (Boolean)
|
460
|
+
# * :email (String)
|
461
|
+
# * :email_consent (Boolean)
|
462
|
+
# * :non_insurance_payers (Array<String>)
|
463
|
+
# * :non_insurance_payers_info (Array<CandidApiClient::Individual::Types::PatientNonInsurancePayerInfoCreateOptional>)
|
464
|
+
# * :service_facility (Hash)
|
465
|
+
# * :organization_name (String)
|
466
|
+
# * :npi (String)
|
467
|
+
# * :address (Hash)
|
468
|
+
# * :zip_plus_four_code (String)
|
469
|
+
# * :address_1 (String)
|
470
|
+
# * :address_2 (String)
|
471
|
+
# * :city (String)
|
472
|
+
# * :state (CandidApiClient::Commons::Types::State)
|
473
|
+
# * :zip_code (String)
|
474
|
+
# * :secondary_identification (String)
|
475
|
+
# * :rendering_provider (Hash)
|
476
|
+
# * :npi (String)
|
477
|
+
# * :taxonomy_code (String)
|
478
|
+
# * :address (Hash)
|
479
|
+
# * :zip_plus_four_code (String)
|
480
|
+
# * :address_1 (String)
|
481
|
+
# * :address_2 (String)
|
482
|
+
# * :city (String)
|
483
|
+
# * :state (CandidApiClient::Commons::Types::State)
|
484
|
+
# * :zip_code (String)
|
485
|
+
# * :first_name (String)
|
486
|
+
# * :last_name (String)
|
487
|
+
# * :organization_name (String)
|
488
|
+
# * :initial_referring_provider (Hash)
|
489
|
+
# * :npi (String)
|
490
|
+
# * :taxonomy_code (String)
|
491
|
+
# * :address (Hash)
|
492
|
+
# * :zip_plus_four_code (String)
|
493
|
+
# * :address_1 (String)
|
494
|
+
# * :address_2 (String)
|
495
|
+
# * :city (String)
|
496
|
+
# * :state (CandidApiClient::Commons::Types::State)
|
497
|
+
# * :zip_code (String)
|
498
|
+
# * :qualifier (CandidApiClient::Commons::Types::QualifierCode)
|
499
|
+
# * :first_name (String)
|
500
|
+
# * :last_name (String)
|
501
|
+
# * :organization_name (String)
|
502
|
+
# * :referring_provider (Hash)
|
503
|
+
# * :npi (String)
|
504
|
+
# * :taxonomy_code (String)
|
505
|
+
# * :address (Hash)
|
506
|
+
# * :zip_plus_four_code (String)
|
507
|
+
# * :address_1 (String)
|
508
|
+
# * :address_2 (String)
|
509
|
+
# * :city (String)
|
510
|
+
# * :state (CandidApiClient::Commons::Types::State)
|
511
|
+
# * :zip_code (String)
|
512
|
+
# * :first_name (String)
|
513
|
+
# * :last_name (String)
|
514
|
+
# * :organization_name (String)
|
515
|
+
# * :supervising_provider (Hash)
|
516
|
+
# * :npi (String)
|
517
|
+
# * :taxonomy_code (String)
|
518
|
+
# * :address (Hash)
|
519
|
+
# * :zip_plus_four_code (String)
|
520
|
+
# * :address_1 (String)
|
521
|
+
# * :address_2 (String)
|
522
|
+
# * :city (String)
|
523
|
+
# * :state (CandidApiClient::Commons::Types::State)
|
524
|
+
# * :zip_code (String)
|
525
|
+
# * :first_name (String)
|
526
|
+
# * :last_name (String)
|
527
|
+
# * :organization_name (String)
|
528
|
+
# * :billing_provider (Hash)
|
529
|
+
# * :address (Hash)
|
530
|
+
# * :zip_plus_four_code (String)
|
531
|
+
# * :address_1 (String)
|
532
|
+
# * :address_2 (String)
|
533
|
+
# * :city (String)
|
534
|
+
# * :state (CandidApiClient::Commons::Types::State)
|
535
|
+
# * :zip_code (String)
|
536
|
+
# * :tax_id (String)
|
537
|
+
# * :npi (String)
|
538
|
+
# * :taxonomy_code (String)
|
539
|
+
# * :provider_commercial_license_type (CandidApiClient::Commons::Types::BillingProviderCommercialLicenseType)
|
540
|
+
# * :first_name (String)
|
541
|
+
# * :last_name (String)
|
542
|
+
# * :organization_name (String)
|
543
|
+
# * :pay_to_address (Hash)
|
544
|
+
# * :zip_plus_four_code (String)
|
545
|
+
# * :address_1 (String)
|
546
|
+
# * :address_2 (String)
|
547
|
+
# * :city (String)
|
548
|
+
# * :state (CandidApiClient::Commons::Types::State)
|
549
|
+
# * :zip_code (String)
|
550
|
+
# * :benefits_assigned_to_provider (Boolean)
|
551
|
+
# * :prior_authorization_number (String)
|
552
|
+
# * :external_id (String)
|
553
|
+
# * :date_of_service (Date)
|
554
|
+
# * :tag_ids (Array<String>)
|
555
|
+
# * :billable_status (CandidApiClient::Encounters::V4::Types::BillableStatusType)
|
556
|
+
# * :responsible_party (CandidApiClient::Encounters::V4::Types::ResponsiblePartyType)
|
557
|
+
# * :provider_accepts_assignment (Boolean)
|
558
|
+
# * :synchronicity (CandidApiClient::Encounters::V4::Types::SynchronicityType)
|
559
|
+
# * :place_of_service_code (CandidApiClient::Commons::Types::FacilityTypeCode)
|
560
|
+
# * :appointment_type (String)
|
561
|
+
# * :end_date_of_service (Date)
|
562
|
+
# * :additional_information (String)
|
563
|
+
# * :service_authorization_exception_code (CandidApiClient::Encounters::V4::Types::ServiceAuthorizationExceptionCode)
|
564
|
+
# * :admission_date (Date)
|
565
|
+
# * :discharge_date (Date)
|
566
|
+
# * :onset_of_current_illness_or_symptom_date (Date)
|
567
|
+
# * :last_menstrual_period_date (Date)
|
568
|
+
# * :delay_reason_code (CandidApiClient::Commons::Types::DelayReasonCode)
|
569
|
+
# * :patient_authorized_release (Boolean)
|
570
|
+
# * :vitals (Hash)
|
571
|
+
# * :height_in (Integer)
|
572
|
+
# * :weight_lbs (Integer)
|
573
|
+
# * :blood_pressure_systolic_mmhg (Integer)
|
574
|
+
# * :blood_pressure_diastolic_mmhg (Integer)
|
575
|
+
# * :body_temperature_f (Float)
|
576
|
+
# * :hemoglobin_gdl (Float)
|
577
|
+
# * :hematocrit_pct (Float)
|
578
|
+
# * :referral_number (String)
|
579
|
+
# * :secondary_payer_carrier_code (String)
|
580
|
+
# @param charge_external_id [String] A client-specified unique ID to associate with this encounter;
|
581
|
+
# for example, your internal encounter ID or a Dr. Chrono encounter ID.
|
582
|
+
# This field should not contain PHI.
|
583
|
+
# @param ehr_source_url [String] External URL reference that links to Charge Capture details within the external
|
584
|
+
# system (e.g. the EHR visit page).
|
585
|
+
# Send full URL format for the external link (e.g.
|
586
|
+
# https://emr_charge_capture_url.com/123).
|
587
|
+
# @param originating_system [String] An optional string field denoting the originating system of the charge.
|
588
|
+
# @param claim_creation_category [String] An optional string field denoting the user defined category of the claim
|
589
|
+
# creation.
|
590
|
+
# @param patient_external_id [String] The patient ID from the external EMR platform for the patient
|
591
|
+
# @param status [CandidApiClient::ChargeCapture::V1::Types::ChargeCaptureStatus] the status of the charge capture
|
592
|
+
# @param request_options [CandidApiClient::RequestOptions]
|
593
|
+
# @return [CandidApiClient::ChargeCapture::V1::Types::ChargeCapture]
|
594
|
+
# @example
|
595
|
+
# api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
|
596
|
+
# api.charge_capture.v_1.update(charge_capture_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32")
|
597
|
+
def update(charge_capture_id:, data: nil, charge_external_id: nil, ehr_source_url: nil,
|
598
|
+
originating_system: nil, claim_creation_category: nil, patient_external_id: nil, status: nil, request_options: nil)
|
599
|
+
response = @request_client.conn.patch do |req|
|
600
|
+
req.options.timeout = request_options.timeout_in_seconds unless request_options&.timeout_in_seconds.nil?
|
601
|
+
req.headers["Authorization"] = request_options.token unless request_options&.token.nil?
|
602
|
+
req.headers = {
|
603
|
+
**(req.headers || {}),
|
604
|
+
**@request_client.get_headers,
|
605
|
+
**(request_options&.additional_headers || {})
|
606
|
+
}.compact
|
607
|
+
req.body = {
|
608
|
+
**(request_options&.additional_body_parameters || {}),
|
609
|
+
data: data,
|
610
|
+
charge_external_id: charge_external_id,
|
611
|
+
ehr_source_url: ehr_source_url,
|
612
|
+
originating_system: originating_system,
|
613
|
+
claim_creation_category: claim_creation_category,
|
614
|
+
patient_external_id: patient_external_id,
|
615
|
+
status: status
|
616
|
+
}.compact
|
617
|
+
req.url "#{@request_client.get_url(environment: CandidApi,
|
618
|
+
request_options: request_options)}/api/charge_captures/v1/#{charge_capture_id}"
|
619
|
+
end
|
620
|
+
CandidApiClient::ChargeCapture::V1::Types::ChargeCapture.from_json(json_object: response.body)
|
621
|
+
end
|
622
|
+
|
623
|
+
# @param charge_capture_id [String]
|
624
|
+
# @param request_options [CandidApiClient::RequestOptions]
|
625
|
+
# @return [CandidApiClient::ChargeCapture::V1::Types::ChargeCapture]
|
626
|
+
# @example
|
627
|
+
# api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
|
628
|
+
# api.charge_capture.v_1.get(charge_capture_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32")
|
629
|
+
def get(charge_capture_id:, request_options: nil)
|
630
|
+
response = @request_client.conn.get do |req|
|
631
|
+
req.options.timeout = request_options.timeout_in_seconds unless request_options&.timeout_in_seconds.nil?
|
632
|
+
req.headers["Authorization"] = request_options.token unless request_options&.token.nil?
|
633
|
+
req.headers = {
|
634
|
+
**(req.headers || {}),
|
635
|
+
**@request_client.get_headers,
|
636
|
+
**(request_options&.additional_headers || {})
|
637
|
+
}.compact
|
638
|
+
req.url "#{@request_client.get_url(environment: CandidApi,
|
639
|
+
request_options: request_options)}/api/charge_captures/v1/#{charge_capture_id}"
|
640
|
+
end
|
641
|
+
CandidApiClient::ChargeCapture::V1::Types::ChargeCapture.from_json(json_object: response.body)
|
642
|
+
end
|
643
|
+
|
644
|
+
# @param limit [Integer] Maximum number of entities per page, defaults to 100.
|
645
|
+
# @param sort [CandidApiClient::ChargeCapture::V1::Types::ChargeCaptureSortField] Defaults to created_at
|
646
|
+
# @param sort_direction [CandidApiClient::Commons::Types::SortDirection] Sort direction. Defaults to descending order if not provided.
|
647
|
+
# @param page_token [String]
|
648
|
+
# @param patient_external_id [String] The patient ID from the external EMR platform for the patient
|
649
|
+
# @param status [CandidApiClient::ChargeCapture::V1::Types::ChargeCaptureStatus] the status of the charge captures
|
650
|
+
# @param charge_external_id [String] A client-specified unique ID to associate with this encounter;
|
651
|
+
# for example, your internal encounter ID or a Dr. Chrono encounter ID.
|
652
|
+
# This field should not contain PHI.
|
653
|
+
# @param date_of_service_min [Date] Date formatted as YYYY-MM-DD; eg: 2019-08-24.
|
654
|
+
# This date must be the local date in the timezone where the service occurred.
|
655
|
+
# @param date_of_service_max [Date] Date formatted as YYYY-MM-DD; eg: 2019-08-24.
|
656
|
+
# This date must be the local date in the timezone where the service occurred.
|
657
|
+
# @param claim_ids [String] A list of claim IDs to filter by. This will return all charge captures that have
|
658
|
+
# a resulting claim with one of the IDs in this list.
|
659
|
+
# @param claim_creation_ids [String] A list of Claim Creation IDs to filter by.
|
660
|
+
# @param billing_provider_npis [String] A list of billing provider NPIs to filter by. This will return all charge
|
661
|
+
# captures with one of the NPIs in this list.
|
662
|
+
# @param service_facility_name [String] A string to filter by. This will return all charge captures with this service
|
663
|
+
# facility name.
|
664
|
+
# @param primary_payer_ids [String] A list of primary payer IDs to filter by. This will return all charge captures
|
665
|
+
# with one of the primary payer IDs in this list.
|
666
|
+
# @param rendering_provider_npis [String] A list of rendering provider NPIs to filter by. This will return all charge
|
667
|
+
# captures with one of the NPIs in this list.
|
668
|
+
# @param rendering_provider_names [String] A list of rendering provider names to filter by. This will return all charge
|
669
|
+
# captures with one of the names in this list.
|
670
|
+
# @param supervising_provider_npis [String] A list of supervising provider NPIs to filter by. This will return all charge
|
671
|
+
# captures with one of the NPIs in this list.
|
672
|
+
# @param supervising_provider_names [String] A list of supervising provider names to filter by. This will return all charge
|
673
|
+
# captures with one of the names in this list.
|
674
|
+
# @param exclude_charges_linked_to_claims [Boolean] Whether to exclude charge captures which are part of a claim creation.
|
675
|
+
# @param patient_external_id_ranked_sort [String] The patient ID from the external EMR platform for the patient
|
676
|
+
# @param status_ranked_sort [CandidApiClient::ChargeCapture::V1::Types::ChargeCaptureStatus] The charge capture status to show first
|
677
|
+
# @param charge_external_id_ranked_sort [String] A client-specified unique ID to associate with this encounter;
|
678
|
+
# for example, your internal encounter ID or a Dr. Chrono encounter ID.
|
679
|
+
# This field should not contain PHI.
|
680
|
+
# @param date_of_service_min_ranked_sort [Date] Date formatted as YYYY-MM-DD; eg: 2019-08-24.
|
681
|
+
# This date must be the local date in the timezone where the service occurred.
|
682
|
+
# @param date_of_service_max_ranked_sort [Date] Date formatted as YYYY-MM-DD; eg: 2019-08-24.
|
683
|
+
# This date must be the local date in the timezone where the service occurred.
|
684
|
+
# @param search_term [String] Filter by any of the following fields: charge_id, claim_id, patient external_id,
|
685
|
+
# patient date of birth, patient first name, patient last name,
|
686
|
+
# or charge external id.
|
687
|
+
# @param billable_status [CandidApiClient::Encounters::V4::Types::BillableStatusType] Defines if the Encounter is to be billed by Candid to the responsible_party.
|
688
|
+
# Examples for when this should be set to NOT_BILLABLE include if the Encounter
|
689
|
+
# has not occurred yet or if there is no intention of ever billing the
|
690
|
+
# responsible_party.
|
691
|
+
# @param responsible_party [CandidApiClient::Encounters::V4::Types::ResponsiblePartyType] Defines the party to be billed with the initial balance owed on the claim. Use
|
692
|
+
# SELF_PAY if you intend to bill self pay/cash pay.
|
693
|
+
# @param claim_ids_ranked_sort [String] A list of claim IDs to show first. This will return all charge captures that
|
694
|
+
# have a resulting claim with one of the IDs in this list.
|
695
|
+
# @param claim_creation_ids_ranked_sort [String] A list of Claim Creation IDs to show first.
|
696
|
+
# @param billing_provider_npis_ranked_sort [String] A list of billing provider NPIs to show first. This will return all charge
|
697
|
+
# captures with one of the NPIs in this list.
|
698
|
+
# @param service_facility_name_ranked_sort [String] A string to show first. This will return all charge captures with this service
|
699
|
+
# facility name.
|
700
|
+
# @param primary_payer_ids_ranked_sort [String] A list of primary payer IDs to show first. This will return all charge captures
|
701
|
+
# with one of the primary payer IDs in this list.
|
702
|
+
# @param rendering_provider_npis_ranked_sort [String] A list of rendering provider NPIs to show first. This will return all charge
|
703
|
+
# captures with one of the NPIs in this list.
|
704
|
+
# @param rendering_provider_names_ranked_sort [String] A list of rendering provider names to show first. This will return all charge
|
705
|
+
# captures with one of the names in this list.
|
706
|
+
# @param supervising_provider_npis_ranked_sort [String] A list of supervising provider NPIs to show first. This will return all charge
|
707
|
+
# captures with one of the NPIs in this list.
|
708
|
+
# @param supervising_provider_names_ranked_sort [String] A list of supervising provider names to show first. This will return all charge
|
709
|
+
# captures with one of the names in this list.
|
710
|
+
# @param request_options [CandidApiClient::RequestOptions]
|
711
|
+
# @return [CandidApiClient::ChargeCapture::V1::Types::ChargeCapturePage]
|
712
|
+
# @example
|
713
|
+
# api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
|
714
|
+
# api.charge_capture.v_1.get_all
|
715
|
+
def get_all(limit: nil, sort: nil, sort_direction: nil, page_token: nil, patient_external_id: nil, status: nil,
|
716
|
+
charge_external_id: nil, date_of_service_min: nil, date_of_service_max: nil, claim_ids: nil, claim_creation_ids: nil, billing_provider_npis: nil, service_facility_name: nil, primary_payer_ids: nil, rendering_provider_npis: nil, rendering_provider_names: nil, supervising_provider_npis: nil, supervising_provider_names: nil, exclude_charges_linked_to_claims: nil, patient_external_id_ranked_sort: nil, status_ranked_sort: nil, charge_external_id_ranked_sort: nil, date_of_service_min_ranked_sort: nil, date_of_service_max_ranked_sort: nil, search_term: nil, billable_status: nil, responsible_party: nil, claim_ids_ranked_sort: nil, claim_creation_ids_ranked_sort: nil, billing_provider_npis_ranked_sort: nil, service_facility_name_ranked_sort: nil, primary_payer_ids_ranked_sort: nil, rendering_provider_npis_ranked_sort: nil, rendering_provider_names_ranked_sort: nil, supervising_provider_npis_ranked_sort: nil, supervising_provider_names_ranked_sort: nil, request_options: nil)
|
717
|
+
response = @request_client.conn.get do |req|
|
718
|
+
req.options.timeout = request_options.timeout_in_seconds unless request_options&.timeout_in_seconds.nil?
|
719
|
+
req.headers["Authorization"] = request_options.token unless request_options&.token.nil?
|
720
|
+
req.headers = {
|
721
|
+
**(req.headers || {}),
|
722
|
+
**@request_client.get_headers,
|
723
|
+
**(request_options&.additional_headers || {})
|
724
|
+
}.compact
|
725
|
+
req.params = {
|
726
|
+
**(request_options&.additional_query_parameters || {}),
|
727
|
+
"limit": limit,
|
728
|
+
"sort": sort,
|
729
|
+
"sort_direction": sort_direction,
|
730
|
+
"page_token": page_token,
|
731
|
+
"patient_external_id": patient_external_id,
|
732
|
+
"status": status,
|
733
|
+
"charge_external_id": charge_external_id,
|
734
|
+
"date_of_service_min": date_of_service_min,
|
735
|
+
"date_of_service_max": date_of_service_max,
|
736
|
+
"claim_ids": claim_ids,
|
737
|
+
"claim_creation_ids": claim_creation_ids,
|
738
|
+
"billing_provider_npis": billing_provider_npis,
|
739
|
+
"service_facility_name": service_facility_name,
|
740
|
+
"primary_payer_ids": primary_payer_ids,
|
741
|
+
"rendering_provider_npis": rendering_provider_npis,
|
742
|
+
"rendering_provider_names": rendering_provider_names,
|
743
|
+
"supervising_provider_npis": supervising_provider_npis,
|
744
|
+
"supervising_provider_names": supervising_provider_names,
|
745
|
+
"exclude_charges_linked_to_claims": exclude_charges_linked_to_claims,
|
746
|
+
"patient_external_id_ranked_sort": patient_external_id_ranked_sort,
|
747
|
+
"status_ranked_sort": status_ranked_sort,
|
748
|
+
"charge_external_id_ranked_sort": charge_external_id_ranked_sort,
|
749
|
+
"date_of_service_min_ranked_sort": date_of_service_min_ranked_sort,
|
750
|
+
"date_of_service_max_ranked_sort": date_of_service_max_ranked_sort,
|
751
|
+
"search_term": search_term,
|
752
|
+
"billable_status": billable_status,
|
753
|
+
"responsible_party": responsible_party,
|
754
|
+
"claim_ids_ranked_sort": claim_ids_ranked_sort,
|
755
|
+
"claim_creation_ids_ranked_sort": claim_creation_ids_ranked_sort,
|
756
|
+
"billing_provider_npis_ranked_sort": billing_provider_npis_ranked_sort,
|
757
|
+
"service_facility_name_ranked_sort": service_facility_name_ranked_sort,
|
758
|
+
"primary_payer_ids_ranked_sort": primary_payer_ids_ranked_sort,
|
759
|
+
"rendering_provider_npis_ranked_sort": rendering_provider_npis_ranked_sort,
|
760
|
+
"rendering_provider_names_ranked_sort": rendering_provider_names_ranked_sort,
|
761
|
+
"supervising_provider_npis_ranked_sort": supervising_provider_npis_ranked_sort,
|
762
|
+
"supervising_provider_names_ranked_sort": supervising_provider_names_ranked_sort
|
763
|
+
}.compact
|
764
|
+
req.url "#{@request_client.get_url(environment: CandidApi,
|
765
|
+
request_options: request_options)}/api/charge_captures/v1"
|
766
|
+
end
|
767
|
+
CandidApiClient::ChargeCapture::V1::Types::ChargeCapturePage.from_json(json_object: response.body)
|
768
|
+
end
|
769
|
+
|
770
|
+
# @param charge_capture_change_ids [Array<String>] A list of UUIDs corresponding to ChargeCapturePostBilledChanges.
|
771
|
+
# All of the charges sent will be marked as resolved
|
772
|
+
# @param resolved [Boolean] Whether the change has been resolved. If true, the change will be marked as
|
773
|
+
# resolved.
|
774
|
+
# If false, the change will be marked as unresolved.
|
775
|
+
# @param request_options [CandidApiClient::RequestOptions]
|
776
|
+
# @return [Array<CandidApiClient::ChargeCapture::V1::Types::ChargeCapturePostBilledChange>]
|
777
|
+
# @example
|
778
|
+
# api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
|
779
|
+
# api.charge_capture.v_1.update_post_billed_changes(charge_capture_change_ids: ["d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"], resolved: true)
|
780
|
+
def update_post_billed_changes(charge_capture_change_ids:, resolved:, request_options: nil)
|
781
|
+
response = @request_client.conn.patch do |req|
|
782
|
+
req.options.timeout = request_options.timeout_in_seconds unless request_options&.timeout_in_seconds.nil?
|
783
|
+
req.headers["Authorization"] = request_options.token unless request_options&.token.nil?
|
784
|
+
req.headers = {
|
785
|
+
**(req.headers || {}),
|
786
|
+
**@request_client.get_headers,
|
787
|
+
**(request_options&.additional_headers || {})
|
788
|
+
}.compact
|
789
|
+
req.body = {
|
790
|
+
**(request_options&.additional_body_parameters || {}),
|
791
|
+
charge_capture_change_ids: charge_capture_change_ids,
|
792
|
+
resolved: resolved
|
793
|
+
}.compact
|
794
|
+
req.url "#{@request_client.get_url(environment: CandidApi,
|
795
|
+
request_options: request_options)}/api/charge_captures/v1/changes"
|
796
|
+
end
|
797
|
+
parsed_json = JSON.parse(response.body)
|
798
|
+
parsed_json&.map do |item|
|
799
|
+
item = item.to_json
|
800
|
+
CandidApiClient::ChargeCapture::V1::Types::ChargeCapturePostBilledChange.from_json(json_object: item)
|
801
|
+
end
|
802
|
+
end
|
803
|
+
end
|
804
|
+
|
805
|
+
class AsyncV1Client
|
806
|
+
# @return [CandidApiClient::AsyncRequestClient]
|
807
|
+
attr_reader :request_client
|
808
|
+
|
809
|
+
# @param request_client [CandidApiClient::AsyncRequestClient]
|
810
|
+
# @return [CandidApiClient::ChargeCapture::V1::AsyncV1Client]
|
811
|
+
def initialize(request_client:)
|
812
|
+
@request_client = request_client
|
813
|
+
end
|
814
|
+
|
815
|
+
# @param data [Hash] Charge Capture data contains all the fields needed to create an encounter, but
|
816
|
+
# listed as optional. Candid will use this data when attempting to bundle multiple
|
817
|
+
# Charge Captures into a single encounter.Request of type CandidApiClient::ChargeCapture::V1::Types::ChargeCaptureData, as a Hash
|
818
|
+
# * :diagnoses (Array<CandidApiClient::Diagnoses::Types::DiagnosisCreateOptional>)
|
819
|
+
# * :clinical_notes (Array<CandidApiClient::Encounters::V4::Types::ClinicalNoteCategoryCreateOptional>)
|
820
|
+
# * :claim_supplemental_information (Array<CandidApiClient::Encounters::V4::Types::ClaimSupplementalInformationOptional>)
|
821
|
+
# * :epsdt_referral (Hash)
|
822
|
+
# * :condition_indicator_1 (CandidApiClient::Commons::Types::EpsdtReferralConditionIndicatorCode)
|
823
|
+
# * :condition_indicator_2 (CandidApiClient::Commons::Types::EpsdtReferralConditionIndicatorCode)
|
824
|
+
# * :condition_indicator_3 (CandidApiClient::Commons::Types::EpsdtReferralConditionIndicatorCode)
|
825
|
+
# * :existing_medications (Array<CandidApiClient::Encounters::V4::Types::MedicationOptional>)
|
826
|
+
# * :guarantor (Hash)
|
827
|
+
# * :first_name (String)
|
828
|
+
# * :last_name (String)
|
829
|
+
# * :external_id (String)
|
830
|
+
# * :date_of_birth (Date)
|
831
|
+
# * :address (Hash)
|
832
|
+
# * :zip_plus_four_code (String)
|
833
|
+
# * :address_1 (String)
|
834
|
+
# * :address_2 (String)
|
835
|
+
# * :city (String)
|
836
|
+
# * :state (CandidApiClient::Commons::Types::State)
|
837
|
+
# * :zip_code (String)
|
838
|
+
# * :phone_numbers (Array<CandidApiClient::Commons::Types::PhoneNumberOptional>)
|
839
|
+
# * :phone_consent (Boolean)
|
840
|
+
# * :email (String)
|
841
|
+
# * :email_consent (Boolean)
|
842
|
+
# * :subscriber_primary (Hash)
|
843
|
+
# * :insurance_card (Hash)
|
844
|
+
# * :member_id (String)
|
845
|
+
# * :payer_name (String)
|
846
|
+
# * :payer_id (String)
|
847
|
+
# * :rx_bin (String)
|
848
|
+
# * :rx_pcn (String)
|
849
|
+
# * :image_url_front (String)
|
850
|
+
# * :image_url_back (String)
|
851
|
+
# * :emr_payer_crosswalk (CandidApiClient::Commons::Types::EmrPayerCrosswalk)
|
852
|
+
# * :group_number (String)
|
853
|
+
# * :plan_name (String)
|
854
|
+
# * :plan_type (CandidApiClient::Commons::Types::SourceOfPaymentCode)
|
855
|
+
# * :insurance_type (CandidApiClient::Commons::Types::InsuranceTypeCode)
|
856
|
+
# * :payer_plan_group_id (String)
|
857
|
+
# * :patient_relationship_to_subscriber_code (CandidApiClient::Commons::Types::PatientRelationshipToInsuredCodeAll)
|
858
|
+
# * :date_of_birth (Date)
|
859
|
+
# * :address (Hash)
|
860
|
+
# * :zip_plus_four_code (String)
|
861
|
+
# * :address_1 (String)
|
862
|
+
# * :address_2 (String)
|
863
|
+
# * :city (String)
|
864
|
+
# * :state (CandidApiClient::Commons::Types::State)
|
865
|
+
# * :zip_code (String)
|
866
|
+
# * :first_name (String)
|
867
|
+
# * :last_name (String)
|
868
|
+
# * :gender (CandidApiClient::Individual::Types::Gender)
|
869
|
+
# * :subscriber_secondary (Hash)
|
870
|
+
# * :insurance_card (Hash)
|
871
|
+
# * :member_id (String)
|
872
|
+
# * :payer_name (String)
|
873
|
+
# * :payer_id (String)
|
874
|
+
# * :rx_bin (String)
|
875
|
+
# * :rx_pcn (String)
|
876
|
+
# * :image_url_front (String)
|
877
|
+
# * :image_url_back (String)
|
878
|
+
# * :emr_payer_crosswalk (CandidApiClient::Commons::Types::EmrPayerCrosswalk)
|
879
|
+
# * :group_number (String)
|
880
|
+
# * :plan_name (String)
|
881
|
+
# * :plan_type (CandidApiClient::Commons::Types::SourceOfPaymentCode)
|
882
|
+
# * :insurance_type (CandidApiClient::Commons::Types::InsuranceTypeCode)
|
883
|
+
# * :payer_plan_group_id (String)
|
884
|
+
# * :patient_relationship_to_subscriber_code (CandidApiClient::Commons::Types::PatientRelationshipToInsuredCodeAll)
|
885
|
+
# * :date_of_birth (Date)
|
886
|
+
# * :address (Hash)
|
887
|
+
# * :zip_plus_four_code (String)
|
888
|
+
# * :address_1 (String)
|
889
|
+
# * :address_2 (String)
|
890
|
+
# * :city (String)
|
891
|
+
# * :state (CandidApiClient::Commons::Types::State)
|
892
|
+
# * :zip_code (String)
|
893
|
+
# * :first_name (String)
|
894
|
+
# * :last_name (String)
|
895
|
+
# * :gender (CandidApiClient::Individual::Types::Gender)
|
896
|
+
# * :subscriber_tertiary (Hash)
|
897
|
+
# * :insurance_card (Hash)
|
898
|
+
# * :member_id (String)
|
899
|
+
# * :payer_name (String)
|
900
|
+
# * :payer_id (String)
|
901
|
+
# * :rx_bin (String)
|
902
|
+
# * :rx_pcn (String)
|
903
|
+
# * :image_url_front (String)
|
904
|
+
# * :image_url_back (String)
|
905
|
+
# * :emr_payer_crosswalk (CandidApiClient::Commons::Types::EmrPayerCrosswalk)
|
906
|
+
# * :group_number (String)
|
907
|
+
# * :plan_name (String)
|
908
|
+
# * :plan_type (CandidApiClient::Commons::Types::SourceOfPaymentCode)
|
909
|
+
# * :insurance_type (CandidApiClient::Commons::Types::InsuranceTypeCode)
|
910
|
+
# * :payer_plan_group_id (String)
|
911
|
+
# * :patient_relationship_to_subscriber_code (CandidApiClient::Commons::Types::PatientRelationshipToInsuredCodeAll)
|
912
|
+
# * :date_of_birth (Date)
|
913
|
+
# * :address (Hash)
|
914
|
+
# * :zip_plus_four_code (String)
|
915
|
+
# * :address_1 (String)
|
916
|
+
# * :address_2 (String)
|
917
|
+
# * :city (String)
|
918
|
+
# * :state (CandidApiClient::Commons::Types::State)
|
919
|
+
# * :zip_code (String)
|
920
|
+
# * :first_name (String)
|
921
|
+
# * :last_name (String)
|
922
|
+
# * :gender (CandidApiClient::Individual::Types::Gender)
|
923
|
+
# * :interventions (Array<CandidApiClient::Encounters::V4::Types::InterventionOptional>)
|
924
|
+
# * :schema_instances (Array<CandidApiClient::CustomSchemas::V1::Types::SchemaInstanceOptional>)
|
925
|
+
# * :external_claim_submission (Hash)
|
926
|
+
# * :claim_created_at (DateTime)
|
927
|
+
# * :patient_control_number (String)
|
928
|
+
# * :submission_records (Array<CandidApiClient::ClaimSubmission::V1::Types::ClaimSubmissionRecordCreateOptional>)
|
929
|
+
# * :service_lines (Array<CandidApiClient::ServiceLines::V2::Types::ServiceLineCreateOptional>)
|
930
|
+
# * :patient_histories (Array<CandidApiClient::Encounters::V4::Types::PatientHistoryCategoryOptional>)
|
931
|
+
# * :billing_notes (Array<CandidApiClient::BillingNotes::V2::Types::BillingNoteBaseOptional>)
|
932
|
+
# * :patient (Hash)
|
933
|
+
# * :first_name (String)
|
934
|
+
# * :last_name (String)
|
935
|
+
# * :gender (CandidApiClient::Individual::Types::Gender)
|
936
|
+
# * :external_id (String)
|
937
|
+
# * :date_of_birth (Date)
|
938
|
+
# * :address (Hash)
|
939
|
+
# * :zip_plus_four_code (String)
|
940
|
+
# * :address_1 (String)
|
941
|
+
# * :address_2 (String)
|
942
|
+
# * :city (String)
|
943
|
+
# * :state (CandidApiClient::Commons::Types::State)
|
944
|
+
# * :zip_code (String)
|
945
|
+
# * :phone_numbers (Array<CandidApiClient::Commons::Types::PhoneNumberOptional>)
|
946
|
+
# * :phone_consent (Boolean)
|
947
|
+
# * :email (String)
|
948
|
+
# * :email_consent (Boolean)
|
949
|
+
# * :non_insurance_payers (Array<String>)
|
950
|
+
# * :non_insurance_payers_info (Array<CandidApiClient::Individual::Types::PatientNonInsurancePayerInfoCreateOptional>)
|
951
|
+
# * :service_facility (Hash)
|
952
|
+
# * :organization_name (String)
|
953
|
+
# * :npi (String)
|
954
|
+
# * :address (Hash)
|
955
|
+
# * :zip_plus_four_code (String)
|
956
|
+
# * :address_1 (String)
|
957
|
+
# * :address_2 (String)
|
958
|
+
# * :city (String)
|
959
|
+
# * :state (CandidApiClient::Commons::Types::State)
|
960
|
+
# * :zip_code (String)
|
961
|
+
# * :secondary_identification (String)
|
962
|
+
# * :rendering_provider (Hash)
|
963
|
+
# * :npi (String)
|
964
|
+
# * :taxonomy_code (String)
|
965
|
+
# * :address (Hash)
|
966
|
+
# * :zip_plus_four_code (String)
|
967
|
+
# * :address_1 (String)
|
968
|
+
# * :address_2 (String)
|
969
|
+
# * :city (String)
|
970
|
+
# * :state (CandidApiClient::Commons::Types::State)
|
971
|
+
# * :zip_code (String)
|
972
|
+
# * :first_name (String)
|
973
|
+
# * :last_name (String)
|
974
|
+
# * :organization_name (String)
|
975
|
+
# * :initial_referring_provider (Hash)
|
976
|
+
# * :npi (String)
|
977
|
+
# * :taxonomy_code (String)
|
978
|
+
# * :address (Hash)
|
979
|
+
# * :zip_plus_four_code (String)
|
980
|
+
# * :address_1 (String)
|
981
|
+
# * :address_2 (String)
|
982
|
+
# * :city (String)
|
983
|
+
# * :state (CandidApiClient::Commons::Types::State)
|
984
|
+
# * :zip_code (String)
|
985
|
+
# * :qualifier (CandidApiClient::Commons::Types::QualifierCode)
|
986
|
+
# * :first_name (String)
|
987
|
+
# * :last_name (String)
|
988
|
+
# * :organization_name (String)
|
989
|
+
# * :referring_provider (Hash)
|
990
|
+
# * :npi (String)
|
991
|
+
# * :taxonomy_code (String)
|
992
|
+
# * :address (Hash)
|
993
|
+
# * :zip_plus_four_code (String)
|
994
|
+
# * :address_1 (String)
|
995
|
+
# * :address_2 (String)
|
996
|
+
# * :city (String)
|
997
|
+
# * :state (CandidApiClient::Commons::Types::State)
|
998
|
+
# * :zip_code (String)
|
999
|
+
# * :first_name (String)
|
1000
|
+
# * :last_name (String)
|
1001
|
+
# * :organization_name (String)
|
1002
|
+
# * :supervising_provider (Hash)
|
1003
|
+
# * :npi (String)
|
1004
|
+
# * :taxonomy_code (String)
|
1005
|
+
# * :address (Hash)
|
1006
|
+
# * :zip_plus_four_code (String)
|
1007
|
+
# * :address_1 (String)
|
1008
|
+
# * :address_2 (String)
|
1009
|
+
# * :city (String)
|
1010
|
+
# * :state (CandidApiClient::Commons::Types::State)
|
1011
|
+
# * :zip_code (String)
|
1012
|
+
# * :first_name (String)
|
1013
|
+
# * :last_name (String)
|
1014
|
+
# * :organization_name (String)
|
1015
|
+
# * :billing_provider (Hash)
|
1016
|
+
# * :address (Hash)
|
1017
|
+
# * :zip_plus_four_code (String)
|
1018
|
+
# * :address_1 (String)
|
1019
|
+
# * :address_2 (String)
|
1020
|
+
# * :city (String)
|
1021
|
+
# * :state (CandidApiClient::Commons::Types::State)
|
1022
|
+
# * :zip_code (String)
|
1023
|
+
# * :tax_id (String)
|
1024
|
+
# * :npi (String)
|
1025
|
+
# * :taxonomy_code (String)
|
1026
|
+
# * :provider_commercial_license_type (CandidApiClient::Commons::Types::BillingProviderCommercialLicenseType)
|
1027
|
+
# * :first_name (String)
|
1028
|
+
# * :last_name (String)
|
1029
|
+
# * :organization_name (String)
|
1030
|
+
# * :pay_to_address (Hash)
|
1031
|
+
# * :zip_plus_four_code (String)
|
1032
|
+
# * :address_1 (String)
|
1033
|
+
# * :address_2 (String)
|
1034
|
+
# * :city (String)
|
1035
|
+
# * :state (CandidApiClient::Commons::Types::State)
|
1036
|
+
# * :zip_code (String)
|
1037
|
+
# * :benefits_assigned_to_provider (Boolean)
|
1038
|
+
# * :prior_authorization_number (String)
|
1039
|
+
# * :external_id (String)
|
1040
|
+
# * :date_of_service (Date)
|
1041
|
+
# * :tag_ids (Array<String>)
|
1042
|
+
# * :billable_status (CandidApiClient::Encounters::V4::Types::BillableStatusType)
|
1043
|
+
# * :responsible_party (CandidApiClient::Encounters::V4::Types::ResponsiblePartyType)
|
1044
|
+
# * :provider_accepts_assignment (Boolean)
|
1045
|
+
# * :synchronicity (CandidApiClient::Encounters::V4::Types::SynchronicityType)
|
1046
|
+
# * :place_of_service_code (CandidApiClient::Commons::Types::FacilityTypeCode)
|
1047
|
+
# * :appointment_type (String)
|
1048
|
+
# * :end_date_of_service (Date)
|
1049
|
+
# * :additional_information (String)
|
1050
|
+
# * :service_authorization_exception_code (CandidApiClient::Encounters::V4::Types::ServiceAuthorizationExceptionCode)
|
1051
|
+
# * :admission_date (Date)
|
1052
|
+
# * :discharge_date (Date)
|
1053
|
+
# * :onset_of_current_illness_or_symptom_date (Date)
|
1054
|
+
# * :last_menstrual_period_date (Date)
|
1055
|
+
# * :delay_reason_code (CandidApiClient::Commons::Types::DelayReasonCode)
|
1056
|
+
# * :patient_authorized_release (Boolean)
|
1057
|
+
# * :vitals (Hash)
|
1058
|
+
# * :height_in (Integer)
|
1059
|
+
# * :weight_lbs (Integer)
|
1060
|
+
# * :blood_pressure_systolic_mmhg (Integer)
|
1061
|
+
# * :blood_pressure_diastolic_mmhg (Integer)
|
1062
|
+
# * :body_temperature_f (Float)
|
1063
|
+
# * :hemoglobin_gdl (Float)
|
1064
|
+
# * :hematocrit_pct (Float)
|
1065
|
+
# * :referral_number (String)
|
1066
|
+
# * :secondary_payer_carrier_code (String)
|
1067
|
+
# @param charge_external_id [String] A client-specified unique ID to associate with this encounter; for example, your
|
1068
|
+
# internal encounter ID or a Dr. Chrono encounter ID. This field should not
|
1069
|
+
# contain PHI.
|
1070
|
+
# @param originating_system [String] An optional string field denoting the originating system of the charge.
|
1071
|
+
# @param claim_creation_category [String] An optional string field denoting the user defined category of the claim
|
1072
|
+
# creation.
|
1073
|
+
# @param ehr_source_url [String] External URL reference that links to Charge Capture details within the external
|
1074
|
+
# system (e.g. the EHR visit page). Send full URL format for the external link
|
1075
|
+
# (e.g. https://emr_charge_capture_url.com/123).
|
1076
|
+
# @param patient_external_id [String] The patient ID from the external EMR platform for the patient
|
1077
|
+
# @param status [CandidApiClient::ChargeCapture::V1::Types::ChargeCaptureStatus] the status of the charge capture
|
1078
|
+
# @param request_options [CandidApiClient::RequestOptions]
|
1079
|
+
# @return [CandidApiClient::ChargeCapture::V1::Types::ChargeCapture]
|
1080
|
+
# @example
|
1081
|
+
# api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
|
1082
|
+
# api.charge_capture.v_1.create(
|
1083
|
+
# data: { },
|
1084
|
+
# charge_external_id: "charge_external_id",
|
1085
|
+
# patient_external_id: "patient_external_id",
|
1086
|
+
# status: PLANNED
|
1087
|
+
# )
|
1088
|
+
def create(data:, charge_external_id:, patient_external_id:, status:, originating_system: nil, claim_creation_category: nil,
|
1089
|
+
ehr_source_url: nil, request_options: nil)
|
1090
|
+
Async do
|
1091
|
+
response = @request_client.conn.post do |req|
|
1092
|
+
req.options.timeout = request_options.timeout_in_seconds unless request_options&.timeout_in_seconds.nil?
|
1093
|
+
req.headers["Authorization"] = request_options.token unless request_options&.token.nil?
|
1094
|
+
req.headers = {
|
1095
|
+
**(req.headers || {}),
|
1096
|
+
**@request_client.get_headers,
|
1097
|
+
**(request_options&.additional_headers || {})
|
1098
|
+
}.compact
|
1099
|
+
req.body = {
|
1100
|
+
**(request_options&.additional_body_parameters || {}),
|
1101
|
+
data: data,
|
1102
|
+
charge_external_id: charge_external_id,
|
1103
|
+
originating_system: originating_system,
|
1104
|
+
claim_creation_category: claim_creation_category,
|
1105
|
+
ehr_source_url: ehr_source_url,
|
1106
|
+
patient_external_id: patient_external_id,
|
1107
|
+
status: status
|
1108
|
+
}.compact
|
1109
|
+
req.url "#{@request_client.get_url(environment: CandidApi,
|
1110
|
+
request_options: request_options)}/api/charge_captures/v1"
|
1111
|
+
end
|
1112
|
+
CandidApiClient::ChargeCapture::V1::Types::ChargeCapture.from_json(json_object: response.body)
|
1113
|
+
end
|
1114
|
+
end
|
1115
|
+
|
1116
|
+
# @param charge_capture_id [String]
|
1117
|
+
# @param data [Hash] Request of type CandidApiClient::ChargeCapture::V1::Types::ChargeCaptureData, as a Hash
|
1118
|
+
# * :diagnoses (Array<CandidApiClient::Diagnoses::Types::DiagnosisCreateOptional>)
|
1119
|
+
# * :clinical_notes (Array<CandidApiClient::Encounters::V4::Types::ClinicalNoteCategoryCreateOptional>)
|
1120
|
+
# * :claim_supplemental_information (Array<CandidApiClient::Encounters::V4::Types::ClaimSupplementalInformationOptional>)
|
1121
|
+
# * :epsdt_referral (Hash)
|
1122
|
+
# * :condition_indicator_1 (CandidApiClient::Commons::Types::EpsdtReferralConditionIndicatorCode)
|
1123
|
+
# * :condition_indicator_2 (CandidApiClient::Commons::Types::EpsdtReferralConditionIndicatorCode)
|
1124
|
+
# * :condition_indicator_3 (CandidApiClient::Commons::Types::EpsdtReferralConditionIndicatorCode)
|
1125
|
+
# * :existing_medications (Array<CandidApiClient::Encounters::V4::Types::MedicationOptional>)
|
1126
|
+
# * :guarantor (Hash)
|
1127
|
+
# * :first_name (String)
|
1128
|
+
# * :last_name (String)
|
1129
|
+
# * :external_id (String)
|
1130
|
+
# * :date_of_birth (Date)
|
1131
|
+
# * :address (Hash)
|
1132
|
+
# * :zip_plus_four_code (String)
|
1133
|
+
# * :address_1 (String)
|
1134
|
+
# * :address_2 (String)
|
1135
|
+
# * :city (String)
|
1136
|
+
# * :state (CandidApiClient::Commons::Types::State)
|
1137
|
+
# * :zip_code (String)
|
1138
|
+
# * :phone_numbers (Array<CandidApiClient::Commons::Types::PhoneNumberOptional>)
|
1139
|
+
# * :phone_consent (Boolean)
|
1140
|
+
# * :email (String)
|
1141
|
+
# * :email_consent (Boolean)
|
1142
|
+
# * :subscriber_primary (Hash)
|
1143
|
+
# * :insurance_card (Hash)
|
1144
|
+
# * :member_id (String)
|
1145
|
+
# * :payer_name (String)
|
1146
|
+
# * :payer_id (String)
|
1147
|
+
# * :rx_bin (String)
|
1148
|
+
# * :rx_pcn (String)
|
1149
|
+
# * :image_url_front (String)
|
1150
|
+
# * :image_url_back (String)
|
1151
|
+
# * :emr_payer_crosswalk (CandidApiClient::Commons::Types::EmrPayerCrosswalk)
|
1152
|
+
# * :group_number (String)
|
1153
|
+
# * :plan_name (String)
|
1154
|
+
# * :plan_type (CandidApiClient::Commons::Types::SourceOfPaymentCode)
|
1155
|
+
# * :insurance_type (CandidApiClient::Commons::Types::InsuranceTypeCode)
|
1156
|
+
# * :payer_plan_group_id (String)
|
1157
|
+
# * :patient_relationship_to_subscriber_code (CandidApiClient::Commons::Types::PatientRelationshipToInsuredCodeAll)
|
1158
|
+
# * :date_of_birth (Date)
|
1159
|
+
# * :address (Hash)
|
1160
|
+
# * :zip_plus_four_code (String)
|
1161
|
+
# * :address_1 (String)
|
1162
|
+
# * :address_2 (String)
|
1163
|
+
# * :city (String)
|
1164
|
+
# * :state (CandidApiClient::Commons::Types::State)
|
1165
|
+
# * :zip_code (String)
|
1166
|
+
# * :first_name (String)
|
1167
|
+
# * :last_name (String)
|
1168
|
+
# * :gender (CandidApiClient::Individual::Types::Gender)
|
1169
|
+
# * :subscriber_secondary (Hash)
|
1170
|
+
# * :insurance_card (Hash)
|
1171
|
+
# * :member_id (String)
|
1172
|
+
# * :payer_name (String)
|
1173
|
+
# * :payer_id (String)
|
1174
|
+
# * :rx_bin (String)
|
1175
|
+
# * :rx_pcn (String)
|
1176
|
+
# * :image_url_front (String)
|
1177
|
+
# * :image_url_back (String)
|
1178
|
+
# * :emr_payer_crosswalk (CandidApiClient::Commons::Types::EmrPayerCrosswalk)
|
1179
|
+
# * :group_number (String)
|
1180
|
+
# * :plan_name (String)
|
1181
|
+
# * :plan_type (CandidApiClient::Commons::Types::SourceOfPaymentCode)
|
1182
|
+
# * :insurance_type (CandidApiClient::Commons::Types::InsuranceTypeCode)
|
1183
|
+
# * :payer_plan_group_id (String)
|
1184
|
+
# * :patient_relationship_to_subscriber_code (CandidApiClient::Commons::Types::PatientRelationshipToInsuredCodeAll)
|
1185
|
+
# * :date_of_birth (Date)
|
1186
|
+
# * :address (Hash)
|
1187
|
+
# * :zip_plus_four_code (String)
|
1188
|
+
# * :address_1 (String)
|
1189
|
+
# * :address_2 (String)
|
1190
|
+
# * :city (String)
|
1191
|
+
# * :state (CandidApiClient::Commons::Types::State)
|
1192
|
+
# * :zip_code (String)
|
1193
|
+
# * :first_name (String)
|
1194
|
+
# * :last_name (String)
|
1195
|
+
# * :gender (CandidApiClient::Individual::Types::Gender)
|
1196
|
+
# * :subscriber_tertiary (Hash)
|
1197
|
+
# * :insurance_card (Hash)
|
1198
|
+
# * :member_id (String)
|
1199
|
+
# * :payer_name (String)
|
1200
|
+
# * :payer_id (String)
|
1201
|
+
# * :rx_bin (String)
|
1202
|
+
# * :rx_pcn (String)
|
1203
|
+
# * :image_url_front (String)
|
1204
|
+
# * :image_url_back (String)
|
1205
|
+
# * :emr_payer_crosswalk (CandidApiClient::Commons::Types::EmrPayerCrosswalk)
|
1206
|
+
# * :group_number (String)
|
1207
|
+
# * :plan_name (String)
|
1208
|
+
# * :plan_type (CandidApiClient::Commons::Types::SourceOfPaymentCode)
|
1209
|
+
# * :insurance_type (CandidApiClient::Commons::Types::InsuranceTypeCode)
|
1210
|
+
# * :payer_plan_group_id (String)
|
1211
|
+
# * :patient_relationship_to_subscriber_code (CandidApiClient::Commons::Types::PatientRelationshipToInsuredCodeAll)
|
1212
|
+
# * :date_of_birth (Date)
|
1213
|
+
# * :address (Hash)
|
1214
|
+
# * :zip_plus_four_code (String)
|
1215
|
+
# * :address_1 (String)
|
1216
|
+
# * :address_2 (String)
|
1217
|
+
# * :city (String)
|
1218
|
+
# * :state (CandidApiClient::Commons::Types::State)
|
1219
|
+
# * :zip_code (String)
|
1220
|
+
# * :first_name (String)
|
1221
|
+
# * :last_name (String)
|
1222
|
+
# * :gender (CandidApiClient::Individual::Types::Gender)
|
1223
|
+
# * :interventions (Array<CandidApiClient::Encounters::V4::Types::InterventionOptional>)
|
1224
|
+
# * :schema_instances (Array<CandidApiClient::CustomSchemas::V1::Types::SchemaInstanceOptional>)
|
1225
|
+
# * :external_claim_submission (Hash)
|
1226
|
+
# * :claim_created_at (DateTime)
|
1227
|
+
# * :patient_control_number (String)
|
1228
|
+
# * :submission_records (Array<CandidApiClient::ClaimSubmission::V1::Types::ClaimSubmissionRecordCreateOptional>)
|
1229
|
+
# * :service_lines (Array<CandidApiClient::ServiceLines::V2::Types::ServiceLineCreateOptional>)
|
1230
|
+
# * :patient_histories (Array<CandidApiClient::Encounters::V4::Types::PatientHistoryCategoryOptional>)
|
1231
|
+
# * :billing_notes (Array<CandidApiClient::BillingNotes::V2::Types::BillingNoteBaseOptional>)
|
1232
|
+
# * :patient (Hash)
|
1233
|
+
# * :first_name (String)
|
1234
|
+
# * :last_name (String)
|
1235
|
+
# * :gender (CandidApiClient::Individual::Types::Gender)
|
1236
|
+
# * :external_id (String)
|
1237
|
+
# * :date_of_birth (Date)
|
1238
|
+
# * :address (Hash)
|
1239
|
+
# * :zip_plus_four_code (String)
|
1240
|
+
# * :address_1 (String)
|
1241
|
+
# * :address_2 (String)
|
1242
|
+
# * :city (String)
|
1243
|
+
# * :state (CandidApiClient::Commons::Types::State)
|
1244
|
+
# * :zip_code (String)
|
1245
|
+
# * :phone_numbers (Array<CandidApiClient::Commons::Types::PhoneNumberOptional>)
|
1246
|
+
# * :phone_consent (Boolean)
|
1247
|
+
# * :email (String)
|
1248
|
+
# * :email_consent (Boolean)
|
1249
|
+
# * :non_insurance_payers (Array<String>)
|
1250
|
+
# * :non_insurance_payers_info (Array<CandidApiClient::Individual::Types::PatientNonInsurancePayerInfoCreateOptional>)
|
1251
|
+
# * :service_facility (Hash)
|
1252
|
+
# * :organization_name (String)
|
1253
|
+
# * :npi (String)
|
1254
|
+
# * :address (Hash)
|
1255
|
+
# * :zip_plus_four_code (String)
|
1256
|
+
# * :address_1 (String)
|
1257
|
+
# * :address_2 (String)
|
1258
|
+
# * :city (String)
|
1259
|
+
# * :state (CandidApiClient::Commons::Types::State)
|
1260
|
+
# * :zip_code (String)
|
1261
|
+
# * :secondary_identification (String)
|
1262
|
+
# * :rendering_provider (Hash)
|
1263
|
+
# * :npi (String)
|
1264
|
+
# * :taxonomy_code (String)
|
1265
|
+
# * :address (Hash)
|
1266
|
+
# * :zip_plus_four_code (String)
|
1267
|
+
# * :address_1 (String)
|
1268
|
+
# * :address_2 (String)
|
1269
|
+
# * :city (String)
|
1270
|
+
# * :state (CandidApiClient::Commons::Types::State)
|
1271
|
+
# * :zip_code (String)
|
1272
|
+
# * :first_name (String)
|
1273
|
+
# * :last_name (String)
|
1274
|
+
# * :organization_name (String)
|
1275
|
+
# * :initial_referring_provider (Hash)
|
1276
|
+
# * :npi (String)
|
1277
|
+
# * :taxonomy_code (String)
|
1278
|
+
# * :address (Hash)
|
1279
|
+
# * :zip_plus_four_code (String)
|
1280
|
+
# * :address_1 (String)
|
1281
|
+
# * :address_2 (String)
|
1282
|
+
# * :city (String)
|
1283
|
+
# * :state (CandidApiClient::Commons::Types::State)
|
1284
|
+
# * :zip_code (String)
|
1285
|
+
# * :qualifier (CandidApiClient::Commons::Types::QualifierCode)
|
1286
|
+
# * :first_name (String)
|
1287
|
+
# * :last_name (String)
|
1288
|
+
# * :organization_name (String)
|
1289
|
+
# * :referring_provider (Hash)
|
1290
|
+
# * :npi (String)
|
1291
|
+
# * :taxonomy_code (String)
|
1292
|
+
# * :address (Hash)
|
1293
|
+
# * :zip_plus_four_code (String)
|
1294
|
+
# * :address_1 (String)
|
1295
|
+
# * :address_2 (String)
|
1296
|
+
# * :city (String)
|
1297
|
+
# * :state (CandidApiClient::Commons::Types::State)
|
1298
|
+
# * :zip_code (String)
|
1299
|
+
# * :first_name (String)
|
1300
|
+
# * :last_name (String)
|
1301
|
+
# * :organization_name (String)
|
1302
|
+
# * :supervising_provider (Hash)
|
1303
|
+
# * :npi (String)
|
1304
|
+
# * :taxonomy_code (String)
|
1305
|
+
# * :address (Hash)
|
1306
|
+
# * :zip_plus_four_code (String)
|
1307
|
+
# * :address_1 (String)
|
1308
|
+
# * :address_2 (String)
|
1309
|
+
# * :city (String)
|
1310
|
+
# * :state (CandidApiClient::Commons::Types::State)
|
1311
|
+
# * :zip_code (String)
|
1312
|
+
# * :first_name (String)
|
1313
|
+
# * :last_name (String)
|
1314
|
+
# * :organization_name (String)
|
1315
|
+
# * :billing_provider (Hash)
|
1316
|
+
# * :address (Hash)
|
1317
|
+
# * :zip_plus_four_code (String)
|
1318
|
+
# * :address_1 (String)
|
1319
|
+
# * :address_2 (String)
|
1320
|
+
# * :city (String)
|
1321
|
+
# * :state (CandidApiClient::Commons::Types::State)
|
1322
|
+
# * :zip_code (String)
|
1323
|
+
# * :tax_id (String)
|
1324
|
+
# * :npi (String)
|
1325
|
+
# * :taxonomy_code (String)
|
1326
|
+
# * :provider_commercial_license_type (CandidApiClient::Commons::Types::BillingProviderCommercialLicenseType)
|
1327
|
+
# * :first_name (String)
|
1328
|
+
# * :last_name (String)
|
1329
|
+
# * :organization_name (String)
|
1330
|
+
# * :pay_to_address (Hash)
|
1331
|
+
# * :zip_plus_four_code (String)
|
1332
|
+
# * :address_1 (String)
|
1333
|
+
# * :address_2 (String)
|
1334
|
+
# * :city (String)
|
1335
|
+
# * :state (CandidApiClient::Commons::Types::State)
|
1336
|
+
# * :zip_code (String)
|
1337
|
+
# * :benefits_assigned_to_provider (Boolean)
|
1338
|
+
# * :prior_authorization_number (String)
|
1339
|
+
# * :external_id (String)
|
1340
|
+
# * :date_of_service (Date)
|
1341
|
+
# * :tag_ids (Array<String>)
|
1342
|
+
# * :billable_status (CandidApiClient::Encounters::V4::Types::BillableStatusType)
|
1343
|
+
# * :responsible_party (CandidApiClient::Encounters::V4::Types::ResponsiblePartyType)
|
1344
|
+
# * :provider_accepts_assignment (Boolean)
|
1345
|
+
# * :synchronicity (CandidApiClient::Encounters::V4::Types::SynchronicityType)
|
1346
|
+
# * :place_of_service_code (CandidApiClient::Commons::Types::FacilityTypeCode)
|
1347
|
+
# * :appointment_type (String)
|
1348
|
+
# * :end_date_of_service (Date)
|
1349
|
+
# * :additional_information (String)
|
1350
|
+
# * :service_authorization_exception_code (CandidApiClient::Encounters::V4::Types::ServiceAuthorizationExceptionCode)
|
1351
|
+
# * :admission_date (Date)
|
1352
|
+
# * :discharge_date (Date)
|
1353
|
+
# * :onset_of_current_illness_or_symptom_date (Date)
|
1354
|
+
# * :last_menstrual_period_date (Date)
|
1355
|
+
# * :delay_reason_code (CandidApiClient::Commons::Types::DelayReasonCode)
|
1356
|
+
# * :patient_authorized_release (Boolean)
|
1357
|
+
# * :vitals (Hash)
|
1358
|
+
# * :height_in (Integer)
|
1359
|
+
# * :weight_lbs (Integer)
|
1360
|
+
# * :blood_pressure_systolic_mmhg (Integer)
|
1361
|
+
# * :blood_pressure_diastolic_mmhg (Integer)
|
1362
|
+
# * :body_temperature_f (Float)
|
1363
|
+
# * :hemoglobin_gdl (Float)
|
1364
|
+
# * :hematocrit_pct (Float)
|
1365
|
+
# * :referral_number (String)
|
1366
|
+
# * :secondary_payer_carrier_code (String)
|
1367
|
+
# @param charge_external_id [String] A client-specified unique ID to associate with this encounter;
|
1368
|
+
# for example, your internal encounter ID or a Dr. Chrono encounter ID.
|
1369
|
+
# This field should not contain PHI.
|
1370
|
+
# @param ehr_source_url [String] External URL reference that links to Charge Capture details within the external
|
1371
|
+
# system (e.g. the EHR visit page).
|
1372
|
+
# Send full URL format for the external link (e.g.
|
1373
|
+
# https://emr_charge_capture_url.com/123).
|
1374
|
+
# @param originating_system [String] An optional string field denoting the originating system of the charge.
|
1375
|
+
# @param claim_creation_category [String] An optional string field denoting the user defined category of the claim
|
1376
|
+
# creation.
|
1377
|
+
# @param patient_external_id [String] The patient ID from the external EMR platform for the patient
|
1378
|
+
# @param status [CandidApiClient::ChargeCapture::V1::Types::ChargeCaptureStatus] the status of the charge capture
|
1379
|
+
# @param request_options [CandidApiClient::RequestOptions]
|
1380
|
+
# @return [CandidApiClient::ChargeCapture::V1::Types::ChargeCapture]
|
1381
|
+
# @example
|
1382
|
+
# api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
|
1383
|
+
# api.charge_capture.v_1.update(charge_capture_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32")
|
1384
|
+
def update(charge_capture_id:, data: nil, charge_external_id: nil, ehr_source_url: nil,
|
1385
|
+
originating_system: nil, claim_creation_category: nil, patient_external_id: nil, status: nil, request_options: nil)
|
1386
|
+
Async do
|
1387
|
+
response = @request_client.conn.patch do |req|
|
1388
|
+
req.options.timeout = request_options.timeout_in_seconds unless request_options&.timeout_in_seconds.nil?
|
1389
|
+
req.headers["Authorization"] = request_options.token unless request_options&.token.nil?
|
1390
|
+
req.headers = {
|
1391
|
+
**(req.headers || {}),
|
1392
|
+
**@request_client.get_headers,
|
1393
|
+
**(request_options&.additional_headers || {})
|
1394
|
+
}.compact
|
1395
|
+
req.body = {
|
1396
|
+
**(request_options&.additional_body_parameters || {}),
|
1397
|
+
data: data,
|
1398
|
+
charge_external_id: charge_external_id,
|
1399
|
+
ehr_source_url: ehr_source_url,
|
1400
|
+
originating_system: originating_system,
|
1401
|
+
claim_creation_category: claim_creation_category,
|
1402
|
+
patient_external_id: patient_external_id,
|
1403
|
+
status: status
|
1404
|
+
}.compact
|
1405
|
+
req.url "#{@request_client.get_url(environment: CandidApi,
|
1406
|
+
request_options: request_options)}/api/charge_captures/v1/#{charge_capture_id}"
|
1407
|
+
end
|
1408
|
+
CandidApiClient::ChargeCapture::V1::Types::ChargeCapture.from_json(json_object: response.body)
|
1409
|
+
end
|
1410
|
+
end
|
1411
|
+
|
1412
|
+
# @param charge_capture_id [String]
|
1413
|
+
# @param request_options [CandidApiClient::RequestOptions]
|
1414
|
+
# @return [CandidApiClient::ChargeCapture::V1::Types::ChargeCapture]
|
1415
|
+
# @example
|
1416
|
+
# api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
|
1417
|
+
# api.charge_capture.v_1.get(charge_capture_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32")
|
1418
|
+
def get(charge_capture_id:, request_options: nil)
|
1419
|
+
Async do
|
1420
|
+
response = @request_client.conn.get do |req|
|
1421
|
+
req.options.timeout = request_options.timeout_in_seconds unless request_options&.timeout_in_seconds.nil?
|
1422
|
+
req.headers["Authorization"] = request_options.token unless request_options&.token.nil?
|
1423
|
+
req.headers = {
|
1424
|
+
**(req.headers || {}),
|
1425
|
+
**@request_client.get_headers,
|
1426
|
+
**(request_options&.additional_headers || {})
|
1427
|
+
}.compact
|
1428
|
+
req.url "#{@request_client.get_url(environment: CandidApi,
|
1429
|
+
request_options: request_options)}/api/charge_captures/v1/#{charge_capture_id}"
|
1430
|
+
end
|
1431
|
+
CandidApiClient::ChargeCapture::V1::Types::ChargeCapture.from_json(json_object: response.body)
|
1432
|
+
end
|
1433
|
+
end
|
1434
|
+
|
1435
|
+
# @param limit [Integer] Maximum number of entities per page, defaults to 100.
|
1436
|
+
# @param sort [CandidApiClient::ChargeCapture::V1::Types::ChargeCaptureSortField] Defaults to created_at
|
1437
|
+
# @param sort_direction [CandidApiClient::Commons::Types::SortDirection] Sort direction. Defaults to descending order if not provided.
|
1438
|
+
# @param page_token [String]
|
1439
|
+
# @param patient_external_id [String] The patient ID from the external EMR platform for the patient
|
1440
|
+
# @param status [CandidApiClient::ChargeCapture::V1::Types::ChargeCaptureStatus] the status of the charge captures
|
1441
|
+
# @param charge_external_id [String] A client-specified unique ID to associate with this encounter;
|
1442
|
+
# for example, your internal encounter ID or a Dr. Chrono encounter ID.
|
1443
|
+
# This field should not contain PHI.
|
1444
|
+
# @param date_of_service_min [Date] Date formatted as YYYY-MM-DD; eg: 2019-08-24.
|
1445
|
+
# This date must be the local date in the timezone where the service occurred.
|
1446
|
+
# @param date_of_service_max [Date] Date formatted as YYYY-MM-DD; eg: 2019-08-24.
|
1447
|
+
# This date must be the local date in the timezone where the service occurred.
|
1448
|
+
# @param claim_ids [String] A list of claim IDs to filter by. This will return all charge captures that have
|
1449
|
+
# a resulting claim with one of the IDs in this list.
|
1450
|
+
# @param claim_creation_ids [String] A list of Claim Creation IDs to filter by.
|
1451
|
+
# @param billing_provider_npis [String] A list of billing provider NPIs to filter by. This will return all charge
|
1452
|
+
# captures with one of the NPIs in this list.
|
1453
|
+
# @param service_facility_name [String] A string to filter by. This will return all charge captures with this service
|
1454
|
+
# facility name.
|
1455
|
+
# @param primary_payer_ids [String] A list of primary payer IDs to filter by. This will return all charge captures
|
1456
|
+
# with one of the primary payer IDs in this list.
|
1457
|
+
# @param rendering_provider_npis [String] A list of rendering provider NPIs to filter by. This will return all charge
|
1458
|
+
# captures with one of the NPIs in this list.
|
1459
|
+
# @param rendering_provider_names [String] A list of rendering provider names to filter by. This will return all charge
|
1460
|
+
# captures with one of the names in this list.
|
1461
|
+
# @param supervising_provider_npis [String] A list of supervising provider NPIs to filter by. This will return all charge
|
1462
|
+
# captures with one of the NPIs in this list.
|
1463
|
+
# @param supervising_provider_names [String] A list of supervising provider names to filter by. This will return all charge
|
1464
|
+
# captures with one of the names in this list.
|
1465
|
+
# @param exclude_charges_linked_to_claims [Boolean] Whether to exclude charge captures which are part of a claim creation.
|
1466
|
+
# @param patient_external_id_ranked_sort [String] The patient ID from the external EMR platform for the patient
|
1467
|
+
# @param status_ranked_sort [CandidApiClient::ChargeCapture::V1::Types::ChargeCaptureStatus] The charge capture status to show first
|
1468
|
+
# @param charge_external_id_ranked_sort [String] A client-specified unique ID to associate with this encounter;
|
1469
|
+
# for example, your internal encounter ID or a Dr. Chrono encounter ID.
|
1470
|
+
# This field should not contain PHI.
|
1471
|
+
# @param date_of_service_min_ranked_sort [Date] Date formatted as YYYY-MM-DD; eg: 2019-08-24.
|
1472
|
+
# This date must be the local date in the timezone where the service occurred.
|
1473
|
+
# @param date_of_service_max_ranked_sort [Date] Date formatted as YYYY-MM-DD; eg: 2019-08-24.
|
1474
|
+
# This date must be the local date in the timezone where the service occurred.
|
1475
|
+
# @param search_term [String] Filter by any of the following fields: charge_id, claim_id, patient external_id,
|
1476
|
+
# patient date of birth, patient first name, patient last name,
|
1477
|
+
# or charge external id.
|
1478
|
+
# @param billable_status [CandidApiClient::Encounters::V4::Types::BillableStatusType] Defines if the Encounter is to be billed by Candid to the responsible_party.
|
1479
|
+
# Examples for when this should be set to NOT_BILLABLE include if the Encounter
|
1480
|
+
# has not occurred yet or if there is no intention of ever billing the
|
1481
|
+
# responsible_party.
|
1482
|
+
# @param responsible_party [CandidApiClient::Encounters::V4::Types::ResponsiblePartyType] Defines the party to be billed with the initial balance owed on the claim. Use
|
1483
|
+
# SELF_PAY if you intend to bill self pay/cash pay.
|
1484
|
+
# @param claim_ids_ranked_sort [String] A list of claim IDs to show first. This will return all charge captures that
|
1485
|
+
# have a resulting claim with one of the IDs in this list.
|
1486
|
+
# @param claim_creation_ids_ranked_sort [String] A list of Claim Creation IDs to show first.
|
1487
|
+
# @param billing_provider_npis_ranked_sort [String] A list of billing provider NPIs to show first. This will return all charge
|
1488
|
+
# captures with one of the NPIs in this list.
|
1489
|
+
# @param service_facility_name_ranked_sort [String] A string to show first. This will return all charge captures with this service
|
1490
|
+
# facility name.
|
1491
|
+
# @param primary_payer_ids_ranked_sort [String] A list of primary payer IDs to show first. This will return all charge captures
|
1492
|
+
# with one of the primary payer IDs in this list.
|
1493
|
+
# @param rendering_provider_npis_ranked_sort [String] A list of rendering provider NPIs to show first. This will return all charge
|
1494
|
+
# captures with one of the NPIs in this list.
|
1495
|
+
# @param rendering_provider_names_ranked_sort [String] A list of rendering provider names to show first. This will return all charge
|
1496
|
+
# captures with one of the names in this list.
|
1497
|
+
# @param supervising_provider_npis_ranked_sort [String] A list of supervising provider NPIs to show first. This will return all charge
|
1498
|
+
# captures with one of the NPIs in this list.
|
1499
|
+
# @param supervising_provider_names_ranked_sort [String] A list of supervising provider names to show first. This will return all charge
|
1500
|
+
# captures with one of the names in this list.
|
1501
|
+
# @param request_options [CandidApiClient::RequestOptions]
|
1502
|
+
# @return [CandidApiClient::ChargeCapture::V1::Types::ChargeCapturePage]
|
1503
|
+
# @example
|
1504
|
+
# api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
|
1505
|
+
# api.charge_capture.v_1.get_all
|
1506
|
+
def get_all(limit: nil, sort: nil, sort_direction: nil, page_token: nil, patient_external_id: nil, status: nil,
|
1507
|
+
charge_external_id: nil, date_of_service_min: nil, date_of_service_max: nil, claim_ids: nil, claim_creation_ids: nil, billing_provider_npis: nil, service_facility_name: nil, primary_payer_ids: nil, rendering_provider_npis: nil, rendering_provider_names: nil, supervising_provider_npis: nil, supervising_provider_names: nil, exclude_charges_linked_to_claims: nil, patient_external_id_ranked_sort: nil, status_ranked_sort: nil, charge_external_id_ranked_sort: nil, date_of_service_min_ranked_sort: nil, date_of_service_max_ranked_sort: nil, search_term: nil, billable_status: nil, responsible_party: nil, claim_ids_ranked_sort: nil, claim_creation_ids_ranked_sort: nil, billing_provider_npis_ranked_sort: nil, service_facility_name_ranked_sort: nil, primary_payer_ids_ranked_sort: nil, rendering_provider_npis_ranked_sort: nil, rendering_provider_names_ranked_sort: nil, supervising_provider_npis_ranked_sort: nil, supervising_provider_names_ranked_sort: nil, request_options: nil)
|
1508
|
+
Async do
|
1509
|
+
response = @request_client.conn.get do |req|
|
1510
|
+
req.options.timeout = request_options.timeout_in_seconds unless request_options&.timeout_in_seconds.nil?
|
1511
|
+
req.headers["Authorization"] = request_options.token unless request_options&.token.nil?
|
1512
|
+
req.headers = {
|
1513
|
+
**(req.headers || {}),
|
1514
|
+
**@request_client.get_headers,
|
1515
|
+
**(request_options&.additional_headers || {})
|
1516
|
+
}.compact
|
1517
|
+
req.params = {
|
1518
|
+
**(request_options&.additional_query_parameters || {}),
|
1519
|
+
"limit": limit,
|
1520
|
+
"sort": sort,
|
1521
|
+
"sort_direction": sort_direction,
|
1522
|
+
"page_token": page_token,
|
1523
|
+
"patient_external_id": patient_external_id,
|
1524
|
+
"status": status,
|
1525
|
+
"charge_external_id": charge_external_id,
|
1526
|
+
"date_of_service_min": date_of_service_min,
|
1527
|
+
"date_of_service_max": date_of_service_max,
|
1528
|
+
"claim_ids": claim_ids,
|
1529
|
+
"claim_creation_ids": claim_creation_ids,
|
1530
|
+
"billing_provider_npis": billing_provider_npis,
|
1531
|
+
"service_facility_name": service_facility_name,
|
1532
|
+
"primary_payer_ids": primary_payer_ids,
|
1533
|
+
"rendering_provider_npis": rendering_provider_npis,
|
1534
|
+
"rendering_provider_names": rendering_provider_names,
|
1535
|
+
"supervising_provider_npis": supervising_provider_npis,
|
1536
|
+
"supervising_provider_names": supervising_provider_names,
|
1537
|
+
"exclude_charges_linked_to_claims": exclude_charges_linked_to_claims,
|
1538
|
+
"patient_external_id_ranked_sort": patient_external_id_ranked_sort,
|
1539
|
+
"status_ranked_sort": status_ranked_sort,
|
1540
|
+
"charge_external_id_ranked_sort": charge_external_id_ranked_sort,
|
1541
|
+
"date_of_service_min_ranked_sort": date_of_service_min_ranked_sort,
|
1542
|
+
"date_of_service_max_ranked_sort": date_of_service_max_ranked_sort,
|
1543
|
+
"search_term": search_term,
|
1544
|
+
"billable_status": billable_status,
|
1545
|
+
"responsible_party": responsible_party,
|
1546
|
+
"claim_ids_ranked_sort": claim_ids_ranked_sort,
|
1547
|
+
"claim_creation_ids_ranked_sort": claim_creation_ids_ranked_sort,
|
1548
|
+
"billing_provider_npis_ranked_sort": billing_provider_npis_ranked_sort,
|
1549
|
+
"service_facility_name_ranked_sort": service_facility_name_ranked_sort,
|
1550
|
+
"primary_payer_ids_ranked_sort": primary_payer_ids_ranked_sort,
|
1551
|
+
"rendering_provider_npis_ranked_sort": rendering_provider_npis_ranked_sort,
|
1552
|
+
"rendering_provider_names_ranked_sort": rendering_provider_names_ranked_sort,
|
1553
|
+
"supervising_provider_npis_ranked_sort": supervising_provider_npis_ranked_sort,
|
1554
|
+
"supervising_provider_names_ranked_sort": supervising_provider_names_ranked_sort
|
1555
|
+
}.compact
|
1556
|
+
req.url "#{@request_client.get_url(environment: CandidApi,
|
1557
|
+
request_options: request_options)}/api/charge_captures/v1"
|
1558
|
+
end
|
1559
|
+
CandidApiClient::ChargeCapture::V1::Types::ChargeCapturePage.from_json(json_object: response.body)
|
1560
|
+
end
|
1561
|
+
end
|
1562
|
+
|
1563
|
+
# @param charge_capture_change_ids [Array<String>] A list of UUIDs corresponding to ChargeCapturePostBilledChanges.
|
1564
|
+
# All of the charges sent will be marked as resolved
|
1565
|
+
# @param resolved [Boolean] Whether the change has been resolved. If true, the change will be marked as
|
1566
|
+
# resolved.
|
1567
|
+
# If false, the change will be marked as unresolved.
|
1568
|
+
# @param request_options [CandidApiClient::RequestOptions]
|
1569
|
+
# @return [Array<CandidApiClient::ChargeCapture::V1::Types::ChargeCapturePostBilledChange>]
|
1570
|
+
# @example
|
1571
|
+
# api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
|
1572
|
+
# api.charge_capture.v_1.update_post_billed_changes(charge_capture_change_ids: ["d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"], resolved: true)
|
1573
|
+
def update_post_billed_changes(charge_capture_change_ids:, resolved:, request_options: nil)
|
1574
|
+
Async do
|
1575
|
+
response = @request_client.conn.patch do |req|
|
1576
|
+
req.options.timeout = request_options.timeout_in_seconds unless request_options&.timeout_in_seconds.nil?
|
1577
|
+
req.headers["Authorization"] = request_options.token unless request_options&.token.nil?
|
1578
|
+
req.headers = {
|
1579
|
+
**(req.headers || {}),
|
1580
|
+
**@request_client.get_headers,
|
1581
|
+
**(request_options&.additional_headers || {})
|
1582
|
+
}.compact
|
1583
|
+
req.body = {
|
1584
|
+
**(request_options&.additional_body_parameters || {}),
|
1585
|
+
charge_capture_change_ids: charge_capture_change_ids,
|
1586
|
+
resolved: resolved
|
1587
|
+
}.compact
|
1588
|
+
req.url "#{@request_client.get_url(environment: CandidApi,
|
1589
|
+
request_options: request_options)}/api/charge_captures/v1/changes"
|
1590
|
+
end
|
1591
|
+
parsed_json = JSON.parse(response.body)
|
1592
|
+
parsed_json&.map do |item|
|
1593
|
+
item = item.to_json
|
1594
|
+
CandidApiClient::ChargeCapture::V1::Types::ChargeCapturePostBilledChange.from_json(json_object: item)
|
1595
|
+
end
|
1596
|
+
end
|
1597
|
+
end
|
1598
|
+
end
|
1599
|
+
end
|
1600
|
+
end
|
1601
|
+
end
|