candidhealth 0.45.0 → 0.46.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.
Files changed (65) hide show
  1. checksums.yaml +4 -4
  2. data/lib/candidhealth/billing_notes/v_2/client.rb +2 -2
  3. data/lib/candidhealth/charge_capture/v_1/client.rb +10 -94
  4. data/lib/candidhealth/charge_capture/v_1/types/charge_capture_data.rb +16 -16
  5. data/lib/candidhealth/charge_capture_bundles/v_1/client.rb +2 -44
  6. data/lib/candidhealth/contracts/v_2/client.rb +18 -34
  7. data/lib/candidhealth/contracts/v_2/types/contract_sort_field.rb +18 -0
  8. data/lib/candidhealth/credentialing/v_2/client.rb +6 -44
  9. data/lib/candidhealth/diagnoses/client.rb +4 -14
  10. data/lib/candidhealth/eligibility/v_2/client.rb +4 -4
  11. data/lib/candidhealth/encounter_attachments/v_1/client.rb +0 -6
  12. data/lib/candidhealth/encounter_providers/v_2/client.rb +16 -16
  13. data/lib/candidhealth/encounters/v_4/client.rb +38 -102
  14. data/lib/candidhealth/encounters/v_4/types/encounter.rb +12 -12
  15. data/lib/candidhealth/encounters/v_4/types/encounter_base.rb +10 -10
  16. data/lib/candidhealth/encounters/v_4/types/encounter_create_from_pre_encounter.rb +10 -10
  17. data/lib/candidhealth/encounters/v_4/types/encounter_optional.rb +14 -14
  18. data/lib/candidhealth/expected_network_status/v_1/client.rb +12 -18
  19. data/lib/candidhealth/expected_network_status/v_2/client.rb +4 -4
  20. data/lib/candidhealth/expected_network_status/v_2/types/empty_object.rb +53 -0
  21. data/lib/candidhealth/expected_network_status/v_2/types/insurance_type_codes.rb +13 -10
  22. data/lib/candidhealth/external_payment_account_config/v_1/client.rb +2 -2
  23. data/lib/candidhealth/fee_schedules/v_3/client.rb +12 -68
  24. data/lib/candidhealth/fee_schedules/v_3/types/payer_threshold.rb +3 -3
  25. data/lib/candidhealth/fee_schedules/v_3/types/rate_entry.rb +2 -2
  26. data/lib/candidhealth/guarantor/v_1/client.rb +4 -4
  27. data/lib/candidhealth/import_invoice/v_1/client.rb +6 -28
  28. data/lib/candidhealth/insurance_adjudications/v_1/client.rb +2 -2
  29. data/lib/candidhealth/insurance_payments/v_1/client.rb +2 -20
  30. data/lib/candidhealth/insurance_refunds/v_1/client.rb +6 -24
  31. data/lib/candidhealth/medication_dispense/v_1/client.rb +2 -2
  32. data/lib/candidhealth/non_insurance_payer_payments/v_1/client.rb +6 -22
  33. data/lib/candidhealth/non_insurance_payer_refunds/v_1/client.rb +6 -22
  34. data/lib/candidhealth/non_insurance_payers/v_1/client.rb +6 -22
  35. data/lib/candidhealth/organization_providers/v_3/client.rb +4 -4
  36. data/lib/candidhealth/organization_service_facilities/v_2/client.rb +2 -2
  37. data/lib/candidhealth/patient_payments/v_4/client.rb +8 -38
  38. data/lib/candidhealth/patient_refunds/v_1/client.rb +8 -40
  39. data/lib/candidhealth/payer_plan_groups/v_1/client.rb +6 -30
  40. data/lib/candidhealth/pre_encounter/appointments/v_1/client.rb +32 -44
  41. data/lib/candidhealth/pre_encounter/appointments/v_1/types/appointment.rb +4 -4
  42. data/lib/candidhealth/pre_encounter/common/types/base_model.rb +4 -4
  43. data/lib/candidhealth/pre_encounter/coverages/v_1/client.rb +24 -34
  44. data/lib/candidhealth/pre_encounter/coverages/v_1/types/coverage.rb +4 -4
  45. data/lib/candidhealth/pre_encounter/eligibility_checks/v_1/client.rb +2 -2
  46. data/lib/candidhealth/pre_encounter/images/v_1/client.rb +20 -20
  47. data/lib/candidhealth/pre_encounter/images/v_1/types/image.rb +6 -6
  48. data/lib/candidhealth/pre_encounter/lists/v_1/client.rb +4 -28
  49. data/lib/candidhealth/pre_encounter/notes/v_1/client.rb +14 -14
  50. data/lib/candidhealth/pre_encounter/notes/v_1/types/note.rb +4 -4
  51. data/lib/candidhealth/pre_encounter/patients/v_1/client.rb +56 -68
  52. data/lib/candidhealth/pre_encounter/patients/v_1/types/mutable_patient.rb +8 -8
  53. data/lib/candidhealth/pre_encounter/patients/v_1/types/mutable_patient_with_mrn.rb +8 -8
  54. data/lib/candidhealth/pre_encounter/patients/v_1/types/patient.rb +16 -16
  55. data/lib/candidhealth/pre_encounter/tags/v_1/client.rb +16 -16
  56. data/lib/candidhealth/pre_encounter/tags/v_1/types/tag.rb +4 -4
  57. data/lib/candidhealth/service_facility/client.rb +2 -2
  58. data/lib/candidhealth/service_lines/v_2/client.rb +4 -4
  59. data/lib/candidhealth/superbills/v_1/client.rb +4 -6
  60. data/lib/candidhealth/tasks/v_3/client.rb +6 -34
  61. data/lib/candidhealth/write_offs/v_1/client.rb +2 -24
  62. data/lib/environment.rb +4 -0
  63. data/lib/requests.rb +2 -2
  64. data/lib/types_export.rb +2 -0
  65. metadata +4 -2
