candidhealth 0.35.0 → 0.35.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (28) hide show
  1. checksums.yaml +4 -4
  2. data/lib/candidhealth/credentialing/v_2/client.rb +18 -6
  3. data/lib/candidhealth/exports/v_3/client.rb +6 -4
  4. data/lib/candidhealth/guarantor/v_1/types/guarantor.rb +3 -3
  5. data/lib/candidhealth/guarantor/v_1/types/guarantor_base.rb +3 -3
  6. data/lib/candidhealth/guarantor/v_1/types/guarantor_create.rb +4 -4
  7. data/lib/candidhealth/insurance_adjudications/v_1/client.rb +4 -2
  8. data/lib/candidhealth/insurance_adjudications/v_1/types/insurance_adjudication_create.rb +10 -2
  9. data/lib/candidhealth/pre_encounter/appointments/v_1/types/appointment_work_queue.rb +1 -0
  10. data/lib/candidhealth/pre_encounter/common/types/{not_found_error_body.rb → error_base_4_xx.rb} +16 -14
  11. data/lib/candidhealth/pre_encounter/common/types/external_provider.rb +2 -2
  12. data/lib/candidhealth/pre_encounter/common/types/version_conflict_error_body.rb +13 -11
  13. data/lib/candidhealth/pre_encounter/coverages/v_1/client.rb +4 -0
  14. data/lib/candidhealth/pre_encounter/coverages/v_1/types/coverage_benefits.rb +11 -2
  15. data/lib/candidhealth/pre_encounter/lists/v_1/client.rb +4 -6
  16. data/lib/candidhealth/pre_encounter/lists/v_1/types/appointment_list_item.rb +12 -2
  17. data/lib/candidhealth/pre_encounter/patients/v_1/client.rb +239 -4
  18. data/lib/candidhealth/pre_encounter/patients/v_1/types/do_not_invoice_reason.rb +18 -0
  19. data/lib/candidhealth/pre_encounter/patients/v_1/types/mutable_patient.rb +11 -2
  20. data/lib/candidhealth/pre_encounter/patients/v_1/types/mutable_patient_with_mrn.rb +421 -0
  21. data/lib/candidhealth/pre_encounter/patients/v_1/types/patient.rb +11 -2
  22. data/lib/candidhealth/x_12/v_1/types/rarc.rb +7 -0
  23. data/lib/requests.rb +2 -2
  24. data/lib/types_export.rb +3 -4
  25. metadata +5 -6
  26. data/lib/candidhealth/pre_encounter/common/types/error_base.rb +0 -60
  27. data/lib/candidhealth/pre_encounter/patients/v_1/types/potential_duplicate_patient.rb +0 -72
  28. data/lib/candidhealth/pre_encounter/patients/v_1/types/potential_duplicate_patients_error_body.rb +0 -84
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 37173c09099bf364476fed5288b097bfbc67905d28546833e76f424548b0032c
4
- data.tar.gz: da19a7f4fbe98e3ddf91c5d7d46ae3488ab36102e0d6a7c152c64b9ec66f5938
3
+ metadata.gz: aa540971de2f66292e9c032827b1414c52b67ef20ac20c63903b4b985f2d37f4
4
+ data.tar.gz: 391cdb4f9b8ae154e1c72851e3cd8a962f9bd2910875935481462ae67d6dda2c
5
5
  SHA512:
6
- metadata.gz: d2fe34c83975edef7da0b0abdacbaafadff8e3174414161e9b7c3960d0505f7ee1beed0bbc24baef4ca06966a9d07bb116143f584686732a3ca7a95b2f465fb8
7
- data.tar.gz: 377e2e29b29a32513cc56b986e2d643ed97379b51ccf7099b315c09a01fe58a91392613a3ef830f259ca595775ec4d695c58d155920febd2852056ac22866183
6
+ metadata.gz: 181f2f66cce5f5650b4e443bfa316ecfa2a56a5f5b9b6afeae8d373cef2bdad1fddae6030521231fe4605e47db964a4cb771f61c3c6a40b9d4b3b92451f62567
7
+ data.tar.gz: eefe71988e38d5fbcd6aa78fcf5cf9d5b3c05dcdecabe415e73c73ce71c5339a27cf1c67638d80cdd4457817264fa082a0658c1ca33fa1ad722c484058473b2a
@@ -94,8 +94,12 @@ module CandidApiClient
94
94
  # @param limit [Integer] Maximum number of entities per page, defaults to 100.
95
95
  # @param page_token [String]
96
96
  # @param payer_uuid [String] Filter by payer.
97
- # @param as_rendering_provider [Boolean] Filter to credentialing spans where the provider is a rendering provider.
98
- # @param as_contracting_provider [Boolean] Filter to credentialing spans where the provider is a contracting provider.
97
+ # @param provider_id [String] Filter to a particular provider. Use in conjunction as_rendering_provider and
98
+ # as_contracting_provider.
99
+ # @param as_rendering_provider [Boolean] Filter to credentialing spans where the provider is a rendering provider. To use
100
+ # this filter provider_id is required.
101
+ # @param as_contracting_provider [Boolean] Filter to credentialing spans where the provider is a contracting provider. To
102
+ # use this filter provider_id is required.
99
103
  # @param request_options [CandidApiClient::RequestOptions]
