candidhealth 0.31.0 → 0.32.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/encounters/v_4/client.rb +14 -100
- data/lib/candidhealth/expected_network_status/v_2/client.rb +4 -4
- data/lib/candidhealth/financials/types/allocation_target_create.rb +10 -9
- data/lib/candidhealth/financials/types/appointment_allocation_target.rb +13 -3
- data/lib/candidhealth/financials/types/appointment_by_id_and_patient_external_id.rb +68 -0
- data/lib/candidhealth/import_invoice/v_1/client.rb +4 -4
- data/lib/candidhealth/individual/types/patient.rb +14 -2
- data/lib/candidhealth/individual/types/patient_create.rb +10 -2
- data/lib/candidhealth/insurance_adjudications/v_1/client.rb +2 -2
- data/lib/candidhealth/insurance_payments/v_1/client.rb +2 -2
- data/lib/candidhealth/insurance_refunds/v_1/client.rb +2 -2
- data/lib/candidhealth/medication_dispense/v_1/client.rb +2 -2
- data/lib/candidhealth/non_insurance_payer_payments/v_1/client.rb +2 -2
- data/lib/candidhealth/non_insurance_payer_refunds/v_1/client.rb +2 -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/coverages/v_1/client.rb +4 -4
- data/lib/candidhealth/pre_encounter/patients/v_1/client.rb +6 -6
- data/lib/candidhealth/service_lines/v_2/client.rb +4 -4
- data/lib/candidhealth/service_lines/v_2/types/service_line.rb +1 -40
- data/lib/candidhealth/service_lines/v_2/types/service_line_create.rb +1 -65
- data/lib/candidhealth/third_party_payer_payments/v_1/client.rb +2 -2
- data/lib/candidhealth/third_party_payer_refunds/v_1/client.rb +2 -2
- data/lib/requests.rb +2 -2
- data/lib/types_export.rb +1 -0
- metadata +3 -2
@@ -5,9 +5,6 @@ require_relative "../../../commons/types/service_line_units"
|
|
5
5
|
require_relative "drug_identification"
|
6
6
|
require_relative "../../../commons/types/facility_type_code"
|
7
7
|
require "date"
|
8
|
-
require_relative "../../../encounter_providers/v_2/types/referring_provider"
|
9
|
-
require_relative "../../../encounter_providers/v_2/types/initial_referring_provider"
|
10
|
-
require_relative "../../../encounter_providers/v_2/types/supervising_provider"
|
11
8
|
require_relative "../../../encounter_providers/v_2/types/ordering_provider"
|
12
9
|
require "ostruct"
|
13
10
|
require "json"
|
@@ -46,23 +43,6 @@ module CandidApiClient
|
|
46
43
|
attr_reader :date_of_service
|
47
44
|
# @return [Date]
|
48
45
|
attr_reader :end_date_of_service
|
49
|
-
# @return [CandidApiClient::EncounterProviders::V2::Types::ReferringProvider] The final provider who referred the services that were rendered.
|
50
|
-
# All physicians who order services or refer Medicare beneficiaries must
|
51
|
-
# report this data.
|
52
|
-
attr_reader :referring_provider
|
53
|
-
# @return [CandidApiClient::EncounterProviders::V2::Types::InitialReferringProvider] The second iteration of Loop ID-2310. Use code "P3 - Primary Care Provider" in
|
54
|
-
# this loop to
|
55
|
-
# indicate the initial referral from the primary care provider or whatever
|
56
|
-
# provider wrote the initial referral for this patient's episode of care being
|
57
|
-
# billed/reported in this transaction.
|
58
|
-
# Information in Loop ID-2310 applies to the entire claim unless overridden on a
|
59
|
-
# service line by the presence of Loop ID-2420 with the same value in NM101.
|
60
|
-
attr_reader :initial_referring_provider
|
61
|
-
# @return [CandidApiClient::EncounterProviders::V2::Types::SupervisingProvider] Required when the rendering provider is supervised by a physician. If not
|
62
|
-
# required by this implementation guide, do not send.
|
63
|
-
# Information in Loop ID-2310 applies to the entire claim unless overridden on a
|
64
|
-
# service line by the presence of Loop ID-2420 with the same value in NM101.
|
65
|
-
attr_reader :supervising_provider
|
66
46
|
# @return [CandidApiClient::EncounterProviders::V2::Types::OrderingProvider] Required when the service or supply was ordered by a provider who is different
|
67
47
|
# than the rendering provider for this service line.
|
68
48
|
# If not required by this implementation guide, do not send.
|
@@ -93,27 +73,13 @@ module CandidApiClient
|
|
93
73
|
# Maps to SV1-01, C003-07 on the 837-P.
|
94
74
|
# @param date_of_service [Date]
|
95
75
|
# @param end_date_of_service [Date]
|
96
|
-
# @param referring_provider [CandidApiClient::EncounterProviders::V2::Types::ReferringProvider] The final provider who referred the services that were rendered.
|
97
|
-
# All physicians who order services or refer Medicare beneficiaries must
|
98
|
-
# report this data.
|
99
|
-
# @param initial_referring_provider [CandidApiClient::EncounterProviders::V2::Types::InitialReferringProvider] The second iteration of Loop ID-2310. Use code "P3 - Primary Care Provider" in
|
100
|
-
# this loop to
|
101
|
-
# indicate the initial referral from the primary care provider or whatever
|
102
|
-
# provider wrote the initial referral for this patient's episode of care being
|
103
|
-
# billed/reported in this transaction.
|
104
|
-
# Information in Loop ID-2310 applies to the entire claim unless overridden on a
|
105
|
-
# service line by the presence of Loop ID-2420 with the same value in NM101.
|
106
|
-
# @param supervising_provider [CandidApiClient::EncounterProviders::V2::Types::SupervisingProvider] Required when the rendering provider is supervised by a physician. If not
|
107
|
-
# required by this implementation guide, do not send.
|
108
|
-
# Information in Loop ID-2310 applies to the entire claim unless overridden on a
|
109
|
-
# service line by the presence of Loop ID-2420 with the same value in NM101.
|
110
76
|
# @param ordering_provider [CandidApiClient::EncounterProviders::V2::Types::OrderingProvider] Required when the service or supply was ordered by a provider who is different
|
111
77
|
# than the rendering provider for this service line.
|
112
78
|
# If not required by this implementation guide, do not send.
|
113
79
|
# @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
|
114
80
|
# @return [CandidApiClient::ServiceLines::V2::Types::ServiceLineCreate]
|
115
81
|
def initialize(procedure_code:, quantity:, units:, diagnosis_pointers:, modifiers: OMIT,
|
116
|
-
charge_amount_cents: OMIT, drug_identification: OMIT, place_of_service_code: OMIT, description: OMIT, date_of_service: OMIT, end_date_of_service: OMIT,
|
82
|
+
charge_amount_cents: OMIT, drug_identification: OMIT, place_of_service_code: OMIT, description: OMIT, date_of_service: OMIT, end_date_of_service: OMIT, ordering_provider: OMIT, additional_properties: nil)
|
117
83
|
@modifiers = modifiers if modifiers != OMIT
|
118
84
|
@procedure_code = procedure_code
|
119
85
|
@quantity = quantity
|
@@ -125,9 +91,6 @@ module CandidApiClient
|
|
125
91
|
@description = description if description != OMIT
|
126
92
|
@date_of_service = date_of_service if date_of_service != OMIT
|
127
93
|
@end_date_of_service = end_date_of_service if end_date_of_service != OMIT
|
128
|
-
@referring_provider = referring_provider if referring_provider != OMIT
|
129
|
-
@initial_referring_provider = initial_referring_provider if initial_referring_provider != OMIT
|
130
|
-
@supervising_provider = supervising_provider if supervising_provider != OMIT
|
131
94
|
@ordering_provider = ordering_provider if ordering_provider != OMIT
|
132
95
|
@additional_properties = additional_properties
|
133
96
|
@_field_set = {
|
@@ -142,9 +105,6 @@ module CandidApiClient
|
|
142
105
|
"description": description,
|
143
106
|
"date_of_service": date_of_service,
|
144
107
|
"end_date_of_service": end_date_of_service,
|
145
|
-
"referring_provider": referring_provider,
|
146
|
-
"initial_referring_provider": initial_referring_provider,
|
147
|
-
"supervising_provider": supervising_provider,
|
148
108
|
"ordering_provider": ordering_provider
|
149
109
|
}.reject do |_k, v|
|
150
110
|
v == OMIT
|
@@ -176,24 +136,6 @@ module CandidApiClient
|
|
176
136
|
end_date_of_service = unless parsed_json["end_date_of_service"].nil?
|
177
137
|
Date.parse(parsed_json["end_date_of_service"])
|
178
138
|
end
|
179
|
-
if parsed_json["referring_provider"].nil?
|
180
|
-
referring_provider = nil
|
181
|
-
else
|
182
|
-
referring_provider = parsed_json["referring_provider"].to_json
|
183
|
-
referring_provider = CandidApiClient::EncounterProviders::V2::Types::ReferringProvider.from_json(json_object: referring_provider)
|
184
|
-
end
|
185
|
-
if parsed_json["initial_referring_provider"].nil?
|
186
|
-
initial_referring_provider = nil
|
187
|
-
else
|
188
|
-
initial_referring_provider = parsed_json["initial_referring_provider"].to_json
|
189
|
-
initial_referring_provider = CandidApiClient::EncounterProviders::V2::Types::InitialReferringProvider.from_json(json_object: initial_referring_provider)
|
190
|
-
end
|
191
|
-
if parsed_json["supervising_provider"].nil?
|
192
|
-
supervising_provider = nil
|
193
|
-
else
|
194
|
-
supervising_provider = parsed_json["supervising_provider"].to_json
|
195
|
-
supervising_provider = CandidApiClient::EncounterProviders::V2::Types::SupervisingProvider.from_json(json_object: supervising_provider)
|
196
|
-
end
|
197
139
|
if parsed_json["ordering_provider"].nil?
|
198
140
|
ordering_provider = nil
|
199
141
|
else
|
@@ -212,9 +154,6 @@ module CandidApiClient
|
|
212
154
|
description: description,
|
213
155
|
date_of_service: date_of_service,
|
214
156
|
end_date_of_service: end_date_of_service,
|
215
|
-
referring_provider: referring_provider,
|
216
|
-
initial_referring_provider: initial_referring_provider,
|
217
|
-
supervising_provider: supervising_provider,
|
218
157
|
ordering_provider: ordering_provider,
|
219
158
|
additional_properties: struct
|
220
159
|
)
|
@@ -245,9 +184,6 @@ module CandidApiClient
|
|
245
184
|
obj.description&.is_a?(String) != false || raise("Passed value for field obj.description is not the expected type, validation failed.")
|
246
185
|
obj.date_of_service&.is_a?(Date) != false || raise("Passed value for field obj.date_of_service is not the expected type, validation failed.")
|
247
186
|
obj.end_date_of_service&.is_a?(Date) != false || raise("Passed value for field obj.end_date_of_service is not the expected type, validation failed.")
|
248
|
-
obj.referring_provider.nil? || CandidApiClient::EncounterProviders::V2::Types::ReferringProvider.validate_raw(obj: obj.referring_provider)
|
249
|
-
obj.initial_referring_provider.nil? || CandidApiClient::EncounterProviders::V2::Types::InitialReferringProvider.validate_raw(obj: obj.initial_referring_provider)
|
250
|
-
obj.supervising_provider.nil? || CandidApiClient::EncounterProviders::V2::Types::SupervisingProvider.validate_raw(obj: obj.supervising_provider)
|
251
187
|
obj.ordering_provider.nil? || CandidApiClient::EncounterProviders::V2::Types::OrderingProvider.validate_raw(obj: obj.ordering_provider)
|
252
188
|
end
|
253
189
|
end
|
@@ -108,7 +108,7 @@ module CandidApiClient
|
|
108
108
|
# @return [CandidApiClient::ThirdPartyPayerPayments::V1::Types::ThirdPartyPayerPayment]
|
109
109
|
# @example
|
110
110
|
# api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
|
111
|
-
# api.third_party_payer_payments.v_1.create(request: { third_party_payer_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", amount_cents: 1, payment_timestamp: DateTime.parse(2024-01-15T09:30:00.000Z), payment_note: "string", check_number: "string", allocations: [{
|
111
|
+
# api.third_party_payer_payments.v_1.create(request: { third_party_payer_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", amount_cents: 1, payment_timestamp: DateTime.parse(2024-01-15T09:30:00.000Z), payment_note: "string", check_number: "string", allocations: [{ amount_cents: 1 }], invoice_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32" })
|
112
112
|
def create(request:, request_options: nil)
|
113
113
|
response = @request_client.conn.post do |req|
|
114
114
|
req.options.timeout = request_options.timeout_in_seconds unless request_options&.timeout_in_seconds.nil?
|
@@ -278,7 +278,7 @@ module CandidApiClient
|
|
278
278
|
# @return [CandidApiClient::ThirdPartyPayerPayments::V1::Types::ThirdPartyPayerPayment]
|
279
279
|
# @example
|
280
280
|
# api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
|
281
|
-
# api.third_party_payer_payments.v_1.create(request: { third_party_payer_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", amount_cents: 1, payment_timestamp: DateTime.parse(2024-01-15T09:30:00.000Z), payment_note: "string", check_number: "string", allocations: [{
|
281
|
+
# api.third_party_payer_payments.v_1.create(request: { third_party_payer_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", amount_cents: 1, payment_timestamp: DateTime.parse(2024-01-15T09:30:00.000Z), payment_note: "string", check_number: "string", allocations: [{ amount_cents: 1 }], invoice_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32" })
|
282
282
|
def create(request:, request_options: nil)
|
283
283
|
Async do
|
284
284
|
response = @request_client.conn.post do |req|
|
@@ -115,7 +115,7 @@ module CandidApiClient
|
|
115
115
|
# @return [CandidApiClient::ThirdPartyPayerRefunds::V1::Types::ThirdPartyPayerRefund]
|
116
116
|
# @example
|
117
117
|
# api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
|
118
|
-
# api.third_party_payer_refunds.v_1.create(request: { third_party_payer_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", invoice_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", amount_cents: 1, refund_timestamp: DateTime.parse(2024-01-15T09:30:00.000Z), refund_note: "string", allocations: [{
|
118
|
+
# api.third_party_payer_refunds.v_1.create(request: { third_party_payer_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", invoice_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", amount_cents: 1, refund_timestamp: DateTime.parse(2024-01-15T09:30:00.000Z), refund_note: "string", allocations: [{ amount_cents: 1 }], refund_reason: OVERCHARGED })
|
119
119
|
def create(request:, request_options: nil)
|
120
120
|
response = @request_client.conn.post do |req|
|
121
121
|
req.options.timeout = request_options.timeout_in_seconds unless request_options&.timeout_in_seconds.nil?
|
@@ -297,7 +297,7 @@ module CandidApiClient
|
|
297
297
|
# @return [CandidApiClient::ThirdPartyPayerRefunds::V1::Types::ThirdPartyPayerRefund]
|
298
298
|
# @example
|
299
299
|
# api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
|
300
|
-
# api.third_party_payer_refunds.v_1.create(request: { third_party_payer_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", invoice_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", amount_cents: 1, refund_timestamp: DateTime.parse(2024-01-15T09:30:00.000Z), refund_note: "string", allocations: [{
|
300
|
+
# api.third_party_payer_refunds.v_1.create(request: { third_party_payer_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", invoice_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", amount_cents: 1, refund_timestamp: DateTime.parse(2024-01-15T09:30:00.000Z), refund_note: "string", allocations: [{ amount_cents: 1 }], refund_reason: OVERCHARGED })
|
301
301
|
def create(request:, request_options: nil)
|
302
302
|
Async do
|
303
303
|
response = @request_client.conn.post do |req|
|
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.32.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.32.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
@@ -360,6 +360,7 @@ require_relative "candidhealth/financials/types/appointment_allocation_target"
|
|
360
360
|
require_relative "candidhealth/financials/types/allocation_target"
|
361
361
|
require_relative "candidhealth/financials/types/allocation_create"
|
362
362
|
require_relative "candidhealth/financials/types/allocation_target_create"
|
363
|
+
require_relative "candidhealth/financials/types/appointment_by_id_and_patient_external_id"
|
363
364
|
require_relative "candidhealth/financials/types/account_type"
|
364
365
|
require_relative "candidhealth/financials/types/note_update"
|
365
366
|
require_relative "candidhealth/financials/types/invoice_update"
|
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.32.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- ''
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-09-
|
11
|
+
date: 2024-09-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: async-http-faraday
|
@@ -291,6 +291,7 @@ files:
|
|
291
291
|
- lib/candidhealth/financials/types/allocation_target.rb
|
292
292
|
- lib/candidhealth/financials/types/allocation_target_create.rb
|
293
293
|
- lib/candidhealth/financials/types/appointment_allocation_target.rb
|
294
|
+
- lib/candidhealth/financials/types/appointment_by_id_and_patient_external_id.rb
|
294
295
|
- lib/candidhealth/financials/types/billing_provider_allocation_target.rb
|
295
296
|
- lib/candidhealth/financials/types/claim_allocation_target.rb
|
296
297
|
- lib/candidhealth/financials/types/invoice_update.rb
|