candidhealth 0.35.3 → 0.36.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (23) hide show
  1. checksums.yaml +4 -4
  2. data/lib/candidhealth/billing_notes/v_2/client.rb +90 -0
  3. data/lib/candidhealth/commons/types/billing_provider_commercial_license_type.rb +20 -0
  4. data/lib/candidhealth/commons/types/procedure_modifier.rb +1 -0
  5. data/lib/candidhealth/contracts/v_2/types/contract_invalid_expiration_date_error.rb +60 -0
  6. data/lib/candidhealth/diagnoses/client.rb +2 -2
  7. data/lib/candidhealth/encounter_providers/v_2/types/billing_provider.rb +15 -2
  8. data/lib/candidhealth/encounter_providers/v_2/types/billing_provider_update.rb +15 -2
  9. data/lib/candidhealth/encounter_providers/v_2/types/encounter_provider.rb +14 -1
  10. data/lib/candidhealth/encounters/v_4/client.rb +96 -154
  11. data/lib/candidhealth/encounters/v_4/types/encounter.rb +8 -8
  12. data/lib/candidhealth/encounters/v_4/types/encounter_optional.rb +633 -0
  13. data/lib/candidhealth/guarantor/v_1/client.rb +2 -2
  14. data/lib/candidhealth/non_insurance_payer_refunds/v_1/client.rb +4 -2
  15. data/lib/candidhealth/non_insurance_payer_refunds/v_1/types/non_insurance_payer_refund.rb +9 -1
  16. data/lib/candidhealth/non_insurance_payer_refunds/v_1/types/non_insurance_payer_refund_create.rb +9 -1
  17. data/lib/candidhealth/service_lines/v_2/types/service_line.rb +8 -4
  18. data/lib/candidhealth/service_lines/v_2/types/service_line_create.rb +8 -2
  19. data/lib/candidhealth/service_lines/v_2/types/service_line_create_standalone.rb +8 -2
  20. data/lib/candidhealth/service_lines/v_2/types/service_line_update.rb +8 -2
  21. data/lib/requests.rb +2 -2
  22. data/lib/types_export.rb +3 -0
  23. metadata +5 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 322bb186b5d934fa214e4211428784e97434a7a8306c6c670f4f4fc59d1a6a8d
4
- data.tar.gz: 6ee5bb4e1ec74cbaca7d0f1abb83fed9b64bc832c82a89123c110a76c4b3935b
3
+ metadata.gz: cc0e45f487633d57ec0804eceea6f9e3e59cedd4de6a76154a0d05101d8faf28
4
+ data.tar.gz: e7426b55f0cd839ee70bcf8d6aecf8d1aaf7444a40a34ae9c1b9f0b9003f6926
5
5
  SHA512:
6
- metadata.gz: 00fbc482e506e72028c476115e64f700867a012c8815c243e14ffe9c74197eb93507cb51972f315f279bba7d8630e32a16718c81ad86ecbe4b124a942e7c7631
7
- data.tar.gz: 8cb7ace54e4a5b6a45bdb53a7520977cf0597d39701d97dead9d8edf7e980bffe15ade49fdcfa41811a356853c5eeb06f1ea433cb92d9bf318c663aff88d8579
6
+ metadata.gz: 7c0adebaf3e1040541d8aa563277ca615926c3adef8e0120fc24361f3699c5a23bb930bc38198c982ef99a0b24b5c43f6dfb779ac6c2d2063899f2a06b5b1911
7
+ data.tar.gz: '07738643a69d3a00d69a9a4ebac08834b25722e0eb220b9cca66978051539374505c94d401b682e73cc21c9f9026d3be604d49d2ea550004a76230106079d593'
@@ -48,6 +48,49 @@ module CandidApiClient
48
48
  end
49
49
  CandidApiClient::BillingNotes::V2::Types::BillingNote.from_json(json_object: response.body)
50
50
  end
