candidhealth 0.45.0 → 0.46.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/candidhealth/billing_notes/v_2/client.rb +2 -2
- data/lib/candidhealth/charge_capture/v_1/client.rb +10 -94
- data/lib/candidhealth/charge_capture/v_1/types/charge_capture_data.rb +16 -16
- data/lib/candidhealth/charge_capture_bundles/v_1/client.rb +2 -44
- data/lib/candidhealth/contracts/v_2/client.rb +18 -34
- data/lib/candidhealth/contracts/v_2/types/contract_sort_field.rb +18 -0
- data/lib/candidhealth/credentialing/v_2/client.rb +6 -44
- data/lib/candidhealth/diagnoses/client.rb +4 -14
- data/lib/candidhealth/eligibility/v_2/client.rb +4 -4
- data/lib/candidhealth/encounter_attachments/v_1/client.rb +0 -6
- data/lib/candidhealth/encounter_providers/v_2/client.rb +16 -16
- data/lib/candidhealth/encounters/v_4/client.rb +38 -102
- data/lib/candidhealth/encounters/v_4/types/encounter.rb +12 -12
- data/lib/candidhealth/encounters/v_4/types/encounter_base.rb +10 -10
- data/lib/candidhealth/encounters/v_4/types/encounter_create_from_pre_encounter.rb +10 -10
- data/lib/candidhealth/encounters/v_4/types/encounter_optional.rb +14 -14
- data/lib/candidhealth/expected_network_status/v_1/client.rb +12 -18
- data/lib/candidhealth/expected_network_status/v_2/client.rb +4 -4
- data/lib/candidhealth/expected_network_status/v_2/types/empty_object.rb +53 -0
- data/lib/candidhealth/expected_network_status/v_2/types/insurance_type_codes.rb +13 -10
- data/lib/candidhealth/external_payment_account_config/v_1/client.rb +2 -2
- data/lib/candidhealth/fee_schedules/v_3/client.rb +12 -68
- data/lib/candidhealth/fee_schedules/v_3/types/payer_threshold.rb +3 -3
- data/lib/candidhealth/fee_schedules/v_3/types/rate_entry.rb +2 -2
- data/lib/candidhealth/guarantor/v_1/client.rb +4 -4
- data/lib/candidhealth/import_invoice/v_1/client.rb +6 -28
- data/lib/candidhealth/insurance_adjudications/v_1/client.rb +2 -2
- data/lib/candidhealth/insurance_payments/v_1/client.rb +2 -20
- data/lib/candidhealth/insurance_refunds/v_1/client.rb +6 -24
- data/lib/candidhealth/medication_dispense/v_1/client.rb +2 -2
- data/lib/candidhealth/non_insurance_payer_payments/v_1/client.rb +6 -22
- data/lib/candidhealth/non_insurance_payer_refunds/v_1/client.rb +6 -22
- data/lib/candidhealth/non_insurance_payers/v_1/client.rb +6 -22
- data/lib/candidhealth/organization_providers/v_3/client.rb +4 -4
- data/lib/candidhealth/organization_service_facilities/v_2/client.rb +2 -2
- data/lib/candidhealth/patient_payments/v_4/client.rb +8 -38
- data/lib/candidhealth/patient_refunds/v_1/client.rb +8 -40
- data/lib/candidhealth/payer_plan_groups/v_1/client.rb +6 -30
- data/lib/candidhealth/pre_encounter/appointments/v_1/client.rb +32 -44
- data/lib/candidhealth/pre_encounter/appointments/v_1/types/appointment.rb +4 -4
- data/lib/candidhealth/pre_encounter/common/types/base_model.rb +4 -4
- data/lib/candidhealth/pre_encounter/coverages/v_1/client.rb +24 -34
- data/lib/candidhealth/pre_encounter/coverages/v_1/types/coverage.rb +4 -4
- data/lib/candidhealth/pre_encounter/eligibility_checks/v_1/client.rb +2 -2
- data/lib/candidhealth/pre_encounter/images/v_1/client.rb +20 -20
- data/lib/candidhealth/pre_encounter/images/v_1/types/image.rb +6 -6
- data/lib/candidhealth/pre_encounter/lists/v_1/client.rb +4 -28
- data/lib/candidhealth/pre_encounter/notes/v_1/client.rb +14 -14
- data/lib/candidhealth/pre_encounter/notes/v_1/types/note.rb +4 -4
- data/lib/candidhealth/pre_encounter/patients/v_1/client.rb +56 -68
- data/lib/candidhealth/pre_encounter/patients/v_1/types/mutable_patient.rb +8 -8
- data/lib/candidhealth/pre_encounter/patients/v_1/types/mutable_patient_with_mrn.rb +8 -8
- data/lib/candidhealth/pre_encounter/patients/v_1/types/patient.rb +16 -16
- data/lib/candidhealth/pre_encounter/tags/v_1/client.rb +16 -16
- data/lib/candidhealth/pre_encounter/tags/v_1/types/tag.rb +4 -4
- data/lib/candidhealth/service_facility/client.rb +2 -2
- data/lib/candidhealth/service_lines/v_2/client.rb +4 -4
- data/lib/candidhealth/superbills/v_1/client.rb +4 -6
- data/lib/candidhealth/tasks/v_3/client.rb +6 -34
- data/lib/candidhealth/write_offs/v_1/client.rb +2 -24
- data/lib/environment.rb +4 -0
- data/lib/requests.rb +2 -2
- data/lib/types_export.rb +2 -0
- metadata +4 -2
@@ -42,7 +42,7 @@ module CandidApiClient
|
|
42
42
|
# same, updating the encounter's date_of_service will update all service line
|
43
43
|
# date_of_service values.
|
44
44
|
attr_reader :date_of_service
|
45
|
-
# @return [Array<String>] Names of tags that should be on the encounter.
|
45
|
+
# @return [Array<String>] Names of tags that should be on the encounter. Note all tags on encounter will
|
46
46
|
# be overridden with this list.
|
47
47
|
attr_reader :tag_ids
|
48
48
|
# @return [Array<CandidApiClient::Encounters::V4::Types::ClinicalNoteCategoryCreate>] Holds a collection of clinical observations made by healthcare providers during
|
@@ -90,31 +90,31 @@ module CandidApiClient
|
|
90
90
|
# @return [String] Defines additional information on the claim needed by the payer.
|
91
91
|
# Box 19 on the CMS-1500 claim form.
|
92
92
|
attr_reader :additional_information
|
93
|
-
# @return [CandidApiClient::Encounters::V4::Types::ServiceAuthorizationExceptionCode] 837p Loop2300 REF
|
93
|
+
# @return [CandidApiClient::Encounters::V4::Types::ServiceAuthorizationExceptionCode] 837p Loop2300 REF*4N
|
94
94
|
# Required when mandated by government law or regulation to obtain authorization
|
95
95
|
# for specific service(s) but, for the
|
96
96
|
# reasons listed in one of the enum values of ServiceAuthorizationExceptionCode,
|
97
97
|
# the service was performed without
|
98
98
|
# obtaining the authorization.
|
99
99
|
attr_reader :service_authorization_exception_code
|
100
|
-
# @return [Date] 837p Loop2300 DTP
|
100
|
+
# @return [Date] 837p Loop2300 DTP*435, CMS-1500 Box 18
|
101
101
|
# Required on all ambulance claims when the patient was known to be admitted to
|
102
102
|
# the hospital.
|
103
103
|
# OR
|
104
104
|
# Required on all claims involving inpatient medical visits.
|
105
105
|
attr_reader :admission_date
|
106
|
-
# @return [Date] 837p Loop2300 DTP
|
106
|
+
# @return [Date] 837p Loop2300 DTP*096, CMS-1500 Box 18
|
107
107
|
# Required for inpatient claims when the patient was discharged from the facility
|
108
108
|
# and the discharge date is known.
|
109
109
|
attr_reader :discharge_date
|
110
|
-
# @return [Date] 837p Loop2300 DTP
|
110
|
+
# @return [Date] 837p Loop2300 DTP*431, CMS-1500 Box 14
|
111
111
|
# Required for the initial medical service or visit performed in response to a
|
112
112
|
# medical emergency when the date is available and is different than the date of
|
113
113
|
# service.
|
114
114
|
# OR
|
115
115
|
# This date is the onset of acute symptoms for the current illness or condition.
|
116
116
|
attr_reader :onset_of_current_illness_or_symptom_date
|
117
|
-
# @return [Date] 837p Loop2300 DTP
|
117
|
+
# @return [Date] 837p Loop2300 DTP*484, CMS-1500 Box 14
|
118
118
|
# Required when, in the judgment of the provider, the services on this claim are
|
119
119
|
# related to the patient's pregnancy.de
|
120
120
|
attr_reader :last_menstrual_period_date
|
@@ -143,7 +143,7 @@ module CandidApiClient
|
|
143
143
|
attr_reader :existing_medications
|
144
144
|
# @return [CandidApiClient::Guarantor::V1::Types::GuarantorUpdate] Personal and contact info for the guarantor of the patient responsibility.
|
145
145
|
attr_reader :guarantor
|
146
|
-
# @return [String] Refers to REF
|
146
|
+
# @return [String] Refers to REF*9F on the 837p. Value cannot be greater than 50 characters.
|
147
147
|
attr_reader :referral_number
|
148
148
|
# @return [CandidApiClient::Encounters::V4::Types::EpsdtReferral] Refers Box 24H on the CMS1500 form and Loop 2300 CRC - EPSDT Referral on the
|
149
149
|
# 837P form
|
@@ -177,7 +177,7 @@ module CandidApiClient
|
|
177
177
|
# date_of_service will fail. If all service line date_of_service values are the
|
178
178
|
# same, updating the encounter's date_of_service will update all service line
|
179
179
|
# date_of_service values.
|
180
|
-
# @param tag_ids [Array<String>] Names of tags that should be on the encounter.
|
180
|
+
# @param tag_ids [Array<String>] Names of tags that should be on the encounter. Note all tags on encounter will
|
181
181
|
# be overridden with this list.
|
182
182
|
# @param clinical_notes [Array<CandidApiClient::Encounters::V4::Types::ClinicalNoteCategoryCreate>] Holds a collection of clinical observations made by healthcare providers during
|
183
183
|
# patient encounters.
|
@@ -212,27 +212,27 @@ module CandidApiClient
|
|
212
212
|
# @param subscriber_tertiary [CandidApiClient::Individual::Types::SubscriberCreate] Contains details of the tertiary insurance subscriber.
|
213
213
|
# @param additional_information [String] Defines additional information on the claim needed by the payer.
|
214
214
|
# Box 19 on the CMS-1500 claim form.
|
215
|
-
# @param service_authorization_exception_code [CandidApiClient::Encounters::V4::Types::ServiceAuthorizationExceptionCode] 837p Loop2300 REF
|
215
|
+
# @param service_authorization_exception_code [CandidApiClient::Encounters::V4::Types::ServiceAuthorizationExceptionCode] 837p Loop2300 REF*4N
|
216
216
|
# Required when mandated by government law or regulation to obtain authorization
|
217
217
|
# for specific service(s) but, for the
|
218
218
|
# reasons listed in one of the enum values of ServiceAuthorizationExceptionCode,
|
219
219
|
# the service was performed without
|
220
220
|
# obtaining the authorization.
|
221
|
-
# @param admission_date [Date] 837p Loop2300 DTP
|
221
|
+
# @param admission_date [Date] 837p Loop2300 DTP*435, CMS-1500 Box 18
|
222
222
|
# Required on all ambulance claims when the patient was known to be admitted to
|
223
223
|
# the hospital.
|
224
224
|
# OR
|
225
225
|
# Required on all claims involving inpatient medical visits.
|
226
|
-
# @param discharge_date [Date] 837p Loop2300 DTP
|
226
|
+
# @param discharge_date [Date] 837p Loop2300 DTP*096, CMS-1500 Box 18
|
227
227
|
# Required for inpatient claims when the patient was discharged from the facility
|
228
228
|
# and the discharge date is known.
|
229
|
-
# @param onset_of_current_illness_or_symptom_date [Date] 837p Loop2300 DTP
|
229
|
+
# @param onset_of_current_illness_or_symptom_date [Date] 837p Loop2300 DTP*431, CMS-1500 Box 14
|
230
230
|
# Required for the initial medical service or visit performed in response to a
|
231
231
|
# medical emergency when the date is available and is different than the date of
|
232
232
|
# service.
|
233
233
|
# OR
|
234
234
|
# This date is the onset of acute symptoms for the current illness or condition.
|
235
|
-
# @param last_menstrual_period_date [Date] 837p Loop2300 DTP
|
235
|
+
# @param last_menstrual_period_date [Date] 837p Loop2300 DTP*484, CMS-1500 Box 14
|
236
236
|
# Required when, in the judgment of the provider, the services on this claim are
|
237
237
|
# related to the patient's pregnancy.de
|
238
238
|
# @param delay_reason_code [CandidApiClient::Commons::Types::DelayReasonCode] 837i Loop2300, CLM-1300 Box 20
|
@@ -254,7 +254,7 @@ module CandidApiClient
|
|
254
254
|
# Note all current existing medications on encounter will be overridden with this
|
255
255
|
# list.
|
256
256
|
# @param guarantor [CandidApiClient::Guarantor::V1::Types::GuarantorUpdate] Personal and contact info for the guarantor of the patient responsibility.
|
257
|
-
# @param referral_number [String] Refers to REF
|
257
|
+
# @param referral_number [String] Refers to REF*9F on the 837p. Value cannot be greater than 50 characters.
|
258
258
|
# @param epsdt_referral [CandidApiClient::Encounters::V4::Types::EpsdtReferral] Refers Box 24H on the CMS1500 form and Loop 2300 CRC - EPSDT Referral on the
|
259
259
|
# 837P form
|
260
260
|
# @param claim_supplemental_information [Array<CandidApiClient::Encounters::V4::Types::ClaimSupplementalInformation>] Refers to Loop 2300 - Segment PWK on the 837P form. No more than 10 entries are
|
@@ -40,16 +40,13 @@ module CandidApiClient
|
|
40
40
|
# @example
|
41
41
|
# api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
|
42
42
|
# api.expected_network_status.v_1.compute(
|
43
|
-
#
|
44
|
-
#
|
45
|
-
#
|
46
|
-
#
|
47
|
-
#
|
48
|
-
# billing_provider_npi: "string",
|
49
|
-
# billing_provider_tin: "string",
|
50
|
-
# rendering_provider_npi: "string",
|
43
|
+
# subscriber_payer_id: "subscriber_payer_id",
|
44
|
+
# subscriber_payer_name: "subscriber_payer_name",
|
45
|
+
# billing_provider_npi: "billing_provider_npi",
|
46
|
+
# billing_provider_tin: "billing_provider_tin",
|
47
|
+
# rendering_provider_npi: "rendering_provider_npi",
|
51
48
|
# contracted_state: AA,
|
52
|
-
# date_of_service: "
|
49
|
+
# date_of_service: "date_of_service"
|
53
50
|
# )
|
54
51
|
def compute(subscriber_payer_id:, subscriber_payer_name:, billing_provider_npi:, billing_provider_tin:, rendering_provider_npi:, contracted_state:, date_of_service:, external_patient_id: nil,
|
55
52
|
subscriber_insurance_type: nil, subscriber_plan_name: nil, request_options: nil)
|
@@ -112,16 +109,13 @@ module CandidApiClient
|
|
112
109
|
# @example
|
113
110
|
# api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
|
114
111
|
# api.expected_network_status.v_1.compute(
|
115
|
-
#
|
116
|
-
#
|
117
|
-
#
|
118
|
-
#
|
119
|
-
#
|
120
|
-
# billing_provider_npi: "string",
|
121
|
-
# billing_provider_tin: "string",
|
122
|
-
# rendering_provider_npi: "string",
|
112
|
+
# subscriber_payer_id: "subscriber_payer_id",
|
113
|
+
# subscriber_payer_name: "subscriber_payer_name",
|
114
|
+
# billing_provider_npi: "billing_provider_npi",
|
115
|
+
# billing_provider_tin: "billing_provider_tin",
|
116
|
+
# rendering_provider_npi: "rendering_provider_npi",
|
123
117
|
# contracted_state: AA,
|
124
|
-
# date_of_service: "
|
118
|
+
# date_of_service: "date_of_service"
|
125
119
|
# )
|
126
120
|
def compute(subscriber_payer_id:, subscriber_payer_name:, billing_provider_npi:, billing_provider_tin:, rendering_provider_npi:, contracted_state:, date_of_service:, external_patient_id: nil,
|
127
121
|
subscriber_insurance_type: nil, subscriber_plan_name: nil, request_options: nil)
|
@@ -49,7 +49,7 @@ module CandidApiClient
|
|
49
49
|
# @return [CandidApiClient::ExpectedNetworkStatus::V2::Types::ExpectedNetworkStatusResponseV2]
|
50
50
|
# @example
|
51
51
|
# api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
|
52
|
-
# api.expected_network_status.v_2.compute_for_rendering_provider(rendering_provider_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", request: { service_type: NEW_PATIENT_VIDEO_APPT, place_of_service_code: PHARMACY, subscriber_information: { payer_uuid: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", member_id: "
|
52
|
+
# api.expected_network_status.v_2.compute_for_rendering_provider(rendering_provider_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", request: { service_type: NEW_PATIENT_VIDEO_APPT, place_of_service_code: PHARMACY, subscriber_information: { payer_uuid: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", member_id: "member_id", insurance_type: { line_of_business: MEDICARE } }, patient_address: { address_1: "address1", city: "city", state: AA, zip_code: "zip_code" }, billing_provider_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", organization_service_facility_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", date_of_service: DateTime.parse(2023-01-15) })
|
53
53
|
def compute_for_rendering_provider(rendering_provider_id:, request:, request_options: nil)
|
54
54
|
response = @request_client.conn.post do |req|
|
55
55
|
req.options.timeout = request_options.timeout_in_seconds unless request_options&.timeout_in_seconds.nil?
|
@@ -94,7 +94,7 @@ module CandidApiClient
|
|
94
94
|
# @return [CandidApiClient::ExpectedNetworkStatus::V2::Types::ComputeAllInNetworkProvidersResponse]
|
95
95
|
# @example
|
96
96
|
# api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
|
97
|
-
# api.expected_network_status.v_2.compute_all_in_network_providers(request: { service_type: NEW_PATIENT_VIDEO_APPT, place_of_service_code: PHARMACY, subscriber_information: { payer_uuid: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", member_id: "
|
97
|
+
# api.expected_network_status.v_2.compute_all_in_network_providers(request: { service_type: NEW_PATIENT_VIDEO_APPT, place_of_service_code: PHARMACY, subscriber_information: { payer_uuid: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", member_id: "member_id", insurance_type: { line_of_business: MEDICARE } }, patient_address: { address_1: "address1", city: "city", state: AA, zip_code: "zip_code" }, billing_provider_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", organization_service_facility_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", date_of_service: DateTime.parse(2023-01-15) })
|
98
98
|
def compute_all_in_network_providers(request:, request_options: nil)
|
99
99
|
response = @request_client.conn.post do |req|
|
100
100
|
req.options.timeout = request_options.timeout_in_seconds unless request_options&.timeout_in_seconds.nil?
|
@@ -151,7 +151,7 @@ module CandidApiClient
|
|
151
151
|
# @return [CandidApiClient::ExpectedNetworkStatus::V2::Types::ExpectedNetworkStatusResponseV2]
|
152
152
|
# @example
|
153
153
|
# api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
|
154
|
-
# api.expected_network_status.v_2.compute_for_rendering_provider(rendering_provider_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", request: { service_type: NEW_PATIENT_VIDEO_APPT, place_of_service_code: PHARMACY, subscriber_information: { payer_uuid: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", member_id: "
|
154
|
+
# api.expected_network_status.v_2.compute_for_rendering_provider(rendering_provider_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", request: { service_type: NEW_PATIENT_VIDEO_APPT, place_of_service_code: PHARMACY, subscriber_information: { payer_uuid: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", member_id: "member_id", insurance_type: { line_of_business: MEDICARE } }, patient_address: { address_1: "address1", city: "city", state: AA, zip_code: "zip_code" }, billing_provider_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", organization_service_facility_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", date_of_service: DateTime.parse(2023-01-15) })
|
155
155
|
def compute_for_rendering_provider(rendering_provider_id:, request:, request_options: nil)
|
156
156
|
Async do
|
157
157
|
response = @request_client.conn.post do |req|
|
@@ -198,7 +198,7 @@ module CandidApiClient
|
|
198
198
|
# @return [CandidApiClient::ExpectedNetworkStatus::V2::Types::ComputeAllInNetworkProvidersResponse]
|
199
199
|
# @example
|
200
200
|
# api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
|
201
|
-
# api.expected_network_status.v_2.compute_all_in_network_providers(request: { service_type: NEW_PATIENT_VIDEO_APPT, place_of_service_code: PHARMACY, subscriber_information: { payer_uuid: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", member_id: "
|
201
|
+
# api.expected_network_status.v_2.compute_all_in_network_providers(request: { service_type: NEW_PATIENT_VIDEO_APPT, place_of_service_code: PHARMACY, subscriber_information: { payer_uuid: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", member_id: "member_id", insurance_type: { line_of_business: MEDICARE } }, patient_address: { address_1: "address1", city: "city", state: AA, zip_code: "zip_code" }, billing_provider_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", organization_service_facility_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", date_of_service: DateTime.parse(2023-01-15) })
|
202
202
|
def compute_all_in_network_providers(request:, request_options: nil)
|
203
203
|
Async do
|
204
204
|
response = @request_client.conn.post do |req|
|
@@ -0,0 +1,53 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require "ostruct"
|
4
|
+
require "json"
|
5
|
+
|
6
|
+
module CandidApiClient
|
7
|
+
module ExpectedNetworkStatus
|
8
|
+
module V2
|
9
|
+
module Types
|
10
|
+
class EmptyObject
|
11
|
+
# @return [OpenStruct] Additional properties unmapped to the current class definition
|
12
|
+
attr_reader :additional_properties
|
13
|
+
# @return [Object]
|
14
|
+
attr_reader :_field_set
|
15
|
+
protected :_field_set
|
16
|
+
|
17
|
+
OMIT = Object.new
|
18
|
+
|
19
|
+
# @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
|
20
|
+
# @return [CandidApiClient::ExpectedNetworkStatus::V2::Types::EmptyObject]
|
21
|
+
def initialize(additional_properties: nil)
|
22
|
+
@additional_properties = additional_properties
|
23
|
+
@_field_set = {}
|
24
|
+
end
|
25
|
+
|
26
|
+
# Deserialize a JSON object to an instance of EmptyObject
|
27
|
+
#
|
28
|
+
# @param json_object [String]
|
29
|
+
# @return [CandidApiClient::ExpectedNetworkStatus::V2::Types::EmptyObject]
|
30
|
+
def self.from_json(json_object:)
|
31
|
+
struct = JSON.parse(json_object, object_class: OpenStruct)
|
32
|
+
new(additional_properties: struct)
|
33
|
+
end
|
34
|
+
|
35
|
+
# Serialize an instance of EmptyObject to a JSON object
|
36
|
+
#
|
37
|
+
# @return [String]
|
38
|
+
def to_json(*_args)
|
39
|
+
@_field_set&.to_json
|
40
|
+
end
|
41
|
+
|
42
|
+
# Leveraged for Union-type generation, validate_raw attempts to parse the given
|
43
|
+
# hash and check each fields type against the current object's property
|
44
|
+
# definitions.
|
45
|
+
#
|
46
|
+
# @param obj [Object]
|
47
|
+
# @return [Void]
|
48
|
+
def self.validate_raw(obj:); end
|
49
|
+
end
|
50
|
+
end
|
51
|
+
end
|
52
|
+
end
|
53
|
+
end
|
@@ -1,6 +1,7 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
3
|
require "json"
|
4
|
+
require_relative "empty_object"
|
4
5
|
require_relative "../../../commons/types/insurance_type_code"
|
5
6
|
|
6
7
|
module CandidApiClient
|
@@ -34,9 +35,9 @@ module CandidApiClient
|
|
34
35
|
when "insurance_type_code"
|
35
36
|
json_object.value
|
36
37
|
when "unknown_insurance_type_code"
|
37
|
-
|
38
|
+
CandidApiClient::ExpectedNetworkStatus::V2::Types::EmptyObject.from_json(json_object: json_object)
|
38
39
|
when "not_applicable"
|
39
|
-
|
40
|
+
CandidApiClient::ExpectedNetworkStatus::V2::Types::EmptyObject.from_json(json_object: json_object)
|
40
41
|
else
|
41
42
|
json_object
|
42
43
|
end
|
@@ -51,9 +52,9 @@ module CandidApiClient
|
|
51
52
|
when "insurance_type_code"
|
52
53
|
{ "type": @discriminant, "value": @member }.to_json
|
53
54
|
when "unknown_insurance_type_code"
|
54
|
-
{ type: @discriminant }.to_json
|
55
|
+
{ **@member.to_json, type: @discriminant }.to_json
|
55
56
|
when "not_applicable"
|
56
|
-
{ type: @discriminant }.to_json
|
57
|
+
{ **@member.to_json, type: @discriminant }.to_json
|
57
58
|
else
|
58
59
|
{ "type": @discriminant, value: @member }.to_json
|
59
60
|
end
|
@@ -71,9 +72,9 @@ module CandidApiClient
|
|
71
72
|
when "insurance_type_code"
|
72
73
|
obj.is_a?(CandidApiClient::Commons::Types::InsuranceTypeCode) != false || raise("Passed value for field obj is not the expected type, validation failed.")
|
73
74
|
when "unknown_insurance_type_code"
|
74
|
-
|
75
|
+
CandidApiClient::ExpectedNetworkStatus::V2::Types::EmptyObject.validate_raw(obj: obj)
|
75
76
|
when "not_applicable"
|
76
|
-
|
77
|
+
CandidApiClient::ExpectedNetworkStatus::V2::Types::EmptyObject.validate_raw(obj: obj)
|
77
78
|
else
|
78
79
|
raise("Passed value matched no type within the union, validation failed.")
|
79
80
|
end
|
@@ -93,14 +94,16 @@ module CandidApiClient
|
|
93
94
|
new(member: member, discriminant: "insurance_type_code")
|
94
95
|
end
|
95
96
|
|
97
|
+
# @param member [CandidApiClient::ExpectedNetworkStatus::V2::Types::EmptyObject]
|
96
98
|
# @return [CandidApiClient::ExpectedNetworkStatus::V2::Types::InsuranceTypeCodes]
|
97
|
-
def self.unknown_insurance_type_code
|
98
|
-
new(member:
|
99
|
+
def self.unknown_insurance_type_code(member:)
|
100
|
+
new(member: member, discriminant: "unknown_insurance_type_code")
|
99
101
|
end
|
100
102
|
|
103
|
+
# @param member [CandidApiClient::ExpectedNetworkStatus::V2::Types::EmptyObject]
|
101
104
|
# @return [CandidApiClient::ExpectedNetworkStatus::V2::Types::InsuranceTypeCodes]
|
102
|
-
def self.not_applicable
|
103
|
-
new(member:
|
105
|
+
def self.not_applicable(member:)
|
106
|
+
new(member: member, discriminant: "not_applicable")
|
104
107
|
end
|
105
108
|
end
|
106
109
|
end
|
@@ -23,7 +23,7 @@ module CandidApiClient
|
|
23
23
|
# @return [CandidApiClient::ExternalPaymentAccountConfig::V1::Types::ExternalPaymentAccountConfigPage]
|
24
24
|
# @example
|
25
25
|
# api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
|
26
|
-
# api.external_payment_account_config.v_1.get_multi
|
26
|
+
# api.external_payment_account_config.v_1.get_multi
|
27
27
|
def get_multi(limit: nil, page_token: nil, request_options: nil)
|
28
28
|
response = @request_client.conn.get do |req|
|
29
29
|
req.options.timeout = request_options.timeout_in_seconds unless request_options&.timeout_in_seconds.nil?
|
@@ -61,7 +61,7 @@ module CandidApiClient
|
|
61
61
|
# @return [CandidApiClient::ExternalPaymentAccountConfig::V1::Types::ExternalPaymentAccountConfigPage]
|
62
62
|
# @example
|
63
63
|
# api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
|
64
|
-
# api.external_payment_account_config.v_1.get_multi
|
64
|
+
# api.external_payment_account_config.v_1.get_multi
|
65
65
|
def get_multi(limit: nil, page_token: nil, request_options: nil)
|
66
66
|
Async do
|
67
67
|
response = @request_client.conn.get do |req|
|
@@ -32,7 +32,7 @@ module CandidApiClient
|
|
32
32
|
@request_client = request_client
|
33
33
|
end
|
34
34
|
|
35
|
-
# Gets the rate that matches a service line.
|
35
|
+
# Gets the rate that matches a service line. No result means no rate exists
|
36
36
|
# matching the service line's dimensions.
|
37
37
|
#
|
38
38
|
# @param service_line_id [String]
|
@@ -100,21 +100,7 @@ module CandidApiClient
|
|
100
100
|
# @return [CandidApiClient::FeeSchedules::V3::Types::RatesPage]
|
101
101
|
# @example
|
102
102
|
# api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
|
103
|
-
# api.fee_schedules.v_3.get_multi
|
104
|
-
# page_token: "eyJ0b2tlbiI6IjEiLCJwYWdlX3Rva2VuIjoiMiJ9",
|
105
|
-
# limit: 1,
|
106
|
-
# active_date: DateTime.parse(2023-01-15),
|
107
|
-
# payer_uuid: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32",
|
108
|
-
# organization_billing_provider_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32",
|
109
|
-
# states: AA,
|
110
|
-
# zip_codes: "string",
|
111
|
-
# license_types: MD,
|
112
|
-
# facility_type_codes: PHARMACY,
|
113
|
-
# network_types: PPO,
|
114
|
-
# payer_plan_group_ids: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32",
|
115
|
-
# cpt_code: "string",
|
116
|
-
# modifiers: AV
|
117
|
-
# )
|
103
|
+
# api.fee_schedules.v_3.get_multi
|
118
104
|
def get_multi(page_token: nil, limit: nil, active_date: nil, payer_uuid: nil,
|
119
105
|
organization_billing_provider_id: nil, states: nil, zip_codes: nil, license_types: nil, facility_type_codes: nil, network_types: nil, payer_plan_group_ids: nil, cpt_code: nil, modifiers: nil, request_options: nil)
|
120
106
|
response = @request_client.conn.get do |req|
|
@@ -168,21 +154,7 @@ module CandidApiClient
|
|
168
154
|
# @return [CandidApiClient::FeeSchedules::V3::Types::DimensionsPage]
|
169
155
|
# @example
|
170
156
|
# api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
|
171
|
-
# api.fee_schedules.v_3.get_unique_values_for_dimension(
|
172
|
-
# page_token: "eyJ0b2tlbiI6IjEiLCJwYWdlX3Rva2VuIjoiMiJ9",
|
173
|
-
# limit: 1,
|
174
|
-
# pivot_dimension: PAYER_UUID,
|
175
|
-
# payer_uuid: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32",
|
176
|
-
# organization_billing_provider_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32",
|
177
|
-
# states: AA,
|
178
|
-
# zip_codes: "string",
|
179
|
-
# license_types: MD,
|
180
|
-
# facility_type_codes: PHARMACY,
|
181
|
-
# network_types: PPO,
|
182
|
-
# payer_plan_group_ids: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32",
|
183
|
-
# cpt_code: "string",
|
184
|
-
# modifiers: AV
|
185
|
-
# )
|
157
|
+
# api.fee_schedules.v_3.get_unique_values_for_dimension(pivot_dimension: PAYER_UUID)
|
186
158
|
def get_unique_values_for_dimension(pivot_dimension:, page_token: nil, limit: nil, payer_uuid: nil,
|
187
159
|
organization_billing_provider_id: nil, states: nil, zip_codes: nil, license_types: nil, facility_type_codes: nil, network_types: nil, payer_plan_group_ids: nil, cpt_code: nil, modifiers: nil, request_options: nil)
|
188
160
|
response = @request_client.conn.get do |req|
|
@@ -246,7 +218,7 @@ module CandidApiClient
|
|
246
218
|
# by it's dimensions or a new version for an existing rate.\n If adding a new
|
247
219
|
# version to an existing rate, the rate must be posted with the next version
|
248
220
|
# number (previous version + 1) or a EntityConflictError will be returned.\n Use
|
249
|
-
# the dry run flag to discover already existing rates and to run validations.
|
221
|
+
# the dry run flag to discover already existing rates and to run validations. If
|
250
222
|
# validations for any rate fail, no rates will be saved to the system.
|
251
223
|
#
|
252
224
|
# @param dry_run [Boolean]
|
@@ -276,7 +248,7 @@ module CandidApiClient
|
|
276
248
|
end
|
277
249
|
end
|
278
250
|
|
279
|
-
# Soft deletes a rate from the system.
|
251
|
+
# Soft deletes a rate from the system. Only the most recent version of a rate can
|
280
252
|
# be deleted.
|
281
253
|
#
|
282
254
|
# @param rate_id [String]
|
@@ -357,7 +329,7 @@ module CandidApiClient
|
|
357
329
|
# @return [CandidApiClient::FeeSchedules::V3::Types::PayerThreshold]
|
358
330
|
# @example
|
359
331
|
# api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
|
360
|
-
# api.fee_schedules.v_3.set_payer_threshold(payer_uuid: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", request: {
|
332
|
+
# api.fee_schedules.v_3.set_payer_threshold(payer_uuid: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", request: { disable_paid_incorrectly: true })
|
361
333
|
def set_payer_threshold(payer_uuid:, request:, request_options: nil)
|
362
334
|
response = @request_client.conn.put do |req|
|
363
335
|
req.options.timeout = request_options.timeout_in_seconds unless request_options&.timeout_in_seconds.nil?
|
@@ -385,7 +357,7 @@ module CandidApiClient
|
|
385
357
|
@request_client = request_client
|
386
358
|
end
|
387
359
|
|
388
|
-
# Gets the rate that matches a service line.
|
360
|
+
# Gets the rate that matches a service line. No result means no rate exists
|
389
361
|
# matching the service line's dimensions.
|
390
362
|
#
|
391
363
|
# @param service_line_id [String]
|
@@ -457,21 +429,7 @@ module CandidApiClient
|
|
457
429
|
# @return [CandidApiClient::FeeSchedules::V3::Types::RatesPage]
|
458
430
|
# @example
|
459
431
|
# api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
|
460
|
-
# api.fee_schedules.v_3.get_multi
|
461
|
-
# page_token: "eyJ0b2tlbiI6IjEiLCJwYWdlX3Rva2VuIjoiMiJ9",
|
462
|
-
# limit: 1,
|
463
|
-
# active_date: DateTime.parse(2023-01-15),
|
464
|
-
# payer_uuid: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32",
|
465
|
-
# organization_billing_provider_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32",
|
466
|
-
# states: AA,
|
467
|
-
# zip_codes: "string",
|
468
|
-
# license_types: MD,
|
469
|
-
# facility_type_codes: PHARMACY,
|
470
|
-
# network_types: PPO,
|
471
|
-
# payer_plan_group_ids: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32",
|
472
|
-
# cpt_code: "string",
|
473
|
-
# modifiers: AV
|
474
|
-
# )
|
432
|
+
# api.fee_schedules.v_3.get_multi
|
475
433
|
def get_multi(page_token: nil, limit: nil, active_date: nil, payer_uuid: nil,
|
476
434
|
organization_billing_provider_id: nil, states: nil, zip_codes: nil, license_types: nil, facility_type_codes: nil, network_types: nil, payer_plan_group_ids: nil, cpt_code: nil, modifiers: nil, request_options: nil)
|
477
435
|
Async do
|
@@ -527,21 +485,7 @@ module CandidApiClient
|
|
527
485
|
# @return [CandidApiClient::FeeSchedules::V3::Types::DimensionsPage]
|
528
486
|
# @example
|
529
487
|
# api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
|
530
|
-
# api.fee_schedules.v_3.get_unique_values_for_dimension(
|
531
|
-
# page_token: "eyJ0b2tlbiI6IjEiLCJwYWdlX3Rva2VuIjoiMiJ9",
|
532
|
-
# limit: 1,
|
533
|
-
# pivot_dimension: PAYER_UUID,
|
534
|
-
# payer_uuid: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32",
|
535
|
-
# organization_billing_provider_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32",
|
536
|
-
# states: AA,
|
537
|
-
# zip_codes: "string",
|
538
|
-
# license_types: MD,
|
539
|
-
# facility_type_codes: PHARMACY,
|
540
|
-
# network_types: PPO,
|
541
|
-
# payer_plan_group_ids: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32",
|
542
|
-
# cpt_code: "string",
|
543
|
-
# modifiers: AV
|
544
|
-
# )
|
488
|
+
# api.fee_schedules.v_3.get_unique_values_for_dimension(pivot_dimension: PAYER_UUID)
|
545
489
|
def get_unique_values_for_dimension(pivot_dimension:, page_token: nil, limit: nil, payer_uuid: nil,
|
546
490
|
organization_billing_provider_id: nil, states: nil, zip_codes: nil, license_types: nil, facility_type_codes: nil, network_types: nil, payer_plan_group_ids: nil, cpt_code: nil, modifiers: nil, request_options: nil)
|
547
491
|
Async do
|
@@ -609,7 +553,7 @@ module CandidApiClient
|
|
609
553
|
# by it's dimensions or a new version for an existing rate.\n If adding a new
|
610
554
|
# version to an existing rate, the rate must be posted with the next version
|
611
555
|
# number (previous version + 1) or a EntityConflictError will be returned.\n Use
|
612
|
-
# the dry run flag to discover already existing rates and to run validations.
|
556
|
+
# the dry run flag to discover already existing rates and to run validations. If
|
613
557
|
# validations for any rate fail, no rates will be saved to the system.
|
614
558
|
#
|
615
559
|
# @param dry_run [Boolean]
|
@@ -645,7 +589,7 @@ module CandidApiClient
|
|
645
589
|
end
|
646
590
|
end
|
647
591
|
|
648
|
-
# Soft deletes a rate from the system.
|
592
|
+
# Soft deletes a rate from the system. Only the most recent version of a rate can
|
649
593
|
# be deleted.
|
650
594
|
#
|
651
595
|
# @param rate_id [String]
|
@@ -735,7 +679,7 @@ module CandidApiClient
|
|
735
679
|
# @return [CandidApiClient::FeeSchedules::V3::Types::PayerThreshold]
|
736
680
|
# @example
|
737
681
|
# api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
|
738
|
-
# api.fee_schedules.v_3.set_payer_threshold(payer_uuid: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", request: {
|
682
|
+
# api.fee_schedules.v_3.set_payer_threshold(payer_uuid: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", request: { disable_paid_incorrectly: true })
|
739
683
|
def set_payer_threshold(payer_uuid:, request:, request_options: nil)
|
740
684
|
Async do
|
741
685
|
response = @request_client.conn.put do |req|
|
@@ -7,10 +7,10 @@ module CandidApiClient
|
|
7
7
|
module FeeSchedules
|
8
8
|
module V3
|
9
9
|
module Types
|
10
|
-
# Rate thresholds that determine fee schedule rate matching behavior.
|
10
|
+
# Rate thresholds that determine fee schedule rate matching behavior. When a
|
11
11
|
# service line is adjudicated by a payer Candid determines if the payer's allowed
|
12
|
-
# amount "matches" the rate value.
|
13
|
-
# value, Candid moves the claim to a PAID_INCORRECTLY state.
|
12
|
+
# amount "matches" the rate value. If the allowed amount doesn't equal the rate
|
13
|
+
# value, Candid moves the claim to a PAID_INCORRECTLY state. These optional
|
14
14
|
# thresholds allow a user to set wiggle room to avoid claims moving to
|
15
15
|
# PAID_INCORRECTLY and instead have them move directly to FINALIZED_PAID when the
|
16
16
|
# payer's allowed amount is greater than [rate_cents - lower_threshold_cents] and
|
@@ -8,8 +8,8 @@ module CandidApiClient
|
|
8
8
|
module FeeSchedules
|
9
9
|
module V3
|
10
10
|
module Types
|
11
|
-
# A rate value in cents for a specific time range.
|
12
|
-
# deactivated, which is set by using the deelte_rate endpoint.
|
11
|
+
# A rate value in cents for a specific time range. Rate entries can be
|
12
|
+
# deactivated, which is set by using the deelte_rate endpoint. Deactivated rate
|
13
13
|
# entries are not considered when matching against service lines.
|
14
14
|
class RateEntry
|
15
15
|
# @return [Date]
|
@@ -42,7 +42,7 @@ module CandidApiClient
|
|
42
42
|
# @return [CandidApiClient::Guarantor::V1::Types::Guarantor]
|
43
43
|
# @example
|
44
44
|
# api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
|
45
|
-
# api.guarantor.v_1.create(encounter_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", request: {
|
45
|
+
# api.guarantor.v_1.create(encounter_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", request: { first_name: "first_name", last_name: "last_name", external_id: "external_id", address: { address_1: "address1", city: "city", state: AA, zip_code: "zip_code" } })
|
46
46
|
def create(encounter_id:, request:, request_options: nil)
|
47
47
|
response = @request_client.conn.post do |req|
|
48
48
|
req.options.timeout = request_options.timeout_in_seconds unless request_options&.timeout_in_seconds.nil?
|
@@ -105,7 +105,7 @@ module CandidApiClient
|
|
105
105
|
# @return [CandidApiClient::Guarantor::V1::Types::Guarantor]
|
106
106
|
# @example
|
107
107
|
# api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
|
108
|
-
# api.guarantor.v_1.update(guarantor_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", request: {
|
108
|
+
# api.guarantor.v_1.update(guarantor_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", request: { })
|
109
109
|
def update(guarantor_id:, request:, request_options: nil)
|
110
110
|
response = @request_client.conn.patch do |req|
|
111
111
|
req.options.timeout = request_options.timeout_in_seconds unless request_options&.timeout_in_seconds.nil?
|
@@ -156,7 +156,7 @@ module CandidApiClient
|
|
156
156
|
# @return [CandidApiClient::Guarantor::V1::Types::Guarantor]
|
157
157
|
# @example
|
158
158
|
# api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
|
159
|
-
# api.guarantor.v_1.create(encounter_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", request: {
|
159
|
+
# api.guarantor.v_1.create(encounter_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", request: { first_name: "first_name", last_name: "last_name", external_id: "external_id", address: { address_1: "address1", city: "city", state: AA, zip_code: "zip_code" } })
|
160
160
|
def create(encounter_id:, request:, request_options: nil)
|
161
161
|
Async do
|
162
162
|
response = @request_client.conn.post do |req|
|
@@ -223,7 +223,7 @@ module CandidApiClient
|
|
223
223
|
# @return [CandidApiClient::Guarantor::V1::Types::Guarantor]
|
224
224
|
# @example
|
225
225
|
# api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
|
226
|
-
# api.guarantor.v_1.update(guarantor_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", request: {
|
226
|
+
# api.guarantor.v_1.update(guarantor_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", request: { })
|
227
227
|
def update(guarantor_id:, request:, request_options: nil)
|
228
228
|
Async do
|
229
229
|
response = @request_client.conn.patch do |req|
|