candidhealth 0.26.0 → 0.26.1
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/service_lines/v_2/client.rb +4 -40
- data/lib/candidhealth/service_lines/v_2/types/service_line.rb +1 -43
- data/lib/candidhealth/service_lines/v_2/types/service_line_create_standalone.rb +2 -82
- data/lib/candidhealth/service_lines/v_2/types/service_line_update.rb +2 -82
- data/lib/requests.rb +2 -2
- data/lib/types_export.rb +0 -4
- metadata +1 -5
- data/lib/candidhealth/invoices/types/invoice.rb +0 -169
- data/lib/candidhealth/invoices/types/invoice_item.rb +0 -68
- data/lib/candidhealth/invoices/types/invoice_status.rb +0 -16
- data/lib/candidhealth/service_lines/v_2/types/service_line_era_data.rb +0 -78
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 44e61260aeaec3f5b00d109ecd94255502e76f37d4418d966b75feacb29c96c2
|
4
|
+
data.tar.gz: a88b63f8e4d0b5d765e78c029c3c46494e337c427d0113b2916c603ff7f5b66a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 120613cc87de9a906f92c29b5be1025dc769075ede11dd2c39d919b63eb4f3c12999a997cf1e6cdbd4dace8225db9c317f6a044d77f76c87ba2a264de1d8c927
|
7
|
+
data.tar.gz: d130871b80e7fd499b61cfa05604c071f60ef042ac90465b92335cce1e83586c79b337dbd7f28d103b72c4907d174194b56dceabadbfa13871daa782e41d31db
|
@@ -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?
|
@@ -128,22 +110,13 @@ module CandidApiClient
|
|
128
110
|
# @param request [Hash] Request of type CandidApiClient::ServiceLines::V2::Types::ServiceLineCreateStandalone, as a Hash
|
129
111
|
# * :modifiers (Array<CandidApiClient::Commons::Types::ProcedureModifier>)
|
130
112
|
# * :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
113
|
# * :diagnosis_id_zero (String)
|
139
114
|
# * :diagnosis_id_one (String)
|
140
115
|
# * :diagnosis_id_two (String)
|
141
116
|
# * :diagnosis_id_three (String)
|
142
|
-
# * :service_line_manual_adjustments (Array<CandidApiClient::ServiceLines::V2::Types::ServiceLineAdjustment>)
|
143
117
|
# * :denial_reason (Hash)
|
144
118
|
# * :reason (CandidApiClient::ServiceLines::V2::Types::DenialReasonContent)
|
145
119
|
# * :place_of_service_code (CandidApiClient::Commons::Types::FacilityTypeCode)
|
146
|
-
# * :place_of_service_code_as_submitted (CandidApiClient::Commons::Types::FacilityTypeCode)
|
147
120
|
# * :procedure_code (String)
|
148
121
|
# * :quantity (String)
|
149
122
|
# * :units (CandidApiClient::Commons::Types::ServiceLineUnits)
|
@@ -155,7 +128,7 @@ module CandidApiClient
|
|
155
128
|
# @return [CandidApiClient::ServiceLines::V2::Types::ServiceLine]
|
156
129
|
# @example
|
157
130
|
# 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,
|
131
|
+
# 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
132
|
def create(request:, request_options: nil)
|
160
133
|
Async do
|
161
134
|
response = @request_client.conn.post do |req|
|
@@ -179,22 +152,13 @@ module CandidApiClient
|
|
179
152
|
# * :edit_reason (String)
|
180
153
|
# * :modifiers (Array<CandidApiClient::Commons::Types::ProcedureModifier>)
|
181
154
|
# * :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
155
|
# * :diagnosis_id_zero (String)
|
190
156
|
# * :diagnosis_id_one (String)
|
191
157
|
# * :diagnosis_id_two (String)
|
192
158
|
# * :diagnosis_id_three (String)
|
193
|
-
# * :service_line_manual_adjustments (Array<CandidApiClient::ServiceLines::V2::Types::ServiceLineAdjustment>)
|
194
159
|
# * :denial_reason (Hash)
|
195
160
|
# * :reason (CandidApiClient::ServiceLines::V2::Types::DenialReasonContent)
|
196
161
|
# * :place_of_service_code (CandidApiClient::Commons::Types::FacilityTypeCode)
|
197
|
-
# * :place_of_service_code_as_submitted (CandidApiClient::Commons::Types::FacilityTypeCode)
|
198
162
|
# * :units (CandidApiClient::Commons::Types::ServiceLineUnits)
|
199
163
|
# * :procedure_code (String)
|
200
164
|
# * :quantity (String)
|
@@ -205,7 +169,7 @@ module CandidApiClient
|
|
205
169
|
# @return [CandidApiClient::ServiceLines::V2::Types::ServiceLine]
|
206
170
|
# @example
|
207
171
|
# 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,
|
172
|
+
# 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
173
|
def update(service_line_id:, request:, request_options: nil)
|
210
174
|
Async do
|
211
175
|
response = @request_client.conn.patch do |req|
|
@@ -1,9 +1,7 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
3
|
require_relative "../../../commons/types/procedure_modifier"
|
4
|
-
require_relative "service_line_era_data"
|
5
4
|
require_relative "service_line_adjustment"
|
6
|
-
require_relative "../../../invoices/types/invoice"
|
7
5
|
require_relative "../../../invoices/v_2/types/invoice_info"
|
8
6
|
require_relative "service_line_denial_reason"
|
9
7
|
require_relative "../../../commons/types/facility_type_code"
|
@@ -26,10 +24,6 @@ module CandidApiClient
|
|
26
24
|
# @return [Integer]
|
27
25
|
attr_reader :allowed_amount_cents
|
28
26
|
# @return [Integer]
|
29
|
-
attr_reader :insurance_balance_cents
|
30
|
-
# @return [Integer]
|
31
|
-
attr_reader :patient_balance_cents
|
32
|
-
# @return [Integer]
|
33
27
|
attr_reader :paid_amount_cents
|
34
28
|
# @return [Integer]
|
35
29
|
attr_reader :primary_paid_amount_cents
|
@@ -47,12 +41,8 @@ module CandidApiClient
|
|
47
41
|
attr_reader :diagnosis_id_two
|
48
42
|
# @return [String]
|
49
43
|
attr_reader :diagnosis_id_three
|
50
|
-
# @return [CandidApiClient::ServiceLines::V2::Types::ServiceLineEraData]
|
51
|
-
attr_reader :service_line_era_data
|
52
44
|
# @return [Array<CandidApiClient::ServiceLines::V2::Types::ServiceLineAdjustment>]
|
53
45
|
attr_reader :service_line_manual_adjustments
|
54
|
-
# @return [Array<CandidApiClient::Invoices::Types::Invoice>]
|
55
|
-
attr_reader :related_invoices
|
56
46
|
# @return [Array<CandidApiClient::Invoices::V2::Types::InvoiceInfo>]
|
57
47
|
attr_reader :related_invoice_info
|
58
48
|
# @return [CandidApiClient::ServiceLines::V2::Types::ServiceLineDenialReason]
|
@@ -103,8 +93,6 @@ module CandidApiClient
|
|
103
93
|
# @param modifiers [Array<CandidApiClient::Commons::Types::ProcedureModifier>]
|
104
94
|
# @param charge_amount_cents [Integer]
|
105
95
|
# @param allowed_amount_cents [Integer]
|
106
|
-
# @param insurance_balance_cents [Integer]
|
107
|
-
# @param patient_balance_cents [Integer]
|
108
96
|
# @param paid_amount_cents [Integer]
|
109
97
|
# @param primary_paid_amount_cents [Integer]
|
110
98
|
# @param secondary_paid_amount_cents [Integer]
|
@@ -114,9 +102,7 @@ module CandidApiClient
|
|
114
102
|
# @param diagnosis_id_one [String]
|
115
103
|
# @param diagnosis_id_two [String]
|
116
104
|
# @param diagnosis_id_three [String]
|
117
|
-
# @param service_line_era_data [CandidApiClient::ServiceLines::V2::Types::ServiceLineEraData]
|
118
105
|
# @param service_line_manual_adjustments [Array<CandidApiClient::ServiceLines::V2::Types::ServiceLineAdjustment>]
|
119
|
-
# @param related_invoices [Array<CandidApiClient::Invoices::Types::Invoice>]
|
120
106
|
# @param related_invoice_info [Array<CandidApiClient::Invoices::V2::Types::InvoiceInfo>]
|
121
107
|
# @param denial_reason [CandidApiClient::ServiceLines::V2::Types::ServiceLineDenialReason]
|
122
108
|
# @param place_of_service_code [CandidApiClient::Commons::Types::FacilityTypeCode]
|
@@ -142,12 +128,10 @@ module CandidApiClient
|
|
142
128
|
# @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
|
143
129
|
# @return [CandidApiClient::ServiceLines::V2::Types::ServiceLine]
|
144
130
|
def initialize(service_line_id:, procedure_code:, quantity:, units:, claim_id:, date_of_service_range:, date_of_service:, modifiers: OMIT, charge_amount_cents: OMIT, allowed_amount_cents: OMIT,
|
145
|
-
|
131
|
+
paid_amount_cents: OMIT, primary_paid_amount_cents: OMIT, secondary_paid_amount_cents: OMIT, tertiary_paid_amount_cents: OMIT, patient_responsibility_cents: OMIT, diagnosis_id_zero: OMIT, diagnosis_id_one: OMIT, diagnosis_id_two: OMIT, diagnosis_id_three: OMIT, service_line_manual_adjustments: OMIT, related_invoice_info: OMIT, denial_reason: OMIT, place_of_service_code: OMIT, place_of_service_code_as_submitted: OMIT, referring_provider: OMIT, initial_referring_provider: OMIT, supervising_provider: OMIT, ordering_provider: OMIT, description: OMIT, end_date_of_service: OMIT, additional_properties: nil)
|
146
132
|
@modifiers = modifiers if modifiers != OMIT
|
147
133
|
@charge_amount_cents = charge_amount_cents if charge_amount_cents != OMIT
|
148
134
|
@allowed_amount_cents = allowed_amount_cents if allowed_amount_cents != OMIT
|
149
|
-
@insurance_balance_cents = insurance_balance_cents if insurance_balance_cents != OMIT
|
150
|
-
@patient_balance_cents = patient_balance_cents if patient_balance_cents != OMIT
|
151
135
|
@paid_amount_cents = paid_amount_cents if paid_amount_cents != OMIT
|
152
136
|
@primary_paid_amount_cents = primary_paid_amount_cents if primary_paid_amount_cents != OMIT
|
153
137
|
@secondary_paid_amount_cents = secondary_paid_amount_cents if secondary_paid_amount_cents != OMIT
|
@@ -157,11 +141,9 @@ module CandidApiClient
|
|
157
141
|
@diagnosis_id_one = diagnosis_id_one if diagnosis_id_one != OMIT
|
158
142
|
@diagnosis_id_two = diagnosis_id_two if diagnosis_id_two != OMIT
|
159
143
|
@diagnosis_id_three = diagnosis_id_three if diagnosis_id_three != OMIT
|
160
|
-
@service_line_era_data = service_line_era_data if service_line_era_data != OMIT
|
161
144
|
if service_line_manual_adjustments != OMIT
|
162
145
|
@service_line_manual_adjustments = service_line_manual_adjustments
|
163
146
|
end
|
164
|
-
@related_invoices = related_invoices if related_invoices != OMIT
|
165
147
|
@related_invoice_info = related_invoice_info if related_invoice_info != OMIT
|
166
148
|
@denial_reason = denial_reason if denial_reason != OMIT
|
167
149
|
@place_of_service_code = place_of_service_code if place_of_service_code != OMIT
|
@@ -186,8 +168,6 @@ module CandidApiClient
|
|
186
168
|
"modifiers": modifiers,
|
187
169
|
"charge_amount_cents": charge_amount_cents,
|
188
170
|
"allowed_amount_cents": allowed_amount_cents,
|
189
|
-
"insurance_balance_cents": insurance_balance_cents,
|
190
|
-
"patient_balance_cents": patient_balance_cents,
|
191
171
|
"paid_amount_cents": paid_amount_cents,
|
192
172
|
"primary_paid_amount_cents": primary_paid_amount_cents,
|
193
173
|
"secondary_paid_amount_cents": secondary_paid_amount_cents,
|
@@ -197,9 +177,7 @@ module CandidApiClient
|
|
197
177
|
"diagnosis_id_one": diagnosis_id_one,
|
198
178
|
"diagnosis_id_two": diagnosis_id_two,
|
199
179
|
"diagnosis_id_three": diagnosis_id_three,
|
200
|
-
"service_line_era_data": service_line_era_data,
|
201
180
|
"service_line_manual_adjustments": service_line_manual_adjustments,
|
202
|
-
"related_invoices": related_invoices,
|
203
181
|
"related_invoice_info": related_invoice_info,
|
204
182
|
"denial_reason": denial_reason,
|
205
183
|
"place_of_service_code": place_of_service_code,
|
@@ -232,8 +210,6 @@ module CandidApiClient
|
|
232
210
|
modifiers = struct["modifiers"]
|
233
211
|
charge_amount_cents = struct["charge_amount_cents"]
|
234
212
|
allowed_amount_cents = struct["allowed_amount_cents"]
|
235
|
-
insurance_balance_cents = struct["insurance_balance_cents"]
|
236
|
-
patient_balance_cents = struct["patient_balance_cents"]
|
237
213
|
paid_amount_cents = struct["paid_amount_cents"]
|
238
214
|
primary_paid_amount_cents = struct["primary_paid_amount_cents"]
|
239
215
|
secondary_paid_amount_cents = struct["secondary_paid_amount_cents"]
|
@@ -243,20 +219,10 @@ module CandidApiClient
|
|
243
219
|
diagnosis_id_one = struct["diagnosis_id_one"]
|
244
220
|
diagnosis_id_two = struct["diagnosis_id_two"]
|
245
221
|
diagnosis_id_three = struct["diagnosis_id_three"]
|
246
|
-
if parsed_json["service_line_era_data"].nil?
|
247
|
-
service_line_era_data = nil
|
248
|
-
else
|
249
|
-
service_line_era_data = parsed_json["service_line_era_data"].to_json
|
250
|
-
service_line_era_data = CandidApiClient::ServiceLines::V2::Types::ServiceLineEraData.from_json(json_object: service_line_era_data)
|
251
|
-
end
|
252
222
|
service_line_manual_adjustments = parsed_json["service_line_manual_adjustments"]&.map do |item|
|
253
223
|
item = item.to_json
|
254
224
|
CandidApiClient::ServiceLines::V2::Types::ServiceLineAdjustment.from_json(json_object: item)
|
255
225
|
end
|
256
|
-
related_invoices = parsed_json["related_invoices"]&.map do |item|
|
257
|
-
item = item.to_json
|
258
|
-
CandidApiClient::Invoices::Types::Invoice.from_json(json_object: item)
|
259
|
-
end
|
260
226
|
related_invoice_info = parsed_json["related_invoice_info"]&.map do |item|
|
261
227
|
item = item.to_json
|
262
228
|
CandidApiClient::Invoices::V2::Types::InvoiceInfo.from_json(json_object: item)
|
@@ -313,8 +279,6 @@ module CandidApiClient
|
|
313
279
|
modifiers: modifiers,
|
314
280
|
charge_amount_cents: charge_amount_cents,
|
315
281
|
allowed_amount_cents: allowed_amount_cents,
|
316
|
-
insurance_balance_cents: insurance_balance_cents,
|
317
|
-
patient_balance_cents: patient_balance_cents,
|
318
282
|
paid_amount_cents: paid_amount_cents,
|
319
283
|
primary_paid_amount_cents: primary_paid_amount_cents,
|
320
284
|
secondary_paid_amount_cents: secondary_paid_amount_cents,
|
@@ -324,9 +288,7 @@ module CandidApiClient
|
|
324
288
|
diagnosis_id_one: diagnosis_id_one,
|
325
289
|
diagnosis_id_two: diagnosis_id_two,
|
326
290
|
diagnosis_id_three: diagnosis_id_three,
|
327
|
-
service_line_era_data: service_line_era_data,
|
328
291
|
service_line_manual_adjustments: service_line_manual_adjustments,
|
329
|
-
related_invoices: related_invoices,
|
330
292
|
related_invoice_info: related_invoice_info,
|
331
293
|
denial_reason: denial_reason,
|
332
294
|
place_of_service_code: place_of_service_code,
|
@@ -365,8 +327,6 @@ module CandidApiClient
|
|
365
327
|
obj.modifiers&.is_a?(Array) != false || raise("Passed value for field obj.modifiers is not the expected type, validation failed.")
|
366
328
|
obj.charge_amount_cents&.is_a?(Integer) != false || raise("Passed value for field obj.charge_amount_cents is not the expected type, validation failed.")
|
367
329
|
obj.allowed_amount_cents&.is_a?(Integer) != false || raise("Passed value for field obj.allowed_amount_cents is not the expected type, validation failed.")
|
368
|
-
obj.insurance_balance_cents&.is_a?(Integer) != false || raise("Passed value for field obj.insurance_balance_cents is not the expected type, validation failed.")
|
369
|
-
obj.patient_balance_cents&.is_a?(Integer) != false || raise("Passed value for field obj.patient_balance_cents is not the expected type, validation failed.")
|
370
330
|
obj.paid_amount_cents&.is_a?(Integer) != false || raise("Passed value for field obj.paid_amount_cents is not the expected type, validation failed.")
|
371
331
|
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.")
|
372
332
|
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.")
|
@@ -376,9 +336,7 @@ module CandidApiClient
|
|
376
336
|
obj.diagnosis_id_one&.is_a?(String) != false || raise("Passed value for field obj.diagnosis_id_one is not the expected type, validation failed.")
|
377
337
|
obj.diagnosis_id_two&.is_a?(String) != false || raise("Passed value for field obj.diagnosis_id_two is not the expected type, validation failed.")
|
378
338
|
obj.diagnosis_id_three&.is_a?(String) != false || raise("Passed value for field obj.diagnosis_id_three is not the expected type, validation failed.")
|
379
|
-
obj.service_line_era_data.nil? || CandidApiClient::ServiceLines::V2::Types::ServiceLineEraData.validate_raw(obj: obj.service_line_era_data)
|
380
339
|
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.")
|
381
|
-
obj.related_invoices&.is_a?(Array) != false || raise("Passed value for field obj.related_invoices is not the expected type, validation failed.")
|
382
340
|
obj.related_invoice_info&.is_a?(Array) != false || raise("Passed value for field obj.related_invoice_info is not the expected type, validation failed.")
|
383
341
|
obj.denial_reason.nil? || CandidApiClient::ServiceLines::V2::Types::ServiceLineDenialReason.validate_raw(obj: obj.denial_reason)
|
384
342
|
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.")
|
@@ -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.26.
|
46
|
+
headers = { "X-Fern-Language": "Ruby", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.26.1" }
|
47
47
|
headers["Authorization"] = ((@token.is_a? Method) ? @token.call : @token) unless token.nil?
|
48
48
|
headers
|
49
49
|
end
|
@@ -87,7 +87,7 @@ module CandidApiClient
|
|
87
87
|
|
88
88
|
# @return [Hash{String => String}]
|
89
89
|
def get_headers
|
90
|
-
headers = { "X-Fern-Language": "Ruby", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.26.
|
90
|
+
headers = { "X-Fern-Language": "Ruby", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.26.1" }
|
91
91
|
headers["Authorization"] = ((@token.is_a? Method) ? @token.call : @token) unless token.nil?
|
92
92
|
headers
|
93
93
|
end
|
data/lib/types_export.rb
CHANGED
@@ -201,7 +201,6 @@ require_relative "candidhealth/service_lines/v_2/types/service_line_create"
|
|
201
201
|
require_relative "candidhealth/service_lines/v_2/types/service_line_create_standalone"
|
202
202
|
require_relative "candidhealth/service_lines/v_2/types/service_line_update"
|
203
203
|
require_relative "candidhealth/service_lines/v_2/types/service_line"
|
204
|
-
require_relative "candidhealth/service_lines/v_2/types/service_line_era_data"
|
205
204
|
require_relative "candidhealth/service_lines/v_2/types/service_line_adjustment"
|
206
205
|
require_relative "candidhealth/service_lines/v_2/types/service_line_denial_reason"
|
207
206
|
require_relative "candidhealth/service_lines/v_2/types/denial_reason_content"
|
@@ -341,9 +340,6 @@ require_relative "candidhealth/individual/types/patient_create"
|
|
341
340
|
require_relative "candidhealth/individual/types/patient_base"
|
342
341
|
require_relative "candidhealth/individual/types/patient"
|
343
342
|
require_relative "candidhealth/individual/types/gender"
|
344
|
-
require_relative "candidhealth/invoices/types/invoice"
|
345
|
-
require_relative "candidhealth/invoices/types/invoice_item"
|
346
|
-
require_relative "candidhealth/invoices/types/invoice_status"
|
347
343
|
require_relative "candidhealth/service_facility/types/encounter_service_facility_base"
|
348
344
|
require_relative "candidhealth/service_facility/types/encounter_service_facility"
|
349
345
|
require_relative "candidhealth/tags/types/tag_create"
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: candidhealth
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.26.
|
4
|
+
version: 0.26.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- ''
|
@@ -352,9 +352,6 @@ files:
|
|
352
352
|
- lib/candidhealth/insurance_refunds/v_1/types/insurance_refund_create.rb
|
353
353
|
- lib/candidhealth/insurance_refunds/v_1/types/insurance_refund_sort_field.rb
|
354
354
|
- lib/candidhealth/insurance_refunds/v_1/types/insurance_refunds_page.rb
|
355
|
-
- lib/candidhealth/invoices/types/invoice.rb
|
356
|
-
- lib/candidhealth/invoices/types/invoice_item.rb
|
357
|
-
- lib/candidhealth/invoices/types/invoice_status.rb
|
358
355
|
- lib/candidhealth/invoices/v_2/types/claim_invoice_item.rb
|
359
356
|
- lib/candidhealth/invoices/v_2/types/claim_invoice_item_info.rb
|
360
357
|
- lib/candidhealth/invoices/v_2/types/invoice.rb
|
@@ -465,7 +462,6 @@ files:
|
|
465
462
|
- lib/candidhealth/service_lines/v_2/types/service_line_create.rb
|
466
463
|
- lib/candidhealth/service_lines/v_2/types/service_line_create_standalone.rb
|
467
464
|
- lib/candidhealth/service_lines/v_2/types/service_line_denial_reason.rb
|
468
|
-
- lib/candidhealth/service_lines/v_2/types/service_line_era_data.rb
|
469
465
|
- lib/candidhealth/service_lines/v_2/types/service_line_update.rb
|
470
466
|
- lib/candidhealth/tags/types/tag.rb
|
471
467
|
- lib/candidhealth/tags/types/tag_color_enum.rb
|
@@ -1,169 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
require "date"
|
4
|
-
require_relative "invoice_status"
|
5
|
-
require_relative "invoice_item"
|
6
|
-
require "ostruct"
|
7
|
-
require "json"
|
8
|
-
|
9
|
-
module CandidApiClient
|
10
|
-
module Invoices
|
11
|
-
module Types
|
12
|
-
class Invoice
|
13
|
-
# @return [String]
|
14
|
-
attr_reader :id
|
15
|
-
# @return [DateTime]
|
16
|
-
attr_reader :created_at
|
17
|
-
# @return [DateTime]
|
18
|
-
attr_reader :updated_at
|
19
|
-
# @return [String]
|
20
|
-
attr_reader :organzation_id
|
21
|
-
# @return [String]
|
22
|
-
attr_reader :source_id
|
23
|
-
# @return [String]
|
24
|
-
attr_reader :source_customer_id
|
25
|
-
# @return [String]
|
26
|
-
attr_reader :patient_external_id
|
27
|
-
# @return [String]
|
28
|
-
attr_reader :note
|
29
|
-
# @return [String]
|
30
|
-
attr_reader :due_date
|
31
|
-
# @return [CandidApiClient::Invoices::Types::InvoiceStatus]
|
32
|
-
attr_reader :status
|
33
|
-
# @return [String]
|
34
|
-
attr_reader :url
|
35
|
-
# @return [String]
|
36
|
-
attr_reader :customer_invoice_url
|
37
|
-
# @return [Array<CandidApiClient::Invoices::Types::InvoiceItem>]
|
38
|
-
attr_reader :items
|
39
|
-
# @return [OpenStruct] Additional properties unmapped to the current class definition
|
40
|
-
attr_reader :additional_properties
|
41
|
-
# @return [Object]
|
42
|
-
attr_reader :_field_set
|
43
|
-
protected :_field_set
|
44
|
-
|
45
|
-
OMIT = Object.new
|
46
|
-
|
47
|
-
# @param id [String]
|
48
|
-
# @param created_at [DateTime]
|
49
|
-
# @param updated_at [DateTime]
|
50
|
-
# @param organzation_id [String]
|
51
|
-
# @param source_id [String]
|
52
|
-
# @param source_customer_id [String]
|
53
|
-
# @param patient_external_id [String]
|
54
|
-
# @param note [String]
|
55
|
-
# @param due_date [String]
|
56
|
-
# @param status [CandidApiClient::Invoices::Types::InvoiceStatus]
|
57
|
-
# @param url [String]
|
58
|
-
# @param customer_invoice_url [String]
|
59
|
-
# @param items [Array<CandidApiClient::Invoices::Types::InvoiceItem>]
|
60
|
-
# @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
|
61
|
-
# @return [CandidApiClient::Invoices::Types::Invoice]
|
62
|
-
def initialize(id:, created_at:, updated_at:, organzation_id:, source_id:, source_customer_id:,
|
63
|
-
patient_external_id:, due_date:, status:, items:, note: OMIT, url: OMIT, customer_invoice_url: OMIT, additional_properties: nil)
|
64
|
-
@id = id
|
65
|
-
@created_at = created_at
|
66
|
-
@updated_at = updated_at
|
67
|
-
@organzation_id = organzation_id
|
68
|
-
@source_id = source_id
|
69
|
-
@source_customer_id = source_customer_id
|
70
|
-
@patient_external_id = patient_external_id
|
71
|
-
@note = note if note != OMIT
|
72
|
-
@due_date = due_date
|
73
|
-
@status = status
|
74
|
-
@url = url if url != OMIT
|
75
|
-
@customer_invoice_url = customer_invoice_url if customer_invoice_url != OMIT
|
76
|
-
@items = items
|
77
|
-
@additional_properties = additional_properties
|
78
|
-
@_field_set = {
|
79
|
-
"id": id,
|
80
|
-
"created_at": created_at,
|
81
|
-
"updated_at": updated_at,
|
82
|
-
"organzation_id": organzation_id,
|
83
|
-
"source_id": source_id,
|
84
|
-
"source_customer_id": source_customer_id,
|
85
|
-
"patient_external_id": patient_external_id,
|
86
|
-
"note": note,
|
87
|
-
"due_date": due_date,
|
88
|
-
"status": status,
|
89
|
-
"url": url,
|
90
|
-
"customer_invoice_url": customer_invoice_url,
|
91
|
-
"items": items
|
92
|
-
}.reject do |_k, v|
|
93
|
-
v == OMIT
|
94
|
-
end
|
95
|
-
end
|
96
|
-
|
97
|
-
# Deserialize a JSON object to an instance of Invoice
|
98
|
-
#
|
99
|
-
# @param json_object [String]
|
100
|
-
# @return [CandidApiClient::Invoices::Types::Invoice]
|
101
|
-
def self.from_json(json_object:)
|
102
|
-
struct = JSON.parse(json_object, object_class: OpenStruct)
|
103
|
-
parsed_json = JSON.parse(json_object)
|
104
|
-
id = struct["id"]
|
105
|
-
created_at = (DateTime.parse(parsed_json["created_at"]) unless parsed_json["created_at"].nil?)
|
106
|
-
updated_at = (DateTime.parse(parsed_json["updated_at"]) unless parsed_json["updated_at"].nil?)
|
107
|
-
organzation_id = struct["organzation_id"]
|
108
|
-
source_id = struct["source_id"]
|
109
|
-
source_customer_id = struct["source_customer_id"]
|
110
|
-
patient_external_id = struct["patient_external_id"]
|
111
|
-
note = struct["note"]
|
112
|
-
due_date = struct["due_date"]
|
113
|
-
status = struct["status"]
|
114
|
-
url = struct["url"]
|
115
|
-
customer_invoice_url = struct["customer_invoice_url"]
|
116
|
-
items = parsed_json["items"]&.map do |item|
|
117
|
-
item = item.to_json
|
118
|
-
CandidApiClient::Invoices::Types::InvoiceItem.from_json(json_object: item)
|
119
|
-
end
|
120
|
-
new(
|
121
|
-
id: id,
|
122
|
-
created_at: created_at,
|
123
|
-
updated_at: updated_at,
|
124
|
-
organzation_id: organzation_id,
|
125
|
-
source_id: source_id,
|
126
|
-
source_customer_id: source_customer_id,
|
127
|
-
patient_external_id: patient_external_id,
|
128
|
-
note: note,
|
129
|
-
due_date: due_date,
|
130
|
-
status: status,
|
131
|
-
url: url,
|
132
|
-
customer_invoice_url: customer_invoice_url,
|
133
|
-
items: items,
|
134
|
-
additional_properties: struct
|
135
|
-
)
|
136
|
-
end
|
137
|
-
|
138
|
-
# Serialize an instance of Invoice to a JSON object
|
139
|
-
#
|
140
|
-
# @return [String]
|
141
|
-
def to_json(*_args)
|
142
|
-
@_field_set&.to_json
|
143
|
-
end
|
144
|
-
|
145
|
-
# Leveraged for Union-type generation, validate_raw attempts to parse the given
|
146
|
-
# hash and check each fields type against the current object's property
|
147
|
-
# definitions.
|
148
|
-
#
|
149
|
-
# @param obj [Object]
|
150
|
-
# @return [Void]
|
151
|
-
def self.validate_raw(obj:)
|
152
|
-
obj.id.is_a?(String) != false || raise("Passed value for field obj.id is not the expected type, validation failed.")
|
153
|
-
obj.created_at.is_a?(DateTime) != false || raise("Passed value for field obj.created_at is not the expected type, validation failed.")
|
154
|
-
obj.updated_at.is_a?(DateTime) != false || raise("Passed value for field obj.updated_at is not the expected type, validation failed.")
|
155
|
-
obj.organzation_id.is_a?(String) != false || raise("Passed value for field obj.organzation_id is not the expected type, validation failed.")
|
156
|
-
obj.source_id.is_a?(String) != false || raise("Passed value for field obj.source_id is not the expected type, validation failed.")
|
157
|
-
obj.source_customer_id.is_a?(String) != false || raise("Passed value for field obj.source_customer_id is not the expected type, validation failed.")
|
158
|
-
obj.patient_external_id.is_a?(String) != false || raise("Passed value for field obj.patient_external_id is not the expected type, validation failed.")
|
159
|
-
obj.note&.is_a?(String) != false || raise("Passed value for field obj.note is not the expected type, validation failed.")
|
160
|
-
obj.due_date.is_a?(String) != false || raise("Passed value for field obj.due_date is not the expected type, validation failed.")
|
161
|
-
obj.status.is_a?(CandidApiClient::Invoices::Types::InvoiceStatus) != false || raise("Passed value for field obj.status is not the expected type, validation failed.")
|
162
|
-
obj.url&.is_a?(String) != false || raise("Passed value for field obj.url is not the expected type, validation failed.")
|
163
|
-
obj.customer_invoice_url&.is_a?(String) != false || raise("Passed value for field obj.customer_invoice_url is not the expected type, validation failed.")
|
164
|
-
obj.items.is_a?(Array) != false || raise("Passed value for field obj.items is not the expected type, validation failed.")
|
165
|
-
end
|
166
|
-
end
|
167
|
-
end
|
168
|
-
end
|
169
|
-
end
|
@@ -1,68 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
require "ostruct"
|
4
|
-
require "json"
|
5
|
-
|
6
|
-
module CandidApiClient
|
7
|
-
module Invoices
|
8
|
-
module Types
|
9
|
-
class InvoiceItem
|
10
|
-
# @return [String]
|
11
|
-
attr_reader :service_line_id
|
12
|
-
# @return [Integer]
|
13
|
-
attr_reader :amount_cents
|
14
|
-
# @return [OpenStruct] Additional properties unmapped to the current class definition
|
15
|
-
attr_reader :additional_properties
|
16
|
-
# @return [Object]
|
17
|
-
attr_reader :_field_set
|
18
|
-
protected :_field_set
|
19
|
-
|
20
|
-
OMIT = Object.new
|
21
|
-
|
22
|
-
# @param service_line_id [String]
|
23
|
-
# @param amount_cents [Integer]
|
24
|
-
# @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
|
25
|
-
# @return [CandidApiClient::Invoices::Types::InvoiceItem]
|
26
|
-
def initialize(service_line_id:, amount_cents:, additional_properties: nil)
|
27
|
-
@service_line_id = service_line_id
|
28
|
-
@amount_cents = amount_cents
|
29
|
-
@additional_properties = additional_properties
|
30
|
-
@_field_set = { "service_line_id": service_line_id, "amount_cents": amount_cents }
|
31
|
-
end
|
32
|
-
|
33
|
-
# Deserialize a JSON object to an instance of InvoiceItem
|
34
|
-
#
|
35
|
-
# @param json_object [String]
|
36
|
-
# @return [CandidApiClient::Invoices::Types::InvoiceItem]
|
37
|
-
def self.from_json(json_object:)
|
38
|
-
struct = JSON.parse(json_object, object_class: OpenStruct)
|
39
|
-
service_line_id = struct["service_line_id"]
|
40
|
-
amount_cents = struct["amount_cents"]
|
41
|
-
new(
|
42
|
-
service_line_id: service_line_id,
|
43
|
-
amount_cents: amount_cents,
|
44
|
-
additional_properties: struct
|
45
|
-
)
|
46
|
-
end
|
47
|
-
|
48
|
-
# Serialize an instance of InvoiceItem to a JSON object
|
49
|
-
#
|
50
|
-
# @return [String]
|
51
|
-
def to_json(*_args)
|
52
|
-
@_field_set&.to_json
|
53
|
-
end
|
54
|
-
|
55
|
-
# Leveraged for Union-type generation, validate_raw attempts to parse the given
|
56
|
-
# hash and check each fields type against the current object's property
|
57
|
-
# definitions.
|
58
|
-
#
|
59
|
-
# @param obj [Object]
|
60
|
-
# @return [Void]
|
61
|
-
def self.validate_raw(obj:)
|
62
|
-
obj.service_line_id.is_a?(String) != false || raise("Passed value for field obj.service_line_id is not the expected type, validation failed.")
|
63
|
-
obj.amount_cents.is_a?(Integer) != false || raise("Passed value for field obj.amount_cents is not the expected type, validation failed.")
|
64
|
-
end
|
65
|
-
end
|
66
|
-
end
|
67
|
-
end
|
68
|
-
end
|
@@ -1,16 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
module CandidApiClient
|
4
|
-
module Invoices
|
5
|
-
module Types
|
6
|
-
class InvoiceStatus
|
7
|
-
DRAFT = "draft"
|
8
|
-
OPEN = "open"
|
9
|
-
PAID = "paid"
|
10
|
-
VOID = "void"
|
11
|
-
UNCOLLECTIBLE = "uncollectible"
|
12
|
-
HELD = "held"
|
13
|
-
end
|
14
|
-
end
|
15
|
-
end
|
16
|
-
end
|
@@ -1,78 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
require_relative "service_line_adjustment"
|
4
|
-
require "ostruct"
|
5
|
-
require "json"
|
6
|
-
|
7
|
-
module CandidApiClient
|
8
|
-
module ServiceLines
|
9
|
-
module V2
|
10
|
-
module Types
|
11
|
-
class ServiceLineEraData
|
12
|
-
# @return [Array<CandidApiClient::ServiceLines::V2::Types::ServiceLineAdjustment>]
|
13
|
-
attr_reader :service_line_adjustments
|
14
|
-
# @return [Array<String>]
|
15
|
-
attr_reader :remittance_advice_remark_codes
|
16
|
-
# @return [OpenStruct] Additional properties unmapped to the current class definition
|
17
|
-
attr_reader :additional_properties
|
18
|
-
# @return [Object]
|
19
|
-
attr_reader :_field_set
|
20
|
-
protected :_field_set
|
21
|
-
|
22
|
-
OMIT = Object.new
|
23
|
-
|
24
|
-
# @param service_line_adjustments [Array<CandidApiClient::ServiceLines::V2::Types::ServiceLineAdjustment>]
|
25
|
-
# @param remittance_advice_remark_codes [Array<String>]
|
26
|
-
# @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
|
27
|
-
# @return [CandidApiClient::ServiceLines::V2::Types::ServiceLineEraData]
|
28
|
-
def initialize(service_line_adjustments:, remittance_advice_remark_codes:, additional_properties: nil)
|
29
|
-
@service_line_adjustments = service_line_adjustments
|
30
|
-
@remittance_advice_remark_codes = remittance_advice_remark_codes
|
31
|
-
@additional_properties = additional_properties
|
32
|
-
@_field_set = {
|
33
|
-
"service_line_adjustments": service_line_adjustments,
|
34
|
-
"remittance_advice_remark_codes": remittance_advice_remark_codes
|
35
|
-
}
|
36
|
-
end
|
37
|
-
|
38
|
-
# Deserialize a JSON object to an instance of ServiceLineEraData
|
39
|
-
#
|
40
|
-
# @param json_object [String]
|
41
|
-
# @return [CandidApiClient::ServiceLines::V2::Types::ServiceLineEraData]
|
42
|
-
def self.from_json(json_object:)
|
43
|
-
struct = JSON.parse(json_object, object_class: OpenStruct)
|
44
|
-
parsed_json = JSON.parse(json_object)
|
45
|
-
service_line_adjustments = parsed_json["service_line_adjustments"]&.map do |item|
|
46
|
-
item = item.to_json
|
47
|
-
CandidApiClient::ServiceLines::V2::Types::ServiceLineAdjustment.from_json(json_object: item)
|
48
|
-
end
|
49
|
-
remittance_advice_remark_codes = struct["remittance_advice_remark_codes"]
|
50
|
-
new(
|
51
|
-
service_line_adjustments: service_line_adjustments,
|
52
|
-
remittance_advice_remark_codes: remittance_advice_remark_codes,
|
53
|
-
additional_properties: struct
|
54
|
-
)
|
55
|
-
end
|
56
|
-
|
57
|
-
# Serialize an instance of ServiceLineEraData to a JSON object
|
58
|
-
#
|
59
|
-
# @return [String]
|
60
|
-
def to_json(*_args)
|
61
|
-
@_field_set&.to_json
|
62
|
-
end
|
63
|
-
|
64
|
-
# Leveraged for Union-type generation, validate_raw attempts to parse the given
|
65
|
-
# hash and check each fields type against the current object's property
|
66
|
-
# definitions.
|
67
|
-
#
|
68
|
-
# @param obj [Object]
|
69
|
-
# @return [Void]
|
70
|
-
def self.validate_raw(obj:)
|
71
|
-
obj.service_line_adjustments.is_a?(Array) != false || raise("Passed value for field obj.service_line_adjustments is not the expected type, validation failed.")
|
72
|
-
obj.remittance_advice_remark_codes.is_a?(Array) != false || raise("Passed value for field obj.remittance_advice_remark_codes is not the expected type, validation failed.")
|
73
|
-
end
|
74
|
-
end
|
75
|
-
end
|
76
|
-
end
|
77
|
-
end
|
78
|
-
end
|