pynetdicom.status.Status¶
-
class
pynetdicom.status.Status(value)[source]¶ Constants for common status codes.
New in version 1.5.
Warning
Not available with Python 2 unless the enum34 package is installed
New constants can be added with the
Status.add(name, code)method but the documentation for it is missing due to a bug in Sphinx. name is the variable name of the constant to add as astrand code is the corresponding status code as anint.Examples
from pynetdicom.status import Status # Customise the class Status.add('UNABLE_TO_PROCESS', 0xC000) def handle_store(event): try: event.dataset.save_as('temp.dcm') except: return Status.UNABLE_TO_PROCESS return Status.SUCCESS
-
__init__()¶ Initialize self. See help(type(self)) for accurate signature.
Attributes
0xFE00- Operation terminated0xA801- Move destination unknown0xFF00- Matches or sub-operations are continuing0x0000- Success-