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
@@ -5,10 +5,17 @@ require_relative "../../../encounters/v_4/types/intervention"
|
|
5
5
|
require_relative "../../../claim_submission/v_1/types/external_claim_submission_create"
|
6
6
|
require_relative "../../../service_lines/v_2/types/service_line_create"
|
7
7
|
require_relative "../../../encounters/v_4/types/patient_history_category"
|
8
|
-
require_relative "../../../billing_notes/v_2/types/
|
8
|
+
require_relative "../../../billing_notes/v_2/types/billing_note_base"
|
9
|
+
require_relative "../../../individual/types/patient_update_with_optional_address"
|
10
|
+
require_relative "../../../service_facility/types/encounter_service_facility_update_with_optional_address"
|
11
|
+
require_relative "../../../encounter_providers/v_2/types/rendering_provider_update_with_optional_address"
|
12
|
+
require_relative "../../../encounter_providers/v_2/types/initial_referring_provider_update_with_optional_address"
|
13
|
+
require_relative "../../../encounter_providers/v_2/types/referring_provider_update_with_optional_address"
|
14
|
+
require_relative "../../../encounter_providers/v_2/types/supervising_provider_update_with_optional_address"
|
15
|
+
require_relative "../../../encounter_providers/v_2/types/billing_provider_update_with_optional_address"
|
16
|
+
require_relative "../../../commons/types/street_address_short_zip_optional"
|
9
17
|
require "date"
|
10
18
|
require_relative "../../../encounters/v_4/types/clinical_note_category_create"
|
11
|
-
require_relative "../../../commons/types/street_address_long_zip"
|
12
19
|
require_relative "../../../encounters/v_4/types/billable_status_type"
|
13
20
|
require_relative "../../../encounters/v_4/types/responsible_party_type"
|
14
21
|
require_relative "../../../encounters/v_4/types/synchronicity_type"
|
@@ -16,17 +23,10 @@ require_relative "../../../commons/types/facility_type_code"
|
|
16
23
|
require_relative "../../../individual/types/subscriber_create"
|
17
24
|
require_relative "../../../encounters/v_4/types/service_authorization_exception_code"
|
18
25
|
require_relative "../../../commons/types/delay_reason_code"
|
19
|
-
require_relative "../../../individual/types/patient_update"
|
20
26
|
require_relative "../../../custom_schemas/v_1/types/schema_instance"
|
21
27
|
require_relative "../../../encounters/v_4/types/vitals_update"
|
22
28
|
require_relative "../../../encounters/v_4/types/medication"
|
23
|
-
require_relative "../../../encounter_providers/v_2/types/rendering_provider_update"
|
24
|
-
require_relative "../../../service_facility/types/encounter_service_facility_update"
|
25
29
|
require_relative "../../../guarantor/v_1/types/guarantor_update"
|
26
|
-
require_relative "../../../encounter_providers/v_2/types/billing_provider_update"
|
27
|
-
require_relative "../../../encounter_providers/v_2/types/supervising_provider_update"
|
28
|
-
require_relative "../../../encounter_providers/v_2/types/referring_provider_update"
|
29
|
-
require_relative "../../../encounter_providers/v_2/types/initial_referring_provider_update"
|
30
30
|
require_relative "../../../encounters/v_4/types/epsdt_referral"
|
31
31
|
require_relative "../../../encounters/v_4/types/claim_supplemental_information"
|
32
32
|
require "ostruct"
|
@@ -45,7 +45,7 @@ module CandidApiClient
|
|
45
45
|
attr_reader :diagnoses
|
46
46
|
# @return [Array<CandidApiClient::Encounters::V4::Types::Intervention>]
|
47
47
|
attr_reader :interventions
|
48
|
-
# @return [CandidApiClient::ClaimSubmission::V1::Types::ExternalClaimSubmissionCreate]
|
48
|
+
# @return [CandidApiClient::ClaimSubmission::V1::Types::ExternalClaimSubmissionCreate] ***This field is in beta.***
|
49
49
|
# To be included for claims that have been submitted outside of Candid.
|
50
50
|
# Candid supports posting remits and payments to these claims and working them
|
51
51
|
# in-platform (e.g. editing, resubmitting).
|
@@ -56,9 +56,53 @@ module CandidApiClient
|
|
56
56
|
attr_reader :service_lines
|
57
57
|
# @return [Array<CandidApiClient::Encounters::V4::Types::PatientHistoryCategory>]
|
58
58
|
attr_reader :patient_histories
|
59
|
-
# @return [Array<CandidApiClient::BillingNotes::V2::Types::
|
59
|
+
# @return [Array<CandidApiClient::BillingNotes::V2::Types::BillingNoteBase>] Spot to store misc, human-readable, notes about this encounter to be
|
60
60
|
# used in the billing process.
|
61
61
|
attr_reader :billing_notes
|
62
|
+
# @return [CandidApiClient::Individual::Types::PatientUpdateWithOptionalAddress] Contains the identification information of the individual receiving medical
|
63
|
+
# services.
|
64
|
+
attr_reader :patient
|
65
|
+
# @return [CandidApiClient::ServiceFacility::Types::EncounterServiceFacilityUpdateWithOptionalAddress] Encounter Service facility is typically the location a medical service was
|
66
|
+
# rendered, such as a provider office or hospital. For telehealth, service
|
67
|
+
# facility can represent the provider's location when the service was delivered
|
68
|
+
# (e.g., home), or the location where an in-person visit would have taken place,
|
69
|
+
# whichever is easier to identify. If the provider is in-network, service facility
|
70
|
+
# may be defined in payer contracts. Box 32 on the CMS-1500 claim form. Note that
|
71
|
+
# for an in-network claim to be successfully adjudicated, the service facility
|
72
|
+
# address listed on claims must match what was provided to the payer during the
|
73
|
+
# credentialing process.
|
74
|
+
attr_reader :service_facility
|
75
|
+
# @return [CandidApiClient::EncounterProviders::V2::Types::RenderingProviderUpdateWithOptionalAddress] The rendering provider is the practitioner -- physician, nurse practitioner,
|
76
|
+
# etc. -- performing the service.
|
77
|
+
# For telehealth services, the rendering provider performs the visit, asynchronous
|
78
|
+
# communication, or other service. The rendering provider address should generally
|
79
|
+
# be the same as the service facility address.
|
80
|
+
attr_reader :rendering_provider
|
81
|
+
# @return [CandidApiClient::EncounterProviders::V2::Types::InitialReferringProviderUpdateWithOptionalAddress] The second iteration of Loop ID-2310. Use code "P3 - Primary Care Provider" in
|
82
|
+
# this loop to
|
83
|
+
# indicate the initial referral from the primary care provider or whatever
|
84
|
+
# provider wrote the initial referral for this patient's episode of care being
|
85
|
+
# billed/reported in this transaction.
|
86
|
+
attr_reader :initial_referring_provider
|
87
|
+
# @return [CandidApiClient::EncounterProviders::V2::Types::ReferringProviderUpdateWithOptionalAddress] The final provider who referred the services that were rendered.
|
88
|
+
# All physicians who order services or refer Medicare beneficiaries must
|
89
|
+
# report this data.
|
90
|
+
attr_reader :referring_provider
|
91
|
+
# @return [CandidApiClient::EncounterProviders::V2::Types::SupervisingProviderUpdateWithOptionalAddress] Required when the rendering provider is supervised by a physician. If not
|
92
|
+
# required by this implementation guide, do not send.
|
93
|
+
attr_reader :supervising_provider
|
94
|
+
# @return [CandidApiClient::EncounterProviders::V2::Types::BillingProviderUpdateWithOptionalAddress] The billing provider is the provider or business entity submitting the claim.
|
95
|
+
# Billing provider may be, but is not necessarily, the same person/NPI as the
|
96
|
+
# rendering provider. From a payer's perspective, this represents the person or
|
97
|
+
# entity being reimbursed. When a contract exists with the target payer, the
|
98
|
+
# billing provider should be the entity contracted with the payer. In some
|
99
|
+
# circumstances, this will be an individual provider. In that case, submit that
|
100
|
+
# provider's NPI and the tax ID (TIN) that the provider gave to the payer during
|
101
|
+
# contracting. In other cases, the billing entity will be a medical group. If so,
|
102
|
+
# submit the group NPI and the group's tax ID. Box 33 on the CMS-1500 claim form.
|
103
|
+
attr_reader :billing_provider
|
104
|
+
# @return [CandidApiClient::Commons::Types::StreetAddressShortZipOptional] Specifies the address to which payments for the claim should be sent.
|
105
|
+
attr_reader :pay_to_address
|
62
106
|
# @return [Boolean] Whether this patient has authorized insurance payments to be made to you, not
|
63
107
|
# them. If false, patient may receive reimbursement. Box 13 on the CMS-1500 claim
|
64
108
|
# form.
|
@@ -78,14 +122,12 @@ module CandidApiClient
|
|
78
122
|
# same, updating the encounter's date_of_service will update all service line
|
79
123
|
# date_of_service values.
|
80
124
|
attr_reader :date_of_service
|
81
|
-
# @return [Array<String>] Names of tags that should be on the encounter.
|
125
|
+
# @return [Array<String>] Names of tags that should be on the encounter. Note all tags on encounter will
|
82
126
|
# be overridden with this list.
|
83
127
|
attr_reader :tag_ids
|
84
128
|
# @return [Array<CandidApiClient::Encounters::V4::Types::ClinicalNoteCategoryCreate>] Holds a collection of clinical observations made by healthcare providers during
|
85
129
|
# patient encounters.
|
86
130
|
attr_reader :clinical_notes
|
87
|
-
# @return [CandidApiClient::Commons::Types::StreetAddressLongZip] Specifies the address to which payments for the claim should be sent.
|
88
|
-
attr_reader :pay_to_address
|
89
131
|
# @return [CandidApiClient::Encounters::V4::Types::BillableStatusType] Defines if the Encounter is to be billed by Candid to the responsible_party.
|
90
132
|
# Examples for when this should be set to NOT_BILLABLE include if the Encounter
|
91
133
|
# has not occurred yet or if there is no intention of ever billing the
|
@@ -128,40 +170,37 @@ module CandidApiClient
|
|
128
170
|
# @return [String] Defines additional information on the claim needed by the payer.
|
129
171
|
# Box 19 on the CMS-1500 claim form.
|
130
172
|
attr_reader :additional_information
|
131
|
-
# @return [CandidApiClient::Encounters::V4::Types::ServiceAuthorizationExceptionCode] 837p Loop2300 REF
|
173
|
+
# @return [CandidApiClient::Encounters::V4::Types::ServiceAuthorizationExceptionCode] 837p Loop2300 REF*4N
|
132
174
|
# Required when mandated by government law or regulation to obtain authorization
|
133
175
|
# for specific service(s) but, for the
|
134
176
|
# reasons listed in one of the enum values of ServiceAuthorizationExceptionCode,
|
135
177
|
# the service was performed without
|
136
178
|
# obtaining the authorization.
|
137
179
|
attr_reader :service_authorization_exception_code
|
138
|
-
# @return [Date] 837p Loop2300 DTP
|
180
|
+
# @return [Date] 837p Loop2300 DTP*435, CMS-1500 Box 18
|
139
181
|
# Required on all ambulance claims when the patient was known to be admitted to
|
140
182
|
# the hospital.
|
141
183
|
# OR
|
142
184
|
# Required on all claims involving inpatient medical visits.
|
143
185
|
attr_reader :admission_date
|
144
|
-
# @return [Date] 837p Loop2300 DTP
|
186
|
+
# @return [Date] 837p Loop2300 DTP*096, CMS-1500 Box 18
|
145
187
|
# Required for inpatient claims when the patient was discharged from the facility
|
146
188
|
# and the discharge date is known.
|
147
189
|
attr_reader :discharge_date
|
148
|
-
# @return [Date] 837p Loop2300 DTP
|
190
|
+
# @return [Date] 837p Loop2300 DTP*431, CMS-1500 Box 14
|
149
191
|
# Required for the initial medical service or visit performed in response to a
|
150
192
|
# medical emergency when the date is available and is different than the date of
|
151
193
|
# service.
|
152
194
|
# OR
|
153
195
|
# This date is the onset of acute symptoms for the current illness or condition.
|
154
196
|
attr_reader :onset_of_current_illness_or_symptom_date
|
155
|
-
# @return [Date] 837p Loop2300 DTP
|
197
|
+
# @return [Date] 837p Loop2300 DTP*484, CMS-1500 Box 14
|
156
198
|
# Required when, in the judgment of the provider, the services on this claim are
|
157
199
|
# related to the patient's pregnancy.de
|
158
200
|
attr_reader :last_menstrual_period_date
|
159
201
|
# @return [CandidApiClient::Commons::Types::DelayReasonCode] 837i Loop2300, CLM-1300 Box 20
|
160
202
|
# Code indicating the reason why a request was delayed
|
161
203
|
attr_reader :delay_reason_code
|
162
|
-
# @return [CandidApiClient::Individual::Types::PatientUpdate] Contains the identification information of the individual receiving medical
|
163
|
-
# services.
|
164
|
-
attr_reader :patient
|
165
204
|
# @return [Boolean] Whether this patient has authorized the release of medical information
|
166
205
|
# for billing purpose.
|
167
206
|
# Box 12 on the CMS-1500 claim form.
|
@@ -182,48 +221,9 @@ module CandidApiClient
|
|
182
221
|
# Note all current existing medications on encounter will be overridden with this
|
183
222
|
# list.
|
184
223
|
attr_reader :existing_medications
|
185
|
-
# @return [CandidApiClient::EncounterProviders::V2::Types::RenderingProviderUpdate] The rendering provider is the practitioner -- physician, nurse practitioner,
|
186
|
-
# etc. -- performing the service.
|
187
|
-
# For telehealth services, the rendering provider performs the visit, asynchronous
|
188
|
-
# communication, or other service. The rendering provider address should generally
|
189
|
-
# be the same as the service facility address.
|
190
|
-
attr_reader :rendering_provider
|
191
|
-
# @return [CandidApiClient::ServiceFacility::Types::EncounterServiceFacilityUpdate] Encounter Service facility is typically the location a medical service was
|
192
|
-
# rendered, such as a provider office or hospital. For telehealth, service
|
193
|
-
# facility can represent the provider's location when the service was delivered
|
194
|
-
# (e.g., home), or the location where an in-person visit would have taken place,
|
195
|
-
# whichever is easier to identify. If the provider is in-network, service facility
|
196
|
-
# may be defined in payer contracts. Box 32 on the CMS-1500 claim form. Note that
|
197
|
-
# for an in-network claim to be successfully adjudicated, the service facility
|
198
|
-
# address listed on claims must match what was provided to the payer during the
|
199
|
-
# credentialing process.
|
200
|
-
attr_reader :service_facility
|
201
224
|
# @return [CandidApiClient::Guarantor::V1::Types::GuarantorUpdate] Personal and contact info for the guarantor of the patient responsibility.
|
202
225
|
attr_reader :guarantor
|
203
|
-
# @return [
|
204
|
-
# Billing provider may be, but is not necessarily, the same person/NPI as the
|
205
|
-
# rendering provider. From a payer's perspective, this represents the person or
|
206
|
-
# entity being reimbursed. When a contract exists with the target payer, the
|
207
|
-
# billing provider should be the entity contracted with the payer. In some
|
208
|
-
# circumstances, this will be an individual provider. In that case, submit that
|
209
|
-
# provider's NPI and the tax ID (TIN) that the provider gave to the payer during
|
210
|
-
# contracting. In other cases, the billing entity will be a medical group. If so,
|
211
|
-
# submit the group NPI and the group's tax ID. Box 33 on the CMS-1500 claim form.
|
212
|
-
attr_reader :billing_provider
|
213
|
-
# @return [CandidApiClient::EncounterProviders::V2::Types::SupervisingProviderUpdate] Required when the rendering provider is supervised by a physician. If not
|
214
|
-
# required by this implementation guide, do not send.
|
215
|
-
attr_reader :supervising_provider
|
216
|
-
# @return [CandidApiClient::EncounterProviders::V2::Types::ReferringProviderUpdate] The final provider who referred the services that were rendered.
|
217
|
-
# All physicians who order services or refer Medicare beneficiaries must
|
218
|
-
# report this data.
|
219
|
-
attr_reader :referring_provider
|
220
|
-
# @return [CandidApiClient::EncounterProviders::V2::Types::InitialReferringProviderUpdate] The second iteration of Loop ID-2310. Use code "P3 - Primary Care Provider" in
|
221
|
-
# this loop to
|
222
|
-
# indicate the initial referral from the primary care provider or whatever
|
223
|
-
# provider wrote the initial referral for this patient's episode of care being
|
224
|
-
# billed/reported in this transaction.
|
225
|
-
attr_reader :initial_referring_provider
|
226
|
-
# @return [String] Refers to REF\*9F on the 837p. Value cannot be greater than 50 characters.
|
226
|
+
# @return [String] Refers to REF*9F on the 837p. Value cannot be greater than 50 characters.
|
227
227
|
attr_reader :referral_number
|
228
228
|
# @return [CandidApiClient::Encounters::V4::Types::EpsdtReferral] Refers Box 24H on the CMS1500 form and Loop 2300 CRC - EPSDT Referral on the
|
229
229
|
# 837P form
|
@@ -231,6 +231,9 @@ module CandidApiClient
|
|
231
231
|
# @return [Array<CandidApiClient::Encounters::V4::Types::ClaimSupplementalInformation>] Refers to Loop 2300 - Segment PWK on the 837P form. No more than 10 entries are
|
232
232
|
# permitted.
|
233
233
|
attr_reader :claim_supplemental_information
|
234
|
+
# @return [String] When Medicaid is billed as the secondary payer the Carrier Code is used to
|
235
|
+
# identify the primary payer. This is required for certain states.
|
236
|
+
attr_reader :secondary_payer_carrier_code
|
234
237
|
# @return [OpenStruct] Additional properties unmapped to the current class definition
|
235
238
|
attr_reader :additional_properties
|
236
239
|
# @return [Object]
|
@@ -245,7 +248,7 @@ module CandidApiClient
|
|
245
248
|
# be
|
246
249
|
# submitted to the payor.
|
247
250
|
# @param interventions [Array<CandidApiClient::Encounters::V4::Types::Intervention>]
|
248
|
-
# @param external_claim_submission [CandidApiClient::ClaimSubmission::V1::Types::ExternalClaimSubmissionCreate]
|
251
|
+
# @param external_claim_submission [CandidApiClient::ClaimSubmission::V1::Types::ExternalClaimSubmissionCreate] ***This field is in beta.***
|
249
252
|
# To be included for claims that have been submitted outside of Candid.
|
250
253
|
# Candid supports posting remits and payments to these claims and working them
|
251
254
|
# in-platform (e.g. editing, resubmitting).
|
@@ -253,8 +256,44 @@ module CandidApiClient
|
|
253
256
|
# `service_line.diagnosis_pointers`must contain at least one entry which should be
|
254
257
|
# in bounds of the diagnoses list field.
|
255
258
|
# @param patient_histories [Array<CandidApiClient::Encounters::V4::Types::PatientHistoryCategory>]
|
256
|
-
# @param billing_notes [Array<CandidApiClient::BillingNotes::V2::Types::
|
259
|
+
# @param billing_notes [Array<CandidApiClient::BillingNotes::V2::Types::BillingNoteBase>] Spot to store misc, human-readable, notes about this encounter to be
|
257
260
|
# used in the billing process.
|
261
|
+
# @param patient [CandidApiClient::Individual::Types::PatientUpdateWithOptionalAddress] Contains the identification information of the individual receiving medical
|
262
|
+
# services.
|
263
|
+
# @param service_facility [CandidApiClient::ServiceFacility::Types::EncounterServiceFacilityUpdateWithOptionalAddress] Encounter Service facility is typically the location a medical service was
|
264
|
+
# rendered, such as a provider office or hospital. For telehealth, service
|
265
|
+
# facility can represent the provider's location when the service was delivered
|
266
|
+
# (e.g., home), or the location where an in-person visit would have taken place,
|
267
|
+
# whichever is easier to identify. If the provider is in-network, service facility
|
268
|
+
# may be defined in payer contracts. Box 32 on the CMS-1500 claim form. Note that
|
269
|
+
# for an in-network claim to be successfully adjudicated, the service facility
|
270
|
+
# address listed on claims must match what was provided to the payer during the
|
271
|
+
# credentialing process.
|
272
|
+
# @param rendering_provider [CandidApiClient::EncounterProviders::V2::Types::RenderingProviderUpdateWithOptionalAddress] The rendering provider is the practitioner -- physician, nurse practitioner,
|
273
|
+
# etc. -- performing the service.
|
274
|
+
# For telehealth services, the rendering provider performs the visit, asynchronous
|
275
|
+
# communication, or other service. The rendering provider address should generally
|
276
|
+
# be the same as the service facility address.
|
277
|
+
# @param initial_referring_provider [CandidApiClient::EncounterProviders::V2::Types::InitialReferringProviderUpdateWithOptionalAddress] The second iteration of Loop ID-2310. Use code "P3 - Primary Care Provider" in
|
278
|
+
# this loop to
|
279
|
+
# indicate the initial referral from the primary care provider or whatever
|
280
|
+
# provider wrote the initial referral for this patient's episode of care being
|
281
|
+
# billed/reported in this transaction.
|
282
|
+
# @param referring_provider [CandidApiClient::EncounterProviders::V2::Types::ReferringProviderUpdateWithOptionalAddress] The final provider who referred the services that were rendered.
|
283
|
+
# All physicians who order services or refer Medicare beneficiaries must
|
284
|
+
# report this data.
|
285
|
+
# @param supervising_provider [CandidApiClient::EncounterProviders::V2::Types::SupervisingProviderUpdateWithOptionalAddress] Required when the rendering provider is supervised by a physician. If not
|
286
|
+
# required by this implementation guide, do not send.
|
287
|
+
# @param billing_provider [CandidApiClient::EncounterProviders::V2::Types::BillingProviderUpdateWithOptionalAddress] The billing provider is the provider or business entity submitting the claim.
|
288
|
+
# Billing provider may be, but is not necessarily, the same person/NPI as the
|
289
|
+
# rendering provider. From a payer's perspective, this represents the person or
|
290
|
+
# entity being reimbursed. When a contract exists with the target payer, the
|
291
|
+
# billing provider should be the entity contracted with the payer. In some
|
292
|
+
# circumstances, this will be an individual provider. In that case, submit that
|
293
|
+
# provider's NPI and the tax ID (TIN) that the provider gave to the payer during
|
294
|
+
# contracting. In other cases, the billing entity will be a medical group. If so,
|
295
|
+
# submit the group NPI and the group's tax ID. Box 33 on the CMS-1500 claim form.
|
296
|
+
# @param pay_to_address [CandidApiClient::Commons::Types::StreetAddressShortZipOptional] Specifies the address to which payments for the claim should be sent.
|
258
297
|
# @param benefits_assigned_to_provider [Boolean] Whether this patient has authorized insurance payments to be made to you, not
|
259
298
|
# them. If false, patient may receive reimbursement. Box 13 on the CMS-1500 claim
|
260
299
|
# form.
|
@@ -270,11 +309,10 @@ module CandidApiClient
|
|
270
309
|
# date_of_service will fail. If all service line date_of_service values are the
|
271
310
|
# same, updating the encounter's date_of_service will update all service line
|
272
311
|
# date_of_service values.
|
273
|
-
# @param tag_ids [Array<String>] Names of tags that should be on the encounter.
|
312
|
+
# @param tag_ids [Array<String>] Names of tags that should be on the encounter. Note all tags on encounter will
|
274
313
|
# be overridden with this list.
|
275
314
|
# @param clinical_notes [Array<CandidApiClient::Encounters::V4::Types::ClinicalNoteCategoryCreate>] Holds a collection of clinical observations made by healthcare providers during
|
276
315
|
# patient encounters.
|
277
|
-
# @param pay_to_address [CandidApiClient::Commons::Types::StreetAddressLongZip] Specifies the address to which payments for the claim should be sent.
|
278
316
|
# @param billable_status [CandidApiClient::Encounters::V4::Types::BillableStatusType] Defines if the Encounter is to be billed by Candid to the responsible_party.
|
279
317
|
# Examples for when this should be set to NOT_BILLABLE include if the Encounter
|
280
318
|
# has not occurred yet or if there is no intention of ever billing the
|
@@ -306,33 +344,31 @@ module CandidApiClient
|
|
306
344
|
# @param subscriber_tertiary [CandidApiClient::Individual::Types::SubscriberCreate] Contains details of the tertiary insurance subscriber.
|
307
345
|
# @param additional_information [String] Defines additional information on the claim needed by the payer.
|
308
346
|
# Box 19 on the CMS-1500 claim form.
|
309
|
-
# @param service_authorization_exception_code [CandidApiClient::Encounters::V4::Types::ServiceAuthorizationExceptionCode] 837p Loop2300 REF
|
347
|
+
# @param service_authorization_exception_code [CandidApiClient::Encounters::V4::Types::ServiceAuthorizationExceptionCode] 837p Loop2300 REF*4N
|
310
348
|
# Required when mandated by government law or regulation to obtain authorization
|
311
349
|
# for specific service(s) but, for the
|
312
350
|
# reasons listed in one of the enum values of ServiceAuthorizationExceptionCode,
|
313
351
|
# the service was performed without
|
314
352
|
# obtaining the authorization.
|
315
|
-
# @param admission_date [Date] 837p Loop2300 DTP
|
353
|
+
# @param admission_date [Date] 837p Loop2300 DTP*435, CMS-1500 Box 18
|
316
354
|
# Required on all ambulance claims when the patient was known to be admitted to
|
317
355
|
# the hospital.
|
318
356
|
# OR
|
319
357
|
# Required on all claims involving inpatient medical visits.
|
320
|
-
# @param discharge_date [Date] 837p Loop2300 DTP
|
358
|
+
# @param discharge_date [Date] 837p Loop2300 DTP*096, CMS-1500 Box 18
|
321
359
|
# Required for inpatient claims when the patient was discharged from the facility
|
322
360
|
# and the discharge date is known.
|
323
|
-
# @param onset_of_current_illness_or_symptom_date [Date] 837p Loop2300 DTP
|
361
|
+
# @param onset_of_current_illness_or_symptom_date [Date] 837p Loop2300 DTP*431, CMS-1500 Box 14
|
324
362
|
# Required for the initial medical service or visit performed in response to a
|
325
363
|
# medical emergency when the date is available and is different than the date of
|
326
364
|
# service.
|
327
365
|
# OR
|
328
366
|
# This date is the onset of acute symptoms for the current illness or condition.
|
329
|
-
# @param last_menstrual_period_date [Date] 837p Loop2300 DTP
|
367
|
+
# @param last_menstrual_period_date [Date] 837p Loop2300 DTP*484, CMS-1500 Box 14
|
330
368
|
# Required when, in the judgment of the provider, the services on this claim are
|
331
369
|
# related to the patient's pregnancy.de
|
332
370
|
# @param delay_reason_code [CandidApiClient::Commons::Types::DelayReasonCode] 837i Loop2300, CLM-1300 Box 20
|
333
371
|
# Code indicating the reason why a request was delayed
|
334
|
-
# @param patient [CandidApiClient::Individual::Types::PatientUpdate] Contains the identification information of the individual receiving medical
|
335
|
-
# services.
|
336
372
|
# @param patient_authorized_release [Boolean] Whether this patient has authorized the release of medical information
|
337
373
|
# for billing purpose.
|
338
374
|
# Box 12 on the CMS-1500 claim form.
|
@@ -349,62 +385,38 @@ module CandidApiClient
|
|
349
385
|
# @param existing_medications [Array<CandidApiClient::Encounters::V4::Types::Medication>] Existing medications that should be on the encounter.
|
350
386
|
# Note all current existing medications on encounter will be overridden with this
|
351
387
|
# list.
|
352
|
-
# @param rendering_provider [CandidApiClient::EncounterProviders::V2::Types::RenderingProviderUpdate] The rendering provider is the practitioner -- physician, nurse practitioner,
|
353
|
-
# etc. -- performing the service.
|
354
|
-
# For telehealth services, the rendering provider performs the visit, asynchronous
|
355
|
-
# communication, or other service. The rendering provider address should generally
|
356
|
-
# be the same as the service facility address.
|
357
|
-
# @param service_facility [CandidApiClient::ServiceFacility::Types::EncounterServiceFacilityUpdate] Encounter Service facility is typically the location a medical service was
|
358
|
-
# rendered, such as a provider office or hospital. For telehealth, service
|
359
|
-
# facility can represent the provider's location when the service was delivered
|
360
|
-
# (e.g., home), or the location where an in-person visit would have taken place,
|
361
|
-
# whichever is easier to identify. If the provider is in-network, service facility
|
362
|
-
# may be defined in payer contracts. Box 32 on the CMS-1500 claim form. Note that
|
363
|
-
# for an in-network claim to be successfully adjudicated, the service facility
|
364
|
-
# address listed on claims must match what was provided to the payer during the
|
365
|
-
# credentialing process.
|
366
388
|
# @param guarantor [CandidApiClient::Guarantor::V1::Types::GuarantorUpdate] Personal and contact info for the guarantor of the patient responsibility.
|
367
|
-
# @param
|
368
|
-
# Billing provider may be, but is not necessarily, the same person/NPI as the
|
369
|
-
# rendering provider. From a payer's perspective, this represents the person or
|
370
|
-
# entity being reimbursed. When a contract exists with the target payer, the
|
371
|
-
# billing provider should be the entity contracted with the payer. In some
|
372
|
-
# circumstances, this will be an individual provider. In that case, submit that
|
373
|
-
# provider's NPI and the tax ID (TIN) that the provider gave to the payer during
|
374
|
-
# contracting. In other cases, the billing entity will be a medical group. If so,
|
375
|
-
# submit the group NPI and the group's tax ID. Box 33 on the CMS-1500 claim form.
|
376
|
-
# @param supervising_provider [CandidApiClient::EncounterProviders::V2::Types::SupervisingProviderUpdate] Required when the rendering provider is supervised by a physician. If not
|
377
|
-
# required by this implementation guide, do not send.
|
378
|
-
# @param referring_provider [CandidApiClient::EncounterProviders::V2::Types::ReferringProviderUpdate] The final provider who referred the services that were rendered.
|
379
|
-
# All physicians who order services or refer Medicare beneficiaries must
|
380
|
-
# report this data.
|
381
|
-
# @param initial_referring_provider [CandidApiClient::EncounterProviders::V2::Types::InitialReferringProviderUpdate] The second iteration of Loop ID-2310. Use code "P3 - Primary Care Provider" in
|
382
|
-
# this loop to
|
383
|
-
# indicate the initial referral from the primary care provider or whatever
|
384
|
-
# provider wrote the initial referral for this patient's episode of care being
|
385
|
-
# billed/reported in this transaction.
|
386
|
-
# @param referral_number [String] Refers to REF\*9F on the 837p. Value cannot be greater than 50 characters.
|
389
|
+
# @param referral_number [String] Refers to REF*9F on the 837p. Value cannot be greater than 50 characters.
|
387
390
|
# @param epsdt_referral [CandidApiClient::Encounters::V4::Types::EpsdtReferral] Refers Box 24H on the CMS1500 form and Loop 2300 CRC - EPSDT Referral on the
|
388
391
|
# 837P form
|
389
392
|
# @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
|
390
393
|
# permitted.
|
394
|
+
# @param secondary_payer_carrier_code [String] When Medicaid is billed as the secondary payer the Carrier Code is used to
|
395
|
+
# identify the primary payer. This is required for certain states.
|
391
396
|
# @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
|
392
397
|
# @return [CandidApiClient::ChargeCapture::V1::Types::ChargeCaptureData]
|
393
398
|
def initialize(diagnoses: OMIT, interventions: OMIT, external_claim_submission: OMIT, service_lines: OMIT,
|
394
|
-
patient_histories: OMIT, billing_notes: OMIT,
|
399
|
+
patient_histories: OMIT, billing_notes: OMIT, patient: OMIT, service_facility: OMIT, rendering_provider: OMIT, initial_referring_provider: OMIT, referring_provider: OMIT, supervising_provider: OMIT, billing_provider: OMIT, pay_to_address: OMIT, benefits_assigned_to_provider: OMIT, prior_authorization_number: OMIT, external_id: OMIT, 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)
|
395
400
|
@diagnoses = diagnoses if diagnoses != OMIT
|
396
401
|
@interventions = interventions if interventions != OMIT
|
397
402
|
@external_claim_submission = external_claim_submission if external_claim_submission != OMIT
|
398
403
|
@service_lines = service_lines if service_lines != OMIT
|
399
404
|
@patient_histories = patient_histories if patient_histories != OMIT
|
400
405
|
@billing_notes = billing_notes if billing_notes != OMIT
|
406
|
+
@patient = patient if patient != OMIT
|
407
|
+
@service_facility = service_facility if service_facility != OMIT
|
408
|
+
@rendering_provider = rendering_provider if rendering_provider != OMIT
|
409
|
+
@initial_referring_provider = initial_referring_provider if initial_referring_provider != OMIT
|
410
|
+
@referring_provider = referring_provider if referring_provider != OMIT
|
411
|
+
@supervising_provider = supervising_provider if supervising_provider != OMIT
|
412
|
+
@billing_provider = billing_provider if billing_provider != OMIT
|
413
|
+
@pay_to_address = pay_to_address if pay_to_address != OMIT
|
401
414
|
@benefits_assigned_to_provider = benefits_assigned_to_provider if benefits_assigned_to_provider != OMIT
|
402
415
|
@prior_authorization_number = prior_authorization_number if prior_authorization_number != OMIT
|
403
416
|
@external_id = external_id if external_id != OMIT
|
404
417
|
@date_of_service = date_of_service if date_of_service != OMIT
|
405
418
|
@tag_ids = tag_ids if tag_ids != OMIT
|
406
419
|
@clinical_notes = clinical_notes if clinical_notes != OMIT
|
407
|
-
@pay_to_address = pay_to_address if pay_to_address != OMIT
|
408
420
|
@billable_status = billable_status if billable_status != OMIT
|
409
421
|
@responsible_party = responsible_party if responsible_party != OMIT
|
410
422
|
@provider_accepts_assignment = provider_accepts_assignment if provider_accepts_assignment != OMIT
|
@@ -426,21 +438,15 @@ module CandidApiClient
|
|
426
438
|
end
|
427
439
|
@last_menstrual_period_date = last_menstrual_period_date if last_menstrual_period_date != OMIT
|
428
440
|
@delay_reason_code = delay_reason_code if delay_reason_code != OMIT
|
429
|
-
@patient = patient if patient != OMIT
|
430
441
|
@patient_authorized_release = patient_authorized_release if patient_authorized_release != OMIT
|
431
442
|
@schema_instances = schema_instances if schema_instances != OMIT
|
432
443
|
@vitals = vitals if vitals != OMIT
|
433
444
|
@existing_medications = existing_medications if existing_medications != OMIT
|
434
|
-
@rendering_provider = rendering_provider if rendering_provider != OMIT
|
435
|
-
@service_facility = service_facility if service_facility != OMIT
|
436
445
|
@guarantor = guarantor if guarantor != OMIT
|
437
|
-
@billing_provider = billing_provider if billing_provider != OMIT
|
438
|
-
@supervising_provider = supervising_provider if supervising_provider != OMIT
|
439
|
-
@referring_provider = referring_provider if referring_provider != OMIT
|
440
|
-
@initial_referring_provider = initial_referring_provider if initial_referring_provider != OMIT
|
441
446
|
@referral_number = referral_number if referral_number != OMIT
|
442
447
|
@epsdt_referral = epsdt_referral if epsdt_referral != OMIT
|
443
448
|
@claim_supplemental_information = claim_supplemental_information if claim_supplemental_information != OMIT
|
449
|
+
@secondary_payer_carrier_code = secondary_payer_carrier_code if secondary_payer_carrier_code != OMIT
|
444
450
|
@additional_properties = additional_properties
|
445
451
|
@_field_set = {
|
446
452
|
"diagnoses": diagnoses,
|
@@ -449,13 +455,20 @@ module CandidApiClient
|
|
449
455
|
"service_lines": service_lines,
|
450
456
|
"patient_histories": patient_histories,
|
451
457
|
"billing_notes": billing_notes,
|
458
|
+
"patient": patient,
|
459
|
+
"service_facility": service_facility,
|
460
|
+
"rendering_provider": rendering_provider,
|
461
|
+
"initial_referring_provider": initial_referring_provider,
|
462
|
+
"referring_provider": referring_provider,
|
463
|
+
"supervising_provider": supervising_provider,
|
464
|
+
"billing_provider": billing_provider,
|
465
|
+
"pay_to_address": pay_to_address,
|
452
466
|
"benefits_assigned_to_provider": benefits_assigned_to_provider,
|
453
467
|
"prior_authorization_number": prior_authorization_number,
|
454
468
|
"external_id": external_id,
|
455
469
|
"date_of_service": date_of_service,
|
456
470
|
"tag_ids": tag_ids,
|
457
471
|
"clinical_notes": clinical_notes,
|
458
|
-
"pay_to_address": pay_to_address,
|
459
472
|
"billable_status": billable_status,
|
460
473
|
"responsible_party": responsible_party,
|
461
474
|
"provider_accepts_assignment": provider_accepts_assignment,
|
@@ -473,21 +486,15 @@ module CandidApiClient
|
|
473
486
|
"onset_of_current_illness_or_symptom_date": onset_of_current_illness_or_symptom_date,
|
474
487
|
"last_menstrual_period_date": last_menstrual_period_date,
|
475
488
|
"delay_reason_code": delay_reason_code,
|
476
|
-
"patient": patient,
|
477
489
|
"patient_authorized_release": patient_authorized_release,
|
478
490
|
"schema_instances": schema_instances,
|
479
491
|
"vitals": vitals,
|
480
492
|
"existing_medications": existing_medications,
|
481
|
-
"rendering_provider": rendering_provider,
|
482
|
-
"service_facility": service_facility,
|
483
493
|
"guarantor": guarantor,
|
484
|
-
"billing_provider": billing_provider,
|
485
|
-
"supervising_provider": supervising_provider,
|
486
|
-
"referring_provider": referring_provider,
|
487
|
-
"initial_referring_provider": initial_referring_provider,
|
488
494
|
"referral_number": referral_number,
|
489
495
|
"epsdt_referral": epsdt_referral,
|
490
|
-
"claim_supplemental_information": claim_supplemental_information
|
496
|
+
"claim_supplemental_information": claim_supplemental_information,
|
497
|
+
"secondary_payer_carrier_code": secondary_payer_carrier_code
|
491
498
|
}.reject do |_k, v|
|
492
499
|
v == OMIT
|
493
500
|
end
|
@@ -524,7 +531,55 @@ module CandidApiClient
|
|
524
531
|
end
|
525
532
|
billing_notes = parsed_json["billing_notes"]&.map do |item|
|
526
533
|
item = item.to_json
|
527
|
-
CandidApiClient::BillingNotes::V2::Types::
|
534
|
+
CandidApiClient::BillingNotes::V2::Types::BillingNoteBase.from_json(json_object: item)
|
535
|
+
end
|
536
|
+
if parsed_json["patient"].nil?
|
537
|
+
patient = nil
|
538
|
+
else
|
539
|
+
patient = parsed_json["patient"].to_json
|
540
|
+
patient = CandidApiClient::Individual::Types::PatientUpdateWithOptionalAddress.from_json(json_object: patient)
|
541
|
+
end
|
542
|
+
if parsed_json["service_facility"].nil?
|
543
|
+
service_facility = nil
|
544
|
+
else
|
545
|
+
service_facility = parsed_json["service_facility"].to_json
|
546
|
+
service_facility = CandidApiClient::ServiceFacility::Types::EncounterServiceFacilityUpdateWithOptionalAddress.from_json(json_object: service_facility)
|
547
|
+
end
|
548
|
+
if parsed_json["rendering_provider"].nil?
|
549
|
+
rendering_provider = nil
|
550
|
+
else
|
551
|
+
rendering_provider = parsed_json["rendering_provider"].to_json
|
552
|
+
rendering_provider = CandidApiClient::EncounterProviders::V2::Types::RenderingProviderUpdateWithOptionalAddress.from_json(json_object: rendering_provider)
|
553
|
+
end
|
554
|
+
if parsed_json["initial_referring_provider"].nil?
|
555
|
+
initial_referring_provider = nil
|
556
|
+
else
|
557
|
+
initial_referring_provider = parsed_json["initial_referring_provider"].to_json
|
558
|
+
initial_referring_provider = CandidApiClient::EncounterProviders::V2::Types::InitialReferringProviderUpdateWithOptionalAddress.from_json(json_object: initial_referring_provider)
|
559
|
+
end
|
560
|
+
if parsed_json["referring_provider"].nil?
|
561
|
+
referring_provider = nil
|
562
|
+
else
|
563
|
+
referring_provider = parsed_json["referring_provider"].to_json
|
564
|
+
referring_provider = CandidApiClient::EncounterProviders::V2::Types::ReferringProviderUpdateWithOptionalAddress.from_json(json_object: referring_provider)
|
565
|
+
end
|
566
|
+
if parsed_json["supervising_provider"].nil?
|
567
|
+
supervising_provider = nil
|
568
|
+
else
|
569
|
+
supervising_provider = parsed_json["supervising_provider"].to_json
|
570
|
+
supervising_provider = CandidApiClient::EncounterProviders::V2::Types::SupervisingProviderUpdateWithOptionalAddress.from_json(json_object: supervising_provider)
|
571
|
+
end
|
572
|
+
if parsed_json["billing_provider"].nil?
|
573
|
+
billing_provider = nil
|
574
|
+
else
|
575
|
+
billing_provider = parsed_json["billing_provider"].to_json
|
576
|
+
billing_provider = CandidApiClient::EncounterProviders::V2::Types::BillingProviderUpdateWithOptionalAddress.from_json(json_object: billing_provider)
|
577
|
+
end
|
578
|
+
if parsed_json["pay_to_address"].nil?
|
579
|
+
pay_to_address = nil
|
580
|
+
else
|
581
|
+
pay_to_address = parsed_json["pay_to_address"].to_json
|
582
|
+
pay_to_address = CandidApiClient::Commons::Types::StreetAddressShortZipOptional.from_json(json_object: pay_to_address)
|
528
583
|
end
|
529
584
|
benefits_assigned_to_provider = struct["benefits_assigned_to_provider"]
|
530
585
|
prior_authorization_number = struct["prior_authorization_number"]
|
@@ -535,12 +590,6 @@ module CandidApiClient
|
|
535
590
|
item = item.to_json
|
536
591
|
CandidApiClient::Encounters::V4::Types::ClinicalNoteCategoryCreate.from_json(json_object: item)
|
537
592
|
end
|
538
|
-
if parsed_json["pay_to_address"].nil?
|
539
|
-
pay_to_address = nil
|
540
|
-
else
|
541
|
-
pay_to_address = parsed_json["pay_to_address"].to_json
|
542
|
-
pay_to_address = CandidApiClient::Commons::Types::StreetAddressLongZip.from_json(json_object: pay_to_address)
|
543
|
-
end
|
544
593
|
billable_status = struct["billable_status"]
|
545
594
|
responsible_party = struct["responsible_party"]
|
546
595
|
provider_accepts_assignment = struct["provider_accepts_assignment"]
|
@@ -579,12 +628,6 @@ module CandidApiClient
|
|
579
628
|
Date.parse(parsed_json["last_menstrual_period_date"])
|
580
629
|
end
|
581
630
|
delay_reason_code = struct["delay_reason_code"]
|
582
|
-
if parsed_json["patient"].nil?
|
583
|
-
patient = nil
|
584
|
-
else
|
585
|
-
patient = parsed_json["patient"].to_json
|
586
|
-
patient = CandidApiClient::Individual::Types::PatientUpdate.from_json(json_object: patient)
|
587
|
-
end
|
588
631
|
patient_authorized_release = struct["patient_authorized_release"]
|
589
632
|
schema_instances = parsed_json["schema_instances"]&.map do |item|
|
590
633
|
item = item.to_json
|
@@ -600,48 +643,12 @@ module CandidApiClient
|
|
600
643
|
item = item.to_json
|
601
644
|
CandidApiClient::Encounters::V4::Types::Medication.from_json(json_object: item)
|
602
645
|
end
|
603
|
-
if parsed_json["rendering_provider"].nil?
|
604
|
-
rendering_provider = nil
|
605
|
-
else
|
606
|
-
rendering_provider = parsed_json["rendering_provider"].to_json
|
607
|
-
rendering_provider = CandidApiClient::EncounterProviders::V2::Types::RenderingProviderUpdate.from_json(json_object: rendering_provider)
|
608
|
-
end
|
609
|
-
if parsed_json["service_facility"].nil?
|
610
|
-
service_facility = nil
|
611
|
-
else
|
612
|
-
service_facility = parsed_json["service_facility"].to_json
|
613
|
-
service_facility = CandidApiClient::ServiceFacility::Types::EncounterServiceFacilityUpdate.from_json(json_object: service_facility)
|
614
|
-
end
|
615
646
|
if parsed_json["guarantor"].nil?
|
616
647
|
guarantor = nil
|
617
648
|
else
|
618
649
|
guarantor = parsed_json["guarantor"].to_json
|
619
650
|
guarantor = CandidApiClient::Guarantor::V1::Types::GuarantorUpdate.from_json(json_object: guarantor)
|
620
651
|
end
|
621
|
-
if parsed_json["billing_provider"].nil?
|
622
|
-
billing_provider = nil
|
623
|
-
else
|
624
|
-
billing_provider = parsed_json["billing_provider"].to_json
|
625
|
-
billing_provider = CandidApiClient::EncounterProviders::V2::Types::BillingProviderUpdate.from_json(json_object: billing_provider)
|
626
|
-
end
|
627
|
-
if parsed_json["supervising_provider"].nil?
|
628
|
-
supervising_provider = nil
|
629
|
-
else
|
630
|
-
supervising_provider = parsed_json["supervising_provider"].to_json
|
631
|
-
supervising_provider = CandidApiClient::EncounterProviders::V2::Types::SupervisingProviderUpdate.from_json(json_object: supervising_provider)
|
632
|
-
end
|
633
|
-
if parsed_json["referring_provider"].nil?
|
634
|
-
referring_provider = nil
|
635
|
-
else
|
636
|
-
referring_provider = parsed_json["referring_provider"].to_json
|
637
|
-
referring_provider = CandidApiClient::EncounterProviders::V2::Types::ReferringProviderUpdate.from_json(json_object: referring_provider)
|
638
|
-
end
|
639
|
-
if parsed_json["initial_referring_provider"].nil?
|
640
|
-
initial_referring_provider = nil
|
641
|
-
else
|
642
|
-
initial_referring_provider = parsed_json["initial_referring_provider"].to_json
|
643
|
-
initial_referring_provider = CandidApiClient::EncounterProviders::V2::Types::InitialReferringProviderUpdate.from_json(json_object: initial_referring_provider)
|
644
|
-
end
|
645
652
|
referral_number = struct["referral_number"]
|
646
653
|
if parsed_json["epsdt_referral"].nil?
|
647
654
|
epsdt_referral = nil
|
@@ -653,6 +660,7 @@ module CandidApiClient
|
|
653
660
|
item = item.to_json
|
654
661
|
CandidApiClient::Encounters::V4::Types::ClaimSupplementalInformation.from_json(json_object: item)
|
655
662
|
end
|
663
|
+
secondary_payer_carrier_code = struct["secondary_payer_carrier_code"]
|
656
664
|
new(
|
657
665
|
diagnoses: diagnoses,
|
658
666
|
interventions: interventions,
|
@@ -660,13 +668,20 @@ module CandidApiClient
|
|
660
668
|
service_lines: service_lines,
|
661
669
|
patient_histories: patient_histories,
|
662
670
|
billing_notes: billing_notes,
|
671
|
+
patient: patient,
|
672
|
+
service_facility: service_facility,
|
673
|
+
rendering_provider: rendering_provider,
|
674
|
+
initial_referring_provider: initial_referring_provider,
|
675
|
+
referring_provider: referring_provider,
|
676
|
+
supervising_provider: supervising_provider,
|
677
|
+
billing_provider: billing_provider,
|
678
|
+
pay_to_address: pay_to_address,
|
663
679
|
benefits_assigned_to_provider: benefits_assigned_to_provider,
|
664
680
|
prior_authorization_number: prior_authorization_number,
|
665
681
|
external_id: external_id,
|
666
682
|
date_of_service: date_of_service,
|
667
683
|
tag_ids: tag_ids,
|
668
684
|
clinical_notes: clinical_notes,
|
669
|
-
pay_to_address: pay_to_address,
|
670
685
|
billable_status: billable_status,
|
671
686
|
responsible_party: responsible_party,
|
672
687
|
provider_accepts_assignment: provider_accepts_assignment,
|
@@ -684,21 +699,15 @@ module CandidApiClient
|
|
684
699
|
onset_of_current_illness_or_symptom_date: onset_of_current_illness_or_symptom_date,
|
685
700
|
last_menstrual_period_date: last_menstrual_period_date,
|
686
701
|
delay_reason_code: delay_reason_code,
|
687
|
-
patient: patient,
|
688
702
|
patient_authorized_release: patient_authorized_release,
|
689
703
|
schema_instances: schema_instances,
|
690
704
|
vitals: vitals,
|
691
705
|
existing_medications: existing_medications,
|
692
|
-
rendering_provider: rendering_provider,
|
693
|
-
service_facility: service_facility,
|
694
706
|
guarantor: guarantor,
|
695
|
-
billing_provider: billing_provider,
|
696
|
-
supervising_provider: supervising_provider,
|
697
|
-
referring_provider: referring_provider,
|
698
|
-
initial_referring_provider: initial_referring_provider,
|
699
707
|
referral_number: referral_number,
|
700
708
|
epsdt_referral: epsdt_referral,
|
701
709
|
claim_supplemental_information: claim_supplemental_information,
|
710
|
+
secondary_payer_carrier_code: secondary_payer_carrier_code,
|
702
711
|
additional_properties: struct
|
703
712
|
)
|
704
713
|
end
|
@@ -723,13 +732,20 @@ module CandidApiClient
|
|
723
732
|
obj.service_lines&.is_a?(Array) != false || raise("Passed value for field obj.service_lines is not the expected type, validation failed.")
|
724
733
|
obj.patient_histories&.is_a?(Array) != false || raise("Passed value for field obj.patient_histories is not the expected type, validation failed.")
|
725
734
|
obj.billing_notes&.is_a?(Array) != false || raise("Passed value for field obj.billing_notes is not the expected type, validation failed.")
|
735
|
+
obj.patient.nil? || CandidApiClient::Individual::Types::PatientUpdateWithOptionalAddress.validate_raw(obj: obj.patient)
|
736
|
+
obj.service_facility.nil? || CandidApiClient::ServiceFacility::Types::EncounterServiceFacilityUpdateWithOptionalAddress.validate_raw(obj: obj.service_facility)
|
737
|
+
obj.rendering_provider.nil? || CandidApiClient::EncounterProviders::V2::Types::RenderingProviderUpdateWithOptionalAddress.validate_raw(obj: obj.rendering_provider)
|
738
|
+
obj.initial_referring_provider.nil? || CandidApiClient::EncounterProviders::V2::Types::InitialReferringProviderUpdateWithOptionalAddress.validate_raw(obj: obj.initial_referring_provider)
|
739
|
+
obj.referring_provider.nil? || CandidApiClient::EncounterProviders::V2::Types::ReferringProviderUpdateWithOptionalAddress.validate_raw(obj: obj.referring_provider)
|
740
|
+
obj.supervising_provider.nil? || CandidApiClient::EncounterProviders::V2::Types::SupervisingProviderUpdateWithOptionalAddress.validate_raw(obj: obj.supervising_provider)
|
741
|
+
obj.billing_provider.nil? || CandidApiClient::EncounterProviders::V2::Types::BillingProviderUpdateWithOptionalAddress.validate_raw(obj: obj.billing_provider)
|
742
|
+
obj.pay_to_address.nil? || CandidApiClient::Commons::Types::StreetAddressShortZipOptional.validate_raw(obj: obj.pay_to_address)
|
726
743
|
obj.benefits_assigned_to_provider&.is_a?(Boolean) != false || raise("Passed value for field obj.benefits_assigned_to_provider is not the expected type, validation failed.")
|
727
744
|
obj.prior_authorization_number&.is_a?(String) != false || raise("Passed value for field obj.prior_authorization_number is not the expected type, validation failed.")
|
728
745
|
obj.external_id&.is_a?(String) != false || raise("Passed value for field obj.external_id is not the expected type, validation failed.")
|
729
746
|
obj.date_of_service&.is_a?(Date) != false || raise("Passed value for field obj.date_of_service is not the expected type, validation failed.")
|
730
747
|
obj.tag_ids&.is_a?(Array) != false || raise("Passed value for field obj.tag_ids is not the expected type, validation failed.")
|
731
748
|
obj.clinical_notes&.is_a?(Array) != false || raise("Passed value for field obj.clinical_notes is not the expected type, validation failed.")
|
732
|
-
obj.pay_to_address.nil? || CandidApiClient::Commons::Types::StreetAddressLongZip.validate_raw(obj: obj.pay_to_address)
|
733
749
|
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.")
|
734
750
|
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.")
|
735
751
|
obj.provider_accepts_assignment&.is_a?(Boolean) != false || raise("Passed value for field obj.provider_accepts_assignment is not the expected type, validation failed.")
|
@@ -747,21 +763,15 @@ module CandidApiClient
|
|
747
763
|
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.")
|
748
764
|
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.")
|
749
765
|
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.")
|
750
|
-
obj.patient.nil? || CandidApiClient::Individual::Types::PatientUpdate.validate_raw(obj: obj.patient)
|
751
766
|
obj.patient_authorized_release&.is_a?(Boolean) != false || raise("Passed value for field obj.patient_authorized_release is not the expected type, validation failed.")
|
752
767
|
obj.schema_instances&.is_a?(Array) != false || raise("Passed value for field obj.schema_instances is not the expected type, validation failed.")
|
753
768
|
obj.vitals.nil? || CandidApiClient::Encounters::V4::Types::VitalsUpdate.validate_raw(obj: obj.vitals)
|
754
769
|
obj.existing_medications&.is_a?(Array) != false || raise("Passed value for field obj.existing_medications is not the expected type, validation failed.")
|
755
|
-
obj.rendering_provider.nil? || CandidApiClient::EncounterProviders::V2::Types::RenderingProviderUpdate.validate_raw(obj: obj.rendering_provider)
|
756
|
-
obj.service_facility.nil? || CandidApiClient::ServiceFacility::Types::EncounterServiceFacilityUpdate.validate_raw(obj: obj.service_facility)
|
757
770
|
obj.guarantor.nil? || CandidApiClient::Guarantor::V1::Types::GuarantorUpdate.validate_raw(obj: obj.guarantor)
|
758
|
-
obj.billing_provider.nil? || CandidApiClient::EncounterProviders::V2::Types::BillingProviderUpdate.validate_raw(obj: obj.billing_provider)
|
759
|
-
obj.supervising_provider.nil? || CandidApiClient::EncounterProviders::V2::Types::SupervisingProviderUpdate.validate_raw(obj: obj.supervising_provider)
|
760
|
-
obj.referring_provider.nil? || CandidApiClient::EncounterProviders::V2::Types::ReferringProviderUpdate.validate_raw(obj: obj.referring_provider)
|
761
|
-
obj.initial_referring_provider.nil? || CandidApiClient::EncounterProviders::V2::Types::InitialReferringProviderUpdate.validate_raw(obj: obj.initial_referring_provider)
|
762
771
|
obj.referral_number&.is_a?(String) != false || raise("Passed value for field obj.referral_number is not the expected type, validation failed.")
|
763
772
|
obj.epsdt_referral.nil? || CandidApiClient::Encounters::V4::Types::EpsdtReferral.validate_raw(obj: obj.epsdt_referral)
|
764
773
|
obj.claim_supplemental_information&.is_a?(Array) != false || raise("Passed value for field obj.claim_supplemental_information is not the expected type, validation failed.")
|
774
|
+
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.")
|
765
775
|
end
|
766
776
|
end
|
767
777
|
end
|