51
+
52
+ # @param billing_note_id [String]
53
+ # @param request_options [CandidApiClient::RequestOptions]
54
+ # @return [Void]
55
+ # @example
56
+ # api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
57
+ # api.billing_notes.v_2.delete(billing_note_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32")
58
+ def delete(billing_note_id:, request_options: nil)
59
+ @request_client.conn.delete do |req|
60
+ req.options.timeout = request_options.timeout_in_seconds unless request_options&.timeout_in_seconds.nil?
61
+ req.headers["Authorization"] = request_options.token unless request_options&.token.nil?
62
+ req.headers = {
63
+ **(req.headers || {}),
64
+ **@request_client.get_headers,
65
+ **(request_options&.additional_headers || {})
66
+ }.compact
67
+ req.url "#{@request_client.get_url(environment: CandidApi,
68
+ request_options: request_options)}/api/billing_notes/v2/#{billing_note_id}"
69
+ end
70
+ end
71
+
72
+ # @param billing_note_id [String]
73
+ # @param text [String] Empty string not allowed.
74
+ # @param request_options [CandidApiClient::RequestOptions]
75
+ # @return [CandidApiClient::BillingNotes::V2::Types::BillingNote]
76
+ # @example
77
+ # api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
78
+ # api.billing_notes.v_2.update(billing_note_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", text: "string")
79
+ def update(billing_note_id:, text:, request_options: nil)
80
+ response = @request_client.conn.patch do |req|
81
+ req.options.timeout = request_options.timeout_in_seconds unless request_options&.timeout_in_seconds.nil?
82
+ req.headers["Authorization"] = request_options.token unless request_options&.token.nil?
83
+ req.headers = {
84
+ **(req.headers || {}),
85
+ **@request_client.get_headers,
86
+ **(request_options&.additional_headers || {})
87
+ }.compact
88
+ req.body = { **(request_options&.additional_body_parameters || {}), text: text }.compact
89
+ req.url "#{@request_client.get_url(environment: CandidApi,
90
+ request_options: request_options)}/api/billing_notes/v2/#{billing_note_id}"
91
+ end
92
+ CandidApiClient::BillingNotes::V2::Types::BillingNote.from_json(json_object: response.body)
93
+ end
51
94
  end
52
95
 
53
96
  class AsyncV2Client
@@ -92,6 +135,53 @@ module CandidApiClient
92
135
  CandidApiClient::BillingNotes::V2::Types::BillingNote.from_json(json_object: response.body)
93
136
  end
94
137
  end
138
+
139
+ # @param billing_note_id [String]
140
+ # @param request_options [CandidApiClient::RequestOptions]
141
+ # @return [Void]
142
+ # @example
143
+ # api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
144
+ # api.billing_notes.v_2.delete(billing_note_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32")
145
+ def delete(billing_note_id:, request_options: nil)
146
+ Async do
147
+ @request_client.conn.delete do |req|
148
+ req.options.timeout = request_options.timeout_in_seconds unless request_options&.timeout_in_seconds.nil?
149
+ req.headers["Authorization"] = request_options.token unless request_options&.token.nil?
150
+ req.headers = {
151
+ **(req.headers || {}),
152
+ **@request_client.get_headers,
153
+ **(request_options&.additional_headers || {})
154
+ }.compact
155
+ req.url "#{@request_client.get_url(environment: CandidApi,
156
+ request_options: request_options)}/api/billing_notes/v2/#{billing_note_id}"
157
+ end
158
+ end
159
+ end
160
+
161
+ # @param billing_note_id [String]
162
+ # @param text [String] Empty string not allowed.
163
+ # @param request_options [CandidApiClient::RequestOptions]
164
+ # @return [CandidApiClient::BillingNotes::V2::Types::BillingNote]
165
+ # @example
166
+ # api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
167
+ # api.billing_notes.v_2.update(billing_note_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", text: "string")
168
+ def update(billing_note_id:, text:, request_options: nil)
169
+ Async do
170
+ response = @request_client.conn.patch do |req|
171
+ req.options.timeout = request_options.timeout_in_seconds unless request_options&.timeout_in_seconds.nil?
172
+ req.headers["Authorization"] = request_options.token unless request_options&.token.nil?
173
+ req.headers = {
174
+ **(req.headers || {}),
175
+ **@request_client.get_headers,
176
+ **(request_options&.additional_headers || {})
177
+ }.compact
178
+ req.body = { **(request_options&.additional_body_parameters || {}), text: text }.compact
179
+ req.url "#{@request_client.get_url(environment: CandidApi,
180
+ request_options: request_options)}/api/billing_notes/v2/#{billing_note_id}"
181
+ end
182
+ CandidApiClient::BillingNotes::V2::Types::BillingNote.from_json(json_object: response.body)
183
+ end
184
+ end
95
185
  end