@@ -46,19 +46,7 @@ module CandidApiClient
46
46
  # @return [CandidApiClient::PatientRefunds::V1::Types::PatientRefundsPage]
47
47
  # @example
48
48
  # api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
49
- # api.patient_refunds.v_1.get_multi(
50
- # limit: 1,
51
- # patient_external_id: "string",
52
- # claim_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32",
53
- # service_line_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32",
54
- # billing_provider_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32",
55
- # unattributed: true,
56
- # invoice_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32",
57
- # sources: MANUAL_ENTRY,
58
- # sort: REFUND_SOURCE,
59
- # sort_direction: ASC,
60
- # page_token: "eyJ0b2tlbiI6IjEiLCJwYWdlX3Rva2VuIjoiMiJ9"
61
- # )
49
+ # api.patient_refunds.v_1.get_multi
62
50
  def get_multi(limit: nil, patient_external_id: nil, claim_id: nil, service_line_id: nil,
63
51
  billing_provider_id: nil, unattributed: nil, invoice_id: nil, sources: nil, sort: nil, sort_direction: nil, page_token: nil, request_options: nil)
64
52
  response = @request_client.conn.get do |req|
@@ -133,12 +121,8 @@ module CandidApiClient
133
121
  # api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
134
122
  # api.patient_refunds.v_1.create(
135
123
  # amount_cents: 1,
136
- # refund_timestamp: DateTime.parse(2024-01-15T09:30:00.000Z),
137
- # refund_note: "string",
138
- # patient_external_id: "string",
139
- # allocations: [{ amount_cents: 1 }],
140
- # invoice: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32",
141
- # refund_reason: OVERCHARGED
124
+ # patient_external_id: "patient_external_id",
125
+ # allocations: [{ amount_cents: 1 }, { amount_cents: 1 }]
142
126
  # )
143
127
  def create(amount_cents:, patient_external_id:, allocations:, refund_timestamp: nil, refund_note: nil,
144
128
  invoice: nil, refund_reason: nil, request_options: nil)
@@ -177,7 +161,7 @@ module CandidApiClient
177
161
  # @return [CandidApiClient::PatientRefunds::V1::Types::PatientRefund]
178
162
  # @example
179
163
  # api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
180
- # api.patient_refunds.v_1.update(patient_refund_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", refund_timestamp: DateTime.parse(2024-01-15T09:30:00.000Z))
164
+ # api.patient_refunds.v_1.update(patient_refund_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32")
181
165
  def update(patient_refund_id:, refund_timestamp: nil, refund_note: nil, invoice: nil, refund_reason: nil,
182
166
  request_options: nil)
