candidhealth 0.42.5 → 0.43.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/candidhealth/charge_capture/v_1/client.rb +18 -24
- data/lib/candidhealth/charge_capture/v_1/types/charge_capture.rb +8 -8
- data/lib/candidhealth/charge_capture/v_1/types/charge_capture_error.rb +21 -19
- data/lib/candidhealth/charge_capture_bundles/v_1/client.rb +85 -129
- data/lib/candidhealth/charge_capture_bundles/v_1/types/{charge_capture_bundle.rb → charge_capture_claim_creation.rb} +18 -30
- data/lib/candidhealth/charge_capture_bundles/v_1/types/{charge_capture_bundle_page.rb → charge_capture_claim_creation_page.rb} +9 -9
- data/lib/candidhealth/charge_capture_bundles/v_1/types/{charge_capture_bundle_sort_field.rb → charge_capture_claim_creation_sort_field.rb} +1 -1
- data/lib/candidhealth/charge_capture_bundles/v_1/types/{charge_capture_bundle_status.rb → charge_capture_claim_creation_status.rb} +1 -1
- data/lib/candidhealth/charge_capture_bundles/v_1/types/charge_capture_claim_creation_summary.rb +100 -0
- data/lib/candidhealth/encounter_attachments/client.rb +30 -0
- data/lib/candidhealth/encounter_attachments/v_1/client.rb +199 -0
- data/lib/candidhealth/encounter_attachments/v_1/types/base_attachment.rb +98 -0
- data/lib/candidhealth/encounter_attachments/v_1/types/encounter_attachment.rb +115 -0
- data/lib/candidhealth/encounter_attachments/v_1/types/encounter_attachment_type.rb +13 -0
- data/lib/candidhealth/encounter_providers/v_2/client.rb +16 -16
- data/lib/candidhealth/encounters/v_4/client.rb +20 -20
- data/lib/candidhealth/guarantor/v_1/client.rb +2 -2
- data/lib/candidhealth/service_lines/v_2/client.rb +2 -2
- data/lib/candidhealth.rb +7 -0
- data/lib/core/file_utilities.rb +26 -0
- data/lib/requests.rb +5 -2
- data/lib/types_export.rb +8 -6
- metadata +46 -7
- data/lib/candidhealth/charge_capture_bundles/v_1/types/charge_capture_bundle_summary.rb +0 -94
- data/lib/candidhealth/commons/types/not_implemented_error_message.rb +0 -60
@@ -43,7 +43,7 @@ module CandidApiClient
|
|
43
43
|
# @return [CandidApiClient::EncounterProviders::V2::Types::EncounterProvider]
|
44
44
|
# @example
|
45
45
|
# api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
|
46
|
-
# api.encounter_providers.v_2.update_referring_provider(encounter_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", request: {
|
46
|
+
# api.encounter_providers.v_2.update_referring_provider(encounter_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", request: { })
|
47
47
|
def update_referring_provider(encounter_id:, request:, request_options: nil)
|
48
48
|
response = @request_client.conn.patch do |req|
|
49
49
|
req.options.timeout = request_options.timeout_in_seconds unless request_options&.timeout_in_seconds.nil?
|
@@ -79,7 +79,7 @@ module CandidApiClient
|
|
79
79
|
# @return [CandidApiClient::EncounterProviders::V2::Types::EncounterProvider]
|
80
80
|
# @example
|
81
81
|
# api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
|
82
|
-
# api.encounter_providers.v_2.update_initial_referring_provider(encounter_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", request: {
|
82
|
+
# api.encounter_providers.v_2.update_initial_referring_provider(encounter_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", request: { })
|
83
83
|
def update_initial_referring_provider(encounter_id:, request:, request_options: nil)
|
84
84
|
response = @request_client.conn.patch do |req|
|
85
85
|
req.options.timeout = request_options.timeout_in_seconds unless request_options&.timeout_in_seconds.nil?
|
@@ -114,7 +114,7 @@ module CandidApiClient
|
|
114
114
|
# @return [CandidApiClient::EncounterProviders::V2::Types::EncounterProvider]
|
115
115
|
# @example
|
116
116
|
# api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
|
117
|
-
# api.encounter_providers.v_2.update_supervising_provider(encounter_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", request: {
|
117
|
+
# api.encounter_providers.v_2.update_supervising_provider(encounter_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", request: { })
|
118
118
|
def update_supervising_provider(encounter_id:, request:, request_options: nil)
|
119
119
|
response = @request_client.conn.patch do |req|
|
120
120
|
req.options.timeout = request_options.timeout_in_seconds unless request_options&.timeout_in_seconds.nil?
|
@@ -149,7 +149,7 @@ module CandidApiClient
|
|
149
149
|
# @return [CandidApiClient::EncounterProviders::V2::Types::EncounterProvider]
|
150
150
|
# @example
|
151
151
|
# api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
|
152
|
-
# api.encounter_providers.v_2.update_ordering_provider(service_line_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", request: { 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" }
|
152
|
+
# api.encounter_providers.v_2.update_ordering_provider(service_line_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", request: { 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" } })
|
153
153
|
def update_ordering_provider(service_line_id:, request:, request_options: nil)
|
154
154
|
response = @request_client.conn.patch do |req|
|
155
155
|
req.options.timeout = request_options.timeout_in_seconds unless request_options&.timeout_in_seconds.nil?
|
@@ -184,7 +184,7 @@ module CandidApiClient
|
|
184
184
|
# @return [CandidApiClient::EncounterProviders::V2::Types::EncounterProvider]
|
185
185
|
# @example
|
186
186
|
# api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
|
187
|
-
# api.encounter_providers.v_2.create_referring_provider(encounter_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", request: { 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" }
|
187
|
+
# api.encounter_providers.v_2.create_referring_provider(encounter_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", request: { 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" } })
|
188
188
|
def create_referring_provider(encounter_id:, request:, request_options: nil)
|
189
189
|
response = @request_client.conn.post do |req|
|
190
190
|
req.options.timeout = request_options.timeout_in_seconds unless request_options&.timeout_in_seconds.nil?
|
@@ -220,7 +220,7 @@ module CandidApiClient
|
|
220
220
|
# @return [CandidApiClient::EncounterProviders::V2::Types::EncounterProvider]
|
221
221
|
# @example
|
222
222
|
# api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
|
223
|
-
# api.encounter_providers.v_2.create_initial_referring_provider(encounter_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", request: { 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" }, qualifier: DQ
|
223
|
+
# api.encounter_providers.v_2.create_initial_referring_provider(encounter_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", request: { 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" }, qualifier: DQ })
|
224
224
|
def create_initial_referring_provider(encounter_id:, request:, request_options: nil)
|
225
225
|
response = @request_client.conn.post do |req|
|
226
226
|
req.options.timeout = request_options.timeout_in_seconds unless request_options&.timeout_in_seconds.nil?
|
@@ -255,7 +255,7 @@ module CandidApiClient
|
|
255
255
|
# @return [CandidApiClient::EncounterProviders::V2::Types::EncounterProvider]
|
256
256
|
# @example
|
257
257
|
# api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
|
258
|
-
# api.encounter_providers.v_2.create_supervising_provider(encounter_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", request: { 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" }
|
258
|
+
# api.encounter_providers.v_2.create_supervising_provider(encounter_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", request: { 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" } })
|
259
259
|
def create_supervising_provider(encounter_id:, request:, request_options: nil)
|
260
260
|
response = @request_client.conn.post do |req|
|
261
261
|
req.options.timeout = request_options.timeout_in_seconds unless request_options&.timeout_in_seconds.nil?
|
@@ -290,7 +290,7 @@ module CandidApiClient
|
|
290
290
|
# @return [CandidApiClient::EncounterProviders::V2::Types::EncounterProvider]
|
291
291
|
# @example
|
292
292
|
# api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
|
293
|
-
# api.encounter_providers.v_2.create_ordering_provider(service_line_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", request: { 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" }
|
293
|
+
# api.encounter_providers.v_2.create_ordering_provider(service_line_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", request: { 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" } })
|
294
294
|
def create_ordering_provider(service_line_id:, request:, request_options: nil)
|
295
295
|
response = @request_client.conn.post do |req|
|
296
296
|
req.options.timeout = request_options.timeout_in_seconds unless request_options&.timeout_in_seconds.nil?
|
@@ -416,7 +416,7 @@ module CandidApiClient
|
|
416
416
|
# @return [CandidApiClient::EncounterProviders::V2::Types::EncounterProvider]
|
417
417
|
# @example
|
418
418
|
# api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
|
419
|
-
# api.encounter_providers.v_2.update_referring_provider(encounter_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", request: {
|
419
|
+
# api.encounter_providers.v_2.update_referring_provider(encounter_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", request: { })
|
420
420
|
def update_referring_provider(encounter_id:, request:, request_options: nil)
|
421
421
|
Async do
|
422
422
|
response = @request_client.conn.patch do |req|
|
@@ -454,7 +454,7 @@ module CandidApiClient
|
|
454
454
|
# @return [CandidApiClient::EncounterProviders::V2::Types::EncounterProvider]
|
455
455
|
# @example
|
456
456
|
# api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
|
457
|
-
# api.encounter_providers.v_2.update_initial_referring_provider(encounter_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", request: {
|
457
|
+
# api.encounter_providers.v_2.update_initial_referring_provider(encounter_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", request: { })
|
458
458
|
def update_initial_referring_provider(encounter_id:, request:, request_options: nil)
|
459
459
|
Async do
|
460
460
|
response = @request_client.conn.patch do |req|
|
@@ -491,7 +491,7 @@ module CandidApiClient
|
|
491
491
|
# @return [CandidApiClient::EncounterProviders::V2::Types::EncounterProvider]
|
492
492
|
# @example
|
493
493
|
# api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
|
494
|
-
# api.encounter_providers.v_2.update_supervising_provider(encounter_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", request: {
|
494
|
+
# api.encounter_providers.v_2.update_supervising_provider(encounter_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", request: { })
|
495
495
|
def update_supervising_provider(encounter_id:, request:, request_options: nil)
|
496
496
|
Async do
|
497
497
|
response = @request_client.conn.patch do |req|
|
@@ -528,7 +528,7 @@ module CandidApiClient
|
|
528
528
|
# @return [CandidApiClient::EncounterProviders::V2::Types::EncounterProvider]
|
529
529
|
# @example
|
530
530
|
# api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
|
531
|
-
# api.encounter_providers.v_2.update_ordering_provider(service_line_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", request: { 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" }
|
531
|
+
# api.encounter_providers.v_2.update_ordering_provider(service_line_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", request: { 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" } })
|
532
532
|
def update_ordering_provider(service_line_id:, request:, request_options: nil)
|
533
533
|
Async do
|
534
534
|
response = @request_client.conn.patch do |req|
|
@@ -565,7 +565,7 @@ module CandidApiClient
|
|
565
565
|
# @return [CandidApiClient::EncounterProviders::V2::Types::EncounterProvider]
|
566
566
|
# @example
|
567
567
|
# api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
|
568
|
-
# api.encounter_providers.v_2.create_referring_provider(encounter_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", request: { 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" }
|
568
|
+
# api.encounter_providers.v_2.create_referring_provider(encounter_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", request: { 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" } })
|
569
569
|
def create_referring_provider(encounter_id:, request:, request_options: nil)
|
570
570
|
Async do
|
571
571
|
response = @request_client.conn.post do |req|
|
@@ -603,7 +603,7 @@ module CandidApiClient
|
|
603
603
|
# @return [CandidApiClient::EncounterProviders::V2::Types::EncounterProvider]
|
604
604
|
# @example
|
605
605
|
# api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
|
606
|
-
# api.encounter_providers.v_2.create_initial_referring_provider(encounter_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", request: { 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" }, qualifier: DQ
|
606
|
+
# api.encounter_providers.v_2.create_initial_referring_provider(encounter_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", request: { 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" }, qualifier: DQ })
|
607
607
|
def create_initial_referring_provider(encounter_id:, request:, request_options: nil)
|
608
608
|
Async do
|
609
609
|
response = @request_client.conn.post do |req|
|
@@ -640,7 +640,7 @@ module CandidApiClient
|
|
640
640
|
# @return [CandidApiClient::EncounterProviders::V2::Types::EncounterProvider]
|
641
641
|
# @example
|
642
642
|
# api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
|
643
|
-
# api.encounter_providers.v_2.create_supervising_provider(encounter_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", request: { 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" }
|
643
|
+
# api.encounter_providers.v_2.create_supervising_provider(encounter_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", request: { 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" } })
|
644
644
|
def create_supervising_provider(encounter_id:, request:, request_options: nil)
|
645
645
|
Async do
|
646
646
|
response = @request_client.conn.post do |req|
|
@@ -677,7 +677,7 @@ module CandidApiClient
|
|
677
677
|
# @return [CandidApiClient::EncounterProviders::V2::Types::EncounterProvider]
|
678
678
|
# @example
|
679
679
|
# api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
|
680
|
-
# api.encounter_providers.v_2.create_ordering_provider(service_line_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", request: { 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" }
|
680
|
+
# api.encounter_providers.v_2.create_ordering_provider(service_line_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", request: { 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" } })
|
681
681
|
def create_ordering_provider(service_line_id:, request:, request_options: nil)
|
682
682
|
Async do
|
683
683
|
response = @request_client.conn.post do |req|
|
@@ -582,15 +582,15 @@ module CandidApiClient
|
|
582
582
|
# api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
|
583
583
|
# api.encounters.v_4.create(
|
584
584
|
# patient: { phone_numbers: [{ number: "1234567890", type: HOME }], phone_consent: true, email: "johndoe@joincandidhealth.com", non_insurance_payers: ["d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"], non_insurance_payers_info: [{ non_insurance_payer_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", member_id: "string", clinical_trial_info: [{ clinical_trial_id: "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 },
|
585
|
-
# 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", provider_commercial_license_type: LICENSED_CLINICAL_SOCIAL_WORKER
|
586
|
-
# rendering_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" }
|
587
|
-
# 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" }
|
588
|
-
# initial_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" }, qualifier: DQ
|
589
|
-
# supervising_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" }
|
585
|
+
# 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", provider_commercial_license_type: LICENSED_CLINICAL_SOCIAL_WORKER },
|
586
|
+
# rendering_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" } },
|
587
|
+
# 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" } },
|
588
|
+
# initial_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" }, qualifier: DQ },
|
589
|
+
# supervising_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" } },
|
590
590
|
# service_facility: { organization_name: "string", npi: "string", address: { address_1: "123 Main St", address_2: "Apt 1", city: "New York", state: NY, zip_code: "10001", zip_plus_four_code: "1234" }, secondary_identification: "string" },
|
591
|
-
# subscriber_primary: { insurance_card: { member_id: "string", payer_name: "string", payer_id: "string"
|
592
|
-
# subscriber_secondary: { insurance_card: { member_id: "string", payer_name: "string", payer_id: "string"
|
593
|
-
# subscriber_tertiary: { insurance_card: { member_id: "string", payer_name: "string", payer_id: "string"
|
591
|
+
# 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 },
|
592
|
+
# 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 },
|
593
|
+
# 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 },
|
594
594
|
# prior_authorization_number: "string",
|
595
595
|
# responsible_party: INSURANCE_PAY,
|
596
596
|
# diagnoses: [{ name: "string", code_type: ABF, code: "string" }],
|
@@ -604,7 +604,7 @@ module CandidApiClient
|
|
604
604
|
# tag_ids: ["string"],
|
605
605
|
# schema_instances: [{ schema_id: "ec096b13-f80a-471d-aaeb-54b021c9d582", content: { "provider_category": "internist", "is_urgent_care": true, "bmi": 24.2, "age": 38 } }],
|
606
606
|
# referral_number: "string",
|
607
|
-
# epsdt_referral: { condition_indicator_1: AV
|
607
|
+
# epsdt_referral: { condition_indicator_1: AV },
|
608
608
|
# claim_supplemental_information: [{ attachment_report_type_code: C_03, attachment_transmission_code: CBM }]
|
609
609
|
# )
|
610
610
|
def create(external_id:, patient_authorized_release:, benefits_assigned_to_provider:,
|
@@ -811,7 +811,7 @@ module CandidApiClient
|
|
811
811
|
# @return [CandidApiClient::Encounters::V4::Types::Encounter]
|
812
812
|
# @example
|
813
813
|
# api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
|
814
|
-
# api.encounters.v_4.create_from_pre_encounter_patient(request: { pre_encounter_patient_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", pre_encounter_appointment_ids: ["d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"], 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", provider_commercial_license_type: LICENSED_CLINICAL_SOCIAL_WORKER
|
814
|
+
# api.encounters.v_4.create_from_pre_encounter_patient(request: { pre_encounter_patient_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", pre_encounter_appointment_ids: ["d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"], 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", provider_commercial_license_type: LICENSED_CLINICAL_SOCIAL_WORKER }, rendering_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" } }, initial_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" }, qualifier: DQ }, supervising_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" } }, service_facility: { organization_name: "string", npi: "string", address: { address_1: "123 Main St", address_2: "Apt 1", city: "New York", state: NY, zip_code: "10001", zip_plus_four_code: "1234" }, secondary_identification: "string" }, diagnoses: [{ name: "string", code_type: ABF, code: "string" }], clinical_notes: [{ category: CLINICAL, notes: }], billing_notes: [{ text: "string" }], place_of_service_code: PHARMACY, 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" }] }] }] }], service_lines: [{ procedure_code: "string", quantity: "string", units: MJ, diagnosis_pointers: }], 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 }] }, tag_ids: ["string"], schema_instances: [{ schema_id: "ec096b13-f80a-471d-aaeb-54b021c9d582", content: { "provider_category": "internist", "is_urgent_care": true, "bmi": 24.2, "age": 38 } }], external_id: "string", date_of_service: DateTime.parse(2023-01-15), end_date_of_service: DateTime.parse(2023-01-15), patient_authorized_release: true, benefits_assigned_to_provider: true, provider_accepts_assignment: true, appointment_type: "string", existing_medications: [{ name: "Lisinopril", rx_cui: "860975", dosage: "10mg", dosage_form: "Tablet", frequency: "Once Daily", as_needed: true }], 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 }, interventions: [{ name: "Physical Therapy Session", category: LIFESTYLE, description: "A session focused on improving muscular strength, flexibility, and range of motion post-injury.", medication: { name: "Lisinopril", rx_cui: "860975", dosage: "10mg", dosage_form: "Tablet", frequency: "Once Daily", as_needed: true }, labs: [{ name: "Genetic Health Labs", code: "GH12345", code_type: QUEST }] }], 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" }, synchronicity: SYNCHRONOUS, billable_status: BILLABLE, 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 })
|
815
815
|
def create_from_pre_encounter_patient(request:, request_options: nil)
|
816
816
|
response = @request_client.conn.post do |req|
|
817
817
|
req.options.timeout = request_options.timeout_in_seconds unless request_options&.timeout_in_seconds.nil?
|
@@ -1792,15 +1792,15 @@ module CandidApiClient
|
|
1792
1792
|
# api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
|
1793
1793
|
# api.encounters.v_4.create(
|
1794
1794
|
# patient: { phone_numbers: [{ number: "1234567890", type: HOME }], phone_consent: true, email: "johndoe@joincandidhealth.com", non_insurance_payers: ["d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"], non_insurance_payers_info: [{ non_insurance_payer_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", member_id: "string", clinical_trial_info: [{ clinical_trial_id: "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 },
|
1795
|
-
# 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", provider_commercial_license_type: LICENSED_CLINICAL_SOCIAL_WORKER
|
1796
|
-
# rendering_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" }
|
1797
|
-
# 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" }
|
1798
|
-
# initial_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" }, qualifier: DQ
|
1799
|
-
# supervising_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" }
|
1795
|
+
# 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", provider_commercial_license_type: LICENSED_CLINICAL_SOCIAL_WORKER },
|
1796
|
+
# rendering_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" } },
|
1797
|
+
# 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" } },
|
1798
|
+
# initial_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" }, qualifier: DQ },
|
1799
|
+
# supervising_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" } },
|
1800
1800
|
# service_facility: { organization_name: "string", npi: "string", address: { address_1: "123 Main St", address_2: "Apt 1", city: "New York", state: NY, zip_code: "10001", zip_plus_four_code: "1234" }, secondary_identification: "string" },
|
1801
|
-
# subscriber_primary: { insurance_card: { member_id: "string", payer_name: "string", payer_id: "string"
|
1802
|
-
# subscriber_secondary: { insurance_card: { member_id: "string", payer_name: "string", payer_id: "string"
|
1803
|
-
# subscriber_tertiary: { insurance_card: { member_id: "string", payer_name: "string", payer_id: "string"
|
1801
|
+
# 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 },
|
1802
|
+
# 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 },
|
1803
|
+
# 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 },
|
1804
1804
|
# prior_authorization_number: "string",
|
1805
1805
|
# responsible_party: INSURANCE_PAY,
|
1806
1806
|
# diagnoses: [{ name: "string", code_type: ABF, code: "string" }],
|
@@ -1814,7 +1814,7 @@ module CandidApiClient
|
|
1814
1814
|
# tag_ids: ["string"],
|
1815
1815
|
# schema_instances: [{ schema_id: "ec096b13-f80a-471d-aaeb-54b021c9d582", content: { "provider_category": "internist", "is_urgent_care": true, "bmi": 24.2, "age": 38 } }],
|
1816
1816
|
# referral_number: "string",
|
1817
|
-
# epsdt_referral: { condition_indicator_1: AV
|
1817
|
+
# epsdt_referral: { condition_indicator_1: AV },
|
1818
1818
|
# claim_supplemental_information: [{ attachment_report_type_code: C_03, attachment_transmission_code: CBM }]
|
1819
1819
|
# )
|
1820
1820
|
def create(external_id:, patient_authorized_release:, benefits_assigned_to_provider:,
|
@@ -2023,7 +2023,7 @@ module CandidApiClient
|
|
2023
2023
|
# @return [CandidApiClient::Encounters::V4::Types::Encounter]
|
2024
2024
|
# @example
|
2025
2025
|
# api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
|
2026
|
-
# api.encounters.v_4.create_from_pre_encounter_patient(request: { pre_encounter_patient_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", pre_encounter_appointment_ids: ["d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"], 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", provider_commercial_license_type: LICENSED_CLINICAL_SOCIAL_WORKER
|
2026
|
+
# api.encounters.v_4.create_from_pre_encounter_patient(request: { pre_encounter_patient_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", pre_encounter_appointment_ids: ["d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"], 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", provider_commercial_license_type: LICENSED_CLINICAL_SOCIAL_WORKER }, rendering_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" } }, initial_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" }, qualifier: DQ }, supervising_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" } }, service_facility: { organization_name: "string", npi: "string", address: { address_1: "123 Main St", address_2: "Apt 1", city: "New York", state: NY, zip_code: "10001", zip_plus_four_code: "1234" }, secondary_identification: "string" }, diagnoses: [{ name: "string", code_type: ABF, code: "string" }], clinical_notes: [{ category: CLINICAL, notes: }], billing_notes: [{ text: "string" }], place_of_service_code: PHARMACY, 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" }] }] }] }], service_lines: [{ procedure_code: "string", quantity: "string", units: MJ, diagnosis_pointers: }], 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 }] }, tag_ids: ["string"], schema_instances: [{ schema_id: "ec096b13-f80a-471d-aaeb-54b021c9d582", content: { "provider_category": "internist", "is_urgent_care": true, "bmi": 24.2, "age": 38 } }], external_id: "string", date_of_service: DateTime.parse(2023-01-15), end_date_of_service: DateTime.parse(2023-01-15), patient_authorized_release: true, benefits_assigned_to_provider: true, provider_accepts_assignment: true, appointment_type: "string", existing_medications: [{ name: "Lisinopril", rx_cui: "860975", dosage: "10mg", dosage_form: "Tablet", frequency: "Once Daily", as_needed: true }], 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 }, interventions: [{ name: "Physical Therapy Session", category: LIFESTYLE, description: "A session focused on improving muscular strength, flexibility, and range of motion post-injury.", medication: { name: "Lisinopril", rx_cui: "860975", dosage: "10mg", dosage_form: "Tablet", frequency: "Once Daily", as_needed: true }, labs: [{ name: "Genetic Health Labs", code: "GH12345", code_type: QUEST }] }], 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" }, synchronicity: SYNCHRONOUS, billable_status: BILLABLE, 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 })
|
2027
2027
|
def create_from_pre_encounter_patient(request:, request_options: nil)
|
2028
2028
|
Async do
|
2029
2029
|
response = @request_client.conn.post do |req|
|
@@ -105,7 +105,7 @@ module CandidApiClient
|
|
105
105
|
# @return [CandidApiClient::Guarantor::V1::Types::Guarantor]
|
106
106
|
# @example
|
107
107
|
# api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
|
108
|
-
# api.guarantor.v_1.update(guarantor_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", request: {
|
108
|
+
# api.guarantor.v_1.update(guarantor_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", request: { })
|
109
109
|
def update(guarantor_id:, request:, request_options: nil)
|
110
110
|
response = @request_client.conn.patch do |req|
|
111
111
|
req.options.timeout = request_options.timeout_in_seconds unless request_options&.timeout_in_seconds.nil?
|
@@ -223,7 +223,7 @@ module CandidApiClient
|
|
223
223
|
# @return [CandidApiClient::Guarantor::V1::Types::Guarantor]
|
224
224
|
# @example
|
225
225
|
# api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
|
226
|
-
# api.guarantor.v_1.update(guarantor_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", request: {
|
226
|
+
# api.guarantor.v_1.update(guarantor_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", request: { })
|
227
227
|
def update(guarantor_id:, request:, request_options: nil)
|
228
228
|
Async do
|
229
229
|
response = @request_client.conn.patch do |req|
|
@@ -65,7 +65,7 @@ module CandidApiClient
|
|
65
65
|
# @return [CandidApiClient::ServiceLines::V2::Types::ServiceLine]
|
66
66
|
# @example
|
67
67
|
# api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
|
68
|
-
# api.service_lines.v_2.create(request: { modifiers: [AV], charge_amount_cents: 1, diagnosis_id_zero: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", diagnosis_id_one: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", diagnosis_id_two: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", diagnosis_id_three: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", denial_reason: { reason: AUTHORIZATION_REQUIRED }, place_of_service_code: PHARMACY, procedure_code: "string", quantity: "string", units: MJ, claim_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", description: "string", date_of_service: DateTime.parse(2023-01-15), end_date_of_service: DateTime.parse(2023-01-15), 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", drug_description: "string" }, 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" }
|
68
|
+
# api.service_lines.v_2.create(request: { modifiers: [AV], charge_amount_cents: 1, diagnosis_id_zero: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", diagnosis_id_one: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", diagnosis_id_two: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", diagnosis_id_three: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", denial_reason: { reason: AUTHORIZATION_REQUIRED }, place_of_service_code: PHARMACY, procedure_code: "string", quantity: "string", units: MJ, claim_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", description: "string", date_of_service: DateTime.parse(2023-01-15), end_date_of_service: DateTime.parse(2023-01-15), 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", drug_description: "string" }, 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" } }, test_results: [{ value: 1.1, result_type: HEMATOCRIT }], has_epsdt_indicator: true, has_family_planning_indicator: true })
|
69
69
|
def create(request:, request_options: nil)
|
70
70
|
response = @request_client.conn.post do |req|
|
71
71
|
req.options.timeout = request_options.timeout_in_seconds unless request_options&.timeout_in_seconds.nil?
|
@@ -210,7 +210,7 @@ module CandidApiClient
|
|
210
210
|
# @return [CandidApiClient::ServiceLines::V2::Types::ServiceLine]
|
211
211
|
# @example
|
212
212
|
# api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
|
213
|
-
# api.service_lines.v_2.create(request: { modifiers: [AV], charge_amount_cents: 1, diagnosis_id_zero: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", diagnosis_id_one: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", diagnosis_id_two: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", diagnosis_id_three: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", denial_reason: { reason: AUTHORIZATION_REQUIRED }, place_of_service_code: PHARMACY, procedure_code: "string", quantity: "string", units: MJ, claim_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", description: "string", date_of_service: DateTime.parse(2023-01-15), end_date_of_service: DateTime.parse(2023-01-15), 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", drug_description: "string" }, 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" }
|
213
|
+
# api.service_lines.v_2.create(request: { modifiers: [AV], charge_amount_cents: 1, diagnosis_id_zero: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", diagnosis_id_one: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", diagnosis_id_two: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", diagnosis_id_three: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", denial_reason: { reason: AUTHORIZATION_REQUIRED }, place_of_service_code: PHARMACY, procedure_code: "string", quantity: "string", units: MJ, claim_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", description: "string", date_of_service: DateTime.parse(2023-01-15), end_date_of_service: DateTime.parse(2023-01-15), 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", drug_description: "string" }, 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" } }, test_results: [{ value: 1.1, result_type: HEMATOCRIT }], has_epsdt_indicator: true, has_family_planning_indicator: true })
|
214
214
|
def create(request:, request_options: nil)
|
215
215
|
Async do
|
216
216
|
response = @request_client.conn.post do |req|
|
data/lib/candidhealth.rb
CHANGED
@@ -12,6 +12,7 @@ require_relative "candidhealth/contracts/client"
|
|
12
12
|
require_relative "candidhealth/credentialing/client"
|
13
13
|
require_relative "candidhealth/custom_schemas/client"
|
14
14
|
require_relative "candidhealth/eligibility/client"
|
15
|
+
require_relative "candidhealth/encounter_attachments/client"
|
15
16
|
require_relative "candidhealth/encounter_providers/client"
|
16
17
|
require_relative "candidhealth/encounters/client"
|
17
18
|
require_relative "candidhealth/expected_network_status/client"
|
@@ -59,6 +60,8 @@ module CandidApiClient
|
|
59
60
|
attr_reader :custom_schemas
|
60
61
|
# @return [CandidApiClient::Eligibility::Client]
|
61
62
|
attr_reader :eligibility
|
63
|
+
# @return [CandidApiClient::EncounterAttachments::Client]
|
64
|
+
attr_reader :encounter_attachments
|
62
65
|
# @return [CandidApiClient::EncounterProviders::Client]
|
63
66
|
attr_reader :encounter_providers
|
64
67
|
# @return [CandidApiClient::Encounters::Client]
|
@@ -150,6 +153,7 @@ module CandidApiClient
|
|
150
153
|
@credentialing = CandidApiClient::Credentialing::Client.new(request_client: @request_client)
|
151
154
|
@custom_schemas = CandidApiClient::CustomSchemas::Client.new(request_client: @request_client)
|
152
155
|
@eligibility = CandidApiClient::Eligibility::Client.new(request_client: @request_client)
|
156
|
+
@encounter_attachments = CandidApiClient::EncounterAttachments::Client.new(request_client: @request_client)
|
153
157
|
@encounter_providers = CandidApiClient::EncounterProviders::Client.new(request_client: @request_client)
|
154
158
|
@encounters = CandidApiClient::Encounters::Client.new(request_client: @request_client)
|
155
159
|
@expected_network_status = CandidApiClient::ExpectedNetworkStatus::Client.new(request_client: @request_client)
|
@@ -198,6 +202,8 @@ module CandidApiClient
|
|
198
202
|
attr_reader :custom_schemas
|
199
203
|
# @return [CandidApiClient::Eligibility::AsyncClient]
|
200
204
|
attr_reader :eligibility
|
205
|
+
# @return [CandidApiClient::EncounterAttachments::AsyncClient]
|
206
|
+
attr_reader :encounter_attachments
|
201
207
|
# @return [CandidApiClient::EncounterProviders::AsyncClient]
|
202
208
|
attr_reader :encounter_providers
|
203
209
|
# @return [CandidApiClient::Encounters::AsyncClient]
|
@@ -289,6 +295,7 @@ module CandidApiClient
|
|
289
295
|
@credentialing = CandidApiClient::Credentialing::AsyncClient.new(request_client: @async_request_client)
|
290
296
|
@custom_schemas = CandidApiClient::CustomSchemas::AsyncClient.new(request_client: @async_request_client)
|
291
297
|
@eligibility = CandidApiClient::Eligibility::AsyncClient.new(request_client: @async_request_client)
|
298
|
+
@encounter_attachments = CandidApiClient::EncounterAttachments::AsyncClient.new(request_client: @async_request_client)
|
292
299
|
@encounter_providers = CandidApiClient::EncounterProviders::AsyncClient.new(request_client: @async_request_client)
|
293
300
|
@encounters = CandidApiClient::Encounters::AsyncClient.new(request_client: @async_request_client)
|
294
301
|
@expected_network_status = CandidApiClient::ExpectedNetworkStatus::AsyncClient.new(request_client: @async_request_client)
|
@@ -0,0 +1,26 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require "faraday/multipart"
|
4
|
+
require "mini_mime"
|
5
|
+
|
6
|
+
module CandidApiClient
|
7
|
+
# Utility class for managing files.
|
8
|
+
class FileUtilities
|
9
|
+
# @param file_like [String, IO] The file to be uploaded, or a string path to the file.
|
10
|
+
# @return [Faraday::Multipart::FilePart]
|
11
|
+
def self.as_faraday_multipart(file_like:)
|
12
|
+
path = if file_like.is_a?(String)
|
13
|
+
file_like
|
14
|
+
else
|
15
|
+
file_like.path
|
16
|
+
end
|
17
|
+
mime_type = MiniMime.lookup_by_filename(path)
|
18
|
+
mime_type = if mime_type.nil?
|
19
|
+
"application/octet-stream"
|
20
|
+
else
|
21
|
+
mime_type.content_type
|
22
|
+
end
|
23
|
+
Faraday::Multipart::FilePart.new(file_like, mime_type)
|
24
|
+
end
|
25
|
+
end
|
26
|
+
end
|
data/lib/requests.rb
CHANGED
@@ -2,6 +2,7 @@
|
|
2
2
|
|
3
3
|
require_relative "environment"
|
4
4
|
require "faraday"
|
5
|
+
require "faraday/multipart"
|
5
6
|
require "faraday/retry"
|
6
7
|
require "async/http/faraday"
|
7
8
|
|
@@ -27,6 +28,7 @@ module CandidApiClient
|
|
27
28
|
@default_environment = environment
|
28
29
|
@token = token
|
29
30
|
@conn = Faraday.new do |faraday|
|
31
|
+
faraday.request :multipart
|
30
32
|
faraday.request :json
|
31
33
|
faraday.response :raise_error, include_request: true
|
32
34
|
faraday.request :retry, { max: max_retries } unless max_retries.nil?
|
@@ -43,7 +45,7 @@ module CandidApiClient
|
|
43
45
|
|
44
46
|
# @return [Hash{String => String}]
|
45
47
|
def get_headers
|
46
|
-
headers = { "X-Fern-Language": "Ruby", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.
|
48
|
+
headers = { "X-Fern-Language": "Ruby", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.43.0" }
|
47
49
|
headers["Authorization"] = ((@token.is_a? Method) ? @token.call : @token) unless token.nil?
|
48
50
|
headers
|
49
51
|
end
|
@@ -70,6 +72,7 @@ module CandidApiClient
|
|
70
72
|
@default_environment = environment
|
71
73
|
@token = token
|
72
74
|
@conn = Faraday.new do |faraday|
|
75
|
+
faraday.request :multipart
|
73
76
|
faraday.request :json
|
74
77
|
faraday.response :raise_error, include_request: true
|
75
78
|
faraday.adapter :async_http
|
@@ -87,7 +90,7 @@ module CandidApiClient
|
|
87
90
|
|
88
91
|
# @return [Hash{String => String}]
|
89
92
|
def get_headers
|
90
|
-
headers = { "X-Fern-Language": "Ruby", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.
|
93
|
+
headers = { "X-Fern-Language": "Ruby", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.43.0" }
|
91
94
|
headers["Authorization"] = ((@token.is_a? Method) ? @token.call : @token) unless token.nil?
|
92
95
|
headers
|
93
96
|
end
|
data/lib/types_export.rb
CHANGED
@@ -5,11 +5,11 @@ require_relative "candidhealth/auth/v_2/types/too_many_requests_error_type"
|
|
5
5
|
require_relative "candidhealth/billing_notes/v_2/types/billing_note_base"
|
6
6
|
require_relative "candidhealth/billing_notes/v_2/types/billing_note_optional"
|
7
7
|
require_relative "candidhealth/billing_notes/v_2/types/billing_note"
|
8
|
-
require_relative "candidhealth/charge_capture_bundles/v_1/types/
|
9
|
-
require_relative "candidhealth/charge_capture_bundles/v_1/types/
|
10
|
-
require_relative "candidhealth/charge_capture_bundles/v_1/types/
|
11
|
-
require_relative "candidhealth/charge_capture_bundles/v_1/types/
|
12
|
-
require_relative "candidhealth/charge_capture_bundles/v_1/types/
|
8
|
+
require_relative "candidhealth/charge_capture_bundles/v_1/types/charge_capture_claim_creation_page"
|
9
|
+
require_relative "candidhealth/charge_capture_bundles/v_1/types/charge_capture_claim_creation"
|
10
|
+
require_relative "candidhealth/charge_capture_bundles/v_1/types/charge_capture_claim_creation_summary"
|
11
|
+
require_relative "candidhealth/charge_capture_bundles/v_1/types/charge_capture_claim_creation_status"
|
12
|
+
require_relative "candidhealth/charge_capture_bundles/v_1/types/charge_capture_claim_creation_sort_field"
|
13
13
|
require_relative "candidhealth/charge_capture/v_1/types/charge_capture_page"
|
14
14
|
require_relative "candidhealth/charge_capture/v_1/types/charge_capture"
|
15
15
|
require_relative "candidhealth/charge_capture/v_1/types/charge_capture_data"
|
@@ -46,6 +46,9 @@ require_relative "candidhealth/custom_schemas/v_1/types/schema_with_name_already
|
|
46
46
|
require_relative "candidhealth/custom_schemas/v_1/types/key_with_name_already_exists_error"
|
47
47
|
require_relative "candidhealth/custom_schemas/v_1/types/schema_validation_failure"
|
48
48
|
require_relative "candidhealth/custom_schemas/v_1/types/schema_validation_error"
|
49
|
+
require_relative "candidhealth/encounter_attachments/v_1/types/base_attachment"
|
50
|
+
require_relative "candidhealth/encounter_attachments/v_1/types/encounter_attachment"
|
51
|
+
require_relative "candidhealth/encounter_attachments/v_1/types/encounter_attachment_type"
|
49
52
|
require_relative "candidhealth/encounter_providers/v_2/types/encounter_provider_base"
|
50
53
|
require_relative "candidhealth/encounter_providers/v_2/types/rendering_provider"
|
51
54
|
require_relative "candidhealth/encounter_providers/v_2/types/rendering_provider_update"
|
@@ -413,7 +416,6 @@ require_relative "candidhealth/commons/types/http_service_unavailable_error_mess
|
|
413
416
|
require_relative "candidhealth/commons/types/request_validation_error"
|
414
417
|
require_relative "candidhealth/commons/types/updates_disabled_due_to_external_system_integration_error_message"
|
415
418
|
require_relative "candidhealth/commons/types/organization_not_authorized_error_message"
|
416
|
-
require_relative "candidhealth/commons/types/not_implemented_error_message"
|
417
419
|
require_relative "candidhealth/commons/types/phone_number"
|
418
420
|
require_relative "candidhealth/commons/types/phone_number_type"
|
419
421
|
require_relative "candidhealth/commons/types/delay_reason_code"
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: candidhealth
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.43.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- ''
|
@@ -50,6 +50,26 @@ dependencies:
|
|
50
50
|
- - "<"
|
51
51
|
- !ruby/object:Gem::Version
|
52
52
|
version: '3.0'
|
53
|
+
- !ruby/object:Gem::Dependency
|
54
|
+
name: faraday-multipart
|
55
|
+
requirement: !ruby/object:Gem::Requirement
|
56
|
+
requirements:
|
57
|
+
- - ">="
|
58
|
+
- !ruby/object:Gem::Version
|
59
|
+
version: '0.0'
|
60
|
+
- - "<"
|
61
|
+
- !ruby/object:Gem::Version
|
62
|
+
version: '2.0'
|
63
|
+
type: :runtime
|
64
|
+
prerelease: false
|
65
|
+
version_requirements: !ruby/object:Gem::Requirement
|
66
|
+
requirements:
|
67
|
+
- - ">="
|
68
|
+
- !ruby/object:Gem::Version
|
69
|
+
version: '0.0'
|
70
|
+
- - "<"
|
71
|
+
- !ruby/object:Gem::Version
|
72
|
+
version: '2.0'
|
53
73
|
- !ruby/object:Gem::Dependency
|
54
74
|
name: faraday-net_http
|
55
75
|
requirement: !ruby/object:Gem::Requirement
|
@@ -90,6 +110,20 @@ dependencies:
|
|
90
110
|
- - "<"
|
91
111
|
- !ruby/object:Gem::Version
|
92
112
|
version: '3.0'
|
113
|
+
- !ruby/object:Gem::Dependency
|
114
|
+
name: mini_mime
|
115
|
+
requirement: !ruby/object:Gem::Requirement
|
116
|
+
requirements:
|
117
|
+
- - ">="
|
118
|
+
- !ruby/object:Gem::Version
|
119
|
+
version: '0'
|
120
|
+
type: :runtime
|
121
|
+
prerelease: false
|
122
|
+
version_requirements: !ruby/object:Gem::Requirement
|
123
|
+
requirements:
|
124
|
+
- - ">="
|
125
|
+
- !ruby/object:Gem::Version
|
126
|
+
version: '0'
|
93
127
|
description: ''
|
94
128
|
email: ''
|
95
129
|
executables: []
|
@@ -117,11 +151,11 @@ files:
|
|
117
151
|
- lib/candidhealth/charge_capture/v_1/types/charge_capture_status.rb
|
118
152
|
- lib/candidhealth/charge_capture_bundles/client.rb
|
119
153
|
- lib/candidhealth/charge_capture_bundles/v_1/client.rb
|
120
|
-
- lib/candidhealth/charge_capture_bundles/v_1/types/
|
121
|
-
- lib/candidhealth/charge_capture_bundles/v_1/types/
|
122
|
-
- lib/candidhealth/charge_capture_bundles/v_1/types/
|
123
|
-
- lib/candidhealth/charge_capture_bundles/v_1/types/
|
124
|
-
- lib/candidhealth/charge_capture_bundles/v_1/types/
|
154
|
+
- lib/candidhealth/charge_capture_bundles/v_1/types/charge_capture_claim_creation.rb
|
155
|
+
- lib/candidhealth/charge_capture_bundles/v_1/types/charge_capture_claim_creation_page.rb
|
156
|
+
- lib/candidhealth/charge_capture_bundles/v_1/types/charge_capture_claim_creation_sort_field.rb
|
157
|
+
- lib/candidhealth/charge_capture_bundles/v_1/types/charge_capture_claim_creation_status.rb
|
158
|
+
- lib/candidhealth/charge_capture_bundles/v_1/types/charge_capture_claim_creation_summary.rb
|
125
159
|
- lib/candidhealth/claim_submission/v_1/types/claim_frequency_type_code.rb
|
126
160
|
- lib/candidhealth/claim_submission/v_1/types/claim_submission_record_create.rb
|
127
161
|
- lib/candidhealth/claim_submission/v_1/types/external_claim_submission_create.rb
|
@@ -144,7 +178,6 @@ files:
|
|
144
178
|
- lib/candidhealth/commons/types/insurance_type_code.rb
|
145
179
|
- lib/candidhealth/commons/types/intended_submission_medium.rb
|
146
180
|
- lib/candidhealth/commons/types/network_type.rb
|
147
|
-
- lib/candidhealth/commons/types/not_implemented_error_message.rb
|
148
181
|
- lib/candidhealth/commons/types/organization_not_authorized_error_message.rb
|
149
182
|
- lib/candidhealth/commons/types/patient_relationship_to_insured_code_all.rb
|
150
183
|
- lib/candidhealth/commons/types/phone_number.rb
|
@@ -205,6 +238,11 @@ files:
|
|
205
238
|
- lib/candidhealth/diagnoses/types/standalone_diagnosis_create.rb
|
206
239
|
- lib/candidhealth/eligibility/client.rb
|
207
240
|
- lib/candidhealth/eligibility/v_2/client.rb
|
241
|
+
- lib/candidhealth/encounter_attachments/client.rb
|
242
|
+
- lib/candidhealth/encounter_attachments/v_1/client.rb
|
243
|
+
- lib/candidhealth/encounter_attachments/v_1/types/base_attachment.rb
|
244
|
+
- lib/candidhealth/encounter_attachments/v_1/types/encounter_attachment.rb
|
245
|
+
- lib/candidhealth/encounter_attachments/v_1/types/encounter_attachment_type.rb
|
208
246
|
- lib/candidhealth/encounter_providers/client.rb
|
209
247
|
- lib/candidhealth/encounter_providers/v_2/client.rb
|
210
248
|
- lib/candidhealth/encounter_providers/v_2/types/billing_provider.rb
|
@@ -686,6 +724,7 @@ files:
|
|
686
724
|
- lib/candidhealth/x_12/v_1/types/claim_adjustment_reason_code.rb
|
687
725
|
- lib/candidhealth/x_12/v_1/types/rarc.rb
|
688
726
|
- lib/candidhealth/x_12/v_1/types/remittance_advice_remark_code.rb
|
727
|
+
- lib/core/file_utilities.rb
|
689
728
|
- lib/core/oauth.rb
|
690
729
|
- lib/environment.rb
|
691
730
|
- lib/gemconfig.rb
|