candidhealth 0.34.6 → 0.35.0
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 +34 -18
- data/lib/candidhealth/encounters/v_4/types/encounter.rb +9 -1
- data/lib/candidhealth/individual/types/patient.rb +13 -1
- data/lib/candidhealth/individual/types/patient_create.rb +13 -1
- data/lib/candidhealth/individual/types/patient_non_insurance_payer_info.rb +77 -0
- data/lib/candidhealth/individual/types/patient_non_insurance_payer_info_create.rb +70 -0
- data/lib/candidhealth/individual/types/patient_update.rb +16 -2
- data/lib/candidhealth/insurance_adjudications/v_1/client.rb +2 -2
- data/lib/candidhealth/non_insurance_payers/v_1/client.rb +18 -2
- data/lib/candidhealth/non_insurance_payers/v_1/types/create_non_insurance_payer_request.rb +21 -2
- data/lib/candidhealth/non_insurance_payers/v_1/types/non_insurance_payer.rb +17 -2
- data/lib/candidhealth/non_insurance_payers/v_1/types/non_insurance_payer_address_update.rb +98 -0
- data/lib/candidhealth/non_insurance_payers/v_1/types/non_insurance_payer_update_request.rb +20 -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/common/types/canonical_non_insurance_payer_association.rb +73 -0
- data/lib/candidhealth/pre_encounter/coverages/v_1/client.rb +44 -4
- data/lib/candidhealth/pre_encounter/coverages/v_1/types/subscriber.rb +22 -2
- data/lib/candidhealth/pre_encounter/patients/v_1/client.rb +12 -4
- data/lib/candidhealth/pre_encounter/patients/v_1/types/guarantor.rb +3 -3
- data/lib/candidhealth/pre_encounter/patients/v_1/types/mutable_patient.rb +24 -2
- data/lib/candidhealth/pre_encounter/patients/v_1/types/patient.rb +24 -2
- data/lib/candidhealth/service_lines/v_2/client.rb +48 -2
- data/lib/candidhealth/service_lines/v_2/types/service_line_create_standalone.rb +48 -2
- data/lib/candidhealth/x_12/v_1/types/rarc.rb +1 -0
- data/lib/candidhealth.rb +7 -0
- data/lib/requests.rb +2 -2
- data/lib/types_export.rb +7 -1
- metadata +11 -3
- data/lib/candidhealth/encounters/v_4/types/insurance_pay_missing_primary_coverage_error_type.rb +0 -62
@@ -2,6 +2,7 @@
|
|
2
2
|
|
3
3
|
require_relative "../../commons/types/phone_number"
|
4
4
|
require_relative "../../non_insurance_payers/v_1/types/non_insurance_payer"
|
5
|
+
require_relative "patient_non_insurance_payer_info"
|
5
6
|
require "date"
|
6
7
|
require_relative "../../commons/types/street_address_short_zip"
|
7
8
|
require_relative "gender"
|
@@ -24,6 +25,8 @@ module CandidApiClient
|
|
24
25
|
attr_reader :email_consent
|
25
26
|
# @return [Array<CandidApiClient::NonInsurancePayers::V1::Types::NonInsurancePayer>]
|
26
27
|
attr_reader :non_insurance_payers
|
28
|
+
# @return [Array<CandidApiClient::Individual::Types::PatientNonInsurancePayerInfo>]
|
29
|
+
attr_reader :non_insurance_payers_info
|
27
30
|
# @return [String] The ID used to identify this individual in your system. For example, your
|
28
31
|
# internal patient ID or an EHR patient ID.
|
29
32
|
attr_reader :external_id
|
@@ -52,6 +55,7 @@ module CandidApiClient
|
|
52
55
|
# @param email [String]
|
53
56
|
# @param email_consent [Boolean]
|
54
57
|
# @param non_insurance_payers [Array<CandidApiClient::NonInsurancePayers::V1::Types::NonInsurancePayer>]
|
58
|
+
# @param non_insurance_payers_info [Array<CandidApiClient::Individual::Types::PatientNonInsurancePayerInfo>]
|
55
59
|
# @param external_id [String] The ID used to identify this individual in your system. For example, your
|
56
60
|
# internal patient ID or an EHR patient ID.
|
57
61
|
# @param date_of_birth [Date] Box 3 on the CMS-1500 claim form. The date format should be in ISO 8601 date;
|
@@ -63,13 +67,14 @@ module CandidApiClient
|
|
63
67
|
# @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
|
64
68
|
# @return [CandidApiClient::Individual::Types::Patient]
|
65
69
|
def initialize(individual_id:, phone_numbers:, phone_consent:, email_consent:, non_insurance_payers:,
|
66
|
-
external_id:, date_of_birth:, address:, first_name:, last_name:, gender:, email: OMIT, additional_properties: nil)
|
70
|
+
non_insurance_payers_info:, external_id:, date_of_birth:, address:, first_name:, last_name:, gender:, email: OMIT, additional_properties: nil)
|
67
71
|
@individual_id = individual_id
|
68
72
|
@phone_numbers = phone_numbers
|
69
73
|
@phone_consent = phone_consent
|
70
74
|
@email = email if email != OMIT
|
71
75
|
@email_consent = email_consent
|
72
76
|
@non_insurance_payers = non_insurance_payers
|
77
|
+
@non_insurance_payers_info = non_insurance_payers_info
|
73
78
|
@external_id = external_id
|
74
79
|
@date_of_birth = date_of_birth
|
75
80
|
@address = address
|
@@ -84,6 +89,7 @@ module CandidApiClient
|
|
84
89
|
"email": email,
|
85
90
|
"email_consent": email_consent,
|
86
91
|
"non_insurance_payers": non_insurance_payers,
|
92
|
+
"non_insurance_payers_info": non_insurance_payers_info,
|
87
93
|
"external_id": external_id,
|
88
94
|
"date_of_birth": date_of_birth,
|
89
95
|
"address": address,
|
@@ -114,6 +120,10 @@ module CandidApiClient
|
|
114
120
|
item = item.to_json
|
115
121
|
CandidApiClient::NonInsurancePayers::V1::Types::NonInsurancePayer.from_json(json_object: item)
|
116
122
|
end
|
123
|
+
non_insurance_payers_info = parsed_json["non_insurance_payers_info"]&.map do |item|
|
124
|
+
item = item.to_json
|
125
|
+
CandidApiClient::Individual::Types::PatientNonInsurancePayerInfo.from_json(json_object: item)
|
126
|
+
end
|
117
127
|
external_id = struct["external_id"]
|
118
128
|
date_of_birth = (Date.parse(parsed_json["date_of_birth"]) unless parsed_json["date_of_birth"].nil?)
|
119
129
|
if parsed_json["address"].nil?
|
@@ -132,6 +142,7 @@ module CandidApiClient
|
|
132
142
|
email: email,
|
133
143
|
email_consent: email_consent,
|
134
144
|
non_insurance_payers: non_insurance_payers,
|
145
|
+
non_insurance_payers_info: non_insurance_payers_info,
|
135
146
|
external_id: external_id,
|
136
147
|
date_of_birth: date_of_birth,
|
137
148
|
address: address,
|
@@ -162,6 +173,7 @@ module CandidApiClient
|
|
162
173
|
obj.email&.is_a?(String) != false || raise("Passed value for field obj.email is not the expected type, validation failed.")
|
163
174
|
obj.email_consent.is_a?(Boolean) != false || raise("Passed value for field obj.email_consent is not the expected type, validation failed.")
|
164
175
|
obj.non_insurance_payers.is_a?(Array) != false || raise("Passed value for field obj.non_insurance_payers is not the expected type, validation failed.")
|
176
|
+
obj.non_insurance_payers_info.is_a?(Array) != false || raise("Passed value for field obj.non_insurance_payers_info is not the expected type, validation failed.")
|
165
177
|
obj.external_id.is_a?(String) != false || raise("Passed value for field obj.external_id is not the expected type, validation failed.")
|
166
178
|
obj.date_of_birth.is_a?(Date) != false || raise("Passed value for field obj.date_of_birth is not the expected type, validation failed.")
|
167
179
|
CandidApiClient::Commons::Types::StreetAddressShortZip.validate_raw(obj: obj.address)
|
@@ -1,6 +1,7 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
3
|
require_relative "../../commons/types/phone_number"
|
4
|
+
require_relative "patient_non_insurance_payer_info_create"
|
4
5
|
require "date"
|
5
6
|
require_relative "../../commons/types/street_address_short_zip"
|
6
7
|
require_relative "gender"
|
@@ -19,6 +20,8 @@ module CandidApiClient
|
|
19
20
|
attr_reader :email
|
20
21
|
# @return [Array<String>]
|
21
22
|
attr_reader :non_insurance_payers
|
23
|
+
# @return [Array<CandidApiClient::Individual::Types::PatientNonInsurancePayerInfoCreate>]
|
24
|
+
attr_reader :non_insurance_payers_info
|
22
25
|
# @return [Boolean] Defaults to false
|
23
26
|
attr_reader :email_consent
|
24
27
|
# @return [String] The ID used to identify this individual in your system. For example, your
|
@@ -47,6 +50,7 @@ module CandidApiClient
|
|
47
50
|
# @param phone_consent [Boolean] Defaults to false
|
48
51
|
# @param email [String]
|
49
52
|
# @param non_insurance_payers [Array<String>]
|
53
|
+
# @param non_insurance_payers_info [Array<CandidApiClient::Individual::Types::PatientNonInsurancePayerInfoCreate>]
|
50
54
|
# @param email_consent [Boolean] Defaults to false
|
51
55
|
# @param external_id [String] The ID used to identify this individual in your system. For example, your
|
52
56
|
# internal patient ID or an EHR patient ID.
|
@@ -59,11 +63,12 @@ module CandidApiClient
|
|
59
63
|
# @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
|
60
64
|
# @return [CandidApiClient::Individual::Types::PatientCreate]
|
61
65
|
def initialize(external_id:, date_of_birth:, address:, first_name:, last_name:, gender:, phone_numbers: OMIT, phone_consent: OMIT, email: OMIT, non_insurance_payers: OMIT,
|
62
|
-
email_consent: OMIT, additional_properties: nil)
|
66
|
+
non_insurance_payers_info: OMIT, email_consent: OMIT, additional_properties: nil)
|
63
67
|
@phone_numbers = phone_numbers if phone_numbers != OMIT
|
64
68
|
@phone_consent = phone_consent if phone_consent != OMIT
|
65
69
|
@email = email if email != OMIT
|
66
70
|
@non_insurance_payers = non_insurance_payers if non_insurance_payers != OMIT
|
71
|
+
@non_insurance_payers_info = non_insurance_payers_info if non_insurance_payers_info != OMIT
|
67
72
|
@email_consent = email_consent if email_consent != OMIT
|
68
73
|
@external_id = external_id
|
69
74
|
@date_of_birth = date_of_birth
|
@@ -77,6 +82,7 @@ module CandidApiClient
|
|
77
82
|
"phone_consent": phone_consent,
|
78
83
|
"email": email,
|
79
84
|
"non_insurance_payers": non_insurance_payers,
|
85
|
+
"non_insurance_payers_info": non_insurance_payers_info,
|
80
86
|
"email_consent": email_consent,
|
81
87
|
"external_id": external_id,
|
82
88
|
"date_of_birth": date_of_birth,
|
@@ -103,6 +109,10 @@ module CandidApiClient
|
|
103
109
|
phone_consent = struct["phone_consent"]
|
104
110
|
email = struct["email"]
|
105
111
|
non_insurance_payers = struct["non_insurance_payers"]
|
112
|
+
non_insurance_payers_info = parsed_json["non_insurance_payers_info"]&.map do |item|
|
113
|
+
item = item.to_json
|
114
|
+
CandidApiClient::Individual::Types::PatientNonInsurancePayerInfoCreate.from_json(json_object: item)
|
115
|
+
end
|
106
116
|
email_consent = struct["email_consent"]
|
107
117
|
external_id = struct["external_id"]
|
108
118
|
date_of_birth = (Date.parse(parsed_json["date_of_birth"]) unless parsed_json["date_of_birth"].nil?)
|
@@ -120,6 +130,7 @@ module CandidApiClient
|
|
120
130
|
phone_consent: phone_consent,
|
121
131
|
email: email,
|
122
132
|
non_insurance_payers: non_insurance_payers,
|
133
|
+
non_insurance_payers_info: non_insurance_payers_info,
|
123
134
|
email_consent: email_consent,
|
124
135
|
external_id: external_id,
|
125
136
|
date_of_birth: date_of_birth,
|
@@ -149,6 +160,7 @@ module CandidApiClient
|
|
149
160
|
obj.phone_consent&.is_a?(Boolean) != false || raise("Passed value for field obj.phone_consent is not the expected type, validation failed.")
|
150
161
|
obj.email&.is_a?(String) != false || raise("Passed value for field obj.email is not the expected type, validation failed.")
|
151
162
|
obj.non_insurance_payers&.is_a?(Array) != false || raise("Passed value for field obj.non_insurance_payers is not the expected type, validation failed.")
|
163
|
+
obj.non_insurance_payers_info&.is_a?(Array) != false || raise("Passed value for field obj.non_insurance_payers_info is not the expected type, validation failed.")
|
152
164
|
obj.email_consent&.is_a?(Boolean) != false || raise("Passed value for field obj.email_consent is not the expected type, validation failed.")
|
153
165
|
obj.external_id.is_a?(String) != false || raise("Passed value for field obj.external_id is not the expected type, validation failed.")
|
154
166
|
obj.date_of_birth.is_a?(Date) != false || raise("Passed value for field obj.date_of_birth is not the expected type, validation failed.")
|
@@ -0,0 +1,77 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require_relative "../../non_insurance_payers/v_1/types/non_insurance_payer"
|
4
|
+
require "ostruct"
|
5
|
+
require "json"
|
6
|
+
|
7
|
+
module CandidApiClient
|
8
|
+
module Individual
|
9
|
+
module Types
|
10
|
+
class PatientNonInsurancePayerInfo
|
11
|
+
# @return [CandidApiClient::NonInsurancePayers::V1::Types::NonInsurancePayer]
|
12
|
+
attr_reader :non_insurance_payer
|
13
|
+
# @return [String]
|
14
|
+
attr_reader :member_id
|
15
|
+
# @return [OpenStruct] Additional properties unmapped to the current class definition
|
16
|
+
attr_reader :additional_properties
|
17
|
+
# @return [Object]
|
18
|
+
attr_reader :_field_set
|
19
|
+
protected :_field_set
|
20
|
+
|
21
|
+
OMIT = Object.new
|
22
|
+
|
23
|
+
# @param non_insurance_payer [CandidApiClient::NonInsurancePayers::V1::Types::NonInsurancePayer]
|
24
|
+
# @param member_id [String]
|
25
|
+
# @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
|
26
|
+
# @return [CandidApiClient::Individual::Types::PatientNonInsurancePayerInfo]
|
27
|
+
def initialize(non_insurance_payer:, member_id: OMIT, additional_properties: nil)
|
28
|
+
@non_insurance_payer = non_insurance_payer
|
29
|
+
@member_id = member_id if member_id != OMIT
|
30
|
+
@additional_properties = additional_properties
|
31
|
+
@_field_set = { "non_insurance_payer": non_insurance_payer, "member_id": member_id }.reject do |_k, v|
|
32
|
+
v == OMIT
|
33
|
+
end
|
34
|
+
end
|
35
|
+
|
36
|
+
# Deserialize a JSON object to an instance of PatientNonInsurancePayerInfo
|
37
|
+
#
|
38
|
+
# @param json_object [String]
|
39
|
+
# @return [CandidApiClient::Individual::Types::PatientNonInsurancePayerInfo]
|
40
|
+
def self.from_json(json_object:)
|
41
|
+
struct = JSON.parse(json_object, object_class: OpenStruct)
|
42
|
+
parsed_json = JSON.parse(json_object)
|
43
|
+
if parsed_json["non_insurance_payer"].nil?
|
44
|
+
non_insurance_payer = nil
|
45
|
+
else
|
46
|
+
non_insurance_payer = parsed_json["non_insurance_payer"].to_json
|
47
|
+
non_insurance_payer = CandidApiClient::NonInsurancePayers::V1::Types::NonInsurancePayer.from_json(json_object: non_insurance_payer)
|
48
|
+
end
|
49
|
+
member_id = struct["member_id"]
|
50
|
+
new(
|
51
|
+
non_insurance_payer: non_insurance_payer,
|
52
|
+
member_id: member_id,
|
53
|
+
additional_properties: struct
|
54
|
+
)
|
55
|
+
end
|
56
|
+
|
57
|
+
# Serialize an instance of PatientNonInsurancePayerInfo to a JSON object
|
58
|
+
#
|
59
|
+
# @return [String]
|
60
|
+
def to_json(*_args)
|
61
|
+
@_field_set&.to_json
|
62
|
+
end
|
63
|
+
|
64
|
+
# Leveraged for Union-type generation, validate_raw attempts to parse the given
|
65
|
+
# hash and check each fields type against the current object's property
|
66
|
+
# definitions.
|
67
|
+
#
|
68
|
+
# @param obj [Object]
|
69
|
+
# @return [Void]
|
70
|
+
def self.validate_raw(obj:)
|
71
|
+
CandidApiClient::NonInsurancePayers::V1::Types::NonInsurancePayer.validate_raw(obj: obj.non_insurance_payer)
|
72
|
+
obj.member_id&.is_a?(String) != false || raise("Passed value for field obj.member_id is not the expected type, validation failed.")
|
73
|
+
end
|
74
|
+
end
|
75
|
+
end
|
76
|
+
end
|
77
|
+
end
|
@@ -0,0 +1,70 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require "ostruct"
|
4
|
+
require "json"
|
5
|
+
|
6
|
+
module CandidApiClient
|
7
|
+
module Individual
|
8
|
+
module Types
|
9
|
+
class PatientNonInsurancePayerInfoCreate
|
10
|
+
# @return [String]
|
11
|
+
attr_reader :non_insurance_payer_id
|
12
|
+
# @return [String]
|
13
|
+
attr_reader :member_id
|
14
|
+
# @return [OpenStruct] Additional properties unmapped to the current class definition
|
15
|
+
attr_reader :additional_properties
|
16
|
+
# @return [Object]
|
17
|
+
attr_reader :_field_set
|
18
|
+
protected :_field_set
|
19
|
+
|
20
|
+
OMIT = Object.new
|
21
|
+
|
22
|
+
# @param non_insurance_payer_id [String]
|
23
|
+
# @param member_id [String]
|
24
|
+
# @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
|
25
|
+
# @return [CandidApiClient::Individual::Types::PatientNonInsurancePayerInfoCreate]
|
26
|
+
def initialize(non_insurance_payer_id:, member_id: OMIT, additional_properties: nil)
|
27
|
+
@non_insurance_payer_id = non_insurance_payer_id
|
28
|
+
@member_id = member_id if member_id != OMIT
|
29
|
+
@additional_properties = additional_properties
|
30
|
+
@_field_set = { "non_insurance_payer_id": non_insurance_payer_id, "member_id": member_id }.reject do |_k, v|
|
31
|
+
v == OMIT
|
32
|
+
end
|
33
|
+
end
|
34
|
+
|
35
|
+
# Deserialize a JSON object to an instance of PatientNonInsurancePayerInfoCreate
|
36
|
+
#
|
37
|
+
# @param json_object [String]
|
38
|
+
# @return [CandidApiClient::Individual::Types::PatientNonInsurancePayerInfoCreate]
|
39
|
+
def self.from_json(json_object:)
|
40
|
+
struct = JSON.parse(json_object, object_class: OpenStruct)
|
41
|
+
non_insurance_payer_id = struct["non_insurance_payer_id"]
|
42
|
+
member_id = struct["member_id"]
|
43
|
+
new(
|
44
|
+
non_insurance_payer_id: non_insurance_payer_id,
|
45
|
+
member_id: member_id,
|
46
|
+
additional_properties: struct
|
47
|
+
)
|
48
|
+
end
|
49
|
+
|
50
|
+
# Serialize an instance of PatientNonInsurancePayerInfoCreate to a JSON object
|
51
|
+
#
|
52
|
+
# @return [String]
|
53
|
+
def to_json(*_args)
|
54
|
+
@_field_set&.to_json
|
55
|
+
end
|
56
|
+
|
57
|
+
# Leveraged for Union-type generation, validate_raw attempts to parse the given
|
58
|
+
# hash and check each fields type against the current object's property
|
59
|
+
# definitions.
|
60
|
+
#
|
61
|
+
# @param obj [Object]
|
62
|
+
# @return [Void]
|
63
|
+
def self.validate_raw(obj:)
|
64
|
+
obj.non_insurance_payer_id.is_a?(String) != false || raise("Passed value for field obj.non_insurance_payer_id is not the expected type, validation failed.")
|
65
|
+
obj.member_id&.is_a?(String) != false || raise("Passed value for field obj.member_id is not the expected type, validation failed.")
|
66
|
+
end
|
67
|
+
end
|
68
|
+
end
|
69
|
+
end
|
70
|
+
end
|
@@ -4,6 +4,7 @@ require_relative "gender"
|
|
4
4
|
require "date"
|
5
5
|
require_relative "../../commons/types/street_address_short_zip"
|
6
6
|
require_relative "../../commons/types/phone_number"
|
7
|
+
require_relative "patient_non_insurance_payer_info_create"
|
7
8
|
require "ostruct"
|
8
9
|
require "json"
|
9
10
|
|
@@ -36,6 +37,9 @@ module CandidApiClient
|
|
36
37
|
# @return [Array<String>] On update, we will replace the existing list of non-insurance payers with the
|
37
38
|
# new list if populated.
|
38
39
|
attr_reader :non_insurance_payers
|
40
|
+
# @return [Array<CandidApiClient::Individual::Types::PatientNonInsurancePayerInfoCreate>] On update, we will replace the existing list of non-insurance payers with the
|
41
|
+
# new list if populated.
|
42
|
+
attr_reader :non_insurance_payers_info
|
39
43
|
# @return [OpenStruct] Additional properties unmapped to the current class definition
|
40
44
|
attr_reader :additional_properties
|
41
45
|
# @return [Object]
|
@@ -58,10 +62,12 @@ module CandidApiClient
|
|
58
62
|
# @param email_consent [Boolean]
|
59
63
|
# @param non_insurance_payers [Array<String>] On update, we will replace the existing list of non-insurance payers with the
|
60
64
|
# new list if populated.
|
65
|
+
# @param non_insurance_payers_info [Array<CandidApiClient::Individual::Types::PatientNonInsurancePayerInfoCreate>] On update, we will replace the existing list of non-insurance payers with the
|
66
|
+
# new list if populated.
|
61
67
|
# @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
|
62
68
|
# @return [CandidApiClient::Individual::Types::PatientUpdate]
|
63
69
|
def initialize(first_name: OMIT, last_name: OMIT, gender: OMIT, external_id: OMIT, date_of_birth: OMIT,
|
64
|
-
address: OMIT, phone_numbers: OMIT, phone_consent: OMIT, email: OMIT, email_consent: OMIT, non_insurance_payers: OMIT, additional_properties: nil)
|
70
|
+
address: OMIT, phone_numbers: OMIT, phone_consent: OMIT, email: OMIT, email_consent: OMIT, non_insurance_payers: OMIT, non_insurance_payers_info: OMIT, additional_properties: nil)
|
65
71
|
@first_name = first_name if first_name != OMIT
|
66
72
|
@last_name = last_name if last_name != OMIT
|
67
73
|
@gender = gender if gender != OMIT
|
@@ -73,6 +79,7 @@ module CandidApiClient
|
|
73
79
|
@email = email if email != OMIT
|
74
80
|
@email_consent = email_consent if email_consent != OMIT
|
75
81
|
@non_insurance_payers = non_insurance_payers if non_insurance_payers != OMIT
|
82
|
+
@non_insurance_payers_info = non_insurance_payers_info if non_insurance_payers_info != OMIT
|
76
83
|
@additional_properties = additional_properties
|
77
84
|
@_field_set = {
|
78
85
|
"first_name": first_name,
|
@@ -85,7 +92,8 @@ module CandidApiClient
|
|
85
92
|
"phone_consent": phone_consent,
|
86
93
|
"email": email,
|
87
94
|
"email_consent": email_consent,
|
88
|
-
"non_insurance_payers": non_insurance_payers
|
95
|
+
"non_insurance_payers": non_insurance_payers,
|
96
|
+
"non_insurance_payers_info": non_insurance_payers_info
|
89
97
|
}.reject do |_k, v|
|
90
98
|
v == OMIT
|
91
99
|
end
|
@@ -117,6 +125,10 @@ module CandidApiClient
|
|
117
125
|
email = struct["email"]
|
118
126
|
email_consent = struct["email_consent"]
|
119
127
|
non_insurance_payers = struct["non_insurance_payers"]
|
128
|
+
non_insurance_payers_info = parsed_json["non_insurance_payers_info"]&.map do |item|
|
129
|
+
item = item.to_json
|
130
|
+
CandidApiClient::Individual::Types::PatientNonInsurancePayerInfoCreate.from_json(json_object: item)
|
131
|
+
end
|
120
132
|
new(
|
121
133
|
first_name: first_name,
|
122
134
|
last_name: last_name,
|
@@ -129,6 +141,7 @@ module CandidApiClient
|
|
129
141
|
email: email,
|
130
142
|
email_consent: email_consent,
|
131
143
|
non_insurance_payers: non_insurance_payers,
|
144
|
+
non_insurance_payers_info: non_insurance_payers_info,
|
132
145
|
additional_properties: struct
|
133
146
|
)
|
134
147
|
end
|
@@ -158,6 +171,7 @@ module CandidApiClient
|
|
158
171
|
obj.email&.is_a?(String) != false || raise("Passed value for field obj.email is not the expected type, validation failed.")
|
159
172
|
obj.email_consent&.is_a?(Boolean) != false || raise("Passed value for field obj.email_consent is not the expected type, validation failed.")
|
160
173
|
obj.non_insurance_payers&.is_a?(Array) != false || raise("Passed value for field obj.non_insurance_payers is not the expected type, validation failed.")
|
174
|
+
obj.non_insurance_payers_info&.is_a?(Array) != false || raise("Passed value for field obj.non_insurance_payers_info is not the expected type, validation failed.")
|
161
175
|
end
|
162
176
|
end
|
163
177
|
end
|
@@ -59,7 +59,7 @@ module CandidApiClient
|
|
59
59
|
# @return [CandidApiClient::InsuranceAdjudications::V1::Types::InsuranceAdjudication]
|
60
60
|
# @example
|
61
61
|
# 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,
|
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
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?
|
@@ -153,7 +153,7 @@ module CandidApiClient
|
|
153
153
|
# @return [CandidApiClient::InsuranceAdjudications::V1::Types::InsuranceAdjudication]
|
154
154
|
# @example
|
155
155
|
# 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,
|
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: }] } })
|
157
157
|
def create(request:, request_options: nil)
|
158
158
|
Async do
|
159
159
|
response = @request_client.conn.post do |req|
|
@@ -27,11 +27,18 @@ module CandidApiClient
|
|
27
27
|
# * :name (String)
|
28
28
|
# * :description (String)
|
29
29
|
# * :category (String)
|
30
|
+
# * :address (Hash)
|
31
|
+
# * :zip_plus_four_code (String)
|
32
|
+
# * :address_1 (String)
|
33
|
+
# * :address_2 (String)
|
34
|
+
# * :city (String)
|
35
|
+
# * :state (CandidApiClient::Commons::Types::State)
|
36
|
+
# * :zip_code (String)
|
30
37
|
# @param request_options [CandidApiClient::RequestOptions]
|
31
38
|
# @return [CandidApiClient::NonInsurancePayers::V1::Types::NonInsurancePayer]
|
32
39
|
# @example
|
33
40
|
# api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
|
34
|
-
# api.non_insurance_payers.v_1.create(request: { name: "string", description: "string", category: "string" })
|
41
|
+
# api.non_insurance_payers.v_1.create(request: { name: "string", description: "string", category: "string", address: { address_1: "123 Main St", address_2: "Apt 1", city: "New York", state: NY, zip_code: "10001", zip_plus_four_code: "1234" } })
|
35
42
|
def create(request:, request_options: nil)
|
36
43
|
response = @request_client.conn.post do |req|
|
37
44
|
req.options.timeout = request_options.timeout_in_seconds unless request_options&.timeout_in_seconds.nil?
|
@@ -144,6 +151,7 @@ module CandidApiClient
|
|
144
151
|
# * :name (String)
|
145
152
|
# * :description (Hash)
|
146
153
|
# * :category (Hash)
|
154
|
+
# * :address (Hash)
|
147
155
|
# @param request_options [CandidApiClient::RequestOptions]
|
148
156
|
# @return [CandidApiClient::NonInsurancePayers::V1::Types::NonInsurancePayer]
|
149
157
|
# @example
|
@@ -200,11 +208,18 @@ module CandidApiClient
|
|
200
208
|
# * :name (String)
|
201
209
|
# * :description (String)
|
202
210
|
# * :category (String)
|
211
|
+
# * :address (Hash)
|
212
|
+
# * :zip_plus_four_code (String)
|
213
|
+
# * :address_1 (String)
|
214
|
+
# * :address_2 (String)
|
215
|
+
# * :city (String)
|
216
|
+
# * :state (CandidApiClient::Commons::Types::State)
|
217
|
+
# * :zip_code (String)
|
203
218
|
# @param request_options [CandidApiClient::RequestOptions]
|
204
219
|
# @return [CandidApiClient::NonInsurancePayers::V1::Types::NonInsurancePayer]
|
205
220
|
# @example
|
206
221
|
# api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
|
207
|
-
# api.non_insurance_payers.v_1.create(request: { name: "string", description: "string", category: "string" })
|
222
|
+
# api.non_insurance_payers.v_1.create(request: { name: "string", description: "string", category: "string", address: { address_1: "123 Main St", address_2: "Apt 1", city: "New York", state: NY, zip_code: "10001", zip_plus_four_code: "1234" } })
|
208
223
|
def create(request:, request_options: nil)
|
209
224
|
Async do
|
210
225
|
response = @request_client.conn.post do |req|
|
@@ -325,6 +340,7 @@ module CandidApiClient
|
|
325
340
|
# * :name (String)
|
326
341
|
# * :description (Hash)
|
327
342
|
# * :category (Hash)
|
343
|
+
# * :address (Hash)
|
328
344
|
# @param request_options [CandidApiClient::RequestOptions]
|
329
345
|
# @return [CandidApiClient::NonInsurancePayers::V1::Types::NonInsurancePayer]
|
330
346
|
# @example
|
@@ -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
|
|
@@ -14,6 +15,8 @@ module CandidApiClient
|
|
14
15
|
attr_reader :description
|
15
16
|
# @return [String] Max 255 characters allowed
|
16
17
|
attr_reader :category
|
18
|
+
# @return [CandidApiClient::Commons::Types::StreetAddressShortZip]
|
19
|
+
attr_reader :address
|
17
20
|
# @return [OpenStruct] Additional properties unmapped to the current class definition
|
18
21
|
attr_reader :additional_properties
|
19
22
|
# @return [Object]
|
@@ -25,14 +28,21 @@ module CandidApiClient
|
|
25
28
|
# @param name [String] Max 50 characters allowed
|
26
29
|
# @param description [String] Max 255 characters allowed
|
27
30
|
# @param category [String] Max 255 characters allowed
|
31
|
+
# @param address [CandidApiClient::Commons::Types::StreetAddressShortZip]
|
28
32
|
# @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
|
29
33
|
# @return [CandidApiClient::NonInsurancePayers::V1::Types::CreateNonInsurancePayerRequest]
|
30
|
-
def initialize(name:, description: OMIT, category: OMIT, additional_properties: nil)
|
34
|
+
def initialize(name:, description: OMIT, category: OMIT, address: OMIT, additional_properties: nil)
|
31
35
|
@name = name
|
32
36
|
@description = description if description != OMIT
|
33
37
|
@category = category if category != OMIT
|
38
|
+
@address = address if address != OMIT
|
34
39
|
@additional_properties = additional_properties
|
35
|
-
@_field_set = {
|
40
|
+
@_field_set = {
|
41
|
+
"name": name,
|
42
|
+
"description": description,
|
43
|
+
"category": category,
|
44
|
+
"address": address
|
45
|
+
}.reject do |_k, v|
|
36
46
|
v == OMIT
|
37
47
|
end
|
38
48
|
end
|
@@ -43,13 +53,21 @@ module CandidApiClient
|
|
43
53
|
# @return [CandidApiClient::NonInsurancePayers::V1::Types::CreateNonInsurancePayerRequest]
|
44
54
|
def self.from_json(json_object:)
|
45
55
|
struct = JSON.parse(json_object, object_class: OpenStruct)
|
56
|
+
parsed_json = JSON.parse(json_object)
|
46
57
|
name = struct["name"]
|
47
58
|
description = struct["description"]
|
48
59
|
category = struct["category"]
|
60
|
+
if parsed_json["address"].nil?
|
61
|
+
address = nil
|
62
|
+
else
|
63
|
+
address = parsed_json["address"].to_json
|
64
|
+
address = CandidApiClient::Commons::Types::StreetAddressShortZip.from_json(json_object: address)
|
65
|
+
end
|
49
66
|
new(
|
50
67
|
name: name,
|
51
68
|
description: description,
|
52
69
|
category: category,
|
70
|
+
address: address,
|
53
71
|
additional_properties: struct
|
54
72
|
)
|
55
73
|
end
|
@@ -71,6 +89,7 @@ module CandidApiClient
|
|
71
89
|
obj.name.is_a?(String) != false || raise("Passed value for field obj.name is not the expected type, validation failed.")
|
72
90
|
obj.description&.is_a?(String) != false || raise("Passed value for field obj.description is not the expected type, validation failed.")
|
73
91
|
obj.category&.is_a?(String) != false || raise("Passed value for field obj.category is not the expected type, validation failed.")
|
92
|
+
obj.address.nil? || CandidApiClient::Commons::Types::StreetAddressShortZip.validate_raw(obj: obj.address)
|
74
93
|
end
|
75
94
|
end
|
76
95
|
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
|