183
167
  response = @request_client.conn.patch do |req|
@@ -253,19 +237,7 @@ module CandidApiClient
253
237
  # @return [CandidApiClient::PatientRefunds::V1::Types::PatientRefundsPage]
254
238
  # @example
255
239
  # api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
256
- # api.patient_refunds.v_1.get_multi(
257
- # limit: 1,
258
- # patient_external_id: "string",
259
- # claim_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32",
260
- # service_line_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32",
261
- # billing_provider_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32",
262
- # unattributed: true,
263
- # invoice_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32",
264
- # sources: MANUAL_ENTRY,
265
- # sort: REFUND_SOURCE,
266
- # sort_direction: ASC,
267
- # page_token: "eyJ0b2tlbiI6IjEiLCJwYWdlX3Rva2VuIjoiMiJ9"
268
- # )
240
+ # api.patient_refunds.v_1.get_multi
269
241
  def get_multi(limit: nil, patient_external_id: nil, claim_id: nil, service_line_id: nil,
270
242
  billing_provider_id: nil, unattributed: nil, invoice_id: nil, sources: nil, sort: nil, sort_direction: nil, page_token: nil, request_options: nil)
271
243
  Async do
@@ -344,12 +316,8 @@ module CandidApiClient
344
316
  # api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
345
317
  # api.patient_refunds.v_1.create(
346
318
  # amount_cents: 1,
347
- # refund_timestamp: DateTime.parse(2024-01-15T09:30:00.000Z),
348
- # refund_note: "string",
349
- # patient_external_id: "string",
350
- # allocations: [{ amount_cents: 1 }],
351
- # invoice: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32",
352
- # refund_reason: OVERCHARGED
319
+ # patient_external_id: "patient_external_id",
320
+ # allocations: [{ amount_cents: 1 }, { amount_cents: 1 }]
353
321
  # )
354
322
  def create(amount_cents:, patient_external_id:, allocations:, refund_timestamp: nil, refund_note: nil,
355
323
  invoice: nil, refund_reason: nil, request_options: nil)
@@ -390,7 +358,7 @@ module CandidApiClient
390
358
  # @return [CandidApiClient::PatientRefunds::V1::Types::PatientRefund]
391
359
  # @example
392
360
  # api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
393
- # api.patient_refunds.v_1.update(patient_refund_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", refund_timestamp: DateTime.parse(2024-01-15T09:30:00.000Z))
361
+ # api.patient_refunds.v_1.update(patient_refund_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32")
394
362
  def update(patient_refund_id:, refund_timestamp: nil, refund_note: nil, invoice: nil, refund_reason: nil,
395
363
  request_options: nil)
396
364
  Async do
@@ -44,19 +44,7 @@ module CandidApiClient
44
44
  # @return [CandidApiClient::PayerPlanGroups::V1::Types::PayerPlanGroupPage]
45
45
  # @example
46
46
  # api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
47
- # api.payer_plan_groups.v_1.get_multi(
48
- # plan_group_name: "string",
49
- # payer_uuid: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32",
50
- # payer_id: "string",
51
- # plan_type: SELF_PAY,
52
- # is_active: true,
53
- # payer_plan_group_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32",
54
- # limit: 1,
55
- # sort_by_similarity: "string",
56
- # sort: PLAN_GROUP_NAME,
57
- # sort_direction: ASC,
58
- # page_token: "eyJ0b2tlbiI6IjEiLCJwYWdlX3Rva2VuIjoiMiJ9"
59
- # )
47
+ # api.payer_plan_groups.v_1.get_multi
60
48
  def get_multi(plan_group_name: nil, payer_uuid: nil, payer_id: nil, plan_type: nil, is_active: nil,
61
49
  payer_plan_group_id: nil, limit: nil, sort_by_similarity: nil, sort: nil, sort_direction: nil, page_token: nil, request_options: nil)
62
50
  response = @request_client.conn.get do |req|
@@ -120,7 +108,7 @@ module CandidApiClient
120
108
  # @return [CandidApiClient::PayerPlanGroups::V1::Types::PayerPlanGroup]
121
109
  # @example
122
110
  # api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
