candidhealth 0.36.0 → 0.37.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/client.rb +30 -0
- data/lib/candidhealth/charge_capture/v_1/client.rb +1250 -0
- data/lib/candidhealth/charge_capture/v_1/types/charge_capture.rb +116 -0
- data/lib/candidhealth/charge_capture/v_1/types/charge_capture_data.rb +727 -0
- data/lib/candidhealth/charge_capture/v_1/types/charge_capture_page.rb +88 -0
- data/lib/candidhealth/charge_capture/v_1/types/charge_capture_status.rb +19 -0
- data/lib/candidhealth/commons/types/billing_provider_commercial_license_type.rb +20 -0
- data/lib/candidhealth/commons/types/not_implemented_error_message.rb +60 -0
- data/lib/candidhealth/commons/types/procedure_modifier.rb +1 -0
- data/lib/candidhealth/contracts/v_2/types/contract_invalid_expiration_date_error.rb +60 -0
- data/lib/candidhealth/encounter_providers/v_2/client.rb +16 -16
- data/lib/candidhealth/encounter_providers/v_2/types/billing_provider.rb +15 -2
- data/lib/candidhealth/encounter_providers/v_2/types/billing_provider_update.rb +15 -2
- data/lib/candidhealth/encounter_providers/v_2/types/encounter_provider.rb +14 -1
- data/lib/candidhealth/encounters/v_4/client.rb +92 -150
- data/lib/candidhealth/encounters/v_4/types/encounter_optional.rb +633 -0
- 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/requests.rb +2 -2
- data/lib/types_export.rb +8 -0
- metadata +15 -5
@@ -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|
|
@@ -63,7 +63,7 @@ module CandidApiClient
|
|
63
63
|
# @return [CandidApiClient::ServiceLines::V2::Types::ServiceLine]
|
64
64
|
# @example
|
65
65
|
# api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
|
66
|
-
# api.service_lines.v_2.create(request: { modifiers: [TWENTY_TWO], 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" }
|
66
|
+
# api.service_lines.v_2.create(request: { modifiers: [TWENTY_TWO], 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 }] })
|
67
67
|
def create(request:, request_options: nil)
|
68
68
|
response = @request_client.conn.post do |req|
|
69
69
|
req.options.timeout = request_options.timeout_in_seconds unless request_options&.timeout_in_seconds.nil?
|
@@ -204,7 +204,7 @@ module CandidApiClient
|
|
204
204
|
# @return [CandidApiClient::ServiceLines::V2::Types::ServiceLine]
|
205
205
|
# @example
|
206
206
|
# api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
|
207
|
-
# api.service_lines.v_2.create(request: { modifiers: [TWENTY_TWO], 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" }
|
207
|
+
# api.service_lines.v_2.create(request: { modifiers: [TWENTY_TWO], 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 }] })
|
208
208
|
def create(request:, request_options: nil)
|
209
209
|
Async do
|
210
210
|
response = @request_client.conn.post do |req|
|
data/lib/candidhealth.rb
CHANGED
@@ -6,6 +6,7 @@ require_relative "core/oauth"
|
|
6
6
|
require_relative "requests"
|
7
7
|
require_relative "candidhealth/auth/client"
|
8
8
|
require_relative "candidhealth/billing_notes/client"
|
9
|
+
require_relative "candidhealth/charge_capture/client"
|
9
10
|
require_relative "candidhealth/contracts/client"
|
10
11
|
require_relative "candidhealth/credentialing/client"
|
11
12
|
require_relative "candidhealth/custom_schemas/client"
|
@@ -43,6 +44,8 @@ module CandidApiClient
|
|
43
44
|
attr_reader :auth
|
44
45
|
# @return [CandidApiClient::BillingNotes::Client]
|
45
46
|
attr_reader :billing_notes
|
47
|
+
# @return [CandidApiClient::ChargeCapture::Client]
|
48
|
+
attr_reader :charge_capture
|
46
49
|
# @return [CandidApiClient::Contracts::Client]
|
47
50
|
attr_reader :contracts
|
48
51
|
# @return [CandidApiClient::Credentialing::Client]
|
@@ -132,6 +135,7 @@ module CandidApiClient
|
|
132
135
|
)
|
133
136
|
@auth = CandidApiClient::Auth::Client.new(request_client: @request_client)
|
134
137
|
@billing_notes = CandidApiClient::BillingNotes::Client.new(request_client: @request_client)
|
138
|
+
@charge_capture = CandidApiClient::ChargeCapture::Client.new(request_client: @request_client)
|
135
139
|
@contracts = CandidApiClient::Contracts::Client.new(request_client: @request_client)
|
136
140
|
@credentialing = CandidApiClient::Credentialing::Client.new(request_client: @request_client)
|
137
141
|
@custom_schemas = CandidApiClient::CustomSchemas::Client.new(request_client: @request_client)
|
@@ -170,6 +174,8 @@ module CandidApiClient
|
|
170
174
|
attr_reader :auth
|
171
175
|
# @return [CandidApiClient::BillingNotes::AsyncClient]
|
172
176
|
attr_reader :billing_notes
|
177
|
+
# @return [CandidApiClient::ChargeCapture::AsyncClient]
|
178
|
+
attr_reader :charge_capture
|
173
179
|
# @return [CandidApiClient::Contracts::AsyncClient]
|
174
180
|
attr_reader :contracts
|
175
181
|
# @return [CandidApiClient::Credentialing::AsyncClient]
|
@@ -259,6 +265,7 @@ module CandidApiClient
|
|
259
265
|
)
|
260
266
|
@auth = CandidApiClient::Auth::AsyncClient.new(request_client: @async_request_client)
|
261
267
|
@billing_notes = CandidApiClient::BillingNotes::AsyncClient.new(request_client: @async_request_client)
|
268
|
+
@charge_capture = CandidApiClient::ChargeCapture::AsyncClient.new(request_client: @async_request_client)
|
262
269
|
@contracts = CandidApiClient::Contracts::AsyncClient.new(request_client: @async_request_client)
|
263
270
|
@credentialing = CandidApiClient::Credentialing::AsyncClient.new(request_client: @async_request_client)
|
264
271
|
@custom_schemas = CandidApiClient::CustomSchemas::AsyncClient.new(request_client: @async_request_client)
|
data/lib/requests.rb
CHANGED
@@ -43,7 +43,7 @@ module CandidApiClient
|
|
43
43
|
|
44
44
|
# @return [Hash{String => String}]
|
45
45
|
def get_headers
|
46
|
-
headers = { "X-Fern-Language": "Ruby", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.
|
46
|
+
headers = { "X-Fern-Language": "Ruby", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.37.0" }
|
47
47
|
headers["Authorization"] = ((@token.is_a? Method) ? @token.call : @token) unless token.nil?
|
48
48
|
headers
|
49
49
|
end
|
@@ -87,7 +87,7 @@ module CandidApiClient
|
|
87
87
|
|
88
88
|
# @return [Hash{String => String}]
|
89
89
|
def get_headers
|
90
|
-
headers = { "X-Fern-Language": "Ruby", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.
|
90
|
+
headers = { "X-Fern-Language": "Ruby", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.37.0" }
|
91
91
|
headers["Authorization"] = ((@token.is_a? Method) ? @token.call : @token) unless token.nil?
|
92
92
|
headers
|
93
93
|
end
|
data/lib/types_export.rb
CHANGED
@@ -4,10 +4,15 @@ require_relative "candidhealth/auth/v_2/types/auth_get_token_response"
|
|
4
4
|
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"
|
7
|
+
require_relative "candidhealth/charge_capture/v_1/types/charge_capture_page"
|
8
|
+
require_relative "candidhealth/charge_capture/v_1/types/charge_capture"
|
9
|
+
require_relative "candidhealth/charge_capture/v_1/types/charge_capture_data"
|
10
|
+
require_relative "candidhealth/charge_capture/v_1/types/charge_capture_status"
|
7
11
|
require_relative "candidhealth/claim_submission/v_1/types/claim_frequency_type_code"
|
8
12
|
require_relative "candidhealth/claim_submission/v_1/types/external_claim_submission_create"
|
9
13
|
require_relative "candidhealth/claim_submission/v_1/types/claim_submission_record_create"
|
10
14
|
require_relative "candidhealth/contracts/v_2/types/contract_is_linked_to_fee_schedule_error"
|
15
|
+
require_relative "candidhealth/contracts/v_2/types/contract_invalid_expiration_date_error"
|
11
16
|
require_relative "candidhealth/contracts/v_2/types/regions_update"
|
12
17
|
require_relative "candidhealth/contracts/v_2/types/date_update"
|
13
18
|
require_relative "candidhealth/contracts/v_2/types/authorized_signatory_update"
|
@@ -44,6 +49,7 @@ require_relative "candidhealth/encounter_providers/v_2/types/billing_provider"
|
|
44
49
|
require_relative "candidhealth/encounter_providers/v_2/types/billing_provider_update"
|
45
50
|
require_relative "candidhealth/encounter_providers/v_2/types/encounter_provider"
|
46
51
|
require_relative "candidhealth/encounters/v_4/types/encounter_base"
|
52
|
+
require_relative "candidhealth/encounters/v_4/types/encounter_optional"
|
47
53
|
require_relative "candidhealth/encounters/v_4/types/encounter"
|
48
54
|
require_relative "candidhealth/encounters/v_4/types/encounter_sort_options"
|
49
55
|
require_relative "candidhealth/encounters/v_4/types/medication"
|
@@ -354,10 +360,12 @@ require_relative "candidhealth/commons/types/http_service_unavailable_error_mess
|
|
354
360
|
require_relative "candidhealth/commons/types/request_validation_error"
|
355
361
|
require_relative "candidhealth/commons/types/updates_disabled_due_to_external_system_integration_error_message"
|
356
362
|
require_relative "candidhealth/commons/types/organization_not_authorized_error_message"
|
363
|
+
require_relative "candidhealth/commons/types/not_implemented_error_message"
|
357
364
|
require_relative "candidhealth/commons/types/phone_number"
|
358
365
|
require_relative "candidhealth/commons/types/phone_number_type"
|
359
366
|
require_relative "candidhealth/commons/types/delay_reason_code"
|
360
367
|
require_relative "candidhealth/commons/types/intended_submission_medium"
|
368
|
+
require_relative "candidhealth/commons/types/billing_provider_commercial_license_type"
|
361
369
|
require_relative "candidhealth/diagnoses/types/diagnosis_create"
|
362
370
|
require_relative "candidhealth/diagnoses/types/standalone_diagnosis_create"
|
363
371
|
require_relative "candidhealth/diagnoses/types/diagnosis_type_code"
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: candidhealth
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.37.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- ''
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-12-
|
11
|
+
date: 2024-12-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: async-http-faraday
|
@@ -105,11 +105,18 @@ files:
|
|
105
105
|
- lib/candidhealth/billing_notes/v_2/client.rb
|
106
106
|
- lib/candidhealth/billing_notes/v_2/types/billing_note.rb
|
107
107
|
- lib/candidhealth/billing_notes/v_2/types/billing_note_base.rb
|
108
|
+
- lib/candidhealth/charge_capture/client.rb
|
109
|
+
- lib/candidhealth/charge_capture/v_1/client.rb
|
110
|
+
- lib/candidhealth/charge_capture/v_1/types/charge_capture.rb
|
111
|
+
- lib/candidhealth/charge_capture/v_1/types/charge_capture_data.rb
|
112
|
+
- lib/candidhealth/charge_capture/v_1/types/charge_capture_page.rb
|
113
|
+
- lib/candidhealth/charge_capture/v_1/types/charge_capture_status.rb
|
108
114
|
- lib/candidhealth/claim_submission/v_1/types/claim_frequency_type_code.rb
|
109
115
|
- lib/candidhealth/claim_submission/v_1/types/claim_submission_record_create.rb
|
110
116
|
- lib/candidhealth/claim_submission/v_1/types/external_claim_submission_create.rb
|
111
117
|
- lib/candidhealth/claims/types/claim.rb
|
112
118
|
- lib/candidhealth/claims/types/claim_status.rb
|
119
|
+
- lib/candidhealth/commons/types/billing_provider_commercial_license_type.rb
|
113
120
|
- lib/candidhealth/commons/types/claim_adjustment_group_codes.rb
|
114
121
|
- lib/candidhealth/commons/types/claim_submission_payer_responsibility_type.rb
|
115
122
|
- lib/candidhealth/commons/types/date_range_optional_end.rb
|
@@ -122,6 +129,7 @@ files:
|
|
122
129
|
- lib/candidhealth/commons/types/insurance_type_code.rb
|
123
130
|
- lib/candidhealth/commons/types/intended_submission_medium.rb
|
124
131
|
- lib/candidhealth/commons/types/network_type.rb
|
132
|
+
- lib/candidhealth/commons/types/not_implemented_error_message.rb
|
125
133
|
- lib/candidhealth/commons/types/organization_not_authorized_error_message.rb
|
126
134
|
- lib/candidhealth/commons/types/patient_relationship_to_insured_code_all.rb
|
127
135
|
- lib/candidhealth/commons/types/phone_number.rb
|
@@ -151,6 +159,7 @@ files:
|
|
151
159
|
- lib/candidhealth/contracts/v_2/types/authorized_signatory_update.rb
|
152
160
|
- lib/candidhealth/contracts/v_2/types/contract.rb
|
153
161
|
- lib/candidhealth/contracts/v_2/types/contract_base.rb
|
162
|
+
- lib/candidhealth/contracts/v_2/types/contract_invalid_expiration_date_error.rb
|
154
163
|
- lib/candidhealth/contracts/v_2/types/contract_is_linked_to_fee_schedule_error.rb
|
155
164
|
- lib/candidhealth/contracts/v_2/types/contract_status.rb
|
156
165
|
- lib/candidhealth/contracts/v_2/types/contract_with_providers.rb
|
@@ -209,6 +218,7 @@ files:
|
|
209
218
|
- lib/candidhealth/encounters/v_4/types/encounter_base.rb
|
210
219
|
- lib/candidhealth/encounters/v_4/types/encounter_external_id_uniqueness_error_type.rb
|
211
220
|
- lib/candidhealth/encounters/v_4/types/encounter_guarantor_missing_contact_info_error_type.rb
|
221
|
+
- lib/candidhealth/encounters/v_4/types/encounter_optional.rb
|
212
222
|
- lib/candidhealth/encounters/v_4/types/encounter_owner_of_next_action_type.rb
|
213
223
|
- lib/candidhealth/encounters/v_4/types/encounter_page.rb
|
214
224
|
- lib/candidhealth/encounters/v_4/types/encounter_patient_control_number_uniqueness_error_type.rb
|
@@ -619,7 +629,7 @@ metadata:
|
|
619
629
|
homepage_uri: https://github.com/candidhealth/candid-ruby
|
620
630
|
source_code_uri: https://github.com/candidhealth/candid-ruby
|
621
631
|
changelog_uri: https://github.com/candidhealth/candid-ruby/blob/master/CHANGELOG.md
|
622
|
-
post_install_message:
|
632
|
+
post_install_message:
|
623
633
|
rdoc_options: []
|
624
634
|
require_paths:
|
625
635
|
- lib
|
@@ -635,7 +645,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
635
645
|
version: '0'
|
636
646
|
requirements: []
|
637
647
|
rubygems_version: 3.1.6
|
638
|
-
signing_key:
|
648
|
+
signing_key:
|
639
649
|
specification_version: 4
|
640
650
|
summary: ''
|
641
651
|
test_files: []
|