class Reporting::Nursing::ScreeningJob < Reporting::Job
  def process
    create_tmp_file
    @tmp_file.write("\uFEFF#{csv_service}")
    @tmp_file.rewind
    @filename = "student_screenings_#{timestamp}.csv"
    save_to_user
    send_report
  end

  private
    def csv_service
      ::Csv::Nursing::ScreeningService.call(@school, @params)
    end
end
