Module: AthenaHealth::Endpoints::Providers
- Included in:
- Client
- Defined in:
- lib/athena_health/endpoints/providers.rb
Instance Method Summary collapse
- #all_providers(practice_id:, params: {}) ⇒ Object
- #find_provider(practice_id:, provider_id:, params: {}) ⇒ Object
Instance Method Details
#all_providers(practice_id:, params: {}) ⇒ Object
4 5 6 7 8 9 10 11 12 |
# File 'lib/athena_health/endpoints/providers.rb', line 4 def all_providers(practice_id:, params: {}) response = @api.call( endpoint: "#{practice_id}/providers", method: :get, params: params ) ProviderCollection.new(response) end |
#find_provider(practice_id:, provider_id:, params: {}) ⇒ Object
14 15 16 17 18 19 20 21 22 |
# File 'lib/athena_health/endpoints/providers.rb', line 14 def find_provider(practice_id:, provider_id:, params: {}) response = @api.call( endpoint: "#{practice_id}/providers/#{provider_id}", method: :get, params: params ) Provider.new(response.first) end |