candidhealth 0.43.0 → 0.45.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.
Files changed (26) hide show
  1. checksums.yaml +4 -4
  2. data/lib/candidhealth/charge_capture/v_1/client.rb +506 -483
  3. data/lib/candidhealth/charge_capture/v_1/types/charge_capture_data.rb +184 -174
  4. data/lib/candidhealth/charge_capture/v_1/types/charge_external_id_conflict_error_message.rb +62 -0
  5. data/lib/candidhealth/charge_capture_bundles/v_1/types/charge_capture_claim_creation.rb +20 -4
  6. data/lib/candidhealth/commons/types/street_address_optional_base.rb +99 -0
  7. data/lib/candidhealth/commons/types/street_address_short_zip_optional.rb +107 -0
  8. data/lib/candidhealth/encounter_attachments/v_1/client.rb +2 -2
  9. data/lib/candidhealth/encounter_attachments/v_1/types/encounter_attachment_type.rb +2 -0
  10. data/lib/candidhealth/encounter_providers/v_2/client.rb +16 -16
  11. data/lib/candidhealth/encounter_providers/v_2/types/billing_provider_update_with_optional_address.rb +160 -0
  12. data/lib/candidhealth/encounter_providers/v_2/types/initial_referring_provider_update_with_optional_address.rb +134 -0
  13. data/lib/candidhealth/encounter_providers/v_2/types/referring_provider_update_with_optional_address.rb +125 -0
  14. data/lib/candidhealth/encounter_providers/v_2/types/rendering_provider_update_with_optional_address.rb +125 -0
  15. data/lib/candidhealth/encounter_providers/v_2/types/supervising_provider_update_with_optional_address.rb +125 -0
  16. data/lib/candidhealth/encounters/v_4/client.rb +263 -233
  17. data/lib/candidhealth/encounters/v_4/types/encounter.rb +11 -1
  18. data/lib/candidhealth/encounters/v_4/types/encounter_optional.rb +12 -170
  19. data/lib/candidhealth/guarantor/v_1/client.rb +2 -2
  20. data/lib/candidhealth/individual/types/patient_update_with_optional_address.rb +179 -0
  21. data/lib/candidhealth/service_facility/types/encounter_service_facility_update_with_optional_address.rb +113 -0
  22. data/lib/candidhealth/service_lines/v_2/client.rb +2 -2
  23. data/lib/requests.rb +2 -2
  24. data/lib/types_export.rb +10 -1
  25. metadata +12 -3
  26. data/lib/candidhealth/billing_notes/v_2/types/billing_note_optional.rb +0 -112
@@ -9,6 +9,7 @@ require_relative "../../commons/types/sort_direction"
9
9
  require "date"
10
10
  require_relative "types/charge_capture_page"
11
11
  require_relative "types/charge_capture_post_billed_change"
12
+ require "json"
12
13
  require "async"
13
14
 
14
15
  module CandidApiClient
@@ -35,13 +36,105 @@ module CandidApiClient
35
36
  # * :submission_records (Array<CandidApiClient::ClaimSubmission::V1::Types::ClaimSubmissionRecordCreate>)
36
37
  # * :service_lines (Array<CandidApiClient::ServiceLines::V2::Types::ServiceLineCreate>)
37
38
  # * :patient_histories (Array<CandidApiClient::Encounters::V4::Types::PatientHistoryCategory>)
38
- # * :billing_notes (Array<CandidApiClient::BillingNotes::V2::Types::BillingNoteOptional>)
39
- # * :benefits_assigned_to_provider (Boolean)
40
- # * :prior_authorization_number (String)
41
- # * :external_id (String)
42
- # * :date_of_service (Date)
43
- # * :tag_ids (Array<String>)
44
- # * :clinical_notes (Array<CandidApiClient::Encounters::V4::Types::ClinicalNoteCategoryCreate>)
39
+ # * :billing_notes (Array<CandidApiClient::BillingNotes::V2::Types::BillingNoteBase>)
40
+ # * :patient (Hash)
41
+ # * :first_name (String)
42
+ # * :last_name (String)
43
+ # * :gender (CandidApiClient::Individual::Types::Gender)
44
+ # * :external_id (String)
45
+ # * :date_of_birth (Date)
46
+ # * :address (Hash)
47
+ # * :zip_plus_four_code (String)
48
+ # * :address_1 (String)
49
+ # * :address_2 (String)
50
+ # * :city (String)
51
+ # * :state (CandidApiClient::Commons::Types::State)
52
+ # * :zip_code (String)
53
+ # * :phone_numbers (Array<CandidApiClient::Commons::Types::PhoneNumber>)
54
+ # * :phone_consent (Boolean)
55
+ # * :email (String)
56
+ # * :email_consent (Boolean)
57
+ # * :non_insurance_payers (Array<String>)
58
+ # * :non_insurance_payers_info (Array<CandidApiClient::Individual::Types::PatientNonInsurancePayerInfoCreate>)
59
+ # * :service_facility (Hash)
60
+ # * :organization_name (String)
61
+ # * :npi (String)
62
+ # * :address (Hash)
63
+ # * :zip_plus_four_code (String)
64
+ # * :address_1 (String)
65
+ # * :address_2 (String)
66
+ # * :city (String)
67
+ # * :state (CandidApiClient::Commons::Types::State)
68
+ # * :zip_code (String)
69
+ # * :secondary_identification (String)
70
+ # * :rendering_provider (Hash)
71
+ # * :npi (String)
72
+ # * :taxonomy_code (String)
73
+ # * :address (Hash)
74
+ # * :zip_plus_four_code (String)
75
+ # * :address_1 (String)
76
+ # * :address_2 (String)
77
+ # * :city (String)
78
+ # * :state (CandidApiClient::Commons::Types::State)
79
+ # * :zip_code (String)
80
+ # * :first_name (String)
81
+ # * :last_name (String)
82
+ # * :organization_name (String)
83
+ # * :initial_referring_provider (Hash)
84
+ # * :npi (String)
85
+ # * :taxonomy_code (String)
86
+ # * :address (Hash)
87
+ # * :zip_plus_four_code (String)
88
+ # * :address_1 (String)
89
+ # * :address_2 (String)
90
+ # * :city (String)
91
+ # * :state (CandidApiClient::Commons::Types::State)
92
+ # * :zip_code (String)
93
+ # * :qualifier (CandidApiClient::Commons::Types::QualifierCode)
94
+ # * :first_name (String)
95
+ # * :last_name (String)
96
+ # * :organization_name (String)
97
+ # * :referring_provider (Hash)
98
+ # * :npi (String)
99
+ # * :taxonomy_code (String)
100
+ # * :address (Hash)
101
+ # * :zip_plus_four_code (String)
102
+ # * :address_1 (String)
103
+ # * :address_2 (String)
104
+ # * :city (String)
105
+ # * :state (CandidApiClient::Commons::Types::State)
106
+ # * :zip_code (String)
107
+ # * :first_name (String)
108
+ # * :last_name (String)
109
+ # * :organization_name (String)
110
+ # * :supervising_provider (Hash)
111
+ # * :npi (String)
112
+ # * :taxonomy_code (String)
113
+ # * :address (Hash)
114
+ # * :zip_plus_four_code (String)
115
+ # * :address_1 (String)
116
+ # * :address_2 (String)
117
+ # * :city (String)
118
+ # * :state (CandidApiClient::Commons::Types::State)
119
+ # * :zip_code (String)
120
+ # * :first_name (String)
121
+ # * :last_name (String)
122
+ # * :organization_name (String)
123
+ # * :billing_provider (Hash)
124
+ # * :address (Hash)
125
+ # * :zip_plus_four_code (String)
126
+ # * :address_1 (String)
127
+ # * :address_2 (String)
128
+ # * :city (String)
129
+ # * :state (CandidApiClient::Commons::Types::State)
130
+ # * :zip_code (String)
131
+ # * :tax_id (String)
132
+ # * :npi (String)
133
+ # * :taxonomy_code (String)
134
+ # * :provider_commercial_license_type (CandidApiClient::Commons::Types::BillingProviderCommercialLicenseType)
135
+ # * :first_name (String)
136
+ # * :last_name (String)
137
+ # * :organization_name (String)
45
138
  # * :pay_to_address (Hash)
46
139
  # * :zip_plus_four_code (String)
47
140
  # * :address_1 (String)
@@ -49,6 +142,12 @@ module CandidApiClient
49
142
  # * :city (String)
50
143
  # * :state (CandidApiClient::Commons::Types::State)
51
144
  # * :zip_code (String)
145
+ # * :benefits_assigned_to_provider (Boolean)
146
+ # * :prior_authorization_number (String)
147
+ # * :external_id (String)
148
+ # * :date_of_service (Date)
149
+ # * :tag_ids (Array<String>)
150
+ # * :clinical_notes (Array<CandidApiClient::Encounters::V4::Types::ClinicalNoteCategoryCreate>)
52
151
  # * :billable_status (CandidApiClient::Encounters::V4::Types::BillableStatusType)
53
152
  # * :responsible_party (CandidApiClient::Encounters::V4::Types::ResponsiblePartyType)
54
153
  # * :provider_accepts_assignment (Boolean)
@@ -144,25 +243,6 @@ module CandidApiClient
144
243
  # * :onset_of_current_illness_or_symptom_date (Date)
145
244
  # * :last_menstrual_period_date (Date)
146
245
  # * :delay_reason_code (CandidApiClient::Commons::Types::DelayReasonCode)
147
- # * :patient (Hash)
148
- # * :first_name (String)
149
- # * :last_name (String)
150
- # * :gender (CandidApiClient::Individual::Types::Gender)
151
- # * :external_id (String)
152
- # * :date_of_birth (Date)
153
- # * :address (Hash)
154
- # * :zip_plus_four_code (String)
155
- # * :address_1 (String)
156
- # * :address_2 (String)
157
- # * :city (String)
158
- # * :state (CandidApiClient::Commons::Types::State)
159
- # * :zip_code (String)
160
- # * :phone_numbers (Array<CandidApiClient::Commons::Types::PhoneNumber>)
161
- # * :phone_consent (Boolean)
162
- # * :email (String)
163
- # * :email_consent (Boolean)
164
- # * :non_insurance_payers (Array<String>)
165
- # * :non_insurance_payers_info (Array<CandidApiClient::Individual::Types::PatientNonInsurancePayerInfoCreate>)
166
246
  # * :patient_authorized_release (Boolean)
