Sha256: ccb79eaf70439053a4c0105d201d1b1bf6f007e5db5af6e134fcda4b4688988f
Contents?: true
Size: 1.13 KB
Versions: 4
Compression:
Stored size: 1.13 KB
Contents
module AthenaHealth module Endpoints module Encounters def find_encounter(practice_id:, encounter_id:) response = @api.call( endpoint: "#{practice_id}/chart/encounter/#{encounter_id}", method: :get ) Encounter.new(response.first) end def encounter_orders(practice_id:, encounter_id:) response = @api.call( endpoint: "#{practice_id}/chart/encounter/#{encounter_id}/orders", method: :get ) orders_collection = [] response.each {|x| orders_collection << OrderCollection.new(x)} orders_collection end def encounter_order(practice_id:, encounter_id:, order_id:) response = @api.call( endpoint: "#{practice_id}/chart/encounter/#{encounter_id}/orders/#{order_id}", method: :get ) Order.new(response) end def encounter_summary(practice_id:, encounter_id:) response = @api.call( endpoint: "#{practice_id}/chart/encounters/#{encounter_id}/summary", method: :get ) EncounterSummary.new(response) end end end end
Version data entries
4 entries across 4 versions & 1 rubygems