96
186
  end
97
187
  end
@@ -0,0 +1,20 @@
1
+ # frozen_string_literal: true
2
+
3
+ module CandidApiClient
4
+ module Commons
5
+ module Types
6
+ class BillingProviderCommercialLicenseType
7
+ LICENSED_CLINICAL_SOCIAL_WORKER = "0"
8
+ LICENSED_PROFESSIONAL_COUNSELOR = "A"
9
+ LICENSED_MARRIAGE_AND_FAMILY_COUNSELOR = "B"
10
+ LICENSED_CLINICAL_ALCOHOL_AND_DRUG_COUNSELOR = "C"
11
+ PSYCHOLOGIST = "D"
12
+ PSYCHIATRIC_NURSE = "E"
13
+ PSYCHIATRIST = "F"
14
+ CHILD_ADOLESCENT_PSYCHIATRIST = "G"
15
+ PHYSICIAN_ASSISTANT = "H"
16
+ NURSE_CNP = "I"
17
+ end
18
+ end
19
+ end
20
+ end
@@ -392,6 +392,7 @@ module CandidApiClient
392
392
  V_2 = "V2"
393
393
  V_3 = "V3"
394
394
  XE = "XE"
395
+ XS = "XS"
395
396
  end
396
397
  end
397
398
  end
@@ -0,0 +1,60 @@
1
+ # frozen_string_literal: true
2
+
3
+ require "ostruct"
4
+ require "json"
5
+
6
+ module CandidApiClient
7
+ module Contracts
8
+ module V2
9
+ module Types
10
+ class ContractInvalidExpirationDateError
11
+ # @return [String]
12
+ attr_reader :message
13
+ # @return [OpenStruct] Additional properties unmapped to the current class definition
14
+ attr_reader :additional_properties
15
+ # @return [Object]
16
+ attr_reader :_field_set
17
+ protected :_field_set
18
+
19
+ OMIT = Object.new
20
+
21
+ # @param message [String]
22
+ # @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
23
+ # @return [CandidApiClient::Contracts::V2::Types::ContractInvalidExpirationDateError]
24
+ def initialize(message:, additional_properties: nil)
25
+ @message = message
26
+ @additional_properties = additional_properties
27
+ @_field_set = { "message": message }
28
+ end
29
+
30
+ # Deserialize a JSON object to an instance of ContractInvalidExpirationDateError
31
+ #
32
+ # @param json_object [String]
33
+ # @return [CandidApiClient::Contracts::V2::Types::ContractInvalidExpirationDateError]
34
+ def self.from_json(json_object:)
35
+ struct = JSON.parse(json_object, object_class: OpenStruct)
36
+ message = struct["message"]
37
+ new(message: message, additional_properties: struct)
38
+ end
39
+
40
+ # Serialize an instance of ContractInvalidExpirationDateError to a JSON object
41
+ #
42
+ # @return [String]
43
+ def to_json(*_args)
44
+ @_field_set&.to_json
45
+ end
46
+
47
+ # Leveraged for Union-type generation, validate_raw attempts to parse the given
48
+ # hash and check each fields type against the current object's property
49
+ # definitions.
50
+ #
51
+ # @param obj [Object]
52
+ # @return [Void]
53
+ def self.validate_raw(obj:)
54
+ obj.message.is_a?(String) != false || raise("Passed value for field obj.message is not the expected type, validation failed.")
55
+ end
56
+ end
57
+ end
58
+ end
59
+ end
60
+ end
@@ -28,7 +28,7 @@ module CandidApiClient
28
28
  # @return [CandidApiClient::Diagnoses::Types::Diagnosis]