167
247
  # * :schema_instances (Array<CandidApiClient::CustomSchemas::V1::Types::SchemaInstance>)
168
248
  # * :vitals (Hash)
@@ -174,30 +254,6 @@ module CandidApiClient
174
254
  # * :hemoglobin_gdl (Float)
175
255
  # * :hematocrit_pct (Float)
176
256
  # * :existing_medications (Array<CandidApiClient::Encounters::V4::Types::Medication>)
177
- # * :rendering_provider (Hash)
178
- # * :npi (String)
179
- # * :taxonomy_code (String)
180
- # * :address (Hash)
181
- # * :zip_plus_four_code (String)
182
- # * :address_1 (String)
183
- # * :address_2 (String)
184
- # * :city (String)
185
- # * :state (CandidApiClient::Commons::Types::State)
186
- # * :zip_code (String)
187
- # * :first_name (String)
188
- # * :last_name (String)
189
- # * :organization_name (String)
190
- # * :service_facility (Hash)
191
- # * :organization_name (String)
192
- # * :npi (String)
193
- # * :address (Hash)
194
- # * :zip_plus_four_code (String)
195
- # * :address_1 (String)
196
- # * :address_2 (String)
197
- # * :city (String)
198
- # * :state (CandidApiClient::Commons::Types::State)
199
- # * :zip_code (String)
200
- # * :secondary_identification (String)
201
257
  # * :guarantor (Hash)
202
258
  # * :first_name (String)
203
259
  # * :last_name (String)
@@ -214,67 +270,13 @@ module CandidApiClient
214
270
  # * :phone_consent (Boolean)
215
271
  # * :email (String)
216
272
  # * :email_consent (Boolean)
217
- # * :billing_provider (Hash)
218
- # * :address (Hash)
219
- # * :zip_plus_four_code (String)
220
- # * :address_1 (String)
221
- # * :address_2 (String)
222
- # * :city (String)
223
- # * :state (CandidApiClient::Commons::Types::State)
224
- # * :zip_code (String)
225
- # * :tax_id (String)
226
- # * :npi (String)
227
- # * :taxonomy_code (String)
228
- # * :provider_commercial_license_type (CandidApiClient::Commons::Types::BillingProviderCommercialLicenseType)
229
- # * :first_name (String)
230
- # * :last_name (String)
231
- # * :organization_name (String)
232
- # * :supervising_provider (Hash)
233
- # * :npi (String)
234
- # * :taxonomy_code (String)
235
- # * :address (Hash)
236
- # * :zip_plus_four_code (String)
237
- # * :address_1 (String)
238
- # * :address_2 (String)
239
- # * :city (String)
240
- # * :state (CandidApiClient::Commons::Types::State)
241
- # * :zip_code (String)
242
- # * :first_name (String)
243
- # * :last_name (String)
244
- # * :organization_name (String)
245
- # * :referring_provider (Hash)
246
- # * :npi (String)
247
- # * :taxonomy_code (String)
248
- # * :address (Hash)
249
- # * :zip_plus_four_code (String)
250
- # * :address_1 (String)
251
- # * :address_2 (String)
252
- # * :city (String)
253
- # * :state (CandidApiClient::Commons::Types::State)
254
- # * :zip_code (String)
255
- # * :first_name (String)
256
- # * :last_name (String)
257
- # * :organization_name (String)
258
- # * :initial_referring_provider (Hash)
259
- # * :npi (String)
260
- # * :taxonomy_code (String)
261
- # * :address (Hash)
262
- # * :zip_plus_four_code (String)
263
- # * :address_1 (String)
264
- # * :address_2 (String)
265
- # * :city (String)
266
- # * :state (CandidApiClient::Commons::Types::State)
267
- # * :zip_code (String)
268
- # * :qualifier (CandidApiClient::Commons::Types::QualifierCode)
269
- # * :first_name (String)
270
- # * :last_name (String)
271
- # * :organization_name (String)
272
273
  # * :referral_number (String)
273
274
  # * :epsdt_referral (Hash)
274
275
  # * :condition_indicator_1 (CandidApiClient::Commons::Types::EpsdtReferralConditionIndicatorCode)
275
276
  # * :condition_indicator_2 (CandidApiClient::Commons::Types::EpsdtReferralConditionIndicatorCode)
276
277
  # * :condition_indicator_3 (CandidApiClient::Commons::Types::EpsdtReferralConditionIndicatorCode)
277
278
  # * :claim_supplemental_information (Array<CandidApiClient::Encounters::V4::Types::ClaimSupplementalInformation>)
279
+ # * :secondary_payer_carrier_code (String)
278
280
  # @param charge_external_id [String] A client-specified unique ID to associate with this encounter; for example, your
279
281
  # internal encounter ID or a Dr. Chrono encounter ID. This field should not
280
282
  # contain PHI.
@@ -288,7 +290,7 @@ module CandidApiClient
288
290
  # @example
289
291
  # api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
290
292
  # api.charge_capture.v_1.create(
291
- # data: { diagnoses: , interventions: , external_claim_submission: { claim_created_at: DateTime.parse(2023-01-01T12:00:00.000Z), patient_control_number: "PATIENT_CONTROL_NUMBER", submission_records: [{ submitted_at: DateTime.parse(2023-01-01T13:00:00.000Z), claim_frequency_code: ORIGINAL, payer_responsibility: PRIMARY, intended_submission_medium: ELECTRONIC }, { submitted_at: DateTime.parse(2023-01-04T12:00:00.000Z), claim_frequency_code: REPLACEMENT, payer_responsibility: PRIMARY, intended_submission_medium: PAPER }] }, service_lines: , patient_histories: , billing_notes: , benefits_assigned_to_provider: true, prior_authorization_number: "string", external_id: "string", date_of_service: DateTime.parse(2023-01-15), tag_ids: , clinical_notes: , pay_to_address: { address_1: "123 Main St", address_2: "Apt 1", city: "New York", state: NY, zip_code: "10001", zip_plus_four_code: "1234" }, billable_status: BILLABLE, responsible_party: INSURANCE_PAY, provider_accepts_assignment: true, synchronicity: SYNCHRONOUS, place_of_service_code: PHARMACY, appointment_type: "string", end_date_of_service: DateTime.parse(2023-01-15), subscriber_primary: { insurance_card: { member_id: "string", payer_name: "string", payer_id: "string" }, patient_relationship_to_subscriber_code: SPOUSE, first_name: "string", last_name: "string", gender: MALE }, subscriber_secondary: { insurance_card: { member_id: "string", payer_name: "string", payer_id: "string" }, patient_relationship_to_subscriber_code: SPOUSE, first_name: "string", last_name: "string", gender: MALE }, subscriber_tertiary: { insurance_card: { member_id: "string", payer_name: "string", payer_id: "string" }, patient_relationship_to_subscriber_code: SPOUSE, first_name: "string", last_name: "string", gender: MALE }, additional_information: "string", service_authorization_exception_code: C_1, admission_date: DateTime.parse(2023-01-15), discharge_date: DateTime.parse(2023-01-15), onset_of_current_illness_or_symptom_date: DateTime.parse(2023-01-15), last_menstrual_period_date: DateTime.parse(2023-01-15), delay_reason_code: C_1, patient: { }, patient_authorized_release: true, schema_instances: , vitals: { height_in: 70, weight_lbs: 165, blood_pressure_systolic_mmhg: 115, blood_pressure_diastolic_mmhg: 85, body_temperature_f: 98, hemoglobin_gdl: 15.1, hematocrit_pct: 51.2 }, existing_medications: , rendering_provider: { }, service_facility: { organization_name: "Test Organization", address: { address_1: "123 Main St", address_2: "Apt 1", city: "New York", state: NY, zip_code: "10001", zip_plus_four_code: "1234" } }, guarantor: { }, billing_provider: { }, supervising_provider: { }, referring_provider: { }, initial_referring_provider: { }, referral_number: "string", epsdt_referral: { condition_indicator_1: AV }, claim_supplemental_information: },
293
+ # data: { },
292
294
  # charge_external_id: "string",
293
295
  # ehr_source_url: "string",
294
296
  # patient_external_id: "string",
@@ -347,13 +349,105 @@ module CandidApiClient
347
349
  # * :submission_records (Array<CandidApiClient::ClaimSubmission::V1::Types::ClaimSubmissionRecordCreate>)
348
350
  # * :service_lines (Array<CandidApiClient::ServiceLines::V2::Types::ServiceLineCreate>)
349
351
  # * :patient_histories (Array<CandidApiClient::Encounters::V4::Types::PatientHistoryCategory>)