123
- # api.payer_plan_groups.v_1.create(request: { plan_group_name: "string", payer_uuid: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", plan_type: SELF_PAY })
111
+ # api.payer_plan_groups.v_1.create(request: { plan_group_name: "plan_group_name", payer_uuid: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", plan_type: SELF_PAY })
124
112
  def create(request:, request_options: nil)
125
113
  response = @request_client.conn.post do |req|
126
114
  req.options.timeout = request_options.timeout_in_seconds unless request_options&.timeout_in_seconds.nil?
@@ -148,7 +136,7 @@ module CandidApiClient
148
136
  # @return [CandidApiClient::PayerPlanGroups::V1::Types::PayerPlanGroup]
149
137
  # @example
150
138
  # api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
151
- # api.payer_plan_groups.v_1.update(payer_plan_group_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", request: { plan_group_name: "string", payer_uuid: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", plan_type: SELF_PAY })
139
+ # api.payer_plan_groups.v_1.update(payer_plan_group_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", request: { plan_group_name: "plan_group_name", payer_uuid: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", plan_type: SELF_PAY })
152
140
  def update(payer_plan_group_id:, request:, request_options: nil)
153
141
  response = @request_client.conn.put do |req|
154
142
  req.options.timeout = request_options.timeout_in_seconds unless request_options&.timeout_in_seconds.nil?
@@ -221,19 +209,7 @@ module CandidApiClient
221
209
  # @return [CandidApiClient::PayerPlanGroups::V1::Types::PayerPlanGroupPage]
222
210
  # @example
223
211
  # api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
224
- # api.payer_plan_groups.v_1.get_multi(
225
- # plan_group_name: "string",
226
- # payer_uuid: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32",
227
- # payer_id: "string",
228
- # plan_type: SELF_PAY,
229
- # is_active: true,
230
- # payer_plan_group_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32",
231
- # limit: 1,
232
- # sort_by_similarity: "string",
233
- # sort: PLAN_GROUP_NAME,
234
- # sort_direction: ASC,
235
- # page_token: "eyJ0b2tlbiI6IjEiLCJwYWdlX3Rva2VuIjoiMiJ9"
236
- # )
212
+ # api.payer_plan_groups.v_1.get_multi
237
213
  def get_multi(plan_group_name: nil, payer_uuid: nil, payer_id: nil, plan_type: nil, is_active: nil,
238
214
  payer_plan_group_id: nil, limit: nil, sort_by_similarity: nil, sort: nil, sort_direction: nil, page_token: nil, request_options: nil)
239
215
  Async do
@@ -301,7 +277,7 @@ module CandidApiClient
301
277
  # @return [CandidApiClient::PayerPlanGroups::V1::Types::PayerPlanGroup]
302
278
  # @example
303
279
  # api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
304
- # api.payer_plan_groups.v_1.create(request: { plan_group_name: "string", payer_uuid: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", plan_type: SELF_PAY })
280
+ # api.payer_plan_groups.v_1.create(request: { plan_group_name: "plan_group_name", payer_uuid: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", plan_type: SELF_PAY })
305
281
  def create(request:, request_options: nil)
306
282
  Async do
307
283
  response = @request_client.conn.post do |req|
@@ -331,7 +307,7 @@ module CandidApiClient
331
307
  # @return [CandidApiClient::PayerPlanGroups::V1::Types::PayerPlanGroup]
332
308
  # @example
333
309
  # api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
334
- # api.payer_plan_groups.v_1.update(payer_plan_group_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", request: { plan_group_name: "string", payer_uuid: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", plan_type: SELF_PAY })
310
+ # api.payer_plan_groups.v_1.update(payer_plan_group_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", request: { plan_group_name: "plan_group_name", payer_uuid: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", plan_type: SELF_PAY })
335
311
  def update(payer_plan_group_id:, request:, request_options: nil)
336
312
  Async do
337
313
  response = @request_client.conn.put do |req|
@@ -23,7 +23,7 @@ module CandidApiClient
23
23
  @request_client = request_client
24
24
  end
25
25
 
26
- # Adds an appointment. VersionConflictError is returned when the
26
+ # Adds an appointment. VersionConflictError is returned when the
27
27
  # placer_appointment_id is already in use.
28
28
  #
