pynetdicom._handlers.doc_handle_store¶
- pynetdicom._handlers.doc_handle_store(event)[source][source]¶
Documentation for handlers bound to
evt.EVT_C_STORE.User implementation of this event handler is required if one or more services that use C-STORE are to be supported. If a handler is not implemented and bound to
evt.EVT_C_STOREthen the C-STORE request will be responded to using a Status value of0xC211- Failure.If the user is storing the dataset in the DICOM File Format (as in the DICOM Standard Part 10, Section 7) then they are responsible for adding the DICOM File Meta Information.
Event
evt.EVT_C_STORESupported Service Classes
Storage Service Class
Non-Patient Object Storage Service Class
Status
- Success
0x0000- Success- Warning
0xB000Coercion of data elements0xB006Elements discarded0xB007Dataset does not match SOP class- Failure
0x0117Invalid SOP instance0x0122SOP class not supported0x0124Not authorised0x0210Duplicate invocation0x0211Unrecognised operation0x0212Mistyped argument0xA700to0xA7FFOut of resources0xA900to0xA9FFDataset does not match SOP class0xC000to0xCFFFCannot understand
- Parameters
event (events.Event) –
The event representing a service class receiving a C-STORE request message.
Eventattributes are:assoc: theassociationthat is running the service that received the C-STORE request.context: the presentation context the request was sent under as apresentation.PresentationContextTuple.description: a description of the event that occurred as str.name: the name of the event that occurred as str.request: the receivedC-STORE requesttimestamp: the date and time that the C-STORE request was processed by the service.
Event properties are:
dataset: the decodedDatasetcontained within the C-STORE request’s Data Set parameter. Because pydicom uses a deferred read when decoding data, if the decode fails the returnedDatasetwill only raise an exception at the time of use.file_meta: aDatasetcontaining DICOM conformant File Meta Information that can be used with the decoded dataset when saving to file: event.dataset.file_meta = event.file_meta.
- Returns
status – The status returned to the requesting AE in the C-STORE response. Must be a valid C-STORE status value for the applicable Service Class as either an
intor aDatasetobject containing (at a minimum) a (0000,0900) Status element. If returning aDatasetobject then it may also contain optional elements related to the Status (as in the DICOM Standard Part 7, Annex C).- Return type
- Raises
NotImplementedError – If the handler has not been implemented and bound to
evt.EVT_C_STOREby the user.
See also
send_c_store()C_STOREStorageServiceClassNonPatientObjectStorageServiceClassReferences