lib/athena_health/endpoints/encounters.rb in athena_health-1.0.39 vs lib/athena_health/endpoints/encounters.rb in athena_health-1.0.41

- old
+ new

@@ -13,11 +13,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)} - OrderCollection.new(response.first) + 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}",