Class: Lab::TestTypesController
- Inherits:
-
ApplicationController
- Object
- ApplicationController
- ApplicationController
- Lab::TestTypesController
- Defined in:
- app/controllers/lab/test_types_controller.rb
Instance Method Summary collapse
Instance Method Details
#index ⇒ Object
5 6 7 8 9 10 11 12 13 |
# File 'app/controllers/lab/test_types_controller.rb', line 5 def index filters = params.permit(%w[name specimen_type]) test_types = ConceptsService.test_types(name: filters['name'], specimen_type: filters['specimen_type']) .as_json(only: %w[concept_id name]) render json: test_types end |