350
- # * :billing_notes (Array<CandidApiClient::BillingNotes::V2::Types::BillingNoteOptional>)
351
- # * :benefits_assigned_to_provider (Boolean)
352
- # * :prior_authorization_number (String)
353
- # * :external_id (String)
354
- # * :date_of_service (Date)
355
- # * :tag_ids (Array<String>)
356
- # * :clinical_notes (Array<CandidApiClient::Encounters::V4::Types::ClinicalNoteCategoryCreate>)
352
+ # * :billing_notes (Array<CandidApiClient::BillingNotes::V2::Types::BillingNoteBase>)
353
+ # * :patient (Hash)
354
+ # * :first_name (String)
355
+ # * :last_name (String)
356
+ # * :gender (CandidApiClient::Individual::Types::Gender)
357
+ # * :external_id (String)
358
+ # * :date_of_birth (Date)
359
+ # * :address (Hash)
360
+ # * :zip_plus_four_code (String)
361
+ # * :address_1 (String)
362
+ # * :address_2 (String)
363
+ # * :city (String)
364
+ # * :state (CandidApiClient::Commons::Types::State)
365
+ # * :zip_code (String)
366
+ # * :phone_numbers (Array<CandidApiClient::Commons::Types::PhoneNumber>)
367
+ # * :phone_consent (Boolean)
368
+ # * :email (String)
369
+ # * :email_consent (Boolean)
370
+ # * :non_insurance_payers (Array<String>)
371
+ # * :non_insurance_payers_info (Array<CandidApiClient::Individual::Types::PatientNonInsurancePayerInfoCreate>)
372
+ # * :service_facility (Hash)
373
+ # * :organization_name (String)
374
+ # * :npi (String)
375
+ # * :address (Hash)
376
+ # * :zip_plus_four_code (String)
377
+ # * :address_1 (String)
378
+ # * :address_2 (String)
379
+ # * :city (String)
380
+ # * :state (CandidApiClient::Commons::Types::State)
381
+ # * :zip_code (String)
382
+ # * :secondary_identification (String)
383
+ # * :rendering_provider (Hash)
384
+ # * :npi (String)
385
+ # * :taxonomy_code (String)
386
+ # * :address (Hash)
387
+ # * :zip_plus_four_code (String)
388
+ # * :address_1 (String)
389
+ # * :address_2 (String)
390
+ # * :city (String)
391
+ # * :state (CandidApiClient::Commons::Types::State)
392
+ # * :zip_code (String)
393
+ # * :first_name (String)
394
+ # * :last_name (String)
395
+ # * :organization_name (String)
396
+ # * :initial_referring_provider (Hash)
397
+ # * :npi (String)
398
+ # * :taxonomy_code (String)
399
+ # * :address (Hash)
400
+ # * :zip_plus_four_code (String)
401
+ # * :address_1 (String)
402
+ # * :address_2 (String)
403
+ # * :city (String)
404
+ # * :state (CandidApiClient::Commons::Types::State)
405
+ # * :zip_code (String)
406
+ # * :qualifier (CandidApiClient::Commons::Types::QualifierCode)
407
+ # * :first_name (String)
408
+ # * :last_name (String)
409
+ # * :organization_name (String)
410
+ # * :referring_provider (Hash)
411
+ # * :npi (String)
412
+ # * :taxonomy_code (String)
413
+ # * :address (Hash)
414
+ # * :zip_plus_four_code (String)
415
+ # * :address_1 (String)
416
+ # * :address_2 (String)
417
+ # * :city (String)
418
+ # * :state (CandidApiClient::Commons::Types::State)
419
+ # * :zip_code (String)
420
+ # * :first_name (String)
421
+ # * :last_name (String)
422
+ # * :organization_name (String)
423
+ # * :supervising_provider (Hash)
424
+ # * :npi (String)
425
+ # * :taxonomy_code (String)
426
+ # * :address (Hash)
427
+ # * :zip_plus_four_code (String)
428
+ # * :address_1 (String)
429
+ # * :address_2 (String)
430
+ # * :city (String)
431
+ # * :state (CandidApiClient::Commons::Types::State)
432
+ # * :zip_code (String)
433
+ # * :first_name (String)
434
+ # * :last_name (String)
435
+ # * :organization_name (String)
436
+ # * :billing_provider (Hash)
437
+ # * :address (Hash)
438
+ # * :zip_plus_four_code (String)
439
+ # * :address_1 (String)
440
+ # * :address_2 (String)
441
+ # * :city (String)
442
+ # * :state (CandidApiClient::Commons::Types::State)
443
+ # * :zip_code (String)
444
+ # * :tax_id (String)
445
+ # * :npi (String)
446
+ # * :taxonomy_code (String)
447
+ # * :provider_commercial_license_type (CandidApiClient::Commons::Types::BillingProviderCommercialLicenseType)
448
+ # * :first_name (String)
449
+ # * :last_name (String)
450
+ # * :organization_name (String)
357
451
  # * :pay_to_address (Hash)
358
452
  # * :zip_plus_four_code (String)
359
453
  # * :address_1 (String)
@@ -361,6 +455,12 @@ module CandidApiClient
361
455
  # * :city (String)
362
456
  # * :state (CandidApiClient::Commons::Types::State)
363
457
  # * :zip_code (String)
458
+ # * :benefits_assigned_to_provider (Boolean)
459
+ # * :prior_authorization_number (String)
460
+ # * :external_id (String)
461
+ # * :date_of_service (Date)
462
+ # * :tag_ids (Array<String>)
463
+ # * :clinical_notes (Array<CandidApiClient::Encounters::V4::Types::ClinicalNoteCategoryCreate>)
364
464
  # * :billable_status (CandidApiClient::Encounters::V4::Types::BillableStatusType)
365
465
  # * :responsible_party (CandidApiClient::Encounters::V4::Types::ResponsiblePartyType)
366
466
  # * :provider_accepts_assignment (Boolean)
@@ -456,25 +556,6 @@ module CandidApiClient
456
556
  # * :onset_of_current_illness_or_symptom_date (Date)
457
557
  # * :last_menstrual_period_date (Date)
458
558
  # * :delay_reason_code (CandidApiClient::Commons::Types::DelayReasonCode)
459
- # * :patient (Hash)
460
- # * :first_name (String)
461
- # * :last_name (String)
462
- # * :gender (CandidApiClient::Individual::Types::Gender)
463
- # * :external_id (String)
464
- # * :date_of_birth (Date)
465
- # * :address (Hash)
466
- # * :zip_plus_four_code (String)
467
- # * :address_1 (String)
468
- # * :address_2 (String)
469
- # * :city (String)
470
- # * :state (CandidApiClient::Commons::Types::State)
471
- # * :zip_code (String)
472
- # * :phone_numbers (Array<CandidApiClient::Commons::Types::PhoneNumber>)
473
- # * :phone_consent (Boolean)
474
- # * :email (String)
475
- # * :email_consent (Boolean)
476
- # * :non_insurance_payers (Array<String>)
477
- # * :non_insurance_payers_info (Array<CandidApiClient::Individual::Types::PatientNonInsurancePayerInfoCreate>)
478
559
  # * :patient_authorized_release (Boolean)
479
560
  # * :schema_instances (Array<CandidApiClient::CustomSchemas::V1::Types::SchemaInstance>)
480
561
  # * :vitals (Hash)
@@ -483,93 +564,14 @@ module CandidApiClient
483
564
  # * :blood_pressure_systolic_mmhg (Integer)
484
565
  # * :blood_pressure_diastolic_mmhg (Integer)
485
566
  # * :body_temperature_f (Float)
486
- # * :hemoglobin_gdl (Float)
487
- # * :hematocrit_pct (Float)
488
- # * :existing_medications (Array<CandidApiClient::Encounters::V4::Types::Medication>)
489
- # * :rendering_provider (Hash)
490
- # * :npi (String)
491
- # * :taxonomy_code (String)
492
- # * :address (Hash)
493
- # * :zip_plus_four_code (String)
494
- # * :address_1 (String)
495
- # * :address_2 (String)
496
- # * :city (String)
497
- # * :state (CandidApiClient::Commons::Types::State)
498
- # * :zip_code (String)
499
- # * :first_name (String)
500
- # * :last_name (String)
501
- # * :organization_name (String)
502
- # * :service_facility (Hash)
503
- # * :organization_name (String)
504
- # * :npi (String)
505
- # * :address (Hash)
506
- # * :zip_plus_four_code (String)
507
- # * :address_1 (String)
508
- # * :address_2 (String)
509
- # * :city (String)
510
- # * :state (CandidApiClient::Commons::Types::State)
511
- # * :zip_code (String)
512
- # * :secondary_identification (String)
513
- # * :guarantor (Hash)
514
- # * :first_name (String)
515
- # * :last_name (String)
516
- # * :external_id (String)
517
- # * :date_of_birth (Date)
518
- # * :address (Hash)
519
- # * :zip_plus_four_code (String)
520
- # * :address_1 (String)
521
- # * :address_2 (String)
522
- # * :city (String)
523
- # * :state (CandidApiClient::Commons::Types::State)
524
- # * :zip_code (String)
525
- # * :phone_numbers (Array<CandidApiClient::Commons::Types::PhoneNumber>)
526
- # * :phone_consent (Boolean)
527
- # * :email (String)
528
- # * :email_consent (Boolean)
529
- # * :billing_provider (Hash)
530
- # * :address (Hash)
531
- # * :zip_plus_four_code (String)
532
- # * :address_1 (String)
533
- # * :address_2 (String)
534
- # * :city (String)
535
- # * :state (CandidApiClient::Commons::Types::State)
536
- # * :zip_code (String)
537
- # * :tax_id (String)
538
- # * :npi (String)
539
- # * :taxonomy_code (String)
540
- # * :provider_commercial_license_type (CandidApiClient::Commons::Types::BillingProviderCommercialLicenseType)
541
- # * :first_name (String)
542
- # * :last_name (String)
543
- # * :organization_name (String)
544
- # * :supervising_provider (Hash)
545
- # * :npi (String)
546
- # * :taxonomy_code (String)
547
- # * :address (Hash)
548
- # * :zip_plus_four_code (String)
549
- # * :address_1 (String)
550
- # * :address_2 (String)
551
- # * :city (String)
552
- # * :state (CandidApiClient::Commons::Types::State)
553
- # * :zip_code (String)
554
- # * :first_name (String)
555
- # * :last_name (String)
556
- # * :organization_name (String)
557
- # * :referring_provider (Hash)
558
- # * :npi (String)
559
- # * :taxonomy_code (String)
560
- # * :address (Hash)
561
- # * :zip_plus_four_code (String)
562
- # * :address_1 (String)
563
- # * :address_2 (String)
564
- # * :city (String)
565
- # * :state (CandidApiClient::Commons::Types::State)
566
- # * :zip_code (String)
567
+ # * :hemoglobin_gdl (Float)
568
+ # * :hematocrit_pct (Float)
569
+ # * :existing_medications (Array<CandidApiClient::Encounters::V4::Types::Medication>)
570
+ # * :guarantor (Hash)
567
571
  # * :first_name (String)
568
572
  # * :last_name (String)
569
- # * :organization_name (String)
570
- # * :initial_referring_provider (Hash)
571
- # * :npi (String)
572
- # * :taxonomy_code (String)
573
+ # * :external_id (String)
574
+ # * :date_of_birth (Date)
573
575
  # * :address (Hash)
574
576
  # * :zip_plus_four_code (String)
575
577
  # * :address_1 (String)
@@ -577,16 +579,17 @@ module CandidApiClient
577
579
  # * :city (String)
578
580
  # * :state (CandidApiClient::Commons::Types::State)
