candidhealth 0.34.9 → 0.35.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/candidhealth/credentialing/client.rb +30 -0
- data/lib/candidhealth/credentialing/v_2/client.rb +410 -0
- data/lib/candidhealth/credentialing/v_2/types/credentialing_span_status.rb +17 -0
- data/lib/candidhealth/credentialing/v_2/types/provider_credentialing_span.rb +196 -0
- data/lib/candidhealth/credentialing/v_2/types/provider_credentialing_span_page.rb +88 -0
- data/lib/candidhealth/encounters/v_4/client.rb +16 -18
- data/lib/candidhealth/encounters/v_4/types/encounter.rb +10 -10
- data/lib/candidhealth/encounters/v_4/types/encounter_base.rb +2 -10
- data/lib/candidhealth/exports/v_3/client.rb +6 -4
- data/lib/candidhealth/guarantor/v_1/types/guarantor.rb +3 -3
- data/lib/candidhealth/guarantor/v_1/types/guarantor_base.rb +3 -3
- data/lib/candidhealth/guarantor/v_1/types/guarantor_create.rb +4 -4
- data/lib/candidhealth/insurance_adjudications/v_1/client.rb +4 -2
- data/lib/candidhealth/insurance_adjudications/v_1/types/insurance_adjudication_create.rb +10 -2
- data/lib/candidhealth/non_insurance_payers/v_1/types/non_insurance_payer.rb +17 -2
- data/lib/candidhealth/organization_providers/v_3/client.rb +2 -2
- data/lib/candidhealth/pre_encounter/appointments/v_1/client.rb +4 -4
- data/lib/candidhealth/pre_encounter/appointments/v_1/types/appointment_work_queue.rb +1 -0
- data/lib/candidhealth/pre_encounter/common/types/external_provider.rb +2 -2
- data/lib/candidhealth/pre_encounter/coverages/v_1/client.rb +8 -4
- data/lib/candidhealth/pre_encounter/coverages/v_1/types/coverage_benefits.rb +11 -2
- data/lib/candidhealth/pre_encounter/lists/v_1/client.rb +4 -6
- data/lib/candidhealth/pre_encounter/lists/v_1/types/appointment_list_item.rb +12 -2
- data/lib/candidhealth/pre_encounter/patients/v_1/client.rb +239 -4
- data/lib/candidhealth/pre_encounter/patients/v_1/types/do_not_invoice_reason.rb +18 -0
- data/lib/candidhealth/pre_encounter/patients/v_1/types/invalid_mrn_error_body.rb +72 -0
- data/lib/candidhealth/pre_encounter/patients/v_1/types/mutable_patient.rb +11 -2
- data/lib/candidhealth/pre_encounter/patients/v_1/types/mutable_patient_with_mrn.rb +421 -0
- data/lib/candidhealth/pre_encounter/patients/v_1/types/patient.rb +11 -2
- data/lib/candidhealth/service_lines/v_2/client.rb +28 -2
- data/lib/candidhealth/service_lines/v_2/types/service_line_create_standalone.rb +19 -1
- data/lib/candidhealth/x_12/v_1/types/rarc.rb +7 -0
- data/lib/candidhealth.rb +7 -0
- data/lib/requests.rb +2 -2
- data/lib/types_export.rb +6 -1
- metadata +10 -3
- data/lib/candidhealth/encounters/v_4/types/insurance_pay_missing_primary_coverage_error_type.rb +0 -62
@@ -104,6 +104,7 @@ module CandidApiClient
|
|
104
104
|
M_115 = "M115"
|
105
105
|
M_116 = "M116"
|
106
106
|
M_117 = "M117"
|
107
|
+
M_119 = "M119"
|
107
108
|
M_121 = "M121"
|
108
109
|
M_122 = "M122"
|
109
110
|
M_123 = "M123"
|
@@ -210,6 +211,7 @@ module CandidApiClient
|
|
210
211
|
MA_97 = "MA97"
|
211
212
|
MA_99 = "MA99"
|
212
213
|
MA_100 = "MA100"
|
214
|
+
MA_102 = "MA102"
|
213
215
|
MA_103 = "MA103"
|
214
216
|
MA_106 = "MA106"
|
215
217
|
MA_107 = "MA107"
|
@@ -249,6 +251,7 @@ module CandidApiClient
|
|
249
251
|
N_11 = "N11"
|
250
252
|
N_12 = "N12"
|
251
253
|
N_13 = "N13"
|
254
|
+
N_14 = "N14"
|
252
255
|
N_15 = "N15"
|
253
256
|
N_16 = "N16"
|
254
257
|
N_19 = "N19"
|
@@ -325,6 +328,7 @@ module CandidApiClient
|
|
325
328
|
N_97 = "N97"
|
326
329
|
N_98 = "N98"
|
327
330
|
N_99 = "N99"
|
331
|
+
N_102 = "N102"
|
328
332
|
N_103 = "N103"
|
329
333
|
N_104 = "N104"
|
330
334
|
N_105 = "N105"
|
@@ -578,6 +582,7 @@ module CandidApiClient
|
|
578
582
|
N_362 = "N362"
|
579
583
|
N_363 = "N363"
|
580
584
|
N_364 = "N364"
|
585
|
+
N_365 = "N365"
|
581
586
|
N_366 = "N366"
|
582
587
|
N_367 = "N367"
|
583
588
|
N_368 = "N368"
|
@@ -1065,6 +1070,8 @@ module CandidApiClient
|
|
1065
1070
|
N_858 = "N858"
|
1066
1071
|
N_859 = "N859"
|
1067
1072
|
N_860 = "N860"
|
1073
|
+
N_880 = "N880"
|
1074
|
+
N_887 = "N887"
|
1068
1075
|
end
|
1069
1076
|
end
|
1070
1077
|
end
|
data/lib/candidhealth.rb
CHANGED
@@ -7,6 +7,7 @@ require_relative "requests"
|
|
7
7
|
require_relative "candidhealth/auth/client"
|
8
8
|
require_relative "candidhealth/billing_notes/client"
|
9
9
|
require_relative "candidhealth/contracts/client"
|
10
|
+
require_relative "candidhealth/credentialing/client"
|
10
11
|
require_relative "candidhealth/custom_schemas/client"
|
11
12
|
require_relative "candidhealth/eligibility/client"
|
12
13
|
require_relative "candidhealth/encounter_providers/client"
|
@@ -44,6 +45,8 @@ module CandidApiClient
|
|
44
45
|
attr_reader :billing_notes
|
45
46
|
# @return [CandidApiClient::Contracts::Client]
|
46
47
|
attr_reader :contracts
|
48
|
+
# @return [CandidApiClient::Credentialing::Client]
|
49
|
+
attr_reader :credentialing
|
47
50
|
# @return [CandidApiClient::CustomSchemas::Client]
|
48
51
|
attr_reader :custom_schemas
|
49
52
|
# @return [CandidApiClient::Eligibility::Client]
|
@@ -130,6 +133,7 @@ module CandidApiClient
|
|
130
133
|
@auth = CandidApiClient::Auth::Client.new(request_client: @request_client)
|
131
134
|
@billing_notes = CandidApiClient::BillingNotes::Client.new(request_client: @request_client)
|
132
135
|
@contracts = CandidApiClient::Contracts::Client.new(request_client: @request_client)
|
136
|
+
@credentialing = CandidApiClient::Credentialing::Client.new(request_client: @request_client)
|
133
137
|
@custom_schemas = CandidApiClient::CustomSchemas::Client.new(request_client: @request_client)
|
134
138
|
@eligibility = CandidApiClient::Eligibility::Client.new(request_client: @request_client)
|
135
139
|
@encounter_providers = CandidApiClient::EncounterProviders::Client.new(request_client: @request_client)
|
@@ -168,6 +172,8 @@ module CandidApiClient
|
|
168
172
|
attr_reader :billing_notes
|
169
173
|
# @return [CandidApiClient::Contracts::AsyncClient]
|
170
174
|
attr_reader :contracts
|
175
|
+
# @return [CandidApiClient::Credentialing::AsyncClient]
|
176
|
+
attr_reader :credentialing
|
171
177
|
# @return [CandidApiClient::CustomSchemas::AsyncClient]
|
172
178
|
attr_reader :custom_schemas
|
173
179
|
# @return [CandidApiClient::Eligibility::AsyncClient]
|
@@ -254,6 +260,7 @@ module CandidApiClient
|
|
254
260
|
@auth = CandidApiClient::Auth::AsyncClient.new(request_client: @async_request_client)
|
255
261
|
@billing_notes = CandidApiClient::BillingNotes::AsyncClient.new(request_client: @async_request_client)
|
256
262
|
@contracts = CandidApiClient::Contracts::AsyncClient.new(request_client: @async_request_client)
|
263
|
+
@credentialing = CandidApiClient::Credentialing::AsyncClient.new(request_client: @async_request_client)
|
257
264
|
@custom_schemas = CandidApiClient::CustomSchemas::AsyncClient.new(request_client: @async_request_client)
|
258
265
|
@eligibility = CandidApiClient::Eligibility::AsyncClient.new(request_client: @async_request_client)
|
259
266
|
@encounter_providers = CandidApiClient::EncounterProviders::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.35.1" }
|
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.35.1" }
|
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
@@ -18,6 +18,9 @@ require_relative "candidhealth/contracts/v_2/types/contract_with_providers"
|
|
18
18
|
require_relative "candidhealth/contracts/v_2/types/contracts_page"
|
19
19
|
require_relative "candidhealth/contracts/v_2/types/contract_status"
|
20
20
|
require_relative "candidhealth/contracts/v_2/types/authorized_signatory"
|
21
|
+
require_relative "candidhealth/credentialing/v_2/types/provider_credentialing_span"
|
22
|
+
require_relative "candidhealth/credentialing/v_2/types/credentialing_span_status"
|
23
|
+
require_relative "candidhealth/credentialing/v_2/types/provider_credentialing_span_page"
|
21
24
|
require_relative "candidhealth/custom_schemas/v_1/types/schema"
|
22
25
|
require_relative "candidhealth/custom_schemas/v_1/types/schema_instance"
|
23
26
|
require_relative "candidhealth/custom_schemas/v_1/types/schema_field"
|
@@ -66,7 +69,6 @@ require_relative "candidhealth/encounters/v_4/types/encounter_submission_origin_
|
|
66
69
|
require_relative "candidhealth/encounters/v_4/types/synchronicity_type"
|
67
70
|
require_relative "candidhealth/encounters/v_4/types/coding_attribution_type"
|
68
71
|
require_relative "candidhealth/encounters/v_4/types/encounter_page"
|
69
|
-
require_relative "candidhealth/encounters/v_4/types/insurance_pay_missing_primary_coverage_error_type"
|
70
72
|
require_relative "candidhealth/encounters/v_4/types/encounter_external_id_uniqueness_error_type"
|
71
73
|
require_relative "candidhealth/encounters/v_4/types/encounter_patient_control_number_uniqueness_error_type"
|
72
74
|
require_relative "candidhealth/encounters/v_4/types/encounter_guarantor_missing_contact_info_error_type"
|
@@ -305,11 +307,14 @@ require_relative "candidhealth/pre_encounter/patients/v_1/types/marital_status"
|
|
305
307
|
require_relative "candidhealth/pre_encounter/patients/v_1/types/external_provenance"
|
306
308
|
require_relative "candidhealth/pre_encounter/patients/v_1/types/contact"
|
307
309
|
require_relative "candidhealth/pre_encounter/patients/v_1/types/filing_order"
|
310
|
+
require_relative "candidhealth/pre_encounter/patients/v_1/types/do_not_invoice_reason"
|
308
311
|
require_relative "candidhealth/pre_encounter/patients/v_1/types/mutable_patient"
|
312
|
+
require_relative "candidhealth/pre_encounter/patients/v_1/types/mutable_patient_with_mrn"
|
309
313
|
require_relative "candidhealth/pre_encounter/patients/v_1/types/patient"
|
310
314
|
require_relative "candidhealth/pre_encounter/patients/v_1/types/patient_page"
|
311
315
|
require_relative "candidhealth/pre_encounter/patients/v_1/types/potential_duplicate_patient"
|
312
316
|
require_relative "candidhealth/pre_encounter/patients/v_1/types/potential_duplicate_patients_error_body"
|
317
|
+
require_relative "candidhealth/pre_encounter/patients/v_1/types/invalid_mrn_error_body"
|
313
318
|
require_relative "candidhealth/pre_encounter/patients/v_1/types/authorization_unit"
|
314
319
|
require_relative "candidhealth/pre_encounter/patients/v_1/types/authorization"
|
315
320
|
require_relative "candidhealth/pre_encounter/patients/v_1/types/referral"
|
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.35.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- ''
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-
|
11
|
+
date: 2024-11-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: async-http-faraday
|
@@ -158,6 +158,11 @@ files:
|
|
158
158
|
- lib/candidhealth/contracts/v_2/types/date_update.rb
|
159
159
|
- lib/candidhealth/contracts/v_2/types/insurance_types.rb
|
160
160
|
- lib/candidhealth/contracts/v_2/types/regions_update.rb
|
161
|
+
- lib/candidhealth/credentialing/client.rb
|
162
|
+
- lib/candidhealth/credentialing/v_2/client.rb
|
163
|
+
- lib/candidhealth/credentialing/v_2/types/credentialing_span_status.rb
|
164
|
+
- lib/candidhealth/credentialing/v_2/types/provider_credentialing_span.rb
|
165
|
+
- lib/candidhealth/credentialing/v_2/types/provider_credentialing_span_page.rb
|
161
166
|
- lib/candidhealth/custom_schemas/client.rb
|
162
167
|
- lib/candidhealth/custom_schemas/v_1/client.rb
|
163
168
|
- lib/candidhealth/custom_schemas/v_1/types/key_with_name_already_exists_error.rb
|
@@ -209,7 +214,6 @@ files:
|
|
209
214
|
- lib/candidhealth/encounters/v_4/types/encounter_patient_control_number_uniqueness_error_type.rb
|
210
215
|
- lib/candidhealth/encounters/v_4/types/encounter_sort_options.rb
|
211
216
|
- lib/candidhealth/encounters/v_4/types/encounter_submission_origin_type.rb
|
212
|
-
- lib/candidhealth/encounters/v_4/types/insurance_pay_missing_primary_coverage_error_type.rb
|
213
217
|
- lib/candidhealth/encounters/v_4/types/intake_follow_up.rb
|
214
218
|
- lib/candidhealth/encounters/v_4/types/intake_question.rb
|
215
219
|
- lib/candidhealth/encounters/v_4/types/intake_response_and_follow_ups.rb
|
@@ -526,11 +530,14 @@ files:
|
|
526
530
|
- lib/candidhealth/pre_encounter/patients/v_1/types/authorization.rb
|
527
531
|
- lib/candidhealth/pre_encounter/patients/v_1/types/authorization_unit.rb
|
528
532
|
- lib/candidhealth/pre_encounter/patients/v_1/types/contact.rb
|
533
|
+
- lib/candidhealth/pre_encounter/patients/v_1/types/do_not_invoice_reason.rb
|
529
534
|
- lib/candidhealth/pre_encounter/patients/v_1/types/external_provenance.rb
|
530
535
|
- lib/candidhealth/pre_encounter/patients/v_1/types/filing_order.rb
|
531
536
|
- lib/candidhealth/pre_encounter/patients/v_1/types/guarantor.rb
|
537
|
+
- lib/candidhealth/pre_encounter/patients/v_1/types/invalid_mrn_error_body.rb
|
532
538
|
- lib/candidhealth/pre_encounter/patients/v_1/types/marital_status.rb
|
533
539
|
- lib/candidhealth/pre_encounter/patients/v_1/types/mutable_patient.rb
|
540
|
+
- lib/candidhealth/pre_encounter/patients/v_1/types/mutable_patient_with_mrn.rb
|
534
541
|
- lib/candidhealth/pre_encounter/patients/v_1/types/patient.rb
|
535
542
|
- lib/candidhealth/pre_encounter/patients/v_1/types/patient_page.rb
|
536
543
|
- lib/candidhealth/pre_encounter/patients/v_1/types/potential_duplicate_patient.rb
|
data/lib/candidhealth/encounters/v_4/types/insurance_pay_missing_primary_coverage_error_type.rb
DELETED
@@ -1,62 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
require "ostruct"
|
4
|
-
require "json"
|
5
|
-
|
6
|
-
module CandidApiClient
|
7
|
-
module Encounters
|
8
|
-
module V4
|
9
|
-
module Types
|
10
|
-
class InsurancePayMissingPrimaryCoverageErrorType
|
11
|
-
# @return [String]
|
12
|
-
attr_reader :patient_id
|
13
|
-
# @return [OpenStruct] Additional properties unmapped to the current class definition
|
14
|
-
attr_reader :additional_properties
|
15
|
-
# @return [Object]
|
16
|
-
attr_reader :_field_set
|
17
|
-
protected :_field_set
|
18
|
-
|
19
|
-
OMIT = Object.new
|
20
|
-
|
21
|
-
# @param patient_id [String]
|
22
|
-
# @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
|
23
|
-
# @return [CandidApiClient::Encounters::V4::Types::InsurancePayMissingPrimaryCoverageErrorType]
|
24
|
-
def initialize(patient_id:, additional_properties: nil)
|
25
|
-
@patient_id = patient_id
|
26
|
-
@additional_properties = additional_properties
|
27
|
-
@_field_set = { "patient_id": patient_id }
|
28
|
-
end
|
29
|
-
|
30
|
-
# Deserialize a JSON object to an instance of
|
31
|
-
# InsurancePayMissingPrimaryCoverageErrorType
|
32
|
-
#
|
33
|
-
# @param json_object [String]
|
34
|
-
# @return [CandidApiClient::Encounters::V4::Types::InsurancePayMissingPrimaryCoverageErrorType]
|
35
|
-
def self.from_json(json_object:)
|
36
|
-
struct = JSON.parse(json_object, object_class: OpenStruct)
|
37
|
-
patient_id = struct["patient_id"]
|
38
|
-
new(patient_id: patient_id, additional_properties: struct)
|
39
|
-
end
|
40
|
-
|
41
|
-
# Serialize an instance of InsurancePayMissingPrimaryCoverageErrorType to a JSON
|
42
|
-
# object
|
43
|
-
#
|
44
|
-
# @return [String]
|
45
|
-
def to_json(*_args)
|
46
|
-
@_field_set&.to_json
|
47
|
-
end
|
48
|
-
|
49
|
-
# Leveraged for Union-type generation, validate_raw attempts to parse the given
|
50
|
-
# hash and check each fields type against the current object's property
|
51
|
-
# definitions.
|
52
|
-
#
|
53
|
-
# @param obj [Object]
|
54
|
-
# @return [Void]
|
55
|
-
def self.validate_raw(obj:)
|
56
|
-
obj.patient_id.is_a?(String) != false || raise("Passed value for field obj.patient_id is not the expected type, validation failed.")
|
57
|
-
end
|
58
|
-
end
|
59
|
-
end
|
60
|
-
end
|
61
|
-
end
|
62
|
-
end
|