module AthenaHealth::Endpoints::Practices

Public Instance Methods

all_practices(params: {}) click to toggle source
# File lib/athena_health/endpoints/practices.rb, line 4
def all_practices(params: {})
  response = @api.call(
    endpoint: '1/practiceinfo',
    method: :get,
    params: params
  )

  PracticeCollection.new(response)
end
find_practice(practice_id:, params: {}) click to toggle source
# File lib/athena_health/endpoints/practices.rb, line 14
def find_practice(practice_id:, params: {})
  response = @api.call(
    endpoint: "#{practice_id}/practiceinfo",
    method: :get,
    params: params
  )

  PracticeCollection.new(response).practices.first
end