candidhealth 0.39.9 → 0.39.11
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/clinical_trials/v_1/types/clinical_trial.rb +109 -0
- data/lib/candidhealth/clinical_trials/v_1/types/clinical_trial_phase.rb +15 -0
- data/lib/candidhealth/clinical_trials/v_1/types/mutable_clinical_trial.rb +84 -0
- data/lib/candidhealth/commons/types/procedure_modifier.rb +4 -0
- data/lib/candidhealth/encounters/v_4/client.rb +2 -2
- data/lib/candidhealth/encounters/v_4/types/encounter.rb +9 -1
- data/lib/candidhealth/exports/v_3/client.rb +8 -0
- data/lib/candidhealth/individual/types/patient_clinical_trial_info.rb +80 -0
- data/lib/candidhealth/individual/types/patient_clinical_trial_info_create.rb +73 -0
- data/lib/candidhealth/individual/types/patient_non_insurance_payer_info.rb +17 -2
- data/lib/candidhealth/individual/types/patient_non_insurance_payer_info_create.rb +18 -2
- data/lib/candidhealth/non_insurance_payers/v_1/types/non_insurance_payer.rb +15 -3
- data/lib/candidhealth/organization_providers/v_2/types/license_type.rb +3 -0
- data/lib/candidhealth/payers/v_3/types/payer.rb +17 -2
- data/lib/candidhealth/pre_encounter/common/types/canonical_clinical_trial_association.rb +86 -0
- data/lib/candidhealth/pre_encounter/common/types/canonical_non_insurance_payer_association.rb +18 -2
- data/lib/candidhealth/service_lines/v_2/types/service_line.rb +35 -3
- data/lib/candidhealth/service_lines/v_2/types/service_line_create.rb +2 -2
- data/lib/candidhealth/service_lines/v_2/types/service_line_create_standalone.rb +10 -2
- data/lib/candidhealth/service_lines/v_2/types/service_line_update.rb +16 -4
- data/lib/candidhealth/write_offs/v_1/client.rb +98 -0
- data/lib/requests.rb +2 -2
- data/lib/types_export.rb +6 -0
- metadata +8 -2
@@ -8,6 +8,7 @@ require_relative "types/write_offs_page"
|
|
8
8
|
require_relative "types/write_off"
|
9
9
|
require_relative "types/write_off_create"
|
10
10
|
require_relative "types/create_write_offs_response"
|
11
|
+
require "json"
|
11
12
|
require "async"
|
12
13
|
|
13
14
|
module CandidApiClient
|
@@ -150,6 +151,52 @@ module CandidApiClient
|
|
150
151
|
end
|
151
152
|
CandidApiClient::WriteOffs::V1::Types::WriteOff.from_json(json_object: response.body)
|
152
153
|
end
|
154
|
+
|
155
|
+
# Reverts an Insurance Balance Adjustment given an `adjustment_id`
|
156
|
+
#
|
157
|
+
# @param adjustment_id [String]
|
158
|
+
# @param request_options [CandidApiClient::RequestOptions]
|
159
|
+
# @return [CandidApiClient::WriteOffs::V1::Types::WriteOff]
|
160
|
+
# @example
|
161
|
+
# api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
|
162
|
+
# api.write_offs.v_1.revert_insurance_balance_adjustment(adjustment_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32")
|
163
|
+
def revert_insurance_balance_adjustment(adjustment_id:, request_options: nil)
|
164
|
+
response = @request_client.conn.post do |req|
|
165
|
+
req.options.timeout = request_options.timeout_in_seconds unless request_options&.timeout_in_seconds.nil?
|
166
|
+
req.headers["Authorization"] = request_options.token unless request_options&.token.nil?
|
167
|
+
req.headers = {
|
168
|
+
**(req.headers || {}),
|
169
|
+
**@request_client.get_headers,
|
170
|
+
**(request_options&.additional_headers || {})
|
171
|
+
}.compact
|
172
|
+
req.url "#{@request_client.get_url(environment: CandidApi,
|
173
|
+
request_options: request_options)}/api/write-offs/v1/#{adjustment_id}/revert"
|
174
|
+
end
|
175
|
+
CandidApiClient::WriteOffs::V1::Types::WriteOff.from_json(json_object: response.body)
|
176
|
+
end
|
177
|
+
|
178
|
+
# Reverts an ERA-originated Insurance Balance Adjustment given an `adjustment_id`
|
179
|
+
#
|
180
|
+
# @param adjustment_id [String]
|
181
|
+
# @param request_options [CandidApiClient::RequestOptions]
|
182
|
+
# @return [String]
|
183
|
+
# @example
|
184
|
+
# api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
|
185
|
+
# api.write_offs.v_1.revert_era_originated_insurance_balance_adjustment(adjustment_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32")
|
186
|
+
def revert_era_originated_insurance_balance_adjustment(adjustment_id:, request_options: nil)
|
187
|
+
response = @request_client.conn.post do |req|
|
188
|
+
req.options.timeout = request_options.timeout_in_seconds unless request_options&.timeout_in_seconds.nil?
|
189
|
+
req.headers["Authorization"] = request_options.token unless request_options&.token.nil?
|
190
|
+
req.headers = {
|
191
|
+
**(req.headers || {}),
|
192
|
+
**@request_client.get_headers,
|
193
|
+
**(request_options&.additional_headers || {})
|
194
|
+
}.compact
|
195
|
+
req.url "#{@request_client.get_url(environment: CandidApi,
|
196
|
+
request_options: request_options)}/api/write-offs/v1/#{adjustment_id}/revert-era-originated"
|
197
|
+
end
|
198
|
+
JSON.parse(response.body)
|
199
|
+
end
|
153
200
|
end
|
154
201
|
|
155
202
|
class AsyncV1Client
|
@@ -297,6 +344,57 @@ module CandidApiClient
|
|
297
344
|
CandidApiClient::WriteOffs::V1::Types::WriteOff.from_json(json_object: response.body)
|
298
345
|
end
|
299
346
|
end
|
347
|
+
|
348
|
+
# Reverts an Insurance Balance Adjustment given an `adjustment_id`
|
349
|
+
#
|
350
|
+
# @param adjustment_id [String]
|
351
|
+
# @param request_options [CandidApiClient::RequestOptions]
|
352
|
+
# @return [CandidApiClient::WriteOffs::V1::Types::WriteOff]
|
353
|
+
# @example
|
354
|
+
# api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
|
355
|
+
# api.write_offs.v_1.revert_insurance_balance_adjustment(adjustment_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32")
|
356
|
+
def revert_insurance_balance_adjustment(adjustment_id:, request_options: nil)
|
357
|
+
Async do
|
358
|
+
response = @request_client.conn.post do |req|
|
359
|
+
req.options.timeout = request_options.timeout_in_seconds unless request_options&.timeout_in_seconds.nil?
|
360
|
+
req.headers["Authorization"] = request_options.token unless request_options&.token.nil?
|
361
|
+
req.headers = {
|
362
|
+
**(req.headers || {}),
|
363
|
+
**@request_client.get_headers,
|
364
|
+
**(request_options&.additional_headers || {})
|
365
|
+
}.compact
|
366
|
+
req.url "#{@request_client.get_url(environment: CandidApi,
|
367
|
+
request_options: request_options)}/api/write-offs/v1/#{adjustment_id}/revert"
|
368
|
+
end
|
369
|
+
CandidApiClient::WriteOffs::V1::Types::WriteOff.from_json(json_object: response.body)
|
370
|
+
end
|
371
|
+
end
|
372
|
+
|
373
|
+
# Reverts an ERA-originated Insurance Balance Adjustment given an `adjustment_id`
|
374
|
+
#
|
375
|
+
# @param adjustment_id [String]
|
376
|
+
# @param request_options [CandidApiClient::RequestOptions]
|
377
|
+
# @return [String]
|
378
|
+
# @example
|
379
|
+
# api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
|
380
|
+
# api.write_offs.v_1.revert_era_originated_insurance_balance_adjustment(adjustment_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32")
|
381
|
+
def revert_era_originated_insurance_balance_adjustment(adjustment_id:, request_options: nil)
|
382
|
+
Async do
|
383
|
+
response = @request_client.conn.post do |req|
|
384
|
+
req.options.timeout = request_options.timeout_in_seconds unless request_options&.timeout_in_seconds.nil?
|
385
|
+
req.headers["Authorization"] = request_options.token unless request_options&.token.nil?
|
386
|
+
req.headers = {
|
387
|
+
**(req.headers || {}),
|
388
|
+
**@request_client.get_headers,
|
389
|
+
**(request_options&.additional_headers || {})
|
390
|
+
}.compact
|
391
|
+
req.url "#{@request_client.get_url(environment: CandidApi,
|
392
|
+
request_options: request_options)}/api/write-offs/v1/#{adjustment_id}/revert-era-originated"
|
393
|
+
end
|
394
|
+
parsed_json = JSON.parse(response.body)
|
395
|
+
parsed_json
|
396
|
+
end
|
397
|
+
end
|
300
398
|
end
|
301
399
|
end
|
302
400
|
end
|
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.39.
|
46
|
+
headers = { "X-Fern-Language": "Ruby", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.39.11" }
|
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.39.
|
90
|
+
headers = { "X-Fern-Language": "Ruby", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.39.11" }
|
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
@@ -15,6 +15,9 @@ require_relative "candidhealth/charge_capture/v_1/types/charge_capture_status"
|
|
15
15
|
require_relative "candidhealth/claim_submission/v_1/types/claim_frequency_type_code"
|
16
16
|
require_relative "candidhealth/claim_submission/v_1/types/external_claim_submission_create"
|
17
17
|
require_relative "candidhealth/claim_submission/v_1/types/claim_submission_record_create"
|
18
|
+
require_relative "candidhealth/clinical_trials/v_1/types/mutable_clinical_trial"
|
19
|
+
require_relative "candidhealth/clinical_trials/v_1/types/clinical_trial"
|
20
|
+
require_relative "candidhealth/clinical_trials/v_1/types/clinical_trial_phase"
|
18
21
|
require_relative "candidhealth/contracts/v_2/types/contract_is_linked_to_fee_schedule_error"
|
19
22
|
require_relative "candidhealth/contracts/v_2/types/contract_invalid_expiration_date_error"
|
20
23
|
require_relative "candidhealth/contracts/v_2/types/regions_update"
|
@@ -432,6 +435,8 @@ require_relative "candidhealth/individual/types/subscriber_base"
|
|
432
435
|
require_relative "candidhealth/individual/types/subscriber_create"
|
433
436
|
require_relative "candidhealth/individual/types/subscriber"
|
434
437
|
require_relative "candidhealth/individual/types/patient_non_insurance_payer_info_create"
|
438
|
+
require_relative "candidhealth/individual/types/patient_clinical_trial_info_create"
|
439
|
+
require_relative "candidhealth/individual/types/patient_clinical_trial_info"
|
435
440
|
require_relative "candidhealth/individual/types/patient_non_insurance_payer_info"
|
436
441
|
require_relative "candidhealth/individual/types/patient_create"
|
437
442
|
require_relative "candidhealth/individual/types/patient_update"
|
@@ -453,6 +458,7 @@ require_relative "candidhealth/tasks/commons/types/task_category"
|
|
453
458
|
require_relative "candidhealth/pre_encounter/common/types/base_model"
|
454
459
|
require_relative "candidhealth/pre_encounter/common/types/external_identifier"
|
455
460
|
require_relative "candidhealth/pre_encounter/common/types/canonical_non_insurance_payer_association"
|
461
|
+
require_relative "candidhealth/pre_encounter/common/types/canonical_clinical_trial_association"
|
456
462
|
require_relative "candidhealth/pre_encounter/common/types/relationship"
|
457
463
|
require_relative "candidhealth/pre_encounter/common/types/gender"
|
458
464
|
require_relative "candidhealth/pre_encounter/common/types/sex"
|
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.39.
|
4
|
+
version: 0.39.11
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- ''
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2025-
|
11
|
+
date: 2025-03-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: async-http-faraday
|
@@ -122,6 +122,9 @@ files:
|
|
122
122
|
- lib/candidhealth/claim_submission/v_1/types/external_claim_submission_create.rb
|
123
123
|
- lib/candidhealth/claims/types/claim.rb
|
124
124
|
- lib/candidhealth/claims/types/claim_status.rb
|
125
|
+
- lib/candidhealth/clinical_trials/v_1/types/clinical_trial.rb
|
126
|
+
- lib/candidhealth/clinical_trials/v_1/types/clinical_trial_phase.rb
|
127
|
+
- lib/candidhealth/clinical_trials/v_1/types/mutable_clinical_trial.rb
|
125
128
|
- lib/candidhealth/commons/types/billing_provider_commercial_license_type.rb
|
126
129
|
- lib/candidhealth/commons/types/claim_adjustment_group_codes.rb
|
127
130
|
- lib/candidhealth/commons/types/claim_submission_payer_responsibility_type.rb
|
@@ -366,6 +369,8 @@ files:
|
|
366
369
|
- lib/candidhealth/individual/types/individual_base.rb
|
367
370
|
- lib/candidhealth/individual/types/patient.rb
|
368
371
|
- lib/candidhealth/individual/types/patient_base.rb
|
372
|
+
- lib/candidhealth/individual/types/patient_clinical_trial_info.rb
|
373
|
+
- lib/candidhealth/individual/types/patient_clinical_trial_info_create.rb
|
369
374
|
- lib/candidhealth/individual/types/patient_create.rb
|
370
375
|
- lib/candidhealth/individual/types/patient_non_insurance_payer_info.rb
|
371
376
|
- lib/candidhealth/individual/types/patient_non_insurance_payer_info_create.rb
|
@@ -497,6 +502,7 @@ files:
|
|
497
502
|
- lib/candidhealth/pre_encounter/common/types/address.rb
|
498
503
|
- lib/candidhealth/pre_encounter/common/types/address_use.rb
|
499
504
|
- lib/candidhealth/pre_encounter/common/types/base_model.rb
|
505
|
+
- lib/candidhealth/pre_encounter/common/types/canonical_clinical_trial_association.rb
|
500
506
|
- lib/candidhealth/pre_encounter/common/types/canonical_non_insurance_payer_association.rb
|
501
507
|
- lib/candidhealth/pre_encounter/common/types/contact_point.rb
|
502
508
|
- lib/candidhealth/pre_encounter/common/types/contact_point_use.rb
|