29
29
  # @param request [Hash] Request of type CandidApiClient::PreEncounter::Appointments::V1::Types::MutableAppointment, as a Hash
@@ -63,7 +63,7 @@ module CandidApiClient
63
63
  # @return [CandidApiClient::PreEncounter::Appointments::V1::Types::Appointment]
64
64
  # @example
65
65
  # api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
66
- # api.pre_encounter.appointments.v_1.create(request: { patient_id: "string", start_timestamp: DateTime.parse(2024-01-15T09:30:00.000Z), status: PENDING, service_duration: 1, services: [{ universal_service_identifier: MD_VISIT, start_timestamp: DateTime.parse(2024-01-15T09:30:00.000Z) }], placer_appointment_id: "string", attending_doctor: { name: { family: "string", given: ["string"], use: USUAL, period: { }, suffix: "string" }, type: PRIMARY, npi: "string", telecoms: [{ value: "string", use: HOME }], addresses: , period: { }, canonical_id: "string", fax: "string" }, estimated_copay_cents: 1, estimated_patient_responsibility_cents: 1, patient_deposit_cents: 1, checked_in_timestamp: DateTime.parse(2024-01-15T09:30:00.000Z), notes: "string", location_resource_id: "string", automated_eligibility_check_complete: true, work_queue: EMERGENT_ISSUE })
66
+ # api.pre_encounter.appointments.v_1.create(request: { patient_id: "patient_id", start_timestamp: DateTime.parse(2024-01-15T09:30:00.000Z), service_duration: 1, services: [{ }, { }] })
67
67
  def create(request:, request_options: nil)
68
68
  response = @request_client.conn.post do |req|
69
69
  req.options.timeout = request_options.timeout_in_seconds unless request_options&.timeout_in_seconds.nil?
@@ -92,13 +92,7 @@ module CandidApiClient
92
92
  # @return [CandidApiClient::PreEncounter::Appointments::V1::Types::VisitsPage]
93
93
  # @example
94
94
  # api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
95
- # api.pre_encounter.appointments.v_1.get_visits(
96
- # page_token: "string",
97
- # limit: 1,
98
- # sort_field: "string",
99
- # sort_direction: ASC,
100
- # filters: "string"
101
- # )
95
+ # api.pre_encounter.appointments.v_1.get_visits
102
96
  def get_visits(page_token: nil, limit: nil, sort_field: nil, sort_direction: nil, filters: nil,
103
97
  request_options: nil)
104
98
  response = @request_client.conn.get do |req|
@@ -130,7 +124,7 @@ module CandidApiClient
130
124
  # @return [CandidApiClient::PreEncounter::Appointments::V1::Types::Appointment]
131
125
  # @example
132
126
  # api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
133
- # api.pre_encounter.appointments.v_1.get(id: "string")
127
+ # api.pre_encounter.appointments.v_1.get(id: "id")
134
128
  def get(id:, request_options: nil)
135
129
  response = @request_client.conn.get do |req|
136
130
  req.options.timeout = request_options.timeout_in_seconds unless request_options&.timeout_in_seconds.nil?
@@ -146,7 +140,7 @@ module CandidApiClient
146
140
  CandidApiClient::PreEncounter::Appointments::V1::Types::Appointment.from_json(json_object: response.body)
147
141
  end
148
142
 
149
- # Gets an appointment along with it's full history. The return list is ordered by
143
+ # Gets an appointment along with it's full history. The return list is ordered by
150
144
  # version ascending.
151
145
  #
152
146
  # @param id [String]
@@ -154,7 +148,7 @@ module CandidApiClient
154
148
  # @return [Array<CandidApiClient::PreEncounter::Appointments::V1::Types::Appointment>]
155
149
  # @example
156
150
  # api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
157
- # api.pre_encounter.appointments.v_1.get_history(id: "string")
151
+ # api.pre_encounter.appointments.v_1.get_history(id: "id")
158
152
  def get_history(id:, request_options: nil)
159
153
  response = @request_client.conn.get do |req|
160
154
  req.options.timeout = request_options.timeout_in_seconds unless request_options&.timeout_in_seconds.nil?
@@ -174,8 +168,8 @@ module CandidApiClient
174
168
  end
175
169
  end
176
170
 
