Class: CandidApiClient::Credentialing::V2::V2Client
- Inherits:
-
Object
- Object
- CandidApiClient::Credentialing::V2::V2Client
- Defined in:
- lib/candidhealth/credentialing/v_2/client.rb
Instance Attribute Summary collapse
Instance Method Summary collapse
- #create(rendering_provider_id:, contracting_provider_id:, payer_uuid:, regions:, start_date: nil, end_date: nil, submitted_date: nil, payer_loaded_date: nil, request_options: nil) ⇒ CandidApiClient::Credentialing::V2::Types::ProviderCredentialingSpan
-
#delete(provider_credentialing_id:, request_options: nil) ⇒ Void
Soft deletes a credentialing span rate from the system.
- #get(provider_credentialing_id:, request_options: nil) ⇒ CandidApiClient::Credentialing::V2::Types::ProviderCredentialingSpan
- #get_all(limit: nil, page_token: nil, payer_uuid: nil, as_rendering_provider: nil, as_contracting_provider: nil, request_options: nil) ⇒ CandidApiClient::Credentialing::V2::Types::ProviderCredentialingSpanPage
- #initialize(request_client:) ⇒ CandidApiClient::Credentialing::V2::V2Client constructor
- #update(provider_credentialing_id:, contracting_provider_id: nil, payer_uuid: nil, start_date: nil, end_date: nil, regions: nil, submitted_date: nil, payer_loaded_date: nil, request_options: nil) ⇒ CandidApiClient::Credentialing::V2::Types::ProviderCredentialingSpan
Constructor Details
#initialize(request_client:) ⇒ CandidApiClient::Credentialing::V2::V2Client
19 20 21 |
# File 'lib/candidhealth/credentialing/v_2/client.rb', line 19 def initialize(request_client:) @request_client = request_client end |
Instance Attribute Details
#request_client ⇒ CandidApiClient::RequestClient (readonly)
15 16 17 |
# File 'lib/candidhealth/credentialing/v_2/client.rb', line 15 def request_client @request_client end |
Instance Method Details
#create(rendering_provider_id:, contracting_provider_id:, payer_uuid:, regions:, start_date: nil, end_date: nil, submitted_date: nil, payer_loaded_date: nil, request_options: nil) ⇒ CandidApiClient::Credentialing::V2::Types::ProviderCredentialingSpan
46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 |
# File 'lib/candidhealth/credentialing/v_2/client.rb', line 46 def create(rendering_provider_id:, contracting_provider_id:, payer_uuid:, regions:, start_date: nil, end_date: nil, submitted_date: nil, payer_loaded_date: nil, request_options: nil) response = @request_client.conn.post do |req| req..timeout = .timeout_in_seconds unless &.timeout_in_seconds.nil? req.headers["Authorization"] = .token unless &.token.nil? req.headers = { **(req.headers || {}), **@request_client.get_headers, **(&.additional_headers || {}) }.compact req.body = { **(&.additional_body_parameters || {}), rendering_provider_id: rendering_provider_id, contracting_provider_id: contracting_provider_id, payer_uuid: payer_uuid, start_date: start_date, end_date: end_date, regions: regions, submitted_date: submitted_date, payer_loaded_date: payer_loaded_date }.compact req.url "#{@request_client.get_url(environment: CandidApi, request_options: )}/api/provider-credentialing-span/v2" end CandidApiClient::Credentialing::V2::Types::ProviderCredentialingSpan.from_json(json_object: response.body) end |
#delete(provider_credentialing_id:, request_options: nil) ⇒ Void
Soft deletes a credentialing span rate from the system.
142 143 144 145 146 147 148 149 150 151 152 153 154 |
# File 'lib/candidhealth/credentialing/v_2/client.rb', line 142 def delete(provider_credentialing_id:, request_options: nil) @request_client.conn.delete do |req| req..timeout = .timeout_in_seconds unless &.timeout_in_seconds.nil? req.headers["Authorization"] = .token unless &.token.nil? req.headers = { **(req.headers || {}), **@request_client.get_headers, **(&.additional_headers || {}) }.compact req.url "#{@request_client.get_url(environment: CandidApi, request_options: )}/api/provider-credentialing-span/v2/#{provider_credentialing_id}" end end |
#get(provider_credentialing_id:, request_options: nil) ⇒ CandidApiClient::Credentialing::V2::Types::ProviderCredentialingSpan
79 80 81 82 83 84 85 86 87 88 89 90 91 92 |
# File 'lib/candidhealth/credentialing/v_2/client.rb', line 79 def get(provider_credentialing_id:, request_options: nil) response = @request_client.conn.get do |req| req..timeout = .timeout_in_seconds unless &.timeout_in_seconds.nil? req.headers["Authorization"] = .token unless &.token.nil? req.headers = { **(req.headers || {}), **@request_client.get_headers, **(&.additional_headers || {}) }.compact req.url "#{@request_client.get_url(environment: CandidApi, request_options: )}/api/provider-credentialing-span/v2/#{provider_credentialing_id}" end CandidApiClient::Credentialing::V2::Types::ProviderCredentialingSpan.from_json(json_object: response.body) end |
#get_all(limit: nil, page_token: nil, payer_uuid: nil, as_rendering_provider: nil, as_contracting_provider: nil, request_options: nil) ⇒ CandidApiClient::Credentialing::V2::Types::ProviderCredentialingSpanPage
110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 |
# File 'lib/candidhealth/credentialing/v_2/client.rb', line 110 def get_all(limit: nil, page_token: nil, payer_uuid: nil, as_rendering_provider: nil, as_contracting_provider: nil, request_options: nil) response = @request_client.conn.get do |req| req..timeout = .timeout_in_seconds unless &.timeout_in_seconds.nil? req.headers["Authorization"] = .token unless &.token.nil? req.headers = { **(req.headers || {}), **@request_client.get_headers, **(&.additional_headers || {}) }.compact req.params = { **(&.additional_query_parameters || {}), "limit": limit, "page_token": page_token, "payer_uuid": payer_uuid, "as_rendering_provider": as_rendering_provider, "as_contracting_provider": as_contracting_provider }.compact req.url "#{@request_client.get_url(environment: CandidApi, request_options: )}/api/provider-credentialing-span/v2" end CandidApiClient::Credentialing::V2::Types::ProviderCredentialingSpanPage.from_json(json_object: response.body) end |
#update(provider_credentialing_id:, contracting_provider_id: nil, payer_uuid: nil, start_date: nil, end_date: nil, regions: nil, submitted_date: nil, payer_loaded_date: nil, request_options: nil) ⇒ CandidApiClient::Credentialing::V2::Types::ProviderCredentialingSpan
179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 |
# File 'lib/candidhealth/credentialing/v_2/client.rb', line 179 def update(provider_credentialing_id:, contracting_provider_id: nil, payer_uuid: nil, start_date: nil, end_date: nil, regions: nil, submitted_date: nil, payer_loaded_date: nil, request_options: nil) response = @request_client.conn.patch do |req| req..timeout = .timeout_in_seconds unless &.timeout_in_seconds.nil? req.headers["Authorization"] = .token unless &.token.nil? req.headers = { **(req.headers || {}), **@request_client.get_headers, **(&.additional_headers || {}) }.compact req.body = { **(&.additional_body_parameters || {}), contracting_provider_id: contracting_provider_id, payer_uuid: payer_uuid, start_date: start_date, end_date: end_date, regions: regions, submitted_date: submitted_date, payer_loaded_date: payer_loaded_date }.compact req.url "#{@request_client.get_url(environment: CandidApi, request_options: )}/api/provider-credentialing-span/v2/#{provider_credentialing_id}" end CandidApiClient::Credentialing::V2::Types::ProviderCredentialingSpan.from_json(json_object: response.body) end |