class OrdersController < ActionController::Base include Medivo::OrdersController before_filter :set_pdf_headers, :get_lab_order, :only=>[:download_requisition,:download_result] def download_requisition send_pdf @lab_test_order.pdf_requisition, 'unitedhealthcare_requisition.pdf' end def download_result send_pdf @lab_test_order.pdf_result, 'unitedhealthcare_result.pdf' end def get_lab_order @lab_test_order = current_user.lab_order end end