Class: Dcm4chee::Api::V1::DicomObjectsController

Inherits:
BaseController show all
Defined in:
app/controllers/dcm4chee/api/v1/dicom_objects_controller.rb

Instance Method Summary collapse

Instance Method Details

#moveObject

Move dicom objects

Arguments:

destination_aet: The application entity which the dicom objects will be moved to.
study_iuids:     The studies will be moved.
series_iuids:    The series will be moved.
instance_iuids: The instances will be moved.

Examples:

# Request
POST /api/dicom_objects/move HTTP/1.1
Accept: application/vnd.menglifang.org; version=1

{
  "destination_aet": ...,
  "study_iuids": [...],
  "series_iuids": {
    "...": [...],
    ...
  },
  "instance_iuids": {
    "...": {
      "...": [...],
      ...
    },
    ...
  }
}

# Response
HTTP/1.1 200 OK


39
40
41
42
43
44
45
46
47
48
# File 'app/controllers/dcm4chee/api/v1/dicom_objects_controller.rb', line 39

def move
  dicom_object_manager.move(
    params[:destination_aet],
    params[:study_iuids],
    params[:series_iuids],
    params[:instance_iuids]
  )

  head :ok
end