29
29
  # @example
30
30
  # api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
31
- # api.diagnoses.create(request: { encounter_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", name: "string", code_type: ABF, code: "string" })
31
+ # api.diagnoses.create(request: { encounter_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", code_type: ABF, code: "string" })
32
32
  def create(request:, request_options: nil)
33
33
  response = @request_client.conn.post do |req|
34
34
  req.options.timeout = request_options.timeout_in_seconds unless request_options&.timeout_in_seconds.nil?
@@ -137,7 +137,7 @@ module CandidApiClient
137
137
  # @return [CandidApiClient::Diagnoses::Types::Diagnosis]
138
138
  # @example
139
139
  # api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
140
- # api.diagnoses.create(request: { encounter_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", name: "string", code_type: ABF, code: "string" })
140
+ # api.diagnoses.create(request: { encounter_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", code_type: ABF, code: "string" })
141
141
  def create(request:, request_options: nil)
142
142
  Async do
143
143
  response = @request_client.conn.post do |req|
@@ -1,6 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  require_relative "../../../commons/types/street_address_long_zip"
4
+ require_relative "../../../commons/types/billing_provider_commercial_license_type"
4
5
  require "ostruct"
5
6
  require "json"
6
7
 
@@ -31,6 +32,9 @@ module CandidApiClient
31
32
  attr_reader :npi
32
33
  # @return [String]
33
34
  attr_reader :taxonomy_code
35
+ # @return [CandidApiClient::Commons::Types::BillingProviderCommercialLicenseType] 837i Loop2010BB G2
36
+ # Provider Commercial Number
37
+ attr_reader :provider_commercial_license_type
34
38
  # @return [String] If the provider is an individual, this should be set instead of organization
35
39
  # name
36
40
  attr_reader :first_name
@@ -53,6 +57,8 @@ module CandidApiClient
53
57
  # given to the payer on an IRS W-9 form completed during contracting.
54
58
  # @param npi [String]
55
59
  # @param taxonomy_code [String]
60
+ # @param provider_commercial_license_type [CandidApiClient::Commons::Types::BillingProviderCommercialLicenseType] 837i Loop2010BB G2
61
+ # Provider Commercial Number
56
62
  # @param first_name [String] If the provider is an individual, this should be set instead of organization
57
63
  # name
58
64
  # @param last_name [String] If the provider is an individual, this should be set instead of organization
@@ -61,12 +67,15 @@ module CandidApiClient
61
67
  # name
62
68
  # @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
63
69
  # @return [CandidApiClient::EncounterProviders::V2::Types::BillingProvider]
64
- def initialize(address:, tax_id:, npi:, taxonomy_code: OMIT, first_name: OMIT, last_name: OMIT,
65
- organization_name: OMIT, additional_properties: nil)
70
+ def initialize(address:, tax_id:, npi:, taxonomy_code: OMIT, provider_commercial_license_type: OMIT,
71
+ first_name: OMIT, last_name: OMIT, organization_name: OMIT, additional_properties: nil)
66
72
  @address = address
67
73
  @tax_id = tax_id
68
74
  @npi = npi
69
75
  @taxonomy_code = taxonomy_code if taxonomy_code != OMIT
76
+ if provider_commercial_license_type != OMIT
77
+ @provider_commercial_license_type = provider_commercial_license_type
78
+ end
70
79
  @first_name = first_name if first_name != OMIT
71
80
  @last_name = last_name if last_name != OMIT
72
81
  @organization_name = organization_name if organization_name != OMIT
@@ -76,6 +85,7 @@ module CandidApiClient
76
85
  "tax_id": tax_id,
77
86
  "npi": npi,
78
87
  "taxonomy_code": taxonomy_code,
88
+ "provider_commercial_license_type": provider_commercial_license_type,
79
89
  "first_name": first_name,