100
104
  # @return [CandidApiClient::Credentialing::V2::Types::ProviderCredentialingSpanPage]
101
105
  # @example
@@ -104,10 +108,11 @@ module CandidApiClient
104
108
  # limit: 1,
105
109
  # page_token: "eyJ0b2tlbiI6IjEiLCJwYWdlX3Rva2VuIjoiMiJ9",
106
110
  # payer_uuid: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32",
111
+ # provider_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32",
107
112
  # as_rendering_provider: true,
108
113
  # as_contracting_provider: true
109
114
  # )
110
- def get_all(limit: nil, page_token: nil, payer_uuid: nil, as_rendering_provider: nil,
115
+ def get_all(limit: nil, page_token: nil, payer_uuid: nil, provider_id: nil, as_rendering_provider: nil,
111
116
  as_contracting_provider: nil, request_options: nil)
112
117
  response = @request_client.conn.get do |req|
113
118
  req.options.timeout = request_options.timeout_in_seconds unless request_options&.timeout_in_seconds.nil?
@@ -122,6 +127,7 @@ module CandidApiClient
122
127
  "limit": limit,
123
128
  "page_token": page_token,
124
129
  "payer_uuid": payer_uuid,
130
+ "provider_id": provider_id,
125
131
  "as_rendering_provider": as_rendering_provider,
126
132
  "as_contracting_provider": as_contracting_provider
127
133
  }.compact
@@ -291,8 +297,12 @@ module CandidApiClient
291
297
  # @param limit [Integer] Maximum number of entities per page, defaults to 100.
292
298
  # @param page_token [String]
293
299
  # @param payer_uuid [String] Filter by payer.
294
- # @param as_rendering_provider [Boolean] Filter to credentialing spans where the provider is a rendering provider.
295
- # @param as_contracting_provider [Boolean] Filter to credentialing spans where the provider is a contracting provider.
300
+ # @param provider_id [String] Filter to a particular provider. Use in conjunction as_rendering_provider and
301
+ # as_contracting_provider.
302
+ # @param as_rendering_provider [Boolean] Filter to credentialing spans where the provider is a rendering provider. To use
303
+ # this filter provider_id is required.
304
+ # @param as_contracting_provider [Boolean] Filter to credentialing spans where the provider is a contracting provider. To
305
+ # use this filter provider_id is required.
296
306
  # @param request_options [CandidApiClient::RequestOptions]
297
307
  # @return [CandidApiClient::Credentialing::V2::Types::ProviderCredentialingSpanPage]
298
308
  # @example
@@ -301,10 +311,11 @@ module CandidApiClient
301
311
  # limit: 1,
302
312
  # page_token: "eyJ0b2tlbiI6IjEiLCJwYWdlX3Rva2VuIjoiMiJ9",
303
313
  # payer_uuid: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32",
314
+ # provider_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32",
304
315
  # as_rendering_provider: true,
305
316
  # as_contracting_provider: true
306
317
  # )
307
- def get_all(limit: nil, page_token: nil, payer_uuid: nil, as_rendering_provider: nil,
318
+ def get_all(limit: nil, page_token: nil, payer_uuid: nil, provider_id: nil, as_rendering_provider: nil,
308
319
  as_contracting_provider: nil, request_options: nil)
309
320
  Async do
310
321
  response = @request_client.conn.get do |req|
@@ -320,6 +331,7 @@ module CandidApiClient
320
331
  "limit": limit,
321
332
  "page_token": page_token,
322
333
  "payer_uuid": payer_uuid,
334
+ "provider_id": provider_id,
323
335
  "as_rendering_provider": as_rendering_provider,
324
336
  "as_contracting_provider": as_contracting_provider
325
337
  }.compact
@@ -36,8 +36,9 @@ module CandidApiClient
36
36
  # available by Wednesday at the latest. If file generation is still in progress
37
37
  # upon request before 3 business days have passed, the
38
38
  # caller will receive a 422 response. If the file has already been generated, it
39
- # will be served. Please email
40
- # our [Support team](mailto:support@joincandidhealth.com) with any data requests
39
+ # will be served. Historic files should be available
40
+ # up to 90 days in the past by default. Please email our [Support
41
+ # team](mailto:support@joincandidhealth.com) with any data requests
41
42
  # outside of these stated guarantees.
42
43
  #
43
44
  # @param start_date [Date] Beginning date of claim versions returned in the export, ISO 8601 date e.g.
@@ -100,8 +101,9 @@ module CandidApiClient
100
101
  # available by Wednesday at the latest. If file generation is still in progress
101
102
  # upon request before 3 business days have passed, the
102
103
  # caller will receive a 422 response. If the file has already been generated, it
103
- # will be served. Please email
104
- # our [Support team](mailto:support@joincandidhealth.com) with any data requests
104
+ # will be served. Historic files should be available
105
+ # up to 90 days in the past by default. Please email our [Support
106
+ # team](mailto:support@joincandidhealth.com) with any data requests
105
107
  # outside of these stated guarantees.
106
108
  #
107
109
  # @param start_date [Date] Beginning date of claim versions returned in the export, ISO 8601 date e.g.