579
581
  # * :zip_code (String)
580
- # * :qualifier (CandidApiClient::Commons::Types::QualifierCode)
581
- # * :first_name (String)
582
- # * :last_name (String)
583
- # * :organization_name (String)
582
+ # * :phone_numbers (Array<CandidApiClient::Commons::Types::PhoneNumber>)
583
+ # * :phone_consent (Boolean)
584
+ # * :email (String)
585
+ # * :email_consent (Boolean)
584
586
  # * :referral_number (String)
585
587
  # * :epsdt_referral (Hash)
586
588
  # * :condition_indicator_1 (CandidApiClient::Commons::Types::EpsdtReferralConditionIndicatorCode)
587
589
  # * :condition_indicator_2 (CandidApiClient::Commons::Types::EpsdtReferralConditionIndicatorCode)
588
590
  # * :condition_indicator_3 (CandidApiClient::Commons::Types::EpsdtReferralConditionIndicatorCode)
589
591
  # * :claim_supplemental_information (Array<CandidApiClient::Encounters::V4::Types::ClaimSupplementalInformation>)
592
+ # * :secondary_payer_carrier_code (String)
590
593
  # @param charge_external_id [String] A client-specified unique ID to associate with this encounter;
591
594
  # for example, your internal encounter ID or a Dr. Chrono encounter ID.
592
595
  # This field should not contain PHI.
@@ -602,7 +605,7 @@ module CandidApiClient
602
605
  # api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
603
606
  # api.charge_capture.v_1.update(
604
607
  # charge_capture_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32",
605
- # data: { diagnoses: , interventions: , external_claim_submission: { claim_created_at: DateTime.parse(2023-01-01T12:00:00.000Z), patient_control_number: "PATIENT_CONTROL_NUMBER", submission_records: [{ submitted_at: DateTime.parse(2023-01-01T13:00:00.000Z), claim_frequency_code: ORIGINAL, payer_responsibility: PRIMARY, intended_submission_medium: ELECTRONIC }, { submitted_at: DateTime.parse(2023-01-04T12:00:00.000Z), claim_frequency_code: REPLACEMENT, payer_responsibility: PRIMARY, intended_submission_medium: PAPER }] }, service_lines: , patient_histories: , billing_notes: , benefits_assigned_to_provider: true, prior_authorization_number: "string", external_id: "string", date_of_service: DateTime.parse(2023-01-15), tag_ids: , clinical_notes: , pay_to_address: { address_1: "123 Main St", address_2: "Apt 1", city: "New York", state: NY, zip_code: "10001", zip_plus_four_code: "1234" }, billable_status: BILLABLE, responsible_party: INSURANCE_PAY, provider_accepts_assignment: true, synchronicity: SYNCHRONOUS, place_of_service_code: PHARMACY, appointment_type: "string", end_date_of_service: DateTime.parse(2023-01-15), subscriber_primary: { insurance_card: { member_id: "string", payer_name: "string", payer_id: "string" }, patient_relationship_to_subscriber_code: SPOUSE, first_name: "string", last_name: "string", gender: MALE }, subscriber_secondary: { insurance_card: { member_id: "string", payer_name: "string", payer_id: "string" }, patient_relationship_to_subscriber_code: SPOUSE, first_name: "string", last_name: "string", gender: MALE }, subscriber_tertiary: { insurance_card: { member_id: "string", payer_name: "string", payer_id: "string" }, patient_relationship_to_subscriber_code: SPOUSE, first_name: "string", last_name: "string", gender: MALE }, additional_information: "string", service_authorization_exception_code: C_1, admission_date: DateTime.parse(2023-01-15), discharge_date: DateTime.parse(2023-01-15), onset_of_current_illness_or_symptom_date: DateTime.parse(2023-01-15), last_menstrual_period_date: DateTime.parse(2023-01-15), delay_reason_code: C_1, patient: { }, patient_authorized_release: true, schema_instances: , vitals: { height_in: 70, weight_lbs: 165, blood_pressure_systolic_mmhg: 115, blood_pressure_diastolic_mmhg: 85, body_temperature_f: 98, hemoglobin_gdl: 15.1, hematocrit_pct: 51.2 }, existing_medications: , rendering_provider: { }, service_facility: { organization_name: "Test Organization", address: { address_1: "123 Main St", address_2: "Apt 1", city: "New York", state: NY, zip_code: "10001", zip_plus_four_code: "1234" } }, guarantor: { }, billing_provider: { }, supervising_provider: { }, referring_provider: { }, initial_referring_provider: { }, referral_number: "string", epsdt_referral: { condition_indicator_1: AV }, claim_supplemental_information: },
608
+ # data: { },
606
609
  # charge_external_id: "string",
607
610
  # ehr_source_url: "string",
608
611
  # patient_external_id: "string",
@@ -801,16 +804,17 @@ module CandidApiClient
801
804
  CandidApiClient::ChargeCapture::V1::Types::ChargeCapturePage.from_json(json_object: response.body)
802
805
  end
803
806
 
804
- # @param charge_capture_change_id [String]
807
+ # @param charge_capture_change_ids [Array<String>] A list of UUIDs corresponding to ChargeCapturePostBilledChanges.
808
+ # All of the charges sent will be marked as resolved
805
809
  # @param resolved [Boolean] Whether the change has been resolved. If true, the change will be marked as
806
810
  # resolved.
807
811
  # If false, the change will be marked as unresolved.
808
812
  # @param request_options [CandidApiClient::RequestOptions]
809
- # @return [CandidApiClient::ChargeCapture::V1::Types::ChargeCapturePostBilledChange]
813
+ # @return [Array<CandidApiClient::ChargeCapture::V1::Types::ChargeCapturePostBilledChange>]
810
814
  # @example
811
815
  # api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
812
- # api.charge_capture.v_1.update_post_billed_change(charge_capture_change_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", resolved: true)
813
- def update_post_billed_change(charge_capture_change_id:, resolved:, request_options: nil)
816
+ # api.charge_capture.v_1.update_post_billed_changes(charge_capture_change_ids: ["d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"], resolved: true)
817
+ def update_post_billed_changes(charge_capture_change_ids:, resolved:, request_options: nil)
814
818
  response = @request_client.conn.patch do |req|
815
819
  req.options.timeout = request_options.timeout_in_seconds unless request_options&.timeout_in_seconds.nil?
816
820
  req.headers["Authorization"] = request_options.token unless request_options&.token.nil?
@@ -819,11 +823,19 @@ module CandidApiClient
819
823
  **@request_client.get_headers,
820
824
  **(request_options&.additional_headers || {})
821
825
  }.compact
822
- req.body = { **(request_options&.additional_body_parameters || {}), resolved: resolved }.compact
826
+ req.body = {
827
+ **(request_options&.additional_body_parameters || {}),
828
+ charge_capture_change_ids: charge_capture_change_ids,
829
+ resolved: resolved
830
+ }.compact
823
831
  req.url "#{@request_client.get_url(environment: CandidApi,
824
- request_options: request_options)}/api/charge_captures/v1/changes/#{charge_capture_change_id}"
832
+ request_options: request_options)}/api/charge_captures/v1/changes"
833
+ end
834
+ parsed_json = JSON.parse(response.body)
835
+ parsed_json&.map do |item|
836
+ item = item.to_json
837
+ CandidApiClient::ChargeCapture::V1::Types::ChargeCapturePostBilledChange.from_json(json_object: item)
825
838
  end
826
- CandidApiClient::ChargeCapture::V1::Types::ChargeCapturePostBilledChange.from_json(json_object: response.body)
827
839
  end
828
840
  end
829
841
 
@@ -848,70 +860,12 @@ module CandidApiClient
848
860
  # * :submission_records (Array<CandidApiClient::ClaimSubmission::V1::Types::ClaimSubmissionRecordCreate>)
849
861
  # * :service_lines (Array<CandidApiClient::ServiceLines::V2::Types::ServiceLineCreate>)
850
862
  # * :patient_histories (Array<CandidApiClient::Encounters::V4::Types::PatientHistoryCategory>)
851
- # * :billing_notes (Array<CandidApiClient::BillingNotes::V2::Types::BillingNoteOptional>)
852
- # * :benefits_assigned_to_provider (Boolean)
853
- # * :prior_authorization_number (String)
854
- # * :external_id (String)
855
- # * :date_of_service (Date)
856
- # * :tag_ids (Array<String>)
857
- # * :clinical_notes (Array<CandidApiClient::Encounters::V4::Types::ClinicalNoteCategoryCreate>)
858
- # * :pay_to_address (Hash)
859
- # * :zip_plus_four_code (String)
860
- # * :address_1 (String)
861
- # * :address_2 (String)
862
- # * :city (String)
863
- # * :state (CandidApiClient::Commons::Types::State)
864
- # * :zip_code (String)
865
- # * :billable_status (CandidApiClient::Encounters::V4::Types::BillableStatusType)
866
- # * :responsible_party (CandidApiClient::Encounters::V4::Types::ResponsiblePartyType)
867
- # * :provider_accepts_assignment (Boolean)
868
- # * :synchronicity (CandidApiClient::Encounters::V4::Types::SynchronicityType)
869
- # * :place_of_service_code (CandidApiClient::Commons::Types::FacilityTypeCode)
870
- # * :appointment_type (String)
871
- # * :end_date_of_service (Date)
872
- # * :subscriber_primary (Hash)
873
- # * :insurance_card (Hash)
874
- # * :member_id (String)
875
- # * :payer_name (String)
876
- # * :payer_id (String)
877
- # * :rx_bin (String)
878
- # * :rx_pcn (String)
879
- # * :image_url_front (String)
880
- # * :image_url_back (String)
881
- # * :emr_payer_crosswalk (CandidApiClient::Commons::Types::EmrPayerCrosswalk)
882
- # * :group_number (String)
883
- # * :plan_name (String)
884
- # * :plan_type (CandidApiClient::Commons::Types::SourceOfPaymentCode)
885
- # * :insurance_type (CandidApiClient::Commons::Types::InsuranceTypeCode)
886
- # * :payer_plan_group_id (String)
887
- # * :patient_relationship_to_subscriber_code (CandidApiClient::Commons::Types::PatientRelationshipToInsuredCodeAll)
888
- # * :date_of_birth (Date)
889
- # * :address (Hash)
890
- # * :zip_plus_four_code (String)
891
- # * :address_1 (String)
892
- # * :address_2 (String)
893
- # * :city (String)
894
- # * :state (CandidApiClient::Commons::Types::State)
895
- # * :zip_code (String)
863
+ # * :billing_notes (Array<CandidApiClient::BillingNotes::V2::Types::BillingNoteBase>)
864
+ # * :patient (Hash)
896
865
  # * :first_name (String)
