Class: Renalware::Admin::PlaygroundsController
- Inherits:
-
BaseController
- Object
- ApplicationController
- Renalware::ApplicationController
- BaseController
- Renalware::Admin::PlaygroundsController
- Defined in:
- app/controllers/renalware/admin/playgrounds_controller.rb
Defined Under Namespace
Instance Method Summary collapse
- #chart_params ⇒ Object
-
#pathology_chart_data ⇒ Object
Returns test json to display a chart of one obx code over time for a patient.
- #show ⇒ Object
Methods inherited from BaseController
Instance Method Details
#chart_params ⇒ Object
40 41 42 43 44 |
# File 'app/controllers/renalware/admin/playgrounds_controller.rb', line 40 def chart_params return {} unless params.key?(:chart) params.require(:chart).permit! end |
#pathology_chart_data ⇒ Object
Returns test json to display a chart of one obx code over time for a patient
11 12 13 14 15 16 |
# File 'app/controllers/renalware/admin/playgrounds_controller.rb', line 11 def pathology_chart_data User, :index? form = ChartForm.new(chart_params) chart = Chart.new(form) render json: chart.json end |