@@ -52,7 +52,7 @@ module CandidApiClient
52
52
  # @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
53
53
  # @return [CandidApiClient::Guarantor::V1::Types::Guarantor]
54
54
  def initialize(guarantor_id:, phone_numbers:, phone_consent:, email_consent:, first_name:, last_name:,
55
- external_id:, email: OMIT, date_of_birth: OMIT, address: OMIT, additional_properties: nil)
55
+ external_id:, address:, email: OMIT, date_of_birth: OMIT, additional_properties: nil)
56
56
  @guarantor_id = guarantor_id
57
57
  @phone_numbers = phone_numbers
58
58
  @phone_consent = phone_consent
@@ -62,7 +62,7 @@ module CandidApiClient
62
62
  @last_name = last_name
63
63
  @external_id = external_id
64
64
  @date_of_birth = date_of_birth if date_of_birth != OMIT
65
- @address = address if address != OMIT
65
+ @address = address
66
66
  @additional_properties = additional_properties
67
67
  @_field_set = {
68
68
  "guarantor_id": guarantor_id,
@@ -143,7 +143,7 @@ module CandidApiClient
143
143
  obj.last_name.is_a?(String) != false || raise("Passed value for field obj.last_name is not the expected type, validation failed.")
144
144
  obj.external_id.is_a?(String) != false || raise("Passed value for field obj.external_id is not the expected type, validation failed.")
145
145
  obj.date_of_birth&.is_a?(Date) != false || raise("Passed value for field obj.date_of_birth is not the expected type, validation failed.")
146
- obj.address.nil? || CandidApiClient::Commons::Types::StreetAddressShortZip.validate_raw(obj: obj.address)
146
+ CandidApiClient::Commons::Types::StreetAddressShortZip.validate_raw(obj: obj.address)
147
147
  end
148
148
  end
149
149
  end
@@ -35,13 +35,13 @@ module CandidApiClient
35
35
  # @param address [CandidApiClient::Commons::Types::StreetAddressShortZip]
36
36
  # @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
37
37
  # @return [CandidApiClient::Guarantor::V1::Types::GuarantorBase]
38
- def initialize(first_name:, last_name:, external_id:, date_of_birth: OMIT, address: OMIT,
38
+ def initialize(first_name:, last_name:, external_id:, address:, date_of_birth: OMIT,
39
39
  additional_properties: nil)
40
40
  @first_name = first_name
41
41
  @last_name = last_name
42
42
  @external_id = external_id
43
43
  @date_of_birth = date_of_birth if date_of_birth != OMIT
44
- @address = address if address != OMIT
44
+ @address = address
45
45
  @additional_properties = additional_properties
46
46
  @_field_set = {
47
47
  "first_name": first_name,
@@ -99,7 +99,7 @@ module CandidApiClient
99
99
  obj.last_name.is_a?(String) != false || raise("Passed value for field obj.last_name is not the expected type, validation failed.")
100
100
  obj.external_id.is_a?(String) != false || raise("Passed value for field obj.external_id is not the expected type, validation failed.")
101
101
  obj.date_of_birth&.is_a?(Date) != false || raise("Passed value for field obj.date_of_birth is not the expected type, validation failed.")
102
- obj.address.nil? || CandidApiClient::Commons::Types::StreetAddressShortZip.validate_raw(obj: obj.address)
102
+ CandidApiClient::Commons::Types::StreetAddressShortZip.validate_raw(obj: obj.address)
103
103
  end
104
104
  end
105
105
  end
@@ -48,8 +48,8 @@ module CandidApiClient
48
48
  # @param address [CandidApiClient::Commons::Types::StreetAddressShortZip]
49
49
  # @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
50
50
  # @return [CandidApiClient::Guarantor::V1::Types::GuarantorCreate]
51
- def initialize(first_name:, last_name:, external_id:, phone_numbers: OMIT, phone_consent: OMIT, email: OMIT,
52
- email_consent: OMIT, date_of_birth: OMIT, address: OMIT, additional_properties: nil)
51
+ def initialize(first_name:, last_name:, external_id:, address:, phone_numbers: OMIT, phone_consent: OMIT,
52
+ email: OMIT, email_consent: OMIT, date_of_birth: OMIT, additional_properties: nil)
53
53
  @phone_numbers = phone_numbers if phone_numbers != OMIT
54
54
  @phone_consent = phone_consent if phone_consent != OMIT
55
55
  @email = email if email != OMIT
@@ -58,7 +58,7 @@ module CandidApiClient
58
58
  @last_name = last_name
59
59
  @external_id = external_id
60
60
  @date_of_birth = date_of_birth if date_of_birth != OMIT
61
- @address = address if address != OMIT
61
+ @address = address
62
62
  @additional_properties = additional_properties
63
63
  @_field_set = {
64
64
  "phone_numbers": phone_numbers,
@@ -135,7 +135,7 @@ module CandidApiClient
135
135
  obj.last_name.is_a?(String) != false || raise("Passed value for field obj.last_name is not the expected type, validation failed.")
136
136
  obj.external_id.is_a?(String) != false || raise("Passed value for field obj.external_id is not the expected type, validation failed.")
137
137
  obj.date_of_birth&.is_a?(Date) != false || raise("Passed value for field obj.date_of_birth is not the expected type, validation failed.")
138
- obj.address.nil? || CandidApiClient::Commons::Types::StreetAddressShortZip.validate_raw(obj: obj.address)
138
+ CandidApiClient::Commons::Types::StreetAddressShortZip.validate_raw(obj: obj.address)
139
139
  end
140
140
  end
141
141
  end
@@ -55,11 +55,12 @@ module CandidApiClient
55
55
  # * :check_date (Date)
56
56
  # * :note (String)
57
57
  # * :claims (Hash{String => Array})
58
+ # * :remit_draft_id (String)
58
59
  # @param request_options [CandidApiClient::RequestOptions]
59
60
  # @return [CandidApiClient::InsuranceAdjudications::V1::Types::InsuranceAdjudication]
60
61
  # @example
61
62
  # api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
62
- # api.insurance_adjudications.v_1.create(request: { payee: { payee_name: "string" }, post_date: DateTime.parse(2023-01-15), check_number: "string", check_date: DateTime.parse(2023-01-15), note: "string", claims: { "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32": [{ claim_status_code: PROCESSED_AS_PRIMARY, service_lines: { }, carcs: }] } })
63
+ # api.insurance_adjudications.v_1.create(request: { payee: { payee_name: "string" }, post_date: DateTime.parse(2023-01-15), check_number: "string", check_date: DateTime.parse(2023-01-15), note: "string", claims: { "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32": [{ claim_status_code: PROCESSED_AS_PRIMARY, service_lines: { }, carcs: }] }, remit_draft_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32" })
63
64
  def create(request:, request_options: nil)
64
65
  response = @request_client.conn.post do |req|
65
66
  req.options.timeout = request_options.timeout_in_seconds unless request_options&.timeout_in_seconds.nil?
@@ -149,11 +150,12 @@ module CandidApiClient
149
150
  # * :check_date (Date)
150
151
  # * :note (String)
151
152
  # * :claims (Hash{String => Array})
153
+ # * :remit_draft_id (String)
152
154
  # @param request_options [CandidApiClient::RequestOptions]
153
155
  # @return [CandidApiClient::InsuranceAdjudications::V1::Types::InsuranceAdjudication]
154
156
  # @example
155
157
  # api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
156
- # api.insurance_adjudications.v_1.create(request: { payee: { payee_name: "string" }, post_date: DateTime.parse(2023-01-15), check_number: "string", check_date: DateTime.parse(2023-01-15), note: "string", claims: { "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32": [{ claim_status_code: PROCESSED_AS_PRIMARY, service_lines: { }, carcs: }] } })
158
+ # api.insurance_adjudications.v_1.create(request: { payee: { payee_name: "string" }, post_date: DateTime.parse(2023-01-15), check_number: "string", check_date: DateTime.parse(2023-01-15), note: "string", claims: { "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32": [{ claim_status_code: PROCESSED_AS_PRIMARY, service_lines: { }, carcs: }] }, remit_draft_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32" })
157
159
  def create(request:, request_options: nil)
158
160
  Async do
159
161
  response = @request_client.conn.post do |req|
@@ -25,6 +25,8 @@ module CandidApiClient
25
25
  attr_reader :note
26
26
  # @return [Hash{String => Array}]
27
27
  attr_reader :claims
28
+ # @return [String]
29
+ attr_reader :remit_draft_id
28
30
  # @return [OpenStruct] Additional properties unmapped to the current class definition
29
31
  attr_reader :additional_properties
30
32
  # @return [Object]
@@ -40,10 +42,11 @@ module CandidApiClient
40
42
  # @param check_date [Date]
41
43
  # @param note [String]
42
44
  # @param claims [Hash{String => Array}]
45
+ # @param remit_draft_id [String]
43
46
  # @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
44
47
  # @return [CandidApiClient::InsuranceAdjudications::V1::Types::InsuranceAdjudicationCreate]
45
48
  def initialize(payer_identifier:, payee:, check_date:, claims:, post_date: OMIT, check_number: OMIT,
46
- note: OMIT, additional_properties: nil)
49
+ note: OMIT, remit_draft_id: OMIT, additional_properties: nil)
47
50
  @payer_identifier = payer_identifier
48
51
  @payee = payee
49
52
  @post_date = post_date if post_date != OMIT
@@ -51,6 +54,7 @@ module CandidApiClient
51
54
  @check_date = check_date
52
55
  @note = note if note != OMIT
53
56
  @claims = claims
57
+ @remit_draft_id = remit_draft_id if remit_draft_id != OMIT
54
58
  @additional_properties = additional_properties
55
59
  @_field_set = {
56
60
  "payer_identifier": payer_identifier,
@@ -59,7 +63,8 @@ module CandidApiClient
59
63
  "check_number": check_number,
60
64
  "check_date": check_date,
61
65
  "note": note,
62
- "claims": claims
66
+ "claims": claims,
67
+ "remit_draft_id": remit_draft_id
63
68
  }.reject do |_k, v|
64
69
  v == OMIT
65
70
  end
@@ -94,6 +99,7 @@ module CandidApiClient
94
99
  CandidApiClient::InsuranceAdjudications::V1::Types::ClaimAdjudicationCreate.from_json(json_object: item)
95
100
  end
96
101
  end
102
+ remit_draft_id = struct["remit_draft_id"]
97
103
  new(
98
104
  payer_identifier: payer_identifier,
99
105
  payee: payee,
@@ -102,6 +108,7 @@ module CandidApiClient
102
108
  check_date: check_date,
103
109
  note: note,
104
110
  claims: claims,
111
+ remit_draft_id: remit_draft_id,
105
112
  additional_properties: struct
106
113
  )
107
114
  end
@@ -127,6 +134,7 @@ module CandidApiClient
127
134
  obj.check_date.is_a?(Date) != false || raise("Passed value for field obj.check_date is not the expected type, validation failed.")
128
135
  obj.note&.is_a?(String) != false || raise("Passed value for field obj.note is not the expected type, validation failed.")
129
136
  obj.claims.is_a?(Hash) != false || raise("Passed value for field obj.claims is not the expected type, validation failed.")
137
+ obj.remit_draft_id&.is_a?(String) != false || raise("Passed value for field obj.remit_draft_id is not the expected type, validation failed.")
130
138
  end
131
139
  end
132
140
  end
@@ -9,6 +9,7 @@ module CandidApiClient
9
9
  EMERGENT_ISSUE = "EMERGENT_ISSUE"
10
10
  NEW_PATIENT = "NEW_PATIENT"
11
11
  RETURNING_PATIENT = "RETURNING_PATIENT"
12
+ MANUAL_ESCALATION = "MANUAL_ESCALATION"
12
13
  end
13
14
  end
14
15
  end
@@ -7,11 +7,11 @@ module CandidApiClient
7
7
  module PreEncounter
8
8
  module Common
9
9
  module Types
10
- class NotFoundErrorBody
11
- # @return [String]
12
- attr_reader :code
10
+ class ErrorBase4Xx
13
11
  # @return [String]
14
12
  attr_reader :message
13
+ # @return [Object]
14
+ attr_reader :data
15
15
  # @return [OpenStruct] Additional properties unmapped to the current class definition
16
16
  attr_reader :additional_properties
17
17
  # @return [Object]
@@ -20,33 +20,35 @@ module CandidApiClient
20
20
 
21
21
  OMIT = Object.new
22
22
 
23
- # @param code [String]
24
23
  # @param message [String]
24
+ # @param data [Object]
25
25
  # @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
26
- # @return [CandidApiClient::PreEncounter::Common::Types::NotFoundErrorBody]
27
- def initialize(code:, message:, additional_properties: nil)
28
- @code = code
26
+ # @return [CandidApiClient::PreEncounter::Common::Types::ErrorBase4Xx]
27
+ def initialize(message:, data: OMIT, additional_properties: nil)
29
28
  @message = message
29
+ @data = data if data != OMIT
30
30
  @additional_properties = additional_properties
31
- @_field_set = { "code": code, "message": message }
31
+ @_field_set = { "message": message, "data": data }.reject do |_k, v|
32
+ v == OMIT
33
+ end
32
34
  end
33
35
 
34
- # Deserialize a JSON object to an instance of NotFoundErrorBody
36
+ # Deserialize a JSON object to an instance of ErrorBase4Xx
35
37
  #
36
38
  # @param json_object [String]
37
- # @return [CandidApiClient::PreEncounter::Common::Types::NotFoundErrorBody]
39
+ # @return [CandidApiClient::PreEncounter::Common::Types::ErrorBase4Xx]
38
40
  def self.from_json(json_object:)
39
41
  struct = JSON.parse(json_object, object_class: OpenStruct)
40
- code = struct["code"]
41
42
  message = struct["message"]
43
+ data = struct["data"]
42
44
  new(
43
- code: code,
44
45
  message: message,
46
+ data: data,
45
47
  additional_properties: struct
46
48
  )
47
49
  end
48
50
 
49
- # Serialize an instance of NotFoundErrorBody to a JSON object
51
+ # Serialize an instance of ErrorBase4Xx to a JSON object
50
52
  #
51
53
  # @return [String]
52
54
  def to_json(*_args)
@@ -60,8 +62,8 @@ module CandidApiClient
60
62
  # @param obj [Object]
61
63
  # @return [Void]
62
64
  def self.validate_raw(obj:)
63
- obj.code.is_a?(String) != false || raise("Passed value for field obj.code is not the expected type, validation failed.")
64
65
  obj.message.is_a?(String) != false || raise("Passed value for field obj.message is not the expected type, validation failed.")
66
+ obj.data&.is_a?(Object) != false || raise("Passed value for field obj.data is not the expected type, validation failed.")
65
67
  end
66
68
  end
67
69
  end
@@ -15,7 +15,7 @@ module CandidApiClient
15
15
  class ExternalProvider
16
16
  # @return [CandidApiClient::PreEncounter::Common::Types::HumanName]
17
17
  attr_reader :name
18
- # @return [CandidApiClient::PreEncounter::Common::Types::ExternalProviderType]
18
+ # @return [CandidApiClient::PreEncounter::Common::Types::ExternalProviderType] Defaults to ATTENDING.
19
19
  attr_reader :type
20
20
  # @return [String]
21
21
  attr_reader :npi
@@ -36,7 +36,7 @@ module CandidApiClient
36
36
  OMIT = Object.new
37
37
 
38
38
  # @param name [CandidApiClient::PreEncounter::Common::Types::HumanName]
39
- # @param type [CandidApiClient::PreEncounter::Common::Types::ExternalProviderType]
39
+ # @param type [CandidApiClient::PreEncounter::Common::Types::ExternalProviderType] Defaults to ATTENDING.
40
40
  # @param npi [String]
41
41
  # @param telecoms [Array<CandidApiClient::PreEncounter::Common::Types::ContactPoint>]
42
42
  # @param addresses [Array<CandidApiClient::PreEncounter::Common::Types::Address>]
@@ -8,12 +8,12 @@ module CandidApiClient
8
8
  module Common
9
9
  module Types
10
10
  class VersionConflictErrorBody
11
- # @return [String]
12
- attr_reader :code
13
11
  # @return [Integer]
14
12
  attr_reader :latest_version
15
13
  # @return [String]
16
14
  attr_reader :message
15
+ # @return [Object]
16
+ attr_reader :data
17
17
  # @return [OpenStruct] Additional properties unmapped to the current class definition
18
18
  attr_reader :additional_properties
19
19
  # @return [Object]
@@ -22,17 +22,19 @@ module CandidApiClient
22
22
 
23
23
  OMIT = Object.new
24
24
 
25
- # @param code [String]
26
25
  # @param latest_version [Integer]
27
26
  # @param message [String]
27
+ # @param data [Object]
28
28
  # @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
29
29
  # @return [CandidApiClient::PreEncounter::Common::Types::VersionConflictErrorBody]
30
- def initialize(code:, latest_version:, message:, additional_properties: nil)
31
- @code = code
32
- @latest_version = latest_version
30
+ def initialize(message:, latest_version: OMIT, data: OMIT, additional_properties: nil)
31
+ @latest_version = latest_version if latest_version != OMIT
33
32
  @message = message
33
+ @data = data if data != OMIT
34
34
  @additional_properties = additional_properties
35
- @_field_set = { "code": code, "latest_version": latest_version, "message": message }
35
+ @_field_set = { "latest_version": latest_version, "message": message, "data": data }.reject do |_k, v|
36
+ v == OMIT
37
+ end
36
38
  end
37
39
 
38
40
  # Deserialize a JSON object to an instance of VersionConflictErrorBody
@@ -41,13 +43,13 @@ module CandidApiClient
41
43
  # @return [CandidApiClient::PreEncounter::Common::Types::VersionConflictErrorBody]
42
44
  def self.from_json(json_object:)
43
45
  struct = JSON.parse(json_object, object_class: OpenStruct)
44
- code = struct["code"]
45
46
  latest_version = struct["latest_version"]
46
47
  message = struct["message"]
48
+ data = struct["data"]
47
49
  new(
48
- code: code,
49
50
  latest_version: latest_version,
50
51
  message: message,
52
+ data: data,
51
53
  additional_properties: struct
52
54
  )
53
55
  end
@@ -66,9 +68,9 @@ module CandidApiClient
66
68
  # @param obj [Object]
67
69
  # @return [Void]
68
70
  def self.validate_raw(obj:)
69
- obj.code.is_a?(String) != false || raise("Passed value for field obj.code is not the expected type, validation failed.")
70
- obj.latest_version.is_a?(Integer) != false || raise("Passed value for field obj.latest_version is not the expected type, validation failed.")
71
+ obj.latest_version&.is_a?(Integer) != false || raise("Passed value for field obj.latest_version is not the expected type, validation failed.")
71
72
  obj.message.is_a?(String) != false || raise("Passed value for field obj.message is not the expected type, validation failed.")
73
+ obj.data&.is_a?(Object) != false || raise("Passed value for field obj.data is not the expected type, validation failed.")
72
74
  end
73
75
  end
74
76
  end
@@ -110,6 +110,7 @@ module CandidApiClient
110
110
  # * :additional_notes (String)
111
111
  # * :out_of_network_flat (Array<CandidApiClient::PreEncounter::Coverages::V1::Types::CoverageDetails>)
112
112
  # * :service_specific_coverage (Array<CandidApiClient::PreEncounter::Coverages::V1::Types::ServiceCoverage>)
113
+ # * :notes (String)
113
114
  # @param request_options [CandidApiClient::RequestOptions]
114
115
  # @return [CandidApiClient::PreEncounter::Coverages::V1::Types::Coverage]
115
116
  # @example
@@ -216,6 +217,7 @@ module CandidApiClient
216
217
  # * :additional_notes (String)
217
218
  # * :out_of_network_flat (Array<CandidApiClient::PreEncounter::Coverages::V1::Types::CoverageDetails>)
218
219
  # * :service_specific_coverage (Array<CandidApiClient::PreEncounter::Coverages::V1::Types::ServiceCoverage>)
220
+ # * :notes (String)
219
221
  # @param request_options [CandidApiClient::RequestOptions]
220
222
  # @return [CandidApiClient::PreEncounter::Coverages::V1::Types::Coverage]
221
223
  # @example
@@ -508,6 +510,7 @@ module CandidApiClient
508
510
  # * :additional_notes (String)
509
511
  # * :out_of_network_flat (Array<CandidApiClient::PreEncounter::Coverages::V1::Types::CoverageDetails>)
510
512
  # * :service_specific_coverage (Array<CandidApiClient::PreEncounter::Coverages::V1::Types::ServiceCoverage>)
513
+ # * :notes (String)
511
514
  # @param request_options [CandidApiClient::RequestOptions]
512
515
  # @return [CandidApiClient::PreEncounter::Coverages::V1::Types::Coverage]
513
516
  # @example
@@ -616,6 +619,7 @@ module CandidApiClient
616
619
  # * :additional_notes (String)
617
620
  # * :out_of_network_flat (Array<CandidApiClient::PreEncounter::Coverages::V1::Types::CoverageDetails>)
618
621
  # * :service_specific_coverage (Array<CandidApiClient::PreEncounter::Coverages::V1::Types::ServiceCoverage>)
622
+ # * :notes (String)
619
623
  # @param request_options [CandidApiClient::RequestOptions]
620
624
  # @return [CandidApiClient::PreEncounter::Coverages::V1::Types::Coverage]
621
625
  # @example
@@ -15,6 +15,8 @@ module CandidApiClient
15
15
  attr_reader :plan_coverage
16
16
  # @return [Array<CandidApiClient::PreEncounter::Coverages::V1::Types::ServiceCoverage>]
17
17
  attr_reader :service_specific_coverage
18
+ # @return [String]
19
+ attr_reader :notes
18
20
  # @return [OpenStruct] Additional properties unmapped to the current class definition
19
21
  attr_reader :additional_properties
20
22
  # @return [Object]
@@ -25,15 +27,19 @@ module CandidApiClient
25
27
 
26
28
  # @param plan_coverage [CandidApiClient::PreEncounter::Coverages::V1::Types::PlanCoverage]
27
29
  # @param service_specific_coverage [Array<CandidApiClient::PreEncounter::Coverages::V1::Types::ServiceCoverage>]
30
+ # @param notes [String]
28
31
  # @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
29
32
  # @return [CandidApiClient::PreEncounter::Coverages::V1::Types::CoverageBenefits]
30
- def initialize(plan_coverage: OMIT, service_specific_coverage: OMIT, additional_properties: nil)
33
+ def initialize(plan_coverage: OMIT, service_specific_coverage: OMIT, notes: OMIT,
34
+ additional_properties: nil)
31
35
  @plan_coverage = plan_coverage if plan_coverage != OMIT
32
36
  @service_specific_coverage = service_specific_coverage if service_specific_coverage != OMIT
37
+ @notes = notes if notes != OMIT
33
38
  @additional_properties = additional_properties
34
39
  @_field_set = {
35
40
  "plan_coverage": plan_coverage,
36
- "service_specific_coverage": service_specific_coverage
41
+ "service_specific_coverage": service_specific_coverage,
42
+ "notes": notes
37
43
  }.reject do |_k, v|
38
44
  v == OMIT
39
45
  end
@@ -56,9 +62,11 @@ module CandidApiClient
56
62
  item = item.to_json
57
63
  CandidApiClient::PreEncounter::Coverages::V1::Types::ServiceCoverage.from_json(json_object: item)
58
64
  end
65
+ notes = struct["notes"]
59
66
  new(
60
67
  plan_coverage: plan_coverage,
61
68
  service_specific_coverage: service_specific_coverage,
69
+ notes: notes,
62
70
  additional_properties: struct
63
71
  )
64
72
  end
@@ -79,6 +87,7 @@ module CandidApiClient
79
87
  def self.validate_raw(obj:)
80
88
  obj.plan_coverage.nil? || CandidApiClient::PreEncounter::Coverages::V1::Types::PlanCoverage.validate_raw(obj: obj.plan_coverage)
81
89
  obj.service_specific_coverage&.is_a?(Array) != false || raise("Passed value for field obj.service_specific_coverage is not the expected type, validation failed.")
90
+ obj.notes&.is_a?(String) != false || raise("Passed value for field obj.notes is not the expected type, validation failed.")
82
91
  end
83
92
  end
84
93
  end
@@ -25,7 +25,7 @@ module CandidApiClient
25
25
  #
26
26
  # @param page_token [String]
27
27
  # @param limit [Integer]
28
- # @param sort_field [String]
28
+ # @param sort_field [String] Defaults to patient.updatedAt.
29
29
  # @param sort_direction [CandidApiClient::PreEncounter::Common::Types::SortDirection] Defaults to ascending.
30
30
  # @param filters [String]
31
31
  # @param request_options [CandidApiClient::RequestOptions]
@@ -65,8 +65,7 @@ module CandidApiClient
65
65
 
66
66
  # Searches for appointments that match the query parameters.
67
67
  #
68
- # @param sort_field [String] The string path to the field to order by. Defaults to
69
- # appointment.startTimestamp. Path values are camelCase.
68
+ # @param sort_field [String] Defaults to appointment.startTimestamp.
70
69
  # @param sort_direction [CandidApiClient::PreEncounter::Common::Types::SortDirection] Defaults to asc.
71
70
  # @param limit [Integer] Defaults to 100.
72
71
  # @param page_token [String]
@@ -122,7 +121,7 @@ module CandidApiClient
122
121
  #
123
122
  # @param page_token [String]
124
123
  # @param limit [Integer]
125
- # @param sort_field [String]
124
+ # @param sort_field [String] Defaults to patient.updatedAt.
126
125
  # @param sort_direction [CandidApiClient::PreEncounter::Common::Types::SortDirection] Defaults to ascending.
127
126
  # @param filters [String]
128
127
  # @param request_options [CandidApiClient::RequestOptions]
@@ -164,8 +163,7 @@ module CandidApiClient
164
163
 
165
164
  # Searches for appointments that match the query parameters.
166
165
  #
167
- # @param sort_field [String] The string path to the field to order by. Defaults to
168
- # appointment.startTimestamp. Path values are camelCase.
166
+ # @param sort_field [String] Defaults to appointment.startTimestamp.
169
167
  # @param sort_direction [CandidApiClient::PreEncounter::Common::Types::SortDirection] Defaults to asc.
170
168
  # @param limit [Integer] Defaults to 100.
171
169
  # @param page_token [String]
@@ -3,6 +3,7 @@
3
3
  require_relative "../../../appointments/v_1/types/appointment"
4
4
  require_relative "../../../patients/v_1/types/mutable_patient"
5
5
  require_relative "../../../coverages/v_1/types/mutable_coverage"
6
+ require_relative "../../../appointments/v_1/types/universal_service_identifier"
6
7
  require "ostruct"
7
8
  require "json"
8
9
 
@@ -18,6 +19,8 @@ module CandidApiClient
18
19
  attr_reader :patient
19
20
  # @return [CandidApiClient::PreEncounter::Coverages::V1::Types::MutableCoverage]
20
21
  attr_reader :primary_coverage
22
+ # @return [CandidApiClient::PreEncounter::Appointments::V1::Types::UniversalServiceIdentifier]
23
+ attr_reader :primary_service_type
21
24
  # @return [OpenStruct] Additional properties unmapped to the current class definition
22
25
  attr_reader :additional_properties
23
26
  # @return [Object]
@@ -29,17 +32,21 @@ module CandidApiClient
29
32
  # @param appointment [CandidApiClient::PreEncounter::Appointments::V1::Types::Appointment]
30
33
  # @param patient [CandidApiClient::PreEncounter::Patients::V1::Types::MutablePatient]
31
34
  # @param primary_coverage [CandidApiClient::PreEncounter::Coverages::V1::Types::MutableCoverage]
35
+ # @param primary_service_type [CandidApiClient::PreEncounter::Appointments::V1::Types::UniversalServiceIdentifier]
32
36
  # @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
33
37
  # @return [CandidApiClient::PreEncounter::Lists::V1::Types::AppointmentListItem]
34
- def initialize(appointment:, patient:, primary_coverage: OMIT, additional_properties: nil)
38
+ def initialize(appointment:, patient:, primary_coverage: OMIT, primary_service_type: OMIT,
39
+ additional_properties: nil)
35
40
  @appointment = appointment
36
41
  @patient = patient
37
42
  @primary_coverage = primary_coverage if primary_coverage != OMIT
43
+ @primary_service_type = primary_service_type if primary_service_type != OMIT
38
44
  @additional_properties = additional_properties
39
45
  @_field_set = {
40
46
  "appointment": appointment,
41
47
  "patient": patient,
42
- "primary_coverage": primary_coverage
48
+ "primary_coverage": primary_coverage,
49
+ "primary_service_type": primary_service_type
43
50
  }.reject do |_k, v|
44
51
  v == OMIT
45
52
  end
@@ -70,10 +77,12 @@ module CandidApiClient
70
77
  primary_coverage = parsed_json["primary_coverage"].to_json
71
78
  primary_coverage = CandidApiClient::PreEncounter::Coverages::V1::Types::MutableCoverage.from_json(json_object: primary_coverage)
72
79
  end
80
+ primary_service_type = struct["primary_service_type"]
73
81
  new(
74
82
  appointment: appointment,
75
83
  patient: patient,
76
84
  primary_coverage: primary_coverage,
85
+ primary_service_type: primary_service_type,
77
86
  additional_properties: struct
78
87
  )
79
88
  end
@@ -95,6 +104,7 @@ module CandidApiClient
95
104
  CandidApiClient::PreEncounter::Appointments::V1::Types::Appointment.validate_raw(obj: obj.appointment)
96
105
  CandidApiClient::PreEncounter::Patients::V1::Types::MutablePatient.validate_raw(obj: obj.patient)
97
106
  obj.primary_coverage.nil? || CandidApiClient::PreEncounter::Coverages::V1::Types::MutableCoverage.validate_raw(obj: obj.primary_coverage)
107
+ obj.primary_service_type&.is_a?(CandidApiClient::PreEncounter::Appointments::V1::Types::UniversalServiceIdentifier) != false || raise("Passed value for field obj.primary_service_type is not the expected type, validation failed.")
98
108
  end
99
109
  end
100
110
  end