candidhealth 0.26.0 → 0.27.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
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3bfe3619e7a07bdbca9a9dd58eb5decad7a20df7c87b622b1a544215d8362ecc
|
4
|
+
data.tar.gz: 1e47e697d86803e556a636b369b8efd99a611e95fe072853ecb702dc5be8fe36
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ba0ae49f89efa8e55a71f40deac403a83574479a14bcb1c8d4b8f1d0baee4fb7cdbcdba34803710985e961031ef9d7a8e20dd48be413abba0741d99b2f730403
|
7
|
+
data.tar.gz: 5710f3dea04c0f09d8272fdeba38f59ac3c58770a174ce7912fa8d0ce99e7ddd17166cbe75642791f8dd59818412a2f901659cc0b057eb9b95b055d06a6187d6
|
@@ -22,22 +22,13 @@ module CandidApiClient
|
|
22
22
|
# @param request [Hash] Request of type CandidApiClient::ServiceLines::V2::Types::ServiceLineCreateStandalone, as a Hash
|
23
23
|
# * :modifiers (Array<CandidApiClient::Commons::Types::ProcedureModifier>)
|
24
24
|
# * :charge_amount_cents (Integer)
|
25
|
-
# * :allowed_amount_cents (Integer)
|
26
|
-
# * :insurance_balance_cents (Integer)
|
27
|
-
# * :patient_balance_cents (Integer)
|
28
|
-
# * :primary_paid_amount_cents (Integer)
|
29
|
-
# * :secondary_paid_amount_cents (Integer)
|
30
|
-
# * :tertiary_paid_amount_cents (Integer)
|
31
|
-
# * :patient_responsibility_cents (Integer)
|
32
25
|
# * :diagnosis_id_zero (String)
|
33
26
|
# * :diagnosis_id_one (String)
|
34
27
|
# * :diagnosis_id_two (String)
|
35
28
|
# * :diagnosis_id_three (String)
|
36
|
-
# * :service_line_manual_adjustments (Array<CandidApiClient::ServiceLines::V2::Types::ServiceLineAdjustment>)
|
37
29
|
# * :denial_reason (Hash)
|
38
30
|
# * :reason (CandidApiClient::ServiceLines::V2::Types::DenialReasonContent)
|
39
31
|
# * :place_of_service_code (CandidApiClient::Commons::Types::FacilityTypeCode)
|
40
|
-
# * :place_of_service_code_as_submitted (CandidApiClient::Commons::Types::FacilityTypeCode)
|
41
32
|
# * :procedure_code (String)
|
42
33
|
# * :quantity (String)
|
43
34
|
# * :units (CandidApiClient::Commons::Types::ServiceLineUnits)
|
@@ -49,7 +40,7 @@ module CandidApiClient
|
|
49
40
|
# @return [CandidApiClient::ServiceLines::V2::Types::ServiceLine]
|
50
41
|
# @example
|
51
42
|
# api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
|
52
|
-
# api.service_lines.v_2.create(request: { modifiers: [TWENTY_TWO], charge_amount_cents: 1,
|
43
|
+
# 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: { }, 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) })
|
53
44
|
def create(request:, request_options: nil)
|
54
45
|
response = @request_client.conn.post do |req|
|
55
46
|
req.options.timeout = request_options.timeout_in_seconds unless request_options&.timeout_in_seconds.nil?
|
@@ -71,22 +62,13 @@ module CandidApiClient
|
|
71
62
|
# * :edit_reason (String)
|
72
63
|
# * :modifiers (Array<CandidApiClient::Commons::Types::ProcedureModifier>)
|
73
64
|
# * :charge_amount_cents (Integer)
|
74
|
-
# * :allowed_amount_cents (Integer)
|
75
|
-
# * :insurance_balance_cents (Integer)
|
76
|
-
# * :patient_balance_cents (Integer)
|
77
|
-
# * :primary_paid_amount_cents (Integer)
|
78
|
-
# * :secondary_paid_amount_cents (Integer)
|
79
|
-
# * :tertiary_paid_amount_cents (Integer)
|
80
|
-
# * :patient_responsibility_cents (Integer)
|
81
65
|
# * :diagnosis_id_zero (String)
|
82
66
|
# * :diagnosis_id_one (String)
|
83
67
|
# * :diagnosis_id_two (String)
|
84
68
|
# * :diagnosis_id_three (String)
|
85
|
-
# * :service_line_manual_adjustments (Array<CandidApiClient::ServiceLines::V2::Types::ServiceLineAdjustment>)
|
86
69
|
# * :denial_reason (Hash)
|
87
70
|
# * :reason (CandidApiClient::ServiceLines::V2::Types::DenialReasonContent)
|
88
71
|
# * :place_of_service_code (CandidApiClient::Commons::Types::FacilityTypeCode)
|
89
|
-
# * :place_of_service_code_as_submitted (CandidApiClient::Commons::Types::FacilityTypeCode)
|
90
72
|
# * :units (CandidApiClient::Commons::Types::ServiceLineUnits)
|
91
73
|
# * :procedure_code (String)
|
92
74
|
# * :quantity (String)
|
@@ -97,7 +79,7 @@ module CandidApiClient
|
|
97
79
|
# @return [CandidApiClient::ServiceLines::V2::Types::ServiceLine]
|
98
80
|
# @example
|
99
81
|
# api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
|
100
|
-
# api.service_lines.v_2.update(service_line_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", request: { edit_reason: "string", modifiers: [TWENTY_TWO], charge_amount_cents: 1,
|
82
|
+
# api.service_lines.v_2.update(service_line_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", request: { edit_reason: "string", 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: { }, place_of_service_code: PHARMACY, units: MJ, procedure_code: "string", quantity: "string", description: "string", date_of_service: DateTime.parse(2023-01-15), end_date_of_service: DateTime.parse(2023-01-15) })
|
101
83
|
def update(service_line_id:, request:, request_options: nil)
|
102
84
|
response = @request_client.conn.patch do |req|
|
103
85
|
req.options.timeout = request_options.timeout_in_seconds unless request_options&.timeout_in_seconds.nil?
|
@@ -113,6 +95,26 @@ module CandidApiClient
|
|
113
95
|
end
|
114
96
|
CandidApiClient::ServiceLines::V2::Types::ServiceLine.from_json(json_object: response.body)
|
115
97
|
end
|
98
|
+
|
99
|
+
# @param service_line_id [String]
|
100
|
+
# @param request_options [CandidApiClient::RequestOptions]
|
101
|
+
# @return [Void]
|
102
|
+
# @example
|
103
|
+
# api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
|
104
|
+
# api.service_lines.v_2.delete(service_line_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32")
|
105
|
+
def delete(service_line_id:, request_options: nil)
|
106
|
+
@request_client.conn.delete do |req|
|
107
|
+
req.options.timeout = request_options.timeout_in_seconds unless request_options&.timeout_in_seconds.nil?
|
108
|
+
req.headers["Authorization"] = request_options.token unless request_options&.token.nil?
|
109
|
+
req.headers = {
|
110
|
+
**(req.headers || {}),
|
111
|
+
**@request_client.get_headers,
|
112
|
+
**(request_options&.additional_headers || {})
|
113
|
+
}.compact
|
114
|
+
req.url "#{@request_client.get_url(environment: CandidApi,
|
115
|
+
request_options: request_options)}/api/service-lines/v2/#{service_line_id}"
|
116
|
+
end
|
117
|
+
end
|
116
118
|
end
|
117
119
|
|
118
120
|
class AsyncV2Client
|
@@ -128,22 +130,13 @@ module CandidApiClient
|
|
128
130
|
# @param request [Hash] Request of type CandidApiClient::ServiceLines::V2::Types::ServiceLineCreateStandalone, as a Hash
|
129
131
|
# * :modifiers (Array<CandidApiClient::Commons::Types::ProcedureModifier>)
|
130
132
|
# * :charge_amount_cents (Integer)
|
131
|
-
# * :allowed_amount_cents (Integer)
|
132
|
-
# * :insurance_balance_cents (Integer)
|
133
|
-
# * :patient_balance_cents (Integer)
|
134
|
-
# * :primary_paid_amount_cents (Integer)
|
135
|
-
# * :secondary_paid_amount_cents (Integer)
|
136
|
-
# * :tertiary_paid_amount_cents (Integer)
|
137
|
-
# * :patient_responsibility_cents (Integer)
|
138
133
|
# * :diagnosis_id_zero (String)
|
139
134
|
# * :diagnosis_id_one (String)
|
140
135
|
# * :diagnosis_id_two (String)
|
141
136
|
# * :diagnosis_id_three (String)
|
142
|
-
# * :service_line_manual_adjustments (Array<CandidApiClient::ServiceLines::V2::Types::ServiceLineAdjustment>)
|
143
137
|
# * :denial_reason (Hash)
|
144
138
|
# * :reason (CandidApiClient::ServiceLines::V2::Types::DenialReasonContent)
|
145
139
|
# * :place_of_service_code (CandidApiClient::Commons::Types::FacilityTypeCode)
|
146
|
-
# * :place_of_service_code_as_submitted (CandidApiClient::Commons::Types::FacilityTypeCode)
|
147
140
|
# * :procedure_code (String)
|
148
141
|
# * :quantity (String)
|
149
142
|
# * :units (CandidApiClient::Commons::Types::ServiceLineUnits)
|
@@ -155,7 +148,7 @@ module CandidApiClient
|
|
155
148
|
# @return [CandidApiClient::ServiceLines::V2::Types::ServiceLine]
|
156
149
|
# @example
|
157
150
|
# api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
|
158
|
-
# api.service_lines.v_2.create(request: { modifiers: [TWENTY_TWO], charge_amount_cents: 1,
|
151
|
+
# 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: { }, 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) })
|
159
152
|
def create(request:, request_options: nil)
|
160
153
|
Async do
|
161
154
|
response = @request_client.conn.post do |req|
|
@@ -179,22 +172,13 @@ module CandidApiClient
|
|
179
172
|
# * :edit_reason (String)
|
180
173
|
# * :modifiers (Array<CandidApiClient::Commons::Types::ProcedureModifier>)
|
181
174
|
# * :charge_amount_cents (Integer)
|
182
|
-
# * :allowed_amount_cents (Integer)
|
183
|
-
# * :insurance_balance_cents (Integer)
|
184
|
-
# * :patient_balance_cents (Integer)
|
185
|
-
# * :primary_paid_amount_cents (Integer)
|
186
|
-
# * :secondary_paid_amount_cents (Integer)
|
187
|
-
# * :tertiary_paid_amount_cents (Integer)
|
188
|
-
# * :patient_responsibility_cents (Integer)
|
189
175
|
# * :diagnosis_id_zero (String)
|
190
176
|
# * :diagnosis_id_one (String)
|
191
177
|
# * :diagnosis_id_two (String)
|
192
178
|
# * :diagnosis_id_three (String)
|
193
|
-
# * :service_line_manual_adjustments (Array<CandidApiClient::ServiceLines::V2::Types::ServiceLineAdjustment>)
|
194
179
|
# * :denial_reason (Hash)
|
195
180
|
# * :reason (CandidApiClient::ServiceLines::V2::Types::DenialReasonContent)
|
196
181
|
# * :place_of_service_code (CandidApiClient::Commons::Types::FacilityTypeCode)
|
197
|
-
# * :place_of_service_code_as_submitted (CandidApiClient::Commons::Types::FacilityTypeCode)
|
198
182
|
# * :units (CandidApiClient::Commons::Types::ServiceLineUnits)
|
199
183
|
# * :procedure_code (String)
|
200
184
|
# * :quantity (String)
|
@@ -205,7 +189,7 @@ module CandidApiClient
|
|
205
189
|
# @return [CandidApiClient::ServiceLines::V2::Types::ServiceLine]
|
206
190
|
# @example
|
207
191
|
# api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
|
208
|
-
# api.service_lines.v_2.update(service_line_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", request: { edit_reason: "string", modifiers: [TWENTY_TWO], charge_amount_cents: 1,
|
192
|
+
# api.service_lines.v_2.update(service_line_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", request: { edit_reason: "string", 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: { }, place_of_service_code: PHARMACY, units: MJ, procedure_code: "string", quantity: "string", description: "string", date_of_service: DateTime.parse(2023-01-15), end_date_of_service: DateTime.parse(2023-01-15) })
|
209
193
|
def update(service_line_id:, request:, request_options: nil)
|
210
194
|
Async do
|
211
195
|
response = @request_client.conn.patch do |req|
|
@@ -223,6 +207,28 @@ module CandidApiClient
|
|
223
207
|
CandidApiClient::ServiceLines::V2::Types::ServiceLine.from_json(json_object: response.body)
|
224
208
|
end
|
225
209
|
end
|
210
|
+
|
211
|
+
# @param service_line_id [String]
|
212
|
+
# @param request_options [CandidApiClient::RequestOptions]
|
213
|
+
# @return [Void]
|
214
|
+
# @example
|
215
|
+
# api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
|
216
|
+
# api.service_lines.v_2.delete(service_line_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32")
|
217
|
+
def delete(service_line_id:, request_options: nil)
|
218
|
+
Async do
|
219
|
+
@request_client.conn.delete do |req|
|
220
|
+
req.options.timeout = request_options.timeout_in_seconds unless request_options&.timeout_in_seconds.nil?
|
221
|
+
req.headers["Authorization"] = request_options.token unless request_options&.token.nil?
|
222
|
+
req.headers = {
|
223
|
+
**(req.headers || {}),
|
224
|
+
**@request_client.get_headers,
|
225
|
+
**(request_options&.additional_headers || {})
|
226
|
+
}.compact
|
227
|
+
req.url "#{@request_client.get_url(environment: CandidApi,
|
228
|
+
request_options: request_options)}/api/service-lines/v2/#{service_line_id}"
|
229
|
+
end
|
230
|
+
end
|
231
|
+
end
|
226
232
|
end
|
227
233
|
end
|
228
234
|
end
|
@@ -1,7 +1,6 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
3
|
require_relative "../../../commons/types/procedure_modifier"
|
4
|
-
require_relative "service_line_adjustment"
|
5
4
|
require_relative "service_line_denial_reason"
|
6
5
|
require_relative "../../../commons/types/facility_type_code"
|
7
6
|
require_relative "../../../commons/types/service_line_units"
|
@@ -18,20 +17,6 @@ module CandidApiClient
|
|
18
17
|
attr_reader :modifiers
|
19
18
|
# @return [Integer]
|
20
19
|
attr_reader :charge_amount_cents
|
21
|
-
# @return [Integer]
|
22
|
-
attr_reader :allowed_amount_cents
|
23
|
-
# @return [Integer]
|
24
|
-
attr_reader :insurance_balance_cents
|
25
|
-
# @return [Integer]
|
26
|
-
attr_reader :patient_balance_cents
|
27
|
-
# @return [Integer]
|
28
|
-
attr_reader :primary_paid_amount_cents
|
29
|
-
# @return [Integer]
|
30
|
-
attr_reader :secondary_paid_amount_cents
|
31
|
-
# @return [Integer]
|
32
|
-
attr_reader :tertiary_paid_amount_cents
|
33
|
-
# @return [Integer]
|
34
|
-
attr_reader :patient_responsibility_cents
|
35
20
|
# @return [String]
|
36
21
|
attr_reader :diagnosis_id_zero
|
37
22
|
# @return [String]
|
@@ -40,14 +25,10 @@ module CandidApiClient
|
|
40
25
|
attr_reader :diagnosis_id_two
|
41
26
|
# @return [String]
|
42
27
|
attr_reader :diagnosis_id_three
|
43
|
-
# @return [Array<CandidApiClient::ServiceLines::V2::Types::ServiceLineAdjustment>]
|
44
|
-
attr_reader :service_line_manual_adjustments
|
45
28
|
# @return [CandidApiClient::ServiceLines::V2::Types::ServiceLineDenialReason]
|
46
29
|
attr_reader :denial_reason
|
47
30
|
# @return [CandidApiClient::Commons::Types::FacilityTypeCode]
|
48
31
|
attr_reader :place_of_service_code
|
49
|
-
# @return [CandidApiClient::Commons::Types::FacilityTypeCode]
|
50
|
-
attr_reader :place_of_service_code_as_submitted
|
51
32
|
# @return [String]
|
52
33
|
attr_reader :procedure_code
|
53
34
|
# @return [String] String representation of a Decimal that can be parsed by most libraries.
|
@@ -75,21 +56,12 @@ module CandidApiClient
|
|
75
56
|
|
76
57
|
# @param modifiers [Array<CandidApiClient::Commons::Types::ProcedureModifier>]
|
77
58
|
# @param charge_amount_cents [Integer]
|
78
|
-
# @param allowed_amount_cents [Integer]
|
79
|
-
# @param insurance_balance_cents [Integer]
|
80
|
-
# @param patient_balance_cents [Integer]
|
81
|
-
# @param primary_paid_amount_cents [Integer]
|
82
|
-
# @param secondary_paid_amount_cents [Integer]
|
83
|
-
# @param tertiary_paid_amount_cents [Integer]
|
84
|
-
# @param patient_responsibility_cents [Integer]
|
85
59
|
# @param diagnosis_id_zero [String]
|
86
60
|
# @param diagnosis_id_one [String]
|
87
61
|
# @param diagnosis_id_two [String]
|
88
62
|
# @param diagnosis_id_three [String]
|
89
|
-
# @param service_line_manual_adjustments [Array<CandidApiClient::ServiceLines::V2::Types::ServiceLineAdjustment>]
|
90
63
|
# @param denial_reason [CandidApiClient::ServiceLines::V2::Types::ServiceLineDenialReason]
|
91
64
|
# @param place_of_service_code [CandidApiClient::Commons::Types::FacilityTypeCode]
|
92
|
-
# @param place_of_service_code_as_submitted [CandidApiClient::Commons::Types::FacilityTypeCode]
|
93
65
|
# @param procedure_code [String]
|
94
66
|
# @param quantity [String] String representation of a Decimal that can be parsed by most libraries.
|
95
67
|
# A ServiceLine quantity cannot contain more than one digit of precision.
|
@@ -102,29 +74,16 @@ module CandidApiClient
|
|
102
74
|
# @param end_date_of_service [Date]
|
103
75
|
# @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
|
104
76
|
# @return [CandidApiClient::ServiceLines::V2::Types::ServiceLineCreateStandalone]
|
105
|
-
def initialize(procedure_code:, quantity:, units:, claim_id:, modifiers: OMIT, charge_amount_cents: OMIT,
|
106
|
-
|
77
|
+
def initialize(procedure_code:, quantity:, units:, claim_id:, modifiers: OMIT, charge_amount_cents: OMIT, diagnosis_id_zero: OMIT, diagnosis_id_one: OMIT,
|
78
|
+
diagnosis_id_two: OMIT, diagnosis_id_three: OMIT, denial_reason: OMIT, place_of_service_code: OMIT, description: OMIT, date_of_service: OMIT, end_date_of_service: OMIT, additional_properties: nil)
|
107
79
|
@modifiers = modifiers if modifiers != OMIT
|
108
80
|
@charge_amount_cents = charge_amount_cents if charge_amount_cents != OMIT
|
109
|
-
@allowed_amount_cents = allowed_amount_cents if allowed_amount_cents != OMIT
|
110
|
-
@insurance_balance_cents = insurance_balance_cents if insurance_balance_cents != OMIT
|
111
|
-
@patient_balance_cents = patient_balance_cents if patient_balance_cents != OMIT
|
112
|
-
@primary_paid_amount_cents = primary_paid_amount_cents if primary_paid_amount_cents != OMIT
|
113
|
-
@secondary_paid_amount_cents = secondary_paid_amount_cents if secondary_paid_amount_cents != OMIT
|
114
|
-
@tertiary_paid_amount_cents = tertiary_paid_amount_cents if tertiary_paid_amount_cents != OMIT
|
115
|
-
@patient_responsibility_cents = patient_responsibility_cents if patient_responsibility_cents != OMIT
|
116
81
|
@diagnosis_id_zero = diagnosis_id_zero if diagnosis_id_zero != OMIT
|
117
82
|
@diagnosis_id_one = diagnosis_id_one if diagnosis_id_one != OMIT
|
118
83
|
@diagnosis_id_two = diagnosis_id_two if diagnosis_id_two != OMIT
|
119
84
|
@diagnosis_id_three = diagnosis_id_three if diagnosis_id_three != OMIT
|
120
|
-
if service_line_manual_adjustments != OMIT
|
121
|
-
@service_line_manual_adjustments = service_line_manual_adjustments
|
122
|
-
end
|
123
85
|
@denial_reason = denial_reason if denial_reason != OMIT
|
124
86
|
@place_of_service_code = place_of_service_code if place_of_service_code != OMIT
|
125
|
-
if place_of_service_code_as_submitted != OMIT
|
126
|
-
@place_of_service_code_as_submitted = place_of_service_code_as_submitted
|
127
|
-
end
|
128
87
|
@procedure_code = procedure_code
|
129
88
|
@quantity = quantity
|
130
89
|
@units = units
|
@@ -136,21 +95,12 @@ module CandidApiClient
|
|
136
95
|
@_field_set = {
|
137
96
|
"modifiers": modifiers,
|
138
97
|
"charge_amount_cents": charge_amount_cents,
|
139
|
-
"allowed_amount_cents": allowed_amount_cents,
|
140
|
-
"insurance_balance_cents": insurance_balance_cents,
|
141
|
-
"patient_balance_cents": patient_balance_cents,
|
142
|
-
"primary_paid_amount_cents": primary_paid_amount_cents,
|
143
|
-
"secondary_paid_amount_cents": secondary_paid_amount_cents,
|
144
|
-
"tertiary_paid_amount_cents": tertiary_paid_amount_cents,
|
145
|
-
"patient_responsibility_cents": patient_responsibility_cents,
|
146
98
|
"diagnosis_id_zero": diagnosis_id_zero,
|
147
99
|
"diagnosis_id_one": diagnosis_id_one,
|
148
100
|
"diagnosis_id_two": diagnosis_id_two,
|
149
101
|
"diagnosis_id_three": diagnosis_id_three,
|
150
|
-
"service_line_manual_adjustments": service_line_manual_adjustments,
|
151
102
|
"denial_reason": denial_reason,
|
152
103
|
"place_of_service_code": place_of_service_code,
|
153
|
-
"place_of_service_code_as_submitted": place_of_service_code_as_submitted,
|
154
104
|
"procedure_code": procedure_code,
|
155
105
|
"quantity": quantity,
|
156
106
|
"units": units,
|
@@ -172,21 +122,10 @@ module CandidApiClient
|
|
172
122
|
parsed_json = JSON.parse(json_object)
|
173
123
|
modifiers = struct["modifiers"]
|
174
124
|
charge_amount_cents = struct["charge_amount_cents"]
|
175
|
-
allowed_amount_cents = struct["allowed_amount_cents"]
|
176
|
-
insurance_balance_cents = struct["insurance_balance_cents"]
|
177
|
-
patient_balance_cents = struct["patient_balance_cents"]
|
178
|
-
primary_paid_amount_cents = struct["primary_paid_amount_cents"]
|
179
|
-
secondary_paid_amount_cents = struct["secondary_paid_amount_cents"]
|
180
|
-
tertiary_paid_amount_cents = struct["tertiary_paid_amount_cents"]
|
181
|
-
patient_responsibility_cents = struct["patient_responsibility_cents"]
|
182
125
|
diagnosis_id_zero = struct["diagnosis_id_zero"]
|
183
126
|
diagnosis_id_one = struct["diagnosis_id_one"]
|
184
127
|
diagnosis_id_two = struct["diagnosis_id_two"]
|
185
128
|
diagnosis_id_three = struct["diagnosis_id_three"]
|
186
|
-
service_line_manual_adjustments = parsed_json["service_line_manual_adjustments"]&.map do |item|
|
187
|
-
item = item.to_json
|
188
|
-
CandidApiClient::ServiceLines::V2::Types::ServiceLineAdjustment.from_json(json_object: item)
|
189
|
-
end
|
190
129
|
if parsed_json["denial_reason"].nil?
|
191
130
|
denial_reason = nil
|
192
131
|
else
|
@@ -194,7 +133,6 @@ module CandidApiClient
|
|
194
133
|
denial_reason = CandidApiClient::ServiceLines::V2::Types::ServiceLineDenialReason.from_json(json_object: denial_reason)
|
195
134
|
end
|
196
135
|
place_of_service_code = struct["place_of_service_code"]
|
197
|
-
place_of_service_code_as_submitted = struct["place_of_service_code_as_submitted"]
|
198
136
|
procedure_code = struct["procedure_code"]
|
199
137
|
quantity = struct["quantity"]
|
200
138
|
units = struct["units"]
|
@@ -207,21 +145,12 @@ module CandidApiClient
|
|
207
145
|
new(
|
208
146
|
modifiers: modifiers,
|
209
147
|
charge_amount_cents: charge_amount_cents,
|
210
|
-
allowed_amount_cents: allowed_amount_cents,
|
211
|
-
insurance_balance_cents: insurance_balance_cents,
|
212
|
-
patient_balance_cents: patient_balance_cents,
|
213
|
-
primary_paid_amount_cents: primary_paid_amount_cents,
|
214
|
-
secondary_paid_amount_cents: secondary_paid_amount_cents,
|
215
|
-
tertiary_paid_amount_cents: tertiary_paid_amount_cents,
|
216
|
-
patient_responsibility_cents: patient_responsibility_cents,
|
217
148
|
diagnosis_id_zero: diagnosis_id_zero,
|
218
149
|
diagnosis_id_one: diagnosis_id_one,
|
219
150
|
diagnosis_id_two: diagnosis_id_two,
|
220
151
|
diagnosis_id_three: diagnosis_id_three,
|
221
|
-
service_line_manual_adjustments: service_line_manual_adjustments,
|
222
152
|
denial_reason: denial_reason,
|
223
153
|
place_of_service_code: place_of_service_code,
|
224
|
-
place_of_service_code_as_submitted: place_of_service_code_as_submitted,
|
225
154
|
procedure_code: procedure_code,
|
226
155
|
quantity: quantity,
|
227
156
|
units: units,
|
@@ -249,21 +178,12 @@ module CandidApiClient
|
|
249
178
|
def self.validate_raw(obj:)
|
250
179
|
obj.modifiers&.is_a?(Array) != false || raise("Passed value for field obj.modifiers is not the expected type, validation failed.")
|
251
180
|
obj.charge_amount_cents&.is_a?(Integer) != false || raise("Passed value for field obj.charge_amount_cents is not the expected type, validation failed.")
|
252
|
-
obj.allowed_amount_cents&.is_a?(Integer) != false || raise("Passed value for field obj.allowed_amount_cents is not the expected type, validation failed.")
|
253
|
-
obj.insurance_balance_cents&.is_a?(Integer) != false || raise("Passed value for field obj.insurance_balance_cents is not the expected type, validation failed.")
|
254
|
-
obj.patient_balance_cents&.is_a?(Integer) != false || raise("Passed value for field obj.patient_balance_cents is not the expected type, validation failed.")
|
255
|
-
obj.primary_paid_amount_cents&.is_a?(Integer) != false || raise("Passed value for field obj.primary_paid_amount_cents is not the expected type, validation failed.")
|
256
|
-
obj.secondary_paid_amount_cents&.is_a?(Integer) != false || raise("Passed value for field obj.secondary_paid_amount_cents is not the expected type, validation failed.")
|
257
|
-
obj.tertiary_paid_amount_cents&.is_a?(Integer) != false || raise("Passed value for field obj.tertiary_paid_amount_cents is not the expected type, validation failed.")
|
258
|
-
obj.patient_responsibility_cents&.is_a?(Integer) != false || raise("Passed value for field obj.patient_responsibility_cents is not the expected type, validation failed.")
|
259
181
|
obj.diagnosis_id_zero&.is_a?(String) != false || raise("Passed value for field obj.diagnosis_id_zero is not the expected type, validation failed.")
|
260
182
|
obj.diagnosis_id_one&.is_a?(String) != false || raise("Passed value for field obj.diagnosis_id_one is not the expected type, validation failed.")
|
261
183
|
obj.diagnosis_id_two&.is_a?(String) != false || raise("Passed value for field obj.diagnosis_id_two is not the expected type, validation failed.")
|
262
184
|
obj.diagnosis_id_three&.is_a?(String) != false || raise("Passed value for field obj.diagnosis_id_three is not the expected type, validation failed.")
|
263
|
-
obj.service_line_manual_adjustments&.is_a?(Array) != false || raise("Passed value for field obj.service_line_manual_adjustments is not the expected type, validation failed.")
|
264
185
|
obj.denial_reason.nil? || CandidApiClient::ServiceLines::V2::Types::ServiceLineDenialReason.validate_raw(obj: obj.denial_reason)
|
265
186
|
obj.place_of_service_code&.is_a?(CandidApiClient::Commons::Types::FacilityTypeCode) != false || raise("Passed value for field obj.place_of_service_code is not the expected type, validation failed.")
|
266
|
-
obj.place_of_service_code_as_submitted&.is_a?(CandidApiClient::Commons::Types::FacilityTypeCode) != false || raise("Passed value for field obj.place_of_service_code_as_submitted is not the expected type, validation failed.")
|
267
187
|
obj.procedure_code.is_a?(String) != false || raise("Passed value for field obj.procedure_code is not the expected type, validation failed.")
|
268
188
|
obj.quantity.is_a?(String) != false || raise("Passed value for field obj.quantity is not the expected type, validation failed.")
|
269
189
|
obj.units.is_a?(CandidApiClient::Commons::Types::ServiceLineUnits) != false || raise("Passed value for field obj.units is not the expected type, validation failed.")
|
@@ -1,7 +1,6 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
3
|
require_relative "../../../commons/types/procedure_modifier"
|
4
|
-
require_relative "service_line_adjustment"
|
5
4
|
require_relative "service_line_denial_reason"
|
6
5
|
require_relative "../../../commons/types/facility_type_code"
|
7
6
|
require_relative "../../../commons/types/service_line_units"
|
@@ -20,20 +19,6 @@ module CandidApiClient
|
|
20
19
|
attr_reader :modifiers
|
21
20
|
# @return [Integer]
|
22
21
|
attr_reader :charge_amount_cents
|
23
|
-
# @return [Integer]
|
24
|
-
attr_reader :allowed_amount_cents
|
25
|
-
# @return [Integer]
|
26
|
-
attr_reader :insurance_balance_cents
|
27
|
-
# @return [Integer]
|
28
|
-
attr_reader :patient_balance_cents
|
29
|
-
# @return [Integer]
|
30
|
-
attr_reader :primary_paid_amount_cents
|
31
|
-
# @return [Integer]
|
32
|
-
attr_reader :secondary_paid_amount_cents
|
33
|
-
# @return [Integer]
|
34
|
-
attr_reader :tertiary_paid_amount_cents
|
35
|
-
# @return [Integer]
|
36
|
-
attr_reader :patient_responsibility_cents
|
37
22
|
# @return [String]
|
38
23
|
attr_reader :diagnosis_id_zero
|
39
24
|
# @return [String]
|
@@ -42,14 +27,10 @@ module CandidApiClient
|
|
42
27
|
attr_reader :diagnosis_id_two
|
43
28
|
# @return [String]
|
44
29
|
attr_reader :diagnosis_id_three
|
45
|
-
# @return [Array<CandidApiClient::ServiceLines::V2::Types::ServiceLineAdjustment>]
|
46
|
-
attr_reader :service_line_manual_adjustments
|
47
30
|
# @return [CandidApiClient::ServiceLines::V2::Types::ServiceLineDenialReason]
|
48
31
|
attr_reader :denial_reason
|
49
32
|
# @return [CandidApiClient::Commons::Types::FacilityTypeCode]
|
50
33
|
attr_reader :place_of_service_code
|
51
|
-
# @return [CandidApiClient::Commons::Types::FacilityTypeCode]
|
52
|
-
attr_reader :place_of_service_code_as_submitted
|
53
34
|
# @return [CandidApiClient::Commons::Types::ServiceLineUnits]
|
54
35
|
attr_reader :units
|
55
36
|
# @return [String]
|
@@ -77,21 +58,12 @@ module CandidApiClient
|
|
77
58
|
# @param edit_reason [String]
|
78
59
|
# @param modifiers [Array<CandidApiClient::Commons::Types::ProcedureModifier>]
|
79
60
|
# @param charge_amount_cents [Integer]
|
80
|
-
# @param allowed_amount_cents [Integer]
|
81
|
-
# @param insurance_balance_cents [Integer]
|
82
|
-
# @param patient_balance_cents [Integer]
|
83
|
-
# @param primary_paid_amount_cents [Integer]
|
84
|
-
# @param secondary_paid_amount_cents [Integer]
|
85
|
-
# @param tertiary_paid_amount_cents [Integer]
|
86
|
-
# @param patient_responsibility_cents [Integer]
|
87
61
|
# @param diagnosis_id_zero [String]
|
88
62
|
# @param diagnosis_id_one [String]
|
89
63
|
# @param diagnosis_id_two [String]
|
90
64
|
# @param diagnosis_id_three [String]
|
91
|
-
# @param service_line_manual_adjustments [Array<CandidApiClient::ServiceLines::V2::Types::ServiceLineAdjustment>]
|
92
65
|
# @param denial_reason [CandidApiClient::ServiceLines::V2::Types::ServiceLineDenialReason]
|
93
66
|
# @param place_of_service_code [CandidApiClient::Commons::Types::FacilityTypeCode]
|
94
|
-
# @param place_of_service_code_as_submitted [CandidApiClient::Commons::Types::FacilityTypeCode]
|
95
67
|
# @param units [CandidApiClient::Commons::Types::ServiceLineUnits]
|
96
68
|
# @param procedure_code [String]
|
97
69
|
# @param quantity [String] String representation of a Decimal that can be parsed by most libraries.
|
@@ -104,30 +76,17 @@ module CandidApiClient
|
|
104
76
|
# @param end_date_of_service [Date]
|
105
77
|
# @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
|
106
78
|
# @return [CandidApiClient::ServiceLines::V2::Types::ServiceLineUpdate]
|
107
|
-
def initialize(edit_reason: OMIT, modifiers: OMIT, charge_amount_cents: OMIT,
|
108
|
-
|
79
|
+
def initialize(edit_reason: OMIT, modifiers: OMIT, charge_amount_cents: OMIT, diagnosis_id_zero: OMIT,
|
80
|
+
diagnosis_id_one: OMIT, diagnosis_id_two: OMIT, diagnosis_id_three: OMIT, denial_reason: OMIT, place_of_service_code: OMIT, units: OMIT, procedure_code: OMIT, quantity: OMIT, description: OMIT, date_of_service: OMIT, end_date_of_service: OMIT, additional_properties: nil)
|
109
81
|
@edit_reason = edit_reason if edit_reason != OMIT
|
110
82
|
@modifiers = modifiers if modifiers != OMIT
|
111
83
|
@charge_amount_cents = charge_amount_cents if charge_amount_cents != OMIT
|
112
|
-
@allowed_amount_cents = allowed_amount_cents if allowed_amount_cents != OMIT
|
113
|
-
@insurance_balance_cents = insurance_balance_cents if insurance_balance_cents != OMIT
|
114
|
-
@patient_balance_cents = patient_balance_cents if patient_balance_cents != OMIT
|
115
|
-
@primary_paid_amount_cents = primary_paid_amount_cents if primary_paid_amount_cents != OMIT
|
116
|
-
@secondary_paid_amount_cents = secondary_paid_amount_cents if secondary_paid_amount_cents != OMIT
|
117
|
-
@tertiary_paid_amount_cents = tertiary_paid_amount_cents if tertiary_paid_amount_cents != OMIT
|
118
|
-
@patient_responsibility_cents = patient_responsibility_cents if patient_responsibility_cents != OMIT
|
119
84
|
@diagnosis_id_zero = diagnosis_id_zero if diagnosis_id_zero != OMIT
|
120
85
|
@diagnosis_id_one = diagnosis_id_one if diagnosis_id_one != OMIT
|
121
86
|
@diagnosis_id_two = diagnosis_id_two if diagnosis_id_two != OMIT
|
122
87
|
@diagnosis_id_three = diagnosis_id_three if diagnosis_id_three != OMIT
|
123
|
-
if service_line_manual_adjustments != OMIT
|
124
|
-
@service_line_manual_adjustments = service_line_manual_adjustments
|
125
|
-
end
|
126
88
|
@denial_reason = denial_reason if denial_reason != OMIT
|
127
89
|
@place_of_service_code = place_of_service_code if place_of_service_code != OMIT
|
128
|
-
if place_of_service_code_as_submitted != OMIT
|
129
|
-
@place_of_service_code_as_submitted = place_of_service_code_as_submitted
|
130
|
-
end
|
131
90
|
@units = units if units != OMIT
|
132
91
|
@procedure_code = procedure_code if procedure_code != OMIT
|
133
92
|
@quantity = quantity if quantity != OMIT
|
@@ -139,21 +98,12 @@ module CandidApiClient
|
|
139
98
|
"edit_reason": edit_reason,
|
140
99
|
"modifiers": modifiers,
|
141
100
|
"charge_amount_cents": charge_amount_cents,
|
142
|
-
"allowed_amount_cents": allowed_amount_cents,
|
143
|
-
"insurance_balance_cents": insurance_balance_cents,
|
144
|
-
"patient_balance_cents": patient_balance_cents,
|
145
|
-
"primary_paid_amount_cents": primary_paid_amount_cents,
|
146
|
-
"secondary_paid_amount_cents": secondary_paid_amount_cents,
|
147
|
-
"tertiary_paid_amount_cents": tertiary_paid_amount_cents,
|
148
|
-
"patient_responsibility_cents": patient_responsibility_cents,
|
149
101
|
"diagnosis_id_zero": diagnosis_id_zero,
|
150
102
|
"diagnosis_id_one": diagnosis_id_one,
|
151
103
|
"diagnosis_id_two": diagnosis_id_two,
|
152
104
|
"diagnosis_id_three": diagnosis_id_three,
|
153
|
-
"service_line_manual_adjustments": service_line_manual_adjustments,
|
154
105
|
"denial_reason": denial_reason,
|
155
106
|
"place_of_service_code": place_of_service_code,
|
156
|
-
"place_of_service_code_as_submitted": place_of_service_code_as_submitted,
|
157
107
|
"units": units,
|
158
108
|
"procedure_code": procedure_code,
|
159
109
|
"quantity": quantity,
|
@@ -175,21 +125,10 @@ module CandidApiClient
|
|
175
125
|
edit_reason = struct["edit_reason"]
|
176
126
|
modifiers = struct["modifiers"]
|
177
127
|
charge_amount_cents = struct["charge_amount_cents"]
|
178
|
-
allowed_amount_cents = struct["allowed_amount_cents"]
|
179
|
-
insurance_balance_cents = struct["insurance_balance_cents"]
|
180
|
-
patient_balance_cents = struct["patient_balance_cents"]
|
181
|
-
primary_paid_amount_cents = struct["primary_paid_amount_cents"]
|
182
|
-
secondary_paid_amount_cents = struct["secondary_paid_amount_cents"]
|
183
|
-
tertiary_paid_amount_cents = struct["tertiary_paid_amount_cents"]
|
184
|
-
patient_responsibility_cents = struct["patient_responsibility_cents"]
|
185
128
|
diagnosis_id_zero = struct["diagnosis_id_zero"]
|
186
129
|
diagnosis_id_one = struct["diagnosis_id_one"]
|
187
130
|
diagnosis_id_two = struct["diagnosis_id_two"]
|
188
131
|
diagnosis_id_three = struct["diagnosis_id_three"]
|
189
|
-
service_line_manual_adjustments = parsed_json["service_line_manual_adjustments"]&.map do |item|
|
190
|
-
item = item.to_json
|
191
|
-
CandidApiClient::ServiceLines::V2::Types::ServiceLineAdjustment.from_json(json_object: item)
|
192
|
-
end
|
193
132
|
if parsed_json["denial_reason"].nil?
|
194
133
|
denial_reason = nil
|
195
134
|
else
|
@@ -197,7 +136,6 @@ module CandidApiClient
|
|
197
136
|
denial_reason = CandidApiClient::ServiceLines::V2::Types::ServiceLineDenialReason.from_json(json_object: denial_reason)
|
198
137
|
end
|
199
138
|
place_of_service_code = struct["place_of_service_code"]
|
200
|
-
place_of_service_code_as_submitted = struct["place_of_service_code_as_submitted"]
|
201
139
|
units = struct["units"]
|
202
140
|
procedure_code = struct["procedure_code"]
|
203
141
|
quantity = struct["quantity"]
|
@@ -210,21 +148,12 @@ module CandidApiClient
|
|
210
148
|
edit_reason: edit_reason,
|
211
149
|
modifiers: modifiers,
|
212
150
|
charge_amount_cents: charge_amount_cents,
|
213
|
-
allowed_amount_cents: allowed_amount_cents,
|
214
|
-
insurance_balance_cents: insurance_balance_cents,
|
215
|
-
patient_balance_cents: patient_balance_cents,
|
216
|
-
primary_paid_amount_cents: primary_paid_amount_cents,
|
217
|
-
secondary_paid_amount_cents: secondary_paid_amount_cents,
|
218
|
-
tertiary_paid_amount_cents: tertiary_paid_amount_cents,
|
219
|
-
patient_responsibility_cents: patient_responsibility_cents,
|
220
151
|
diagnosis_id_zero: diagnosis_id_zero,
|
221
152
|
diagnosis_id_one: diagnosis_id_one,
|
222
153
|
diagnosis_id_two: diagnosis_id_two,
|
223
154
|
diagnosis_id_three: diagnosis_id_three,
|
224
|
-
service_line_manual_adjustments: service_line_manual_adjustments,
|
225
155
|
denial_reason: denial_reason,
|
226
156
|
place_of_service_code: place_of_service_code,
|
227
|
-
place_of_service_code_as_submitted: place_of_service_code_as_submitted,
|
228
157
|
units: units,
|
229
158
|
procedure_code: procedure_code,
|
230
159
|
quantity: quantity,
|
@@ -252,21 +181,12 @@ module CandidApiClient
|
|
252
181
|
obj.edit_reason&.is_a?(String) != false || raise("Passed value for field obj.edit_reason is not the expected type, validation failed.")
|
253
182
|
obj.modifiers&.is_a?(Array) != false || raise("Passed value for field obj.modifiers is not the expected type, validation failed.")
|
254
183
|
obj.charge_amount_cents&.is_a?(Integer) != false || raise("Passed value for field obj.charge_amount_cents is not the expected type, validation failed.")
|
255
|
-
obj.allowed_amount_cents&.is_a?(Integer) != false || raise("Passed value for field obj.allowed_amount_cents is not the expected type, validation failed.")
|
256
|
-
obj.insurance_balance_cents&.is_a?(Integer) != false || raise("Passed value for field obj.insurance_balance_cents is not the expected type, validation failed.")
|
257
|
-
obj.patient_balance_cents&.is_a?(Integer) != false || raise("Passed value for field obj.patient_balance_cents is not the expected type, validation failed.")
|
258
|
-
obj.primary_paid_amount_cents&.is_a?(Integer) != false || raise("Passed value for field obj.primary_paid_amount_cents is not the expected type, validation failed.")
|
259
|
-
obj.secondary_paid_amount_cents&.is_a?(Integer) != false || raise("Passed value for field obj.secondary_paid_amount_cents is not the expected type, validation failed.")
|
260
|
-
obj.tertiary_paid_amount_cents&.is_a?(Integer) != false || raise("Passed value for field obj.tertiary_paid_amount_cents is not the expected type, validation failed.")
|
261
|
-
obj.patient_responsibility_cents&.is_a?(Integer) != false || raise("Passed value for field obj.patient_responsibility_cents is not the expected type, validation failed.")
|
262
184
|
obj.diagnosis_id_zero&.is_a?(String) != false || raise("Passed value for field obj.diagnosis_id_zero is not the expected type, validation failed.")
|
263
185
|
obj.diagnosis_id_one&.is_a?(String) != false || raise("Passed value for field obj.diagnosis_id_one is not the expected type, validation failed.")
|
264
186
|
obj.diagnosis_id_two&.is_a?(String) != false || raise("Passed value for field obj.diagnosis_id_two is not the expected type, validation failed.")
|
265
187
|
obj.diagnosis_id_three&.is_a?(String) != false || raise("Passed value for field obj.diagnosis_id_three is not the expected type, validation failed.")
|
266
|
-
obj.service_line_manual_adjustments&.is_a?(Array) != false || raise("Passed value for field obj.service_line_manual_adjustments is not the expected type, validation failed.")
|
267
188
|
obj.denial_reason.nil? || CandidApiClient::ServiceLines::V2::Types::ServiceLineDenialReason.validate_raw(obj: obj.denial_reason)
|
268
189
|
obj.place_of_service_code&.is_a?(CandidApiClient::Commons::Types::FacilityTypeCode) != false || raise("Passed value for field obj.place_of_service_code is not the expected type, validation failed.")
|
269
|
-
obj.place_of_service_code_as_submitted&.is_a?(CandidApiClient::Commons::Types::FacilityTypeCode) != false || raise("Passed value for field obj.place_of_service_code_as_submitted is not the expected type, validation failed.")
|
270
190
|
obj.units&.is_a?(CandidApiClient::Commons::Types::ServiceLineUnits) != false || raise("Passed value for field obj.units is not the expected type, validation failed.")
|
271
191
|
obj.procedure_code&.is_a?(String) != false || raise("Passed value for field obj.procedure_code is not the expected type, validation failed.")
|
272
192
|
obj.quantity&.is_a?(String) != false || raise("Passed value for field obj.quantity is not the expected type, validation failed.")
|
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.27.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.27.0" }
|
91
91
|
headers["Authorization"] = ((@token.is_a? Method) ? @token.call : @token) unless token.nil?
|
92
92
|
headers
|
93
93
|
end
|
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.27.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-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: async-http-faraday
|