candidhealth 0.43.1 → 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 +479 -559
- data/lib/candidhealth/charge_capture/v_1/types/charge_capture_data.rb +200 -190
- data/lib/candidhealth/charge_capture_bundles/v_1/client.rb +2 -44
- data/lib/candidhealth/commons/types/street_address_optional_base.rb +99 -0
- data/lib/candidhealth/commons/types/street_address_short_zip_optional.rb +107 -0
- 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/encounter_providers/v_2/types/billing_provider_update_with_optional_address.rb +160 -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/referring_provider_update_with_optional_address.rb +125 -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_update_with_optional_address.rb +125 -0
- data/lib/candidhealth/encounters/v_4/client.rb +259 -293
- data/lib/candidhealth/encounters/v_4/types/encounter.rb +23 -13
- 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 +26 -184
- 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/individual/types/patient_update_with_optional_address.rb +179 -0
- 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_facility/types/encounter_service_facility_update_with_optional_address.rb +113 -0
- 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 +11 -1
- metadata +13 -3
- data/lib/candidhealth/billing_notes/v_2/types/billing_note_optional.rb +0 -112
@@ -2,7 +2,6 @@
|
|
2
2
|
|
3
3
|
require "date"
|
4
4
|
require_relative "clinical_note_category_create"
|
5
|
-
require_relative "../../../commons/types/street_address_long_zip"
|
6
5
|
require_relative "billable_status_type"
|
7
6
|
require_relative "responsible_party_type"
|
8
7
|
require_relative "synchronicity_type"
|
@@ -10,17 +9,10 @@ require_relative "../../../commons/types/facility_type_code"
|
|
10
9
|
require_relative "../../../individual/types/subscriber_create"
|
11
10
|
require_relative "service_authorization_exception_code"
|
12
11
|
require_relative "../../../commons/types/delay_reason_code"
|
13
|
-
require_relative "../../../individual/types/patient_update"
|
14
12
|
require_relative "../../../custom_schemas/v_1/types/schema_instance"
|
15
13
|
require_relative "vitals_update"
|
16
14
|
require_relative "medication"
|
17
|
-
require_relative "../../../encounter_providers/v_2/types/rendering_provider_update"
|
18
|
-
require_relative "../../../service_facility/types/encounter_service_facility_update"
|
19
15
|
require_relative "../../../guarantor/v_1/types/guarantor_update"
|
20
|
-
require_relative "../../../encounter_providers/v_2/types/billing_provider_update"
|
21
|
-
require_relative "../../../encounter_providers/v_2/types/supervising_provider_update"
|
22
|
-
require_relative "../../../encounter_providers/v_2/types/referring_provider_update"
|
23
|
-
require_relative "../../../encounter_providers/v_2/types/initial_referring_provider_update"
|
24
16
|
require_relative "epsdt_referral"
|
25
17
|
require_relative "claim_supplemental_information"
|
26
18
|
require "ostruct"
|
@@ -50,14 +42,12 @@ module CandidApiClient
|
|
50
42
|
# same, updating the encounter's date_of_service will update all service line
|
51
43
|
# date_of_service values.
|
52
44
|
attr_reader :date_of_service
|
53
|
-
# @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
|
54
46
|
# be overridden with this list.
|
55
47
|
attr_reader :tag_ids
|
56
48
|
# @return [Array<CandidApiClient::Encounters::V4::Types::ClinicalNoteCategoryCreate>] Holds a collection of clinical observations made by healthcare providers during
|
57
49
|
# patient encounters.
|
58
50
|
attr_reader :clinical_notes
|
59
|
-
# @return [CandidApiClient::Commons::Types::StreetAddressLongZip] Specifies the address to which payments for the claim should be sent.
|
60
|
-
attr_reader :pay_to_address
|
61
51
|
# @return [CandidApiClient::Encounters::V4::Types::BillableStatusType] Defines if the Encounter is to be billed by Candid to the responsible_party.
|
62
52
|
# Examples for when this should be set to NOT_BILLABLE include if the Encounter
|
63
53
|
# has not occurred yet or if there is no intention of ever billing the
|
@@ -100,40 +90,37 @@ module CandidApiClient
|
|
100
90
|
# @return [String] Defines additional information on the claim needed by the payer.
|
101
91
|
# Box 19 on the CMS-1500 claim form.
|
102
92
|
attr_reader :additional_information
|
103
|
-
# @return [CandidApiClient::Encounters::V4::Types::ServiceAuthorizationExceptionCode] 837p Loop2300 REF
|
93
|
+
# @return [CandidApiClient::Encounters::V4::Types::ServiceAuthorizationExceptionCode] 837p Loop2300 REF*4N
|
104
94
|
# Required when mandated by government law or regulation to obtain authorization
|
105
95
|
# for specific service(s) but, for the
|
106
96
|
# reasons listed in one of the enum values of ServiceAuthorizationExceptionCode,
|
107
97
|
# the service was performed without
|
108
98
|
# obtaining the authorization.
|
109
99
|
attr_reader :service_authorization_exception_code
|
110
|
-
# @return [Date] 837p Loop2300 DTP
|
100
|
+
# @return [Date] 837p Loop2300 DTP*435, CMS-1500 Box 18
|
111
101
|
# Required on all ambulance claims when the patient was known to be admitted to
|
112
102
|
# the hospital.
|
113
103
|
# OR
|
114
104
|
# Required on all claims involving inpatient medical visits.
|
115
105
|
attr_reader :admission_date
|
116
|
-
# @return [Date] 837p Loop2300 DTP
|
106
|
+
# @return [Date] 837p Loop2300 DTP*096, CMS-1500 Box 18
|
117
107
|
# Required for inpatient claims when the patient was discharged from the facility
|
118
108
|
# and the discharge date is known.
|
119
109
|
attr_reader :discharge_date
|
120
|
-
# @return [Date] 837p Loop2300 DTP
|
110
|
+
# @return [Date] 837p Loop2300 DTP*431, CMS-1500 Box 14
|
121
111
|
# Required for the initial medical service or visit performed in response to a
|
122
112
|
# medical emergency when the date is available and is different than the date of
|
123
113
|
# service.
|
124
114
|
# OR
|
125
115
|
# This date is the onset of acute symptoms for the current illness or condition.
|
126
116
|
attr_reader :onset_of_current_illness_or_symptom_date
|
127
|
-
# @return [Date] 837p Loop2300 DTP
|
117
|
+
# @return [Date] 837p Loop2300 DTP*484, CMS-1500 Box 14
|
128
118
|
# Required when, in the judgment of the provider, the services on this claim are
|
129
119
|
# related to the patient's pregnancy.de
|
130
120
|
attr_reader :last_menstrual_period_date
|
131
121
|
# @return [CandidApiClient::Commons::Types::DelayReasonCode] 837i Loop2300, CLM-1300 Box 20
|
132
122
|
# Code indicating the reason why a request was delayed
|
133
123
|
attr_reader :delay_reason_code
|
134
|
-
# @return [CandidApiClient::Individual::Types::PatientUpdate] Contains the identification information of the individual receiving medical
|
135
|
-
# services.
|
136
|
-
attr_reader :patient
|
137
124
|
# @return [Boolean] Whether this patient has authorized the release of medical information
|
138
125
|
# for billing purpose.
|
139
126
|
# Box 12 on the CMS-1500 claim form.
|
@@ -154,48 +141,9 @@ module CandidApiClient
|
|
154
141
|
# Note all current existing medications on encounter will be overridden with this
|
155
142
|
# list.
|
156
143
|
attr_reader :existing_medications
|
157
|
-
# @return [CandidApiClient::EncounterProviders::V2::Types::RenderingProviderUpdate] The rendering provider is the practitioner -- physician, nurse practitioner,
|
158
|
-
# etc. -- performing the service.
|
159
|
-
# For telehealth services, the rendering provider performs the visit, asynchronous
|
160
|
-
# communication, or other service. The rendering provider address should generally
|
161
|
-
# be the same as the service facility address.
|
162
|
-
attr_reader :rendering_provider
|
163
|
-
# @return [CandidApiClient::ServiceFacility::Types::EncounterServiceFacilityUpdate] Encounter Service facility is typically the location a medical service was
|
164
|
-
# rendered, such as a provider office or hospital. For telehealth, service
|
165
|
-
# facility can represent the provider's location when the service was delivered
|
166
|
-
# (e.g., home), or the location where an in-person visit would have taken place,
|
167
|
-
# whichever is easier to identify. If the provider is in-network, service facility
|
168
|
-
# may be defined in payer contracts. Box 32 on the CMS-1500 claim form. Note that
|
169
|
-
# for an in-network claim to be successfully adjudicated, the service facility
|
170
|
-
# address listed on claims must match what was provided to the payer during the
|
171
|
-
# credentialing process.
|
172
|
-
attr_reader :service_facility
|
173
144
|
# @return [CandidApiClient::Guarantor::V1::Types::GuarantorUpdate] Personal and contact info for the guarantor of the patient responsibility.
|
174
145
|
attr_reader :guarantor
|
175
|
-
# @return [
|
176
|
-
# Billing provider may be, but is not necessarily, the same person/NPI as the
|
177
|
-
# rendering provider. From a payer's perspective, this represents the person or
|
178
|
-
# entity being reimbursed. When a contract exists with the target payer, the
|
179
|
-
# billing provider should be the entity contracted with the payer. In some
|
180
|
-
# circumstances, this will be an individual provider. In that case, submit that
|
181
|
-
# provider's NPI and the tax ID (TIN) that the provider gave to the payer during
|
182
|
-
# contracting. In other cases, the billing entity will be a medical group. If so,
|
183
|
-
# submit the group NPI and the group's tax ID. Box 33 on the CMS-1500 claim form.
|
184
|
-
attr_reader :billing_provider
|
185
|
-
# @return [CandidApiClient::EncounterProviders::V2::Types::SupervisingProviderUpdate] Required when the rendering provider is supervised by a physician. If not
|
186
|
-
# required by this implementation guide, do not send.
|
187
|
-
attr_reader :supervising_provider
|
188
|
-
# @return [CandidApiClient::EncounterProviders::V2::Types::ReferringProviderUpdate] The final provider who referred the services that were rendered.
|
189
|
-
# All physicians who order services or refer Medicare beneficiaries must
|
190
|
-
# report this data.
|
191
|
-
attr_reader :referring_provider
|
192
|
-
# @return [CandidApiClient::EncounterProviders::V2::Types::InitialReferringProviderUpdate] The second iteration of Loop ID-2310. Use code "P3 - Primary Care Provider" in
|
193
|
-
# this loop to
|
194
|
-
# indicate the initial referral from the primary care provider or whatever
|
195
|
-
# provider wrote the initial referral for this patient's episode of care being
|
196
|
-
# billed/reported in this transaction.
|
197
|
-
attr_reader :initial_referring_provider
|
198
|
-
# @return [String] Refers to REF\*9F on the 837p. Value cannot be greater than 50 characters.
|
146
|
+
# @return [String] Refers to REF*9F on the 837p. Value cannot be greater than 50 characters.
|
199
147
|
attr_reader :referral_number
|
200
148
|
# @return [CandidApiClient::Encounters::V4::Types::EpsdtReferral] Refers Box 24H on the CMS1500 form and Loop 2300 CRC - EPSDT Referral on the
|
201
149
|
# 837P form
|
@@ -203,6 +151,9 @@ module CandidApiClient
|
|
203
151
|
# @return [Array<CandidApiClient::Encounters::V4::Types::ClaimSupplementalInformation>] Refers to Loop 2300 - Segment PWK on the 837P form. No more than 10 entries are
|
204
152
|
# permitted.
|
205
153
|
attr_reader :claim_supplemental_information
|
154
|
+
# @return [String] When Medicaid is billed as the secondary payer the Carrier Code is used to
|
155
|
+
# identify the primary payer. This is required for certain states.
|
156
|
+
attr_reader :secondary_payer_carrier_code
|
206
157
|
# @return [OpenStruct] Additional properties unmapped to the current class definition
|
207
158
|
attr_reader :additional_properties
|
208
159
|
# @return [Object]
|
@@ -226,11 +177,10 @@ module CandidApiClient
|
|
226
177
|
# date_of_service will fail. If all service line date_of_service values are the
|
227
178
|
# same, updating the encounter's date_of_service will update all service line
|
228
179
|
# date_of_service values.
|
229
|
-
# @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
|
230
181
|
# be overridden with this list.
|
231
182
|
# @param clinical_notes [Array<CandidApiClient::Encounters::V4::Types::ClinicalNoteCategoryCreate>] Holds a collection of clinical observations made by healthcare providers during
|
232
183
|
# patient encounters.
|
233
|
-
# @param pay_to_address [CandidApiClient::Commons::Types::StreetAddressLongZip] Specifies the address to which payments for the claim should be sent.
|
234
184
|
# @param billable_status [CandidApiClient::Encounters::V4::Types::BillableStatusType] Defines if the Encounter is to be billed by Candid to the responsible_party.
|
235
185
|
# Examples for when this should be set to NOT_BILLABLE include if the Encounter
|
236
186
|
# has not occurred yet or if there is no intention of ever billing the
|
@@ -262,33 +212,31 @@ module CandidApiClient
|
|
262
212
|
# @param subscriber_tertiary [CandidApiClient::Individual::Types::SubscriberCreate] Contains details of the tertiary insurance subscriber.
|
263
213
|
# @param additional_information [String] Defines additional information on the claim needed by the payer.
|
264
214
|
# Box 19 on the CMS-1500 claim form.
|
265
|
-
# @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
|
266
216
|
# Required when mandated by government law or regulation to obtain authorization
|
267
217
|
# for specific service(s) but, for the
|
268
218
|
# reasons listed in one of the enum values of ServiceAuthorizationExceptionCode,
|
269
219
|
# the service was performed without
|
270
220
|
# obtaining the authorization.
|
271
|
-
# @param admission_date [Date] 837p Loop2300 DTP
|
221
|
+
# @param admission_date [Date] 837p Loop2300 DTP*435, CMS-1500 Box 18
|
272
222
|
# Required on all ambulance claims when the patient was known to be admitted to
|
273
223
|
# the hospital.
|
274
224
|
# OR
|
275
225
|
# Required on all claims involving inpatient medical visits.
|
276
|
-
# @param discharge_date [Date] 837p Loop2300 DTP
|
226
|
+
# @param discharge_date [Date] 837p Loop2300 DTP*096, CMS-1500 Box 18
|
277
227
|
# Required for inpatient claims when the patient was discharged from the facility
|
278
228
|
# and the discharge date is known.
|
279
|
-
# @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
|
280
230
|
# Required for the initial medical service or visit performed in response to a
|
281
231
|
# medical emergency when the date is available and is different than the date of
|
282
232
|
# service.
|
283
233
|
# OR
|
284
234
|
# This date is the onset of acute symptoms for the current illness or condition.
|
285
|
-
# @param last_menstrual_period_date [Date] 837p Loop2300 DTP
|
235
|
+
# @param last_menstrual_period_date [Date] 837p Loop2300 DTP*484, CMS-1500 Box 14
|
286
236
|
# Required when, in the judgment of the provider, the services on this claim are
|
287
237
|
# related to the patient's pregnancy.de
|
288
238
|
# @param delay_reason_code [CandidApiClient::Commons::Types::DelayReasonCode] 837i Loop2300, CLM-1300 Box 20
|
289
239
|
# Code indicating the reason why a request was delayed
|
290
|
-
# @param patient [CandidApiClient::Individual::Types::PatientUpdate] Contains the identification information of the individual receiving medical
|
291
|
-
# services.
|
292
240
|
# @param patient_authorized_release [Boolean] Whether this patient has authorized the release of medical information
|
293
241
|
# for billing purpose.
|
294
242
|
# Box 12 on the CMS-1500 claim form.
|
@@ -305,56 +253,24 @@ module CandidApiClient
|
|
305
253
|
# @param existing_medications [Array<CandidApiClient::Encounters::V4::Types::Medication>] Existing medications that should be on the encounter.
|
306
254
|
# Note all current existing medications on encounter will be overridden with this
|
307
255
|
# list.
|
308
|
-
# @param rendering_provider [CandidApiClient::EncounterProviders::V2::Types::RenderingProviderUpdate] The rendering provider is the practitioner -- physician, nurse practitioner,
|
309
|
-
# etc. -- performing the service.
|
310
|
-
# For telehealth services, the rendering provider performs the visit, asynchronous
|
311
|
-
# communication, or other service. The rendering provider address should generally
|
312
|
-
# be the same as the service facility address.
|
313
|
-
# @param service_facility [CandidApiClient::ServiceFacility::Types::EncounterServiceFacilityUpdate] Encounter Service facility is typically the location a medical service was
|
314
|
-
# rendered, such as a provider office or hospital. For telehealth, service
|
315
|
-
# facility can represent the provider's location when the service was delivered
|
316
|
-
# (e.g., home), or the location where an in-person visit would have taken place,
|
317
|
-
# whichever is easier to identify. If the provider is in-network, service facility
|
318
|
-
# may be defined in payer contracts. Box 32 on the CMS-1500 claim form. Note that
|
319
|
-
# for an in-network claim to be successfully adjudicated, the service facility
|
320
|
-
# address listed on claims must match what was provided to the payer during the
|
321
|
-
# credentialing process.
|
322
256
|
# @param guarantor [CandidApiClient::Guarantor::V1::Types::GuarantorUpdate] Personal and contact info for the guarantor of the patient responsibility.
|
323
|
-
# @param
|
324
|
-
# Billing provider may be, but is not necessarily, the same person/NPI as the
|
325
|
-
# rendering provider. From a payer's perspective, this represents the person or
|
326
|
-
# entity being reimbursed. When a contract exists with the target payer, the
|
327
|
-
# billing provider should be the entity contracted with the payer. In some
|
328
|
-
# circumstances, this will be an individual provider. In that case, submit that
|
329
|
-
# provider's NPI and the tax ID (TIN) that the provider gave to the payer during
|
330
|
-
# contracting. In other cases, the billing entity will be a medical group. If so,
|
331
|
-
# submit the group NPI and the group's tax ID. Box 33 on the CMS-1500 claim form.
|
332
|
-
# @param supervising_provider [CandidApiClient::EncounterProviders::V2::Types::SupervisingProviderUpdate] Required when the rendering provider is supervised by a physician. If not
|
333
|
-
# required by this implementation guide, do not send.
|
334
|
-
# @param referring_provider [CandidApiClient::EncounterProviders::V2::Types::ReferringProviderUpdate] The final provider who referred the services that were rendered.
|
335
|
-
# All physicians who order services or refer Medicare beneficiaries must
|
336
|
-
# report this data.
|
337
|
-
# @param initial_referring_provider [CandidApiClient::EncounterProviders::V2::Types::InitialReferringProviderUpdate] The second iteration of Loop ID-2310. Use code "P3 - Primary Care Provider" in
|
338
|
-
# this loop to
|
339
|
-
# indicate the initial referral from the primary care provider or whatever
|
340
|
-
# provider wrote the initial referral for this patient's episode of care being
|
341
|
-
# billed/reported in this transaction.
|
342
|
-
# @param referral_number [String] Refers to REF\*9F on the 837p. Value cannot be greater than 50 characters.
|
257
|
+
# @param referral_number [String] Refers to REF*9F on the 837p. Value cannot be greater than 50 characters.
|
343
258
|
# @param epsdt_referral [CandidApiClient::Encounters::V4::Types::EpsdtReferral] Refers Box 24H on the CMS1500 form and Loop 2300 CRC - EPSDT Referral on the
|
344
259
|
# 837P form
|
345
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
|
346
261
|
# permitted.
|
262
|
+
# @param secondary_payer_carrier_code [String] When Medicaid is billed as the secondary payer the Carrier Code is used to
|
263
|
+
# identify the primary payer. This is required for certain states.
|
347
264
|
# @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
|
348
265
|
# @return [CandidApiClient::Encounters::V4::Types::EncounterOptional]
|
349
266
|
def initialize(benefits_assigned_to_provider: OMIT, prior_authorization_number: OMIT, external_id: OMIT,
|
350
|
-
date_of_service: OMIT, tag_ids: OMIT, clinical_notes: OMIT,
|
267
|
+
date_of_service: OMIT, tag_ids: OMIT, clinical_notes: OMIT, billable_status: OMIT, responsible_party: OMIT, provider_accepts_assignment: OMIT, synchronicity: OMIT, place_of_service_code: OMIT, appointment_type: OMIT, end_date_of_service: OMIT, subscriber_primary: OMIT, subscriber_secondary: OMIT, subscriber_tertiary: OMIT, additional_information: OMIT, service_authorization_exception_code: OMIT, admission_date: OMIT, discharge_date: OMIT, onset_of_current_illness_or_symptom_date: OMIT, last_menstrual_period_date: OMIT, delay_reason_code: OMIT, patient_authorized_release: OMIT, schema_instances: OMIT, vitals: OMIT, existing_medications: OMIT, guarantor: OMIT, referral_number: OMIT, epsdt_referral: OMIT, claim_supplemental_information: OMIT, secondary_payer_carrier_code: OMIT, additional_properties: nil)
|
351
268
|
@benefits_assigned_to_provider = benefits_assigned_to_provider if benefits_assigned_to_provider != OMIT
|
352
269
|
@prior_authorization_number = prior_authorization_number if prior_authorization_number != OMIT
|
353
270
|
@external_id = external_id if external_id != OMIT
|
354
271
|
@date_of_service = date_of_service if date_of_service != OMIT
|
355
272
|
@tag_ids = tag_ids if tag_ids != OMIT
|
356
273
|
@clinical_notes = clinical_notes if clinical_notes != OMIT
|
357
|
-
@pay_to_address = pay_to_address if pay_to_address != OMIT
|
358
274
|
@billable_status = billable_status if billable_status != OMIT
|
359
275
|
@responsible_party = responsible_party if responsible_party != OMIT
|
360
276
|
@provider_accepts_assignment = provider_accepts_assignment if provider_accepts_assignment != OMIT
|
@@ -376,21 +292,15 @@ module CandidApiClient
|
|
376
292
|
end
|
377
293
|
@last_menstrual_period_date = last_menstrual_period_date if last_menstrual_period_date != OMIT
|
378
294
|
@delay_reason_code = delay_reason_code if delay_reason_code != OMIT
|
379
|
-
@patient = patient if patient != OMIT
|
380
295
|
@patient_authorized_release = patient_authorized_release if patient_authorized_release != OMIT
|
381
296
|
@schema_instances = schema_instances if schema_instances != OMIT
|
382
297
|
@vitals = vitals if vitals != OMIT
|
383
298
|
@existing_medications = existing_medications if existing_medications != OMIT
|
384
|
-
@rendering_provider = rendering_provider if rendering_provider != OMIT
|
385
|
-
@service_facility = service_facility if service_facility != OMIT
|
386
299
|
@guarantor = guarantor if guarantor != OMIT
|
387
|
-
@billing_provider = billing_provider if billing_provider != OMIT
|
388
|
-
@supervising_provider = supervising_provider if supervising_provider != OMIT
|
389
|
-
@referring_provider = referring_provider if referring_provider != OMIT
|
390
|
-
@initial_referring_provider = initial_referring_provider if initial_referring_provider != OMIT
|
391
300
|
@referral_number = referral_number if referral_number != OMIT
|
392
301
|
@epsdt_referral = epsdt_referral if epsdt_referral != OMIT
|
393
302
|
@claim_supplemental_information = claim_supplemental_information if claim_supplemental_information != OMIT
|
303
|
+
@secondary_payer_carrier_code = secondary_payer_carrier_code if secondary_payer_carrier_code != OMIT
|
394
304
|
@additional_properties = additional_properties
|
395
305
|
@_field_set = {
|
396
306
|
"benefits_assigned_to_provider": benefits_assigned_to_provider,
|
@@ -399,7 +309,6 @@ module CandidApiClient
|
|
399
309
|
"date_of_service": date_of_service,
|
400
310
|
"tag_ids": tag_ids,
|
401
311
|
"clinical_notes": clinical_notes,
|
402
|
-
"pay_to_address": pay_to_address,
|
403
312
|
"billable_status": billable_status,
|
404
313
|
"responsible_party": responsible_party,
|
405
314
|
"provider_accepts_assignment": provider_accepts_assignment,
|
@@ -417,21 +326,15 @@ module CandidApiClient
|
|
417
326
|
"onset_of_current_illness_or_symptom_date": onset_of_current_illness_or_symptom_date,
|
418
327
|
"last_menstrual_period_date": last_menstrual_period_date,
|
419
328
|
"delay_reason_code": delay_reason_code,
|
420
|
-
"patient": patient,
|
421
329
|
"patient_authorized_release": patient_authorized_release,
|
422
330
|
"schema_instances": schema_instances,
|
423
331
|
"vitals": vitals,
|
424
332
|
"existing_medications": existing_medications,
|
425
|
-
"rendering_provider": rendering_provider,
|
426
|
-
"service_facility": service_facility,
|
427
333
|
"guarantor": guarantor,
|
428
|
-
"billing_provider": billing_provider,
|
429
|
-
"supervising_provider": supervising_provider,
|
430
|
-
"referring_provider": referring_provider,
|
431
|
-
"initial_referring_provider": initial_referring_provider,
|
432
334
|
"referral_number": referral_number,
|
433
335
|
"epsdt_referral": epsdt_referral,
|
434
|
-
"claim_supplemental_information": claim_supplemental_information
|
336
|
+
"claim_supplemental_information": claim_supplemental_information,
|
337
|
+
"secondary_payer_carrier_code": secondary_payer_carrier_code
|
435
338
|
}.reject do |_k, v|
|
436
339
|
v == OMIT
|
437
340
|
end
|
@@ -453,12 +356,6 @@ module CandidApiClient
|
|
453
356
|
item = item.to_json
|
454
357
|
CandidApiClient::Encounters::V4::Types::ClinicalNoteCategoryCreate.from_json(json_object: item)
|
455
358
|
end
|
456
|
-
if parsed_json["pay_to_address"].nil?
|
457
|
-
pay_to_address = nil
|
458
|
-
else
|
459
|
-
pay_to_address = parsed_json["pay_to_address"].to_json
|
460
|
-
pay_to_address = CandidApiClient::Commons::Types::StreetAddressLongZip.from_json(json_object: pay_to_address)
|
461
|
-
end
|
462
359
|
billable_status = struct["billable_status"]
|
463
360
|
responsible_party = struct["responsible_party"]
|
464
361
|
provider_accepts_assignment = struct["provider_accepts_assignment"]
|
@@ -497,12 +394,6 @@ module CandidApiClient
|
|
497
394
|
Date.parse(parsed_json["last_menstrual_period_date"])
|
498
395
|
end
|
499
396
|
delay_reason_code = struct["delay_reason_code"]
|
500
|
-
if parsed_json["patient"].nil?
|
501
|
-
patient = nil
|
502
|
-
else
|
503
|
-
patient = parsed_json["patient"].to_json
|
504
|
-
patient = CandidApiClient::Individual::Types::PatientUpdate.from_json(json_object: patient)
|
505
|
-
end
|
506
397
|
patient_authorized_release = struct["patient_authorized_release"]
|
507
398
|
schema_instances = parsed_json["schema_instances"]&.map do |item|
|
508
399
|
item = item.to_json
|
@@ -518,48 +409,12 @@ module CandidApiClient
|
|
518
409
|
item = item.to_json
|
519
410
|
CandidApiClient::Encounters::V4::Types::Medication.from_json(json_object: item)
|
520
411
|
end
|
521
|
-
if parsed_json["rendering_provider"].nil?
|
522
|
-
rendering_provider = nil
|
523
|
-
else
|
524
|
-
rendering_provider = parsed_json["rendering_provider"].to_json
|
525
|
-
rendering_provider = CandidApiClient::EncounterProviders::V2::Types::RenderingProviderUpdate.from_json(json_object: rendering_provider)
|
526
|
-
end
|
527
|
-
if parsed_json["service_facility"].nil?
|
528
|
-
service_facility = nil
|
529
|
-
else
|
530
|
-
service_facility = parsed_json["service_facility"].to_json
|
531
|
-
service_facility = CandidApiClient::ServiceFacility::Types::EncounterServiceFacilityUpdate.from_json(json_object: service_facility)
|
532
|
-
end
|
533
412
|
if parsed_json["guarantor"].nil?
|
534
413
|
guarantor = nil
|
535
414
|
else
|
536
415
|
guarantor = parsed_json["guarantor"].to_json
|
537
416
|
guarantor = CandidApiClient::Guarantor::V1::Types::GuarantorUpdate.from_json(json_object: guarantor)
|
538
417
|
end
|
539
|
-
if parsed_json["billing_provider"].nil?
|
540
|
-
billing_provider = nil
|
541
|
-
else
|
542
|
-
billing_provider = parsed_json["billing_provider"].to_json
|
543
|
-
billing_provider = CandidApiClient::EncounterProviders::V2::Types::BillingProviderUpdate.from_json(json_object: billing_provider)
|
544
|
-
end
|
545
|
-
if parsed_json["supervising_provider"].nil?
|
546
|
-
supervising_provider = nil
|
547
|
-
else
|
548
|
-
supervising_provider = parsed_json["supervising_provider"].to_json
|
549
|
-
supervising_provider = CandidApiClient::EncounterProviders::V2::Types::SupervisingProviderUpdate.from_json(json_object: supervising_provider)
|
550
|
-
end
|
551
|
-
if parsed_json["referring_provider"].nil?
|
552
|
-
referring_provider = nil
|
553
|
-
else
|
554
|
-
referring_provider = parsed_json["referring_provider"].to_json
|
555
|
-
referring_provider = CandidApiClient::EncounterProviders::V2::Types::ReferringProviderUpdate.from_json(json_object: referring_provider)
|
556
|
-
end
|
557
|
-
if parsed_json["initial_referring_provider"].nil?
|
558
|
-
initial_referring_provider = nil
|
559
|
-
else
|
560
|
-
initial_referring_provider = parsed_json["initial_referring_provider"].to_json
|
561
|
-
initial_referring_provider = CandidApiClient::EncounterProviders::V2::Types::InitialReferringProviderUpdate.from_json(json_object: initial_referring_provider)
|
562
|
-
end
|
563
418
|
referral_number = struct["referral_number"]
|
564
419
|
if parsed_json["epsdt_referral"].nil?
|
565
420
|
epsdt_referral = nil
|
@@ -571,6 +426,7 @@ module CandidApiClient
|
|
571
426
|
item = item.to_json
|
572
427
|
CandidApiClient::Encounters::V4::Types::ClaimSupplementalInformation.from_json(json_object: item)
|
573
428
|
end
|
429
|
+
secondary_payer_carrier_code = struct["secondary_payer_carrier_code"]
|
574
430
|
new(
|
575
431
|
benefits_assigned_to_provider: benefits_assigned_to_provider,
|
576
432
|
prior_authorization_number: prior_authorization_number,
|
@@ -578,7 +434,6 @@ module CandidApiClient
|
|
578
434
|
date_of_service: date_of_service,
|
579
435
|
tag_ids: tag_ids,
|
580
436
|
clinical_notes: clinical_notes,
|
581
|
-
pay_to_address: pay_to_address,
|
582
437
|
billable_status: billable_status,
|
583
438
|
responsible_party: responsible_party,
|
584
439
|
provider_accepts_assignment: provider_accepts_assignment,
|
@@ -596,21 +451,15 @@ module CandidApiClient
|
|
596
451
|
onset_of_current_illness_or_symptom_date: onset_of_current_illness_or_symptom_date,
|
597
452
|
last_menstrual_period_date: last_menstrual_period_date,
|
598
453
|
delay_reason_code: delay_reason_code,
|
599
|
-
patient: patient,
|
600
454
|
patient_authorized_release: patient_authorized_release,
|
601
455
|
schema_instances: schema_instances,
|
602
456
|
vitals: vitals,
|
603
457
|
existing_medications: existing_medications,
|
604
|
-
rendering_provider: rendering_provider,
|
605
|
-
service_facility: service_facility,
|
606
458
|
guarantor: guarantor,
|
607
|
-
billing_provider: billing_provider,
|
608
|
-
supervising_provider: supervising_provider,
|
609
|
-
referring_provider: referring_provider,
|
610
|
-
initial_referring_provider: initial_referring_provider,
|
611
459
|
referral_number: referral_number,
|
612
460
|
epsdt_referral: epsdt_referral,
|
613
461
|
claim_supplemental_information: claim_supplemental_information,
|
462
|
+
secondary_payer_carrier_code: secondary_payer_carrier_code,
|
614
463
|
additional_properties: struct
|
615
464
|
)
|
616
465
|
end
|
@@ -635,7 +484,6 @@ module CandidApiClient
|
|
635
484
|
obj.date_of_service&.is_a?(Date) != false || raise("Passed value for field obj.date_of_service is not the expected type, validation failed.")
|
636
485
|
obj.tag_ids&.is_a?(Array) != false || raise("Passed value for field obj.tag_ids is not the expected type, validation failed.")
|
637
486
|
obj.clinical_notes&.is_a?(Array) != false || raise("Passed value for field obj.clinical_notes is not the expected type, validation failed.")
|
638
|
-
obj.pay_to_address.nil? || CandidApiClient::Commons::Types::StreetAddressLongZip.validate_raw(obj: obj.pay_to_address)
|
639
487
|
obj.billable_status&.is_a?(CandidApiClient::Encounters::V4::Types::BillableStatusType) != false || raise("Passed value for field obj.billable_status is not the expected type, validation failed.")
|
640
488
|
obj.responsible_party&.is_a?(CandidApiClient::Encounters::V4::Types::ResponsiblePartyType) != false || raise("Passed value for field obj.responsible_party is not the expected type, validation failed.")
|
641
489
|
obj.provider_accepts_assignment&.is_a?(Boolean) != false || raise("Passed value for field obj.provider_accepts_assignment is not the expected type, validation failed.")
|
@@ -653,21 +501,15 @@ module CandidApiClient
|
|
653
501
|
obj.onset_of_current_illness_or_symptom_date&.is_a?(Date) != false || raise("Passed value for field obj.onset_of_current_illness_or_symptom_date is not the expected type, validation failed.")
|
654
502
|
obj.last_menstrual_period_date&.is_a?(Date) != false || raise("Passed value for field obj.last_menstrual_period_date is not the expected type, validation failed.")
|
655
503
|
obj.delay_reason_code&.is_a?(CandidApiClient::Commons::Types::DelayReasonCode) != false || raise("Passed value for field obj.delay_reason_code is not the expected type, validation failed.")
|
656
|
-
obj.patient.nil? || CandidApiClient::Individual::Types::PatientUpdate.validate_raw(obj: obj.patient)
|
657
504
|
obj.patient_authorized_release&.is_a?(Boolean) != false || raise("Passed value for field obj.patient_authorized_release is not the expected type, validation failed.")
|
658
505
|
obj.schema_instances&.is_a?(Array) != false || raise("Passed value for field obj.schema_instances is not the expected type, validation failed.")
|
659
506
|
obj.vitals.nil? || CandidApiClient::Encounters::V4::Types::VitalsUpdate.validate_raw(obj: obj.vitals)
|
660
507
|
obj.existing_medications&.is_a?(Array) != false || raise("Passed value for field obj.existing_medications is not the expected type, validation failed.")
|
661
|
-
obj.rendering_provider.nil? || CandidApiClient::EncounterProviders::V2::Types::RenderingProviderUpdate.validate_raw(obj: obj.rendering_provider)
|
662
|
-
obj.service_facility.nil? || CandidApiClient::ServiceFacility::Types::EncounterServiceFacilityUpdate.validate_raw(obj: obj.service_facility)
|
663
508
|
obj.guarantor.nil? || CandidApiClient::Guarantor::V1::Types::GuarantorUpdate.validate_raw(obj: obj.guarantor)
|
664
|
-
obj.billing_provider.nil? || CandidApiClient::EncounterProviders::V2::Types::BillingProviderUpdate.validate_raw(obj: obj.billing_provider)
|
665
|
-
obj.supervising_provider.nil? || CandidApiClient::EncounterProviders::V2::Types::SupervisingProviderUpdate.validate_raw(obj: obj.supervising_provider)
|
666
|
-
obj.referring_provider.nil? || CandidApiClient::EncounterProviders::V2::Types::ReferringProviderUpdate.validate_raw(obj: obj.referring_provider)
|
667
|
-
obj.initial_referring_provider.nil? || CandidApiClient::EncounterProviders::V2::Types::InitialReferringProviderUpdate.validate_raw(obj: obj.initial_referring_provider)
|
668
509
|
obj.referral_number&.is_a?(String) != false || raise("Passed value for field obj.referral_number is not the expected type, validation failed.")
|
669
510
|
obj.epsdt_referral.nil? || CandidApiClient::Encounters::V4::Types::EpsdtReferral.validate_raw(obj: obj.epsdt_referral)
|
670
511
|
obj.claim_supplemental_information&.is_a?(Array) != false || raise("Passed value for field obj.claim_supplemental_information is not the expected type, validation failed.")
|
512
|
+
obj.secondary_payer_carrier_code&.is_a?(String) != false || raise("Passed value for field obj.secondary_payer_carrier_code is not the expected type, validation failed.")
|
671
513
|
end
|
672
514
|
end
|
673
515
|
end
|
@@ -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
|