80
90
  "last_name": last_name,
81
91
  "organization_name": organization_name
@@ -100,6 +110,7 @@ module CandidApiClient
100
110
  tax_id = struct["tax_id"]
101
111
  npi = struct["npi"]
102
112
  taxonomy_code = struct["taxonomy_code"]
113
+ provider_commercial_license_type = struct["provider_commercial_license_type"]
103
114
  first_name = struct["first_name"]
104
115
  last_name = struct["last_name"]
105
116
  organization_name = struct["organization_name"]
@@ -108,6 +119,7 @@ module CandidApiClient
108
119
  tax_id: tax_id,
109
120
  npi: npi,
110
121
  taxonomy_code: taxonomy_code,
122
+ provider_commercial_license_type: provider_commercial_license_type,
111
123
  first_name: first_name,
112
124
  last_name: last_name,
113
125
  organization_name: organization_name,
@@ -133,6 +145,7 @@ module CandidApiClient
133
145
  obj.tax_id.is_a?(String) != false || raise("Passed value for field obj.tax_id is not the expected type, validation failed.")
134
146
  obj.npi.is_a?(String) != false || raise("Passed value for field obj.npi is not the expected type, validation failed.")
135
147
  obj.taxonomy_code&.is_a?(String) != false || raise("Passed value for field obj.taxonomy_code is not the expected type, validation failed.")
148
+ obj.provider_commercial_license_type&.is_a?(CandidApiClient::Commons::Types::BillingProviderCommercialLicenseType) != false || raise("Passed value for field obj.provider_commercial_license_type is not the expected type, validation failed.")
136
149
  obj.first_name&.is_a?(String) != false || raise("Passed value for field obj.first_name is not the expected type, validation failed.")
137
150
  obj.last_name&.is_a?(String) != false || raise("Passed value for field obj.last_name is not the expected type, validation failed.")
138
151
  obj.organization_name&.is_a?(String) != false || raise("Passed value for field obj.organization_name is not the expected type, validation failed.")
@@ -1,6 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  require_relative "../../../commons/types/street_address_long_zip"
4
+ require_relative "../../../commons/types/billing_provider_commercial_license_type"
4
5
  require "ostruct"
5
6
  require "json"
6
7
 
@@ -31,6 +32,9 @@ module CandidApiClient
31
32
  attr_reader :npi
32
33
  # @return [String]
33
34
  attr_reader :taxonomy_code
35
+ # @return [CandidApiClient::Commons::Types::BillingProviderCommercialLicenseType] 837i Loop2010BB G2
36
+ # Provider Commercial Number
37
+ attr_reader :provider_commercial_license_type
34
38
  # @return [String] If the provider is an individual, this should be set instead of organization
35
39
  # name
36
40
  attr_reader :first_name
@@ -53,6 +57,8 @@ module CandidApiClient
53
57
  # given to the payer on an IRS W-9 form completed during contracting.
54
58
  # @param npi [String]
55
59
  # @param taxonomy_code [String]
60
+ # @param provider_commercial_license_type [CandidApiClient::Commons::Types::BillingProviderCommercialLicenseType] 837i Loop2010BB G2
61
+ # Provider Commercial Number
56
62
  # @param first_name [String] If the provider is an individual, this should be set instead of organization
57
63
  # name
58
64
  # @param last_name [String] If the provider is an individual, this should be set instead of organization
@@ -61,12 +67,15 @@ module CandidApiClient
61
67
  # name
62
68
  # @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
63
69
  # @return [CandidApiClient::EncounterProviders::V2::Types::BillingProviderUpdate]
64
- def initialize(address: OMIT, tax_id: OMIT, npi: OMIT, taxonomy_code: OMIT, first_name: OMIT,
65
- last_name: OMIT, organization_name: OMIT, additional_properties: nil)
70
+ def initialize(address: OMIT, tax_id: OMIT, npi: OMIT, taxonomy_code: OMIT,
71
+ provider_commercial_license_type: OMIT, first_name: OMIT, last_name: OMIT, organization_name: OMIT, additional_properties: nil)
66
72
  @address = address if address != OMIT