897
866
  # * :last_name (String)
898
867
  # * :gender (CandidApiClient::Individual::Types::Gender)
899
- # * :subscriber_secondary (Hash)
900
- # * :insurance_card (Hash)
901
- # * :member_id (String)
902
- # * :payer_name (String)
903
- # * :payer_id (String)
904
- # * :rx_bin (String)
905
- # * :rx_pcn (String)
906
- # * :image_url_front (String)
907
- # * :image_url_back (String)
908
- # * :emr_payer_crosswalk (CandidApiClient::Commons::Types::EmrPayerCrosswalk)
909
- # * :group_number (String)
910
- # * :plan_name (String)
911
- # * :plan_type (CandidApiClient::Commons::Types::SourceOfPaymentCode)
912
- # * :insurance_type (CandidApiClient::Commons::Types::InsuranceTypeCode)
913
- # * :payer_plan_group_id (String)
914
- # * :patient_relationship_to_subscriber_code (CandidApiClient::Commons::Types::PatientRelationshipToInsuredCodeAll)
868
+ # * :external_id (String)
915
869
  # * :date_of_birth (Date)
916
870
  # * :address (Hash)
917
871
  # * :zip_plus_four_code (String)
@@ -920,26 +874,15 @@ module CandidApiClient
920
874
  # * :city (String)
921
875
  # * :state (CandidApiClient::Commons::Types::State)
922
876
  # * :zip_code (String)
923
- # * :first_name (String)
924
- # * :last_name (String)
925
- # * :gender (CandidApiClient::Individual::Types::Gender)
926
- # * :subscriber_tertiary (Hash)
927
- # * :insurance_card (Hash)
928
- # * :member_id (String)
929
- # * :payer_name (String)
930
- # * :payer_id (String)
931
- # * :rx_bin (String)
932
- # * :rx_pcn (String)
933
- # * :image_url_front (String)
934
- # * :image_url_back (String)
935
- # * :emr_payer_crosswalk (CandidApiClient::Commons::Types::EmrPayerCrosswalk)
936
- # * :group_number (String)
937
- # * :plan_name (String)
938
- # * :plan_type (CandidApiClient::Commons::Types::SourceOfPaymentCode)
939
- # * :insurance_type (CandidApiClient::Commons::Types::InsuranceTypeCode)
940
- # * :payer_plan_group_id (String)
941
- # * :patient_relationship_to_subscriber_code (CandidApiClient::Commons::Types::PatientRelationshipToInsuredCodeAll)
942
- # * :date_of_birth (Date)
877
+ # * :phone_numbers (Array<CandidApiClient::Commons::Types::PhoneNumber>)
878
+ # * :phone_consent (Boolean)
879
+ # * :email (String)
880
+ # * :email_consent (Boolean)
881
+ # * :non_insurance_payers (Array<String>)
882
+ # * :non_insurance_payers_info (Array<CandidApiClient::Individual::Types::PatientNonInsurancePayerInfoCreate>)
883
+ # * :service_facility (Hash)
884
+ # * :organization_name (String)
885
+ # * :npi (String)
943
886
  # * :address (Hash)
944
887
  # * :zip_plus_four_code (String)
945
888
  # * :address_1 (String)
@@ -947,22 +890,10 @@ module CandidApiClient
947
890
  # * :city (String)
948
891
  # * :state (CandidApiClient::Commons::Types::State)
949
892
  # * :zip_code (String)
950
- # * :first_name (String)
951
- # * :last_name (String)
952
- # * :gender (CandidApiClient::Individual::Types::Gender)
953
- # * :additional_information (String)
954
- # * :service_authorization_exception_code (CandidApiClient::Encounters::V4::Types::ServiceAuthorizationExceptionCode)
955
- # * :admission_date (Date)
956
- # * :discharge_date (Date)
957
- # * :onset_of_current_illness_or_symptom_date (Date)
958
- # * :last_menstrual_period_date (Date)
959
- # * :delay_reason_code (CandidApiClient::Commons::Types::DelayReasonCode)
960
- # * :patient (Hash)
961
- # * :first_name (String)
962
- # * :last_name (String)
963
- # * :gender (CandidApiClient::Individual::Types::Gender)
964
- # * :external_id (String)
965
- # * :date_of_birth (Date)
893
+ # * :secondary_identification (String)
894
+ # * :rendering_provider (Hash)
895
+ # * :npi (String)
896
+ # * :taxonomy_code (String)
966
897
  # * :address (Hash)
967
898
  # * :zip_plus_four_code (String)
968
899
  # * :address_1 (String)
@@ -970,24 +901,10 @@ module CandidApiClient
970
901
  # * :city (String)
971
902
  # * :state (CandidApiClient::Commons::Types::State)
972
903
  # * :zip_code (String)
973
- # * :phone_numbers (Array<CandidApiClient::Commons::Types::PhoneNumber>)
974
- # * :phone_consent (Boolean)
975
- # * :email (String)
976
- # * :email_consent (Boolean)
977
- # * :non_insurance_payers (Array<String>)
978
- # * :non_insurance_payers_info (Array<CandidApiClient::Individual::Types::PatientNonInsurancePayerInfoCreate>)
979
- # * :patient_authorized_release (Boolean)
980
- # * :schema_instances (Array<CandidApiClient::CustomSchemas::V1::Types::SchemaInstance>)
981
- # * :vitals (Hash)
982
- # * :height_in (Integer)
983
- # * :weight_lbs (Integer)
984
- # * :blood_pressure_systolic_mmhg (Integer)
985
- # * :blood_pressure_diastolic_mmhg (Integer)
986
- # * :body_temperature_f (Float)
987
- # * :hemoglobin_gdl (Float)
988
- # * :hematocrit_pct (Float)
989
- # * :existing_medications (Array<CandidApiClient::Encounters::V4::Types::Medication>)
990
- # * :rendering_provider (Hash)
904
+ # * :first_name (String)
905
+ # * :last_name (String)
906
+ # * :organization_name (String)
907
+ # * :initial_referring_provider (Hash)
991
908
  # * :npi (String)
992
909
  # * :taxonomy_code (String)
993
910
  # * :address (Hash)
@@ -997,12 +914,13 @@ module CandidApiClient
997
914
  # * :city (String)
998
915
  # * :state (CandidApiClient::Commons::Types::State)
999
916
  # * :zip_code (String)
917
+ # * :qualifier (CandidApiClient::Commons::Types::QualifierCode)
1000
918
  # * :first_name (String)
1001
919
  # * :last_name (String)
1002
920
  # * :organization_name (String)
1003
- # * :service_facility (Hash)
1004
- # * :organization_name (String)
921
+ # * :referring_provider (Hash)
1005
922
  # * :npi (String)
923
+ # * :taxonomy_code (String)
1006
924
  # * :address (Hash)
1007
925
  # * :zip_plus_four_code (String)
1008
926
  # * :address_1 (String)
@@ -1010,12 +928,12 @@ module CandidApiClient
1010
928
  # * :city (String)
1011
929
  # * :state (CandidApiClient::Commons::Types::State)
1012
930
  # * :zip_code (String)
1013
- # * :secondary_identification (String)
1014
- # * :guarantor (Hash)
1015
931
  # * :first_name (String)
1016
932
  # * :last_name (String)
1017
- # * :external_id (String)
1018
- # * :date_of_birth (Date)
933
+ # * :organization_name (String)
934
+ # * :supervising_provider (Hash)
935
+ # * :npi (String)
936
+ # * :taxonomy_code (String)
1019
937
  # * :address (Hash)
1020
938
  # * :zip_plus_four_code (String)
1021
939
  # * :address_1 (String)
@@ -1023,10 +941,9 @@ module CandidApiClient
1023
941
  # * :city (String)
1024
942
  # * :state (CandidApiClient::Commons::Types::State)
1025
943
  # * :zip_code (String)
1026
- # * :phone_numbers (Array<CandidApiClient::Commons::Types::PhoneNumber>)
1027
- # * :phone_consent (Boolean)
1028
- # * :email (String)
1029
- # * :email_consent (Boolean)
944
+ # * :first_name (String)
945
+ # * :last_name (String)
946
+ # * :organization_name (String)
1030
947
  # * :billing_provider (Hash)
1031
948
  # * :address (Hash)
1032
949
  # * :zip_plus_four_code (String)
@@ -1042,9 +959,43 @@ module CandidApiClient
1042
959
  # * :first_name (String)
1043
960
  # * :last_name (String)
1044
961
  # * :organization_name (String)
1045
- # * :supervising_provider (Hash)
1046
- # * :npi (String)
1047
- # * :taxonomy_code (String)
962
+ # * :pay_to_address (Hash)
963
+ # * :zip_plus_four_code (String)
964
+ # * :address_1 (String)
965
+ # * :address_2 (String)
966
+ # * :city (String)
967
+ # * :state (CandidApiClient::Commons::Types::State)
968
+ # * :zip_code (String)
969
+ # * :benefits_assigned_to_provider (Boolean)
970
+ # * :prior_authorization_number (String)
971
+ # * :external_id (String)
972
+ # * :date_of_service (Date)
973
+ # * :tag_ids (Array<String>)
974
+ # * :clinical_notes (Array<CandidApiClient::Encounters::V4::Types::ClinicalNoteCategoryCreate>)
975
+ # * :billable_status (CandidApiClient::Encounters::V4::Types::BillableStatusType)
976
+ # * :responsible_party (CandidApiClient::Encounters::V4::Types::ResponsiblePartyType)
977
+ # * :provider_accepts_assignment (Boolean)
978
+ # * :synchronicity (CandidApiClient::Encounters::V4::Types::SynchronicityType)
979
+ # * :place_of_service_code (CandidApiClient::Commons::Types::FacilityTypeCode)
980
+ # * :appointment_type (String)
981
+ # * :end_date_of_service (Date)
982
+ # * :subscriber_primary (Hash)
983
+ # * :insurance_card (Hash)
984
+ # * :member_id (String)
985
+ # * :payer_name (String)
986
+ # * :payer_id (String)
987
+ # * :rx_bin (String)
988
+ # * :rx_pcn (String)
989
+ # * :image_url_front (String)
990
+ # * :image_url_back (String)
991
+ # * :emr_payer_crosswalk (CandidApiClient::Commons::Types::EmrPayerCrosswalk)
992
+ # * :group_number (String)
993
+ # * :plan_name (String)
994
+ # * :plan_type (CandidApiClient::Commons::Types::SourceOfPaymentCode)
995
+ # * :insurance_type (CandidApiClient::Commons::Types::InsuranceTypeCode)
996
+ # * :payer_plan_group_id (String)
997
+ # * :patient_relationship_to_subscriber_code (CandidApiClient::Commons::Types::PatientRelationshipToInsuredCodeAll)
998
+ # * :date_of_birth (Date)
1048
999
  # * :address (Hash)
