candidhealth 0.36.0 → 0.37.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,88 @@
1
+ # frozen_string_literal: true
2
+
3
+ require_relative "charge_capture"
4
+ require "ostruct"
5
+ require "json"
6
+
7
+ module CandidApiClient
8
+ module ChargeCapture
9
+ module V1
10
+ module Types
11
+ class ChargeCapturePage
12
+ # @return [Array<CandidApiClient::ChargeCapture::V1::Types::ChargeCapture>]
13
+ attr_reader :items
14
+ # @return [String]
15
+ attr_reader :prev_page_token
16
+ # @return [String]
17
+ attr_reader :next_page_token
18
+ # @return [OpenStruct] Additional properties unmapped to the current class definition
19
+ attr_reader :additional_properties
20
+ # @return [Object]
21
+ attr_reader :_field_set
22
+ protected :_field_set
23
+
24
+ OMIT = Object.new
25
+
26
+ # @param items [Array<CandidApiClient::ChargeCapture::V1::Types::ChargeCapture>]
27
+ # @param prev_page_token [String]
28
+ # @param next_page_token [String]
29
+ # @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
30
+ # @return [CandidApiClient::ChargeCapture::V1::Types::ChargeCapturePage]
31
+ def initialize(items:, prev_page_token: OMIT, next_page_token: OMIT, additional_properties: nil)
32
+ @items = items
33
+ @prev_page_token = prev_page_token if prev_page_token != OMIT
34
+ @next_page_token = next_page_token if next_page_token != OMIT
35
+ @additional_properties = additional_properties
36
+ @_field_set = {
37
+ "items": items,
38
+ "prev_page_token": prev_page_token,
39
+ "next_page_token": next_page_token
40
+ }.reject do |_k, v|
41
+ v == OMIT
42
+ end
43
+ end
44
+
45
+ # Deserialize a JSON object to an instance of ChargeCapturePage
46
+ #
47
+ # @param json_object [String]
48
+ # @return [CandidApiClient::ChargeCapture::V1::Types::ChargeCapturePage]
49
+ def self.from_json(json_object:)
50
+ struct = JSON.parse(json_object, object_class: OpenStruct)
51
+ parsed_json = JSON.parse(json_object)
52
+ items = parsed_json["items"]&.map do |item|
53
+ item = item.to_json
54
+ CandidApiClient::ChargeCapture::V1::Types::ChargeCapture.from_json(json_object: item)
55
+ end
56
+ prev_page_token = struct["prev_page_token"]
57
+ next_page_token = struct["next_page_token"]
58
+ new(
59
+ items: items,
60
+ prev_page_token: prev_page_token,
61
+ next_page_token: next_page_token,
62
+ additional_properties: struct
63
+ )
64
+ end
65
+
66
+ # Serialize an instance of ChargeCapturePage to a JSON object
67
+ #
68
+ # @return [String]
69
+ def to_json(*_args)
70
+ @_field_set&.to_json
71
+ end
72
+
73
+ # Leveraged for Union-type generation, validate_raw attempts to parse the given
74
+ # hash and check each fields type against the current object's property
75
+ # definitions.
76
+ #
77
+ # @param obj [Object]
78
+ # @return [Void]
79
+ def self.validate_raw(obj:)
80
+ obj.items.is_a?(Array) != false || raise("Passed value for field obj.items is not the expected type, validation failed.")
81
+ obj.prev_page_token&.is_a?(String) != false || raise("Passed value for field obj.prev_page_token is not the expected type, validation failed.")
82
+ obj.next_page_token&.is_a?(String) != false || raise("Passed value for field obj.next_page_token is not the expected type, validation failed.")
83
+ end
84
+ end
85
+ end
86
+ end
87
+ end
88
+ end
@@ -0,0 +1,19 @@
1
+ # frozen_string_literal: true
2
+
3
+ module CandidApiClient
4
+ module ChargeCapture
5
+ module V1
6
+ module Types
7
+ class ChargeCaptureStatus
8
+ PLANNED = "planned"
9
+ NOT_BILLABLE = "not-billable"
10
+ BILLABLE = "billable"
11
+ ABORTED = "aborted"
12
+ BILLED = "billed"
13
+ ENTERED_IN_ERROR = "entered-in-error"
14
+ UNKNOWN = "unknown"
15
+ end
16
+ end
17
+ end
18
+ end
19
+ 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
@@ -0,0 +1,60 @@
1
+ # frozen_string_literal: true
2
+
3
+ require "ostruct"
4
+ require "json"
5
+
6
+ module CandidApiClient
7
+ module Commons
8
+ module Types
9
+ class NotImplementedErrorMessage
10
+ # @return [String]
11
+ attr_reader :message
12
+ # @return [OpenStruct] Additional properties unmapped to the current class definition
13
+ attr_reader :additional_properties
14
+ # @return [Object]
15
+ attr_reader :_field_set
16
+ protected :_field_set
17
+
18
+ OMIT = Object.new
19
+
20
+ # @param message [String]
21
+ # @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
22
+ # @return [CandidApiClient::Commons::Types::NotImplementedErrorMessage]
23
+ def initialize(message: OMIT, additional_properties: nil)
24
+ @message = message if message != OMIT
25
+ @additional_properties = additional_properties
26
+ @_field_set = { "message": message }.reject do |_k, v|
27
+ v == OMIT
28
+ end
29
+ end
30
+
31
+ # Deserialize a JSON object to an instance of NotImplementedErrorMessage
32
+ #
33
+ # @param json_object [String]
34
+ # @return [CandidApiClient::Commons::Types::NotImplementedErrorMessage]
35
+ def self.from_json(json_object:)
36
+ struct = JSON.parse(json_object, object_class: OpenStruct)
37
+ message = struct["message"]
38
+ new(message: message, additional_properties: struct)
39
+ end
40
+
41
+ # Serialize an instance of NotImplementedErrorMessage to a JSON object
42
+ #
43
+ # @return [String]
44
+ def to_json(*_args)
45
+ @_field_set&.to_json
46
+ end
47
+
48
+ # Leveraged for Union-type generation, validate_raw attempts to parse the given
49
+ # hash and check each fields type against the current object's property
50
+ # definitions.
51
+ #
52
+ # @param obj [Object]
53
+ # @return [Void]
54
+ def self.validate_raw(obj:)
55
+ obj.message&.is_a?(String) != false || raise("Passed value for field obj.message is not the expected type, validation failed.")
56
+ end
57
+ end
58
+ end
59
+ end
60
+ 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
@@ -43,7 +43,7 @@ module CandidApiClient
43
43
  # @return [CandidApiClient::EncounterProviders::V2::Types::EncounterProvider]