67
73
  @tax_id = tax_id if tax_id != OMIT
68
74
  @npi = npi if npi != OMIT
69
75
  @taxonomy_code = taxonomy_code if taxonomy_code != OMIT
76
+ if provider_commercial_license_type != OMIT
77
+ @provider_commercial_license_type = provider_commercial_license_type
78
+ end
70
79
  @first_name = first_name if first_name != OMIT
71
80
  @last_name = last_name if last_name != OMIT
72
81
  @organization_name = organization_name if organization_name != OMIT
@@ -76,6 +85,7 @@ module CandidApiClient
76
85
  "tax_id": tax_id,
77
86
  "npi": npi,
78
87
  "taxonomy_code": taxonomy_code,
88
+ "provider_commercial_license_type": provider_commercial_license_type,
79
89
  "first_name": first_name,
80
90
  "last_name": last_name,
81
91
  "organization_name": organization_name
@@ -100,6 +110,7 @@ module CandidApiClient
100
110
  tax_id = struct["tax_id"]
101
111
  npi = struct["npi"]
102
112
  taxonomy_code = struct["taxonomy_code"]
113
+ provider_commercial_license_type = struct["provider_commercial_license_type"]
103
114
  first_name = struct["first_name"]
104
115
  last_name = struct["last_name"]
105
116
  organization_name = struct["organization_name"]
@@ -108,6 +119,7 @@ module CandidApiClient
108
119
  tax_id: tax_id,
109
120
  npi: npi,
110
121
  taxonomy_code: taxonomy_code,
122
+ provider_commercial_license_type: provider_commercial_license_type,
111
123
  first_name: first_name,
112
124
  last_name: last_name,
113
125
  organization_name: organization_name,
@@ -133,6 +145,7 @@ module CandidApiClient
133
145
  obj.tax_id&.is_a?(String) != false || raise("Passed value for field obj.tax_id is not the expected type, validation failed.")
134
146
  obj.npi&.is_a?(String) != false || raise("Passed value for field obj.npi is not the expected type, validation failed.")
135
147
  obj.taxonomy_code&.is_a?(String) != false || raise("Passed value for field obj.taxonomy_code is not the expected type, validation failed.")
148
+ obj.provider_commercial_license_type&.is_a?(CandidApiClient::Commons::Types::BillingProviderCommercialLicenseType) != false || raise("Passed value for field obj.provider_commercial_license_type is not the expected type, validation failed.")
136
149
  obj.first_name&.is_a?(String) != false || raise("Passed value for field obj.first_name is not the expected type, validation failed.")
137
150
  obj.last_name&.is_a?(String) != false || raise("Passed value for field obj.last_name is not the expected type, validation failed.")
138
151
  obj.organization_name&.is_a?(String) != false || raise("Passed value for field obj.organization_name is not the expected type, validation failed.")
@@ -2,6 +2,7 @@
2
2
 
3
3
  require_relative "../../../commons/types/street_address_long_zip"
4
4
  require_relative "../../../commons/types/qualifier_code"
5
+ require_relative "../../../commons/types/billing_provider_commercial_license_type"
5
6
  require "ostruct"
6
7
  require "json"
7
8
 
@@ -22,6 +23,9 @@ module CandidApiClient
22
23
  attr_reader :taxonomy_code
23
24
  # @return [CandidApiClient::Commons::Types::QualifierCode]
24
25
  attr_reader :qualifier
26
+ # @return [CandidApiClient::Commons::Types::BillingProviderCommercialLicenseType] 837i Loop2010BB G2
27
+ # Provider Commercial Number
28
+ attr_reader :provider_commercial_license_type
25
29
  # @return [String] If the provider is an individual, this should be set instead of organization
26
30
  # name
27
31
  attr_reader :first_name
@@ -45,6 +49,8 @@ module CandidApiClient
45
49
  # @param npi [String]
46
50
  # @param taxonomy_code [String]