1049
1000
  # * :zip_plus_four_code (String)
1050
1001
  # * :address_1 (String)
@@ -1054,10 +1005,51 @@ module CandidApiClient
1054
1005
  # * :zip_code (String)
1055
1006
  # * :first_name (String)
1056
1007
  # * :last_name (String)
1057
- # * :organization_name (String)
1058
- # * :referring_provider (Hash)
1059
- # * :npi (String)
1060
- # * :taxonomy_code (String)
1008
+ # * :gender (CandidApiClient::Individual::Types::Gender)
1009
+ # * :subscriber_secondary (Hash)
1010
+ # * :insurance_card (Hash)
1011
+ # * :member_id (String)
1012
+ # * :payer_name (String)
1013
+ # * :payer_id (String)
1014
+ # * :rx_bin (String)
1015
+ # * :rx_pcn (String)
1016
+ # * :image_url_front (String)
1017
+ # * :image_url_back (String)
1018
+ # * :emr_payer_crosswalk (CandidApiClient::Commons::Types::EmrPayerCrosswalk)
1019
+ # * :group_number (String)
1020
+ # * :plan_name (String)
1021
+ # * :plan_type (CandidApiClient::Commons::Types::SourceOfPaymentCode)
1022
+ # * :insurance_type (CandidApiClient::Commons::Types::InsuranceTypeCode)
1023
+ # * :payer_plan_group_id (String)
1024
+ # * :patient_relationship_to_subscriber_code (CandidApiClient::Commons::Types::PatientRelationshipToInsuredCodeAll)
1025
+ # * :date_of_birth (Date)
1026
+ # * :address (Hash)
1027
+ # * :zip_plus_four_code (String)
1028
+ # * :address_1 (String)
1029
+ # * :address_2 (String)
1030
+ # * :city (String)
1031
+ # * :state (CandidApiClient::Commons::Types::State)
1032
+ # * :zip_code (String)
1033
+ # * :first_name (String)
1034
+ # * :last_name (String)
1035
+ # * :gender (CandidApiClient::Individual::Types::Gender)
1036
+ # * :subscriber_tertiary (Hash)
1037
+ # * :insurance_card (Hash)
1038
+ # * :member_id (String)
1039
+ # * :payer_name (String)
1040
+ # * :payer_id (String)
1041
+ # * :rx_bin (String)
1042
+ # * :rx_pcn (String)
1043
+ # * :image_url_front (String)
1044
+ # * :image_url_back (String)
1045
+ # * :emr_payer_crosswalk (CandidApiClient::Commons::Types::EmrPayerCrosswalk)
1046
+ # * :group_number (String)
1047
+ # * :plan_name (String)
1048
+ # * :plan_type (CandidApiClient::Commons::Types::SourceOfPaymentCode)
1049
+ # * :insurance_type (CandidApiClient::Commons::Types::InsuranceTypeCode)
1050
+ # * :payer_plan_group_id (String)
1051
+ # * :patient_relationship_to_subscriber_code (CandidApiClient::Commons::Types::PatientRelationshipToInsuredCodeAll)
1052
+ # * :date_of_birth (Date)
1061
1053
  # * :address (Hash)
1062
1054
  # * :zip_plus_four_code (String)
1063
1055
  # * :address_1 (String)
@@ -1067,10 +1059,30 @@ module CandidApiClient
1067
1059
  # * :zip_code (String)
1068
1060
  # * :first_name (String)
1069
1061
  # * :last_name (String)
1070
- # * :organization_name (String)
1071
- # * :initial_referring_provider (Hash)
1072
- # * :npi (String)
1073
- # * :taxonomy_code (String)
1062
+ # * :gender (CandidApiClient::Individual::Types::Gender)
1063
+ # * :additional_information (String)
1064
+ # * :service_authorization_exception_code (CandidApiClient::Encounters::V4::Types::ServiceAuthorizationExceptionCode)
1065
+ # * :admission_date (Date)
1066
+ # * :discharge_date (Date)
1067
+ # * :onset_of_current_illness_or_symptom_date (Date)
1068
+ # * :last_menstrual_period_date (Date)
1069
+ # * :delay_reason_code (CandidApiClient::Commons::Types::DelayReasonCode)
1070
+ # * :patient_authorized_release (Boolean)
1071
+ # * :schema_instances (Array<CandidApiClient::CustomSchemas::V1::Types::SchemaInstance>)
1072
+ # * :vitals (Hash)
1073
+ # * :height_in (Integer)
1074
+ # * :weight_lbs (Integer)
1075
+ # * :blood_pressure_systolic_mmhg (Integer)
1076
+ # * :blood_pressure_diastolic_mmhg (Integer)
1077
+ # * :body_temperature_f (Float)
1078
+ # * :hemoglobin_gdl (Float)
1079
+ # * :hematocrit_pct (Float)
1080
+ # * :existing_medications (Array<CandidApiClient::Encounters::V4::Types::Medication>)
1081
+ # * :guarantor (Hash)
1082
+ # * :first_name (String)
1083
+ # * :last_name (String)
1084
+ # * :external_id (String)
1085
+ # * :date_of_birth (Date)
1074
1086
  # * :address (Hash)
1075
1087
  # * :zip_plus_four_code (String)
1076
1088
  # * :address_1 (String)
@@ -1078,16 +1090,17 @@ module CandidApiClient
1078
1090
  # * :city (String)
1079
1091
  # * :state (CandidApiClient::Commons::Types::State)
1080
1092
  # * :zip_code (String)
1081
- # * :qualifier (CandidApiClient::Commons::Types::QualifierCode)
1082
- # * :first_name (String)
1083
- # * :last_name (String)
1084
- # * :organization_name (String)
1093
+ # * :phone_numbers (Array<CandidApiClient::Commons::Types::PhoneNumber>)
1094
+ # * :phone_consent (Boolean)
1095
+ # * :email (String)
1096
+ # * :email_consent (Boolean)
1085
1097
  # * :referral_number (String)
1086
1098
  # * :epsdt_referral (Hash)
1087
1099
  # * :condition_indicator_1 (CandidApiClient::Commons::Types::EpsdtReferralConditionIndicatorCode)
1088
1100
  # * :condition_indicator_2 (CandidApiClient::Commons::Types::EpsdtReferralConditionIndicatorCode)
1089
1101
  # * :condition_indicator_3 (CandidApiClient::Commons::Types::EpsdtReferralConditionIndicatorCode)
1090
1102
  # * :claim_supplemental_information (Array<CandidApiClient::Encounters::V4::Types::ClaimSupplementalInformation>)
1103
+ # * :secondary_payer_carrier_code (String)
1091
1104
  # @param charge_external_id [String] A client-specified unique ID to associate with this encounter; for example, your
1092
1105
  # internal encounter ID or a Dr. Chrono encounter ID. This field should not
1093
1106
  # contain PHI.
@@ -1101,7 +1114,7 @@ module CandidApiClient
1101
1114
  # @example
1102
1115
  # api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
1103
1116
  # api.charge_capture.v_1.create(
1104
- # data: { diagnoses: , interventions: , external_claim_submission: { claim_created_at: DateTime.parse(2023-01-01T12:00:00.000Z), patient_control_number: "PATIENT_CONTROL_NUMBER", submission_records: [{ submitted_at: DateTime.parse(2023-01-01T13:00:00.000Z), claim_frequency_code: ORIGINAL, payer_responsibility: PRIMARY, intended_submission_medium: ELECTRONIC }, { submitted_at: DateTime.parse(2023-01-04T12:00:00.000Z), claim_frequency_code: REPLACEMENT, payer_responsibility: PRIMARY, intended_submission_medium: PAPER }] }, service_lines: , patient_histories: , billing_notes: , benefits_assigned_to_provider: true, prior_authorization_number: "string", external_id: "string", date_of_service: DateTime.parse(2023-01-15), tag_ids: , clinical_notes: , pay_to_address: { address_1: "123 Main St", address_2: "Apt 1", city: "New York", state: NY, zip_code: "10001", zip_plus_four_code: "1234" }, billable_status: BILLABLE, responsible_party: INSURANCE_PAY, provider_accepts_assignment: true, synchronicity: SYNCHRONOUS, place_of_service_code: PHARMACY, appointment_type: "string", end_date_of_service: DateTime.parse(2023-01-15), subscriber_primary: { insurance_card: { member_id: "string", payer_name: "string", payer_id: "string" }, patient_relationship_to_subscriber_code: SPOUSE, first_name: "string", last_name: "string", gender: MALE }, subscriber_secondary: { insurance_card: { member_id: "string", payer_name: "string", payer_id: "string" }, patient_relationship_to_subscriber_code: SPOUSE, first_name: "string", last_name: "string", gender: MALE }, subscriber_tertiary: { insurance_card: { member_id: "string", payer_name: "string", payer_id: "string" }, patient_relationship_to_subscriber_code: SPOUSE, first_name: "string", last_name: "string", gender: MALE }, additional_information: "string", service_authorization_exception_code: C_1, admission_date: DateTime.parse(2023-01-15), discharge_date: DateTime.parse(2023-01-15), onset_of_current_illness_or_symptom_date: DateTime.parse(2023-01-15), last_menstrual_period_date: DateTime.parse(2023-01-15), delay_reason_code: C_1, patient: { }, patient_authorized_release: true, schema_instances: , vitals: { height_in: 70, weight_lbs: 165, blood_pressure_systolic_mmhg: 115, blood_pressure_diastolic_mmhg: 85, body_temperature_f: 98, hemoglobin_gdl: 15.1, hematocrit_pct: 51.2 }, existing_medications: , rendering_provider: { }, service_facility: { organization_name: "Test Organization", address: { address_1: "123 Main St", address_2: "Apt 1", city: "New York", state: NY, zip_code: "10001", zip_plus_four_code: "1234" } }, guarantor: { }, billing_provider: { }, supervising_provider: { }, referring_provider: { }, initial_referring_provider: { }, referral_number: "string", epsdt_referral: { condition_indicator_1: AV }, claim_supplemental_information: },
1117
+ # data: { },
1105
1118
  # charge_external_id: "string",
