module AthenaHealth::Endpoints::Encounters
Public Instance Methods
create_encounter_diagnoses(practice_id:, encounter_id:, body: {})
click to toggle source
# File lib/athena_health/endpoints/encounters.rb, line 57 def create_encounter_diagnoses(practice_id:, encounter_id:, body: {}) @api.call( endpoint: "#{practice_id}/chart/encounter/#{encounter_id}/diagnoses", method: :post, body: body ) end
create_encounter_order_lab(practice_id:, encounter_id:, body: {})
click to toggle source
# File lib/athena_health/endpoints/encounters.rb, line 41 def create_encounter_order_lab(practice_id:, encounter_id:, body: {}) @api.call( endpoint: "#{practice_id}/chart/encounter/#{encounter_id}/orders/lab", method: :post, body: body ) end
create_order_group(practice_id:, patient_id:, body: {})
click to toggle source
# File lib/athena_health/endpoints/encounters.rb, line 49 def create_order_group(practice_id:, patient_id:, body: {}) @api.call( endpoint: "#{practice_id}/chart/#{patient_id}/ordergroups", method: :post, body: body ) end
encounter_order(practice_id:, encounter_id:, order_id:)
click to toggle source
# File lib/athena_health/endpoints/encounters.rb, line 24 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
encounter_orders(practice_id:, encounter_id:)
click to toggle source
# File lib/athena_health/endpoints/encounters.rb, line 13 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
encounter_summary(practice_id:, encounter_id:)
click to toggle source
# File lib/athena_health/endpoints/encounters.rb, line 33 def encounter_summary(practice_id:, encounter_id:) response = @api.call( endpoint: "#{practice_id}/chart/encounters/#{encounter_id}/summary", method: :get ) EncounterSummary.new(response) end
find_encounter(practice_id:, encounter_id:)
click to toggle source
# File lib/athena_health/endpoints/encounters.rb, line 4 def find_encounter(practice_id:, encounter_id:) response = @api.call( endpoint: "#{practice_id}/chart/encounter/#{encounter_id}", method: :get ) Encounter.new(response.first) end