47
51
  # @param qualifier [CandidApiClient::Commons::Types::QualifierCode]
52
+ # @param provider_commercial_license_type [CandidApiClient::Commons::Types::BillingProviderCommercialLicenseType] 837i Loop2010BB G2
53
+ # Provider Commercial Number
48
54
  # @param first_name [String] If the provider is an individual, this should be set instead of organization
49
55
  # name
50
56
  # @param last_name [String] If the provider is an individual, this should be set instead of organization
@@ -54,13 +60,16 @@ module CandidApiClient
54
60
  # @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
55
61
  # @return [CandidApiClient::EncounterProviders::V2::Types::EncounterProvider]
56
62
  def initialize(provider_id:, address:, npi:, tax_id: OMIT, taxonomy_code: OMIT, qualifier: OMIT,
57
- first_name: OMIT, last_name: OMIT, organization_name: OMIT, additional_properties: nil)
63
+ provider_commercial_license_type: OMIT, first_name: OMIT, last_name: OMIT, organization_name: OMIT, additional_properties: nil)
58
64
  @provider_id = provider_id
59
65
  @address = address
60
66
  @tax_id = tax_id if tax_id != OMIT
61
67
  @npi = npi
62
68
  @taxonomy_code = taxonomy_code if taxonomy_code != OMIT
63
69
  @qualifier = qualifier if qualifier != OMIT
70
+ if provider_commercial_license_type != OMIT
71
+ @provider_commercial_license_type = provider_commercial_license_type
72
+ end
64
73
  @first_name = first_name if first_name != OMIT
65
74
  @last_name = last_name if last_name != OMIT
66
75
  @organization_name = organization_name if organization_name != OMIT
@@ -72,6 +81,7 @@ module CandidApiClient
72
81
  "npi": npi,
73
82
  "taxonomy_code": taxonomy_code,
74
83
  "qualifier": qualifier,
84
+ "provider_commercial_license_type": provider_commercial_license_type,
75
85
  "first_name": first_name,
76
86
  "last_name": last_name,
77
87
  "organization_name": organization_name
@@ -98,6 +108,7 @@ module CandidApiClient
98
108
  npi = struct["npi"]
99
109
  taxonomy_code = struct["taxonomy_code"]
100
110
  qualifier = struct["qualifier"]
111
+ provider_commercial_license_type = struct["provider_commercial_license_type"]
101
112
  first_name = struct["first_name"]
102
113
  last_name = struct["last_name"]
103
114
  organization_name = struct["organization_name"]
@@ -108,6 +119,7 @@ module CandidApiClient
108
119
  npi: npi,
109
120
  taxonomy_code: taxonomy_code,
110
121
  qualifier: qualifier,
122
+ provider_commercial_license_type: provider_commercial_license_type,
111
123
  first_name: first_name,
112
124
  last_name: last_name,
113
125
  organization_name: organization_name,
@@ -135,6 +147,7 @@ module CandidApiClient
135
147
  obj.npi.is_a?(String) != false || raise("Passed value for field obj.npi is not the expected type, validation failed.")
136
148
  obj.taxonomy_code&.is_a?(String) != false || raise("Passed value for field obj.taxonomy_code is not the expected type, validation failed.")
137
149
  obj.qualifier&.is_a?(CandidApiClient::Commons::Types::QualifierCode) != false || raise("Passed value for field obj.qualifier is not the expected type, validation failed.")
150
+ obj.provider_commercial_license_type&.is_a?(CandidApiClient::Commons::Types::BillingProviderCommercialLicenseType) != false || raise("Passed value for field obj.provider_commercial_license_type is not the expected type, validation failed.")
138
151
  obj.first_name&.is_a?(String) != false || raise("Passed value for field obj.first_name is not the expected type, validation failed.")
139
152
  obj.last_name&.is_a?(String) != false || raise("Passed value for field obj.last_name is not the expected type, validation failed.")
140
153
  obj.organization_name&.is_a?(String) != false || raise("Passed value for field obj.organization_name is not the expected type, validation failed.")