candidhealth 0.24.6 → 0.25.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/auth/v_2/client.rb +2 -2
- data/lib/candidhealth/billing_notes/v_2/client.rb +2 -2
- data/lib/candidhealth/contracts/v_2/client.rb +10 -10
- data/lib/candidhealth/custom_schemas/v_1/client.rb +8 -8
- data/lib/candidhealth/eligibility/v_2/client.rb +6 -6
- data/lib/candidhealth/encounters/v_4/client.rb +8 -8
- data/lib/candidhealth/expected_network_status/v_1/client.rb +2 -2
- data/lib/candidhealth/expected_network_status/v_2/client.rb +4 -4
- data/lib/candidhealth/exports/v_3/client.rb +2 -2
- data/lib/candidhealth/external_payment_account_config/v_1/client.rb +2 -2
- data/lib/candidhealth/fee_schedules/v_3/client.rb +20 -20
- data/lib/candidhealth/financials/types/allocation_target.rb +13 -0
- data/lib/candidhealth/financials/types/allocation_target_create.rb +12 -0
- data/lib/candidhealth/financials/types/appointment_allocation_target.rb +58 -0
- data/lib/candidhealth/guarantor/v_1/client.rb +6 -6
- data/lib/candidhealth/import_invoice/v_1/client.rb +8 -8
- data/lib/candidhealth/insurance_adjudications/v_1/client.rb +6 -6
- data/lib/candidhealth/insurance_payments/v_1/client.rb +10 -10
- data/lib/candidhealth/insurance_refunds/v_1/client.rb +10 -10
- data/lib/candidhealth/organization_providers/v_3/client.rb +8 -8
- data/lib/candidhealth/organization_service_facilities/v_2/client.rb +10 -10
- data/lib/candidhealth/patient_payments/v_4/client.rb +10 -10
- data/lib/candidhealth/patient_refunds/v_1/client.rb +10 -10
- data/lib/candidhealth/payers/v_3/client.rb +4 -4
- data/lib/candidhealth/pre_encounter/common/types/external_provider.rb +129 -0
- data/lib/candidhealth/pre_encounter/common/types/external_provider_type.rb +14 -0
- data/lib/candidhealth/pre_encounter/coverages/v_1/client.rb +28 -24
- data/lib/candidhealth/pre_encounter/coverages/v_1/types/insurance_plan.rb +13 -4
- data/lib/candidhealth/pre_encounter/coverages/v_1/types/insurance_type_code.rb +86 -0
- data/lib/candidhealth/pre_encounter/coverages/v_1/types/network_type.rb +5 -0
- data/lib/candidhealth/pre_encounter/coverages/v_1/types/subscriber.rb +10 -10
- data/lib/candidhealth/pre_encounter/patients/v_1/client.rb +22 -22
- data/lib/candidhealth/pre_encounter/patients/v_1/types/contact.rb +1 -11
- data/lib/candidhealth/pre_encounter/patients/v_1/types/mutable_patient.rb +14 -10
- data/lib/candidhealth/pre_encounter/patients/v_1/types/patient.rb +13 -9
- data/lib/candidhealth/service_facility/client.rb +2 -2
- data/lib/candidhealth/service_lines/client.rb +30 -0
- data/lib/candidhealth/service_lines/v_2/client.rb +229 -0
- data/lib/candidhealth/service_lines/v_2/types/service_line_create_standalone.rb +279 -0
- data/lib/candidhealth/service_lines/v_2/types/service_line_update.rb +281 -0
- data/lib/candidhealth/tasks/v_3/client.rb +10 -10
- data/lib/candidhealth/write_offs/v_1/client.rb +8 -8
- data/lib/candidhealth/write_offs/v_1/types/patient_write_off.rb +18 -2
- data/lib/candidhealth.rb +9 -2
- data/lib/environment.rb +8 -0
- data/lib/requests.rb +6 -4
- data/lib/types_export.rb +6 -1
- metadata +10 -3
- data/lib/candidhealth/pre_encounter/patients/v_1/types/external_provider.rb +0 -122
@@ -38,7 +38,7 @@ module CandidApiClient
|
|
38
38
|
# @param request_options [CandidApiClient::RequestOptions]
|
39
39
|
# @return [CandidApiClient::WriteOffs::V1::Types::WriteOffsPage]
|
40
40
|
# @example
|
41
|
-
# api = CandidApiClient::Client.new(base_url: "https://api.example.com")
|
41
|
+
# api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
|
42
42
|
# api.write_offs.v_1.get_multi(
|
43
43
|
# limit: 1,
|
44
44
|
# patient_external_id: "string",
|
@@ -86,7 +86,7 @@ module CandidApiClient
|
|
86
86
|
# @param request_options [CandidApiClient::RequestOptions]
|
87
87
|
# @return [CandidApiClient::WriteOffs::V1::Types::WriteOff]
|
88
88
|
# @example
|
89
|
-
# api = CandidApiClient::Client.new(base_url: "https://api.example.com")
|
89
|
+
# api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
|
90
90
|
# api.write_offs.v_1.get(write_off_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32")
|
91
91
|
def get(write_off_id:, request_options: nil)
|
92
92
|
response = @request_client.conn.get do |req|
|
@@ -110,7 +110,7 @@ module CandidApiClient
|
|
110
110
|
# @param request_options [CandidApiClient::RequestOptions]
|
111
111
|
# @return [CandidApiClient::WriteOffs::V1::Types::CreateWriteOffsResponse]
|
112
112
|
# @example
|
113
|
-
# api = CandidApiClient::Client.new(base_url: "https://api.example.com")
|
113
|
+
# api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
|
114
114
|
# api.write_offs.v_1.create(write_offs: )
|
115
115
|
def create(write_offs:, request_options: nil)
|
116
116
|
response = @request_client.conn.post do |req|
|
@@ -134,7 +134,7 @@ module CandidApiClient
|
|
134
134
|
# @param request_options [CandidApiClient::RequestOptions]
|
135
135
|
# @return [CandidApiClient::WriteOffs::V1::Types::WriteOff]
|
136
136
|
# @example
|
137
|
-
# api = CandidApiClient::Client.new(base_url: "https://api.example.com")
|
137
|
+
# api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
|
138
138
|
# api.write_offs.v_1.revert(write_off_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32")
|
139
139
|
def revert(write_off_id:, request_options: nil)
|
140
140
|
response = @request_client.conn.post do |req|
|
@@ -177,7 +177,7 @@ module CandidApiClient
|
|
177
177
|
# @param request_options [CandidApiClient::RequestOptions]
|
178
178
|
# @return [CandidApiClient::WriteOffs::V1::Types::WriteOffsPage]
|
179
179
|
# @example
|
180
|
-
# api = CandidApiClient::Client.new(base_url: "https://api.example.com")
|
180
|
+
# api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
|
181
181
|
# api.write_offs.v_1.get_multi(
|
182
182
|
# limit: 1,
|
183
183
|
# patient_external_id: "string",
|
@@ -227,7 +227,7 @@ module CandidApiClient
|
|
227
227
|
# @param request_options [CandidApiClient::RequestOptions]
|
228
228
|
# @return [CandidApiClient::WriteOffs::V1::Types::WriteOff]
|
229
229
|
# @example
|
230
|
-
# api = CandidApiClient::Client.new(base_url: "https://api.example.com")
|
230
|
+
# api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
|
231
231
|
# api.write_offs.v_1.get(write_off_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32")
|
232
232
|
def get(write_off_id:, request_options: nil)
|
233
233
|
Async do
|
@@ -253,7 +253,7 @@ module CandidApiClient
|
|
253
253
|
# @param request_options [CandidApiClient::RequestOptions]
|
254
254
|
# @return [CandidApiClient::WriteOffs::V1::Types::CreateWriteOffsResponse]
|
255
255
|
# @example
|
256
|
-
# api = CandidApiClient::Client.new(base_url: "https://api.example.com")
|
256
|
+
# api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
|
257
257
|
# api.write_offs.v_1.create(write_offs: )
|
258
258
|
def create(write_offs:, request_options: nil)
|
259
259
|
Async do
|
@@ -279,7 +279,7 @@ module CandidApiClient
|
|
279
279
|
# @param request_options [CandidApiClient::RequestOptions]
|
280
280
|
# @return [CandidApiClient::WriteOffs::V1::Types::WriteOff]
|
281
281
|
# @example
|
282
|
-
# api = CandidApiClient::Client.new(base_url: "https://api.example.com")
|
282
|
+
# api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
|
283
283
|
# api.write_offs.v_1.revert(write_off_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32")
|
284
284
|
def revert(write_off_id:, request_options: nil)
|
285
285
|
Async do
|
@@ -19,6 +19,10 @@ module CandidApiClient
|
|
19
19
|
# @return [CandidApiClient::WriteOffs::V1::Types::PatientWriteOffReason]
|
20
20
|
attr_reader :write_off_reason
|
21
21
|
# @return [String]
|
22
|
+
attr_reader :patient_external_id
|
23
|
+
# @return [String]
|
24
|
+
attr_reader :claim_id
|
25
|
+
# @return [String]
|
22
26
|
attr_reader :service_line_id
|
23
27
|
# @return [String]
|
24
28
|
attr_reader :reverts_write_off_id
|
@@ -38,18 +42,22 @@ module CandidApiClient
|
|
38
42
|
# @param write_off_timestamp [DateTime]
|
39
43
|
# @param write_off_note [String]
|
40
44
|
# @param write_off_reason [CandidApiClient::WriteOffs::V1::Types::PatientWriteOffReason]
|
45
|
+
# @param patient_external_id [String]
|
46
|
+
# @param claim_id [String]
|
41
47
|
# @param service_line_id [String]
|
42
48
|
# @param reverts_write_off_id [String]
|
43
49
|
# @param reverted_by_write_off_id [String]
|
44
50
|
# @param amount_cents [Integer]
|
45
51
|
# @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
|
46
52
|
# @return [CandidApiClient::WriteOffs::V1::Types::PatientWriteOff]
|
47
|
-
def initialize(write_off_id:, write_off_timestamp:, write_off_reason:,
|
48
|
-
write_off_note: OMIT, reverts_write_off_id: OMIT, reverted_by_write_off_id: OMIT, additional_properties: nil)
|
53
|
+
def initialize(write_off_id:, write_off_timestamp:, write_off_reason:, patient_external_id:, claim_id:,
|
54
|
+
service_line_id:, amount_cents:, write_off_note: OMIT, reverts_write_off_id: OMIT, reverted_by_write_off_id: OMIT, additional_properties: nil)
|
49
55
|
@write_off_id = write_off_id
|
50
56
|
@write_off_timestamp = write_off_timestamp
|
51
57
|
@write_off_note = write_off_note if write_off_note != OMIT
|
52
58
|
@write_off_reason = write_off_reason
|
59
|
+
@patient_external_id = patient_external_id
|
60
|
+
@claim_id = claim_id
|
53
61
|
@service_line_id = service_line_id
|
54
62
|
@reverts_write_off_id = reverts_write_off_id if reverts_write_off_id != OMIT
|
55
63
|
@reverted_by_write_off_id = reverted_by_write_off_id if reverted_by_write_off_id != OMIT
|
@@ -60,6 +68,8 @@ module CandidApiClient
|
|
60
68
|
"write_off_timestamp": write_off_timestamp,
|
61
69
|
"write_off_note": write_off_note,
|
62
70
|
"write_off_reason": write_off_reason,
|
71
|
+
"patient_external_id": patient_external_id,
|
72
|
+
"claim_id": claim_id,
|
63
73
|
"service_line_id": service_line_id,
|
64
74
|
"reverts_write_off_id": reverts_write_off_id,
|
65
75
|
"reverted_by_write_off_id": reverted_by_write_off_id,
|
@@ -82,6 +92,8 @@ module CandidApiClient
|
|
82
92
|
end
|
83
93
|
write_off_note = struct["write_off_note"]
|
84
94
|
write_off_reason = struct["write_off_reason"]
|
95
|
+
patient_external_id = struct["patient_external_id"]
|
96
|
+
claim_id = struct["claim_id"]
|
85
97
|
service_line_id = struct["service_line_id"]
|
86
98
|
reverts_write_off_id = struct["reverts_write_off_id"]
|
87
99
|
reverted_by_write_off_id = struct["reverted_by_write_off_id"]
|
@@ -91,6 +103,8 @@ module CandidApiClient
|
|
91
103
|
write_off_timestamp: write_off_timestamp,
|
92
104
|
write_off_note: write_off_note,
|
93
105
|
write_off_reason: write_off_reason,
|
106
|
+
patient_external_id: patient_external_id,
|
107
|
+
claim_id: claim_id,
|
94
108
|
service_line_id: service_line_id,
|
95
109
|
reverts_write_off_id: reverts_write_off_id,
|
96
110
|
reverted_by_write_off_id: reverted_by_write_off_id,
|
@@ -117,6 +131,8 @@ module CandidApiClient
|
|
117
131
|
obj.write_off_timestamp.is_a?(DateTime) != false || raise("Passed value for field obj.write_off_timestamp is not the expected type, validation failed.")
|
118
132
|
obj.write_off_note&.is_a?(String) != false || raise("Passed value for field obj.write_off_note is not the expected type, validation failed.")
|
119
133
|
obj.write_off_reason.is_a?(CandidApiClient::WriteOffs::V1::Types::PatientWriteOffReason) != false || raise("Passed value for field obj.write_off_reason is not the expected type, validation failed.")
|
134
|
+
obj.patient_external_id.is_a?(String) != false || raise("Passed value for field obj.patient_external_id is not the expected type, validation failed.")
|
135
|
+
obj.claim_id.is_a?(String) != false || raise("Passed value for field obj.claim_id is not the expected type, validation failed.")
|
120
136
|
obj.service_line_id.is_a?(String) != false || raise("Passed value for field obj.service_line_id is not the expected type, validation failed.")
|
121
137
|
obj.reverts_write_off_id&.is_a?(String) != false || raise("Passed value for field obj.reverts_write_off_id is not the expected type, validation failed.")
|
122
138
|
obj.reverted_by_write_off_id&.is_a?(String) != false || raise("Passed value for field obj.reverted_by_write_off_id is not the expected type, validation failed.")
|
data/lib/candidhealth.rb
CHANGED
@@ -24,6 +24,7 @@ require_relative "candidhealth/organization_providers/client"
|
|
24
24
|
require_relative "candidhealth/patient_payments/client"
|
25
25
|
require_relative "candidhealth/patient_refunds/client"
|
26
26
|
require_relative "candidhealth/payers/client"
|
27
|
+
require_relative "candidhealth/service_lines/client"
|
27
28
|
require_relative "candidhealth/tasks/client"
|
28
29
|
require_relative "candidhealth/write_offs/client"
|
29
30
|
require_relative "candidhealth/pre_encounter/client"
|
@@ -71,6 +72,8 @@ module CandidApiClient
|
|
71
72
|
attr_reader :patient_refunds
|
72
73
|
# @return [CandidApiClient::Payers::Client]
|
73
74
|
attr_reader :payers
|
75
|
+
# @return [CandidApiClient::ServiceLines::Client]
|
76
|
+
attr_reader :service_lines
|
74
77
|
# @return [CandidApiClient::Tasks::Client]
|
75
78
|
attr_reader :tasks
|
76
79
|
# @return [CandidApiClient::WriteOffs::Client]
|
@@ -87,7 +90,7 @@ module CandidApiClient
|
|
87
90
|
# @param client_id [String]
|
88
91
|
# @param client_secret [String]
|
89
92
|
# @return [CandidApiClient::Client]
|
90
|
-
def initialize(client_id:, client_secret:, base_url: nil, environment:
|
93
|
+
def initialize(client_id:, client_secret:, base_url: nil, environment: CandidApiClient::Environment::PRODUCTION, max_retries: nil,
|
91
94
|
timeout_in_seconds: nil)
|
92
95
|
@oauth_provider = CandidApiClient::OauthTokenProvider.new(
|
93
96
|
client_id: client_id,
|
@@ -126,6 +129,7 @@ module CandidApiClient
|
|
126
129
|
@patient_payments = CandidApiClient::PatientPayments::Client.new(request_client: @request_client)
|
127
130
|
@patient_refunds = CandidApiClient::PatientRefunds::Client.new(request_client: @request_client)
|
128
131
|
@payers = CandidApiClient::Payers::Client.new(request_client: @request_client)
|
132
|
+
@service_lines = CandidApiClient::ServiceLines::Client.new(request_client: @request_client)
|
129
133
|
@tasks = CandidApiClient::Tasks::Client.new(request_client: @request_client)
|
130
134
|
@write_offs = CandidApiClient::WriteOffs::Client.new(request_client: @request_client)
|
131
135
|
@pre_encounter = CandidApiClient::PreEncounter::Client.new(request_client: @request_client)
|
@@ -174,6 +178,8 @@ module CandidApiClient
|
|
174
178
|
attr_reader :patient_refunds
|
175
179
|
# @return [CandidApiClient::Payers::AsyncClient]
|
176
180
|
attr_reader :payers
|
181
|
+
# @return [CandidApiClient::ServiceLines::AsyncClient]
|
182
|
+
attr_reader :service_lines
|
177
183
|
# @return [CandidApiClient::Tasks::AsyncClient]
|
178
184
|
attr_reader :tasks
|
179
185
|
# @return [CandidApiClient::WriteOffs::AsyncClient]
|
@@ -190,7 +196,7 @@ module CandidApiClient
|
|
190
196
|
# @param client_id [String]
|
191
197
|
# @param client_secret [String]
|
192
198
|
# @return [CandidApiClient::AsyncClient]
|
193
|
-
def initialize(client_id:, client_secret:, base_url: nil, environment:
|
199
|
+
def initialize(client_id:, client_secret:, base_url: nil, environment: CandidApiClient::Environment::PRODUCTION, max_retries: nil,
|
194
200
|
timeout_in_seconds: nil)
|
195
201
|
@oauth_provider = CandidApiClient::OauthTokenProvider.new(
|
196
202
|
client_id: client_id,
|
@@ -229,6 +235,7 @@ module CandidApiClient
|
|
229
235
|
@patient_payments = CandidApiClient::PatientPayments::AsyncClient.new(request_client: @async_request_client)
|
230
236
|
@patient_refunds = CandidApiClient::PatientRefunds::AsyncClient.new(request_client: @async_request_client)
|
231
237
|
@payers = CandidApiClient::Payers::AsyncClient.new(request_client: @async_request_client)
|
238
|
+
@service_lines = CandidApiClient::ServiceLines::AsyncClient.new(request_client: @async_request_client)
|
232
239
|
@tasks = CandidApiClient::Tasks::AsyncClient.new(request_client: @async_request_client)
|
233
240
|
@write_offs = CandidApiClient::WriteOffs::AsyncClient.new(request_client: @async_request_client)
|
234
241
|
@pre_encounter = CandidApiClient::PreEncounter::AsyncClient.new(request_client: @async_request_client)
|
data/lib/environment.rb
CHANGED
@@ -2,5 +2,13 @@
|
|
2
2
|
|
3
3
|
module CandidApiClient
|
4
4
|
class Environment
|
5
|
+
PRODUCTION = {
|
6
|
+
CandidApi: "https://api.joincandidhealth.com",
|
7
|
+
PreEncounter: "https://pre-api.joincandidhealth.com"
|
8
|
+
}.freeze
|
9
|
+
STAGING = {
|
10
|
+
CandidApi: "https://api-staging.joincandidhealth.com",
|
11
|
+
PreEncounter: "https://pre-api-staging.joincandidhealth.com"
|
12
|
+
}.freeze
|
5
13
|
end
|
6
14
|
end
|
data/lib/requests.rb
CHANGED
@@ -22,7 +22,8 @@ module CandidApiClient
|
|
22
22
|
# @param timeout_in_seconds [Long]
|
23
23
|
# @param token [String, Method]
|
24
24
|
# @return [CandidApiClient::RequestClient]
|
25
|
-
def initialize(base_url: nil, environment:
|
25
|
+
def initialize(base_url: nil, environment: CandidApiClient::Environment::PRODUCTION, max_retries: nil,
|
26
|
+
timeout_in_seconds: nil, token: nil)
|
26
27
|
@default_environment = environment
|
27
28
|
@token = token
|
28
29
|
@conn = Faraday.new do |faraday|
|
@@ -42,7 +43,7 @@ module CandidApiClient
|
|
42
43
|
|
43
44
|
# @return [Hash{String => String}]
|
44
45
|
def get_headers
|
45
|
-
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.25.0" }
|
46
47
|
headers["Authorization"] = ((@token.is_a? Method) ? @token.call : @token) unless token.nil?
|
47
48
|
headers
|
48
49
|
end
|
@@ -64,7 +65,8 @@ module CandidApiClient
|
|
64
65
|
# @param timeout_in_seconds [Long]
|
65
66
|
# @param token [String, Method]
|
66
67
|
# @return [CandidApiClient::AsyncRequestClient]
|
67
|
-
def initialize(base_url: nil, environment:
|
68
|
+
def initialize(base_url: nil, environment: CandidApiClient::Environment::PRODUCTION, max_retries: nil,
|
69
|
+
timeout_in_seconds: nil, token: nil)
|
68
70
|
@default_environment = environment
|
69
71
|
@token = token
|
70
72
|
@conn = Faraday.new do |faraday|
|
@@ -85,7 +87,7 @@ module CandidApiClient
|
|
85
87
|
|
86
88
|
# @return [Hash{String => String}]
|
87
89
|
def get_headers
|
88
|
-
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.25.0" }
|
89
91
|
headers["Authorization"] = ((@token.is_a? Method) ? @token.call : @token) unless token.nil?
|
90
92
|
headers
|
91
93
|
end
|
data/lib/types_export.rb
CHANGED
@@ -198,6 +198,8 @@ require_relative "candidhealth/payers/v_3/types/payer_identifier"
|
|
198
198
|
require_relative "candidhealth/remits/v_1/types/payee_identifier"
|
199
199
|
require_relative "candidhealth/remits/v_1/types/payee"
|
200
200
|
require_relative "candidhealth/service_lines/v_2/types/service_line_create"
|
201
|
+
require_relative "candidhealth/service_lines/v_2/types/service_line_create_standalone"
|
202
|
+
require_relative "candidhealth/service_lines/v_2/types/service_line_update"
|
201
203
|
require_relative "candidhealth/service_lines/v_2/types/service_line"
|
202
204
|
require_relative "candidhealth/service_lines/v_2/types/service_line_era_data"
|
203
205
|
require_relative "candidhealth/service_lines/v_2/types/service_line_adjustment"
|
@@ -240,10 +242,10 @@ require_relative "candidhealth/pre_encounter/coverages/v_1/types/network_type"
|
|
240
242
|
require_relative "candidhealth/pre_encounter/coverages/v_1/types/insurance_plan"
|
241
243
|
require_relative "candidhealth/pre_encounter/coverages/v_1/types/mutable_coverage"
|
242
244
|
require_relative "candidhealth/pre_encounter/coverages/v_1/types/coverage"
|
245
|
+
require_relative "candidhealth/pre_encounter/coverages/v_1/types/insurance_type_code"
|
243
246
|
require_relative "candidhealth/pre_encounter/patients/v_1/types/marital_status"
|
244
247
|
require_relative "candidhealth/pre_encounter/patients/v_1/types/external_provenance"
|
245
248
|
require_relative "candidhealth/pre_encounter/patients/v_1/types/contact"
|
246
|
-
require_relative "candidhealth/pre_encounter/patients/v_1/types/external_provider"
|
247
249
|
require_relative "candidhealth/pre_encounter/patients/v_1/types/filing_order"
|
248
250
|
require_relative "candidhealth/pre_encounter/patients/v_1/types/mutable_patient"
|
249
251
|
require_relative "candidhealth/pre_encounter/patients/v_1/types/patient"
|
@@ -298,6 +300,7 @@ require_relative "candidhealth/financials/types/allocation"
|
|
298
300
|
require_relative "candidhealth/financials/types/service_line_allocation_target"
|
299
301
|
require_relative "candidhealth/financials/types/claim_allocation_target"
|
300
302
|
require_relative "candidhealth/financials/types/billing_provider_allocation_target"
|
303
|
+
require_relative "candidhealth/financials/types/appointment_allocation_target"
|
301
304
|
require_relative "candidhealth/financials/types/allocation_target"
|
302
305
|
require_relative "candidhealth/financials/types/allocation_create"
|
303
306
|
require_relative "candidhealth/financials/types/allocation_target_create"
|
@@ -350,3 +353,5 @@ require_relative "candidhealth/pre_encounter/common/types/contact_point"
|
|
350
353
|
require_relative "candidhealth/pre_encounter/common/types/error_base"
|
351
354
|
require_relative "candidhealth/pre_encounter/common/types/not_found_error_body"
|
352
355
|
require_relative "candidhealth/pre_encounter/common/types/version_conflict_error_body"
|
356
|
+
require_relative "candidhealth/pre_encounter/common/types/external_provider_type"
|
357
|
+
require_relative "candidhealth/pre_encounter/common/types/external_provider"
|
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.25.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- ''
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-08-
|
11
|
+
date: 2024-08-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: async-http-faraday
|
@@ -289,6 +289,7 @@ files:
|
|
289
289
|
- lib/candidhealth/financials/types/allocation_create.rb
|
290
290
|
- lib/candidhealth/financials/types/allocation_target.rb
|
291
291
|
- lib/candidhealth/financials/types/allocation_target_create.rb
|
292
|
+
- lib/candidhealth/financials/types/appointment_allocation_target.rb
|
292
293
|
- lib/candidhealth/financials/types/billing_provider_allocation_target.rb
|
293
294
|
- lib/candidhealth/financials/types/claim_allocation_target.rb
|
294
295
|
- lib/candidhealth/financials/types/invoice_update.rb
|
@@ -419,6 +420,8 @@ files:
|
|
419
420
|
- lib/candidhealth/pre_encounter/common/types/disability_status.rb
|
420
421
|
- lib/candidhealth/pre_encounter/common/types/error_base.rb
|
421
422
|
- lib/candidhealth/pre_encounter/common/types/ethnicity.rb
|
423
|
+
- lib/candidhealth/pre_encounter/common/types/external_provider.rb
|
424
|
+
- lib/candidhealth/pre_encounter/common/types/external_provider_type.rb
|
422
425
|
- lib/candidhealth/pre_encounter/common/types/gender.rb
|
423
426
|
- lib/candidhealth/pre_encounter/common/types/human_name.rb
|
424
427
|
- lib/candidhealth/pre_encounter/common/types/name_use.rb
|
@@ -434,6 +437,7 @@ files:
|
|
434
437
|
- lib/candidhealth/pre_encounter/coverages/v_1/types/coverage.rb
|
435
438
|
- lib/candidhealth/pre_encounter/coverages/v_1/types/coverage_status.rb
|
436
439
|
- lib/candidhealth/pre_encounter/coverages/v_1/types/insurance_plan.rb
|
440
|
+
- lib/candidhealth/pre_encounter/coverages/v_1/types/insurance_type_code.rb
|
437
441
|
- lib/candidhealth/pre_encounter/coverages/v_1/types/mutable_coverage.rb
|
438
442
|
- lib/candidhealth/pre_encounter/coverages/v_1/types/network_type.rb
|
439
443
|
- lib/candidhealth/pre_encounter/coverages/v_1/types/subscriber.rb
|
@@ -441,7 +445,6 @@ files:
|
|
441
445
|
- lib/candidhealth/pre_encounter/patients/v_1/client.rb
|
442
446
|
- lib/candidhealth/pre_encounter/patients/v_1/types/contact.rb
|
443
447
|
- lib/candidhealth/pre_encounter/patients/v_1/types/external_provenance.rb
|
444
|
-
- lib/candidhealth/pre_encounter/patients/v_1/types/external_provider.rb
|
445
448
|
- lib/candidhealth/pre_encounter/patients/v_1/types/filing_order.rb
|
446
449
|
- lib/candidhealth/pre_encounter/patients/v_1/types/marital_status.rb
|
447
450
|
- lib/candidhealth/pre_encounter/patients/v_1/types/mutable_patient.rb
|
@@ -451,6 +454,8 @@ files:
|
|
451
454
|
- lib/candidhealth/service_facility/client.rb
|
452
455
|
- lib/candidhealth/service_facility/types/encounter_service_facility.rb
|
453
456
|
- lib/candidhealth/service_facility/types/encounter_service_facility_base.rb
|
457
|
+
- lib/candidhealth/service_lines/client.rb
|
458
|
+
- lib/candidhealth/service_lines/v_2/client.rb
|
454
459
|
- lib/candidhealth/service_lines/v_2/types/denial_reason_content.rb
|
455
460
|
- lib/candidhealth/service_lines/v_2/types/drug_identification.rb
|
456
461
|
- lib/candidhealth/service_lines/v_2/types/measurement_unit_code.rb
|
@@ -458,8 +463,10 @@ files:
|
|
458
463
|
- lib/candidhealth/service_lines/v_2/types/service_line.rb
|
459
464
|
- lib/candidhealth/service_lines/v_2/types/service_line_adjustment.rb
|
460
465
|
- lib/candidhealth/service_lines/v_2/types/service_line_create.rb
|
466
|
+
- lib/candidhealth/service_lines/v_2/types/service_line_create_standalone.rb
|
461
467
|
- lib/candidhealth/service_lines/v_2/types/service_line_denial_reason.rb
|
462
468
|
- lib/candidhealth/service_lines/v_2/types/service_line_era_data.rb
|
469
|
+
- lib/candidhealth/service_lines/v_2/types/service_line_update.rb
|
463
470
|
- lib/candidhealth/tags/types/tag.rb
|
464
471
|
- lib/candidhealth/tags/types/tag_color_enum.rb
|
465
472
|
- lib/candidhealth/tags/types/tag_create.rb
|
@@ -1,122 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
require_relative "../../../common/types/human_name"
|
4
|
-
require_relative "../../../common/types/contact_point"
|
5
|
-
require_relative "../../../common/types/address"
|
6
|
-
require_relative "../../../common/types/period"
|
7
|
-
require "ostruct"
|
8
|
-
require "json"
|
9
|
-
|
10
|
-
module CandidApiClient
|
11
|
-
module PreEncounter
|
12
|
-
module Patients
|
13
|
-
module V1
|
14
|
-
module Types
|
15
|
-
class ExternalProvider
|
16
|
-
# @return [CandidApiClient::PreEncounter::Common::Types::HumanName]
|
17
|
-
attr_reader :name
|
18
|
-
# @return [String]
|
19
|
-
attr_reader :npi
|
20
|
-
# @return [Array<CandidApiClient::PreEncounter::Common::Types::ContactPoint>]
|
21
|
-
attr_reader :telecoms
|
22
|
-
# @return [Array<CandidApiClient::PreEncounter::Common::Types::Address>]
|
23
|
-
attr_reader :addresses
|
24
|
-
# @return [CandidApiClient::PreEncounter::Common::Types::Period]
|
25
|
-
attr_reader :period
|
26
|
-
# @return [OpenStruct] Additional properties unmapped to the current class definition
|
27
|
-
attr_reader :additional_properties
|
28
|
-
# @return [Object]
|
29
|
-
attr_reader :_field_set
|
30
|
-
protected :_field_set
|
31
|
-
|
32
|
-
OMIT = Object.new
|
33
|
-
|
34
|
-
# @param name [CandidApiClient::PreEncounter::Common::Types::HumanName]
|
35
|
-
# @param npi [String]
|
36
|
-
# @param telecoms [Array<CandidApiClient::PreEncounter::Common::Types::ContactPoint>]
|
37
|
-
# @param addresses [Array<CandidApiClient::PreEncounter::Common::Types::Address>]
|
38
|
-
# @param period [CandidApiClient::PreEncounter::Common::Types::Period]
|
39
|
-
# @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
|
40
|
-
# @return [CandidApiClient::PreEncounter::Patients::V1::Types::ExternalProvider]
|
41
|
-
def initialize(name:, npi:, telecoms:, addresses:, period: OMIT, additional_properties: nil)
|
42
|
-
@name = name
|
43
|
-
@npi = npi
|
44
|
-
@telecoms = telecoms
|
45
|
-
@addresses = addresses
|
46
|
-
@period = period if period != OMIT
|
47
|
-
@additional_properties = additional_properties
|
48
|
-
@_field_set = {
|
49
|
-
"name": name,
|
50
|
-
"npi": npi,
|
51
|
-
"telecoms": telecoms,
|
52
|
-
"addresses": addresses,
|
53
|
-
"period": period
|
54
|
-
}.reject do |_k, v|
|
55
|
-
v == OMIT
|
56
|
-
end
|
57
|
-
end
|
58
|
-
|
59
|
-
# Deserialize a JSON object to an instance of ExternalProvider
|
60
|
-
#
|
61
|
-
# @param json_object [String]
|
62
|
-
# @return [CandidApiClient::PreEncounter::Patients::V1::Types::ExternalProvider]
|
63
|
-
def self.from_json(json_object:)
|
64
|
-
struct = JSON.parse(json_object, object_class: OpenStruct)
|
65
|
-
parsed_json = JSON.parse(json_object)
|
66
|
-
if parsed_json["name"].nil?
|
67
|
-
name = nil
|
68
|
-
else
|
69
|
-
name = parsed_json["name"].to_json
|
70
|
-
name = CandidApiClient::PreEncounter::Common::Types::HumanName.from_json(json_object: name)
|
71
|
-
end
|
72
|
-
npi = struct["npi"]
|
73
|
-
telecoms = parsed_json["telecoms"]&.map do |item|
|
74
|
-
item = item.to_json
|
75
|
-
CandidApiClient::PreEncounter::Common::Types::ContactPoint.from_json(json_object: item)
|
76
|
-
end
|
77
|
-
addresses = parsed_json["addresses"]&.map do |item|
|
78
|
-
item = item.to_json
|
79
|
-
CandidApiClient::PreEncounter::Common::Types::Address.from_json(json_object: item)
|
80
|
-
end
|
81
|
-
if parsed_json["period"].nil?
|
82
|
-
period = nil
|
83
|
-
else
|
84
|
-
period = parsed_json["period"].to_json
|
85
|
-
period = CandidApiClient::PreEncounter::Common::Types::Period.from_json(json_object: period)
|
86
|
-
end
|
87
|
-
new(
|
88
|
-
name: name,
|
89
|
-
npi: npi,
|
90
|
-
telecoms: telecoms,
|
91
|
-
addresses: addresses,
|
92
|
-
period: period,
|
93
|
-
additional_properties: struct
|
94
|
-
)
|
95
|
-
end
|
96
|
-
|
97
|
-
# Serialize an instance of ExternalProvider to a JSON object
|
98
|
-
#
|
99
|
-
# @return [String]
|
100
|
-
def to_json(*_args)
|
101
|
-
@_field_set&.to_json
|
102
|
-
end
|
103
|
-
|
104
|
-
# Leveraged for Union-type generation, validate_raw attempts to parse the given
|
105
|
-
# hash and check each fields type against the current object's property
|
106
|
-
# definitions.
|
107
|
-
#
|
108
|
-
# @param obj [Object]
|
109
|
-
# @return [Void]
|
110
|
-
def self.validate_raw(obj:)
|
111
|
-
CandidApiClient::PreEncounter::Common::Types::HumanName.validate_raw(obj: obj.name)
|
112
|
-
obj.npi.is_a?(String) != false || raise("Passed value for field obj.npi is not the expected type, validation failed.")
|
113
|
-
obj.telecoms.is_a?(Array) != false || raise("Passed value for field obj.telecoms is not the expected type, validation failed.")
|
114
|
-
obj.addresses.is_a?(Array) != false || raise("Passed value for field obj.addresses is not the expected type, validation failed.")
|
115
|
-
obj.period.nil? || CandidApiClient::PreEncounter::Common::Types::Period.validate_raw(obj: obj.period)
|
116
|
-
end
|
117
|
-
end
|
118
|
-
end
|
119
|
-
end
|
120
|
-
end
|
121
|
-
end
|
122
|
-
end
|