177
- # Updates an appointment. The path must contain the most recent version to prevent
178
- # race conditions. Updating historic versions is not supported.
171
+ # Updates an appointment. The path must contain the most recent version to
172
+ # prevent race conditions. Updating historic versions is not supported.
179
173
  #
180
174
  # @param id [String]
181
175
  # @param version [String]
@@ -217,9 +211,9 @@ module CandidApiClient
217
211
  # @example
218
212
  # api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
219
213
  # api.pre_encounter.appointments.v_1.update(
220
- # id: "string",
221
- # version: "string",
222
- # request: { patient_id: "string", start_timestamp: DateTime.parse(2024-01-15T09:30:00.000Z), status: PENDING, service_duration: 1, services: [{ universal_service_identifier: MD_VISIT, start_timestamp: DateTime.parse(2024-01-15T09:30:00.000Z) }], placer_appointment_id: "string", attending_doctor: { name: { family: "string", given: ["string"], use: USUAL, period: { }, suffix: "string" }, type: PRIMARY, npi: "string", telecoms: [{ value: "string", use: HOME }], addresses: , period: { }, canonical_id: "string", fax: "string" }, estimated_copay_cents: 1, estimated_patient_responsibility_cents: 1, patient_deposit_cents: 1, checked_in_timestamp: DateTime.parse(2024-01-15T09:30:00.000Z), notes: "string", location_resource_id: "string", automated_eligibility_check_complete: true, work_queue: EMERGENT_ISSUE }
214
+ # id: "id",
215
+ # version: "version",
216
+ # request: { patient_id: "patient_id", start_timestamp: DateTime.parse(2024-01-15T09:30:00.000Z), service_duration: 1, services: [{ }, { }] }
223
217
  # )
224
218
  def update(id:, version:, request:, request_options: nil)
225
219
  response = @request_client.conn.put do |req|
@@ -237,8 +231,8 @@ module CandidApiClient
237
231
  CandidApiClient::PreEncounter::Appointments::V1::Types::Appointment.from_json(json_object: response.body)
238
232
  end
239
233
 
240
- # Scans up to 100 appointment updates. The since query parameter is inclusive, and
241
- # the result list is ordered by updatedAt ascending.
234
+ # Scans up to 100 appointment updates. The since query parameter is inclusive,
235
+ # and the result list is ordered by updatedAt ascending.
242
236
  #
243
237
  # @param since [DateTime]
244
238
  # @param request_options [CandidApiClient::RequestOptions]
@@ -266,8 +260,8 @@ module CandidApiClient
266
260
  end
267
261
  end
268
262
 
269
- # Sets an appointment as deactivated. The path must contain the most recent
270
- # version to prevent race conditions. Deactivating historic versions is not
263
+ # Sets an appointment as deactivated. The path must contain the most recent
264
+ # version to prevent race conditions. Deactivating historic versions is not
271
265
  # supported. Subsequent updates via PUT to the appointment will "reactivate" the
272
266
  # appointment and set the deactivated flag to false.
273
267
  #
@@ -277,7 +271,7 @@ module CandidApiClient
277
271
  # @return [Void]
278
272
  # @example
279
273
  # api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
280
- # api.pre_encounter.appointments.v_1.deactivate(id: "string", version: "string")
274
+ # api.pre_encounter.appointments.v_1.deactivate(id: "id", version: "version")
281
275
  def deactivate(id:, version:, request_options: nil)
282
276
  @request_client.conn.delete do |req|
283
277
  req.options.timeout = request_options.timeout_in_seconds unless request_options&.timeout_in_seconds.nil?
@@ -303,7 +297,7 @@ module CandidApiClient
303
297
  @request_client = request_client
304
298
  end
305
299
 
306
- # Adds an appointment. VersionConflictError is returned when the
300
+ # Adds an appointment. VersionConflictError is returned when the
307
301
  # placer_appointment_id is already in use.
308
302
  #
309
303
  # @param request [Hash] Request of type CandidApiClient::PreEncounter::Appointments::V1::Types::MutableAppointment, as a Hash
@@ -343,7 +337,7 @@ module CandidApiClient
343
337
  # @return [CandidApiClient::PreEncounter::Appointments::V1::Types::Appointment]
344
338
  # @example
345
339
  # api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
