Class: EmrOhspInterface::EmrOhspInterfaceController
- Inherits:
-
ApplicationController
- Object
- ApplicationController
- EmrOhspInterface::EmrOhspInterfaceController
- Defined in:
- app/controllers/emr_ohsp_interface/emr_ohsp_interface_controller.rb
Instance Method Summary collapse
- #generate_hmis_15_report ⇒ Object
- #generate_hmis_17_report ⇒ Object
- #generate_monthly_idsr_report ⇒ Object
- #generate_weekly_idsr_report ⇒ Object
- #months_generator ⇒ Object
- #service ⇒ Object
- #weeks_generator ⇒ Object
Instance Method Details
#generate_hmis_15_report ⇒ Object
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_report ⇒ Object
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_report ⇒ Object
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_report ⇒ Object
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_generator ⇒ Object
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 |
#service ⇒ Object
26 27 28 |
# File 'app/controllers/emr_ohsp_interface/emr_ohsp_interface_controller.rb', line 26 def service EmrOhspInterface::EmrOhspInterfaceService end |
#weeks_generator ⇒ Object
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 |