candidhealth 1.4.0 → 1.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/candidhealth/charge_capture/v_1/client.rb +885 -235
- data/lib/candidhealth/contracts/v_2/client.rb +4 -4
- data/lib/candidhealth/diagnoses/types/disallow_multiple_primary_diagnosis_error.rb +80 -0
- data/lib/candidhealth/fee_schedules/v_3/client.rb +82 -0
- data/lib/candidhealth/individual/types/subscriber_create.rb +6 -2
- data/lib/candidhealth/individual/types/subscriber_create_optional.rb +6 -2
- data/lib/candidhealth/non_insurance_payers/v_1/client.rb +95 -6
- data/lib/candidhealth/non_insurance_payers/v_1/types/non_insurance_payer_categories_page.rb +83 -0
- data/lib/candidhealth/organization_providers/v_3/client.rb +8 -4
- data/lib/candidhealth/organization_service_facilities/v_2/client.rb +8 -2
- data/lib/candidhealth/pre_encounter/appointments/v_1/client.rb +12 -4
- data/lib/candidhealth/pre_encounter/appointments/v_1/types/appointment.rb +11 -3
- data/lib/candidhealth/pre_encounter/appointments/v_1/types/mutable_appointment.rb +9 -1
- data/lib/candidhealth/pre_encounter/appointments/v_1/types/visit.rb +24 -2
- data/lib/candidhealth/pre_encounter/common/types/base_model.rb +2 -2
- data/lib/candidhealth/pre_encounter/coverages/v_1/client.rb +8 -4
- data/lib/candidhealth/pre_encounter/coverages/v_1/types/coverage.rb +6 -4
- data/lib/candidhealth/pre_encounter/coverages/v_1/types/mutable_coverage.rb +4 -2
- data/lib/candidhealth/pre_encounter/eligibility_checks/v_1/client.rb +0 -14
- data/lib/candidhealth/pre_encounter/eligibility_checks/v_1/types/eligibility_recommendation.rb +2 -2
- data/lib/candidhealth/pre_encounter/eligibility_checks/v_1/types/medicare_advantage_recommendation_payload.rb +14 -5
- data/lib/candidhealth/pre_encounter/images/v_1/types/image.rb +2 -2
- data/lib/candidhealth/pre_encounter/notes/v_1/types/note.rb +2 -2
- data/lib/candidhealth/pre_encounter/patients/v_1/client.rb +8 -4
- data/lib/candidhealth/pre_encounter/patients/v_1/types/patient.rb +2 -2
- data/lib/candidhealth/pre_encounter/tags/v_1/types/tag.rb +2 -2
- data/lib/requests.rb +2 -2
- data/lib/types_export.rb +2 -0
- metadata +4 -2
@@ -54,6 +54,7 @@ module CandidApiClient
|
|
54
54
|
# * :estimated_copay_cents (Integer)
|
55
55
|
# * :estimated_patient_responsibility_cents (Integer)
|
56
56
|
# * :patient_deposit_cents (Integer)
|
57
|
+
# * :appointment_details (String)
|
57
58
|
# * :checked_in_timestamp (DateTime)
|
58
59
|
# * :notes (String)
|
59
60
|
# * :location_resource_id (String)
|
@@ -168,8 +169,10 @@ module CandidApiClient
|
|
168
169
|
end
|
169
170
|
end
|
170
171
|
|
171
|
-
# Updates an appointment.
|
172
|
-
#
|
172
|
+
# Updates an appointment. The path must contain the next version number to prevent
|
173
|
+
# race conditions. For example, if the current version of the appointment is n,
|
174
|
+
# you will need to send a request to this endpoint with `/{id}/n+1` to update the
|
175
|
+
# appointment. Updating historic versions is not supported.
|
173
176
|
#
|
174
177
|
# @param id [String]
|
175
178
|
# @param version [String]
|
@@ -201,6 +204,7 @@ module CandidApiClient
|
|
201
204
|
# * :estimated_copay_cents (Integer)
|
202
205
|
# * :estimated_patient_responsibility_cents (Integer)
|
203
206
|
# * :patient_deposit_cents (Integer)
|
207
|
+
# * :appointment_details (String)
|
204
208
|
# * :checked_in_timestamp (DateTime)
|
205
209
|
# * :notes (String)
|
206
210
|
# * :location_resource_id (String)
|
@@ -328,6 +332,7 @@ module CandidApiClient
|
|
328
332
|
# * :estimated_copay_cents (Integer)
|
329
333
|
# * :estimated_patient_responsibility_cents (Integer)
|
330
334
|
# * :patient_deposit_cents (Integer)
|
335
|
+
# * :appointment_details (String)
|
331
336
|
# * :checked_in_timestamp (DateTime)
|
332
337
|
# * :notes (String)
|
333
338
|
# * :location_resource_id (String)
|
@@ -450,8 +455,10 @@ module CandidApiClient
|
|
450
455
|
end
|
451
456
|
end
|
452
457
|
|
453
|
-
# Updates an appointment.
|
454
|
-
#
|
458
|
+
# Updates an appointment. The path must contain the next version number to prevent
|
459
|
+
# race conditions. For example, if the current version of the appointment is n,
|
460
|
+
# you will need to send a request to this endpoint with `/{id}/n+1` to update the
|
461
|
+
# appointment. Updating historic versions is not supported.
|
455
462
|
#
|
456
463
|
# @param id [String]
|
457
464
|
# @param version [String]
|
@@ -483,6 +490,7 @@ module CandidApiClient
|
|
483
490
|
# * :estimated_copay_cents (Integer)
|
484
491
|
# * :estimated_patient_responsibility_cents (Integer)
|
485
492
|
# * :patient_deposit_cents (Integer)
|
493
|
+
# * :appointment_details (String)
|
486
494
|
# * :checked_in_timestamp (DateTime)
|
487
495
|
# * :notes (String)
|
488
496
|
# * :location_resource_id (String)
|
@@ -22,7 +22,7 @@ module CandidApiClient
|
|
22
22
|
# @return [Boolean] True if the object is deactivated. Deactivated objects are not returned in
|
23
23
|
# search results but are returned in all other endpoints including scan.
|
24
24
|
attr_reader :deactivated
|
25
|
-
# @return [Integer] The version of the object.
|
25
|
+
# @return [Integer] The version of the object. Any update to any property of an object object will
|
26
26
|
# create a new version.
|
27
27
|
attr_reader :version
|
28
28
|
# @return [DateTime]
|
@@ -54,6 +54,8 @@ module CandidApiClient
|
|
54
54
|
attr_reader :estimated_patient_responsibility_cents
|
55
55
|
# @return [Integer]
|
56
56
|
attr_reader :patient_deposit_cents
|
57
|
+
# @return [String]
|
58
|
+
attr_reader :appointment_details
|
57
59
|
# @return [DateTime] The timestamp when the patient checked in for their appointment. If status is
|
58
60
|
# CHECKED_IN, checked_in_timestamp must be set. If checked_in_timestamp is set,
|
59
61
|
# status must be CHECKED_IN.
|
@@ -84,7 +86,7 @@ module CandidApiClient
|
|
84
86
|
# @param organization_id [String] The organization that owns this object.
|
85
87
|
# @param deactivated [Boolean] True if the object is deactivated. Deactivated objects are not returned in
|
86
88
|
# search results but are returned in all other endpoints including scan.
|
87
|
-
# @param version [Integer] The version of the object.
|
89
|
+
# @param version [Integer] The version of the object. Any update to any property of an object object will
|
88
90
|
# create a new version.
|
89
91
|
# @param updated_at [DateTime]
|
90
92
|
# @param updating_user_id [String] The user ID of the user who last updated the object.
|
@@ -103,6 +105,7 @@ module CandidApiClient
|
|
103
105
|
# @param estimated_copay_cents [Integer]
|
104
106
|
# @param estimated_patient_responsibility_cents [Integer]
|
105
107
|
# @param patient_deposit_cents [Integer]
|
108
|
+
# @param appointment_details [String]
|
106
109
|
# @param checked_in_timestamp [DateTime] The timestamp when the patient checked in for their appointment. If status is
|
107
110
|
# CHECKED_IN, checked_in_timestamp must be set. If checked_in_timestamp is set,
|
108
111
|
# status must be CHECKED_IN.
|
@@ -119,7 +122,7 @@ module CandidApiClient
|
|
119
122
|
# @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
|
120
123
|
# @return [CandidApiClient::PreEncounter::Appointments::V1::Types::Appointment]
|
121
124
|
def initialize(id:, organization_id:, deactivated:, version:, updated_at:, updating_user_id:, patient_id:,
|
122
|
-
start_timestamp:, service_duration:, services:, status: OMIT, placer_appointment_id: OMIT, attending_doctor: OMIT, estimated_copay_cents: OMIT, estimated_patient_responsibility_cents: OMIT, patient_deposit_cents: OMIT, checked_in_timestamp: OMIT, notes: OMIT, location_resource_id: OMIT, automated_eligibility_check_complete: OMIT, work_queue: OMIT, additional_properties: nil)
|
125
|
+
start_timestamp:, service_duration:, services:, status: OMIT, placer_appointment_id: OMIT, attending_doctor: OMIT, estimated_copay_cents: OMIT, estimated_patient_responsibility_cents: OMIT, patient_deposit_cents: OMIT, appointment_details: OMIT, checked_in_timestamp: OMIT, notes: OMIT, location_resource_id: OMIT, automated_eligibility_check_complete: OMIT, work_queue: OMIT, additional_properties: nil)
|
123
126
|
@id = id
|
124
127
|
@organization_id = organization_id
|
125
128
|
@deactivated = deactivated
|
@@ -138,6 +141,7 @@ module CandidApiClient
|
|
138
141
|
@estimated_patient_responsibility_cents = estimated_patient_responsibility_cents
|
139
142
|
end
|
140
143
|
@patient_deposit_cents = patient_deposit_cents if patient_deposit_cents != OMIT
|
144
|
+
@appointment_details = appointment_details if appointment_details != OMIT
|
141
145
|
@checked_in_timestamp = checked_in_timestamp if checked_in_timestamp != OMIT
|
142
146
|
@notes = notes if notes != OMIT
|
143
147
|
@location_resource_id = location_resource_id if location_resource_id != OMIT
|
@@ -163,6 +167,7 @@ module CandidApiClient
|
|
163
167
|
"estimated_copay_cents": estimated_copay_cents,
|
164
168
|
"estimated_patient_responsibility_cents": estimated_patient_responsibility_cents,
|
165
169
|
"patient_deposit_cents": patient_deposit_cents,
|
170
|
+
"appointment_details": appointment_details,
|
166
171
|
"checked_in_timestamp": checked_in_timestamp,
|
167
172
|
"notes": notes,
|
168
173
|
"location_resource_id": location_resource_id,
|
@@ -206,6 +211,7 @@ module CandidApiClient
|
|
206
211
|
estimated_copay_cents = struct["estimated_copay_cents"]
|
207
212
|
estimated_patient_responsibility_cents = struct["estimated_patient_responsibility_cents"]
|
208
213
|
patient_deposit_cents = struct["patient_deposit_cents"]
|
214
|
+
appointment_details = struct["appointment_details"]
|
209
215
|
checked_in_timestamp = unless parsed_json["checked_in_timestamp"].nil?
|
210
216
|
DateTime.parse(parsed_json["checked_in_timestamp"])
|
211
217
|
end
|
@@ -230,6 +236,7 @@ module CandidApiClient
|
|
230
236
|
estimated_copay_cents: estimated_copay_cents,
|
231
237
|
estimated_patient_responsibility_cents: estimated_patient_responsibility_cents,
|
232
238
|
patient_deposit_cents: patient_deposit_cents,
|
239
|
+
appointment_details: appointment_details,
|
233
240
|
checked_in_timestamp: checked_in_timestamp,
|
234
241
|
notes: notes,
|
235
242
|
location_resource_id: location_resource_id,
|
@@ -269,6 +276,7 @@ module CandidApiClient
|
|
269
276
|
obj.estimated_copay_cents&.is_a?(Integer) != false || raise("Passed value for field obj.estimated_copay_cents is not the expected type, validation failed.")
|
270
277
|
obj.estimated_patient_responsibility_cents&.is_a?(Integer) != false || raise("Passed value for field obj.estimated_patient_responsibility_cents is not the expected type, validation failed.")
|
271
278
|
obj.patient_deposit_cents&.is_a?(Integer) != false || raise("Passed value for field obj.patient_deposit_cents is not the expected type, validation failed.")
|
279
|
+
obj.appointment_details&.is_a?(String) != false || raise("Passed value for field obj.appointment_details is not the expected type, validation failed.")
|
272
280
|
obj.checked_in_timestamp&.is_a?(DateTime) != false || raise("Passed value for field obj.checked_in_timestamp is not the expected type, validation failed.")
|
273
281
|
obj.notes&.is_a?(String) != false || raise("Passed value for field obj.notes is not the expected type, validation failed.")
|
274
282
|
obj.location_resource_id&.is_a?(String) != false || raise("Passed value for field obj.location_resource_id is not the expected type, validation failed.")
|
@@ -40,6 +40,8 @@ module CandidApiClient
|
|
40
40
|
attr_reader :estimated_patient_responsibility_cents
|
41
41
|
# @return [Integer]
|
42
42
|
attr_reader :patient_deposit_cents
|
43
|
+
# @return [String]
|
44
|
+
attr_reader :appointment_details
|
43
45
|
# @return [DateTime] The timestamp when the patient checked in for their appointment. If status is
|
44
46
|
# CHECKED_IN, checked_in_timestamp must be set. If checked_in_timestamp is set,
|
45
47
|
# status must be CHECKED_IN.
|
@@ -81,6 +83,7 @@ module CandidApiClient
|
|
81
83
|
# @param estimated_copay_cents [Integer]
|
82
84
|
# @param estimated_patient_responsibility_cents [Integer]
|
83
85
|
# @param patient_deposit_cents [Integer]
|
86
|
+
# @param appointment_details [String]
|
84
87
|
# @param checked_in_timestamp [DateTime] The timestamp when the patient checked in for their appointment. If status is
|
85
88
|
# CHECKED_IN, checked_in_timestamp must be set. If checked_in_timestamp is set,
|
86
89
|
# status must be CHECKED_IN.
|
@@ -97,7 +100,7 @@ module CandidApiClient
|
|
97
100
|
# @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
|
98
101
|
# @return [CandidApiClient::PreEncounter::Appointments::V1::Types::MutableAppointment]
|
99
102
|
def initialize(patient_id:, start_timestamp:, service_duration:, services:, status: OMIT,
|
100
|
-
placer_appointment_id: OMIT, attending_doctor: OMIT, estimated_copay_cents: OMIT, estimated_patient_responsibility_cents: OMIT, patient_deposit_cents: OMIT, checked_in_timestamp: OMIT, notes: OMIT, location_resource_id: OMIT, automated_eligibility_check_complete: OMIT, work_queue: OMIT, additional_properties: nil)
|
103
|
+
placer_appointment_id: OMIT, attending_doctor: OMIT, estimated_copay_cents: OMIT, estimated_patient_responsibility_cents: OMIT, patient_deposit_cents: OMIT, appointment_details: OMIT, checked_in_timestamp: OMIT, notes: OMIT, location_resource_id: OMIT, automated_eligibility_check_complete: OMIT, work_queue: OMIT, additional_properties: nil)
|
101
104
|
@patient_id = patient_id
|
102
105
|
@start_timestamp = start_timestamp
|
103
106
|
@status = status if status != OMIT
|
@@ -110,6 +113,7 @@ module CandidApiClient
|
|
110
113
|
@estimated_patient_responsibility_cents = estimated_patient_responsibility_cents
|
111
114
|
end
|
112
115
|
@patient_deposit_cents = patient_deposit_cents if patient_deposit_cents != OMIT
|
116
|
+
@appointment_details = appointment_details if appointment_details != OMIT
|
113
117
|
@checked_in_timestamp = checked_in_timestamp if checked_in_timestamp != OMIT
|
114
118
|
@notes = notes if notes != OMIT
|
115
119
|
@location_resource_id = location_resource_id if location_resource_id != OMIT
|
@@ -129,6 +133,7 @@ module CandidApiClient
|
|
129
133
|
"estimated_copay_cents": estimated_copay_cents,
|
130
134
|
"estimated_patient_responsibility_cents": estimated_patient_responsibility_cents,
|
131
135
|
"patient_deposit_cents": patient_deposit_cents,
|
136
|
+
"appointment_details": appointment_details,
|
132
137
|
"checked_in_timestamp": checked_in_timestamp,
|
133
138
|
"notes": notes,
|
134
139
|
"location_resource_id": location_resource_id,
|
@@ -166,6 +171,7 @@ module CandidApiClient
|
|
166
171
|
estimated_copay_cents = struct["estimated_copay_cents"]
|
167
172
|
estimated_patient_responsibility_cents = struct["estimated_patient_responsibility_cents"]
|
168
173
|
patient_deposit_cents = struct["patient_deposit_cents"]
|
174
|
+
appointment_details = struct["appointment_details"]
|
169
175
|
checked_in_timestamp = unless parsed_json["checked_in_timestamp"].nil?
|
170
176
|
DateTime.parse(parsed_json["checked_in_timestamp"])
|
171
177
|
end
|
@@ -184,6 +190,7 @@ module CandidApiClient
|
|
184
190
|
estimated_copay_cents: estimated_copay_cents,
|
185
191
|
estimated_patient_responsibility_cents: estimated_patient_responsibility_cents,
|
186
192
|
patient_deposit_cents: patient_deposit_cents,
|
193
|
+
appointment_details: appointment_details,
|
187
194
|
checked_in_timestamp: checked_in_timestamp,
|
188
195
|
notes: notes,
|
189
196
|
location_resource_id: location_resource_id,
|
@@ -217,6 +224,7 @@ module CandidApiClient
|
|
217
224
|
obj.estimated_copay_cents&.is_a?(Integer) != false || raise("Passed value for field obj.estimated_copay_cents is not the expected type, validation failed.")
|
218
225
|
obj.estimated_patient_responsibility_cents&.is_a?(Integer) != false || raise("Passed value for field obj.estimated_patient_responsibility_cents is not the expected type, validation failed.")
|
219
226
|
obj.patient_deposit_cents&.is_a?(Integer) != false || raise("Passed value for field obj.patient_deposit_cents is not the expected type, validation failed.")
|
227
|
+
obj.appointment_details&.is_a?(String) != false || raise("Passed value for field obj.appointment_details is not the expected type, validation failed.")
|
220
228
|
obj.checked_in_timestamp&.is_a?(DateTime) != false || raise("Passed value for field obj.checked_in_timestamp is not the expected type, validation failed.")
|
221
229
|
obj.notes&.is_a?(String) != false || raise("Passed value for field obj.notes is not the expected type, validation failed.")
|
222
230
|
obj.location_resource_id&.is_a?(String) != false || raise("Passed value for field obj.location_resource_id is not the expected type, validation failed.")
|
@@ -3,6 +3,7 @@
|
|
3
3
|
require_relative "../../../patients/v_1/types/mutable_patient_with_mrn"
|
4
4
|
require "date"
|
5
5
|
require_relative "appointment_status"
|
6
|
+
require_relative "../../../coverages/v_1/types/mutable_coverage"
|
6
7
|
require "ostruct"
|
7
8
|
require "json"
|
8
9
|
|
@@ -21,6 +22,8 @@ module CandidApiClient
|
|
21
22
|
attr_reader :start_time
|
22
23
|
# @return [CandidApiClient::PreEncounter::Appointments::V1::Types::AppointmentStatus]
|
23
24
|
attr_reader :status
|
25
|
+
# @return [CandidApiClient::PreEncounter::Coverages::V1::Types::MutableCoverage]
|
26
|
+
attr_reader :primary_coverage
|
24
27
|
# @return [OpenStruct] Additional properties unmapped to the current class definition
|
25
28
|
attr_reader :additional_properties
|
26
29
|
# @return [Object]
|
@@ -33,15 +36,26 @@ module CandidApiClient
|
|
33
36
|
# @param patient [CandidApiClient::PreEncounter::Patients::V1::Types::MutablePatientWithMrn]
|
34
37
|
# @param start_time [DateTime]
|
35
38
|
# @param status [CandidApiClient::PreEncounter::Appointments::V1::Types::AppointmentStatus]
|
39
|
+
# @param primary_coverage [CandidApiClient::PreEncounter::Coverages::V1::Types::MutableCoverage]
|
36
40
|
# @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
|
37
41
|
# @return [CandidApiClient::PreEncounter::Appointments::V1::Types::Visit]
|
38
|
-
def initialize(patient_id:, patient:, start_time:, status:,
|
42
|
+
def initialize(patient_id:, patient:, start_time:, status:, primary_coverage: OMIT,
|
43
|
+
additional_properties: nil)
|
39
44
|
@patient_id = patient_id
|
40
45
|
@patient = patient
|
41
46
|
@start_time = start_time
|
42
47
|
@status = status
|
48
|
+
@primary_coverage = primary_coverage if primary_coverage != OMIT
|
43
49
|
@additional_properties = additional_properties
|
44
|
-
@_field_set = {
|
50
|
+
@_field_set = {
|
51
|
+
"patient_id": patient_id,
|
52
|
+
"patient": patient,
|
53
|
+
"start_time": start_time,
|
54
|
+
"status": status,
|
55
|
+
"primary_coverage": primary_coverage
|
56
|
+
}.reject do |_k, v|
|
57
|
+
v == OMIT
|
58
|
+
end
|
45
59
|
end
|
46
60
|
|
47
61
|
# Deserialize a JSON object to an instance of Visit
|
@@ -60,11 +74,18 @@ module CandidApiClient
|
|
60
74
|
end
|
61
75
|
start_time = (DateTime.parse(parsed_json["start_time"]) unless parsed_json["start_time"].nil?)
|
62
76
|
status = struct["status"]
|
77
|
+
if parsed_json["primary_coverage"].nil?
|
78
|
+
primary_coverage = nil
|
79
|
+
else
|
80
|
+
primary_coverage = parsed_json["primary_coverage"].to_json
|
81
|
+
primary_coverage = CandidApiClient::PreEncounter::Coverages::V1::Types::MutableCoverage.from_json(json_object: primary_coverage)
|
82
|
+
end
|
63
83
|
new(
|
64
84
|
patient_id: patient_id,
|
65
85
|
patient: patient,
|
66
86
|
start_time: start_time,
|
67
87
|
status: status,
|
88
|
+
primary_coverage: primary_coverage,
|
68
89
|
additional_properties: struct
|
69
90
|
)
|
70
91
|
end
|
@@ -87,6 +108,7 @@ module CandidApiClient
|
|
87
108
|
CandidApiClient::PreEncounter::Patients::V1::Types::MutablePatientWithMrn.validate_raw(obj: obj.patient)
|
88
109
|
obj.start_time.is_a?(DateTime) != false || raise("Passed value for field obj.start_time is not the expected type, validation failed.")
|
89
110
|
obj.status.is_a?(CandidApiClient::PreEncounter::Appointments::V1::Types::AppointmentStatus) != false || raise("Passed value for field obj.status is not the expected type, validation failed.")
|
111
|
+
obj.primary_coverage.nil? || CandidApiClient::PreEncounter::Coverages::V1::Types::MutableCoverage.validate_raw(obj: obj.primary_coverage)
|
90
112
|
end
|
91
113
|
end
|
92
114
|
end
|
@@ -14,7 +14,7 @@ module CandidApiClient
|
|
14
14
|
# @return [Boolean] True if the object is deactivated. Deactivated objects are not returned in
|
15
15
|
# search results but are returned in all other endpoints including scan.
|
16
16
|
attr_reader :deactivated
|
17
|
-
# @return [Integer] The version of the object.
|
17
|
+
# @return [Integer] The version of the object. Any update to any property of an object object will
|
18
18
|
# create a new version.
|
19
19
|
attr_reader :version
|
20
20
|
# @return [DateTime]
|
@@ -32,7 +32,7 @@ module CandidApiClient
|
|
32
32
|
# @param organization_id [String] The organization that owns this object.
|
33
33
|
# @param deactivated [Boolean] True if the object is deactivated. Deactivated objects are not returned in
|
34
34
|
# search results but are returned in all other endpoints including scan.
|
35
|
-
# @param version [Integer] The version of the object.
|
35
|
+
# @param version [Integer] The version of the object. Any update to any property of an object object will
|
36
36
|
# create a new version.
|
37
37
|
# @param updated_at [DateTime]
|
38
38
|
# @param updating_user_id [String] The user ID of the user who last updated the object.
|
@@ -193,8 +193,10 @@ module CandidApiClient
|
|
193
193
|
CandidApiClient::PreEncounter::Coverages::V1::Types::Coverage.from_json(json_object: response.body)
|
194
194
|
end
|
195
195
|
|
196
|
-
# Updates a Coverage.
|
197
|
-
# race conditions.
|
196
|
+
# Updates a Coverage. The path must contain the next version number to prevent
|
197
|
+
# race conditions. For example, if the current version of the coverage is n, you
|
198
|
+
# will need to send a request to this endpoint with `/{id}/n+1` to update the
|
199
|
+
# coverage. Updating historic versions is not supported.
|
198
200
|
#
|
199
201
|
# @param id [String]
|
200
202
|
# @param version [String]
|
@@ -776,8 +778,10 @@ module CandidApiClient
|
|
776
778
|
end
|
777
779
|
end
|
778
780
|
|
779
|
-
# Updates a Coverage.
|
780
|
-
# race conditions.
|
781
|
+
# Updates a Coverage. The path must contain the next version number to prevent
|
782
|
+
# race conditions. For example, if the current version of the coverage is n, you
|
783
|
+
# will need to send a request to this endpoint with `/{id}/n+1` to update the
|
784
|
+
# coverage. Updating historic versions is not supported.
|
781
785
|
#
|
782
786
|
# @param id [String]
|
783
787
|
# @param version [String]
|
@@ -25,7 +25,7 @@ module CandidApiClient
|
|
25
25
|
# @return [Boolean] True if the object is deactivated. Deactivated objects are not returned in
|
26
26
|
# search results but are returned in all other endpoints including scan.
|
27
27
|
attr_reader :deactivated
|
28
|
-
# @return [Integer] The version of the object.
|
28
|
+
# @return [Integer] The version of the object. Any update to any property of an object object will
|
29
29
|
# create a new version.
|
30
30
|
attr_reader :version
|
31
31
|
# @return [DateTime]
|
@@ -41,7 +41,8 @@ module CandidApiClient
|
|
41
41
|
# @return [CandidApiClient::PreEncounter::Common::Types::Relationship] The relationship of beneficiary (patient) to the subscriber.
|
42
42
|
# https://hl7.org/fhir/valueset-relationship.html
|
43
43
|
attr_reader :relationship
|
44
|
-
# @return [String] The patient
|
44
|
+
# @return [String] The canonical Candid patient UUID corresponding with the patient who benefits
|
45
|
+
# from the insurance coverage
|
45
46
|
attr_reader :patient
|
46
47
|
# @return [CandidApiClient::PreEncounter::Coverages::V1::Types::InsurancePlan]
|
47
48
|
attr_reader :insurance_plan
|
@@ -65,7 +66,7 @@ module CandidApiClient
|
|
65
66
|
# @param organization_id [String] The organization that owns this object.
|
66
67
|
# @param deactivated [Boolean] True if the object is deactivated. Deactivated objects are not returned in
|
67
68
|
# search results but are returned in all other endpoints including scan.
|
68
|
-
# @param version [Integer] The version of the object.
|
69
|
+
# @param version [Integer] The version of the object. Any update to any property of an object object will
|
69
70
|
# create a new version.
|
70
71
|
# @param updated_at [DateTime]
|
71
72
|
# @param updating_user_id [String] The user ID of the user who last updated the object.
|
@@ -75,7 +76,8 @@ module CandidApiClient
|
|
75
76
|
# their family is due.
|
76
77
|
# @param relationship [CandidApiClient::PreEncounter::Common::Types::Relationship] The relationship of beneficiary (patient) to the subscriber.
|
77
78
|
# https://hl7.org/fhir/valueset-relationship.html
|
78
|
-
# @param patient [String] The patient
|
79
|
+
# @param patient [String] The canonical Candid patient UUID corresponding with the patient who benefits
|
80
|
+
# from the insurance coverage
|
79
81
|
# @param insurance_plan [CandidApiClient::PreEncounter::Coverages::V1::Types::InsurancePlan]
|
80
82
|
# @param verified [Boolean] A boolean indicating if the coverage has been verified by a user.
|
81
83
|
# @param eligibility_checks [Array<CandidApiClient::PreEncounter::EligibilityChecks::V1::Types::EligibilityCheckMetadata>] A list of eligibility check metadata that have been initiated on this coverage.
|
@@ -25,7 +25,8 @@ module CandidApiClient
|
|
25
25
|
# @return [CandidApiClient::PreEncounter::Common::Types::Relationship] The relationship of beneficiary (patient) to the subscriber.
|
26
26
|
# https://hl7.org/fhir/valueset-relationship.html
|
27
27
|
attr_reader :relationship
|
28
|
-
# @return [String] The patient
|
28
|
+
# @return [String] The canonical Candid patient UUID corresponding with the patient who benefits
|
29
|
+
# from the insurance coverage
|
29
30
|
attr_reader :patient
|
30
31
|
# @return [CandidApiClient::PreEncounter::Coverages::V1::Types::InsurancePlan]
|
31
32
|
attr_reader :insurance_plan
|
@@ -51,7 +52,8 @@ module CandidApiClient
|
|
51
52
|
# their family is due.
|
52
53
|
# @param relationship [CandidApiClient::PreEncounter::Common::Types::Relationship] The relationship of beneficiary (patient) to the subscriber.
|
53
54
|
# https://hl7.org/fhir/valueset-relationship.html
|
54
|
-
# @param patient [String] The patient
|
55
|
+
# @param patient [String] The canonical Candid patient UUID corresponding with the patient who benefits
|
56
|
+
# from the insurance coverage
|
55
57
|
# @param insurance_plan [CandidApiClient::PreEncounter::Coverages::V1::Types::InsurancePlan]
|
56
58
|
# @param verified [Boolean] A boolean indicating if the coverage has been verified by a user.
|
57
59
|
# @param eligibility_checks [Array<CandidApiClient::PreEncounter::EligibilityChecks::V1::Types::EligibilityCheckMetadata>] A list of eligibility check metadata that have been initiated on this coverage.
|
@@ -26,10 +26,6 @@ module CandidApiClient
|
|
26
26
|
end
|
27
27
|
|
28
28
|
# Sends real-time eligibility checks to payers through Stedi.
|
29
|
-
# <Warning>Please only send one concurrent request to this endpoint. Batch
|
30
|
-
# requests must be made in succession, otherwise, it will cause this service to
|
31
|
-
# fail. A batch endpoint is in development - please reach out to the Candid team
|
32
|
-
# for more information.</Warning>
|
33
29
|
#
|
34
30
|
# @param request [Hash] Request of type CandidApiClient::PreEncounter::EligibilityChecks::V1::Types::EligibilityRequest, as a Hash
|
35
31
|
# * :submitter_transaction_identifier (String)
|
@@ -110,9 +106,6 @@ module CandidApiClient
|
|
110
106
|
end
|
111
107
|
|
112
108
|
# Polls the status of a batch eligibility check.
|
113
|
-
# <Note>Batch eligibility checks are not yet available. Please reach out to the
|
114
|
-
# Candid team for more information.</Note>
|
115
|
-
# path-parameters:
|
116
109
|
#
|
117
110
|
# @param batch_id [String]
|
118
111
|
# @param page_token [String]
|
@@ -242,10 +235,6 @@ module CandidApiClient
|
|
242
235
|
end
|
243
236
|
|
244
237
|
# Sends real-time eligibility checks to payers through Stedi.
|
245
|
-
# <Warning>Please only send one concurrent request to this endpoint. Batch
|
246
|
-
# requests must be made in succession, otherwise, it will cause this service to
|
247
|
-
# fail. A batch endpoint is in development - please reach out to the Candid team
|
248
|
-
# for more information.</Warning>
|
249
238
|
#
|
250
239
|
# @param request [Hash] Request of type CandidApiClient::PreEncounter::EligibilityChecks::V1::Types::EligibilityRequest, as a Hash
|
251
240
|
# * :submitter_transaction_identifier (String)
|
@@ -330,9 +319,6 @@ module CandidApiClient
|
|
330
319
|
end
|
331
320
|
|
332
321
|
# Polls the status of a batch eligibility check.
|
333
|
-
# <Note>Batch eligibility checks are not yet available. Please reach out to the
|
334
|
-
# Candid team for more information.</Note>
|
335
|
-
# path-parameters:
|
336
322
|
#
|
337
323
|
# @param batch_id [String]
|
338
324
|
# @param page_token [String]
|
data/lib/candidhealth/pre_encounter/eligibility_checks/v_1/types/eligibility_recommendation.rb
CHANGED
@@ -25,7 +25,7 @@ module CandidApiClient
|
|
25
25
|
# @return [Boolean] True if the object is deactivated. Deactivated objects are not returned in
|
26
26
|
# search results but are returned in all other endpoints including scan.
|
27
27
|
attr_reader :deactivated
|
28
|
-
# @return [Integer] The version of the object.
|
28
|
+
# @return [Integer] The version of the object. Any update to any property of an object object will
|
29
29
|
# create a new version.
|
30
30
|
attr_reader :version
|
31
31
|
# @return [DateTime]
|
@@ -46,7 +46,7 @@ module CandidApiClient
|
|
46
46
|
# @param organization_id [String] The organization that owns this object.
|
47
47
|
# @param deactivated [Boolean] True if the object is deactivated. Deactivated objects are not returned in
|
48
48
|
# search results but are returned in all other endpoints including scan.
|
49
|
-
# @param version [Integer] The version of the object.
|
49
|
+
# @param version [Integer] The version of the object. Any update to any property of an object object will
|
50
50
|
# create a new version.
|
51
51
|
# @param updated_at [DateTime]
|
52
52
|
# @param updating_user_id [String] The user ID of the user who last updated the object.
|
@@ -10,6 +10,8 @@ module CandidApiClient
|
|
10
10
|
module Types
|
11
11
|
# An object representing the payload for a Medicare Advantage recommendation.
|
12
12
|
class MedicareAdvantageRecommendationPayload
|
13
|
+
# @return [Object]
|
14
|
+
attr_reader :ma_benefit
|
13
15
|
# @return [String]
|
14
16
|
attr_reader :payer_id
|
15
17
|
# @return [String]
|
@@ -24,17 +26,21 @@ module CandidApiClient
|
|
24
26
|
|
25
27
|
OMIT = Object.new
|
26
28
|
|
29
|
+
# @param ma_benefit [Object]
|
27
30
|
# @param payer_id [String]
|
28
31
|
# @param payer_name [String]
|
29
32
|
# @param member_id [String]
|
30
33
|
# @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
|
31
34
|
# @return [CandidApiClient::PreEncounter::EligibilityChecks::V1::Types::MedicareAdvantageRecommendationPayload]
|
32
|
-
def initialize(payer_id
|
33
|
-
|
34
|
-
@
|
35
|
+
def initialize(ma_benefit: OMIT, payer_id: OMIT, payer_name: OMIT, member_id: OMIT,
|
36
|
+
additional_properties: nil)
|
37
|
+
@ma_benefit = ma_benefit if ma_benefit != OMIT
|
38
|
+
@payer_id = payer_id if payer_id != OMIT
|
39
|
+
@payer_name = payer_name if payer_name != OMIT
|
35
40
|
@member_id = member_id if member_id != OMIT
|
36
41
|
@additional_properties = additional_properties
|
37
42
|
@_field_set = {
|
43
|
+
"ma_benefit": ma_benefit,
|
38
44
|
"payer_id": payer_id,
|
39
45
|
"payer_name": payer_name,
|
40
46
|
"member_id": member_id
|
@@ -50,10 +56,12 @@ module CandidApiClient
|
|
50
56
|
# @return [CandidApiClient::PreEncounter::EligibilityChecks::V1::Types::MedicareAdvantageRecommendationPayload]
|
51
57
|
def self.from_json(json_object:)
|
52
58
|
struct = JSON.parse(json_object, object_class: OpenStruct)
|
59
|
+
ma_benefit = struct["ma_benefit"]
|
53
60
|
payer_id = struct["payer_id"]
|
54
61
|
payer_name = struct["payer_name"]
|
55
62
|
member_id = struct["member_id"]
|
56
63
|
new(
|
64
|
+
ma_benefit: ma_benefit,
|
57
65
|
payer_id: payer_id,
|
58
66
|
payer_name: payer_name,
|
59
67
|
member_id: member_id,
|
@@ -75,8 +83,9 @@ module CandidApiClient
|
|
75
83
|
# @param obj [Object]
|
76
84
|
# @return [Void]
|
77
85
|
def self.validate_raw(obj:)
|
78
|
-
obj.
|
79
|
-
obj.
|
86
|
+
obj.ma_benefit&.is_a?(Object) != false || raise("Passed value for field obj.ma_benefit is not the expected type, validation failed.")
|
87
|
+
obj.payer_id&.is_a?(String) != false || raise("Passed value for field obj.payer_id is not the expected type, validation failed.")
|
88
|
+
obj.payer_name&.is_a?(String) != false || raise("Passed value for field obj.payer_name is not the expected type, validation failed.")
|
80
89
|
obj.member_id&.is_a?(String) != false || raise("Passed value for field obj.member_id is not the expected type, validation failed.")
|
81
90
|
end
|
82
91
|
end
|
@@ -24,7 +24,7 @@ module CandidApiClient
|
|
24
24
|
# @return [Boolean] True if the object is deactivated. Deactivated objects are not returned in
|
25
25
|
# search results but are returned in all other endpoints including scan.
|
26
26
|
attr_reader :deactivated
|
27
|
-
# @return [Integer] The version of the object.
|
27
|
+
# @return [Integer] The version of the object. Any update to any property of an object object will
|
28
28
|
# create a new version.
|
29
29
|
attr_reader :version
|
30
30
|
# @return [DateTime]
|
@@ -57,7 +57,7 @@ module CandidApiClient
|
|
57
57
|
# @param organization_id [String] The organization that owns this object.
|
58
58
|
# @param deactivated [Boolean] True if the object is deactivated. Deactivated objects are not returned in
|
59
59
|
# search results but are returned in all other endpoints including scan.
|
60
|
-
# @param version [Integer] The version of the object.
|
60
|
+
# @param version [Integer] The version of the object. Any update to any property of an object object will
|
61
61
|
# create a new version.
|
62
62
|
# @param updated_at [DateTime]
|
63
63
|
# @param updating_user_id [String] The user ID of the user who last updated the object.
|
@@ -20,7 +20,7 @@ module CandidApiClient
|
|
20
20
|
# @return [Boolean] True if the object is deactivated. Deactivated objects are not returned in
|
21
21
|
# search results but are returned in all other endpoints including scan.
|
22
22
|
attr_reader :deactivated
|
23
|
-
# @return [Integer] The version of the object.
|
23
|
+
# @return [Integer] The version of the object. Any update to any property of an object object will
|
24
24
|
# create a new version.
|
25
25
|
attr_reader :version
|
26
26
|
# @return [DateTime]
|
@@ -46,7 +46,7 @@ module CandidApiClient
|
|
46
46
|
# @param organization_id [String] The organization that owns this object.
|
47
47
|
# @param deactivated [Boolean] True if the object is deactivated. Deactivated objects are not returned in
|
48
48
|
# search results but are returned in all other endpoints including scan.
|
49
|
-
# @param version [Integer] The version of the object.
|
49
|
+
# @param version [Integer] The version of the object. Any update to any property of an object object will
|
50
50
|
# create a new version.
|
51
51
|
# @param updated_at [DateTime]
|
52
52
|
# @param updating_user_id [String] The user ID of the user who last updated the object.
|
@@ -383,8 +383,10 @@ module CandidApiClient
|
|
383
383
|
end
|
384
384
|
end
|
385
385
|
|
386
|
-
# Updates a patient.
|
387
|
-
#
|
386
|
+
# Updates a patient. The path must contain the next version number to prevent race
|
387
|
+
# conditions. For example, if the current version of the patient is n, you will
|
388
|
+
# need to send a request to this endpoint with `/{id}/n+1` to update the patient.
|
389
|
+
# Updating historic versions is not supported.
|
388
390
|
#
|
389
391
|
# @param id [String]
|
390
392
|
# @param version [String]
|
@@ -994,8 +996,10 @@ module CandidApiClient
|
|
994
996
|
end
|
995
997
|
end
|
996
998
|
|
997
|
-
# Updates a patient.
|
998
|
-
#
|
999
|
+
# Updates a patient. The path must contain the next version number to prevent race
|
1000
|
+
# conditions. For example, if the current version of the patient is n, you will
|
1001
|
+
# need to send a request to this endpoint with `/{id}/n+1` to update the patient.
|
1002
|
+
# Updating historic versions is not supported.
|
999
1003
|
#
|
1000
1004
|
# @param id [String]
|
1001
1005
|
# @param version [String]
|
@@ -43,7 +43,7 @@ module CandidApiClient
|
|
43
43
|
# @return [Boolean] True if the object is deactivated. Deactivated objects are not returned in
|
44
44
|
# search results but are returned in all other endpoints including scan.
|
45
45
|
attr_reader :deactivated
|
46
|
-
# @return [Integer] The version of the object.
|
46
|
+
# @return [Integer] The version of the object. Any update to any property of an object object will
|
47
47
|
# create a new version.
|
48
48
|
attr_reader :version
|
49
49
|
# @return [DateTime]
|
@@ -144,7 +144,7 @@ module CandidApiClient
|
|
144
144
|
# @param organization_id [String] The organization that owns this object.
|
145
145
|
# @param deactivated [Boolean] True if the object is deactivated. Deactivated objects are not returned in
|
146
146
|
# search results but are returned in all other endpoints including scan.
|
147
|
-
# @param version [Integer] The version of the object.
|
147
|
+
# @param version [Integer] The version of the object. Any update to any property of an object object will
|
148
148
|
# create a new version.
|
149
149
|
# @param updated_at [DateTime]
|
150
150
|
# @param updating_user_id [String] The user ID of the user who last updated the object.
|
@@ -18,7 +18,7 @@ module CandidApiClient
|
|
18
18
|
# @return [Boolean] True if the object is deactivated. Deactivated objects are not returned in
|
19
19
|
# search results but are returned in all other endpoints including scan.
|
20
20
|
attr_reader :deactivated
|
21
|
-
# @return [Integer] The version of the object.
|
21
|
+
# @return [Integer] The version of the object. Any update to any property of an object object will
|
22
22
|
# create a new version.
|
23
23
|
attr_reader :version
|
24
24
|
# @return [DateTime]
|
@@ -43,7 +43,7 @@ module CandidApiClient
|
|
43
43
|
# @param organization_id [String] The organization that owns this object.
|
44
44
|
# @param deactivated [Boolean] True if the object is deactivated. Deactivated objects are not returned in
|
45
45
|
# search results but are returned in all other endpoints including scan.
|
46
|
-
# @param version [Integer] The version of the object.
|
46
|
+
# @param version [Integer] The version of the object. Any update to any property of an object object will
|
47
47
|
# create a new version.
|
48
48
|
# @param updated_at [DateTime]
|
49
49
|
# @param updating_user_id [String] The user ID of the user who last updated the object.
|
data/lib/requests.rb
CHANGED
@@ -45,7 +45,7 @@ module CandidApiClient
|
|
45
45
|
|
46
46
|
# @return [Hash{String => String}]
|
47
47
|
def get_headers
|
48
|
-
headers = { "X-Fern-Language": "Ruby", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "1.
|
48
|
+
headers = { "X-Fern-Language": "Ruby", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "1.6.0" }
|
49
49
|
headers["Authorization"] = ((@token.is_a? Method) ? @token.call : @token) unless token.nil?
|
50
50
|
headers
|
51
51
|
end
|
@@ -90,7 +90,7 @@ module CandidApiClient
|
|
90
90
|
|
91
91
|
# @return [Hash{String => String}]
|
92
92
|
def get_headers
|
93
|
-
headers = { "X-Fern-Language": "Ruby", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "1.
|
93
|
+
headers = { "X-Fern-Language": "Ruby", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "1.6.0" }
|
94
94
|
headers["Authorization"] = ((@token.is_a? Method) ? @token.call : @token) unless token.nil?
|
95
95
|
headers
|
96
96
|
end
|