44
44
  # @example
45
45
  # api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
46
- # api.encounter_providers.v_2.update_referring_provider(encounter_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", request: { npi: "string", taxonomy_code: "string", address: { address_1: "123 Main St", address_2: "Apt 1", city: "New York", state: NY, zip_code: "10001", zip_plus_four_code: "1234" }, first_name: "string", last_name: "string", organization_name: "string" })
46
+ # api.encounter_providers.v_2.update_referring_provider(encounter_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", request: { })
47
47
  def update_referring_provider(encounter_id:, request:, request_options: nil)
48
48
  response = @request_client.conn.patch do |req|
49
49
  req.options.timeout = request_options.timeout_in_seconds unless request_options&.timeout_in_seconds.nil?
@@ -79,7 +79,7 @@ module CandidApiClient
79
79
  # @return [CandidApiClient::EncounterProviders::V2::Types::EncounterProvider]
80
80
  # @example
81
81
  # api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
82
- # api.encounter_providers.v_2.update_initial_referring_provider(encounter_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", request: { npi: "string", taxonomy_code: "string", address: { address_1: "123 Main St", address_2: "Apt 1", city: "New York", state: NY, zip_code: "10001", zip_plus_four_code: "1234" }, qualifier: DQ, first_name: "string", last_name: "string", organization_name: "string" })
82
+ # api.encounter_providers.v_2.update_initial_referring_provider(encounter_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", request: { })
83
83
  def update_initial_referring_provider(encounter_id:, request:, request_options: nil)
84
84
  response = @request_client.conn.patch do |req|
85
85
  req.options.timeout = request_options.timeout_in_seconds unless request_options&.timeout_in_seconds.nil?
@@ -114,7 +114,7 @@ module CandidApiClient
114
114
  # @return [CandidApiClient::EncounterProviders::V2::Types::EncounterProvider]
115
115
  # @example
116
116
  # api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
117
- # api.encounter_providers.v_2.update_supervising_provider(encounter_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", request: { npi: "string", taxonomy_code: "string", address: { address_1: "123 Main St", address_2: "Apt 1", city: "New York", state: NY, zip_code: "10001", zip_plus_four_code: "1234" }, first_name: "string", last_name: "string", organization_name: "string" })
117
+ # api.encounter_providers.v_2.update_supervising_provider(encounter_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", request: { })
118
118
  def update_supervising_provider(encounter_id:, request:, request_options: nil)
