candidhealth 0.17.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/lib/candidhealth/auth/client.rb +28 -0
- data/lib/candidhealth/auth/v_2/client.rb +90 -0
- data/lib/candidhealth/auth/v_2/types/auth_get_token_request.rb +54 -0
- data/lib/candidhealth/auth/v_2/types/auth_get_token_response.rb +59 -0
- data/lib/candidhealth/auth/v_2/types/too_many_requests_error_type.rb +49 -0
- data/lib/candidhealth/billing_notes/client.rb +28 -0
- data/lib/candidhealth/billing_notes/v_2/client.rb +76 -0
- data/lib/candidhealth/billing_notes/v_2/types/billing_note.rb +89 -0
- data/lib/candidhealth/billing_notes/v_2/types/billing_note_base.rb +49 -0
- data/lib/candidhealth/billing_notes/v_2/types/billing_note_id.rb +9 -0
- data/lib/candidhealth/claim_submission/v_1/types/claim_frequency_type_code.rb +14 -0
- data/lib/candidhealth/claim_submission/v_1/types/claim_submission_record_create.rb +68 -0
- data/lib/candidhealth/claim_submission/v_1/types/external_claim_submission_create.rb +75 -0
- data/lib/candidhealth/claims/types/claim.rb +98 -0
- data/lib/candidhealth/claims/types/claim_status.rb +23 -0
- data/lib/candidhealth/commons/types/claim_adjustment_group_codes.rb +17 -0
- data/lib/candidhealth/commons/types/claim_id.rb +7 -0
- data/lib/candidhealth/commons/types/claim_submission_payer_responsibility_type.rb +10 -0
- data/lib/candidhealth/commons/types/date.rb +7 -0
- data/lib/candidhealth/commons/types/date_range_optional_end.rb +53 -0
- data/lib/candidhealth/commons/types/decimal.rb +7 -0
- data/lib/candidhealth/commons/types/delay_reason_code.rb +23 -0
- data/lib/candidhealth/commons/types/email.rb +7 -0
- data/lib/candidhealth/commons/types/emr_payer_crosswalk.rb +10 -0
- data/lib/candidhealth/commons/types/encounter_external_id.rb +7 -0
- data/lib/candidhealth/commons/types/encounter_id.rb +7 -0
- data/lib/candidhealth/commons/types/entity_not_found_error_message.rb +47 -0
- data/lib/candidhealth/commons/types/error_message.rb +7 -0
- data/lib/candidhealth/commons/types/facility_type_code.rb +61 -0
- data/lib/candidhealth/commons/types/http_service_unavailable_error_message.rb +47 -0
- data/lib/candidhealth/commons/types/insurance_type_code.rb +79 -0
- data/lib/candidhealth/commons/types/invoice_id.rb +7 -0
- data/lib/candidhealth/commons/types/link_url.rb +7 -0
- data/lib/candidhealth/commons/types/npi.rb +7 -0
- data/lib/candidhealth/commons/types/organization_id.rb +7 -0
- data/lib/candidhealth/commons/types/organization_not_authorized_error_message.rb +47 -0
- data/lib/candidhealth/commons/types/page_token.rb +7 -0
- data/lib/candidhealth/commons/types/patient_external_id.rb +7 -0
- data/lib/candidhealth/commons/types/patient_relationship_to_insured_code_all.rb +32 -0
- data/lib/candidhealth/commons/types/phone_number.rb +53 -0
- data/lib/candidhealth/commons/types/phone_number_type.rb +11 -0
- data/lib/candidhealth/commons/types/procedure_modifier.rb +395 -0
- data/lib/candidhealth/commons/types/provider_id.rb +7 -0
- data/lib/candidhealth/commons/types/region_national.rb +41 -0
- data/lib/candidhealth/commons/types/region_states.rb +48 -0
- data/lib/candidhealth/commons/types/regions.rb +92 -0
- data/lib/candidhealth/commons/types/removable_date_range_optional_end.rb +90 -0
- data/lib/candidhealth/commons/types/request_validation_error.rb +52 -0
- data/lib/candidhealth/commons/types/resource_page.rb +53 -0
- data/lib/candidhealth/commons/types/service_line_id.rb +7 -0
- data/lib/candidhealth/commons/types/service_line_units.rb +10 -0
- data/lib/candidhealth/commons/types/sort_direction.rb +10 -0
- data/lib/candidhealth/commons/types/source_of_payment_code.rb +31 -0
- data/lib/candidhealth/commons/types/state.rb +70 -0
- data/lib/candidhealth/commons/types/street_address_base.rb +75 -0
- data/lib/candidhealth/commons/types/street_address_long_zip.rb +82 -0
- data/lib/candidhealth/commons/types/street_address_short_zip.rb +82 -0
- data/lib/candidhealth/commons/types/task_assignment_id.rb +7 -0
- data/lib/candidhealth/commons/types/task_id.rb +7 -0
- data/lib/candidhealth/commons/types/task_note_id.rb +7 -0
- data/lib/candidhealth/commons/types/tax_id.rb +7 -0
- data/lib/candidhealth/commons/types/unauthorized_error_message.rb +47 -0
- data/lib/candidhealth/commons/types/unprocessable_entity_error_message.rb +47 -0
- data/lib/candidhealth/commons/types/updates_disabled_due_to_external_system_integration_error_message.rb +47 -0
- data/lib/candidhealth/commons/types/user_id.rb +7 -0
- data/lib/candidhealth/commons/types/work_queue_id.rb +7 -0
- data/lib/candidhealth/contracts/client.rb +28 -0
- data/lib/candidhealth/contracts/v_2/client.rb +336 -0
- data/lib/candidhealth/contracts/v_2/types/authorized_signatory.rb +83 -0
- data/lib/candidhealth/contracts/v_2/types/authorized_signatory_update.rb +92 -0
- data/lib/candidhealth/contracts/v_2/types/contract.rb +165 -0
- data/lib/candidhealth/contracts/v_2/types/contract_base.rb +128 -0
- data/lib/candidhealth/contracts/v_2/types/contract_id.rb +9 -0
- data/lib/candidhealth/contracts/v_2/types/contract_is_linked_to_fee_schedule_error.rb +49 -0
- data/lib/candidhealth/contracts/v_2/types/contract_status.rb +13 -0
- data/lib/candidhealth/contracts/v_2/types/contract_with_providers.rb +177 -0
- data/lib/candidhealth/contracts/v_2/types/contracting_provider_id.rb +9 -0
- data/lib/candidhealth/contracts/v_2/types/contracts_page.rb +65 -0
- data/lib/candidhealth/contracts/v_2/types/date_update.rb +92 -0
- data/lib/candidhealth/contracts/v_2/types/insurance_types.rb +103 -0
- data/lib/candidhealth/contracts/v_2/types/regions_update.rb +92 -0
- data/lib/candidhealth/contracts/v_2/types/rendering_providerid.rb +9 -0
- data/lib/candidhealth/diagnoses/types/diagnosis.rb +106 -0
- data/lib/candidhealth/diagnoses/types/diagnosis_create.rb +72 -0
- data/lib/candidhealth/diagnoses/types/diagnosis_id.rb +7 -0
- data/lib/candidhealth/diagnoses/types/diagnosis_type_code.rb +18 -0
- data/lib/candidhealth/diagnoses/types/standalone_diagnosis_create.rb +78 -0
- data/lib/candidhealth/eligibility/client.rb +28 -0
- data/lib/candidhealth/eligibility/v_2/client.rb +136 -0
- data/lib/candidhealth/encounter_providers/v_2/types/billing_provider.rb +104 -0
- data/lib/candidhealth/encounter_providers/v_2/types/encounter_provider.rb +103 -0
- data/lib/candidhealth/encounter_providers/v_2/types/encounter_provider_base.rb +60 -0
- data/lib/candidhealth/encounter_providers/v_2/types/provider_id.rb +9 -0
- data/lib/candidhealth/encounter_providers/v_2/types/referring_provider.rb +91 -0
- data/lib/candidhealth/encounter_providers/v_2/types/rendering_provider.rb +91 -0
- data/lib/candidhealth/encounters/client.rb +28 -0
- data/lib/candidhealth/encounters/v_4/client.rb +1125 -0
- data/lib/candidhealth/encounters/v_4/types/billable_status_type.rb +12 -0
- data/lib/candidhealth/encounters/v_4/types/cash_pay_payer_error_message.rb +49 -0
- data/lib/candidhealth/encounters/v_4/types/clinical_note.rb +67 -0
- data/lib/candidhealth/encounters/v_4/types/clinical_note_category.rb +64 -0
- data/lib/candidhealth/encounters/v_4/types/clinical_note_category_create.rb +59 -0
- data/lib/candidhealth/encounters/v_4/types/coding_attribution_type.rb +14 -0
- data/lib/candidhealth/encounters/v_4/types/encounter.rb +515 -0
- data/lib/candidhealth/encounters/v_4/types/encounter_base.rb +274 -0
- data/lib/candidhealth/encounters/v_4/types/encounter_external_id_uniqueness_error_type.rb +50 -0
- data/lib/candidhealth/encounters/v_4/types/encounter_guarantor_missing_contact_info_error_type.rb +49 -0
- data/lib/candidhealth/encounters/v_4/types/encounter_owner_of_next_action_type.rb +14 -0
- data/lib/candidhealth/encounters/v_4/types/encounter_page.rb +65 -0
- data/lib/candidhealth/encounters/v_4/types/encounter_patient_control_number_uniqueness_error_type.rb +49 -0
- data/lib/candidhealth/encounters/v_4/types/encounter_sort_options.rb +14 -0
- data/lib/candidhealth/encounters/v_4/types/encounter_submission_origin_type.rb +12 -0
- data/lib/candidhealth/encounters/v_4/types/intake_follow_up.rb +60 -0
- data/lib/candidhealth/encounters/v_4/types/intake_follow_up_id.rb +9 -0
- data/lib/candidhealth/encounters/v_4/types/intake_question.rb +64 -0
- data/lib/candidhealth/encounters/v_4/types/intake_question_id.rb +9 -0
- data/lib/candidhealth/encounters/v_4/types/intake_response_and_follow_ups.rb +58 -0
- data/lib/candidhealth/encounters/v_4/types/intervention.rb +87 -0
- data/lib/candidhealth/encounters/v_4/types/intervention_category.rb +14 -0
- data/lib/candidhealth/encounters/v_4/types/lab.rb +60 -0
- data/lib/candidhealth/encounters/v_4/types/lab_code_type.rb +12 -0
- data/lib/candidhealth/encounters/v_4/types/medication.rb +84 -0
- data/lib/candidhealth/encounters/v_4/types/note_category.rb +24 -0
- data/lib/candidhealth/encounters/v_4/types/patient_history_category.rb +59 -0
- data/lib/candidhealth/encounters/v_4/types/patient_history_category_enum.rb +14 -0
- data/lib/candidhealth/encounters/v_4/types/prior_authorization_number.rb +9 -0
- data/lib/candidhealth/encounters/v_4/types/responsible_party_type.rb +13 -0
- data/lib/candidhealth/encounters/v_4/types/rx_cui.rb +9 -0
- data/lib/candidhealth/encounters/v_4/types/service_authorization_exception_code.rb +19 -0
- data/lib/candidhealth/encounters/v_4/types/synchronicity_type.rb +12 -0
- data/lib/candidhealth/encounters/v_4/types/vitals.rb +78 -0
- data/lib/candidhealth/era/types/era.rb +59 -0
- data/lib/candidhealth/era/types/era_base.rb +53 -0
- data/lib/candidhealth/era/types/era_id.rb +7 -0
- data/lib/candidhealth/era/types/era_not_fully_processed_error_message.rb +53 -0
- data/lib/candidhealth/era_commons/types/claim_status_code_create.rb +18 -0
- data/lib/candidhealth/expected_network_status/client.rb +31 -0
- data/lib/candidhealth/expected_network_status/v_1/client.rb +112 -0
- data/lib/candidhealth/expected_network_status/v_1/types/expected_network_status.rb +13 -0
- data/lib/candidhealth/expected_network_status/v_1/types/expected_network_status_response.rb +66 -0
- data/lib/candidhealth/expected_network_status/v_2/client.rb +183 -0
- data/lib/candidhealth/expected_network_status/v_2/types/compute_all_in_network_providers_request.rb +119 -0
- data/lib/candidhealth/expected_network_status/v_2/types/compute_all_in_network_providers_response.rb +65 -0
- data/lib/candidhealth/expected_network_status/v_2/types/compute_all_in_network_rendering_providers_result.rb +107 -0
- data/lib/candidhealth/expected_network_status/v_2/types/expected_network_status_check_error_message.rb +49 -0
- data/lib/candidhealth/expected_network_status/v_2/types/expected_network_status_request_v_2.rb +119 -0
- data/lib/candidhealth/expected_network_status/v_2/types/expected_network_status_response_v_2.rb +62 -0
- data/lib/candidhealth/expected_network_status/v_2/types/expected_network_status_subscriber_information.rb +67 -0
- data/lib/candidhealth/expected_network_status/v_2/types/expected_network_status_v_2.rb +107 -0
- data/lib/candidhealth/expected_network_status/v_2/types/explanation.rb +18 -0
- data/lib/candidhealth/expected_network_status/v_2/types/in_network_rendering_providers_detail.rb +67 -0
- data/lib/candidhealth/expected_network_status/v_2/types/in_network_status.rb +57 -0
- data/lib/candidhealth/expected_network_status/v_2/types/indeterminate_network_status.rb +74 -0
- data/lib/candidhealth/expected_network_status/v_2/types/insurance_type.rb +62 -0
- data/lib/candidhealth/expected_network_status/v_2/types/insurance_type_codes.rb +103 -0
- data/lib/candidhealth/expected_network_status/v_2/types/line_of_business.rb +13 -0
- data/lib/candidhealth/expected_network_status/v_2/types/network_status_check_id.rb +9 -0
- data/lib/candidhealth/expected_network_status/v_2/types/out_of_network_status.rb +67 -0
- data/lib/candidhealth/expected_network_status/v_2/types/service_type.rb +51 -0
- data/lib/candidhealth/exports/client.rb +28 -0
- data/lib/candidhealth/exports/v_3/client.rb +102 -0
- data/lib/candidhealth/exports/v_3/types/get_exports_response.rb +75 -0
- data/lib/candidhealth/financials/types/account_type.rb +10 -0
- data/lib/candidhealth/financials/types/allocation.rb +58 -0
- data/lib/candidhealth/financials/types/allocation_create.rb +60 -0
- data/lib/candidhealth/financials/types/allocation_target.rb +118 -0
- data/lib/candidhealth/financials/types/allocation_target_create.rb +118 -0
- data/lib/candidhealth/financials/types/billing_provider_allocation_target.rb +48 -0
- data/lib/candidhealth/financials/types/claim_allocation_target.rb +54 -0
- data/lib/candidhealth/financials/types/invoice_update.rb +90 -0
- data/lib/candidhealth/financials/types/note_update.rb +89 -0
- data/lib/candidhealth/financials/types/patient_transaction_source.rb +15 -0
- data/lib/candidhealth/financials/types/refund_reason.rb +9 -0
- data/lib/candidhealth/financials/types/refund_reason_update.rb +90 -0
- data/lib/candidhealth/financials/types/service_line_allocation_target.rb +61 -0
- data/lib/candidhealth/guarantor/client.rb +28 -0
- data/lib/candidhealth/guarantor/v_1/client.rb +224 -0
- data/lib/candidhealth/guarantor/v_1/types/encounter_has_existing_guarantor_error_type.rb +49 -0
- data/lib/candidhealth/guarantor/v_1/types/guarantor.rb +121 -0
- data/lib/candidhealth/guarantor/v_1/types/guarantor_base.rb +84 -0
- data/lib/candidhealth/guarantor/v_1/types/guarantor_create.rb +114 -0
- data/lib/candidhealth/guarantor/v_1/types/guarantor_id.rb +9 -0
- data/lib/candidhealth/identifiers/types/identifier.rb +82 -0
- data/lib/candidhealth/identifiers/types/identifier_base.rb +71 -0
- data/lib/candidhealth/identifiers/types/identifier_code.rb +10 -0
- data/lib/candidhealth/identifiers/types/identifier_create.rb +71 -0
- data/lib/candidhealth/identifiers/types/identifier_id.rb +7 -0
- data/lib/candidhealth/identifiers/types/identifier_update.rb +83 -0
- data/lib/candidhealth/identifiers/types/identifier_value.rb +92 -0
- data/lib/candidhealth/identifiers/types/medicaid_provider_identifier.rb +53 -0
- data/lib/candidhealth/identifiers/types/medicare_provider_identifier.rb +53 -0
- data/lib/candidhealth/identifiers/types/updatable_identifier.rb +105 -0
- data/lib/candidhealth/individual/types/gender.rb +13 -0
- data/lib/candidhealth/individual/types/individual_base.rb +58 -0
- data/lib/candidhealth/individual/types/individual_id.rb +7 -0
- data/lib/candidhealth/individual/types/patient.rb +126 -0
- data/lib/candidhealth/individual/types/patient_base.rb +89 -0
- data/lib/candidhealth/individual/types/patient_create.rb +119 -0
- data/lib/candidhealth/individual/types/subscriber.rb +110 -0
- data/lib/candidhealth/individual/types/subscriber_base.rb +91 -0
- data/lib/candidhealth/individual/types/subscriber_create.rb +103 -0
- data/lib/candidhealth/insurance_adjudications/client.rb +28 -0
- data/lib/candidhealth/insurance_adjudications/v_1/client.rb +143 -0
- data/lib/candidhealth/insurance_adjudications/v_1/types/claim_adjudication.rb +101 -0
- data/lib/candidhealth/insurance_adjudications/v_1/types/claim_adjudication_create.rb +95 -0
- data/lib/candidhealth/insurance_adjudications/v_1/types/insurance_adjudication.rb +99 -0
- data/lib/candidhealth/insurance_adjudications/v_1/types/insurance_adjudication_create.rb +109 -0
- data/lib/candidhealth/insurance_adjudications/v_1/types/insurance_adjudication_id.rb +9 -0
- data/lib/candidhealth/insurance_adjudications/v_1/types/service_line_adjudication.rb +112 -0
- data/lib/candidhealth/insurance_adjudications/v_1/types/service_line_adjudication_create.rb +105 -0
- data/lib/candidhealth/insurance_adjudications/v_1/types/service_line_adjudication_id.rb +9 -0
- data/lib/candidhealth/insurance_cards/v_2/types/insurance_card.rb +123 -0
- data/lib/candidhealth/insurance_cards/v_2/types/insurance_card_base.rb +73 -0
- data/lib/candidhealth/insurance_cards/v_2/types/insurance_card_create.rb +123 -0
- data/lib/candidhealth/insurance_cards/v_2/types/insurance_card_id.rb +9 -0
- data/lib/candidhealth/insurance_payments/client.rb +28 -0
- data/lib/candidhealth/insurance_payments/v_1/client.rb +269 -0
- data/lib/candidhealth/insurance_payments/v_1/types/insurance_payment.rb +98 -0
- data/lib/candidhealth/insurance_payments/v_1/types/insurance_payment_create.rb +91 -0
- data/lib/candidhealth/insurance_payments/v_1/types/insurance_payment_id.rb +9 -0
- data/lib/candidhealth/insurance_payments/v_1/types/insurance_payment_sort_field.rb +13 -0
- data/lib/candidhealth/insurance_payments/v_1/types/insurance_payments_page.rb +65 -0
- data/lib/candidhealth/insurance_refunds/client.rb +28 -0
- data/lib/candidhealth/insurance_refunds/v_1/client.rb +280 -0
- data/lib/candidhealth/insurance_refunds/v_1/types/insurance_refund.rb +105 -0
- data/lib/candidhealth/insurance_refunds/v_1/types/insurance_refund_create.rb +98 -0
- data/lib/candidhealth/insurance_refunds/v_1/types/insurance_refund_id.rb +9 -0
- data/lib/candidhealth/insurance_refunds/v_1/types/insurance_refund_sort_field.rb +14 -0
- data/lib/candidhealth/insurance_refunds/v_1/types/insurance_refunds_page.rb +65 -0
- data/lib/candidhealth/invoices/types/invoice.rb +134 -0
- data/lib/candidhealth/invoices/types/invoice_item.rb +53 -0
- data/lib/candidhealth/invoices/types/invoice_status.rb +13 -0
- data/lib/candidhealth/organization_providers/client.rb +28 -0
- data/lib/candidhealth/organization_providers/v_2/types/address_type.rb +11 -0
- data/lib/candidhealth/organization_providers/v_2/types/employment_status.rb +12 -0
- data/lib/candidhealth/organization_providers/v_2/types/license_type.rb +78 -0
- data/lib/candidhealth/organization_providers/v_2/types/organization_provider.rb +159 -0
- data/lib/candidhealth/organization_providers/v_2/types/organization_provider_address.rb +61 -0
- data/lib/candidhealth/organization_providers/v_2/types/organization_provider_base.rb +132 -0
- data/lib/candidhealth/organization_providers/v_2/types/organization_provider_id.rb +9 -0
- data/lib/candidhealth/organization_providers/v_2/types/organization_provider_sort_options.rb +14 -0
- data/lib/candidhealth/organization_providers/v_2/types/provider_type.rb +12 -0
- data/lib/candidhealth/organization_providers/v_3/client.rb +239 -0
- data/lib/candidhealth/organization_providers/v_3/types/organization_provider_create_v_2.rb +147 -0
- data/lib/candidhealth/organization_providers/v_3/types/organization_provider_page_v_2.rb +65 -0
- data/lib/candidhealth/organization_providers/v_3/types/organization_provider_update_v_2.rb +143 -0
- data/lib/candidhealth/organization_providers/v_3/types/organization_provider_v_2.rb +154 -0
- data/lib/candidhealth/organization_service_facilities/client.rb +28 -0
- data/lib/candidhealth/organization_service_facilities/v_2/client.rb +256 -0
- data/lib/candidhealth/organization_service_facilities/v_2/types/organization_service_facility.rb +134 -0
- data/lib/candidhealth/organization_service_facilities/v_2/types/organization_service_facility_create.rb +127 -0
- data/lib/candidhealth/organization_service_facilities/v_2/types/organization_service_facility_id.rb +9 -0
- data/lib/candidhealth/organization_service_facilities/v_2/types/organization_service_facility_page.rb +65 -0
- data/lib/candidhealth/organization_service_facilities/v_2/types/organization_service_facility_update.rb +127 -0
- data/lib/candidhealth/organization_service_facilities/v_2/types/service_facility_mode.rb +12 -0
- data/lib/candidhealth/organization_service_facilities/v_2/types/service_facility_operational_status.rb +16 -0
- data/lib/candidhealth/organization_service_facilities/v_2/types/service_facility_physical_type.rb +24 -0
- data/lib/candidhealth/organization_service_facilities/v_2/types/service_facility_status.rb +13 -0
- data/lib/candidhealth/organization_service_facilities/v_2/types/service_facility_type.rb +133 -0
- data/lib/candidhealth/patient_payments/client.rb +28 -0
- data/lib/candidhealth/patient_payments/v_3/types/patient_payment.rb +130 -0
- data/lib/candidhealth/patient_payments/v_3/types/patient_payment_id.rb +9 -0
- data/lib/candidhealth/patient_payments/v_3/types/patient_payment_source.rb +19 -0
- data/lib/candidhealth/patient_payments/v_3/types/patient_payment_status.rb +21 -0
- data/lib/candidhealth/patient_payments/v_4/client.rb +304 -0
- data/lib/candidhealth/patient_payments/v_4/types/patient_payment.rb +120 -0
- data/lib/candidhealth/patient_payments/v_4/types/patient_payment_id.rb +9 -0
- data/lib/candidhealth/patient_payments/v_4/types/patient_payment_sort_field.rb +14 -0
- data/lib/candidhealth/patient_payments/v_4/types/patient_payments_page.rb +65 -0
- data/lib/candidhealth/patient_refunds/client.rb +28 -0
- data/lib/candidhealth/patient_refunds/v_1/client.rb +316 -0
- data/lib/candidhealth/patient_refunds/v_1/types/patient_refund.rb +127 -0
- data/lib/candidhealth/patient_refunds/v_1/types/patient_refund_id.rb +9 -0
- data/lib/candidhealth/patient_refunds/v_1/types/patient_refund_sort_field.rb +15 -0
- data/lib/candidhealth/patient_refunds/v_1/types/patient_refunds_page.rb +65 -0
- data/lib/candidhealth/payers/client.rb +28 -0
- data/lib/candidhealth/payers/v_3/client.rb +104 -0
- data/lib/candidhealth/payers/v_3/types/payer.rb +60 -0
- data/lib/candidhealth/payers/v_3/types/payer_id.rb +9 -0
- data/lib/candidhealth/payers/v_3/types/payer_identifier.rb +94 -0
- data/lib/candidhealth/payers/v_3/types/payer_info.rb +56 -0
- data/lib/candidhealth/payers/v_3/types/payer_name.rb +9 -0
- data/lib/candidhealth/payers/v_3/types/payer_page.rb +65 -0
- data/lib/candidhealth/payers/v_3/types/payer_uuid.rb +9 -0
- data/lib/candidhealth/remits/v_1/types/payee.rb +60 -0
- data/lib/candidhealth/remits/v_1/types/payee_identifier.rb +102 -0
- data/lib/candidhealth/service_facility/client.rb +89 -0
- data/lib/candidhealth/service_facility/types/encounter_service_facility.rb +77 -0
- data/lib/candidhealth/service_facility/types/encounter_service_facility_base.rb +72 -0
- data/lib/candidhealth/service_facility/types/service_facility_id.rb +7 -0
- data/lib/candidhealth/service_lines/v_2/types/denial_reason_content.rb +40 -0
- data/lib/candidhealth/service_lines/v_2/types/drug_identification.rb +86 -0
- data/lib/candidhealth/service_lines/v_2/types/measurement_unit_code.rb +15 -0
- data/lib/candidhealth/service_lines/v_2/types/service_id_qualifier.rb +17 -0
- data/lib/candidhealth/service_lines/v_2/types/service_line.rb +225 -0
- data/lib/candidhealth/service_lines/v_2/types/service_line_adjustment.rb +79 -0
- data/lib/candidhealth/service_lines/v_2/types/service_line_create.rb +120 -0
- data/lib/candidhealth/service_lines/v_2/types/service_line_denial_reason.rb +52 -0
- data/lib/candidhealth/service_lines/v_2/types/service_line_era_data.rb +62 -0
- data/lib/candidhealth/tags/types/tag.rb +65 -0
- data/lib/candidhealth/tags/types/tag_color_enum.rb +18 -0
- data/lib/candidhealth/tags/types/tag_create.rb +59 -0
- data/lib/candidhealth/tags/types/tag_id.rb +7 -0
- data/lib/candidhealth/tasks/client.rb +28 -0
- data/lib/candidhealth/tasks/commons/types/task_category.rb +50 -0
- data/lib/candidhealth/tasks/commons/types/task_status.rb +17 -0
- data/lib/candidhealth/tasks/commons/types/task_type.rb +22 -0
- data/lib/candidhealth/tasks/v_3/client.rb +259 -0
- data/lib/candidhealth/tasks/v_3/types/task.rb +170 -0
- data/lib/candidhealth/tasks/v_3/types/task_action.rb +66 -0
- data/lib/candidhealth/tasks/v_3/types/task_action_execution_method.rb +79 -0
- data/lib/candidhealth/tasks/v_3/types/task_action_type.rb +12 -0
- data/lib/candidhealth/tasks/v_3/types/task_actions.rb +53 -0
- data/lib/candidhealth/tasks/v_3/types/task_assignment.rb +56 -0
- data/lib/candidhealth/tasks/v_3/types/task_create_v_3.rb +95 -0
- data/lib/candidhealth/tasks/v_3/types/task_note.rb +79 -0
- data/lib/candidhealth/tasks/v_3/types/task_page.rb +65 -0
- data/lib/candidhealth/tasks/v_3/types/task_sort_options.rb +32 -0
- data/lib/candidhealth/tasks/v_3/types/task_update_v_3.rb +66 -0
- data/lib/candidhealth/tasks/v_3/types/task_updated_to_deprecated_status_error_type.rb +50 -0
- data/lib/candidhealth/write_offs/client.rb +28 -0
- data/lib/candidhealth/write_offs/v_1/client.rb +218 -0
- data/lib/candidhealth/write_offs/v_1/types/create_write_offs_response.rb +53 -0
- data/lib/candidhealth/write_offs/v_1/types/insurance_write_off.rb +119 -0
- data/lib/candidhealth/write_offs/v_1/types/insurance_write_off_create.rb +100 -0
- data/lib/candidhealth/write_offs/v_1/types/insurance_write_off_reason.rb +25 -0
- data/lib/candidhealth/write_offs/v_1/types/insurance_write_off_target.rb +103 -0
- data/lib/candidhealth/write_offs/v_1/types/patient_write_off.rb +102 -0
- data/lib/candidhealth/write_offs/v_1/types/patient_write_off_create.rb +83 -0
- data/lib/candidhealth/write_offs/v_1/types/patient_write_off_reason.rb +19 -0
- data/lib/candidhealth/write_offs/v_1/types/write_off.rb +94 -0
- data/lib/candidhealth/write_offs/v_1/types/write_off_create.rb +94 -0
- data/lib/candidhealth/write_offs/v_1/types/write_off_id.rb +9 -0
- data/lib/candidhealth/write_offs/v_1/types/write_off_sort_field.rb +13 -0
- data/lib/candidhealth/write_offs/v_1/types/write_offs_page.rb +65 -0
- data/lib/candidhealth/x_12/v_1/types/carc.rb +412 -0
- data/lib/candidhealth/x_12/v_1/types/claim_adjustment_reason_code.rb +62 -0
- data/lib/candidhealth/x_12/v_1/types/rarc.rb +1070 -0
- data/lib/candidhealth/x_12/v_1/types/remittance_advice_remark_code.rb +50 -0
- data/lib/candidhealth.rb +129 -0
- data/lib/environment.rb +8 -0
- data/lib/gemconfig.rb +14 -0
- data/lib/requests.rb +113 -0
- data/lib/types_export.rb +303 -0
- metadata +468 -0
@@ -0,0 +1,75 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require "date"
|
4
|
+
require_relative "claim_submission_record_create"
|
5
|
+
require "json"
|
6
|
+
|
7
|
+
module CandidApiClient
|
8
|
+
module ClaimSubmission
|
9
|
+
module V1
|
10
|
+
class ExternalClaimSubmissionCreate
|
11
|
+
attr_reader :claim_created_at, :patient_control_number, :submission_records, :additional_properties
|
12
|
+
|
13
|
+
# @param claim_created_at [DateTime] When the claim was created in the external system.
|
14
|
+
# @param patient_control_number [String] The Patient Control Number sent on the claim to the payer. To guarantee compatibility with all payers, this field must consist
|
15
|
+
# only of uppercase letters and numbers and be no more than 14 characters long.
|
16
|
+
# @param submission_records [Array<ClaimSubmission::V1::ClaimSubmissionRecordCreate>] A successful claim submission record will be created for each value provided.
|
17
|
+
# An empty list may be provided for cases where the claim originated in an external system but was never submitted to a payer.
|
18
|
+
# @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
|
19
|
+
# @return [ClaimSubmission::V1::ExternalClaimSubmissionCreate]
|
20
|
+
def initialize(claim_created_at:, patient_control_number:, submission_records:, additional_properties: nil)
|
21
|
+
# @type [DateTime] When the claim was created in the external system.
|
22
|
+
@claim_created_at = claim_created_at
|
23
|
+
# @type [String] The Patient Control Number sent on the claim to the payer. To guarantee compatibility with all payers, this field must consist
|
24
|
+
# only of uppercase letters and numbers and be no more than 14 characters long.
|
25
|
+
@patient_control_number = patient_control_number
|
26
|
+
# @type [Array<ClaimSubmission::V1::ClaimSubmissionRecordCreate>] A successful claim submission record will be created for each value provided.
|
27
|
+
# An empty list may be provided for cases where the claim originated in an external system but was never submitted to a payer.
|
28
|
+
@submission_records = submission_records
|
29
|
+
# @type [OpenStruct] Additional properties unmapped to the current class definition
|
30
|
+
@additional_properties = additional_properties
|
31
|
+
end
|
32
|
+
|
33
|
+
# Deserialize a JSON object to an instance of ExternalClaimSubmissionCreate
|
34
|
+
#
|
35
|
+
# @param json_object [JSON]
|
36
|
+
# @return [ClaimSubmission::V1::ExternalClaimSubmissionCreate]
|
37
|
+
def self.from_json(json_object:)
|
38
|
+
struct = JSON.parse(json_object, object_class: OpenStruct)
|
39
|
+
parsed_json = JSON.parse(json_object)
|
40
|
+
claim_created_at = unless parsed_json["claim_created_at"].nil?
|
41
|
+
DateTime.parse(parsed_json["claim_created_at"])
|
42
|
+
end
|
43
|
+
patient_control_number = struct.patient_control_number
|
44
|
+
submission_records = parsed_json["submission_records"]&.map do |v|
|
45
|
+
v = v.to_json
|
46
|
+
ClaimSubmission::V1::ClaimSubmissionRecordCreate.from_json(json_object: v)
|
47
|
+
end
|
48
|
+
new(claim_created_at: claim_created_at, patient_control_number: patient_control_number,
|
49
|
+
submission_records: submission_records, additional_properties: struct)
|
50
|
+
end
|
51
|
+
|
52
|
+
# Serialize an instance of ExternalClaimSubmissionCreate to a JSON object
|
53
|
+
#
|
54
|
+
# @return [JSON]
|
55
|
+
def to_json(*_args)
|
56
|
+
{
|
57
|
+
"claim_created_at": @claim_created_at,
|
58
|
+
"patient_control_number": @patient_control_number,
|
59
|
+
"submission_records": @submission_records
|
60
|
+
}.to_json
|
61
|
+
end
|
62
|
+
|
63
|
+
# Leveraged for Union-type generation, validate_raw attempts to parse the given hash and check each fields type against the current object's property definitions.
|
64
|
+
#
|
65
|
+
# @param obj [Object]
|
66
|
+
# @return [Void]
|
67
|
+
def self.validate_raw(obj:)
|
68
|
+
obj.claim_created_at.is_a?(DateTime) != false || raise("Passed value for field obj.claim_created_at is not the expected type, validation failed.")
|
69
|
+
obj.patient_control_number.is_a?(String) != false || raise("Passed value for field obj.patient_control_number is not the expected type, validation failed.")
|
70
|
+
obj.submission_records.is_a?(Array) != false || raise("Passed value for field obj.submission_records is not the expected type, validation failed.")
|
71
|
+
end
|
72
|
+
end
|
73
|
+
end
|
74
|
+
end
|
75
|
+
end
|
@@ -0,0 +1,98 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require_relative "../../commons/types/claim_id"
|
4
|
+
require_relative "claim_status"
|
5
|
+
require_relative "../../service_lines/v_2/types/service_line"
|
6
|
+
require_relative "../../era/types/era"
|
7
|
+
require "json"
|
8
|
+
|
9
|
+
module CandidApiClient
|
10
|
+
class Claims
|
11
|
+
class Claim
|
12
|
+
attr_reader :claim_id, :status, :clearinghouse, :clearinghouse_claim_id, :payer_claim_id, :service_lines, :eras,
|
13
|
+
:additional_properties
|
14
|
+
|
15
|
+
# @param claim_id [Commons::CLAIM_ID]
|
16
|
+
# @param status [Claims::ClaimStatus]
|
17
|
+
# @param clearinghouse [String]
|
18
|
+
# @param clearinghouse_claim_id [String]
|
19
|
+
# @param payer_claim_id [String]
|
20
|
+
# @param service_lines [Array<ServiceLines::V2::ServiceLine>]
|
21
|
+
# @param eras [Array<Era::Era>]
|
22
|
+
# @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
|
23
|
+
# @return [Claims::Claim]
|
24
|
+
def initialize(claim_id:, status:, service_lines:, eras:, clearinghouse: nil, clearinghouse_claim_id: nil,
|
25
|
+
payer_claim_id: nil, additional_properties: nil)
|
26
|
+
# @type [Commons::CLAIM_ID]
|
27
|
+
@claim_id = claim_id
|
28
|
+
# @type [Claims::ClaimStatus]
|
29
|
+
@status = status
|
30
|
+
# @type [String]
|
31
|
+
@clearinghouse = clearinghouse
|
32
|
+
# @type [String]
|
33
|
+
@clearinghouse_claim_id = clearinghouse_claim_id
|
34
|
+
# @type [String]
|
35
|
+
@payer_claim_id = payer_claim_id
|
36
|
+
# @type [Array<ServiceLines::V2::ServiceLine>]
|
37
|
+
@service_lines = service_lines
|
38
|
+
# @type [Array<Era::Era>]
|
39
|
+
@eras = eras
|
40
|
+
# @type [OpenStruct] Additional properties unmapped to the current class definition
|
41
|
+
@additional_properties = additional_properties
|
42
|
+
end
|
43
|
+
|
44
|
+
# Deserialize a JSON object to an instance of Claim
|
45
|
+
#
|
46
|
+
# @param json_object [JSON]
|
47
|
+
# @return [Claims::Claim]
|
48
|
+
def self.from_json(json_object:)
|
49
|
+
struct = JSON.parse(json_object, object_class: OpenStruct)
|
50
|
+
parsed_json = JSON.parse(json_object)
|
51
|
+
claim_id = struct.claim_id
|
52
|
+
status = struct.status
|
53
|
+
clearinghouse = struct.clearinghouse
|
54
|
+
clearinghouse_claim_id = struct.clearinghouse_claim_id
|
55
|
+
payer_claim_id = struct.payer_claim_id
|
56
|
+
service_lines = parsed_json["service_lines"]&.map do |v|
|
57
|
+
v = v.to_json
|
58
|
+
ServiceLines::V2::ServiceLine.from_json(json_object: v)
|
59
|
+
end
|
60
|
+
eras = parsed_json["eras"]&.map do |v|
|
61
|
+
v = v.to_json
|
62
|
+
Era::Era.from_json(json_object: v)
|
63
|
+
end
|
64
|
+
new(claim_id: claim_id, status: status, clearinghouse: clearinghouse,
|
65
|
+
clearinghouse_claim_id: clearinghouse_claim_id, payer_claim_id: payer_claim_id, service_lines: service_lines, eras: eras, additional_properties: struct)
|
66
|
+
end
|
67
|
+
|
68
|
+
# Serialize an instance of Claim to a JSON object
|
69
|
+
#
|
70
|
+
# @return [JSON]
|
71
|
+
def to_json(*_args)
|
72
|
+
{
|
73
|
+
"claim_id": @claim_id,
|
74
|
+
"status": @status,
|
75
|
+
"clearinghouse": @clearinghouse,
|
76
|
+
"clearinghouse_claim_id": @clearinghouse_claim_id,
|
77
|
+
"payer_claim_id": @payer_claim_id,
|
78
|
+
"service_lines": @service_lines,
|
79
|
+
"eras": @eras
|
80
|
+
}.to_json
|
81
|
+
end
|
82
|
+
|
83
|
+
# Leveraged for Union-type generation, validate_raw attempts to parse the given hash and check each fields type against the current object's property definitions.
|
84
|
+
#
|
85
|
+
# @param obj [Object]
|
86
|
+
# @return [Void]
|
87
|
+
def self.validate_raw(obj:)
|
88
|
+
obj.claim_id.is_a?(String) != false || raise("Passed value for field obj.claim_id is not the expected type, validation failed.")
|
89
|
+
obj.status.is_a?(Claims::ClaimStatus) != false || raise("Passed value for field obj.status is not the expected type, validation failed.")
|
90
|
+
obj.clearinghouse&.is_a?(String) != false || raise("Passed value for field obj.clearinghouse is not the expected type, validation failed.")
|
91
|
+
obj.clearinghouse_claim_id&.is_a?(String) != false || raise("Passed value for field obj.clearinghouse_claim_id is not the expected type, validation failed.")
|
92
|
+
obj.payer_claim_id&.is_a?(String) != false || raise("Passed value for field obj.payer_claim_id is not the expected type, validation failed.")
|
93
|
+
obj.service_lines.is_a?(Array) != false || raise("Passed value for field obj.service_lines is not the expected type, validation failed.")
|
94
|
+
obj.eras.is_a?(Array) != false || raise("Passed value for field obj.eras is not the expected type, validation failed.")
|
95
|
+
end
|
96
|
+
end
|
97
|
+
end
|
98
|
+
end
|
@@ -0,0 +1,23 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module CandidApiClient
|
4
|
+
class Claims
|
5
|
+
class ClaimStatus
|
6
|
+
BILLER_RECEIVED = "biller_received"
|
7
|
+
CODED = "coded"
|
8
|
+
SUBMITTED_TO_PAYER = "submitted_to_payer"
|
9
|
+
MISSING_INFORMATION = "missing_information"
|
10
|
+
NOT_BILLABLE = "not_billable"
|
11
|
+
WAITING_FOR_PROVIDER = "waiting_for_provider"
|
12
|
+
ERA_RECEIVED = "era_received"
|
13
|
+
REJECTED = "rejected"
|
14
|
+
DENIED = "denied"
|
15
|
+
PAID = "paid"
|
16
|
+
PAID_INCORRECTLY = "paid_incorrectly"
|
17
|
+
FINALIZED_PAID = "finalized_paid"
|
18
|
+
FINALIZED_DENIED = "finalized_denied"
|
19
|
+
HELD_BY_CUSTOMER = "held_by_customer"
|
20
|
+
ERA_REQUIRES_REVIEW = "era_requires_review"
|
21
|
+
end
|
22
|
+
end
|
23
|
+
end
|
@@ -0,0 +1,53 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require_relative "date"
|
4
|
+
require "json"
|
5
|
+
|
6
|
+
module CandidApiClient
|
7
|
+
class Commons
|
8
|
+
class DateRangeOptionalEnd
|
9
|
+
attr_reader :start_date, :end_date, :additional_properties
|
10
|
+
|
11
|
+
# @param start_date [Commons::DATE]
|
12
|
+
# @param end_date [Commons::DATE]
|
13
|
+
# @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
|
14
|
+
# @return [Commons::DateRangeOptionalEnd]
|
15
|
+
def initialize(start_date:, end_date: nil, additional_properties: nil)
|
16
|
+
# @type [Commons::DATE]
|
17
|
+
@start_date = start_date
|
18
|
+
# @type [Commons::DATE]
|
19
|
+
@end_date = end_date
|
20
|
+
# @type [OpenStruct] Additional properties unmapped to the current class definition
|
21
|
+
@additional_properties = additional_properties
|
22
|
+
end
|
23
|
+
|
24
|
+
# Deserialize a JSON object to an instance of DateRangeOptionalEnd
|
25
|
+
#
|
26
|
+
# @param json_object [JSON]
|
27
|
+
# @return [Commons::DateRangeOptionalEnd]
|
28
|
+
def self.from_json(json_object:)
|
29
|
+
struct = JSON.parse(json_object, object_class: OpenStruct)
|
30
|
+
JSON.parse(json_object)
|
31
|
+
start_date = struct.start_date
|
32
|
+
end_date = struct.end_date
|
33
|
+
new(start_date: start_date, end_date: end_date, additional_properties: struct)
|
34
|
+
end
|
35
|
+
|
36
|
+
# Serialize an instance of DateRangeOptionalEnd to a JSON object
|
37
|
+
#
|
38
|
+
# @return [JSON]
|
39
|
+
def to_json(*_args)
|
40
|
+
{ "start_date": @start_date, "end_date": @end_date }.to_json
|
41
|
+
end
|
42
|
+
|
43
|
+
# Leveraged for Union-type generation, validate_raw attempts to parse the given hash and check each fields type against the current object's property definitions.
|
44
|
+
#
|
45
|
+
# @param obj [Object]
|
46
|
+
# @return [Void]
|
47
|
+
def self.validate_raw(obj:)
|
48
|
+
obj.start_date.is_a?(String) != false || raise("Passed value for field obj.start_date is not the expected type, validation failed.")
|
49
|
+
obj.end_date&.is_a?(String) != false || raise("Passed value for field obj.end_date is not the expected type, validation failed.")
|
50
|
+
end
|
51
|
+
end
|
52
|
+
end
|
53
|
+
end
|
@@ -0,0 +1,23 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module CandidApiClient
|
4
|
+
class Commons
|
5
|
+
# Code indicating the reason why a request was delayed
|
6
|
+
class DelayReasonCode
|
7
|
+
C_1 = "1"
|
8
|
+
C_2 = "2"
|
9
|
+
C_3 = "3"
|
10
|
+
C_4 = "4"
|
11
|
+
C_5 = "5"
|
12
|
+
C_6 = "6"
|
13
|
+
C_7 = "7"
|
14
|
+
C_8 = "8"
|
15
|
+
C_9 = "9"
|
16
|
+
C_10 = "10"
|
17
|
+
C_11 = "11"
|
18
|
+
C_15 = "15"
|
19
|
+
C_16 = "16"
|
20
|
+
C_17 = "17"
|
21
|
+
end
|
22
|
+
end
|
23
|
+
end
|
@@ -0,0 +1,47 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require "json"
|
4
|
+
|
5
|
+
module CandidApiClient
|
6
|
+
class Commons
|
7
|
+
class EntityNotFoundErrorMessage
|
8
|
+
attr_reader :id, :additional_properties
|
9
|
+
|
10
|
+
# @param id [String]
|
11
|
+
# @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
|
12
|
+
# @return [Commons::EntityNotFoundErrorMessage]
|
13
|
+
def initialize(id:, additional_properties: nil)
|
14
|
+
# @type [String]
|
15
|
+
@id = id
|
16
|
+
# @type [OpenStruct] Additional properties unmapped to the current class definition
|
17
|
+
@additional_properties = additional_properties
|
18
|
+
end
|
19
|
+
|
20
|
+
# Deserialize a JSON object to an instance of EntityNotFoundErrorMessage
|
21
|
+
#
|
22
|
+
# @param json_object [JSON]
|
23
|
+
# @return [Commons::EntityNotFoundErrorMessage]
|
24
|
+
def self.from_json(json_object:)
|
25
|
+
struct = JSON.parse(json_object, object_class: OpenStruct)
|
26
|
+
JSON.parse(json_object)
|
27
|
+
id = struct.id
|
28
|
+
new(id: id, additional_properties: struct)
|
29
|
+
end
|
30
|
+
|
31
|
+
# Serialize an instance of EntityNotFoundErrorMessage to a JSON object
|
32
|
+
#
|
33
|
+
# @return [JSON]
|
34
|
+
def to_json(*_args)
|
35
|
+
{ "id": @id }.to_json
|
36
|
+
end
|
37
|
+
|
38
|
+
# Leveraged for Union-type generation, validate_raw attempts to parse the given hash and check each fields type against the current object's property definitions.
|
39
|
+
#
|
40
|
+
# @param obj [Object]
|
41
|
+
# @return [Void]
|
42
|
+
def self.validate_raw(obj:)
|
43
|
+
obj.id.is_a?(String) != false || raise("Passed value for field obj.id is not the expected type, validation failed.")
|
44
|
+
end
|
45
|
+
end
|
46
|
+
end
|
47
|
+
end
|
@@ -0,0 +1,61 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module CandidApiClient
|
4
|
+
class Commons
|
5
|
+
# Box 24B on the CMS-1500 claim form. Line-level place of service is not currently supported.
|
6
|
+
# 02 for telemedicine, 11 for in-person. Full list here:
|
7
|
+
# https://www.cms.gov/Medicare/Coding/place-of-service-codes/Place_of_Service_Code_Set
|
8
|
+
class FacilityTypeCode
|
9
|
+
PHARMACY = "01"
|
10
|
+
TELEHEALTH = "02"
|
11
|
+
SCHOOL = "03"
|
12
|
+
HOMELESS_SHELTER = "04"
|
13
|
+
INDIAN_HEALTH_SERVICE_FREE_STANDING = "05"
|
14
|
+
INDIAN_HEALTH_SERVICE_PROVIDER_BASED = "06"
|
15
|
+
TRIBAL_FREE_STANDING = "07"
|
16
|
+
TRIBAL_PROVIDER_BASED = "08"
|
17
|
+
PRISON_OR_CORRECTIONAL_FACILITY = "09"
|
18
|
+
TELEHEALTH_PATIENT_HOME = "10"
|
19
|
+
OFFICE = "11"
|
20
|
+
HOME = "12"
|
21
|
+
ASSISTED_LIVING_FACILITY = "13"
|
22
|
+
GROUP_HOME = "14"
|
23
|
+
MOBILE_UNIT = "15"
|
24
|
+
TEMPORARY_LODGING = "16"
|
25
|
+
WALK_IN_RETAIL_HEALTH_CLINIC = "17"
|
26
|
+
PLACE_OF_EMPLOYMENT_WORKSITE = "18"
|
27
|
+
OFF_CAMPUS_OUTPATIENT_HOSPITAL = "19"
|
28
|
+
URGENT_CARE_FACILITY = "20"
|
29
|
+
INPATIENT_HOSPITAL = "21"
|
30
|
+
OUTPATIENT_HOSPITAL = "22"
|
31
|
+
EMERGENCY_ROOM_HOSPITAL = "23"
|
32
|
+
AMBULATORY_SURGICAL_CENTER = "24"
|
33
|
+
BIRTHING_CENTER = "25"
|
34
|
+
MILITARY_TREATMENT_FACILITY = "26"
|
35
|
+
SKILLED_NURSING_FACILITY = "31"
|
36
|
+
NURSING_FACILITY = "32"
|
37
|
+
CUSTODIAL_CARE_FACILITY = "33"
|
38
|
+
HOSPICE = "34"
|
39
|
+
AMBULANCE_LAND = "41"
|
40
|
+
AMBULANCE_AIR_OR_WATER = "42"
|
41
|
+
INDEPENDENT_CLINIC = "49"
|
42
|
+
FEDERALLY_QUALIFIED_HEALTH_CENTER = "50"
|
43
|
+
INPATIENT_PSYCHIATRIC_FACILITY = "51"
|
44
|
+
PSYCHIATRIC_FACILITY_PARTIAL_HOSPITALIZATION = "52"
|
45
|
+
COMMUNITY_MENTAL_HEALTH_CENTER = "53"
|
46
|
+
INTERMEDIATE_CARE_FACILITY_MENTALLY_RETARDED = "54"
|
47
|
+
RESIDENTIAL_SUBSTANCE_ABUSE_TREATMENT_FACILITY = "55"
|
48
|
+
PSYCHIATRIC_RESIDENTIAL_TREATMENT_CENTER = "56"
|
49
|
+
NON_RESIDENTIAL_SUBSTANCE_ABUSE_TREATMENT_FACILITY = "57"
|
50
|
+
NON_RESIDENTIAL_OPIOID_TREATMENT_FACILITY = "58"
|
51
|
+
MASS_IMMUNIZATION_CENTER = "60"
|
52
|
+
COMPREHENSIVE_INPATIENT_REHABILITATION_FACILITY = "61"
|
53
|
+
COMPREHENSIVE_OUTPATIENT_REHABILITATION_FACILITY = "62"
|
54
|
+
END_STAGE_RENAL_DISEASE_TREATMENT_FACILITY = "65"
|
55
|
+
STATE_OR_LOCAL_PUBLIC_HEALTH_CLINIC = "71"
|
56
|
+
RURAL_HEALTH_CLINIC = "72"
|
57
|
+
INDEPENDENT_LABORATORY = "81"
|
58
|
+
OTHER_UNLISTED_FACILITY = "99"
|
59
|
+
end
|
60
|
+
end
|
61
|
+
end
|
@@ -0,0 +1,47 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require "json"
|
4
|
+
|
5
|
+
module CandidApiClient
|
6
|
+
class Commons
|
7
|
+
class HttpServiceUnavailableErrorMessage
|
8
|
+
attr_reader :message, :additional_properties
|
9
|
+
|
10
|
+
# @param message [String]
|
11
|
+
# @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
|
12
|
+
# @return [Commons::HttpServiceUnavailableErrorMessage]
|
13
|
+
def initialize(message: nil, additional_properties: nil)
|
14
|
+
# @type [String]
|
15
|
+
@message = message
|
16
|
+
# @type [OpenStruct] Additional properties unmapped to the current class definition
|
17
|
+
@additional_properties = additional_properties
|
18
|
+
end
|
19
|
+
|
20
|
+
# Deserialize a JSON object to an instance of HttpServiceUnavailableErrorMessage
|
21
|
+
#
|
22
|
+
# @param json_object [JSON]
|
23
|
+
# @return [Commons::HttpServiceUnavailableErrorMessage]
|
24
|
+
def self.from_json(json_object:)
|
25
|
+
struct = JSON.parse(json_object, object_class: OpenStruct)
|
26
|
+
JSON.parse(json_object)
|
27
|
+
message = struct.message
|
28
|
+
new(message: message, additional_properties: struct)
|
29
|
+
end
|
30
|
+
|
31
|
+
# Serialize an instance of HttpServiceUnavailableErrorMessage to a JSON object
|
32
|
+
#
|
33
|
+
# @return [JSON]
|
34
|
+
def to_json(*_args)
|
35
|
+
{ "message": @message }.to_json
|
36
|
+
end
|
37
|
+
|
38
|
+
# Leveraged for Union-type generation, validate_raw attempts to parse the given hash and check each fields type against the current object's property definitions.
|
39
|
+
#
|
40
|
+
# @param obj [Object]
|
41
|
+
# @return [Void]
|
42
|
+
def self.validate_raw(obj:)
|
43
|
+
obj.message&.is_a?(String) != false || raise("Passed value for field obj.message is not the expected type, validation failed.")
|
44
|
+
end
|
45
|
+
end
|
46
|
+
end
|
47
|
+
end
|
@@ -0,0 +1,79 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module CandidApiClient
|
4
|
+
class Commons
|
5
|
+
# Code identifying the type of insurance policy within a specific insurance program (X12 008020 Element 1336)
|
6
|
+
class InsuranceTypeCode
|
7
|
+
C_01 = "01"
|
8
|
+
C_12 = "12"
|
9
|
+
C_13 = "13"
|
10
|
+
C_14 = "14"
|
11
|
+
C_15 = "15"
|
12
|
+
C_16 = "16"
|
13
|
+
C_17 = "17"
|
14
|
+
C_18 = "18"
|
15
|
+
C_19 = "19"
|
16
|
+
C_41 = "41"
|
17
|
+
C_42 = "42"
|
18
|
+
C_43 = "43"
|
19
|
+
C_47 = "47"
|
20
|
+
CAP = "AP"
|
21
|
+
CC_1 = "C1"
|
22
|
+
CCO = "CO"
|
23
|
+
CCP = "CP"
|
24
|
+
CD = "D"
|
25
|
+
CDB = "DB"
|
26
|
+
CE = "E"
|
27
|
+
CEP = "EP"
|
28
|
+
CFF = "FF"
|
29
|
+
CGP = "GP"
|
30
|
+
CHA = "HA"
|
31
|
+
CHB = "HB"
|
32
|
+
CHD = "HD"
|
33
|
+
CHG = "HG"
|
34
|
+
CHM = "HM"
|
35
|
+
CHN = "HN"
|
36
|
+
CHP = "HP"
|
37
|
+
CHS = "HS"
|
38
|
+
CIN = "IN"
|
39
|
+
CIP = "IP"
|
40
|
+
CLC = "LC"
|
41
|
+
CLD = "LD"
|
42
|
+
CLI = "LI"
|
43
|
+
CLT = "LT"
|
44
|
+
CM = "M"
|
45
|
+
CMA = "MA"
|
46
|
+
CMB = "MB"
|
47
|
+
CMC = "MC"
|
48
|
+
CMD = "MD"
|
49
|
+
CME = "ME"
|
50
|
+
CMF = "MF"
|
51
|
+
CMH = "MH"
|
52
|
+
CMI = "MI"
|
53
|
+
CMJ = "MJ"
|
54
|
+
CMK = "MK"
|
55
|
+
CML = "ML"
|
56
|
+
CMM = "MM"
|
57
|
+
CMN = "MN"
|
58
|
+
CMO = "MO"
|
59
|
+
CMP = "MP"
|
60
|
+
CMR = "MR"
|
61
|
+
CMT = "MT"
|
62
|
+
CMV = "MV"
|
63
|
+
COA = "OA"
|
64
|
+
COT = "OT"
|
65
|
+
CPE = "PE"
|
66
|
+
CPL = "PL"
|
67
|
+
CPP = "PP"
|
68
|
+
CPR = "PR"
|
69
|
+
CPS = "PS"
|
70
|
+
CQM = "QM"
|
71
|
+
CRP = "RP"
|
72
|
+
CSP = "SP"
|
73
|
+
CTF = "TF"
|
74
|
+
CU = "U"
|
75
|
+
CWC = "WC"
|
76
|
+
CWU = "WU"
|
77
|
+
end
|
78
|
+
end
|
79
|
+
end
|