346
- # api.pre_encounter.appointments.v_1.create(request: { patient_id: "string", start_timestamp: DateTime.parse(2024-01-15T09:30:00.000Z), status: PENDING, service_duration: 1, services: [{ universal_service_identifier: MD_VISIT, start_timestamp: DateTime.parse(2024-01-15T09:30:00.000Z) }], placer_appointment_id: "string", attending_doctor: { name: { family: "string", given: ["string"], use: USUAL, period: { }, suffix: "string" }, type: PRIMARY, npi: "string", telecoms: [{ value: "string", use: HOME }], addresses: , period: { }, canonical_id: "string", fax: "string" }, estimated_copay_cents: 1, estimated_patient_responsibility_cents: 1, patient_deposit_cents: 1, checked_in_timestamp: DateTime.parse(2024-01-15T09:30:00.000Z), notes: "string", location_resource_id: "string", automated_eligibility_check_complete: true, work_queue: EMERGENT_ISSUE })
340
+ # api.pre_encounter.appointments.v_1.create(request: { patient_id: "patient_id", start_timestamp: DateTime.parse(2024-01-15T09:30:00.000Z), service_duration: 1, services: [{ }, { }] })
347
341
  def create(request:, request_options: nil)
348
342
  Async do
349
343
  response = @request_client.conn.post do |req|
@@ -374,13 +368,7 @@ module CandidApiClient
374
368
  # @return [CandidApiClient::PreEncounter::Appointments::V1::Types::VisitsPage]
375
369
  # @example
376
370
  # api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
377
- # api.pre_encounter.appointments.v_1.get_visits(
378
- # page_token: "string",
379
- # limit: 1,
380
- # sort_field: "string",
381
- # sort_direction: ASC,
382
- # filters: "string"
383
- # )
371
+ # api.pre_encounter.appointments.v_1.get_visits
384
372
  def get_visits(page_token: nil, limit: nil, sort_field: nil, sort_direction: nil, filters: nil,
385
373
  request_options: nil)
386
374
  Async do
@@ -414,7 +402,7 @@ module CandidApiClient
414
402
  # @return [CandidApiClient::PreEncounter::Appointments::V1::Types::Appointment]
415
403
  # @example
416
404
  # api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
417
- # api.pre_encounter.appointments.v_1.get(id: "string")
405
+ # api.pre_encounter.appointments.v_1.get(id: "id")
418
406
  def get(id:, request_options: nil)
419
407
  Async do
420
408
  response = @request_client.conn.get do |req|
@@ -432,7 +420,7 @@ module CandidApiClient
432
420
  end
433
421
  end
434
422
 
435
- # Gets an appointment along with it's full history. The return list is ordered by
423
+ # Gets an appointment along with it's full history. The return list is ordered by
436
424
  # version ascending.
437
425
  #
438
426
  # @param id [String]
@@ -440,7 +428,7 @@ module CandidApiClient
440
428
  # @return [Array<CandidApiClient::PreEncounter::Appointments::V1::Types::Appointment>]
441
429
  # @example
442
430
  # api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
443
- # api.pre_encounter.appointments.v_1.get_history(id: "string")
431
+ # api.pre_encounter.appointments.v_1.get_history(id: "id")
444
432
  def get_history(id:, request_options: nil)
445
433
  Async do
446
434
  response = @request_client.conn.get do |req|
@@ -462,8 +450,8 @@ module CandidApiClient
462
450
  end
463
451
  end
464
452
 
465
- # Updates an appointment. The path must contain the most recent version to prevent
466
- # race conditions. Updating historic versions is not supported.
453
+ # Updates an appointment. The path must contain the most recent version to
454
+ # prevent race conditions. Updating historic versions is not supported.
467
455
  #
468
456
  # @param id [String]
469
457
  # @param version [String]
@@ -505,9 +493,9 @@ module CandidApiClient
505
493
  # @example
506
494
  # api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
507
495
  # api.pre_encounter.appointments.v_1.update(
