candidhealth 0.35.0 → 0.35.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/candidhealth/exports/v_3/client.rb +6 -4
- data/lib/candidhealth/guarantor/v_1/types/guarantor.rb +3 -3
- data/lib/candidhealth/guarantor/v_1/types/guarantor_base.rb +3 -3
- data/lib/candidhealth/guarantor/v_1/types/guarantor_create.rb +4 -4
- data/lib/candidhealth/insurance_adjudications/v_1/client.rb +4 -2
- data/lib/candidhealth/insurance_adjudications/v_1/types/insurance_adjudication_create.rb +10 -2
- data/lib/candidhealth/pre_encounter/appointments/v_1/types/appointment_work_queue.rb +1 -0
- data/lib/candidhealth/pre_encounter/common/types/external_provider.rb +2 -2
- data/lib/candidhealth/pre_encounter/coverages/v_1/client.rb +4 -0
- data/lib/candidhealth/pre_encounter/coverages/v_1/types/coverage_benefits.rb +11 -2
- data/lib/candidhealth/pre_encounter/lists/v_1/client.rb +4 -6
- data/lib/candidhealth/pre_encounter/lists/v_1/types/appointment_list_item.rb +12 -2
- data/lib/candidhealth/pre_encounter/patients/v_1/client.rb +239 -4
- data/lib/candidhealth/pre_encounter/patients/v_1/types/do_not_invoice_reason.rb +18 -0
- data/lib/candidhealth/pre_encounter/patients/v_1/types/invalid_mrn_error_body.rb +72 -0
- data/lib/candidhealth/pre_encounter/patients/v_1/types/mutable_patient.rb +11 -2
- data/lib/candidhealth/pre_encounter/patients/v_1/types/mutable_patient_with_mrn.rb +421 -0
- data/lib/candidhealth/pre_encounter/patients/v_1/types/patient.rb +11 -2
- data/lib/candidhealth/x_12/v_1/types/rarc.rb +6 -0
- data/lib/requests.rb +2 -2
- data/lib/types_export.rb +3 -0
- metadata +5 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f35dd5953efeb58f0a82d0880e2cb20f6260b82fc3c3148847f24c18f049d898
|
4
|
+
data.tar.gz: 3784243452c6e91cf2bb73385ef6a90b95d5fc43b200ac054cea4decb99c5fee
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1920405d81ae508ebd66483dee989d65875a1eb8f1ebaad530ccdd64c094144ab1d1b89cdb01338e160d51204876eb973c674036f2b92074df972c18813816cb
|
7
|
+
data.tar.gz: 46db432e8cde96cb8abfadf89b13aee9ce55e40ee3a2cc6f2737f3ed177c52cd351f2bad323702bdaa6cd92293b8da5c83166513b41f988cf869c4fdd0935b50
|
@@ -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.
|
40
|
-
#
|
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.
|
104
|
-
#
|
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,
|
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
|
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
|
-
|
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,
|
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
|
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
|
-
|
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,
|
52
|
-
|
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
|
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
|
-
|
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
|
@@ -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>]
|
@@ -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,
|
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]
|
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]
|
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,
|
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
|