Class: Dcm4chee::Api::V1::StudiesController
- Inherits:
-
BaseController
- Object
- ActionController::Base
- Dcm4chee::ApplicationController
- BaseController
- Dcm4chee::Api::V1::StudiesController
- Defined in:
- app/controllers/dcm4chee/api/v1/studies_controller.rb
Instance Method Summary collapse
-
#create ⇒ Object
Restore a study from the trash.
-
#index ⇒ Object
Search for studies.
Instance Method Details
#create ⇒ Object
Restore a study from the trash.
60 61 62 63 64 65 |
# File 'app/controllers/dcm4chee/api/v1/studies_controller.rb', line 60 def create trashed_studies = TrashedStudy.get!(params[:trashed_study_id]) trashed_studies.restore_from_trash head :created end |
#index ⇒ Object
Search for studies. Suppported querying conditions:
patient_id
Check DataMapper::Searcher::ClassMethods for supported querying operators.
42 43 44 45 46 |
# File 'app/controllers/dcm4chee/api/v1/studies_controller.rb', line 42 def index studies = Study.search(params[:q]) respond_with studies: studies end |