119
119
  response = @request_client.conn.patch do |req|
120
120
  req.options.timeout = request_options.timeout_in_seconds unless request_options&.timeout_in_seconds.nil?
@@ -149,7 +149,7 @@ module CandidApiClient
149
149
  # @return [CandidApiClient::EncounterProviders::V2::Types::EncounterProvider]
150
150
  # @example
151
151
  # api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
152
- # api.encounter_providers.v_2.update_ordering_provider(service_line_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", request: { npi: "string", taxonomy_code: "string", address: { address_1: "123 Main St", address_2: "Apt 1", city: "New York", state: NY, zip_code: "10001", zip_plus_four_code: "1234" }, first_name: "string", last_name: "string", organization_name: "string" })
152
+ # api.encounter_providers.v_2.update_ordering_provider(service_line_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", request: { npi: "string", taxonomy_code: "string", address: { address_1: "123 Main St", address_2: "Apt 1", city: "New York", state: NY, zip_code: "10001", zip_plus_four_code: "1234" } })
153
153
  def update_ordering_provider(service_line_id:, request:, request_options: nil)
154
154
  response = @request_client.conn.patch do |req|
155
155
  req.options.timeout = request_options.timeout_in_seconds unless request_options&.timeout_in_seconds.nil?
@@ -184,7 +184,7 @@ module CandidApiClient
184
184
  # @return [CandidApiClient::EncounterProviders::V2::Types::EncounterProvider]
185
185
  # @example
186
186
  # api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
187
- # api.encounter_providers.v_2.create_referring_provider(encounter_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", request: { npi: "string", taxonomy_code: "string", address: { address_1: "123 Main St", address_2: "Apt 1", city: "New York", state: NY, zip_code: "10001", zip_plus_four_code: "1234" }, first_name: "string", last_name: "string", organization_name: "string" })
187
+ # api.encounter_providers.v_2.create_referring_provider(encounter_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", request: { npi: "string", taxonomy_code: "string", address: { address_1: "123 Main St", address_2: "Apt 1", city: "New York", state: NY, zip_code: "10001", zip_plus_four_code: "1234" } })
188
188
  def create_referring_provider(encounter_id:, request:, request_options: nil)
189
189
  response = @request_client.conn.post do |req|
190
190
  req.options.timeout = request_options.timeout_in_seconds unless request_options&.timeout_in_seconds.nil?
@@ -220,7 +220,7 @@ module CandidApiClient
220
220
  # @return [CandidApiClient::EncounterProviders::V2::Types::EncounterProvider]
221
221
  # @example
222
222
  # api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
223
- # api.encounter_providers.v_2.create_initial_referring_provider(encounter_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", request: { npi: "string", taxonomy_code: "string", address: { address_1: "123 Main St", address_2: "Apt 1", city: "New York", state: NY, zip_code: "10001", zip_plus_four_code: "1234" }, qualifier: DQ, first_name: "string", last_name: "string", organization_name: "string" })
223
+ # api.encounter_providers.v_2.create_initial_referring_provider(encounter_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", request: { npi: "string", taxonomy_code: "string", address: { address_1: "123 Main St", address_2: "Apt 1", city: "New York", state: NY, zip_code: "10001", zip_plus_four_code: "1234" }, qualifier: DQ })
224
224
  def create_initial_referring_provider(encounter_id:, request:, request_options: nil)
225
225
  response = @request_client.conn.post do |req|
226
226
  req.options.timeout = request_options.timeout_in_seconds unless request_options&.timeout_in_seconds.nil?
@@ -255,7 +255,7 @@ module CandidApiClient
255
255
  # @return [CandidApiClient::EncounterProviders::V2::Types::EncounterProvider]
256
256
  # @example
257
257
  # api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
258
- # api.encounter_providers.v_2.create_supervising_provider(encounter_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", request: { npi: "string", taxonomy_code: "string", address: { address_1: "123 Main St", address_2: "Apt 1", city: "New York", state: NY, zip_code: "10001", zip_plus_four_code: "1234" }, first_name: "string", last_name: "string", organization_name: "string" })
258
+ # api.encounter_providers.v_2.create_supervising_provider(encounter_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", request: { npi: "string", taxonomy_code: "string", address: { address_1: "123 Main St", address_2: "Apt 1", city: "New York", state: NY, zip_code: "10001", zip_plus_four_code: "1234" } })
259
259
  def create_supervising_provider(encounter_id:, request:, request_options: nil)
