candidhealth 0.34.9 → 0.35.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/candidhealth/credentialing/client.rb +30 -0
- data/lib/candidhealth/credentialing/v_2/client.rb +410 -0
- data/lib/candidhealth/credentialing/v_2/types/credentialing_span_status.rb +17 -0
- data/lib/candidhealth/credentialing/v_2/types/provider_credentialing_span.rb +196 -0
- data/lib/candidhealth/credentialing/v_2/types/provider_credentialing_span_page.rb +88 -0
- data/lib/candidhealth/encounters/v_4/client.rb +16 -18
- data/lib/candidhealth/encounters/v_4/types/encounter.rb +10 -10
- data/lib/candidhealth/encounters/v_4/types/encounter_base.rb +2 -10
- 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/non_insurance_payers/v_1/types/non_insurance_payer.rb +17 -2
- data/lib/candidhealth/organization_providers/v_3/client.rb +2 -2
- data/lib/candidhealth/pre_encounter/appointments/v_1/client.rb +4 -4
- 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 +8 -4
- 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/service_lines/v_2/client.rb +28 -2
- data/lib/candidhealth/service_lines/v_2/types/service_line_create_standalone.rb +19 -1
- data/lib/candidhealth/x_12/v_1/types/rarc.rb +7 -0
- data/lib/candidhealth.rb +7 -0
- data/lib/requests.rb +2 -2
- data/lib/types_export.rb +6 -1
- metadata +10 -3
- data/lib/candidhealth/encounters/v_4/types/insurance_pay_missing_primary_coverage_error_type.rb +0 -62
@@ -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,
|
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,
|
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
|
@@ -1,5 +1,6 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
+
require_relative "../../../commons/types/street_address_short_zip"
|
3
4
|
require "ostruct"
|
4
5
|
require "json"
|
5
6
|
|
@@ -18,6 +19,8 @@ module CandidApiClient
|
|
18
19
|
attr_reader :category
|
19
20
|
# @return [Boolean]
|
20
21
|
attr_reader :enabled
|
22
|
+
# @return [CandidApiClient::Commons::Types::StreetAddressShortZip]
|
23
|
+
attr_reader :address
|
21
24
|
# @return [OpenStruct] Additional properties unmapped to the current class definition
|
22
25
|
attr_reader :additional_properties
|
23
26
|
# @return [Object]
|
@@ -31,22 +34,25 @@ module CandidApiClient
|
|
31
34
|
# @param description [String]
|
32
35
|
# @param category [String]
|
33
36
|
# @param enabled [Boolean]
|
37
|
+
# @param address [CandidApiClient::Commons::Types::StreetAddressShortZip]
|
34
38
|
# @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
|
35
39
|
# @return [CandidApiClient::NonInsurancePayers::V1::Types::NonInsurancePayer]
|
36
|
-
def initialize(non_insurance_payer_id:, name:, enabled:, description: OMIT, category: OMIT,
|
40
|
+
def initialize(non_insurance_payer_id:, name:, enabled:, description: OMIT, category: OMIT, address: OMIT,
|
37
41
|
additional_properties: nil)
|
38
42
|
@non_insurance_payer_id = non_insurance_payer_id
|
39
43
|
@name = name
|
40
44
|
@description = description if description != OMIT
|
41
45
|
@category = category if category != OMIT
|
42
46
|
@enabled = enabled
|
47
|
+
@address = address if address != OMIT
|
43
48
|
@additional_properties = additional_properties
|
44
49
|
@_field_set = {
|
45
50
|
"non_insurance_payer_id": non_insurance_payer_id,
|
46
51
|
"name": name,
|
47
52
|
"description": description,
|
48
53
|
"category": category,
|
49
|
-
"enabled": enabled
|
54
|
+
"enabled": enabled,
|
55
|
+
"address": address
|
50
56
|
}.reject do |_k, v|
|
51
57
|
v == OMIT
|
52
58
|
end
|
@@ -58,17 +64,25 @@ module CandidApiClient
|
|
58
64
|
# @return [CandidApiClient::NonInsurancePayers::V1::Types::NonInsurancePayer]
|
59
65
|
def self.from_json(json_object:)
|
60
66
|
struct = JSON.parse(json_object, object_class: OpenStruct)
|
67
|
+
parsed_json = JSON.parse(json_object)
|
61
68
|
non_insurance_payer_id = struct["non_insurance_payer_id"]
|
62
69
|
name = struct["name"]
|
63
70
|
description = struct["description"]
|
64
71
|
category = struct["category"]
|
65
72
|
enabled = struct["enabled"]
|
73
|
+
if parsed_json["address"].nil?
|
74
|
+
address = nil
|
75
|
+
else
|
76
|
+
address = parsed_json["address"].to_json
|
77
|
+
address = CandidApiClient::Commons::Types::StreetAddressShortZip.from_json(json_object: address)
|
78
|
+
end
|
66
79
|
new(
|
67
80
|
non_insurance_payer_id: non_insurance_payer_id,
|
68
81
|
name: name,
|
69
82
|
description: description,
|
70
83
|
category: category,
|
71
84
|
enabled: enabled,
|
85
|
+
address: address,
|
72
86
|
additional_properties: struct
|
73
87
|
)
|
74
88
|
end
|
@@ -92,6 +106,7 @@ module CandidApiClient
|
|
92
106
|
obj.description&.is_a?(String) != false || raise("Passed value for field obj.description is not the expected type, validation failed.")
|
93
107
|
obj.category&.is_a?(String) != false || raise("Passed value for field obj.category is not the expected type, validation failed.")
|
94
108
|
obj.enabled.is_a?(Boolean) != false || raise("Passed value for field obj.enabled is not the expected type, validation failed.")
|
109
|
+
obj.address.nil? || CandidApiClient::Commons::Types::StreetAddressShortZip.validate_raw(obj: obj.address)
|
95
110
|
end
|
96
111
|
end
|
97
112
|
end
|
@@ -107,7 +107,7 @@ module CandidApiClient
|
|
107
107
|
# @return [CandidApiClient::OrganizationProviders::V3::Types::OrganizationProviderV2]
|
108
108
|
# @example
|
109
109
|
# api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
|
110
|
-
# api.organization_providers.v_3.create(request: { npi: "string", is_rendering: true, is_billing: true, first_name: "string", last_name: "string", organization_name: "string", provider_type: INDIVIDUAL, tax_id: "string", taxonomy_code: "string", license_type: MD, addresses: [{ address: { address_1: "123 Main St", address_2: "Apt 1", city: "New York", state: NY, zip_code: "10001", zip_plus_four_code: "1234" }, address_type: DEFAULT }], employment_start_date: DateTime.parse(2023-01-15), employment_termination_date: DateTime.parse(2023-01-15), qualifications: [{ period: { start_date: "string"
|
110
|
+
# api.organization_providers.v_3.create(request: { npi: "string", is_rendering: true, is_billing: true, first_name: "string", last_name: "string", organization_name: "string", provider_type: INDIVIDUAL, tax_id: "string", taxonomy_code: "string", license_type: MD, addresses: [{ address: { address_1: "123 Main St", address_2: "Apt 1", city: "New York", state: NY, zip_code: "10001", zip_plus_four_code: "1234" }, address_type: DEFAULT }], employment_start_date: DateTime.parse(2023-01-15), employment_termination_date: DateTime.parse(2023-01-15), qualifications: [{ period: { start_date: "string" }, identifier_code: MCR }] })
|
111
111
|
def create(request:, request_options: nil)
|
112
112
|
response = @request_client.conn.post do |req|
|
113
113
|
req.options.timeout = request_options.timeout_in_seconds unless request_options&.timeout_in_seconds.nil?
|
@@ -262,7 +262,7 @@ module CandidApiClient
|
|
262
262
|
# @return [CandidApiClient::OrganizationProviders::V3::Types::OrganizationProviderV2]
|
263
263
|
# @example
|
264
264
|
# api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
|
265
|
-
# api.organization_providers.v_3.create(request: { npi: "string", is_rendering: true, is_billing: true, first_name: "string", last_name: "string", organization_name: "string", provider_type: INDIVIDUAL, tax_id: "string", taxonomy_code: "string", license_type: MD, addresses: [{ address: { address_1: "123 Main St", address_2: "Apt 1", city: "New York", state: NY, zip_code: "10001", zip_plus_four_code: "1234" }, address_type: DEFAULT }], employment_start_date: DateTime.parse(2023-01-15), employment_termination_date: DateTime.parse(2023-01-15), qualifications: [{ period: { start_date: "string"
|
265
|
+
# api.organization_providers.v_3.create(request: { npi: "string", is_rendering: true, is_billing: true, first_name: "string", last_name: "string", organization_name: "string", provider_type: INDIVIDUAL, tax_id: "string", taxonomy_code: "string", license_type: MD, addresses: [{ address: { address_1: "123 Main St", address_2: "Apt 1", city: "New York", state: NY, zip_code: "10001", zip_plus_four_code: "1234" }, address_type: DEFAULT }], employment_start_date: DateTime.parse(2023-01-15), employment_termination_date: DateTime.parse(2023-01-15), qualifications: [{ period: { start_date: "string" }, identifier_code: MCR }] })
|
266
266
|
def create(request:, request_options: nil)
|
267
267
|
Async do
|
268
268
|
response = @request_client.conn.post do |req|
|
@@ -59,7 +59,7 @@ module CandidApiClient
|
|
59
59
|
# @return [CandidApiClient::PreEncounter::Appointments::V1::Types::Appointment]
|
60
60
|
# @example
|
61
61
|
# api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
|
62
|
-
# 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: {
|
62
|
+
# 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: { } }, type: PRIMARY, npi: "string", telecoms: [{ value: "string", use: HOME }], addresses: , period: { }, canonical_id: "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 })
|
63
63
|
def create(request:, request_options: nil)
|
64
64
|
response = @request_client.conn.post do |req|
|
65
65
|
req.options.timeout = request_options.timeout_in_seconds unless request_options&.timeout_in_seconds.nil?
|
@@ -170,7 +170,7 @@ module CandidApiClient
|
|
170
170
|
# api.pre_encounter.appointments.v_1.update(
|
171
171
|
# id: "string",
|
172
172
|
# version: "string",
|
173
|
-
# 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: {
|
173
|
+
# 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: { } }, type: PRIMARY, npi: "string", telecoms: [{ value: "string", use: HOME }], addresses: , period: { }, canonical_id: "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 }
|
174
174
|
# )
|
175
175
|
def update(id:, version:, request:, request_options: nil)
|
176
176
|
response = @request_client.conn.put do |req|
|
@@ -292,7 +292,7 @@ module CandidApiClient
|
|
292
292
|
# @return [CandidApiClient::PreEncounter::Appointments::V1::Types::Appointment]
|
293
293
|
# @example
|
294
294
|
# api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
|
295
|
-
# 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: {
|
295
|
+
# 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: { } }, type: PRIMARY, npi: "string", telecoms: [{ value: "string", use: HOME }], addresses: , period: { }, canonical_id: "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 })
|
296
296
|
def create(request:, request_options: nil)
|
297
297
|
Async do
|
298
298
|
response = @request_client.conn.post do |req|
|
@@ -409,7 +409,7 @@ module CandidApiClient
|
|
409
409
|
# api.pre_encounter.appointments.v_1.update(
|
410
410
|
# id: "string",
|
411
411
|
# version: "string",
|
412
|
-
# 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: {
|
412
|
+
# 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: { } }, type: PRIMARY, npi: "string", telecoms: [{ value: "string", use: HOME }], addresses: , period: { }, canonical_id: "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 }
|
413
413
|
# )
|
414
414
|
def update(id:, version:, request:, request_options: nil)
|
415
415
|
Async do
|
@@ -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,11 +110,12 @@ 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
|
116
117
|
# api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
|
117
|
-
# api.pre_encounter.coverages.v_1.create(request: { status: ACTIVE, subscriber: { name: { family: "string", given: ["string"], use: USUAL, period: {
|
118
|
+
# api.pre_encounter.coverages.v_1.create(request: { status: ACTIVE, subscriber: { name: { family: "string", given: ["string"], use: USUAL, period: { } }, date_of_birth: DateTime.parse(2023-01-15), biological_sex: FEMALE, address: { use: HOME, line: ["string"], city: "string", state: "string", postal_code: "string", country: "string", period: { } } }, relationship: SELF, patient: "string", insurance_plan: { member_id: "string", payer_id: "string", payer_name: "string", additional_payer_information: { availity_eligibility_id: "string", availity_payer_id: "string", availity_payer_name: "string", availity_remittance_payer_id: "string" }, group_number: "string", name: "string", plan_type: SELF_PAY, type: C_01, period: { }, insurance_card_image_locator: "string" }, verified: true, eligibility_checks: [{ check_id: "string", service_code: MEDICAL_CARE, status: CREATED, initiated_by: "string", initiated_at: DateTime.parse(2024-01-15T09:30:00.000Z) }], latest_eligibility_check: { check_id: "string", status: ACTIVE, initiated_at: DateTime.parse(2024-01-15T09:30:00.000Z) }, benefits: { } })
|
118
119
|
def create(request:, request_options: nil)
|
119
120
|
response = @request_client.conn.post do |req|
|
120
121
|
req.options.timeout = request_options.timeout_in_seconds unless request_options&.timeout_in_seconds.nil?
|
@@ -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
|
@@ -223,7 +225,7 @@ module CandidApiClient
|
|
223
225
|
# api.pre_encounter.coverages.v_1.update(
|
224
226
|
# id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32",
|
225
227
|
# version: "string",
|
226
|
-
# request: { status: ACTIVE, subscriber: { name: { family: "string", given: ["string"], use: USUAL, period: {
|
228
|
+
# request: { status: ACTIVE, subscriber: { name: { family: "string", given: ["string"], use: USUAL, period: { } }, date_of_birth: DateTime.parse(2023-01-15), biological_sex: FEMALE, address: { use: HOME, line: ["string"], city: "string", state: "string", postal_code: "string", country: "string", period: { } } }, relationship: SELF, patient: "string", insurance_plan: { member_id: "string", payer_id: "string", payer_name: "string", additional_payer_information: { availity_eligibility_id: "string", availity_payer_id: "string", availity_payer_name: "string", availity_remittance_payer_id: "string" }, group_number: "string", name: "string", plan_type: SELF_PAY, type: C_01, period: { }, insurance_card_image_locator: "string" }, verified: true, eligibility_checks: [{ check_id: "string", service_code: MEDICAL_CARE, status: CREATED, initiated_by: "string", initiated_at: DateTime.parse(2024-01-15T09:30:00.000Z) }], latest_eligibility_check: { check_id: "string", status: ACTIVE, initiated_at: DateTime.parse(2024-01-15T09:30:00.000Z) }, benefits: { } }
|
227
229
|
# )
|
228
230
|
def update(id:, version:, request:, request_options: nil)
|
229
231
|
response = @request_client.conn.put do |req|
|
@@ -508,11 +510,12 @@ 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
|
514
517
|
# api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
|
515
|
-
# api.pre_encounter.coverages.v_1.create(request: { status: ACTIVE, subscriber: { name: { family: "string", given: ["string"], use: USUAL, period: {
|
518
|
+
# api.pre_encounter.coverages.v_1.create(request: { status: ACTIVE, subscriber: { name: { family: "string", given: ["string"], use: USUAL, period: { } }, date_of_birth: DateTime.parse(2023-01-15), biological_sex: FEMALE, address: { use: HOME, line: ["string"], city: "string", state: "string", postal_code: "string", country: "string", period: { } } }, relationship: SELF, patient: "string", insurance_plan: { member_id: "string", payer_id: "string", payer_name: "string", additional_payer_information: { availity_eligibility_id: "string", availity_payer_id: "string", availity_payer_name: "string", availity_remittance_payer_id: "string" }, group_number: "string", name: "string", plan_type: SELF_PAY, type: C_01, period: { }, insurance_card_image_locator: "string" }, verified: true, eligibility_checks: [{ check_id: "string", service_code: MEDICAL_CARE, status: CREATED, initiated_by: "string", initiated_at: DateTime.parse(2024-01-15T09:30:00.000Z) }], latest_eligibility_check: { check_id: "string", status: ACTIVE, initiated_at: DateTime.parse(2024-01-15T09:30:00.000Z) }, benefits: { } })
|
516
519
|
def create(request:, request_options: nil)
|
517
520
|
Async do
|
518
521
|
response = @request_client.conn.post do |req|
|
@@ -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
|
@@ -623,7 +627,7 @@ module CandidApiClient
|
|
623
627
|
# api.pre_encounter.coverages.v_1.update(
|
624
628
|
# id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32",
|
625
629
|
# version: "string",
|
626
|
-
# request: { status: ACTIVE, subscriber: { name: { family: "string", given: ["string"], use: USUAL, period: {
|
630
|
+
# request: { status: ACTIVE, subscriber: { name: { family: "string", given: ["string"], use: USUAL, period: { } }, date_of_birth: DateTime.parse(2023-01-15), biological_sex: FEMALE, address: { use: HOME, line: ["string"], city: "string", state: "string", postal_code: "string", country: "string", period: { } } }, relationship: SELF, patient: "string", insurance_plan: { member_id: "string", payer_id: "string", payer_name: "string", additional_payer_information: { availity_eligibility_id: "string", availity_payer_id: "string", availity_payer_name: "string", availity_remittance_payer_id: "string" }, group_number: "string", name: "string", plan_type: SELF_PAY, type: C_01, period: { }, insurance_card_image_locator: "string" }, verified: true, eligibility_checks: [{ check_id: "string", service_code: MEDICAL_CARE, status: CREATED, initiated_by: "string", initiated_at: DateTime.parse(2024-01-15T09:30:00.000Z) }], latest_eligibility_check: { check_id: "string", status: ACTIVE, initiated_at: DateTime.parse(2024-01-15T09:30:00.000Z) }, benefits: { } }
|
627
631
|
# )
|
628
632
|
def update(id:, version:, request:, request_options: nil)
|
629
633
|
Async do
|
@@ -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
|