/* ***** BEGIN LICENSE BLOCK *****
* Version: MPL 1.1/GPL 2.0/LGPL 2.1
*
* The contents of this file are subject to the Mozilla Public License Version
* 1.1 (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
* http://www.mozilla.org/MPL/
*
* Software distributed under the License is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
* for the specific language governing rights and limitations under the
* License.
*
* The Original Code is part of dcm4che, an implementation of DICOM(TM) in
* Java(TM), hosted at https://github.com/gunterze/dcm4che.
*
* The Initial Developer of the Original Code is
* Agfa Healthcare.
* Portions created by the Initial Developer are Copyright (C) 2011
* the Initial Developer. All Rights Reserved.
*
* Contributor(s):
* See @authors listed below
*
* Alternatively, the contents of this file may be used under the terms of
* either the GNU General Public License Version 2 or later (the "GPL"), or
* the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
* in which case the provisions of the GPL or the LGPL are applicable instead
* of those above. If you wish to allow use of your version of this file only
* under the terms of either the GPL or the LGPL, and not to allow others to
* use your version of this file under the terms of the MPL, indicate your
* decision by deleting the provisions above and replace them with the notice
* and other provisions required by the GPL or the LGPL. If you do not delete
* the provisions above, a recipient may use your version of this file under
* the terms of any one of the MPL, the GPL or the LGPL.
*
* ***** END LICENSE BLOCK ***** */
package org.dcm4che3.net;
/**
* @author Gunter Zeilinger <gunterze@gmail.com>
*
*/
public class Status {
public static final int Success = 0x0000;
public static final int Pending = 0xFF00;
public static final int PendingWarning = 0xFF01;
public static final int Cancel = 0xFE00;
/**
* Failure: no such attribute (105H): the Tag for the specified Attribute
* was not recognized.
* Used in N-SET-RSP, N-CREATE-RSP.
* May contain:
* Attribute Identifier List (0000,1005)
*/
public static final int NoSuchAttribute = 0x0105;
/**
* Failure: invalid attribute value (106H): the Attribute Value specified
* was out of range or otherwise inappropriate.
* Used in N-SET-RSP, N-CREATE-RSP.
* May contain:
* Modification List/Attribute List (no tag)
*/
public static final int InvalidAttributeValue = 0x0106;
/**
* Warning: attribute list error (107H): one or more Attribute Values were
* not read/modified/created because the specified Attribute was not recognized.
* Used in N-GET-RSP, N-SET-RSP, N-CREATE-RSP
* May contain:
* Affected SOP Class UID (0000,0002)
* Affected SOP Instance UID (0000,1000)
* Attribute Identifier List (0000,1005)
*/
public static final int AttributeListError = 0x0107;
/**
* Failure: processing failure (110H): a general failure in processing the
* operation was encountered.
* Used in N-EVENT-REPORT-RSP, N-GET-RSP, N-SET-RSP, N-ACTION-RSP,
* N-CREATE-RSP, N-DELETE-RSP.
* May contain:
* Affected SOP Class UID (0000,0002)
* Error Comment (0000,0902)
* Error ID (0000,0903)
* Affected SOP Instance UID (0000,1000)
*/
public static final int ProcessingFailure = 0x0110;
/**
* Failure: duplicate SOP Instance (111H): the new managed SOP Instance
* Value supplied by the invoking DIMSE-service-user was already registered
* for a managed SOP Instance of the specified SOP Class.
* Used in N-CREATE-RSP.
* May contain:
* Affected SOP Instance UID (0000,1000)
*/
public static final int DuplicateSOPinstance = 0x0111;
/**
* Failure: no such SOP Instance (112H): the SOP Instance was not recognized.
* Used in N-EVENT-REPORT-RSP, N-SET-RSP, N-ACTION-RSP, N-DELETE-RSP.
* May contain:
* Affected SOP Instance UID (0000,1000)
*/
public static final int NoSuchObjectInstance = 0x0112;
/**
* Failure: no such event type (113H): the event type specified was not
* recognized.
* Used in N-EVENT-REPORT-RSP.
* May contain:
* Affected SOP Class UID (0000,0002)
* Event Type ID (0000,1002)
*/
public static final int NoSuchEventType = 0x0113;
/**
* Failure: no such argument (114H): the event/action information specified
* was not recognized/supported.
* Used in N-EVENT-REPORT-RSP, N-ACTION-RSP.
* May contain:
* Affected SOP Class UID (0000,0002)
* Event Type ID (0000,1002)
* Action Type ID (0000,1008)
*/
public static final int NoSuchArgument = 0x0114;
/**
* Failure: invalid argument value (115H): the event/action information
* value specified was out of range or otherwise inappropriate.
* Used in N-EVENT-REPORT-RSP, N-ACTION-RSP.
* May contain:
* Affected SOP Class UID (0000,0002)
* Affected SOP Instance UID (0000,1000)
* Event Type ID (0000,1002)
* Event Information (no tag)
* Action Type ID (0000,1008)
* Action Information (no tag)
*/
public static final int InvalidArgumentValue = 0x0115;
/**
* Warning: attribute value out of range (116H): the Attribute Value
* specified was out of range or otherwise inappropriate.
* Used in N-SET-RSP, N-CREATE-RSP.
* May contain:
* Modification List/Attribute List
*/
public static final int AttributeValueOutOfRange = 0x0116;
/**
* Failure: invalid SOP Instance (117H): the SOP Instance UID specified
* implied a violation of the UID construction rules.
* Used in N-EVENT-REPORT-RSP, N-GET-RSP, N-SET-RSP, N-ACTION-RSP,
* N-CREATE-RSP, N-DELETE-RSP.
* May contain:
* Affected SOP Instance UID (0000,1000)
*/
public static final int InvalidObjectInstance = 0x0117;
/**
* Failure: no such SOP class (118H): the SOP Class was not recognized.
* Used in N-EVENT-REPORT-RSP, N-GET-RSP, N-SET-RSP, N-ACTION-RSP,
* N-CREATE-RSP, N-DELETE-RSP.
* May contain:
* Affected SOP Class UID (0000,0002)
*/
public static final int NoSuchSOPclass = 0x0118;
/**
* Failure: class-instance conflict (119H): the specified SOP Instance is
* not a member of the specified SOP class.
* Used in N-EVENT-REPORT-RSP, N-GET-RSP, N-SET-RSP, N-ACTION-RSP,
* N-DELETE-RSP.
* May contain:
* Affected SOP Class UID (0000,0002)
* Affected SOP Instance UID (0000,1000)
*/
public static final int ClassInstanceConflict = 0x0119;
/**
* Failure: missing Attribute (120H): a required Attribute was not
* supplied.
* Used in N-CREATE-RSP.
* May contain:
* Modification List/Attribute List (no tag)
*/
public static final int MissingAttribute = 0x0120;
/**
* Failure: missing Attribute Value (121H): a required Attribute Value was
* not supplied and a default value was not available.
* Used in N-SET-RSP, N-CREATE-RSP.
* May contain:
* Attribute Identifier List (0000,1005)
*/
public static final int MissingAttributeValue = 0x0121;
/**
* Refused: SOP Class Not Supported (112H).
* Used in C-STORE-RSP, C-FIND-RSP, C-GET-RSP, C-MOVE-RSP.
* May contain:
* Affected SOP Class UID (0000,0002)
*/
public static final int SOPclassNotSupported = 0x0122;
/**
* Failure: no such action type (123H): the action type specified was not
* supported.
* Used in N-ACTION-RSP.
* May contain:
* Affected SOP Class UID (0000,0002)
* Action Type ID (0000,1008)
*/
public static final int NoSuchActionType = 0x0123;
/**
* Refused: not authorized (124H): the DIMSE-service-user was not
* authorized to invoke the operation.
* Used in C-STORE-RSP, C-FIND-RSP, C-GET-RSP, C-MOVE-RSP, N-GET-RSP,
* N-SET-RSP, N-ACTION-RSP, N-CREATE-RSP, -DELETE-RSP.
* May contain:
* Error Comment (0000,0902)
*/
public static final int NotAuthorized = 0x0124;
/**
* Failure: duplicate invocation (210H): the Message ID (0000,0110)
* specified is allocated to another notification or operation.
* Used in C-STORE-RSP, C-FIND-RSP, C-GET-RSP, C-MOVE-RSP, C-ECHO-RSP,
* N-EVENT-REPORT-RSP, N-GET-RSP, N-SET-RSP, N-ACTION-RSP, N-CREATE-RSP,
* N-DELETE-RSP.
*/
public static final int DuplicateInvocation = 0x0210;
/**
* Failure: unrecognized operation (211H): the operation is not one of
* those agreed between the DIMSE-service-users.
* Used in C-STORE-RSP, C-FIND-RSP, C-GET-RSP, C-MOVE-RSP, C-ECHO-RSP,
* N-EVENT-REPORT-RSP, -GET-RSP, N-SET-RSP, N-ACTION-RSP, N-CREATE-RSP,
* N-DELETE-RSP.
*/
public static final int UnrecognizedOperation = 0x0211;
/**
* Failure: mistyped argument (212H): one of the parameters supplied has
* not been agreed for use on the Association between the DIMSE-service-users.
* Used in N-EVENT-REPORT-RSP, N-GET-RSP, N-SET-RSP, N-ACTION-RSP,
* N-CREATE-RSP, N-DELETE-RSP.
*/
public static final int MistypedArgument = 0x0212;
/**
* Failure: resource limitation (213H): the operation was not performed due
* to resource limitation.
*/
public static final int ResourceLimitation = 0x0213;
public static final int OutOfResources = 0xA700;
public static final int UnableToCalculateNumberOfMatches = 0xA701;
public static final int UnableToPerformSubOperations = 0xA702;
public static final int MoveDestinationUnknown = 0xA801;
public static final int IdentifierDoesNotMatchSOPClass = 0xA900;
public static final int DataSetDoesNotMatchSOPClassError = 0xA900;
public static final int OneOrMoreFailures = 0xB000;
public static final int CoercionOfDataElements = 0xB000;
public static final int ElementsDiscarded = 0xB006;
public static final int DataSetDoesNotMatchSOPClassWarning = 0xB007;
public static final int UnableToProcess = 0xC000;
public static final int CannotUnderstand = 0xC000;
public static boolean isPending(int status) {
return (status & Pending) == Pending;
}
}