1106
1119
  # ehr_source_url: "string",
1107
1120
  # patient_external_id: "string",
@@ -1164,13 +1177,105 @@ module CandidApiClient
1164
1177
  # * :submission_records (Array<CandidApiClient::ClaimSubmission::V1::Types::ClaimSubmissionRecordCreate>)
1165
1178
  # * :service_lines (Array<CandidApiClient::ServiceLines::V2::Types::ServiceLineCreate>)
1166
1179
  # * :patient_histories (Array<CandidApiClient::Encounters::V4::Types::PatientHistoryCategory>)
1167
- # * :billing_notes (Array<CandidApiClient::BillingNotes::V2::Types::BillingNoteOptional>)
1168
- # * :benefits_assigned_to_provider (Boolean)
1169
- # * :prior_authorization_number (String)
1170
- # * :external_id (String)
1171
- # * :date_of_service (Date)
1172
- # * :tag_ids (Array<String>)
1173
- # * :clinical_notes (Array<CandidApiClient::Encounters::V4::Types::ClinicalNoteCategoryCreate>)
1180
+ # * :billing_notes (Array<CandidApiClient::BillingNotes::V2::Types::BillingNoteBase>)
1181
+ # * :patient (Hash)
1182
+ # * :first_name (String)
1183
+ # * :last_name (String)
1184
+ # * :gender (CandidApiClient::Individual::Types::Gender)
1185
+ # * :external_id (String)
1186
+ # * :date_of_birth (Date)
1187
+ # * :address (Hash)
1188
+ # * :zip_plus_four_code (String)
1189
+ # * :address_1 (String)
1190
+ # * :address_2 (String)
1191
+ # * :city (String)
1192
+ # * :state (CandidApiClient::Commons::Types::State)
1193
+ # * :zip_code (String)
1194
+ # * :phone_numbers (Array<CandidApiClient::Commons::Types::PhoneNumber>)
1195
+ # * :phone_consent (Boolean)
1196
+ # * :email (String)
1197
+ # * :email_consent (Boolean)
1198
+ # * :non_insurance_payers (Array<String>)
1199
+ # * :non_insurance_payers_info (Array<CandidApiClient::Individual::Types::PatientNonInsurancePayerInfoCreate>)
1200
+ # * :service_facility (Hash)
1201
+ # * :organization_name (String)
1202
+ # * :npi (String)
1203
+ # * :address (Hash)
1204
+ # * :zip_plus_four_code (String)
1205
+ # * :address_1 (String)
1206
+ # * :address_2 (String)
1207
+ # * :city (String)
1208
+ # * :state (CandidApiClient::Commons::Types::State)
1209
+ # * :zip_code (String)
1210
+ # * :secondary_identification (String)
1211
+ # * :rendering_provider (Hash)
1212
+ # * :npi (String)
1213
+ # * :taxonomy_code (String)
1214
+ # * :address (Hash)
1215
+ # * :zip_plus_four_code (String)
1216
+ # * :address_1 (String)
1217
+ # * :address_2 (String)
1218
+ # * :city (String)
1219
+ # * :state (CandidApiClient::Commons::Types::State)
1220
+ # * :zip_code (String)
1221
+ # * :first_name (String)
1222
+ # * :last_name (String)
1223
+ # * :organization_name (String)
1224
+ # * :initial_referring_provider (Hash)
1225
+ # * :npi (String)
1226
+ # * :taxonomy_code (String)
1227
+ # * :address (Hash)
1228
+ # * :zip_plus_four_code (String)
1229
+ # * :address_1 (String)
1230
+ # * :address_2 (String)
1231
+ # * :city (String)
1232
+ # * :state (CandidApiClient::Commons::Types::State)
1233
+ # * :zip_code (String)
1234
+ # * :qualifier (CandidApiClient::Commons::Types::QualifierCode)
1235
+ # * :first_name (String)
1236
+ # * :last_name (String)
1237
+ # * :organization_name (String)
1238
+ # * :referring_provider (Hash)
1239
+ # * :npi (String)
1240
+ # * :taxonomy_code (String)
1241
+ # * :address (Hash)
1242
+ # * :zip_plus_four_code (String)
1243
+ # * :address_1 (String)
1244
+ # * :address_2 (String)
1245
+ # * :city (String)
1246
+ # * :state (CandidApiClient::Commons::Types::State)
1247
+ # * :zip_code (String)
1248
+ # * :first_name (String)
1249
+ # * :last_name (String)
1250
+ # * :organization_name (String)
1251
+ # * :supervising_provider (Hash)
1252
+ # * :npi (String)
1253
+ # * :taxonomy_code (String)
1254
+ # * :address (Hash)
1255
+ # * :zip_plus_four_code (String)
1256
+ # * :address_1 (String)
1257
+ # * :address_2 (String)
1258
+ # * :city (String)
1259
+ # * :state (CandidApiClient::Commons::Types::State)
1260
+ # * :zip_code (String)
1261
+ # * :first_name (String)
1262
+ # * :last_name (String)
1263
+ # * :organization_name (String)
1264
+ # * :billing_provider (Hash)
1265
+ # * :address (Hash)
1266
+ # * :zip_plus_four_code (String)
1267
+ # * :address_1 (String)
1268
+ # * :address_2 (String)
1269
+ # * :city (String)
1270
+ # * :state (CandidApiClient::Commons::Types::State)
1271
+ # * :zip_code (String)
1272
+ # * :tax_id (String)
1273
+ # * :npi (String)
1274
+ # * :taxonomy_code (String)
1275
+ # * :provider_commercial_license_type (CandidApiClient::Commons::Types::BillingProviderCommercialLicenseType)
1276
+ # * :first_name (String)
1277
+ # * :last_name (String)
1278
+ # * :organization_name (String)
1174
1279
  # * :pay_to_address (Hash)
1175
1280
  # * :zip_plus_four_code (String)
1176
1281
  # * :address_1 (String)
@@ -1178,6 +1283,12 @@ module CandidApiClient
1178
1283
  # * :city (String)
1179
1284
  # * :state (CandidApiClient::Commons::Types::State)
1180
1285
  # * :zip_code (String)
1286
+ # * :benefits_assigned_to_provider (Boolean)
1287
+ # * :prior_authorization_number (String)
1288
+ # * :external_id (String)
1289
+ # * :date_of_service (Date)
1290
+ # * :tag_ids (Array<String>)
1291
+ # * :clinical_notes (Array<CandidApiClient::Encounters::V4::Types::ClinicalNoteCategoryCreate>)
1181
1292
  # * :billable_status (CandidApiClient::Encounters::V4::Types::BillableStatusType)
1182
1293
  # * :responsible_party (CandidApiClient::Encounters::V4::Types::ResponsiblePartyType)
1183
1294
  # * :provider_accepts_assignment (Boolean)
@@ -1273,25 +1384,6 @@ module CandidApiClient
1273
1384
  # * :onset_of_current_illness_or_symptom_date (Date)
1274
1385
  # * :last_menstrual_period_date (Date)
1275
1386
  # * :delay_reason_code (CandidApiClient::Commons::Types::DelayReasonCode)
1276
- # * :patient (Hash)
1277
- # * :first_name (String)
1278
- # * :last_name (String)
1279
- # * :gender (CandidApiClient::Individual::Types::Gender)
1280
- # * :external_id (String)
1281
- # * :date_of_birth (Date)
1282
- # * :address (Hash)
1283
- # * :zip_plus_four_code (String)
1284
- # * :address_1 (String)
1285
- # * :address_2 (String)
1286
- # * :city (String)
1287
- # * :state (CandidApiClient::Commons::Types::State)
1288
- # * :zip_code (String)
1289
- # * :phone_numbers (Array<CandidApiClient::Commons::Types::PhoneNumber>)
1290
- # * :phone_consent (Boolean)
1291
- # * :email (String)
1292
- # * :email_consent (Boolean)
1293
- # * :non_insurance_payers (Array<String>)
1294
- # * :non_insurance_payers_info (Array<CandidApiClient::Individual::Types::PatientNonInsurancePayerInfoCreate>)
1295
1387
  # * :patient_authorized_release (Boolean)
1296
1388
  # * :schema_instances (Array<CandidApiClient::CustomSchemas::V1::Types::SchemaInstance>)
1297
1389
  # * :vitals (Hash)
@@ -1303,30 +1395,6 @@ module CandidApiClient
1303
1395
  # * :hemoglobin_gdl (Float)
1304
1396
  # * :hematocrit_pct (Float)
1305
1397
  # * :existing_medications (Array<CandidApiClient::Encounters::V4::Types::Medication>)
1306
- # * :rendering_provider (Hash)
1307
- # * :npi (String)
1308
- # * :taxonomy_code (String)
1309
- # * :address (Hash)
1310
- # * :zip_plus_four_code (String)
1311
- # * :address_1 (String)
1312
- # * :address_2 (String)
1313
- # * :city (String)
1314
- # * :state (CandidApiClient::Commons::Types::State)
1315
- # * :zip_code (String)
1316
- # * :first_name (String)
1317
- # * :last_name (String)
1318
- # * :organization_name (String)
1319
- # * :service_facility (Hash)
1320
- # * :organization_name (String)
1321
- # * :npi (String)
1322
- # * :address (Hash)
1323
- # * :zip_plus_four_code (String)
1324
- # * :address_1 (String)
1325
- # * :address_2 (String)
1326
- # * :city (String)
1327
- # * :state (CandidApiClient::Commons::Types::State)
1328
- # * :zip_code (String)
1329
- # * :secondary_identification (String)
1330
1398
  # * :guarantor (Hash)
