candidhealth 0.31.0 → 0.32.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/candidhealth/encounters/v_4/client.rb +14 -100
- data/lib/candidhealth/expected_network_status/v_2/client.rb +4 -4
- data/lib/candidhealth/financials/types/allocation_target_create.rb +10 -9
- data/lib/candidhealth/financials/types/appointment_allocation_target.rb +13 -3
- data/lib/candidhealth/financials/types/appointment_by_id_and_patient_external_id.rb +68 -0
- data/lib/candidhealth/import_invoice/v_1/client.rb +4 -4
- data/lib/candidhealth/individual/types/patient.rb +14 -2
- data/lib/candidhealth/individual/types/patient_create.rb +10 -2
- data/lib/candidhealth/insurance_adjudications/v_1/client.rb +2 -2
- data/lib/candidhealth/insurance_payments/v_1/client.rb +2 -2
- data/lib/candidhealth/insurance_refunds/v_1/client.rb +2 -2
- data/lib/candidhealth/medication_dispense/v_1/client.rb +2 -2
- data/lib/candidhealth/non_insurance_payer_payments/v_1/client.rb +2 -2
- data/lib/candidhealth/non_insurance_payer_refunds/v_1/client.rb +2 -2
- data/lib/candidhealth/organization_providers/v_3/client.rb +2 -2
- data/lib/candidhealth/pre_encounter/appointments/v_1/client.rb +4 -4
- data/lib/candidhealth/pre_encounter/coverages/v_1/client.rb +4 -4
- data/lib/candidhealth/pre_encounter/patients/v_1/client.rb +6 -6
- data/lib/candidhealth/service_lines/v_2/client.rb +4 -4
- data/lib/candidhealth/service_lines/v_2/types/service_line.rb +1 -40
- data/lib/candidhealth/service_lines/v_2/types/service_line_create.rb +1 -65
- data/lib/candidhealth/third_party_payer_payments/v_1/client.rb +2 -2
- data/lib/candidhealth/third_party_payer_refunds/v_1/client.rb +2 -2
- data/lib/requests.rb +2 -2
- data/lib/types_export.rb +1 -0
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bec9a5c208037d7c187d5957cf81830ad65f75b9d8bbf31701e26e35aa86724c
|
4
|
+
data.tar.gz: 7b75b2f7c87bedda01c251e8321f381f23815005e7a820a37cb585a298d5d46a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4dfe96a5a38012308d23702a8eba72658995c45981b5fd3dc2731d67ef323adbf01dd52ede5c253c0b893ff204922bb4dbfa9efc1d7bd3d7ae0299466d2081d8
|
7
|
+
data.tar.gz: 6fc4fdba73c3be2fac3d9ef609d657c0afd1d004d0694e5c59e74f3348151903e67423919eae3cda509a1edbe0759996eeb792e0cf8d4881db97deef4e5ff076
|
@@ -258,6 +258,7 @@ module CandidApiClient
|
|
258
258
|
# * :phone_numbers (Array<CandidApiClient::Commons::Types::PhoneNumber>)
|
259
259
|
# * :phone_consent (Boolean)
|
260
260
|
# * :email (String)
|
261
|
+
# * :non_insurance_payers (Array<String>)
|
261
262
|
# * :email_consent (Boolean)
|
262
263
|
# * :external_id (String)
|
263
264
|
# * :date_of_birth (Date)
|
@@ -329,9 +330,7 @@ module CandidApiClient
|
|
329
330
|
# this loop to
|
330
331
|
# indicate the initial referral from the primary care provider or whatever
|
331
332
|
# provider wrote the initial referral for this patient's episode of care being
|
332
|
-
# billed/reported in this transaction.
|
333
|
-
# Information in Loop ID-2310 applies to the entire claim unless overridden on a
|
334
|
-
# service line by the presence of Loop ID-2420 with the same value in NM101.Request of type CandidApiClient::EncounterProviders::V2::Types::InitialReferringProvider, as a Hash
|
333
|
+
# billed/reported in this transaction.Request of type CandidApiClient::EncounterProviders::V2::Types::InitialReferringProvider, as a Hash
|
335
334
|
# * :npi (String)
|
336
335
|
# * :taxonomy_code (String)
|
337
336
|
# * :address (Hash)
|
@@ -346,9 +345,7 @@ module CandidApiClient
|
|
346
345
|
# * :last_name (String)
|
347
346
|
# * :organization_name (String)
|
348
347
|
# @param supervising_provider [Hash] Required when the rendering provider is supervised by a physician. If not
|
349
|
-
# required by this implementation guide, do not send.
|
350
|
-
# Information in Loop ID-2310 applies to the entire claim unless overridden on a
|
351
|
-
# service line by the presence of Loop ID-2420 with the same value in NM101.Request of type CandidApiClient::EncounterProviders::V2::Types::SupervisingProvider, as a Hash
|
348
|
+
# required by this implementation guide, do not send.Request of type CandidApiClient::EncounterProviders::V2::Types::SupervisingProvider, as a Hash
|
352
349
|
# * :npi (String)
|
353
350
|
# * :taxonomy_code (String)
|
354
351
|
# * :address (Hash)
|
@@ -480,46 +477,6 @@ module CandidApiClient
|
|
480
477
|
# * :description (String)
|
481
478
|
# * :date_of_service (Date)
|
482
479
|
# * :end_date_of_service (Date)
|
483
|
-
# * :referring_provider (Hash)
|
484
|
-
# * :npi (String)
|
485
|
-
# * :taxonomy_code (String)
|
486
|
-
# * :address (Hash)
|
487
|
-
# * :zip_plus_four_code (String)
|
488
|
-
# * :address_1 (String)
|
489
|
-
# * :address_2 (String)
|
490
|
-
# * :city (String)
|
491
|
-
# * :state (CandidApiClient::Commons::Types::State)
|
492
|
-
# * :zip_code (String)
|
493
|
-
# * :first_name (String)
|
494
|
-
# * :last_name (String)
|
495
|
-
# * :organization_name (String)
|
496
|
-
# * :initial_referring_provider (Hash)
|
497
|
-
# * :npi (String)
|
498
|
-
# * :taxonomy_code (String)
|
499
|
-
# * :address (Hash)
|
500
|
-
# * :zip_plus_four_code (String)
|
501
|
-
# * :address_1 (String)
|
502
|
-
# * :address_2 (String)
|
503
|
-
# * :city (String)
|
504
|
-
# * :state (CandidApiClient::Commons::Types::State)
|
505
|
-
# * :zip_code (String)
|
506
|
-
# * :qualifier (CandidApiClient::Commons::Types::QualifierCode)
|
507
|
-
# * :first_name (String)
|
508
|
-
# * :last_name (String)
|
509
|
-
# * :organization_name (String)
|
510
|
-
# * :supervising_provider (Hash)
|
511
|
-
# * :npi (String)
|
512
|
-
# * :taxonomy_code (String)
|
513
|
-
# * :address (Hash)
|
514
|
-
# * :zip_plus_four_code (String)
|
515
|
-
# * :address_1 (String)
|
516
|
-
# * :address_2 (String)
|
517
|
-
# * :city (String)
|
518
|
-
# * :state (CandidApiClient::Commons::Types::State)
|
519
|
-
# * :zip_code (String)
|
520
|
-
# * :first_name (String)
|
521
|
-
# * :last_name (String)
|
522
|
-
# * :organization_name (String)
|
523
480
|
# * :ordering_provider (Hash)
|
524
481
|
# * :npi (String)
|
525
482
|
# * :taxonomy_code (String)
|
@@ -569,7 +526,7 @@ module CandidApiClient
|
|
569
526
|
# api.encounters.v_4.create(
|
570
527
|
# date_of_service: DateTime.parse(2023-01-15),
|
571
528
|
# end_date_of_service: DateTime.parse(2023-01-15),
|
572
|
-
# patient: { phone_numbers: [{ number: "1234567890", type: HOME }], phone_consent: true, email: "johndoe@joincandidhealth.com", email_consent: true, external_id: "string", date_of_birth: DateTime.parse(2023-01-15), address: { address_1: "123 Main St", address_2: "Apt 1", city: "New York", state: NY, zip_code: "10001", zip_plus_four_code: "1234" }, first_name: "string", last_name: "string", gender: MALE },
|
529
|
+
# patient: { phone_numbers: [{ number: "1234567890", type: HOME }], phone_consent: true, email: "johndoe@joincandidhealth.com", non_insurance_payers: ["d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"], email_consent: true, external_id: "string", date_of_birth: DateTime.parse(2023-01-15), address: { address_1: "123 Main St", address_2: "Apt 1", city: "New York", state: NY, zip_code: "10001", zip_plus_four_code: "1234" }, first_name: "string", last_name: "string", gender: MALE },
|
573
530
|
# billing_provider: { address: { address_1: "123 Main St", address_2: "Apt 1", city: "New York", state: NY, zip_code: "10001", zip_plus_four_code: "1234" }, tax_id: "string", npi: "string", taxonomy_code: "string", first_name: "string", last_name: "string", organization_name: "string" },
|
574
531
|
# rendering_provider: { address: { address_1: "123 Main St", address_2: "Apt 1", city: "New York", state: NY, zip_code: "10001", zip_plus_four_code: "1234" }, npi: "string", taxonomy_code: "string", first_name: "string", last_name: "string", organization_name: "string" },
|
575
532
|
# referring_provider: { npi: "string", taxonomy_code: "string", address: { address_1: "123 Main St", address_2: "Apt 1", city: "New York", state: NY, zip_code: "10001", zip_plus_four_code: "1234" }, first_name: "string", last_name: "string", organization_name: "string" },
|
@@ -579,11 +536,11 @@ module CandidApiClient
|
|
579
536
|
# subscriber_primary: { insurance_card: { member_id: "string", payer_name: "string", payer_id: "string", rx_bin: "string", rx_pcn: "string", image_url_front: "string", image_url_back: "string", emr_payer_crosswalk: HEALTHIE, group_number: "string", plan_name: "string", plan_type: SELF_PAY, insurance_type: C_01 }, patient_relationship_to_subscriber_code: SPOUSE, date_of_birth: DateTime.parse(2023-01-15), address: { address_1: "123 Main St", address_2: "Apt 1", city: "New York", state: NY, zip_code: "10001", zip_plus_four_code: "1234" }, first_name: "string", last_name: "string", gender: MALE },
|
580
537
|
# subscriber_secondary: { insurance_card: { member_id: "string", payer_name: "string", payer_id: "string", rx_bin: "string", rx_pcn: "string", image_url_front: "string", image_url_back: "string", emr_payer_crosswalk: HEALTHIE, group_number: "string", plan_name: "string", plan_type: SELF_PAY, insurance_type: C_01 }, patient_relationship_to_subscriber_code: SPOUSE, date_of_birth: DateTime.parse(2023-01-15), address: { address_1: "123 Main St", address_2: "Apt 1", city: "New York", state: NY, zip_code: "10001", zip_plus_four_code: "1234" }, first_name: "string", last_name: "string", gender: MALE },
|
581
538
|
# diagnoses: [{ name: "string", code_type: ABF, code: "string" }],
|
582
|
-
# clinical_notes: [{ category: CLINICAL, notes: [{
|
539
|
+
# clinical_notes: [{ category: CLINICAL, notes: [{ text: "string", author_name: "string", author_npi: "string", timestamp: DateTime.parse(2024-01-15T09:30:00.000Z) }] }],
|
583
540
|
# billing_notes: [{ text: "string" }],
|
584
541
|
# place_of_service_code: PHARMACY,
|
585
542
|
# patient_histories: [{ category: PRESENT_ILLNESS, questions: [{ id: "6E7FBCE4-A8EA-46D0-A8D8-FF83CA3BB176", text: "Do you have any allergies?", responses: [{ response: "No allergies", follow_ups: [{ id: "4F3D57F9-AC94-49D6-87E4-E804B709917A", text: "Do you have any allergies?", response: "No allergies" }] }] }] }],
|
586
|
-
# service_lines: [{ modifiers: [TWENTY_TWO], procedure_code: "string", quantity: "string", units: MJ, charge_amount_cents: 1, diagnosis_pointers: [1], drug_identification: {
|
543
|
+
# service_lines: [{ modifiers: [TWENTY_TWO], procedure_code: "string", quantity: "string", units: MJ, charge_amount_cents: 1, diagnosis_pointers: [1], drug_identification: { service_id_qualifier: EAN_UCC_13, national_drug_code: "string", national_drug_unit_count: "string", measurement_unit_code: MILLILITERS, link_sequence_number: "string", pharmacy_prescription_number: "string", conversion_formula: "string" }, place_of_service_code: PHARMACY, description: "string", date_of_service: DateTime.parse(2023-01-15), end_date_of_service: DateTime.parse(2023-01-15), ordering_provider: { npi: "string", taxonomy_code: "string", address: { address_1: "123 Main St", address_2: "Apt 1", city: "New York", state: NY, zip_code: "10001", zip_plus_four_code: "1234" }, first_name: "string", last_name: "string", organization_name: "string" } }],
|
587
544
|
# guarantor: { phone_numbers: [{ number: "1234567890", type: HOME }], phone_consent: true, email: "johndoe@joincandidhealth.com", email_consent: true, first_name: "string", last_name: "string", external_id: "string", date_of_birth: DateTime.parse(2023-01-15), address: { address_1: "123 Main St", address_2: "Apt 1", city: "New York", state: NY, zip_code: "10001", zip_plus_four_code: "1234" } },
|
588
545
|
# 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 }] },
|
589
546
|
# tag_ids: ["string"],
|
@@ -826,7 +783,7 @@ module CandidApiClient
|
|
826
783
|
# date_of_service: DateTime.parse(2023-01-15),
|
827
784
|
# diagnosis_ids: ["d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"],
|
828
785
|
# tag_ids: ["string"],
|
829
|
-
# clinical_notes: [{ category: CLINICAL, notes: [{
|
786
|
+
# clinical_notes: [{ category: CLINICAL, notes: [{ text: "string", author_name: "string", author_npi: "string", timestamp: DateTime.parse(2024-01-15T09:30:00.000Z) }] }],
|
830
787
|
# 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" },
|
831
788
|
# billable_status: BILLABLE,
|
832
789
|
# responsible_party: INSURANCE_PAY,
|
@@ -1120,6 +1077,7 @@ module CandidApiClient
|
|
1120
1077
|
# * :phone_numbers (Array<CandidApiClient::Commons::Types::PhoneNumber>)
|
1121
1078
|
# * :phone_consent (Boolean)
|
1122
1079
|
# * :email (String)
|
1080
|
+
# * :non_insurance_payers (Array<String>)
|
1123
1081
|
# * :email_consent (Boolean)
|
1124
1082
|
# * :external_id (String)
|
1125
1083
|
# * :date_of_birth (Date)
|
@@ -1191,9 +1149,7 @@ module CandidApiClient
|
|
1191
1149
|
# this loop to
|
1192
1150
|
# indicate the initial referral from the primary care provider or whatever
|
1193
1151
|
# provider wrote the initial referral for this patient's episode of care being
|
1194
|
-
# billed/reported in this transaction.
|
1195
|
-
# Information in Loop ID-2310 applies to the entire claim unless overridden on a
|
1196
|
-
# service line by the presence of Loop ID-2420 with the same value in NM101.Request of type CandidApiClient::EncounterProviders::V2::Types::InitialReferringProvider, as a Hash
|
1152
|
+
# billed/reported in this transaction.Request of type CandidApiClient::EncounterProviders::V2::Types::InitialReferringProvider, as a Hash
|
1197
1153
|
# * :npi (String)
|
1198
1154
|
# * :taxonomy_code (String)
|
1199
1155
|
# * :address (Hash)
|
@@ -1208,9 +1164,7 @@ module CandidApiClient
|
|
1208
1164
|
# * :last_name (String)
|
1209
1165
|
# * :organization_name (String)
|
1210
1166
|
# @param supervising_provider [Hash] Required when the rendering provider is supervised by a physician. If not
|
1211
|
-
# required by this implementation guide, do not send.
|
1212
|
-
# Information in Loop ID-2310 applies to the entire claim unless overridden on a
|
1213
|
-
# service line by the presence of Loop ID-2420 with the same value in NM101.Request of type CandidApiClient::EncounterProviders::V2::Types::SupervisingProvider, as a Hash
|
1167
|
+
# required by this implementation guide, do not send.Request of type CandidApiClient::EncounterProviders::V2::Types::SupervisingProvider, as a Hash
|
1214
1168
|
# * :npi (String)
|
1215
1169
|
# * :taxonomy_code (String)
|
1216
1170
|
# * :address (Hash)
|
@@ -1342,46 +1296,6 @@ module CandidApiClient
|
|
1342
1296
|
# * :description (String)
|
1343
1297
|
# * :date_of_service (Date)
|
1344
1298
|
# * :end_date_of_service (Date)
|
1345
|
-
# * :referring_provider (Hash)
|
1346
|
-
# * :npi (String)
|
1347
|
-
# * :taxonomy_code (String)
|
1348
|
-
# * :address (Hash)
|
1349
|
-
# * :zip_plus_four_code (String)
|
1350
|
-
# * :address_1 (String)
|
1351
|
-
# * :address_2 (String)
|
1352
|
-
# * :city (String)
|
1353
|
-
# * :state (CandidApiClient::Commons::Types::State)
|
1354
|
-
# * :zip_code (String)
|
1355
|
-
# * :first_name (String)
|
1356
|
-
# * :last_name (String)
|
1357
|
-
# * :organization_name (String)
|
1358
|
-
# * :initial_referring_provider (Hash)
|
1359
|
-
# * :npi (String)
|
1360
|
-
# * :taxonomy_code (String)
|
1361
|
-
# * :address (Hash)
|
1362
|
-
# * :zip_plus_four_code (String)
|
1363
|
-
# * :address_1 (String)
|
1364
|
-
# * :address_2 (String)
|
1365
|
-
# * :city (String)
|
1366
|
-
# * :state (CandidApiClient::Commons::Types::State)
|
1367
|
-
# * :zip_code (String)
|
1368
|
-
# * :qualifier (CandidApiClient::Commons::Types::QualifierCode)
|
1369
|
-
# * :first_name (String)
|
1370
|
-
# * :last_name (String)
|
1371
|
-
# * :organization_name (String)
|
1372
|
-
# * :supervising_provider (Hash)
|
1373
|
-
# * :npi (String)
|
1374
|
-
# * :taxonomy_code (String)
|
1375
|
-
# * :address (Hash)
|
1376
|
-
# * :zip_plus_four_code (String)
|
1377
|
-
# * :address_1 (String)
|
1378
|
-
# * :address_2 (String)
|
1379
|
-
# * :city (String)
|
1380
|
-
# * :state (CandidApiClient::Commons::Types::State)
|
1381
|
-
# * :zip_code (String)
|
1382
|
-
# * :first_name (String)
|
1383
|
-
# * :last_name (String)
|
1384
|
-
# * :organization_name (String)
|
1385
1299
|
# * :ordering_provider (Hash)
|
1386
1300
|
# * :npi (String)
|
1387
1301
|
# * :taxonomy_code (String)
|
@@ -1431,7 +1345,7 @@ module CandidApiClient
|
|
1431
1345
|
# api.encounters.v_4.create(
|
1432
1346
|
# date_of_service: DateTime.parse(2023-01-15),
|
1433
1347
|
# end_date_of_service: DateTime.parse(2023-01-15),
|
1434
|
-
# patient: { phone_numbers: [{ number: "1234567890", type: HOME }], phone_consent: true, email: "johndoe@joincandidhealth.com", email_consent: true, external_id: "string", date_of_birth: DateTime.parse(2023-01-15), address: { address_1: "123 Main St", address_2: "Apt 1", city: "New York", state: NY, zip_code: "10001", zip_plus_four_code: "1234" }, first_name: "string", last_name: "string", gender: MALE },
|
1348
|
+
# patient: { phone_numbers: [{ number: "1234567890", type: HOME }], phone_consent: true, email: "johndoe@joincandidhealth.com", non_insurance_payers: ["d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"], email_consent: true, external_id: "string", date_of_birth: DateTime.parse(2023-01-15), address: { address_1: "123 Main St", address_2: "Apt 1", city: "New York", state: NY, zip_code: "10001", zip_plus_four_code: "1234" }, first_name: "string", last_name: "string", gender: MALE },
|
1435
1349
|
# billing_provider: { address: { address_1: "123 Main St", address_2: "Apt 1", city: "New York", state: NY, zip_code: "10001", zip_plus_four_code: "1234" }, tax_id: "string", npi: "string", taxonomy_code: "string", first_name: "string", last_name: "string", organization_name: "string" },
|
1436
1350
|
# rendering_provider: { address: { address_1: "123 Main St", address_2: "Apt 1", city: "New York", state: NY, zip_code: "10001", zip_plus_four_code: "1234" }, npi: "string", taxonomy_code: "string", first_name: "string", last_name: "string", organization_name: "string" },
|
1437
1351
|
# referring_provider: { npi: "string", taxonomy_code: "string", address: { address_1: "123 Main St", address_2: "Apt 1", city: "New York", state: NY, zip_code: "10001", zip_plus_four_code: "1234" }, first_name: "string", last_name: "string", organization_name: "string" },
|
@@ -1441,11 +1355,11 @@ module CandidApiClient
|
|
1441
1355
|
# subscriber_primary: { insurance_card: { member_id: "string", payer_name: "string", payer_id: "string", rx_bin: "string", rx_pcn: "string", image_url_front: "string", image_url_back: "string", emr_payer_crosswalk: HEALTHIE, group_number: "string", plan_name: "string", plan_type: SELF_PAY, insurance_type: C_01 }, patient_relationship_to_subscriber_code: SPOUSE, date_of_birth: DateTime.parse(2023-01-15), address: { address_1: "123 Main St", address_2: "Apt 1", city: "New York", state: NY, zip_code: "10001", zip_plus_four_code: "1234" }, first_name: "string", last_name: "string", gender: MALE },
|
1442
1356
|
# subscriber_secondary: { insurance_card: { member_id: "string", payer_name: "string", payer_id: "string", rx_bin: "string", rx_pcn: "string", image_url_front: "string", image_url_back: "string", emr_payer_crosswalk: HEALTHIE, group_number: "string", plan_name: "string", plan_type: SELF_PAY, insurance_type: C_01 }, patient_relationship_to_subscriber_code: SPOUSE, date_of_birth: DateTime.parse(2023-01-15), address: { address_1: "123 Main St", address_2: "Apt 1", city: "New York", state: NY, zip_code: "10001", zip_plus_four_code: "1234" }, first_name: "string", last_name: "string", gender: MALE },
|
1443
1357
|
# diagnoses: [{ name: "string", code_type: ABF, code: "string" }],
|
1444
|
-
# clinical_notes: [{ category: CLINICAL, notes: [{
|
1358
|
+
# clinical_notes: [{ category: CLINICAL, notes: [{ text: "string", author_name: "string", author_npi: "string", timestamp: DateTime.parse(2024-01-15T09:30:00.000Z) }] }],
|
1445
1359
|
# billing_notes: [{ text: "string" }],
|
1446
1360
|
# place_of_service_code: PHARMACY,
|
1447
1361
|
# patient_histories: [{ category: PRESENT_ILLNESS, questions: [{ id: "6E7FBCE4-A8EA-46D0-A8D8-FF83CA3BB176", text: "Do you have any allergies?", responses: [{ response: "No allergies", follow_ups: [{ id: "4F3D57F9-AC94-49D6-87E4-E804B709917A", text: "Do you have any allergies?", response: "No allergies" }] }] }] }],
|
1448
|
-
# service_lines: [{ modifiers: [TWENTY_TWO], procedure_code: "string", quantity: "string", units: MJ, charge_amount_cents: 1, diagnosis_pointers: [1], drug_identification: {
|
1362
|
+
# service_lines: [{ modifiers: [TWENTY_TWO], procedure_code: "string", quantity: "string", units: MJ, charge_amount_cents: 1, diagnosis_pointers: [1], drug_identification: { service_id_qualifier: EAN_UCC_13, national_drug_code: "string", national_drug_unit_count: "string", measurement_unit_code: MILLILITERS, link_sequence_number: "string", pharmacy_prescription_number: "string", conversion_formula: "string" }, place_of_service_code: PHARMACY, description: "string", date_of_service: DateTime.parse(2023-01-15), end_date_of_service: DateTime.parse(2023-01-15), ordering_provider: { npi: "string", taxonomy_code: "string", address: { address_1: "123 Main St", address_2: "Apt 1", city: "New York", state: NY, zip_code: "10001", zip_plus_four_code: "1234" }, first_name: "string", last_name: "string", organization_name: "string" } }],
|
1449
1363
|
# guarantor: { phone_numbers: [{ number: "1234567890", type: HOME }], phone_consent: true, email: "johndoe@joincandidhealth.com", email_consent: true, first_name: "string", last_name: "string", external_id: "string", date_of_birth: DateTime.parse(2023-01-15), address: { address_1: "123 Main St", address_2: "Apt 1", city: "New York", state: NY, zip_code: "10001", zip_plus_four_code: "1234" } },
|
1450
1364
|
# 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 }] },
|
1451
1365
|
# tag_ids: ["string"],
|
@@ -1690,7 +1604,7 @@ module CandidApiClient
|
|
1690
1604
|
# date_of_service: DateTime.parse(2023-01-15),
|
1691
1605
|
# diagnosis_ids: ["d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"],
|
1692
1606
|
# tag_ids: ["string"],
|
1693
|
-
# clinical_notes: [{ category: CLINICAL, notes: [{
|
1607
|
+
# clinical_notes: [{ category: CLINICAL, notes: [{ text: "string", author_name: "string", author_npi: "string", timestamp: DateTime.parse(2024-01-15T09:30:00.000Z) }] }],
|
1694
1608
|
# 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" },
|
1695
1609
|
# billable_status: BILLABLE,
|
1696
1610
|
# responsible_party: INSURANCE_PAY,
|
@@ -49,7 +49,7 @@ module CandidApiClient
|
|
49
49
|
# @return [CandidApiClient::ExpectedNetworkStatus::V2::Types::ExpectedNetworkStatusResponseV2]
|
50
50
|
# @example
|
51
51
|
# api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
|
52
|
-
# api.expected_network_status.v_2.compute_for_rendering_provider(rendering_provider_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", request: { service_type: NEW_PATIENT_VIDEO_APPT, place_of_service_code: PHARMACY, subscriber_information: {
|
52
|
+
# api.expected_network_status.v_2.compute_for_rendering_provider(rendering_provider_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", request: { service_type: NEW_PATIENT_VIDEO_APPT, place_of_service_code: PHARMACY, subscriber_information: { payer_uuid: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", member_id: "string", insurance_type: { line_of_business: MEDICARE } }, patient_address: { address_1: "123 Main St", address_2: "Apt 1", city: "New York", state: NY, zip_code: "10001", zip_plus_four_code: "1234" }, billing_provider_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", organization_service_facility_id: "30F55EE6-8C0E-43FC-A7FC-DAC00D5BF569", date_of_service: DateTime.parse(2023-01-15) })
|
53
53
|
def compute_for_rendering_provider(rendering_provider_id:, request:, request_options: nil)
|
54
54
|
response = @request_client.conn.post do |req|
|
55
55
|
req.options.timeout = request_options.timeout_in_seconds unless request_options&.timeout_in_seconds.nil?
|
@@ -94,7 +94,7 @@ module CandidApiClient
|
|
94
94
|
# @return [CandidApiClient::ExpectedNetworkStatus::V2::Types::ComputeAllInNetworkProvidersResponse]
|
95
95
|
# @example
|
96
96
|
# api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
|
97
|
-
# api.expected_network_status.v_2.compute_all_in_network_providers(request: { service_type: NEW_PATIENT_VIDEO_APPT, place_of_service_code: PHARMACY, subscriber_information: {
|
97
|
+
# api.expected_network_status.v_2.compute_all_in_network_providers(request: { service_type: NEW_PATIENT_VIDEO_APPT, place_of_service_code: PHARMACY, subscriber_information: { payer_uuid: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", member_id: "string", insurance_type: { line_of_business: MEDICARE } }, patient_address: { address_1: "123 Main St", address_2: "Apt 1", city: "New York", state: NY, zip_code: "10001", zip_plus_four_code: "1234" }, billing_provider_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", organization_service_facility_id: "30F55EE6-8C0E-43FC-A7FC-DAC00D5BF569", date_of_service: DateTime.parse(2023-01-15) })
|
98
98
|
def compute_all_in_network_providers(request:, request_options: nil)
|
99
99
|
response = @request_client.conn.post do |req|
|
100
100
|
req.options.timeout = request_options.timeout_in_seconds unless request_options&.timeout_in_seconds.nil?
|
@@ -151,7 +151,7 @@ module CandidApiClient
|
|
151
151
|
# @return [CandidApiClient::ExpectedNetworkStatus::V2::Types::ExpectedNetworkStatusResponseV2]
|
152
152
|
# @example
|
153
153
|
# api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
|
154
|
-
# api.expected_network_status.v_2.compute_for_rendering_provider(rendering_provider_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", request: { service_type: NEW_PATIENT_VIDEO_APPT, place_of_service_code: PHARMACY, subscriber_information: {
|
154
|
+
# api.expected_network_status.v_2.compute_for_rendering_provider(rendering_provider_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", request: { service_type: NEW_PATIENT_VIDEO_APPT, place_of_service_code: PHARMACY, subscriber_information: { payer_uuid: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", member_id: "string", insurance_type: { line_of_business: MEDICARE } }, patient_address: { address_1: "123 Main St", address_2: "Apt 1", city: "New York", state: NY, zip_code: "10001", zip_plus_four_code: "1234" }, billing_provider_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", organization_service_facility_id: "30F55EE6-8C0E-43FC-A7FC-DAC00D5BF569", date_of_service: DateTime.parse(2023-01-15) })
|
155
155
|
def compute_for_rendering_provider(rendering_provider_id:, request:, request_options: nil)
|
156
156
|
Async do
|
157
157
|
response = @request_client.conn.post do |req|
|
@@ -198,7 +198,7 @@ module CandidApiClient
|
|
198
198
|
# @return [CandidApiClient::ExpectedNetworkStatus::V2::Types::ComputeAllInNetworkProvidersResponse]
|
199
199
|
# @example
|
200
200
|
# api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
|
201
|
-
# api.expected_network_status.v_2.compute_all_in_network_providers(request: { service_type: NEW_PATIENT_VIDEO_APPT, place_of_service_code: PHARMACY, subscriber_information: {
|
201
|
+
# api.expected_network_status.v_2.compute_all_in_network_providers(request: { service_type: NEW_PATIENT_VIDEO_APPT, place_of_service_code: PHARMACY, subscriber_information: { payer_uuid: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", member_id: "string", insurance_type: { line_of_business: MEDICARE } }, patient_address: { address_1: "123 Main St", address_2: "Apt 1", city: "New York", state: NY, zip_code: "10001", zip_plus_four_code: "1234" }, billing_provider_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", organization_service_facility_id: "30F55EE6-8C0E-43FC-A7FC-DAC00D5BF569", date_of_service: DateTime.parse(2023-01-15) })
|
202
202
|
def compute_all_in_network_providers(request:, request_options: nil)
|
203
203
|
Async do
|
204
204
|
response = @request_client.conn.post do |req|
|
@@ -1,6 +1,7 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
3
|
require "json"
|
4
|
+
require_relative "appointment_by_id_and_patient_external_id"
|
4
5
|
|
5
6
|
module CandidApiClient
|
6
7
|
module Financials
|
@@ -40,8 +41,8 @@ module CandidApiClient
|
|
40
41
|
json_object.value
|
41
42
|
when "billing_provider_by_id"
|
42
43
|
json_object.value
|
43
|
-
when "
|
44
|
-
json_object
|
44
|
+
when "appointment_by_id_and_patient_external_id"
|
45
|
+
CandidApiClient::Financials::Types::AppointmentByIdAndPatientExternalId.from_json(json_object: json_object)
|
45
46
|
when "unattributed"
|
46
47
|
nil
|
47
48
|
else
|
@@ -63,8 +64,8 @@ module CandidApiClient
|
|
63
64
|
{ "type": @discriminant, "value": @member }.to_json
|
64
65
|
when "billing_provider_by_id"
|
65
66
|
{ "type": @discriminant, "value": @member }.to_json
|
66
|
-
when "
|
67
|
-
{
|
67
|
+
when "appointment_by_id_and_patient_external_id"
|
68
|
+
{ **@member.to_json, type: @discriminant }.to_json
|
68
69
|
when "unattributed"
|
69
70
|
{ type: @discriminant }.to_json
|
70
71
|
else
|
@@ -89,8 +90,8 @@ module CandidApiClient
|
|
89
90
|
obj.is_a?(String) != false || raise("Passed value for field obj is not the expected type, validation failed.")
|
90
91
|
when "billing_provider_by_id"
|
91
92
|
obj.is_a?(String) != false || raise("Passed value for field obj is not the expected type, validation failed.")
|
92
|
-
when "
|
93
|
-
|
93
|
+
when "appointment_by_id_and_patient_external_id"
|
94
|
+
CandidApiClient::Financials::Types::AppointmentByIdAndPatientExternalId.validate_raw(obj: obj)
|
94
95
|
when "unattributed"
|
95
96
|
# noop
|
96
97
|
else
|
@@ -130,10 +131,10 @@ module CandidApiClient
|
|
130
131
|
new(member: member, discriminant: "billing_provider_by_id")
|
131
132
|
end
|
132
133
|
|
133
|
-
# @param member [
|
134
|
+
# @param member [CandidApiClient::Financials::Types::AppointmentByIdAndPatientExternalId]
|
134
135
|
# @return [CandidApiClient::Financials::Types::AllocationTargetCreate]
|
135
|
-
def self.
|
136
|
-
new(member: member, discriminant: "
|
136
|
+
def self.appointment_by_id_and_patient_external_id(member:)
|
137
|
+
new(member: member, discriminant: "appointment_by_id_and_patient_external_id")
|
137
138
|
end
|
138
139
|
|
139
140
|
# @return [CandidApiClient::Financials::Types::AllocationTargetCreate]
|
@@ -9,6 +9,8 @@ module CandidApiClient
|
|
9
9
|
class AppointmentAllocationTarget
|
10
10
|
# @return [String]
|
11
11
|
attr_reader :appointment_id
|
12
|
+
# @return [String]
|
13
|
+
attr_reader :patient_external_id
|
12
14
|
# @return [OpenStruct] Additional properties unmapped to the current class definition
|
13
15
|
attr_reader :additional_properties
|
14
16
|
# @return [Object]
|
@@ -18,12 +20,14 @@ module CandidApiClient
|
|
18
20
|
OMIT = Object.new
|
19
21
|
|
20
22
|
# @param appointment_id [String]
|
23
|
+
# @param patient_external_id [String]
|
21
24
|
# @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
|
22
25
|
# @return [CandidApiClient::Financials::Types::AppointmentAllocationTarget]
|
23
|
-
def initialize(appointment_id:, additional_properties: nil)
|
26
|
+
def initialize(appointment_id:, patient_external_id:, additional_properties: nil)
|
24
27
|
@appointment_id = appointment_id
|
28
|
+
@patient_external_id = patient_external_id
|
25
29
|
@additional_properties = additional_properties
|
26
|
-
@_field_set = { "appointment_id": appointment_id }
|
30
|
+
@_field_set = { "appointment_id": appointment_id, "patient_external_id": patient_external_id }
|
27
31
|
end
|
28
32
|
|
29
33
|
# Deserialize a JSON object to an instance of AppointmentAllocationTarget
|
@@ -33,7 +37,12 @@ module CandidApiClient
|
|
33
37
|
def self.from_json(json_object:)
|
34
38
|
struct = JSON.parse(json_object, object_class: OpenStruct)
|
35
39
|
appointment_id = struct["appointment_id"]
|
36
|
-
|
40
|
+
patient_external_id = struct["patient_external_id"]
|
41
|
+
new(
|
42
|
+
appointment_id: appointment_id,
|
43
|
+
patient_external_id: patient_external_id,
|
44
|
+
additional_properties: struct
|
45
|
+
)
|
37
46
|
end
|
38
47
|
|
39
48
|
# Serialize an instance of AppointmentAllocationTarget to a JSON object
|
@@ -51,6 +60,7 @@ module CandidApiClient
|
|
51
60
|
# @return [Void]
|
52
61
|
def self.validate_raw(obj:)
|
53
62
|
obj.appointment_id.is_a?(String) != false || raise("Passed value for field obj.appointment_id is not the expected type, validation failed.")
|
63
|
+
obj.patient_external_id.is_a?(String) != false || raise("Passed value for field obj.patient_external_id is not the expected type, validation failed.")
|
54
64
|
end
|
55
65
|
end
|
56
66
|
end
|
@@ -0,0 +1,68 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require "ostruct"
|
4
|
+
require "json"
|
5
|
+
|
6
|
+
module CandidApiClient
|
7
|
+
module Financials
|
8
|
+
module Types
|
9
|
+
class AppointmentByIdAndPatientExternalId
|
10
|
+
# @return [String]
|
11
|
+
attr_reader :appointment_id
|
12
|
+
# @return [String]
|
13
|
+
attr_reader :patient_external_id
|
14
|
+
# @return [OpenStruct] Additional properties unmapped to the current class definition
|
15
|
+
attr_reader :additional_properties
|
16
|
+
# @return [Object]
|
17
|
+
attr_reader :_field_set
|
18
|
+
protected :_field_set
|
19
|
+
|
20
|
+
OMIT = Object.new
|
21
|
+
|
22
|
+
# @param appointment_id [String]
|
23
|
+
# @param patient_external_id [String]
|
24
|
+
# @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
|
25
|
+
# @return [CandidApiClient::Financials::Types::AppointmentByIdAndPatientExternalId]
|
26
|
+
def initialize(appointment_id:, patient_external_id:, additional_properties: nil)
|
27
|
+
@appointment_id = appointment_id
|
28
|
+
@patient_external_id = patient_external_id
|
29
|
+
@additional_properties = additional_properties
|
30
|
+
@_field_set = { "appointment_id": appointment_id, "patient_external_id": patient_external_id }
|
31
|
+
end
|
32
|
+
|
33
|
+
# Deserialize a JSON object to an instance of AppointmentByIdAndPatientExternalId
|
34
|
+
#
|
35
|
+
# @param json_object [String]
|
36
|
+
# @return [CandidApiClient::Financials::Types::AppointmentByIdAndPatientExternalId]
|
37
|
+
def self.from_json(json_object:)
|
38
|
+
struct = JSON.parse(json_object, object_class: OpenStruct)
|
39
|
+
appointment_id = struct["appointment_id"]
|
40
|
+
patient_external_id = struct["patient_external_id"]
|
41
|
+
new(
|
42
|
+
appointment_id: appointment_id,
|
43
|
+
patient_external_id: patient_external_id,
|
44
|
+
additional_properties: struct
|
45
|
+
)
|
46
|
+
end
|
47
|
+
|
48
|
+
# Serialize an instance of AppointmentByIdAndPatientExternalId to a JSON object
|
49
|
+
#
|
50
|
+
# @return [String]
|
51
|
+
def to_json(*_args)
|
52
|
+
@_field_set&.to_json
|
53
|
+
end
|
54
|
+
|
55
|
+
# Leveraged for Union-type generation, validate_raw attempts to parse the given
|
56
|
+
# hash and check each fields type against the current object's property
|
57
|
+
# definitions.
|
58
|
+
#
|
59
|
+
# @param obj [Object]
|
60
|
+
# @return [Void]
|
61
|
+
def self.validate_raw(obj:)
|
62
|
+
obj.appointment_id.is_a?(String) != false || raise("Passed value for field obj.appointment_id is not the expected type, validation failed.")
|
63
|
+
obj.patient_external_id.is_a?(String) != false || raise("Passed value for field obj.patient_external_id is not the expected type, validation failed.")
|
64
|
+
end
|
65
|
+
end
|
66
|
+
end
|
67
|
+
end
|
68
|
+
end
|
@@ -41,7 +41,7 @@ module CandidApiClient
|
|
41
41
|
# @return [CandidApiClient::ImportInvoice::V1::Types::ImportInvoice]
|
42
42
|
# @example
|
43
43
|
# api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
|
44
|
-
# api.import_invoice.v_1.import_invoice(request: { external_payment_account_config_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", patient_external_id: "string", external_customer_identifier: "string", note: "string", due_date: DateTime.parse(2023-01-15), items: [{
|
44
|
+
# api.import_invoice.v_1.import_invoice(request: { external_payment_account_config_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", patient_external_id: "string", external_customer_identifier: "string", note: "string", due_date: DateTime.parse(2023-01-15), items: [{ amount_cents: 1 }], status: DRAFT, external_identifier: "string", customer_invoice_url: "string" })
|
45
45
|
def import_invoice(request:, request_options: nil)
|
46
46
|
response = @request_client.conn.post do |req|
|
47
47
|
req.options.timeout = request_options.timeout_in_seconds unless request_options&.timeout_in_seconds.nil?
|
@@ -154,7 +154,7 @@ module CandidApiClient
|
|
154
154
|
# @return [CandidApiClient::ImportInvoice::V1::Types::ImportInvoice]
|
155
155
|
# @example
|
156
156
|
# api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
|
157
|
-
# api.import_invoice.v_1.update(invoice_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", request: { customer_invoice_url: "string", status: DRAFT, note: "string", due_date: DateTime.parse(2023-01-15), items: { update_type: APPEND, items: [{
|
157
|
+
# api.import_invoice.v_1.update(invoice_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", request: { customer_invoice_url: "string", status: DRAFT, note: "string", due_date: DateTime.parse(2023-01-15), items: { update_type: APPEND, items: [{ amount_cents: 1 }] } })
|
158
158
|
def update(invoice_id:, request:, request_options: nil)
|
159
159
|
response = @request_client.conn.patch do |req|
|
160
160
|
req.options.timeout = request_options.timeout_in_seconds unless request_options&.timeout_in_seconds.nil?
|
@@ -199,7 +199,7 @@ module CandidApiClient
|
|
199
199
|
# @return [CandidApiClient::ImportInvoice::V1::Types::ImportInvoice]
|
200
200
|
# @example
|
201
201
|
# api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
|
202
|
-
# api.import_invoice.v_1.import_invoice(request: { external_payment_account_config_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", patient_external_id: "string", external_customer_identifier: "string", note: "string", due_date: DateTime.parse(2023-01-15), items: [{
|
202
|
+
# api.import_invoice.v_1.import_invoice(request: { external_payment_account_config_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", patient_external_id: "string", external_customer_identifier: "string", note: "string", due_date: DateTime.parse(2023-01-15), items: [{ amount_cents: 1 }], status: DRAFT, external_identifier: "string", customer_invoice_url: "string" })
|
203
203
|
def import_invoice(request:, request_options: nil)
|
204
204
|
Async do
|
205
205
|
response = @request_client.conn.post do |req|
|
@@ -318,7 +318,7 @@ module CandidApiClient
|
|
318
318
|
# @return [CandidApiClient::ImportInvoice::V1::Types::ImportInvoice]
|
319
319
|
# @example
|
320
320
|
# api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
|
321
|
-
# api.import_invoice.v_1.update(invoice_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", request: { customer_invoice_url: "string", status: DRAFT, note: "string", due_date: DateTime.parse(2023-01-15), items: { update_type: APPEND, items: [{
|
321
|
+
# api.import_invoice.v_1.update(invoice_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", request: { customer_invoice_url: "string", status: DRAFT, note: "string", due_date: DateTime.parse(2023-01-15), items: { update_type: APPEND, items: [{ amount_cents: 1 }] } })
|
322
322
|
def update(invoice_id:, request:, request_options: nil)
|
323
323
|
Async do
|
324
324
|
response = @request_client.conn.patch do |req|
|
@@ -1,6 +1,7 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
3
|
require_relative "../../commons/types/phone_number"
|
4
|
+
require_relative "../../non_insurance_payers/v_1/types/non_insurance_payer"
|
4
5
|
require "date"
|
5
6
|
require_relative "../../commons/types/street_address_short_zip"
|
6
7
|
require_relative "gender"
|
@@ -21,6 +22,8 @@ module CandidApiClient
|
|
21
22
|
attr_reader :email
|
22
23
|
# @return [Boolean]
|
23
24
|
attr_reader :email_consent
|
25
|
+
# @return [Array<CandidApiClient::NonInsurancePayers::V1::Types::NonInsurancePayer>]
|
26
|
+
attr_reader :non_insurance_payers
|
24
27
|
# @return [String] The ID used to identify this individual in your system. For example, your
|
25
28
|
# internal patient ID or an EHR patient ID.
|
26
29
|
attr_reader :external_id
|
@@ -48,6 +51,7 @@ module CandidApiClient
|
|
48
51
|
# @param phone_consent [Boolean]
|
49
52
|
# @param email [String]
|
50
53
|
# @param email_consent [Boolean]
|
54
|
+
# @param non_insurance_payers [Array<CandidApiClient::NonInsurancePayers::V1::Types::NonInsurancePayer>]
|
51
55
|
# @param external_id [String] The ID used to identify this individual in your system. For example, your
|
52
56
|
# internal patient ID or an EHR patient ID.
|
53
57
|
# @param date_of_birth [Date] Box 3 on the CMS-1500 claim form. The date format should be in ISO 8601 date;
|
@@ -58,13 +62,14 @@ module CandidApiClient
|
|
58
62
|
# @param gender [CandidApiClient::Individual::Types::Gender]
|
59
63
|
# @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
|
60
64
|
# @return [CandidApiClient::Individual::Types::Patient]
|
61
|
-
def initialize(individual_id:, phone_numbers:, phone_consent:, email_consent:,
|
62
|
-
address:, first_name:, last_name:, gender:, email: OMIT, additional_properties: nil)
|
65
|
+
def initialize(individual_id:, phone_numbers:, phone_consent:, email_consent:, non_insurance_payers:,
|
66
|
+
external_id:, date_of_birth:, address:, first_name:, last_name:, gender:, email: OMIT, additional_properties: nil)
|
63
67
|
@individual_id = individual_id
|
64
68
|
@phone_numbers = phone_numbers
|
65
69
|
@phone_consent = phone_consent
|
66
70
|
@email = email if email != OMIT
|
67
71
|
@email_consent = email_consent
|
72
|
+
@non_insurance_payers = non_insurance_payers
|
68
73
|
@external_id = external_id
|
69
74
|
@date_of_birth = date_of_birth
|
70
75
|
@address = address
|
@@ -78,6 +83,7 @@ module CandidApiClient
|
|
78
83
|
"phone_consent": phone_consent,
|
79
84
|
"email": email,
|
80
85
|
"email_consent": email_consent,
|
86
|
+
"non_insurance_payers": non_insurance_payers,
|
81
87
|
"external_id": external_id,
|
82
88
|
"date_of_birth": date_of_birth,
|
83
89
|
"address": address,
|
@@ -104,6 +110,10 @@ module CandidApiClient
|
|
104
110
|
phone_consent = struct["phone_consent"]
|
105
111
|
email = struct["email"]
|
106
112
|
email_consent = struct["email_consent"]
|
113
|
+
non_insurance_payers = parsed_json["non_insurance_payers"]&.map do |item|
|
114
|
+
item = item.to_json
|
115
|
+
CandidApiClient::NonInsurancePayers::V1::Types::NonInsurancePayer.from_json(json_object: item)
|
116
|
+
end
|
107
117
|
external_id = struct["external_id"]
|
108
118
|
date_of_birth = (Date.parse(parsed_json["date_of_birth"]) unless parsed_json["date_of_birth"].nil?)
|
109
119
|
if parsed_json["address"].nil?
|
@@ -121,6 +131,7 @@ module CandidApiClient
|
|
121
131
|
phone_consent: phone_consent,
|
122
132
|
email: email,
|
123
133
|
email_consent: email_consent,
|
134
|
+
non_insurance_payers: non_insurance_payers,
|
124
135
|
external_id: external_id,
|
125
136
|
date_of_birth: date_of_birth,
|
126
137
|
address: address,
|
@@ -150,6 +161,7 @@ module CandidApiClient
|
|
150
161
|
obj.phone_consent.is_a?(Boolean) != false || raise("Passed value for field obj.phone_consent is not the expected type, validation failed.")
|
151
162
|
obj.email&.is_a?(String) != false || raise("Passed value for field obj.email is not the expected type, validation failed.")
|
152
163
|
obj.email_consent.is_a?(Boolean) != false || raise("Passed value for field obj.email_consent is not the expected type, validation failed.")
|
164
|
+
obj.non_insurance_payers.is_a?(Array) != false || raise("Passed value for field obj.non_insurance_payers is not the expected type, validation failed.")
|
153
165
|
obj.external_id.is_a?(String) != false || raise("Passed value for field obj.external_id is not the expected type, validation failed.")
|
154
166
|
obj.date_of_birth.is_a?(Date) != false || raise("Passed value for field obj.date_of_birth is not the expected type, validation failed.")
|
155
167
|
CandidApiClient::Commons::Types::StreetAddressShortZip.validate_raw(obj: obj.address)
|