DicomObjects.NET.8.48 Documentation
DicomObjects Namespace / DicomAssociation Class / Move Method / Move(QueryRoot,String,DicomDataSet) Method

The query root

The destination AE Title

The identifier for the C_MOVE request

Example

In This Topic
    Move(QueryRoot,String,DicomDataSet) Method
    In This Topic
    Sends a C-MOVE request
    Syntax
    'Declaration
     
    
    Public Overloads Sub Move( _
       ByVal Root As QueryRoot, _
       ByVal Destination As System.String, _
       ByVal DataSet As DicomDataSet _
    ) 
    public void Move( 
       QueryRoot Root,
       System.string Destination,
       DicomDataSet DataSet
    )

    Parameters

    Root

    The query root

    Destination

    The destination AE Title

    DataSet

    The identifier for the C_MOVE request

    Remarks

    The images to be moved are defined by the DataSet parameter.

    Note that the QueryLevel value (0008,0052), must be included in the data set, but the dataset parameter MUST NOT contain any group 0x0000 elements (the group 0x0000 contains elements describing operation and some of the fields like MessageID, etc.)

    Once the operation has completed, the result codes may be found in the Status property.

    Example
    using DicomObjects;
    using DicomObjects.DicomUIDs;
    using DicomObjects.Enums;
                	    
       using (var cn = new DicomAssociation()) {                
           cn.RequestedContexts.Add(SOPClasses.StudyRootQR_MOVE);  
           cn.Open("localhost", 104, "callingAET", "calledAET");    
           
           var request = new DicomDataSet();
           request.PatientID = "222.22.2222";
           request.StudyUID = "999.999.2.19941105.112000";
           request.Add(Keyword.QueryRetrieveLevel, "STUDY"); 
           
           cn.Move(QueryRoot.Study, "DESTINATION_AET", request); 
           
           var status = cn.Status;
                
           cn.Close();
       }
    Requirements

    Target Platforms: .NET CLR 4.8 or higher

    See Also