508
- # id: "string",
509
- # version: "string",
510
- # request: { patient_id: "string", start_timestamp: DateTime.parse(2024-01-15T09:30:00.000Z), status: PENDING, service_duration: 1, services: [{ universal_service_identifier: MD_VISIT, start_timestamp: DateTime.parse(2024-01-15T09:30:00.000Z) }], placer_appointment_id: "string", attending_doctor: { name: { family: "string", given: ["string"], use: USUAL, period: { }, suffix: "string" }, type: PRIMARY, npi: "string", telecoms: [{ value: "string", use: HOME }], addresses: , period: { }, canonical_id: "string", fax: "string" }, estimated_copay_cents: 1, estimated_patient_responsibility_cents: 1, patient_deposit_cents: 1, checked_in_timestamp: DateTime.parse(2024-01-15T09:30:00.000Z), notes: "string", location_resource_id: "string", automated_eligibility_check_complete: true, work_queue: EMERGENT_ISSUE }
496
+ # id: "id",
497
+ # version: "version",
498
+ # request: { patient_id: "patient_id", start_timestamp: DateTime.parse(2024-01-15T09:30:00.000Z), service_duration: 1, services: [{ }, { }] }
511
499
  # )
512
500
  def update(id:, version:, request:, request_options: nil)
513
501
  Async do
@@ -527,8 +515,8 @@ module CandidApiClient
527
515
  end
528
516
  end
529
517
 
530
- # Scans up to 100 appointment updates. The since query parameter is inclusive, and
531
- # the result list is ordered by updatedAt ascending.
518
+ # Scans up to 100 appointment updates. The since query parameter is inclusive,
519
+ # and the result list is ordered by updatedAt ascending.
532
520
  #
533
521
  # @param since [DateTime]
534
522
  # @param request_options [CandidApiClient::RequestOptions]
@@ -558,8 +546,8 @@ module CandidApiClient
558
546
  end
559
547
  end
560
548
 
561
- # Sets an appointment as deactivated. The path must contain the most recent
562
- # version to prevent race conditions. Deactivating historic versions is not
549
+ # Sets an appointment as deactivated. The path must contain the most recent
550
+ # version to prevent race conditions. Deactivating historic versions is not
563
551
  # supported. Subsequent updates via PUT to the appointment will "reactivate" the
564
552
  # appointment and set the deactivated flag to false.
565
553
  #
@@ -569,7 +557,7 @@ module CandidApiClient
569
557
  # @return [Void]
570
558
  # @example
571
559
  # api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
572
- # api.pre_encounter.appointments.v_1.deactivate(id: "string", version: "string")
560
+ # api.pre_encounter.appointments.v_1.deactivate(id: "id", version: "version")
573
561
  def deactivate(id:, version:, request_options: nil)
574
562
  Async do
575
563
  @request_client.conn.delete do |req|
@@ -19,10 +19,10 @@ module CandidApiClient
19
19
  attr_reader :id
20
20
  # @return [String] The organization that owns this object.
21
21
  attr_reader :organization_id
22
- # @return [Boolean] True if the object is deactivated. Deactivated objects are not returned in
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. Any update to any property of an object object will
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]
@@ -82,9 +82,9 @@ module CandidApiClient
82
82
 
83
83
  # @param id [String]
84
84
  # @param organization_id [String] The organization that owns this object.
85
- # @param deactivated [Boolean] True if the object is deactivated. Deactivated objects are not returned in
85
+ # @param deactivated [Boolean] True if the object is deactivated. Deactivated objects are not returned in
86
86
  # search results but are returned in all other endpoints including scan.
87
- # @param version [Integer] The version of the object. Any update to any property of an object object will
87
+ # @param version [Integer] The version of the object. Any update to any property of an object object will
88
88
  # create a new version.
89
89
  # @param updated_at [DateTime]
90
90
  # @param updating_user_id [String] The user ID of the user who last updated the object.
@@ -11,10 +11,10 @@ module CandidApiClient
11
11
  class BaseModel
12
12
  # @return [String] The organization that owns this object.
13
13
  attr_reader :organization_id
14
- # @return [Boolean] True if the object is deactivated. Deactivated objects are not returned in
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. Any update to any property of an object object will
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]
@@ -30,9 +30,9 @@ module CandidApiClient
30
30
  OMIT = Object.new
31
31
 
32
32
  # @param organization_id [String] The organization that owns this object.
33
- # @param deactivated [Boolean] True if the object is deactivated. Deactivated objects are not returned in
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. Any update to any property of an object object will
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.