260
260
  response = @request_client.conn.post do |req|
261
261
  req.options.timeout = request_options.timeout_in_seconds unless request_options&.timeout_in_seconds.nil?
@@ -290,7 +290,7 @@ module CandidApiClient
290
290
  # @return [CandidApiClient::EncounterProviders::V2::Types::EncounterProvider]
291
291
  # @example
292
292
  # api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
293
- # api.encounter_providers.v_2.create_ordering_provider(service_line_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", request: { npi: "string", taxonomy_code: "string", address: { address_1: "123 Main St", address_2: "Apt 1", city: "New York", state: NY, zip_code: "10001", zip_plus_four_code: "1234" }, first_name: "string", last_name: "string", organization_name: "string" })
293
+ # api.encounter_providers.v_2.create_ordering_provider(service_line_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", request: { npi: "string", taxonomy_code: "string", address: { address_1: "123 Main St", address_2: "Apt 1", city: "New York", state: NY, zip_code: "10001", zip_plus_four_code: "1234" } })
294
294
  def create_ordering_provider(service_line_id:, request:, request_options: nil)
295
295
  response = @request_client.conn.post do |req|
296
296
  req.options.timeout = request_options.timeout_in_seconds unless request_options&.timeout_in_seconds.nil?
@@ -416,7 +416,7 @@ module CandidApiClient
416
416
  # @return [CandidApiClient::EncounterProviders::V2::Types::EncounterProvider]
417
417
  # @example
418
418
  # api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
419
- # api.encounter_providers.v_2.update_referring_provider(encounter_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", request: { npi: "string", taxonomy_code: "string", address: { address_1: "123 Main St", address_2: "Apt 1", city: "New York", state: NY, zip_code: "10001", zip_plus_four_code: "1234" }, first_name: "string", last_name: "string", organization_name: "string" })
419
+ # api.encounter_providers.v_2.update_referring_provider(encounter_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", request: { })
420
420
  def update_referring_provider(encounter_id:, request:, request_options: nil)
421
421
  Async do
422
422
  response = @request_client.conn.patch do |req|
@@ -454,7 +454,7 @@ module CandidApiClient
454
454
  # @return [CandidApiClient::EncounterProviders::V2::Types::EncounterProvider]
455
455
  # @example
456
456
  # api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
457
- # api.encounter_providers.v_2.update_initial_referring_provider(encounter_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", request: { npi: "string", taxonomy_code: "string", address: { address_1: "123 Main St", address_2: "Apt 1", city: "New York", state: NY, zip_code: "10001", zip_plus_four_code: "1234" }, qualifier: DQ, first_name: "string", last_name: "string", organization_name: "string" })
457
+ # api.encounter_providers.v_2.update_initial_referring_provider(encounter_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", request: { })
458
458
  def update_initial_referring_provider(encounter_id:, request:, request_options: nil)
459
459
  Async do
460
460
  response = @request_client.conn.patch do |req|
@@ -491,7 +491,7 @@ module CandidApiClient
491
491
  # @return [CandidApiClient::EncounterProviders::V2::Types::EncounterProvider]
492
492
  # @example
493
493
  # api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
494
- # api.encounter_providers.v_2.update_supervising_provider(encounter_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", request: { npi: "string", taxonomy_code: "string", address: { address_1: "123 Main St", address_2: "Apt 1", city: "New York", state: NY, zip_code: "10001", zip_plus_four_code: "1234" }, first_name: "string", last_name: "string", organization_name: "string" })
494
+ # api.encounter_providers.v_2.update_supervising_provider(encounter_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", request: { })
495
495
  def update_supervising_provider(encounter_id:, request:, request_options: nil)
496
496
  Async do
497
497
  response = @request_client.conn.patch do |req|
@@ -528,7 +528,7 @@ module CandidApiClient
528
528
  # @return [CandidApiClient::EncounterProviders::V2::Types::EncounterProvider]
529
529
  # @example
530
530
  # api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
