Method: DICOM::DClient#move_study

Defined in:
lib/dicom/d_client.rb

#move_study(destination, options = {}) ⇒ Object

Move an entire study to a DICOM server.

This DICOM node must be a third party (i.e. not the client instance you are requesting the move with!).

Instance level attributes for this procedure:

  • ‘0008,0052’ (Query/Retrieve Level)

  • ‘0010,0020’ (Patient ID)

  • ‘0020,000D’ (Study Instance UID)

Examples:

Move an entire study from e.q. a PACS to another SCP on the network

node.move_study('SOME_SERVER', '0010,0020' => pat_id, '0020,000D' => study_uid)

Parameters:

  • destination (String)

    the AE title of the DICOM server which will receive the files

  • options (Hash) (defaults to: {})

    the options to use for moving the DICOM objects

Options Hash (options):

  • 'GGGG,EEEE' (String)

    a tag and value pair to be used for the procedure



325
326
327
328
329
330
331
332
333
334
# File 'lib/dicom/d_client.rb', line 325

def move_study(destination, options={})
  # Study Root Query/Retrieve Information Model - MOVE:

  set_default_presentation_context("1.2.840.10008.5.1.4.1.2.2.2")
  # Transfer the current options to the data_elements hash:

  set_command_fragment_move(destination)
  # Prepare data elements for this operation:

  set_data_fragment_move_study
  set_data_options(options)
  perform_move
end