1331
1399
  # * :first_name (String)
1332
1400
  # * :last_name (String)
@@ -1343,67 +1411,13 @@ module CandidApiClient
1343
1411
  # * :phone_consent (Boolean)
1344
1412
  # * :email (String)
1345
1413
  # * :email_consent (Boolean)
1346
- # * :billing_provider (Hash)
1347
- # * :address (Hash)
1348
- # * :zip_plus_four_code (String)
1349
- # * :address_1 (String)
1350
- # * :address_2 (String)
1351
- # * :city (String)
1352
- # * :state (CandidApiClient::Commons::Types::State)
1353
- # * :zip_code (String)
1354
- # * :tax_id (String)
1355
- # * :npi (String)
1356
- # * :taxonomy_code (String)
1357
- # * :provider_commercial_license_type (CandidApiClient::Commons::Types::BillingProviderCommercialLicenseType)
1358
- # * :first_name (String)
1359
- # * :last_name (String)
1360
- # * :organization_name (String)
1361
- # * :supervising_provider (Hash)
1362
- # * :npi (String)
1363
- # * :taxonomy_code (String)
1364
- # * :address (Hash)
1365
- # * :zip_plus_four_code (String)
1366
- # * :address_1 (String)
1367
- # * :address_2 (String)
1368
- # * :city (String)
1369
- # * :state (CandidApiClient::Commons::Types::State)
1370
- # * :zip_code (String)
1371
- # * :first_name (String)
1372
- # * :last_name (String)
1373
- # * :organization_name (String)
1374
- # * :referring_provider (Hash)
1375
- # * :npi (String)
1376
- # * :taxonomy_code (String)
1377
- # * :address (Hash)
1378
- # * :zip_plus_four_code (String)
1379
- # * :address_1 (String)
1380
- # * :address_2 (String)
1381
- # * :city (String)
1382
- # * :state (CandidApiClient::Commons::Types::State)
1383
- # * :zip_code (String)
1384
- # * :first_name (String)
1385
- # * :last_name (String)
1386
- # * :organization_name (String)
1387
- # * :initial_referring_provider (Hash)
1388
- # * :npi (String)
1389
- # * :taxonomy_code (String)
1390
- # * :address (Hash)
1391
- # * :zip_plus_four_code (String)
1392
- # * :address_1 (String)
1393
- # * :address_2 (String)
1394
- # * :city (String)
1395
- # * :state (CandidApiClient::Commons::Types::State)
1396
- # * :zip_code (String)
1397
- # * :qualifier (CandidApiClient::Commons::Types::QualifierCode)
1398
- # * :first_name (String)
1399
- # * :last_name (String)
1400
- # * :organization_name (String)
1401
1414
  # * :referral_number (String)
1402
1415
  # * :epsdt_referral (Hash)
1403
1416
  # * :condition_indicator_1 (CandidApiClient::Commons::Types::EpsdtReferralConditionIndicatorCode)
1404
1417
  # * :condition_indicator_2 (CandidApiClient::Commons::Types::EpsdtReferralConditionIndicatorCode)
1405
1418
  # * :condition_indicator_3 (CandidApiClient::Commons::Types::EpsdtReferralConditionIndicatorCode)
1406
1419
  # * :claim_supplemental_information (Array<CandidApiClient::Encounters::V4::Types::ClaimSupplementalInformation>)
1420
+ # * :secondary_payer_carrier_code (String)
1407
1421
  # @param charge_external_id [String] A client-specified unique ID to associate with this encounter;
1408
1422
  # for example, your internal encounter ID or a Dr. Chrono encounter ID.
1409
1423
  # This field should not contain PHI.
@@ -1419,7 +1433,7 @@ module CandidApiClient
1419
1433
  # api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
1420
1434
  # api.charge_capture.v_1.update(
1421
1435
  # charge_capture_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32",
1422
- # data: { diagnoses: , interventions: , external_claim_submission: { claim_created_at: DateTime.parse(2023-01-01T12:00:00.000Z), patient_control_number: "PATIENT_CONTROL_NUMBER", submission_records: [{ submitted_at: DateTime.parse(2023-01-01T13:00:00.000Z), claim_frequency_code: ORIGINAL, payer_responsibility: PRIMARY, intended_submission_medium: ELECTRONIC }, { submitted_at: DateTime.parse(2023-01-04T12:00:00.000Z), claim_frequency_code: REPLACEMENT, payer_responsibility: PRIMARY, intended_submission_medium: PAPER }] }, service_lines: , patient_histories: , billing_notes: , benefits_assigned_to_provider: true, prior_authorization_number: "string", external_id: "string", date_of_service: DateTime.parse(2023-01-15), tag_ids: , clinical_notes: , pay_to_address: { address_1: "123 Main St", address_2: "Apt 1", city: "New York", state: NY, zip_code: "10001", zip_plus_four_code: "1234" }, billable_status: BILLABLE, responsible_party: INSURANCE_PAY, provider_accepts_assignment: true, synchronicity: SYNCHRONOUS, place_of_service_code: PHARMACY, appointment_type: "string", end_date_of_service: DateTime.parse(2023-01-15), subscriber_primary: { insurance_card: { member_id: "string", payer_name: "string", payer_id: "string" }, patient_relationship_to_subscriber_code: SPOUSE, first_name: "string", last_name: "string", gender: MALE }, subscriber_secondary: { insurance_card: { member_id: "string", payer_name: "string", payer_id: "string" }, patient_relationship_to_subscriber_code: SPOUSE, first_name: "string", last_name: "string", gender: MALE }, subscriber_tertiary: { insurance_card: { member_id: "string", payer_name: "string", payer_id: "string" }, patient_relationship_to_subscriber_code: SPOUSE, first_name: "string", last_name: "string", gender: MALE }, additional_information: "string", service_authorization_exception_code: C_1, admission_date: DateTime.parse(2023-01-15), discharge_date: DateTime.parse(2023-01-15), onset_of_current_illness_or_symptom_date: DateTime.parse(2023-01-15), last_menstrual_period_date: DateTime.parse(2023-01-15), delay_reason_code: C_1, patient: { }, patient_authorized_release: true, schema_instances: , vitals: { height_in: 70, weight_lbs: 165, blood_pressure_systolic_mmhg: 115, blood_pressure_diastolic_mmhg: 85, body_temperature_f: 98, hemoglobin_gdl: 15.1, hematocrit_pct: 51.2 }, existing_medications: , rendering_provider: { }, service_facility: { organization_name: "Test Organization", address: { address_1: "123 Main St", address_2: "Apt 1", city: "New York", state: NY, zip_code: "10001", zip_plus_four_code: "1234" } }, guarantor: { }, billing_provider: { }, supervising_provider: { }, referring_provider: { }, initial_referring_provider: { }, referral_number: "string", epsdt_referral: { condition_indicator_1: AV }, claim_supplemental_information: },
1436
+ # data: { },
1423
1437
  # charge_external_id: "string",
1424
1438
  # ehr_source_url: "string",
1425
1439
  # patient_external_id: "string",
@@ -1624,16 +1638,17 @@ module CandidApiClient
1624
1638
  end
1625
1639
  end
1626
1640
 
1627
- # @param charge_capture_change_id [String]
1641
+ # @param charge_capture_change_ids [Array<String>] A list of UUIDs corresponding to ChargeCapturePostBilledChanges.
1642
+ # All of the charges sent will be marked as resolved
1628
1643
  # @param resolved [Boolean] Whether the change has been resolved. If true, the change will be marked as
1629
1644
  # resolved.
1630
1645
  # If false, the change will be marked as unresolved.
1631
1646
  # @param request_options [CandidApiClient::RequestOptions]
1632
- # @return [CandidApiClient::ChargeCapture::V1::Types::ChargeCapturePostBilledChange]
1647
+ # @return [Array<CandidApiClient::ChargeCapture::V1::Types::ChargeCapturePostBilledChange>]
1633
1648
  # @example
1634
1649
  # api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
1635
- # api.charge_capture.v_1.update_post_billed_change(charge_capture_change_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", resolved: true)
1636
- def update_post_billed_change(charge_capture_change_id:, resolved:, request_options: nil)
1650
+ # api.charge_capture.v_1.update_post_billed_changes(charge_capture_change_ids: ["d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"], resolved: true)
1651
+ def update_post_billed_changes(charge_capture_change_ids:, resolved:, request_options: nil)
1637
1652
  Async do
1638
1653
  response = @request_client.conn.patch do |req|
1639
1654
  req.options.timeout = request_options.timeout_in_seconds unless request_options&.timeout_in_seconds.nil?
@@ -1643,11 +1658,19 @@ module CandidApiClient
1643
1658
  **@request_client.get_headers,
1644
1659
  **(request_options&.additional_headers || {})
1645
1660
  }.compact
1646
- req.body = { **(request_options&.additional_body_parameters || {}), resolved: resolved }.compact
1661
+ req.body = {
1662
+ **(request_options&.additional_body_parameters || {}),
1663
+ charge_capture_change_ids: charge_capture_change_ids,
1664
+ resolved: resolved
1665
+ }.compact
1647
1666
  req.url "#{@request_client.get_url(environment: CandidApi,
1648
- request_options: request_options)}/api/charge_captures/v1/changes/#{charge_capture_change_id}"
1667
+ request_options: request_options)}/api/charge_captures/v1/changes"
1668
+ end
1669
+ parsed_json = JSON.parse(response.body)
1670
+ parsed_json&.map do |item|
1671
+ item = item.to_json
1672
+ CandidApiClient::ChargeCapture::V1::Types::ChargeCapturePostBilledChange.from_json(json_object: item)
1649
1673
  end
1650
- CandidApiClient::ChargeCapture::V1::Types::ChargeCapturePostBilledChange.from_json(json_object: response.body)
1651
1674
  end
1652
1675
  end
1653
1676
  end