531
- # api.encounter_providers.v_2.update_ordering_provider(service_line_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", request: { npi: "string", taxonomy_code: "string", address: { address_1: "123 Main St", address_2: "Apt 1", city: "New York", state: NY, zip_code: "10001", zip_plus_four_code: "1234" }, first_name: "string", last_name: "string", organization_name: "string" })
531
+ # api.encounter_providers.v_2.update_ordering_provider(service_line_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", request: { npi: "string", taxonomy_code: "string", address: { address_1: "123 Main St", address_2: "Apt 1", city: "New York", state: NY, zip_code: "10001", zip_plus_four_code: "1234" } })
532
532
  def update_ordering_provider(service_line_id:, request:, request_options: nil)
533
533
  Async do
534
534
  response = @request_client.conn.patch do |req|
@@ -565,7 +565,7 @@ module CandidApiClient
565
565
  # @return [CandidApiClient::EncounterProviders::V2::Types::EncounterProvider]
566
566
  # @example
567
567
  # api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
568
- # api.encounter_providers.v_2.create_referring_provider(encounter_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", request: { npi: "string", taxonomy_code: "string", address: { address_1: "123 Main St", address_2: "Apt 1", city: "New York", state: NY, zip_code: "10001", zip_plus_four_code: "1234" }, first_name: "string", last_name: "string", organization_name: "string" })
568
+ # api.encounter_providers.v_2.create_referring_provider(encounter_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", request: { npi: "string", taxonomy_code: "string", address: { address_1: "123 Main St", address_2: "Apt 1", city: "New York", state: NY, zip_code: "10001", zip_plus_four_code: "1234" } })
569
569
  def create_referring_provider(encounter_id:, request:, request_options: nil)
570
570
  Async do
571
571
  response = @request_client.conn.post do |req|
@@ -603,7 +603,7 @@ module CandidApiClient
603
603
  # @return [CandidApiClient::EncounterProviders::V2::Types::EncounterProvider]
604
604
  # @example
605
605
  # api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
606
- # api.encounter_providers.v_2.create_initial_referring_provider(encounter_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", request: { npi: "string", taxonomy_code: "string", address: { address_1: "123 Main St", address_2: "Apt 1", city: "New York", state: NY, zip_code: "10001", zip_plus_four_code: "1234" }, qualifier: DQ, first_name: "string", last_name: "string", organization_name: "string" })
606
+ # api.encounter_providers.v_2.create_initial_referring_provider(encounter_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", request: { npi: "string", taxonomy_code: "string", address: { address_1: "123 Main St", address_2: "Apt 1", city: "New York", state: NY, zip_code: "10001", zip_plus_four_code: "1234" }, qualifier: DQ })
607
607
  def create_initial_referring_provider(encounter_id:, request:, request_options: nil)
608
608
  Async do
609
609
  response = @request_client.conn.post do |req|
@@ -640,7 +640,7 @@ module CandidApiClient
640
640
  # @return [CandidApiClient::EncounterProviders::V2::Types::EncounterProvider]
641
641
  # @example
642
642
  # api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
643
- # api.encounter_providers.v_2.create_supervising_provider(encounter_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", request: { npi: "string", taxonomy_code: "string", address: { address_1: "123 Main St", address_2: "Apt 1", city: "New York", state: NY, zip_code: "10001", zip_plus_four_code: "1234" }, first_name: "string", last_name: "string", organization_name: "string" })
643
+ # api.encounter_providers.v_2.create_supervising_provider(encounter_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", request: { npi: "string", taxonomy_code: "string", address: { address_1: "123 Main St", address_2: "Apt 1", city: "New York", state: NY, zip_code: "10001", zip_plus_four_code: "1234" } })
644
644
  def create_supervising_provider(encounter_id:, request:, request_options: nil)
645
645
  Async do
646
646
  response = @request_client.conn.post do |req|
@@ -677,7 +677,7 @@ module CandidApiClient
677
677
  # @return [CandidApiClient::EncounterProviders::V2::Types::EncounterProvider]
678
678
  # @example
679
679
  # api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
680
- # api.encounter_providers.v_2.create_ordering_provider(service_line_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", request: { npi: "string", taxonomy_code: "string", address: { address_1: "123 Main St", address_2: "Apt 1", city: "New York", state: NY, zip_code: "10001", zip_plus_four_code: "1234" }, first_name: "string", last_name: "string", organization_name: "string" })
680
+ # api.encounter_providers.v_2.create_ordering_provider(service_line_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", request: { npi: "string", taxonomy_code: "string", address: { address_1: "123 Main St", address_2: "Apt 1", city: "New York", state: NY, zip_code: "10001", zip_plus_four_code: "1234" } })
681
681
  def create_ordering_provider(service_line_id:, request:, request_options: nil)
682
682
  Async do
683
683
  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.")