Sha256: d25217e6c01f00e05120c62d38f19796ed16c04042be12590a145ecb8b45b08d

Contents?: true

Size: 526 Bytes

Versions: 9

Compression:

Stored size: 526 Bytes

Contents

module Medivo
  class LabsController < ActionController::Base
    def lab_data
      lab_data = Medivo::Lab.data_for_zip(params[:zip_code])
      render :json=> lab_data, :layout => nil
    end

    def appointment_data
      data = Medivo::Appointment.find(params[:lab_code], params[:appointment_date])
      render :json=> data, :layout => nil
    rescue => e
      render :json=> {:status=>'Error', :message=>"Problem getting data: #{e.message}"},
             :status=> 500,
             :layout => nil
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
medivo-0.1.23 app/controllers/medivo/labs_controller.rb
medivo-0.1.22 app/controllers/medivo/labs_controller.rb
medivo-0.1.21 app/controllers/medivo/labs_controller.rb
medivo-0.1.20 app/controllers/medivo/labs_controller.rb
medivo-0.1.19 app/controllers/medivo/labs_controller.rb
medivo-0.1.18 app/controllers/medivo/labs_controller.rb
medivo-0.1.17 app/controllers/medivo/labs_controller.rb
medivo-0.1.16 app/controllers/medivo/labs_controller.rb
medivo-0.1.15 app/controllers/medivo/labs_controller.rb