Package gov.nih.mipav.model.dicomcomm
Class DICOM_Move
java.lang.Object
gov.nih.mipav.model.dicomcomm.DICOM_Move
- All Implemented Interfaces:
Runnable
This is the DICOM move class that defines functions to compose and send move requests to the server found in the
.preferences file. It runs in a separate thread, so it has its own run method.
This DICOM communication package was originally based on the Java Dicom Package, whose license is below:
This DICOM communication package was originally based on the Java Dicom Package, whose license is below:
Java Dicom Package (com.zmed.dicom) Copyright (c) 1996-1997 Z Medical Imaging Systems, Inc. This software is provided, as is, for non-commercial educational purposes only. Use or incorporation of this software or derivative works in commercial applications requires written consent from Z Medical Imaging Systems, Inc. Z MEDICAL IMAGING SYSTEMS MAKES NO REPRESENTATIONS OR WARRANTIES ABOUT THE SUITABILITY OF THE SOFTWARE, EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, NON-INFRINGEMENT, OR CONFORMANCE TO ANY SPECIFICATION OR STANDARD. Z MEDICAL IMAGING SYSTEMS SHALL NOT BE LIABLE FOR ANY DAMAGES SUFFERED BY LICENSEE AS A RESULT OF USING OR MODIFYING THIS SOFTWARE OR ITS DERIVATIVES. ============================================================================= This software package is implemented similarly to the UC Davis public domain C++ DICOM implementation which contains the following copyright notice: Copyright (C) 1995, University of California, Davis THIS SOFTWARE IS MADE AVAILABLE, AS IS, AND THE UNIVERSITY OF CALIFORNIA DOES NOT MAKE ANY WARRANTY ABOUT THE SOFTWARE, ITS PERFORMANCE, ITS MERCHANTABILITY OR FITNESS FOR ANY PARTICULAR USE, FREEDOM FROM ANY COMPUTER DISEASES OR ITS CONFORMITY TO ANY SPECIFICATION. THE ENTIRE RISK AS TO QUALITY AND PERFORMANCE OF THE SOFTWARE IS WITH THE USER. Copyright of the software and supporting documentation is owned by the University of California, and free access is hereby granted as a license to use this software, copy this software and prepare derivative works based upon this software. However, any distribution of this software source code or supporting documentation or derivative works (source code and supporting documentation) must include this copyright notice. The UC Davis C++ source code is publicly available from the following anonymous ftp site: ftp://imrad.ucdmc.ucdavis.edu/pub/dicom/UCDMC/
- Version:
- 1.0
- Author:
- Sunita Munjal
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate DICOM_ObjectDICOM data object.private byte[]Local application entity of theprivate intUnique message identifier for the C-MOVE request.private DICOM_PDUServicePDU service object. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionconnectToServer(String AETitle) connects to server with the supplied Application entity title.intgetMsgID()Accessor to get the message ID for the current message.voidrun()Runs this move request in a separate thread.voidsendCancelRQ(int msgID, DICOM_PDUService pdu) Sends a C-CANCEL-MOVE-RQ to the Service Class Provider; ie.voidsendMoveRQ(DICOM_PDUService pdu, DICOM_Object ddo, byte[] localAppTitle) Sends a move request.setMoveImageData(String patientID, String studyInstUID, String seriesInstUID, String sopInstUID) Sets up the data object (IOD) for a patient root image level C-Move request given patID, study instance UID, series instance UID, and SOP Instance UID.voidsetMoveParameters(DICOM_PDUService pdu, DICOM_Object ddo, byte[] localAppTitle) Sets up the neccessary parameters for sending a move request.setMovePatientData(String patientID) Sets up the data object (IOD) for a patient root patient level C-Move request given patID.setMoveSeriesData(String patientID, String studyInstUID, String seriesInstUID) Set up the data object (IOD) for a patient root series level C-Move request given patID, study instance UID, and series instance UID.setMoveStudyData(String patientID, String studyInstUID) Sets up the data object (IOD) for a patient root study level C-Move request given patID and study instance UID.intsetMsgID()Sets the msgID for the outgoing C-Move Request.
-
Field Details
-
localAppTitle
private byte[] localAppTitleLocal application entity of the -
ddo
DICOM data object. -
MSG_ID
private int MSG_IDUnique message identifier for the C-MOVE request. -
pdu
PDU service object.
-
-
Constructor Details
-
DICOM_Move
public DICOM_Move()Creates a new DICOM_Move object.
-
-
Method Details
-
connectToServer
connects to server with the supplied Application entity title.- Parameters:
AETitle- application entity title for remote server- Returns:
- pdu return instance of PDU_Service class which contains the remote system connect info.
-
getMsgID
public int getMsgID()Accessor to get the message ID for the current message.- Returns:
- msgID unique identifier for the current message
-
run
public void run()Runs this move request in a separate thread. Calls sendMoveRQ. -
sendCancelRQ
Sends a C-CANCEL-MOVE-RQ to the Service Class Provider; ie. Image Archive- Parameters:
msgID- Unique identifier for the C-MOVE request to be cancelledpdu- Instance of PDU_Service containing remote connect info.
-
sendMoveRQ
Sends a move request.- Parameters:
pdu- Instance of PDU_Service containing remote connect info.ddo- Move request identifierlocalAppTitle- Local application entity title
-
setMoveImageData
public DICOM_Object setMoveImageData(String patientID, String studyInstUID, String seriesInstUID, String sopInstUID) Sets up the data object (IOD) for a patient root image level C-Move request given patID, study instance UID, series instance UID, and SOP Instance UID.- Parameters:
patientID- key attribute for image level move requeststudyInstUID- key attribute for image level move requestseriesInstUID- key attribute for image level move requestsopInstUID- key attribute for image level move request- Returns:
- return patient root image level move data object
-
setMoveParameters
Sets up the neccessary parameters for sending a move request. Must be called before the thread is started.- Parameters:
pdu- Instance of PDU_Service containing remote connect info.ddo- Move request identifierappTitle- Local application entity title
-
setMovePatientData
Sets up the data object (IOD) for a patient root patient level C-Move request given patID.- Parameters:
patientID- key attribute for patient level move request- Returns:
- return patient root patient level move data object
-
setMoveSeriesData
Set up the data object (IOD) for a patient root series level C-Move request given patID, study instance UID, and series instance UID.- Parameters:
patientID- key attribute for series level move requeststudyInstUID- key attribute for series level move requestseriesInstUID- key attribute for series level move request- Returns:
- return patient root series level move data object
-
setMoveStudyData
Sets up the data object (IOD) for a patient root study level C-Move request given patID and study instance UID.- Parameters:
patientID- key attribute for study level move requeststudyInstUID- key attribute for study level move request- Returns:
- return patient root study level move data object
-
setMsgID
public int setMsgID()Sets the msgID for the outgoing C-Move Request.- Returns:
- returns the unique message ID
-