Class: EmrOhspInterface::EmrOhspInterfaceController

Inherits:
ApplicationController
  • Object
show all
Defined in:
app/controllers/emr_ohsp_interface/emr_ohsp_interface_controller.rb

Instance Method Summary collapse

Instance Method Details

#generate_hmis_15_reportObject



18
19
20
# File 'app/controllers/emr_ohsp_interface/emr_ohsp_interface_controller.rb', line 18

def generate_hmis_15_report
    render json: service.generate_hmis_15_report(params[:start_date],params[:end_date]);
end

#generate_hmis_17_reportObject



22
23
24
# File 'app/controllers/emr_ohsp_interface/emr_ohsp_interface_controller.rb', line 22

def generate_hmis_17_report
    render json: service.generate_hmis_17_report(params[:start_date],params[:end_date]);
end

#generate_monthly_idsr_reportObject



14
15
16
# File 'app/controllers/emr_ohsp_interface/emr_ohsp_interface_controller.rb', line 14

def generate_monthly_idsr_report
    render json: service.generate_monthly_idsr_report(params[:request],params[:start_date],params[:end_date]);
end

#generate_weekly_idsr_reportObject



10
11
12
# File 'app/controllers/emr_ohsp_interface/emr_ohsp_interface_controller.rb', line 10

def generate_weekly_idsr_report
    render json: service.generate_weekly_idsr_report(params[:request],params[:start_date],params[:end_date]);
end

#months_generatorObject



6
7
8
# File 'app/controllers/emr_ohsp_interface/emr_ohsp_interface_controller.rb', line 6

def months_generator
    render json: service.months_generator();
end

#serviceObject



26
27
28
# File 'app/controllers/emr_ohsp_interface/emr_ohsp_interface_controller.rb', line 26

def service
    EmrOhspInterface::EmrOhspInterfaceService
end

#weeks_generatorObject



2
3
4
# File 'app/controllers/emr_ohsp_interface/emr_ohsp_interface_controller.rb', line 2

def weeks_generator
    render json: service.weeks_generator();
end